verify/testeq
verify the equality of two expressions
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, testeq)
expr1, expr2
-
anything, assumed to be of type algebraic
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.
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
See Also
testeq
verify
Download Help Document