math library

Constants

discriminantEpsilon → const double

Properties

randomFallback Random
When you don't care about what Random object you have and don't want to create an unnecessary object you can use this pre-created object.
final

Functions

solveCubic(double a, double b, double c, double d) List<double>
Solves cubic equation ax³ + bx² + cx + d == 0.
solveQuadratic(double a, double b, double c) List<double>
Solves quadratic equation ax² + bx + c == 0.