Student[Calculus1] - Maple Programming Help

Home : Support : Online Help : Education : Student Packages : 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}\left[\mathrm{Calculus1}\right]\right):$
 > $\mathrm{infolevel}\left[\mathrm{Student}\left[\mathrm{Calculus1}\right]\right]≔1:$
 > $\mathrm{GetNumProblems}\left(\right)$
 ${0}{,}{0}$ (1)
 > $\mathrm{Rule}\left[\mathrm{+}\right]\left(\mathrm{Diff}\left({x}^{2}+x,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}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{x}$ (2)
 > $\mathrm{Rule}\left[\mathrm{c*}\right]\left(\mathrm{Int}\left(3{x}^{2},x\right)\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{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)