静态变量 |
自然对数的底 |
E |
圆周率π
|
PI |
静态方法 |
绝对值 |
static double abs(double d) |
|
static float abs(float f) |
|
static int abs(int i) |
|
static long abs(long l) |
|
|
三角函数 |
反三角函数 |
static double acos(double d) |
|
static double asin(double d) |
|
static double atan(double d) |
|
static double atan2(doube a, double b) |
a/b的atan |
三角函数 |
static double sin(double d) |
|
static double cos(double d) |
|
static double tan(double d) |
|
static double sinh(double d) |
双曲余弦 |
static double cosh(double d) |
|
static double tanh(double d) |
|
|
|
|
|
|
角度弧度转换 |
static double toDegrees(double angrad)
angrad: angle radians
|
弧度转角度 |
static double toRadians(double angdeg)
angdeg: angle degrees
|
角度转弧度 |
|
平方根 |
static double sqrt(double d) |
立方根 |
static double cbrt(double d) |
不小于给定值的最小整数 |
static double ceil(double d) |
不大于给定值的最大整数 |
static double floor(double d) |
copySign |
static double copySign(double a, double b)
static float copySign(double c, double d)
|
把b的符号复制给a |
|
次方 |
static double exp(double d) |
e的d次方 |
static double expm1(double d) |
e的d次方-1 |
static double pow(double x, double y) |
x的y次方 |
static double scalb(double d, int i)
static float scalb(float f, int i)
|
d*2i |
|
|
|
??? TODO: fix here |
static double getExponent(double d)
static float getExponent(float f)
|
|
|
a2+b2的平方根 |
static double hypot(double a, double b) |
余数 |
static double IEEERemainder(double d, double e) |
对数 |
static double log(double d) |
自然对数 |
static double log1p(double d) |
参数加1的自然对数 |
static double log10(double d) |
10底对数 |
|
最大最小值 |
最大值 |
static double max(double d, double e)
static float max(float f, float g)
static int max(int i, int j)
static long max(long l, long m)
|
|
最小值 |
static double min(doube d, double e)
static float min(float f, float g)
static int min(int i, int j)
static long min(int l, int m)
|
|
|
邻接的值 |
指定方向邻接值 |
static double nextAfter(double d, double e)
static float nextAfter(float f, float g)
|
|
|
正向邻接值 |
static double nextUp(double d)
static float nextUp(float f)
|
|
|
|
随机数 |
static double random()
0.0~1.0间的随机数
|
近似值 |
static double rint(double d) |
最接近d的整数(以double形式) |
static long round(double d) |
最接近d的整数(long形式) |
static int rount(float f) |
最接近f的整数 |
|
判断0或符号 |
static double signum(double d)
static float signum(float f)
|
0返回0
大于0返回1.0
小于零返回-1.0
|
|
??? |
static double ulp(double d)
static float ulp(float f)
|
|
|
|
|
|
|