testeq - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


verify/testeq

verify the equality of two expressions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

verify(expr1, expr2, testeq)

Parameters

expr1, expr2

-

anything, assumed to be of type algebraic

Description

• 

The verify(expr1, expr2, testeq) function returns true if the difference between the arguments expr1 and expr2 is zero after applying the testeq routine.

• 

This verification is symmetric in its arguments.

• 

If either expr1 or expr2 is not of type algebraic, then false is returned.

Examples

> 

a≔sin⁡x2−cos⁡x⁢tan⁡x⁢sin⁡x2+cos⁡x⁢tan⁡x2:

> 

b≔14⁢sin⁡2⁢x2−12⁢sin⁡2⁢x⁢cos⁡x−2⁢cos⁡x2+12⁢sin⁡2⁢x⁢cos⁡x3+3⁢cos⁡x4−cos⁡x6:

> 

map⁡verify,a,b,sin⁡x2−cos⁡x⁢tan⁡x,a,testeq

true,true,false

(1)

See Also

testeq

verify