Find all three complex roots of the cubic equation d + c*x + b*x^2 + a*x^3 = 0.
Note the special coefficient order ascending by exponent (consistent with polynomials).
Namespace: Altaxo.Calc.RootFindingAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static (Complex , Complex , Complex ) Roots(
double d,
double c,
double b,
double a
)
Parameters
- d Double
- The constant coefficient.
- c Double
- The coefficient of the linear term.
- b Double
- The coefficient of the quadratic term.
- a Double
- The coefficient of the cubic term.
Return Value
ValueTupleComplex,
Complex,
ComplexA tuple of three complex roots of the cubic polynomial.
See Also