The method returns the arcsine of the specified value.
acos(X)
X - A value is specified for the arccosine function.
The return value is a float value representing the arccosine value.
-module(helloworld). -import(math,[acos/1]). -export([start/0]). start() -> Acos = acos(0.7071), io:fwrite("~p~n",[Acos]).
When we run the above program, we will get the following result.
0.785407753397449