Atn: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
JwellsNB (talk | contribs)
No edit summary
JwellsNB (talk | contribs)
Line 41: Line 41:


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



Revision as of 04:06, 1 May 2013

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

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 p/180. To convert radians to degrees, multiply radians by 180/p.

== Example (BASIC) ==

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

Dim Pi
Pi = Atn(1) * 4
Print "The value of pi is " & Pi

Example (JavaScript)

//Atn Example
//Atn calculates the arctangent of a number

var  Pi;
Pi = Math.atan(1) * 4;
NSB.Print(("The value of pi is ")  +  (Pi));

Output

The value of pi is 3.141592653589793

Related Items

Cos, Sin, Tan

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