tan | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | |||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Constant: pi Glossary: radian, custom function, return, degree Control Structure: function | ||||||
Description | Use the tan function to find the tangent of an angle. The tan function repeats every 2 ` *pi radians: tan(x) = tan(x + 2 * pi), for any value of x. If the angleInRadians is an odd multiple of pi/2, the tangent is infinite (undefined). The tan function instead returns a very large number for such angles, due to internal number handling. The tan function requires its input to be in radians. To provide an angle in degrees, use the following custom function:
| ||||||
Tags | math |