HyperMath

PolyRoots

PolyRoots

Previous topic Next topic No expanding text in this topic  

PolyRoots

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Finds the roots of a polynomial.

Syntax

r = PolyRoots(c)

Argument

Name

Description

 

c

A vector of polynomial coefficients in descending order of power. Must be of length greater than one.

Output

Name

Description

 

r

The roots of the polynomial.  Both real and complex roots are computed.

Example

Find the roots of x2 – 3x + 2 = 0

 

Syntax

 

R = PolyRoots([1, -3, 2])

 

Result

 

R =   2.0    

     1.0

See Also:

PolyVal