Core Function ATan
From Sputnik Wiki
(Difference between revisions)
m (1 revision) |
|||
(2 intermediate revisions by one user not shown) | |||
Line 12: | Line 12: | ||
Any valid numeric expression. | Any valid numeric expression. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Return Value === | === Return Value === | ||
− | |||
Returns the trigonometric arctangent of expression. | Returns the trigonometric arctangent of expression. | ||
− | |||
− | |||
− | |||
=== Remarks === | === Remarks === | ||
Line 34: | Line 24: | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
− | |||
$x = ATan(0.5); | $x = ATan(0.5); | ||
$pi = 4 * ATan(1); | $pi = 4 * ATan(1); | ||
Line 40: | Line 29: | ||
$y = ATan(1) * $radToDeg; | $y = ATan(1) * $radToDeg; | ||
println( "Value is: $y " ); //arctangent of 1 returns 45° | println( "Value is: $y " ); //arctangent of 1 returns 45° | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Latest revision as of 12:38, 14 June 2015
ATan( <expression>, <expression2> )
Contents |
Description
Calculates the arctangent of a number.
Parameters
expression
Any valid numeric expression.
Return Value
Returns the trigonometric arctangent of expression.
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°