public class MathUtil
Various math utilities.
| Modifier and Type | Field and Description |
|---|---|
static MathUtil |
INSTANCE
Various math utilities.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Double> |
numericalDerivative(java.util.List<java.lang.Double> x,
java.util.List<java.lang.Double> y)
Numerically compute dy/dx from the given x and y values. The returned list is padded to match
the length of the original sequences.
|
static java.util.List<java.lang.Double> |
solveQuadratic(double a,
double b,
double c)
Returns the real solutions to the quadratic ax^2 + bx + c.
|
public static MathUtil INSTANCE
Various math utilities.
@JvmStatic
@NotNull
public static java.util.List<java.lang.Double> solveQuadratic(double a,
double b,
double c)
Returns the real solutions to the quadratic ax^2 + bx + c.
@NotNull
public java.util.List<java.lang.Double> numericalDerivative(@NotNull
java.util.List<java.lang.Double> x,
@NotNull
java.util.List<java.lang.Double> y)
Numerically compute dy/dx from the given x and y values. The returned list is padded to match the length of the original sequences.
x - x-valuesy - y-values