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

Name

tan()

Description Calculates the tangent of an angle. The tan() function expects the values of the angle parameter in radians. The tangent of an angle is the ratio of the sine and cosine. Values are returned in the range infinity to -infinity.
Syntax
tan(angle)
Parameters
angle float: an angle measured in radians
Returns float
Usage Application
Related acos()
asin()
atan()
atan2()
cos()
cosh()
hypot()
sin()
sinh()
tan()
tanh()
radians()
degrees()
Updated on January 11, 2010 09:42:08pm PST

Creative Commons License