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

Erlang atan method

Numbers in Erlang

This method returns the arctangent value of the specified value.

Syntax

atan(X)

Parameter

X-Specify a value for the arctangent function.

Return Value

The return value is a floating-point value representing the arctangent value.

-module(helloworld). 
-import(math,[atan/1] 
-export([start/). 
start() ->
   Atan = atan(0.7071, 
   io:fwrite("~p~n",[Atan]).

When we run the above program, we will get the following results.

0.6154751878649041

Numbers in Erlang