Arduino参考

Arduino参考 > Functions > Trigonometry > sin()
Trigonometry
专题

sin()

Calculates the sine of an angle (in radians). The result will be between -1 and 1.

Syntax

sin(rad)

Parameters

rad: The angle in radians. Allowed data types: float.

Returns

The sine of the angle. Data type: double.