Calculate the arc cosine of the argument.
n - the value (converted to a double) to apply this function to.
A double scalar.
$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