solveQuadratic

open fun solveQuadratic(a: Double, b: Double, c: Double): List<Double>
open fun solveQuadratic(a: Float, b: Float, c: Float): List<Float>

Solve a quadratic for x, given coefficients a, b, and c.

Return

List of real roots.

Parameters

a

Coefficient of x^2.

b

Coefficient of x.

c

Constant.