solveQuartic

Returns the roots of a quartic polynomial a + b x + c x^2 + d x^3 + e x^4 = 0

Returns number of roots. roots slice should have room for up to 4 elements.

@nogc pure nothrow
int
solveQuartic
(
T
)
(
T a
,
T b
,
T c
,
T d
,
T e
,
T[] roots
)
if (
isFloatingPoint!T
)

Bugs

doesn't pass unit-test!

See Also

Meta