Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.

Name

sin()

Description Calculates the sine of an angle. The sin() function expects the values of the angle parameter in radians (values between 0 and 6.28). Values are returned in the range -1 to 1.
Syntax
sin(rad)
Parameters
rad float: an angle measured in radians (PI to -PI)
Returns float
Usage Application
Related acos()
asin()
atan()
atan2()
cos()
cosh()
hypot()
sin()
sinh()
tan()
tanh()
radians()
degrees()
Updated on July 07, 2011 11:08:59pm PDT

Creative Commons License