
GeoB
ASIC
Reference Manual
5.Standard Functions
5-18 TPS1100-Version
1.30
5.5.4 Cos Function
Description
Returns the cosine of an angle.
Declaration
Cos( dAngle AS Double ) AS Double
Remarks
The
argument
dAngle
can be any valid numeric expression
measured in radians. The return type of
Cos
is
Double
.
The
Cos
function takes an angle and returns the ratio of two sides
of a right triangle: of the length of the side adjacent to the angle to
the length of the hypotenuse.
The result is in the floating point range -1.0 to 1.0.
See Also
Atn
Sin
Tan
Remark on the Conversion of Angles (5.5.2)
Example
The example uses
Cos
to calculate the cosine of an angle with a
user-specified number of degrees.
DIM dDegrees AS Double
'Declare variables
DIM dRadians AS Double
dDegrees = 45.0
dRadians = dDegrees * (Pi / 180.0)
'Convert to radians.
WRITE
"The cosine of a "
+
Str$(dDegrees) +
" degree angle is " +
Str$(Cos(dRadians))
5.5.5 Exp Function
Description
Returns e (the base of natural logarithms) raised to a power.
Declaration
Exp( dPower AS Double ) AS Double
Remarks
The
argument
dPower
can be any valid numeric expression. The
return type of
Exp
is
Double
.
Содержание 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 ...