VBScript Tan Function
Definition and Usage
Tan function can return the tangent of a specified number (angle).
Tan takes an angle and returns the ratio of the two sides of the right triangle. This ratio is the ratio of the length of the opposite side to the adjacent side of the angle in the right triangle.
Note:Multiply the angle by pi/180 to convert it to radians, or multiply the radian by 180/pi to convert it to degrees.
Syntax
Sqr(number)
Parameter | Description |
---|---|
number | Required. An effective expression representing an angle in radians. |
Instance
Example 1
document.write(Tan(40))
Output:
-1.1172149309239