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

Erlang asin method

Numbers in Erlang

This method returns the arcsine value of the specified value.

Syntax

asin(X)

Parameter

X-Specify a value for the arcsine function.

Return Value

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

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

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

0.7853885733974476

Numbers in Erlang