|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.func.Maths
public class Maths
Standard mathematical and trigonometric functions. Trigonometric functions work with angles in radians.
Field Summary | |
---|---|
static double |
E
Euler's number e, the base of natural logarithms. |
static double |
Infinity
Positive infinite floating point value. |
static double |
NaN
Not-a-Number floating point value. |
static double |
PI
Pi, the ratio of the circumference of a circle to its diameter. |
static double |
RANDOM
Evaluates to a random number in the range 0<=x<1. |
Method Summary | |
---|---|
static double |
acos(double x)
Arc cosine of an angle. |
static double |
acosh(double x)
Inverse hyperbolic cosine. |
static double |
asin(double x)
Arc sine of an angle. |
static double |
asinh(double x)
Inverse hyperbolic sine. |
static double |
atan(double x)
Arc tangent of an angle. |
static double |
atan2(double y,
double x)
Converts rectangular coordinates ( x ,y )
to polar (r ,theta ). |
static double |
atanh(double x)
Inverse hyperbolic tangent. |
static double |
cos(double theta)
Cosine of an angle. |
static double |
cosh(double x)
Hyperbolic cosine. |
static double |
exp(double x)
Euler's number e raised to a power. |
static double |
hypot(double x,
double y)
Returns the square root of the sum of squares of its two arguments. |
static double |
ln(double x)
Natural logarithm. |
static double |
log10(double x)
Logarithm to base 10. |
static double |
pow(double a,
double b)
Exponentiation. |
static double |
sin(double theta)
Sine of an angle. |
static double |
sinh(double x)
Hyperbolic sine. |
static double |
sqrt(double x)
Square root. |
static double |
tan(double theta)
Tangent of an angle. |
static double |
tanh(double x)
Hyperbolic tangent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double E
public static final double PI
public static final double Infinity
public static final double NaN
NaN!=NaN
).
For most purposes this is equivalent to the blank value.
public static final double RANDOM
Method Detail |
---|
public static double sin(double theta)
theta
- an angle, in radians.
public static double cos(double theta)
theta
- an angle, in radians.
public static double tan(double theta)
theta
- an angle, in radians.
public static double asin(double x)
x
- the value whose arc sine is to be returned.
public static double acos(double x)
x
- the value whose arc cosine is to be returned.
public static double atan(double x)
x
- the value whose arc tangent is to be returned.
public static double exp(double x)
x
- the exponent to raise e to.
public static double log10(double x)
x
- argument
public static double ln(double x)
x
- argument
public static double sqrt(double x)
x
- a value.
x
.
If the argument is NaN or less than zero, the result is NaN.public static double hypot(double x, double y)
x
- a valuey
- a value
x
2 + y
2)public static double atan2(double y, double x)
x
,y
)
to polar (r
,theta
).
This method computes the phase
theta
by computing an arc tangent
of y/x
in the range of -pi to pi.
y
- the ordinate coordinatex
- the abscissa coordinate
theta
component (radians) of the point
(r
,theta
)
in polar coordinates that corresponds to the point
(x
,y
) in Cartesian coordinates.public static double pow(double a, double b)
a
- the base.b
- the exponent.
ab
.public static double sinh(double x)
x
- parameter
public static double cosh(double x)
x
- parameter
public static double tanh(double x)
x
- parameter
public static double asinh(double x)
x
- parameter
public static double acosh(double x)
x
- parameter
public static double atanh(double x)
x
- parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |