<P> W.S. Gilbert's play (1874) is a comedy in which Rosencrantz plots with his friend Guildenstern to get rid of Hamlet, so that Rosencrantz can marry Ophelia . They discover that Claudius has written a play . The king's literary work is so embarrassingly bad that Claudius has decreed that anyone who mentions it must be executed . They obtain the manuscript and convince Hamlet to perform it . When he does, Claudius decrees that he must die, but is eventually persuaded to banish him to England . Rosencrantz and Ophelia can now be together . </P> <P> As the protagonists of Tom Stoppard's play and film, they are confused by the events of Hamlet and seem unaware of their role in the larger drama . The play is primarily a comedy, but they often stumble upon deep philosophical truths through their nonsensical ramblings . In the movie, Rosencrantz invents the sandwich, and discovers gravity and volume displacement, among other things . The characters depart from their epiphanies as quickly as they come to them . </P> <P> At times, one appears more enlightened than the other--but they trade this enlightenment back and forth throughout the drama . Stoppard also littered his play with jokes that refer to the common thespian tendency to swap Rosencrantz and Guildenstern in the midst of the play because the characters are basically identical . He does this by making Rosencrantz and Guildenstern unsure of who is who, as well as having the other players (Claudius, Hamlet, Gertrude) refer to them frequently by the wrong names . Because of the play's similarity to Waiting for Godot, Rosencrantz is sometimes compared to Estragon (one of the tramps who wait for Godot), and who shares his dim perception of reality, while Guildenstern parallels Vladimir, who shares his analytical perception . </P>

What is hamlet's opinion of rosencrantz and guildenstern