solveCubic

Finds the roots of a cubic polynomial a + b x + c x^2 + d x^3 = 0

@nogc pure nothrow
int
solveCubic
(
T
)
(
T a
,
T b
,
T c
,
T d
,)
if (
isFloatingPoint!T
)

Parameters

outRoots T[]

array of root results, should have room for at least 2 elements.

Return Value

Type: int

Number of roots in outRoots.

See Also

Meta