sqrfree - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


convert/sqrfree

convert to square-free form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(a, sqrfree, x)

Parameters

a

-

polynomial

x

-

optional variable name or list of names

Description

• 

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:

contenta,xp1k1p2k2pnkn

wheregcdpi,pj=1for1i<jn

• 

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.

Examples

convertx2+4x+4&comma;sqrfree&comma;x

x+22

(1)

polyy2x3+2y2x2+y2x+2yx3+4yx2+2yx&colon;

convertpoly&comma;sqrfree&comma;x

yy+2xx+12

(2)

convertpoly&comma;sqrfree

yy+2xx+12

(3)

gx+y+1expandx+y+12xy333x+6y21

gx+y+1x2+2yx+y2+2x+2y+1xy333x+6y21

(4)

convertg&comma;sqrfree&comma;x&comma;y

3x+y+13xy33x+2y7

(5)

See Also

content

gcd