Warning Messages - Maple Programming Help

Warning Messages

 Maple produces various informative warning messages when executing a command. Some of the instances where warning message are displayed are discussed below.  For examples of warning messages, see the Examples section.
 • Modules and procedures can have implicitly declared local variables. A warning message is displayed when a variable is implicitly declared, indicating the location of the implicit declaration.  See Implicit Local Variables for more information.
 • Maple commands can return qualitative information about a given expression. For example, the Roots command returns the roots of a given expression. If there is an infinite number of roots, a warning message is displayed and a few sample points are returned.

Warning Messages in Help Pages

 Most help pages in the Maple help system do not display warning messages. For illustrative purposes, however, warning messages are displayed in a few help pages.

Examples

 Warnings regarding variables in procedures and modules.
 > M := module() local a; export b;     a := proc() c := 2 end proc;     b := proc() d := 2 end proc;     e := proc() f := 2 end proc end module;
 Warning, e is implicitly declared local to module M Warning, c is implicitly declared local to procedure M:-a Warning, d is implicitly declared local to procedure M:-b Warning, f is implicitly declared local to procedure M:-e
 ${M}{≔}{\mathbf{module}}\left({}\right)\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{local}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{a}{,}{e}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{export}}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{b}{;}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{}\phantom{\rule[-0.0ex]{0.5em}{0.0ex}}{\mathbf{end module}}$ (1)
 Using the Roots command.
 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{Calculus1}]\right):$
 > $\mathrm{Roots}\left(\mathrm{sin}\left(x\right)\right)$
 Warning, the expression has an infinite number of roots, some examples of which are given
 $\left[{-}{\mathrm{π}}{,}{0}{,}{\mathrm{π}}\right]$ (2)