Atn: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


<pre>
<pre>
REM Atn Example
Rem Atn Example
'Atn calculates the arctangent of a number
'Atn calculates the arctangent of a number
DIM Pi
Dim Pi
Pi = Atn(1) * 4
Pi = Atn(1) * 4
PRINT "The value of pi is " & Pi
Print "The value of pi is " & Pi
</pre>
</pre>


Line 25: Line 25:
== Related Items ==
== Related Items ==


[[cos|COS]], [[sin|SIN]], [[tan|TAN]]
[[cos|Cos]], [[sin|Sin]], [[tan|Tan]]


[[Category:Language Reference]]
[[Category:Language Reference]]

Revision as of 00:21, 24 August 2012

Atn(number)

Description

Atn returns the arctangent of a number in radians. The required parameter, number, is any numeric expression.

To convert degrees to radians, multiply degrees by π/180. To convert radians to degrees, multiply radians by 180/π.

Example

Rem Atn Example
'Atn calculates the arctangent of a number
Dim Pi
Pi = Atn(1) * 4
Print "The value of pi is " & Pi

Output

The value of pi is 3.141593

Related Items

Cos, Sin, Tan