object MathUtil
(source)
Various math utilities.
numericalDerivative |
Numerically compute dy/dx from the given x and y values. The returned list is padded to match the length of the original sequences. fun numericalDerivative(x: List<Double>, y: List<Double>): List<Double> |
solveQuadratic |
Returns the real solutions to the quadratic ax^2 + bx + c. fun solveQuadratic(a: Double, b: Double, c: Double): List<Double> |