Commodore VIC-20 User Manual page 387

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

Appendix H: BASIC Functions
373
cos
COS returns the cosine of the argument.
Format:
COS(datan)
EXP
EXP returns the value ears. The value of e used is 2.71828183.
Format:
EXP(argn)
arg n
must have a value in the range ±88.029691. A number larger than
+88.029691 will result in an overflow error message. A number smaller than
-88.029691 will yield a zero result.
Example:
FIE
?EXP(0)
?EXP(1)
EV-EXP(2)
EBIIIEXP(50.24)
?EXP(S9.0296919)
?EXP(-88.0296919)
?EXP(SS.029692)
?EXP(-SS.029692)
Prints 1
Prints 2.71828183
Results in EV=7.3890561
Results in EB=6.59105247E+21
Largest allowable number, yields 1.70141183E+38
Smallest allowable number, yields 5.87747176E-39
Out of range, overflow error message
Out of range, returns 0
FRE is a system function that collects all unused bytes of memory into
one block (called "garbage collection'') and returns the number offree bytes.
Format:
FRE(arg)
arg
is a dummy argument. It may be string or numeric.

Advertisement

Table of Contents
loading

Table of Contents