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.