verify/sign
verify for sign differences
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, sign)
expr1, expr2
-
anything, assumed to be of type algebraic
The verify(expr1, expr2, sign) calling sequence returns true if any of the following is true:
The arguments are equal.
Multiplying pairs of multiplicands by −1 results in equal arguments.
Given an and bn where n is even, a=b or a=−b.
This verification is more memory and computationally intensive than checking whether the normal of the difference is zero, but it ensures that the two arguments have similar forms.
This verification is symmetric.
verify⁡−xa−b,xb−a,sign
true
p≔3⁢x−y2⁢x−2⁢y−x⁢y⁢x−y−4⁢x⁢x⁢y2+2⁢x−2⁢yy−3⁢x
p≔3⁢x−y2⁢−x⁢y+x−2⁢y⁢−3⁢x−y⁢x⁢y2+2⁢x−2⁢yy−3⁢x
q≔3⁢y−x2⁢x⁢y+2⁢y−x⁢4⁢x−y−x⁢2⁢y−x⁢y2−2⁢x3⁢x−y
q≔3⁢y−x2⁢x⁢y−x+2⁢y⁢−x⁢y2−2⁢x+2⁢y
verify⁡p,q,sign
false
See Also
type/algebraic
verify
Download Help Document
What kind of issue would you like to report? (Optional)