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=u⁢f1e1⁢⋯⁢fnen where fi is primitive and square-free, that is, gcd⁡fi,∂∂xfi=1 for all i and gcd⁡fi,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⁡−12⁢x3+9⁢x+3
−3,x−1,1,1+2⁢x,2
f≔x3⁢y−x3−x2⁢y2+x2⁢y
f≔x3⁢y−x2⁢y2−x3+x2⁢y
sqrfree⁡f,x
y−1,x,2,−y+x,1
sqrfree⁡f,y
−x2,−x⁢y+y2+x−y,1
sqrfree⁡f,x,y
1,x,2,y−1,1,−y+x,1
g≔x+y+1⁢expand⁡x+y+12⁢x−y−33⁢3⁢x+6⁢y−21
g≔x+y+1⁢x2+2⁢x⁢y+y2+2⁢x+2⁢y+1⁢x−y−33⁢3⁢x+6⁢y−21
sqrfree⁡g,x,y
3,x+y+1,3,x−y−3,3,x+2⁢y−7,1
h≔x+y3expand⁡x2−y22⁢x2+1
h≔x+y3x6−2⁢x4⁢y2+x2⁢y4+x4−2⁢x2⁢y2+y4
sqrfree⁡h
1,x+y,1,x2+1,−1,−y+x,−2
sqrfree⁡h,y
1x2+1,x+y,1,y−x,−2
See Also
convert/sqrfree
factor
isqrfree
PolynomialTools[Split]
Sqrfree
Download Help Document