constants - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


simplify/constants

convert constant functions to constants

 

Calling Sequence

Parameters

Description

Examples

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 πx does not automatically simplify to Pi whereas 3x 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;

false,γ,,true,Catalan,FAIL,π

(1)

Examples

simplifyfalsex,truex,FAILx,constants

false,true,FAIL

(2)

simplifyγxCatalanxπx+x,constants

γCatalanπ+

(3)

evalfγ

0.5772156649

(4)

evalfγ3

0.002053834420

(5)

constantsconstants,E,Fa

constantsfalse,γ,,true,Catalan,FAIL,π,E,Fa

(6)

simplifyE3,Fa,constants

E,Fa

(7)

See Also

constants

simplify