
In this guide, we will discuss Erlang exp. The method returns the exponential of the specified value.
Syntax
exp(X)
Parameters
X – A value is specified for the exponential function.
Return Value
The return value is a float value representing the exponential value.
For example
-module(helloworld). -import(math,[exp/1]). -export([start/0]). start() -> Aexp = exp(3.14), io:fwrite("~p~n",[Aexp]).
Output
When we run the above program, we will get the following result.
23.103866858722185
Next Topic : Click Here
Pingback: Erlang - atan | Adglob Infosystem Pvt Ltd
Pingback: Erlang - Numbers | Adglob Infosystem Pvt Ltd