acos

Synopsis

$ acos(n)

Calculate the arc cosine of the argument.

Parameters

n - the value (converted to a double) to apply this function to.

Returns

A double scalar.

Examples

$value = acos(-0.5); println("arccosine of -0.5 is $value radians"); $value = degrees(acos(-0.5)); println("arccosine of -0.5 is $value degrees");

arccosine of -0.5 is 2.0943951023931957 radians arccosine of -0.5 is 120.00000000000001 degrees

See Also