Click or drag to resize

CubicRoots Method

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.RootFinding
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public 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, Complex
A tuple of three complex roots of the cubic polynomial.
See Also