Math.atan()
Signature
double atan (double a)
Description
Returns the arc tangent of an angle, in the range of -pi/2
through pi/ 2. Special cases:
If the argument is NaN, then the result is NaN.
If the argument is zero, then the result is a zero with the
same sign as the argument.
A result must be within 1 ulp of the correctly rounded result. Results
must be semi-monotonic.
Parameters
Name | Type | Description |
a | double | The value whose arc tangent is to be returned. |
Returns
Type | Description |
double | The arc tangent of the argument. |
Example
String result = String.valueOfDouble (Math.atan (0.5));
Result is: result contains: "0.4636476090008061"