Atn

Description

Returns the arctangent of a number. The arctangent is the angle whose tangent is number.

Category

Mathematical functions

Syntax


Atn(number) 

See also

Tan, Sin, Cos, Pi

Parameters

Parameter
Description
number
Tangent of an angle

Usage

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

Example

<!--- This snippet shows how to use Atn --->

<html>

<head>

<title>

Atn Example

</title>

</head>

<body bgcolor = silver>

<H3>Atn Example</H3>

<!--- output its Atn value --->

<cfif IsDefined("FORM.AtnNum")>

  <cfif IsNumeric(FORM.atnNum)>

    Atn(<cfoutput>#FORM.atnNum#</cfoutput>) = 

     <cfoutput>#Atn(FORM.atnNum)# radians = 

      #Evaluate(Atn(FORM.atnNum * 180/PI())# 

       Degrees</cfoutput>

  <cfelse>

<!--- if it is empty, output an error message --->

    <H4>Please enter a number</H4>

  </cfif>

</cfif>



<form action = "atn.cfm" method = "POST">

<P>Type in a number to get its arctangent in Radians and Degrees

<BR><input type = "Text" name = "atnNum" size = "25">

<P><input type = "Submit" name = ""> <input type = "RESET">

</FORM>

</body>

</html>    



Banner.Novgorod.Ru