solveCubic

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

pure nothrow
size_t
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: size_t

Number of roots in outRoots.

See Also

Meta