Package org.teavm.classlib.java.lang
Class TMath
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TMath
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic double
abs(double n)
static float
abs(float n)
static int
abs(int n)
static long
abs(long n)
static double
acos(double a)
static double
asin(double a)
static double
atan(double a)
static double
atan2(double y, double x)
static double
cbrt(double a)
static double
ceil(double a)
static double
copySign(double magnitude, double sign)
static float
copySign(float magnitude, float sign)
static double
cos(double a)
static double
cosh(double x)
static double
exp(double a)
static double
expm1(double x)
static double
floor(double a)
static int
floorDiv(int a, int b)
static long
floorDiv(long a, int b)
static long
floorDiv(long a, long b)
static int
floorMod(int a, int b)
static int
floorMod(long a, int b)
static long
floorMod(long a, long b)
static int
getExponent(double d)
static int
getExponent(float f)
static double
hypot(double x, double y)
static double
IEEEremainder(double f1, double f2)
static double
log(double a)
static double
log10(double a)
static double
log1p(double x)
static double
max(double a, double b)
static float
max(float a, float b)
static int
max(int a, int b)
static long
max(long a, long b)
static double
min(double a, double b)
static float
min(float a, float b)
static int
min(int a, int b)
static long
min(long a, long b)
static double
nextAfter(double start, double direction)
static float
nextAfter(float start, double direction)
static double
nextDown(double d)
static float
nextDown(float d)
static double
nextUp(double d)
static float
nextUp(float d)
static double
pow(double x, double y)
static double
random()
static double
rint(double a)
static long
round(double a)
static int
round(float a)
static double
signum(double d)
static float
signum(float d)
static double
sin(double a)
static double
sinh(double x)
static double
sqrt(double a)
static double
tan(double a)
static double
tanh(double x)
static double
toDegrees(double angrad)
static double
toRadians(double angdeg)
static double
ulp(double d)
static float
ulp(float d)
-
Field Details
-
E
public static final double E- See Also:
- Constant Field Values
-
PI
public static final double PI- See Also:
- Constant Field Values
-
-
Method Details
-
sin
public static double sin(double a) -
cos
public static double cos(double a) -
tan
public static double tan(double a) -
asin
public static double asin(double a) -
acos
public static double acos(double a) -
atan
public static double atan(double a) -
toRadians
public static double toRadians(double angdeg) -
toDegrees
public static double toDegrees(double angrad) -
exp
public static double exp(double a) -
log
public static double log(double a) -
log10
public static double log10(double a) -
sqrt
public static double sqrt(double a) -
cbrt
public static double cbrt(double a) -
IEEEremainder
public static double IEEEremainder(double f1, double f2) -
ceil
public static double ceil(double a) -
floor
public static double floor(double a) -
pow
public static double pow(double x, double y) -
rint
public static double rint(double a) -
atan2
public static double atan2(double y, double x) -
round
public static int round(float a) -
round
public static long round(double a) -
floorDiv
public static int floorDiv(int a, int b) -
floorDiv
public static long floorDiv(long a, int b) -
floorDiv
public static long floorDiv(long a, long b) -
floorMod
public static int floorMod(int a, int b) -
floorMod
public static int floorMod(long a, int b) -
floorMod
public static long floorMod(long a, long b) -
random
public static double random() -
min
public static int min(int a, int b) -
max
public static int max(int a, int b) -
min
public static long min(long a, long b) -
max
public static long max(long a, long b) -
min
public static double min(double a, double b) -
max
public static double max(double a, double b) -
min
public static float min(float a, float b) -
max
public static float max(float a, float b) -
abs
public static int abs(int n) -
abs
public static long abs(long n) -
abs
public static float abs(float n) -
abs
public static double abs(double n) -
ulp
public static double ulp(double d) -
ulp
public static float ulp(float d) -
signum
public static double signum(double d) -
signum
public static float signum(float d) -
sinh
public static double sinh(double x) -
cosh
public static double cosh(double x) -
tanh
public static double tanh(double x) -
hypot
public static double hypot(double x, double y) -
expm1
public static double expm1(double x) -
log1p
public static double log1p(double x) -
copySign
public static float copySign(float magnitude, float sign) -
copySign
public static double copySign(double magnitude, double sign) -
getExponent
public static int getExponent(double d) -
getExponent
public static int getExponent(float f) -
nextAfter
public static double nextAfter(double start, double direction) -
nextAfter
public static float nextAfter(float start, double direction) -
nextUp
public static double nextUp(double d) -
nextUp
public static float nextUp(float d) -
nextDown
public static double nextDown(double d) -
nextDown
public static float nextDown(float d)
-