Polynomial.Roots (Polynomial, Double, Int32) Method

Computes the roots of polynomial p via Weierstrass iteration.
public static Complex[] Roots( 
   Polynomial p
   double tolerance
   int max_iterations 
)

Parameters

p
Polynomial

Polynomial to compute the roots of.

tolerance
double

Computation precision; e.g. 1e-12 denotes 12 exact digits.

max_iterations
int

Maximum number of iterations; this value is used to bound the computation effort if desired pecision is hard to achieve.

Return Value

Complex[]

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition