Atn: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
ATN(''number'')
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.''  


'''Description'''
Atn(''number'')


ATN returns the arctangent of a number in radians. The required parameter, ''number'', is any numeric expression.
== 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'''
== Example (BASIC) ==


<pre>
<pre>
Rem Atn Example
'Atn calculates the arctangent of a number


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


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


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


The value of pi is 3.141593
== Related Items ==
</pre>
 
[[cos|Cos]], [[sin|Sin]], [[tan|Tan]]
 
[[Category:Language Reference]]


'''Related Items'''
[[Category:Math]]


[[cos|COS]], [[sin|SIN]], [[tan|TAN]]
[[Category:BASIC Functions]]

Latest revision as of 15:19, 25 March 2019

This function is for BASIC compatibility. It is not available in pure JavaScript projects.

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 (BASIC)

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

Related Items

Cos, Sin, Tan