Student[Calculus1] - Maple Programming Help

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

Student[Calculus1]

 GetNumProblems
 get the current number of problems in the internal Calculus1 problems table

 Calling Sequence GetNumProblems()

Description

 • The Calculus1 package maintains an internal table of problems stepped through in the current session.  This table is not directly accessible, but you can obtain information about its contents.
 • The GetNumProblems() command returns an expression sequence of two non-negative integers.  The first integer is the number of problems in the internal table that have not been cleared by a call to Clear.  The second integer is the total number of problems in the internal table.
 • The Clear(all) command resets both numbers returned by the GetNumProblems routine to 0 (zero).

Examples

 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{Calculus1}]\right):$
 > ${\mathrm{infolevel}}_{\mathrm{Student}[\mathrm{Calculus1}]}≔1:$
 > $\mathrm{GetNumProblems}\left(\right)$
 ${0}{,}{0}$ (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{GetNumProblems}\left(\right)$
 ${2}{,}{2}$ (4)
 > $\mathrm{Clear}\left(1\right)$
 Problem #1 has been cleared
 > $\mathrm{GetNumProblems}\left(\right)$
 ${1}{,}{2}$ (5)
 > $\mathrm{Clear}\left(\mathrm{all}\right)$
 > $\mathrm{GetNumProblems}\left(\right)$
 ${0}{,}{0}$ (6)