public class CubicRootFinder extends Object implements Polynomial1DRootFinder<ComplexNumber>
As the polynomial has real coefficients, the roots of the cubic can be found using the method described here.
| Constructor and Description |
|---|
CubicRootFinder() |
| Modifier and Type | Method and Description |
|---|---|
ComplexNumber[] |
getRoots(RealPolynomialFunction1D function) |
public ComplexNumber[] getRoots(RealPolynomialFunction1D function)
getRoots in interface Polynomial1DRootFinder<ComplexNumber>function - The function, not nullIllegalArgumentException - If the function is not cubicCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.