
GeoB
ASIC
Reference Manual
5.Standard Functions
TPS1100-Version 1.30
5-17
5.5.3 Atn Function
Description
Returns the arcs tangent of a number.
Declaration
Atn( dAngle AS Double ) AS Double
Remarks
The
argument
dAngle
can be any valid numeric expression. The
return type of
Atn
is
Double
.
The
Atn
function takes the ratio (a floating point number) of two
sides of a right triangle and returns the corresponding angle. The
ratio is the length of the side opposite to the angle divided by the
length of the side adjacent to the angle. (The hypotenuse is not
involved.)
The result's unit is radians. It is in the floating point range
− π
2
to
π
2
.
Note
Atn
is the inverse trigonometric function of
Tan
. Do not
confuse arcus tangent with the cotangent, which is simply
the multiplicative inverse of a tangent (i.e.
1
Tan
).
See Also
Cos, Sin, Tan
Remark on the Conversion of Angles (5.5.2)
Example
The example uses
Atn
to compute Pi. By definition,
Atn(1)
is
π
4
radians (that equals 50 grad or 45 degrees).
DIM dMyPi AS Double
' Declare variables.
dMyPi = 4 * Atn(1)
' Calculate Pi.
WRITE "Pi is equal to " + str$(dMyPi)
Содержание tps1100
Страница 1: ...GeoBASIC FOR TPS1100 User Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 150: ...GeoBASIC FOR TPS1100 Reference Manual Version 2 10 1997 2001 Leica Geosystems AG Heerbrugg Switzerland ...
Страница 411: ...GeoBASIC Reference Manual 6 System Functions TPS1100 Version 1 30 6 7 6 5 35 CSV_LibCallAvailable 6 213 ...
Страница 620: ...TPS1100 Version 2 10 6 1 ...
Страница 621: ......
Страница 623: ...TPS1100 Version 2 10 6 1 ...
Страница 624: ......
Страница 1053: ...TPS1100 Version 1 30 E 1 Appendix E GEOFONT ...
Страница 1154: ...GeoBASIC Reference Manual Appendix J List of Predefined Identifiers TPS1100 Version 1 30 J 9 TMC_SetOffsetDist 6 128 ...