无涯教程-Erlang - acos函数

73 阅读1分钟

该方法返回指定值的反正弦值。

acos - 语法

acos(X)

X  -  为反余弦函数指定了一个值。

acos - 返回值

返回值是表示反余弦值的浮点值。

-module(helloLearnfk). 
-import(math,[acos/1]). 
-export([start/0]). 

start() -> Acos=acos(0.7071), io:fwrite("pn",[Acos]).

当我们运行上述程序时,我们将得到以下输出。

0.785407753397449

参考链接

www.learnfk.com/erlang/erla…