Atn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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/π. | To convert degrees to radians, multiply degrees by π/180. To convert radians to degrees, multiply radians by 180/π. | ||
== Example == | |||
<pre> | <pre> | ||
REM | REM Atn Example | ||
' | 'Atn calculates the arctangent of a number | ||
DIM Pi | DIM Pi | ||
Pi = | Pi = Atn(1) * 4 | ||
PRINT "The value of pi is " & Pi | PRINT "The value of pi is " & Pi | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 23: | Line 23: | ||
</pre> | </pre> | ||
== 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