English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Erlang acos Method

Numbers in Erlang

This method returns the arccosine value of the specified value.

Syntax

acos(X)

Parameter

X-A value is specified for the inverse cosine function.

Return Value

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

Numbers in Erlang