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

Erlang tan method

Numbers in Erlang

This method returns the tangent value of the specified value.

Syntax

tan(X)

Parameter

X-Specify a value for the tangent function.

Return Value

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

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

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

1.6197751905438615

Numbers in Erlang