Erlang – asin

Erlang asin

In this guide, we will discuss Erlang Asin. The method returns the arcsine of the specified value.

Syntax

asin(X)

Parameters

X – A value is specified for the arcsine function.

Return Value

The return value is a float value representing the arcsine value.

For example

-module(helloworld). 
-import(math,[asin/1]). 
-export([start/0]). 

start() -> 
   Asin = asin(0.7071), 
   io:fwrite("~p~n",[Asin]).

Output

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

0.7853885733974476

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply