English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method returns the arccosine value of the specified value.
acos(X)
X-A value is specified for the inverse cosine function.
The return value is a floating-point value representing the inverse cosine 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 results.
0.785407753397449