Atn: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
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
Line 21: Line 20:


<pre>
<pre>
The value of pi is 3.141593
The value of pi is 3.141593
</pre>
</pre>

Revision as of 03:38, 29 June 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