| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== TAN (return tangent) ====== | [[suspend suspend thread execution.htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[thread return current execution thread .htm|{{btn_next_n.gif|Next page}}]] | | || **TAN(**//radians//**)** {{blk2blue.jpg|blk2blue.jpg}} | **TAN** | Returns tangent. | | //radians// | A numeric constant, variable or expression for the angle in radians. p is a constant which represents the ratio of the circumference and radius of a circle. There are 2p radians (or 360 degrees) in a circle. | The **TAN** procedure returns the trigonometric tangent of an angle measured in //radians//. The tangent is the ratio of the angle's opposite side divided by its adjacent side. **Return Data Type:     **REAL **Example:** **PI        EQUATE(3.1415926535898)     !The value of PI** **Rad2Deg   EQUATE(57.295779513082)     !Number of degrees in a radian** **Deg2Rad   EQUATE(0.0174532925199)     !Number of radians in a degree** ** CODE** ** Angle = 45 * Deg2Rad                 !Translate 45 degrees to Radians** ** TangentAngle = ****TAN****(Angle)            !Get the tangent of 45 degree angle** **See Also:** [[atan return arctangent .htm|ATAN]] [[sin return sine .htm|SIN]] [[asin return arcsine .htm|ASIN]] [[cos return cosine .htm|COS]] [[acos return arccosine .htm|ACOS]]