Tandy 1000 Basic Reference Manual page 160

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 1
BASIC
Keywords
EXP
Function
EXP(number)
Returns the natural exponent of
number,
that is, e (base of natu-
ral logarithms) to the power of
number.
Number
must be less than or equal to 88.02968
This function is the inverse of the
LOG
function; therefore,
num-
ber
=
EXP(LOG(number)).
BASIC always returns the result as a single precision number
unless you specified the
/D
switch when starting up BASIC.
Example
P R I N T E X P C - 2 )
prints the exponential value .1353353.
Sample Program
31 0 I N P U T "NUMBER";
N
3 2 0 P R I N T "E
R C I I S E D T O THE"N"P0WER
I S "
E X P C N )
158

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents