verify[expand] - verify the equality of two objects when expanded
verify[normal] - verify the equality of two objects when normalized
verify[simplify] - verify the equality of two objects when simplified
|
Calling Sequence
|
|
verify(expr1, expr2, expand)
verify(expr1, expr2, 'expand'(opt1, opt2, ...))
verify(expr1, expr2, normal)
verify(expr1, expr2, 'normal'(expanded))
verify(expr1, expr2, simplify)
verify(expr1, expr2, 'simplify'(opt1, opt2, ...))
|
|
Parameters
|
|
expr1, expr2
|
-
|
anything, assumed to be of type algebraic
|
opt1, opt2, ...
|
-
|
optional parameters passed to expand or simplify
|
|
|
|
|
Description
|
|
•
|
The verify(expr1, expr2, expand), verify(expr1, expr2, normal), and verify(expr1, expr2, simplify) calling sequences return true if the difference between the arguments expr1 and expr2 is zero after having applied the procedures expand, normal, and simplify, respectively.
|
•
|
Any optional parameters are passed on as subsequent arguments to the appropriate procedures.
|
•
|
These verifications are symmetric.
|
•
|
Because expand, normal, and simplify are Maple procedures, they must be enclosed in single quotes to prevent evaluation.
|
•
|
If either expr1 or expr2 is not of type algebraic then false is returned.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
>
|
|
| (13) |
|
|