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