sin, cos, tan: Trigonometric functions
static double acos(double a)
- Returns the arc cosine of a value.
static double asin(double a)
- Returns the arc sine of a value.
static double atan(double a)
- Returns the arc tangent of a value.
static double atan2(double y, double x)
- Returns the angle theta.
static double cos(double a)
- Returns the trigonometric cosine of an angle.
static double cosh(double x)
- Returns the hyperbolic cosine of a double value.
static double sin(double a)
- Returns the trigonometric sine of an angle.
static double sinh(double x)
- Returns the hyperbolic sine of a double value.
static double tan(double a)
- Returns the trigonometric tangent of an angle.
static double tanh(double x)
- Returns the hyperbolic tangent of a double value.
public class Main {
public static void main(String[] args) {
System.out.print(Math.sin(1));
}
}
The output:
0.8414709848078965
Home
Java Book
Essential Classes
Java Book
Essential Classes
Math:
- Math class
- Constant E and PI
- Get the absolute value
- sin, cos, tan: Trigonometric functions
- Cube root and square root
- Ceilling and flooring value
- Copy sign
- Raise the power
- Get exponent
- sqrt(x2 +y2)
- IEEE remainder
- logarithm
- Max, min value
- Next value
- Math Random
- Round to int to double
- Round a value to integer
- value * 2^ scaleFactor
- Get the sign
- Degree to Radian, and Radian to Degree
- Returns the size of an ulp of the argument