Atn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.'' | |||
Atn(''number'') | Atn(''number'') | ||
Line 16: | Line 18: | ||
Pi = Atn(1) * 4 | Pi = Atn(1) * 4 | ||
Print "The value of pi is " & Pi | Print "The value of pi is " & Pi | ||
</pre> | </pre> | ||
Revision as of 18:06, 24 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