public class MachineAccuracy
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
EPSILON
Machine accuracy constant
|
static double |
SQRT_EPSILON
SQRT Machine accuracy constant
|
static double |
SQRT_SQRT_EPSILON
SQRT SQRT Machine accuracy constant
|
Constructor and Description |
---|
MachineAccuracy() |
Modifier and Type | Method and Description |
---|---|
static double |
computeEpsilon()
Compute EPSILON from scratch
|
static boolean |
same(double a,
double b)
Checks if the two numbers given are the same within a certain threshold.
|
public static double EPSILON
public static double SQRT_EPSILON
public static double SQRT_SQRT_EPSILON
public static double computeEpsilon()
public static boolean same(double a, double b)
a
- first number to compare.b
- second number to compare.