Maple Constants - Maple Programming Help

Maple Constants

Description

 • The numeric constants in Maple are integers, fractions, floating-point numbers, and complex numbers whose real and imaginary parts are any of these types of numbers.
 • The global variable constants is an expression sequence of all names which are initially known as symbolic constants in Maple.  These are:

 false gamma infinity true Catalan FAIL Pi

 • The values undefined and Float(undefined) do not appear on this list because neither is a constant.
 • The user can declare any symbol other than undefined to be a constant by appending it to constants.
 • The expression (-1)^(1/2) is implemented as Complex(1).
 • More generally, a Maple expression is of type constant if it is an unevaluated function with all arguments of type constant, or a sum, product, or power with all operands of type constant.

Examples

 > $\mathrm{constants}$
 ${\mathrm{false}}{,}{\mathrm{γ}}{,}{\mathrm{∞}}{,}{\mathrm{true}}{,}{\mathrm{Catalan}}{,}{\mathrm{FAIL}}{,}{\mathrm{π}}$ (1)
 > $\mathrm{type}\left(f\left({ⅇ}^{\mathrm{γ}}+3\right)+\frac{1}{4},'\mathrm{constant}'\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(f\left({ⅇ}^{\mathrm{γ}}+x\right)+\frac{1}{4},'\mathrm{constant}'\right)$
 ${\mathrm{false}}$ (3)
 > $\mathrm{constants}≔\mathrm{constants},x$
 ${\mathrm{constants}}{:=}{\mathrm{false}}{,}{\mathrm{γ}}{,}{\mathrm{∞}}{,}{\mathrm{true}}{,}{\mathrm{Catalan}}{,}{\mathrm{FAIL}}{,}{\mathrm{π}}{,}{x}$ (4)
 > $\mathrm{type}\left(f\left({ⅇ}^{\mathrm{γ}}+x\right)+\frac{1}{4},'\mathrm{constant}'\right)$
 ${\mathrm{true}}$ (5)