constants - Maple Help

simplify/constants

convert constant functions to constants

 Calling Sequence simplify(expr, 'constants')

Parameters

 expr - expression 'constants' - literal name; 'constants', including the enclosing with quotes ''

Description

 • In Maple, constants are not automatically considered to be constant functions, and therefore $\mathrm{\pi }\left(x\right)$ does not automatically simplify to Pi whereas $3\left(x\right)$ does simplify to $3$.  This procedure performs those simplifications.
 • Candidates for simplification are symbols in the expression sequence constants which are not themselves procedures or for which there does not exist an evalf function.
 • Note: In order to perform this simplification using the syntax simplify(expr, 'constants'), it is mandatory that the keyword 'constants' be enclosed with quotes, to prevent the premature evaluation of this keyword to the list of Maple constants
 > constants;
 ${\mathrm{false}}{,}{\mathrm{\gamma }}{,}{\mathrm{\infty }}{,}{\mathrm{true}}{,}{\mathrm{Catalan}}{,}{\mathrm{FAIL}}{,}{\mathrm{\pi }}$ (1)

Examples

 > $\mathrm{simplify}\left(\left[\mathrm{false}\left(x\right),\mathrm{true}\left(x\right),\mathrm{FAIL}\left(x\right)\right],'\mathrm{constants}'\right)$
 $\left[{\mathrm{false}}{,}{\mathrm{true}}{,}{\mathrm{FAIL}}\right]$ (2)
 > $\mathrm{simplify}\left(\mathrm{\gamma }\left(x\right)\mathrm{Catalan}\left(x\right)\mathrm{\pi }\left(x\right)+\mathrm{\infty }\left(x\right),'\mathrm{constants}'\right)$
 ${\mathrm{\gamma }}{}{\mathrm{Catalan}}{}{\mathrm{\pi }}{+}{\mathrm{\infty }}$ (3)
 > $\mathrm{evalf}\left(\mathrm{\gamma }\right)$
 ${0.5772156649}$ (4)
 > $\mathrm{evalf}\left(\mathrm{\gamma }\left(3\right)\right)$
 ${0.002053834420}$ (5)
 > $\mathrm{constants}≔\mathrm{constants},E,F\left[a\right]$
 ${\mathrm{constants}}{≔}{\mathrm{false}}{,}{\mathrm{\gamma }}{,}{\mathrm{\infty }}{,}{\mathrm{true}}{,}{\mathrm{Catalan}}{,}{\mathrm{FAIL}}{,}{\mathrm{\pi }}{,}{E}{,}{{F}}_{{a}}$ (6)
 > $\mathrm{simplify}\left(\left[E\left(3\right),F\left[a\right]\right],'\mathrm{constants}'\right)$
 $\left[{E}{,}{{F}}_{{a}}\right]$ (7)