public class CubicSolverTest
extends java.lang.Object
Constructor and Description |
---|
CubicSolverTest() |
Modifier and Type | Method and Description |
---|---|
void |
acosTiming(java.lang.String msg) |
double[] |
coefsFromRoots(double r0,
double r1,
double r2,
boolean oneRealRoot) |
void |
cosTiming(java.lang.String msg) |
void |
cubeRootTiming(java.lang.String msg) |
double |
dotest(double a,
double b,
double c,
double d,
double x0,
double x1,
double... check) |
void |
generateRandomCubics(int num,
double min,
double max) |
static void |
main(java.lang.String[] args) |
double |
randomRootTest(double min,
double max) |
void |
randomRootTiming(java.lang.String msg,
int cnt,
double min,
double max) |
void |
roottest(double r0,
double r1,
double r2,
boolean oneRealRoot,
double x0,
double x1) |
void |
squareRootTiming(java.lang.String msg) |
void |
test() |
public double[] coefsFromRoots(double r0, double r1, double r2, boolean oneRealRoot)
public void roottest(double r0, double r1, double r2, boolean oneRealRoot, double x0, double x1)
public double dotest(double a, double b, double c, double d, double x0, double x1, double... check)
public void generateRandomCubics(int num, double min, double max)
public double randomRootTest(double min, double max)
public void cubeRootTiming(java.lang.String msg)
public void acosTiming(java.lang.String msg)
public void cosTiming(java.lang.String msg)
public void squareRootTiming(java.lang.String msg)
public void randomRootTiming(java.lang.String msg, int cnt, double min, double max)
public void test()
public static void main(java.lang.String[] args)