Divide
inert divide function
Calling Sequence
Parameters
Description
Examples
Divide(a, b, 'q')
a, b
-
multivariate polynomials
q
(optional) unevaluated name
The Divide function is a placeholder for the division of the polynomial a by b . It is used in conjunction with mod, modp1, or evala as described below.
The call Divide(a,b,'q') mod p determines whether b divides a modulo p, a prime integer. It returns true if the division succeeds and assigns the quotient to q, such that a=b*q; otherwise it returns false. The polynomials a and b must be multivariate polynomials over the rationals or over a finite field specified by RootOfs.
The call modp1(Divide(a,b,'q'),p) does likewise for a and b polynomials in the modp1 representation, p a prime integer.
The call evala(Divide(a,b,'q')) does likewise for a and b, multivariate polynomials defined over an algebraic number or function field specified by RootOf or radicals. See evala/Divide for more information.
Divide⁡x3+x2+2⁢x+3,x+2,qmod5
true
x2+4⁢x+4
a≔x2+x−2−RootOf⁡_Z2−2:
b≔x−RootOf⁡_Z2−2:
evala⁡Divide⁡a,b,q1
q1
x+1+RootOf⁡_Z2−2
evala⁡Divide⁡x2−z,x−sqrt⁡z,q2
q2
x+z
See Also
divide
Gcd
mod
Prem
Quo
Download Help Document