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

Online Help

All Products    Maple    MapleSim


roots

exact roots of a polynomial with respect to one variable

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

roots(a, x, K)

Parameters

a

-

polynomial (either univariate or in x)

K

-

(optional) algebraic number field extension

x

-

(optional) polynomial variable

Description

• 

The roots function computes the exact roots of a polynomial over the rationals or an algebraic number field. The roots are returned as a list of pairs of the form [[r1,m1],...,[rn,mn]] where ri is a root of the polynomial a with multiplicity mi, that is, x−rimi divides a.

• 

The call roots(a) returns roots over the field implied by the coefficients present.  For example, if all the coefficients are rational, then the rational roots are computed.  If a has no roots in the implied coefficient field, then an empty list is returned.  This assumes that a is a univariate polynomials.

• 

The call roots(a, K) computes the roots of a over the algebraic number field defined by K. Here K must be a single RootOf, or a list or set of RootOfs, or a single radical, or a list or set of radicals.  For example, if I is given as the second argument, then roots looks for the roots of a over the complex rationals.

• 

The calls roots(a, x) and roots(a, x, K) are equivalent to the above if a is univariate in x. Otherwise, it treats the other indeterminates in a as parameters, and finds all roots as above and ignoring symbolic roots.

Examples

> 

roots⁡2⁢x3+11⁢x2+12⁢x−9

−3,2,12,1

(1)
> 

roots⁡x4−4

(2)
> 

roots⁡x4−4,x

(3)
> 

roots⁡x3+−6−b−a⁢x2+6⁢a+5+5⁢b+a⁢b⁢x−5⁢a−5⁢a⁢b,x

5,1

(4)
> 

roots⁡x4−4,sqrt⁡2

−2,1,2,1

(5)
> 

roots⁡x4−4,I,sqrt⁡2

−2,1,−I⁢2,1,2,1,I⁢2,1

(6)
> 

alias⁡α=RootOf⁡x2−2:

> 

alias⁡β=RootOf⁡x2+2:

> 

roots⁡x4−4⁢x−a,x,α

−α,1,α,1

(7)
> 

roots⁡x4−4,α,β

β,1,−α,1,α,1,−β,1

(8)

See Also

factor

realroot

root

RootOf

Roots

solve

sturm

sturmseq