TAN (Function)


Obtains a tangent.


TAN (<Expression>)


This statement obtains the tangent value of the value in <Expression>.
Designate the unit of <Expression> in degrees.
If <Expression> includes a double precision real numeral, the obtained value becomes double precision. Otherwise, a single precision value is obtained.
If an argument is entered in radians, add RAD after the constant.
The TAN function receives an angle as an argument and returns the ratio of 2 sides of a right triangle including the right angle. The 2 sides mentioned here include the right angle. The ratio of the 2 sides is the value of the opposite side length from the obtained angle divided by the adjacent side (base, or side adjacent to the obtained angle) length. To convert degrees to radians, multiply the degrees by π/180. To convert radians to degrees, multiply the radians by 180/π.



DEFSNG lf1, lf2, lf3, lf4, lf5
lf1 = TAN(0.78525RAD)
'Assigns the tangent value of 0.78525 (Radian) to lf1.
lf2 = TAN(lf4)
'Assigns the tangent value of lf4 to lf2.
lf3 = TAN(45) * lf5
'Assigns the tangent value of 45 degrees multiplied by
'lf5 to lf3.


Top