Core Function ACos

From Sputnik Wiki
Jump to: navigation, search
ACos( <expression> )

Contents

Description

Calculates the arcCosine of a number.

Parameters

expression

Any value between -1 and 1 inclusive.

Return Value

Returns the trigonometric arccosine of expression. Result is in radians.

Remarks

ACos(x) is mathematically defined only for -1 < x < 1, so ACos tends to return NaN for other values of x.

Example

$x = ACos(0.5);
$radToDeg = 180 / @PI;
$y = ACos(-1) * $radToDeg;
println( "Value is: $y " ); //arcCosine of -1 returns 180°
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox