WhatProblem - Maple Help

Student[Calculus1]

 WhatProblem
 get the problem number of the current Calculus1 problem

 Calling Sequence WhatProblem()

Description

 • The Calculus1 package maintains an internal table of problems that have been worked on (step by step) in the current session.  This table is not directly accessible, but you can obtain information about its contents.  Use WhatProblem to obtain the number of the current problem in the problems table.
 • The WhatProblem() command returns $-1$ if there is no current problem (either the most recent current problem has been cleared by a call to Clear or there are no problems in the problems table).

Examples

 > $\mathrm{with}\left({\mathrm{Student}}_{\mathrm{Calculus1}}\right):$
 > ${\mathrm{infolevel}}_{{\mathrm{Student}}_{\mathrm{Calculus1}}}≔1:$
 > $\mathrm{WhatProblem}\left(\right)$
 ${-1}$ (1)
 > ${\mathrm{Rule}}_{\mathrm{+}}\left(\frac{{ⅆ}}{{ⅆ}x}\left({x}^{2}+x\right)\right)$
 Creating problem #1
 $\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}\left({{x}}^{{2}}{+}{x}\right){=}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}\left({{x}}^{{2}}\right){+}\frac{{ⅆ}{x}}{{ⅆ}{x}}$ (2)
 > ${\mathrm{Rule}}_{\mathrm{c*}}\left({∫}3{x}^{2}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}x\right)$
 Creating problem #2
 ${\int }{3}{}{{x}}^{{2}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}{=}{3}{}\left({\int }{{x}}^{{2}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}\right)$ (3)
 > $\mathrm{WhatProblem}\left(\right)$
 ${2}$ (4)
 > $\mathrm{GetProblem}\left(1\right)$
 $\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}\left({{x}}^{{2}}{+}{x}\right){=}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}\left({{x}}^{{2}}\right){+}\frac{{ⅆ}{x}}{{ⅆ}{x}}$ (5)
 > $\mathrm{WhatProblem}\left(\right)$
 ${1}$ (6)