Student[Calculus1] - Maple Programming Help

Home : Support : Online Help : Education : Student Package : Calculus 1 : Single Stepping : Student/Calculus1/WhatProblem

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}}{}\left({{x}}^{{2}}{+}{x}\right){=}\frac{{ⅆ}}{{ⅆ}{x}}{}\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
 ${∫}{3}{}{{x}}^{{2}}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}{ⅆ}{x}{=}{3}{}\left({∫}{{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}}{}\left({{x}}^{{2}}{+}{x}\right){=}\frac{{ⅆ}}{{ⅆ}{x}}{}\left({{x}}^{{2}}\right){+}\frac{{ⅆ}}{{ⅆ}{x}}{}{x}$ (5)
 > $\mathrm{WhatProblem}\left(\right)$
 ${1}$ (6)