
GeoB
ASIC
Reference Manual
5.Standard Functions
5-20 TPS1100-Version
1.30
Function Log10( dX AS Double ) As Double
Log10 = Log(dX) / Log(10)
End Log10
The more general function
LogN
takes the base as an additional
argument:
Function LogN( iBase AS Integer, dX AS Double )
As Double
LogN = Log(dX) / Log(iBase)
End LogN
See Also
Exp
Example
The example calculates the value of e, then uses the
Log
function
to calculate the natural logarithm of e to the third power.
DIM dValueOfE AS Double
' Declare variables.
dValueOfE = Exp(1)
WRITE Str$(Log(dValueOfE ^ 3))
5.5.7 Sin Function
Description
Returns the sine of an angle.
Declaration
Sin( dAngle AS Double ) AS Double
Remarks
The
argument
dAngle
can be any valid numeric expression
measured in radians. The return type of
Sin
is
Double
.
The
Sin
function takes an angle and returns the ratio of two sides
of a right triangle: of the length of the side opposite 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
Cos
Tan
Содержание 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 ...