tan
此方法返回指定值的正切值。
语法 (Syntax)
tan(X)
参数 (Parameters)
X - 为切线函数指定值。
返回值 (Return Value)
返回值是表示正切值的浮点值。
例如 (For example)
-module(helloworld).
-import(math,[tan/1]).
-export([start/0]).
start() ->
Tan = tan(45),
io:fwrite("~p~n",[Tan]).
输出 (Output)
当我们运行上述程序时,我们得到以下结果。
1.6197751905438615