convert constant functions to constants - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Expression Manipulation : Simplifying : simplify/constants

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 π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)

constants:=constants,E,Fa

constants:=false,γ,∞,true,Catalan,FAIL,π,E,Fa

(6)

simplifyE3,Fa,'constants'

E,Fa

(7)

See Also

constants, simplify


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam