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
Pingback: Erlang - tan | Adglob Infosystem Pvt Ltd
Pingback: Erlang - Numbers | Adglob Infosystem Pvt Ltd