
该方法返回指定值的反正弦值。
语法
acos(X)
参数
X-为反余弦函数指定了一个值。
返回值
返回值是表示反余弦值的浮点值。
-module(helloworld).
-import(math,[acos/1]).
-export([start/0]).
start() ->
Acos = acos(0.7071),
io:fwrite("~p~n",[Acos]).当我们运行上面的程序时,我们将得到以下结果。
0.785407753397449

该方法返回指定值的反正弦值。
acos(X)
X-为反余弦函数指定了一个值。
返回值是表示反余弦值的浮点值。
-module(helloworld).
-import(math,[acos/1]).
-export([start/0]).
start() ->
Acos = acos(0.7071),
io:fwrite("~p~n",[Acos]).当我们运行上面的程序时,我们将得到以下结果。
0.785407753397449