atan

Synopsis

$ atan(n)

Calculate the arc tangent of the argument. (answer in radians)

Parameters

n - the value (converted to a double) to apply this function to.

Returns

A double scalar.

Examples

$value = atan(1); println("arctangent of 1 is $value radians"); $value = degrees(atan(1)); println("arctangent of 1 is $value degrees");

arctangent of 1 is 0.7853981633974483 radians arctangent of 1 is 45.0 degrees

See Also