verify/polynom
verify a relation between two polynomials
Calling Sequence
Parameters
Description
Examples
verify(expr1, expr2, polynom)
verify(expr3, expr4, polynom(ver))
verify(expr3, expr4, polynom(ver, var))
expr1, expr2
-
anything, assumed to be of type polynom
expr3, expr4
anything, assumed to be of type polynom(anything, var)
ver
verification for the coefficient domain
var
name or list or set of names (the variables)
The verify(expr1, expr2, polynom), verify(expr3, expr4, polynom(ver)), and verify(expr3, expr4, polynom(ver, var)) calling sequences return true if it can be determined that the polynomials expr1 and expr2 satisfy a relation by comparing the coefficients, either by testing for equality or by using the verification ver.
This verification procedure does not expand polynomials, but instead maps itself onto the operands which are not of type expanded. This preserves the form of the polynomial and does not introduce changes due to the expansion.
The verification polynom is symmetric and verifications polynom(ver) or polynom(ver, var) are symmetric if and only if the verification ver is symmetric.
If verify(0, 0, ver) does not evaluate to true, then this routine returns false or FAIL, as appropriate, since no polynomial is dense.
If either expr1 or expr2 is not of type polynom or, if the option var is specified, of type polynom(anything, var), then false is returned.
Digits≔3
verify⁡x−0.32⁢3.2⁢x3−5.6⁢x,x−0.31⁢3.2⁢x3−5.7⁢x,polynom⁡float⁡2,x
false
verify⁡3.2⁢x4−1.024⁢x3−5.6⁢x2+1.792⁢x,x−0.31⁢3.2⁢x3−5.7⁢x,polynom⁡float⁡2,x
verify⁡3.2⁢x4−1.024⁢x3−5.6⁢x2+1.792⁢x,3.2⁢x4−0.992⁢x3−5.7⁢x2+1.767⁢x,polynom⁡float⁡2,x
verify⁡x−1.1⁢x+1.1,x−1.0⁢x+1.2,polynom⁡float⁡10,x
true
verify⁡x2−1.21,x2+0.2⁢x−1.20,polynom⁡float⁡10,x
verify⁡x2⁢x2−2⁢x,x4−2⁢x3,polynom
verify⁡expand⁡x2⁢x2−2⁢x,x4−2⁢x3,polynom
See Also
type/polynom
verify
Download Help Document