Reference for Wiring version 0023+. 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 atan2()
cos()
sin()
radians()
Updated on November 01, 2009 01:06:55pm PST

Creative Commons License