Polynomial - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


SolveTools

  

Polynomial

  

solve a single polynomial for one variable

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Polynomial( f, x, ...)

Parameters

f

-

polynomial in x

x

-

variable

options

-

(optional) equation(s) of the form keyword = value

Options

• 

explicit : truefalse

• 

domain : absolute, rational, integer, real, or parametric.

• 

dropmultiplicity : truefalse

Description

• 

Solve for a polynomial in x.  Polynomial uses factor, compoly, and explicit root formulae to write the roots explicitly where possible.

• 

If not possible, a list of indexed RootOf will be returned.

• 

The behavior of Polynomial is controlled by the option explicit, or by the environment variable _EnvExplicit.  In all cases the option, if specified, overrides the environment variable. has three possible behaviors depending on the option

• 

By default (if the option explicit not specified and _EnvExplicit is not set) explicit roots are calculated for polynomials of degree 2 and 3 but not for polynomials higher degree (unless they factor or decompose). Implicit roots that do not involve non-numeric symbols are given as indexed RootOfs.

• 

If explicit is specified as an option (or _EnvExplicit=true) then explicit roots are computed when possible.

• 

If explicit=false is specified as an option (or _EnvExplicit=false) then no attempt is made to compute explicit roots, and unspecialized RootOf expressions are returned.

• 

The domain option can be used to restrict the roots returned. Using domain=real or domain=integer will return only real or integer roots respectively.  domain=absolute will return all the roots and domain=rational will return the roots which lie in the same field as the coefficients of f in the same way as roots; in particular if f is a polynomial with integer coefficients, domain=rational will return only the roots which are rational numbers.  domain=parametric will return a piecewise expression giving a discussion of different cases.

• 

If the option dropmultiplicity is specified, only one copy of each root is returned.

Examples

> 

with⁡SolveTools:

> 

Polynomial⁡0,x

x

(1)
> 

Polynomial⁡1,x

(2)
> 

Polynomial⁡x2,x

0,0

(3)
> 

Polynomial⁡x2−1,x

1,−1

(4)
> 

Polynomial⁡x2+1,x,explicit=false

RootOf⁡_Z2+1,label=_L1

(5)
> 

Polynomial⁡x5+2⁢x+1,x

RootOf⁡_Z5+2⁢_Z+1,index=1,RootOf⁡_Z5+2⁢_Z+1,index=2,RootOf⁡_Z5+2⁢_Z+1,index=3,RootOf⁡_Z5+2⁢_Z+1,index=4,RootOf⁡_Z5+2⁢_Z+1,index=5

(6)
> 

Polynomial⁡x5+2⁢x+1,x,explicit=false

RootOf⁡_Z5+2⁢_Z+1,label=_L2

(7)
> 

f1≔expand⁡x−14⁢eval⁡z4−z−1,z=x3+x:

> 

Polynomial⁡f1,x,domain=integer

1,1,1,1

(8)
> 

Polynomial⁡f1,x,domain=integer,dropmultiplicity

1

(9)
> 

Polynomial⁡f1,x,domain=rational

1,1,1,1

(10)
> 

Polynomial⁡f1,x,domain=real

RootOf⁡_Z12+4⁢_Z10+6⁢_Z8+4⁢_Z6+_Z4−_Z3−_Z−1,−0.5542396980,RootOf⁡_Z12+4⁢_Z10+6⁢_Z8+4⁢_Z6+_Z4−_Z3−_Z−1,0.7679130647,1,1,1,1

(11)
> 

SolveTools:-Polynomial⁡a⁢x2−b+a⁢x+b,x

ba,1

(12)
> 

Polynomial⁡a⁢x2−b+a⁢x+b,x,domain=parametric

xb=01otherwisea=01,baotherwise

(13)

See Also

compoly

factor

roots

solve

SolveTools