Math.atan()

Signature

double atan (double a)

Domain

action, condition

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

NameTypeDescription
adoubleThe value whose arc tangent is to be returned.

Returns

TypeDescription
doubleThe arc tangent of the argument.

Cautions

none

Example


String result = String.valueOfDouble (Math.atan (0.5));

Result is: result contains: "0.4636476090008061"