divide
exact polynomial division
Calling Sequence
Parameters
Description
Examples
divide(a, b, 'q')
a, b
-
polynomials with rational number coefficients
q
(optional) unevaluated name
divide checks if the polynomial b divides a over the rationals. If so, true is returned; otherwise false is returned.
If the division is successful and there is a third argument 'q', then the value of the quotient is assigned to q. In the case of an unsuccessful division the name q will not be affected.
divide⁡x3+5⁢x−1,x+1,q
false
divide⁡x3−y3,x−y,q
true
x2+y⁢x+y2
See Also
Divide
gcd
Rem
rem
Download Help Document