sqrfree
square-free factorization function
Calling Sequence
Parameters
Description
Examples
sqrfree(a)
sqrfree(a, x)
a
-
multivariate polynomial or rational function
x
name or list or set of names
The sqrfree function computes the square-free factorization of the multivariate polynomial or the rational function a in the variable(s) x over an algebraic number field.
The square-free factorization is returned in the form u,f1,e1,...,fn,en such that a=uf1e1⋯fnen where fi is primitive and square-free, that is, gcdfi,∂∂xfi=1 for all i and gcdfi,fj=1 for all i≠j hence u is the content(a,x) times a unit.
In the case of two arguments, the second argument x denotes the main variable(s). In the case of one argument, all the names in the polynomial a are used as variables.
Note that the ei are not necessarily distinct as partial factorizations in the input are preserved as much as possible.
sqrfree−12x3+9x+3
−3,x−1,1,1+2x,2
f≔x3y−x3−x2y2+x2y
f≔x3y−x2y2−x3+x2y
sqrfreef,x
y−1,x,2,−y+x,1
sqrfreef,y
−x2,−xy+y2+x−y,1
sqrfreef,x,y
1,x,2,y−1,1,−y+x,1
g≔x+y+1expandx+y+12x−y−333x+6y−21
g≔x+y+1x2+2xy+y2+2x+2y+1x−y−333x+6y−21
sqrfreeg,x,y
3,x+y+1,3,x−y−3,3,x+2y−7,1
h≔x+y3expandx2−y22x2+1
h≔x+y3x6−2x4y2+x2y4+x4−2x2y2+y4
sqrfreeh
1,x+y,1,x2+1,−1,−y+x,−2
sqrfreeh,y
1x2+1,x+y,1,y−x,−2
See Also
convert/sqrfree
factor
isqrfree
PolynomialTools[Split]
Sqrfree
Download Help Document