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 1: Line 1:
ATN(''number'')
Atn(''number'')


'''Description'''
== Description ==


ATN returns the arctangent of a number in radians. The required parameter, ''number'', is any numeric expression.
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/π.
To convert degrees to radians, multiply degrees by π/180. To convert radians to degrees, multiply radians by 180/π.


'''Example'''
== Example ==


<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>


'''Output'''
== Output ==


<pre>
<pre>
Line 23: Line 23:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[cos|COS]], [[sin|SIN]], [[tan|TAN]]
[[cos|COS]], [[sin|SIN]], [[tan|TAN]]
[[Category:Language Reference]]

Revision as of 20:17, 8 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