CubicRealPolynomial

external object CubicRealPolynomial(source)

Defines functions for 3rd order polynomial functions of one variable with only real coefficients.

See also

Functions

Link copied to clipboard
external fun computeDiscriminant(a: Double, b: Double, c: Double, d: Double): Double

Provides the discriminant of the cubic equation from the supplied coefficients.

Link copied to clipboard

Provides the real valued roots of the cubic polynomial with the provided coefficients.