
GeoB
ASIC
Reference Manual
5.Standard Functions
5-22 TPS1100-Version
1.30
DIM dNumber AS Double
' Declare variables.
dNumber = 2.0
IF dNumber < 0.0 THEN
WRITE "Cannot determine the square root " +
"of a negative number!"
ELSE
WRITE "The square root of " + Str$(
" is " + Str$(Sqr(dNumber)) + "."
END IF
5.5.9 Tan Function
Description
Returns the tangent of an angle.
Declaration
Tan( dAngle AS Double ) AS Double
Remarks
The
argument
dAngle
can be any valid numeric expression
measured in radians. The return type of
Tan
is
Double
.
The
Tan
function takes an angle and returns the ratio of two sides
of a right triangle: of the length of the side opposite the angle to
the length of the side adjacent to the angle.
Mind that Tan
is not defined for
dAngle
=
π
2
and
dAngle
=
− π
2
.
See Also
Atn
Cos
Sin
Remark on the Conversion of Angles (5.5.2),
Example
The example uses
Tan
to calculate the tangent of an angle with a
user-specified number of degrees.
Содержание 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 ...