Core Function ATan
From Sputnik Wiki
				
				
				(Difference between revisions)
				
																
				
				
								
				UberFoX  (Talk | contribs)
(Created page with "<pre> ATan( <expression> ) </pre> === Description === Calculates the arctangent of a number. === Parameters === ==== expression ==== Any valid numeric expression. === Retur...")
Newer edit →
(Created page with "<pre> ATan( <expression> ) </pre> === Description === Calculates the arctangent of a number. === Parameters === ==== expression ==== Any valid numeric expression. === Retur...")
Newer edit →
Revision as of 22:30, 16 November 2011
ATan( <expression> )
Contents | 
Description
Calculates the arctangent of a number.
Parameters
expression
Any valid numeric expression.
Return Value
Returns the trigonometric arctangent of expression. Result is in radians..
Remarks
The result of 4 * ATan(1) is PI.
Example
$x = ATan(0.5); $pi = 4 * ATan(1); $radToDeg = 180 / @PI; $y = ATan(1) * $radToDeg; println( "Value is: $y " ); //arctangent of 1 returns 45°