Class containing basic maths library functions. More...
Static Public Member Functions | |
static double[] | max (double[] x) |
Find the max of array x. | |
static double | sign (double x) |
Sign function. | |
static double | calcMachineEpsilon () |
Calculates the machine epsilon. | |
static double | calcTol (Vector r1, Vector r2) |
Class containing basic maths library functions.
static double kao.math.Functions.calcMachineEpsilon | ( | ) | [static] |
Calculates the machine epsilon.
Returns the smallest value of eps such that 1.0 + eps > 1.0
Calculate the average absolute difference between Vector r1 and Vector r2
r1 | Vector r1 | |
r2 | Vector r2 |
static double [] kao.math.Functions.max | ( | double[] | x | ) | [static] |
Find the max of array x.
x |
static double kao.math.Functions.sign | ( | double | x | ) | [static] |
Sign function.
Return +1 if x > 0, -1 if x < 0 and 0 if x == 0.
x | Value to test |