references/sleep-functions/acos.md

GitHub

acos

Category: Math

Source: https://sleep.dashnine.org/manual/acos.html


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

Example:


$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");

Output:

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

See Also

&asin; &atan; &atan2; &cos; &sin; &tan