
GeoB
ASIC
Reference Manual
5.Standard Functions
TPS1100-Version 1.30
5-19
e is the exponential constant (base of natural logarithms), with
numerical value e = e
1
=
Exp(1)
= 2.71828
…
Note
Exp is the inverse function of the Log function and is
sometimes referred to as the antilogarithm.
See Also
Log
,
Example
The example uses
Exp
to compute the value of e.
Exp(1)
is e
raised to the power of 1.
' Exp(x) is e ^x so Exp(1) is e ^1 or e.
DIM dValueOfE AS Double
' Declare variables.
dValueOfE = Exp(1) ' Calculate value of e.
WRITE "The value of e is " + Str$(dValueOfE)
5.5.6 Log Function
Description
Returns the natural logarithm of a number.
Declaration
Log( dNumber AS Double ) AS Double
Remarks
The
argument
dNumber
can be any valid numeric expression that
denotes a value greater than zero. The return type of
Log
function
is
Double
.
The natural logarithm is the logarithm to the base e. e is the
exponential constant (base of natural logarithms), with numerical
value e = 2.71828
…
You can calculate base-n logarithms (logarithms to the base n) for
any number x by dividing the natural logarithm of x by the natural
logarithm of n as follows:
Log
n
(x) = Log(x) / Log(n)
It holds that
n
x
Log
x
n
( )
=
.
The following example illustrates a function that calculates base-
10 logarithms:
Содержание 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 ...