 Undo - Maple Help

Student[Calculus1]

 Undo
 undo the last rule applied to a problem Calling Sequence Undo(expr) Parameters

 expr - algebraic or algebraic equation; select the problem to undo Description

 • The Undo command undoes the rule most recently applied to the problem expr.  It returns the previous state of the problem. This operation can be repeated until the problem is in its initial state.
 • Maple commands other than the package commands Rule and Hint do not change the Calculus1 internal state of a problem. Therefore, Undo does not undo the results of applying such commands.  However, you can usually recover the prior state of such a problem by calling GetProblem.
 • The normal input to Undo is the output from a previous call to Rule or GetProblem. To pass the output of GetProblem to Undo, use the internal option to GetProblem. However, the routine tries to match any expr to an existing problem.
 • This command can be used within a tutor after applying a Rule interactively by using the DiffTutor, IntTutor, or LimitTutor. Examples

 > $\mathrm{with}\left({\mathrm{Student}}_{\mathrm{Calculus1}}\right):$
 > ${\mathrm{infolevel}}_{{\mathrm{Student}}_{\mathrm{Calculus1}}}≔1:$
 > ${\mathrm{Rule}}_{\mathrm{change},u=2x}\left({∫}\mathrm{sin}\left(3x\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}x\right)$
 Creating problem #1 Applying substitution x = 1/2*u, u = 2*x with dx = 1/2*du, du = 2*dx
 ${\int }{\mathrm{sin}}{}\left({3}{}{x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}{=}{\int }\frac{{\mathrm{sin}}{}\left(\frac{{3}{}{u}}{{2}}\right)}{{2}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{u}$ (1)
 > $\mathrm{Undo}\left(\right)$
 ${\int }{\mathrm{sin}}{}\left({3}{}{x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}$ (2)
 > ${\mathrm{Rule}}_{\mathrm{change},u=3x}\left(\right)$
 Applying substitution x = 1/3*u, u = 3*x with dx = 1/3*du, du = 3*dx
 ${\int }{\mathrm{sin}}{}\left({3}{}{x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}{=}{\int }\frac{{\mathrm{sin}}{}\left({u}\right)}{{3}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{u}$ (3)
 > $\mathrm{Undo}\left(\right)$
 ${\int }{\mathrm{sin}}{}\left({3}{}{x}\right)\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}$ (4)

If you call Undo on a problem in its initial state, Maple returns an error.

 > $\mathrm{Undo}\left(\right)$