English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method returns the cosine value of the specified value.
cos(X)
X-Specify a value for the cosine function.
The return value is a floating-point value representing the cosine value.
-module(helloworld). -import(math,[cos/1]). -export([start/0]). start() -> Cosin = cos(45), io:fwrite("~p~n",[Cosin]).
0.5253219888177297