Description

Arctangent function. The arctangent is the angle whose tangent is number.

Returns

The arctangent, in radians, of a number.

Category

Mathematical functions

Function syntax

Atn(number)

See also

SinASinCosACosPi

Parameters

Parameter

Description

number

Tangent of an angle

Usage

The range of the result is -p/2 to p/2 radians. To convert degrees to radians, multiply degrees by p/180. To convert radians to degrees, multiply radians by 180/p.

Example

<cfscript>
   number=0.5;
   writeOutput(atn(0.5));  // Returns 0.463647609001
</cfscript>

Example

<cfscript>
   number=0.5;
   writeOutput(atn(0.5));  // Returns 0.463647609001
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy