private class LaguerreSolver.ComplexSolver
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
LaguerreSolver.ComplexSolver() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRoot(double min,
double max,
Complex z)
Check whether the given complex root is actually a real zero
in the given interval, within the solver tolerance level.
|
Complex |
solve(Complex[] coefficients,
Complex initial)
Find a complex root for the polynomial with the given coefficients,
starting from the given initial value.
|
Complex[] |
solveAll(Complex[] coefficients,
Complex initial)
Find all complex roots for the polynomial with the given
coefficients, starting from the given initial value.
|
public boolean isRoot(double min, double max, Complex z)
min
- Lower bound for the interval.max
- Upper bound for the interval.z
- Complex root.true
if z is a real zero.public Complex[] solveAll(Complex[] coefficients, Complex initial) throws NullArgumentException, NoDataException, TooManyEvaluationsException
coefficients
- Polynomial coefficients.initial
- Start value.TooManyEvaluationsException
- if the maximum number of evaluations is exceeded.NullArgumentException
- if the coefficients
is
null
.NoDataException
- if the coefficients
array is empty.public Complex solve(Complex[] coefficients, Complex initial) throws NullArgumentException, NoDataException, TooManyEvaluationsException
coefficients
- Polynomial coefficients.initial
- Start value.TooManyEvaluationsException
- if the maximum number of evaluations is exceeded.NullArgumentException
- if the coefficients
is
null
.NoDataException
- if the coefficients
array is empty.Copyright (c) 2003-2014 Apache Software Foundation