ATN
(Function)
Obtains an arc tangent.
ATN (<Expression>)
This statement obtains the arc tangent of the value in <Expression>.
The obtained value is expressed in degrees and ranges from -90 to 90.
If <Expression> includes a double precision real numeral, the obtained value becomes double precision. Otherwise, a single precision value is obtained.
-
The ATN function receives the ratio of 2 sides of a right triangle as an argument (number) and returns the corresponding angle. The 2 sides mentioned here include the right angle. The ratio of the 2 sides is the value of the opposite side length to the obtained angle divided by the adjacent side (base, or side adjacent to the obtained angle) length. The return value will range from -π/2 to π/2 (expressed in radians). To convert degrees to radians, multiply the degree by π/180. To convert radians to degrees, multiply the radian by 180/π.
-
The ATN function is an inverse trigonometric function of the Tan function. The Tan Function receives an angle as an argument, and returns the ratio of the 2 sides that include the right angle of a right triangle. Note the difference between the ATN function and the cotangent (1/tangent) of the reciprocal tangent.
DEFSNG lf1, lf2, lf3, lf4, lf5, lf6, lf7
|
|
lf1 = ATN(0.5)
|
'Assigns the arc tangent value of 0.5 to lf1.
|
lf2 = ATN(lf4/2)
|
'Assigns the arc tangent value of (lf4/2) to lf2.
|
lf3 = ATN(lf5/lf6) * lf7
|
'Assigns the arc tangent value of (lf5/lf6)
'multiplied by lf7 to lf3.
|