org.python.core
Class ExtraMath
java.lang.Object
org.python.core.ExtraMath
public class ExtraMath
extends java.lang.Object
A static utility class with two additional math functions.
static boolean | close(double v, double w)
|
static boolean | close(double v, double w, double tol) - Are v and w "close" to each other?
|
static double | closeFloor(double v) - Returns floor(v) except when v is very close to the next number, when it
returns ceil(v);
|
static double | hypot(double v, double w)
|
static double | log10(double v)
|
CLOSE
public static double CLOSE
EPSILON
public static double EPSILON
LOG10
public static double LOG10
close
public static boolean close(double v,
double w)
close
public static boolean close(double v,
double w,
double tol)
Are v and w "close" to each other? Uses a scaled tolerance.
closeFloor
public static double closeFloor(double v)
Returns floor(v) except when v is very close to the next number, when it
returns ceil(v);
hypot
public static double hypot(double v,
double w)
log10
public static double log10(double v)
Jython homepage