convert/sqrfree
convert to square-free form
Calling Sequence
Parameters
Description
Examples
convert(a, sqrfree, x)
a
-
polynomial
x
optional variable name or list of names
Convert to sqrfree performs a square-free factorization of the polynomial a. It is most often called with the third argument x specified. In this case, content( a, x) is first removed (thus making a primitive) before doing the square-free factorization. The resulting factorization is of the form:
content⁡a,x⁢p1k1⁢p2k2⁢…⁢pnkn
where⁢⁢gcd⁡pi,pj=1⁢⁢for⁢1≤i<j≤n
If called with only two arguments, a complete square-free factorization will be done. A variable is first chosen for which the above computation is done. Next, the content is made square-free by recursive application of convert to sqrfree. This is repeated until there are no variables left in the content.
It is important to realize that the factors will be in random order, not in order of increasing multiplicity as may be expected. Also, the multiplicities are not necessarily distinct as partial factorizations in the input are preserved as much as possible.
convert⁡x2+4⁢x+4,sqrfree,x
x+22
poly≔y2⁢x3+2⁢y2⁢x2+y2⁢x+2⁢y⁢x3+4⁢y⁢x2+2⁢y⁢x:
convert⁡poly,sqrfree,x
y⁢y+2⁢x⁢x+12
convert⁡poly,sqrfree
g≔x+y+1⁢expand⁡x+y+12⁢x−y−33⁢3⁢x+6⁢y−21
g≔x+y+1⁢x2+2⁢y⁢x+y2+2⁢x+2⁢y+1⁢x−y−33⁢3⁢x+6⁢y−21
convert⁡g,sqrfree,x,y
3⁢x+y+13⁢x−y−33⁢x+2⁢y−7
See Also
content
gcd
Download Help Document