English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method returns the tangent value of the specified value.
tan(X)
X-Specify a value for the tangent function.
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