GetMessage - Maple Help

Student[Calculus1]

 GetMessage
 get the most recent Calculus1 message

 Calling Sequence GetMessage()

Description

 • Information messages (not errors) from routines in the Calculus1 package are produced using the Maple userinfo mechanism, as level 1 messages.  However, userinfo messages cannot be caught by programs.  To make these messages available to programs that call Calculus1 routines, the message body (and some additional information when relevant) is stored in an internal variable.  To obtain the value of this variable, which is the most recent message produced, use the GetMessage() command.

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{Calculus1}\right]\right):$
 > $\mathrm{infolevel}\left[\mathrm{Student}\left[\mathrm{Calculus1}\right]\right]≔1:$
 > $\mathrm{Diff}\left({x}^{2}+x,x\right)$
 $\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}\left({{x}}^{{2}}{+}{x}\right)$ (1)
 > $\mathrm{Rule}\left[\mathrm{*}\right]\left(\right)$
 Creating problem #1 Rule [product] does not apply
 $\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}}{+}{x}\right)$ (2)
 > $\mathrm{GetMessage}\left(\right)$
 ${"Rule \left[product\right] does not apply"}{,}{\mathrm{Diff}}{,}\left[{\mathrm{product}}\right]$ (3)