sin(rad)

描述

计算角度 (弧度) 的正弦值。结果将会在 -1.0 到 1.0 之间。

参数

rad: rad 代表弧度角,型别是 double。

回传

角度 (double 型别) 的正弦值。 

See also

cos()
tan()
double


语法参考主页面

本页由热血青年 LBU 译自英文版。

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.