-module(helloworld). -export([start/0]). start() -> Aabs = abs(-3.14), io:fwrite("~p~n",[Aabs]).
-module(helloworld). -import(math,[log/1]). -export([start/0]). start() -> Alog = log(3.14), io:fwrite("~p~n",[Alog]).
-module(helloworld). -import(math,[exp/1]). -export([start/0]). start() -> Aexp = exp(3.14), io:fwrite("~p~n",[Aexp]).
-module(helloworld). -import(math,[atan/1]). -export([start/0]). start() -> Atan = atan(0.7071), io:fwrite("~p~n",[Atan]).
-module(helloworld). -import(math,[acos/1]). -export([start/0]). start() -> Acos = acos(0.7071), io:fwrite("~p~n",[Acos]).
-module(helloworld). -import(math,[asin/1]). -export([start/0]). start() -> Asin = asin(0.7071), io:fwrite("~p~n",[Asin]).
-module(helloworld). -import(math,[tan/1]). -export([start/0]). start() -> Tan = tan(45), io:fwrite("~p~n",[Tan]).
-module(helloworld). -import(math,[cos/1]). -export([start/0]). start() -> Cosin = cos(45), io:fwrite("~p~n",[Cosin]).
-module(helloworld). -import(math,[sin/1]). -export([start/0]). start() -> Sin = sin(45), io:fwrite("~p~n",[Sin]).
-module(helloworld). -export([start/0]). start() -> io:fwrite("~f~n",[1.1+1.2]), io:fwrite("~e~n",[1.1+1.2]).
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more