EasyManua.ls Logo

Commodore Plus 4 - Cartridges

Commodore Plus 4
464 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC
Version
3.5
Commands,
Functions,
and System
Variables
31
This
replacement
is
how
you
use
the
generic
formula
you
defined
in
the
DEF
FN
to
solve
a
specific
calculation.
3.
The
calculation
must
follow
the
rules
for
calculations.
Note:
If
BASIC
RAM
is
moved
by
a
GRAPHIC
command
after
defining
a
function,
the
function
may
not
be
evaluated
properly.
Enter
(and
immediately
leave
if
necessary)
the
graphic
mode
before
you
define
the
function.
Example:
10
DEP
FNX(Y)
=
I1TT(A
*
2
+
Y)
15
INPUT
A
20
PRINT
FNX(35.2);
FNX(19.9)
RUN
?5
45
29
DELETE
DELETE
line
number-line
number
Defines
the
formula
for
function
X.
Calls
function
X
to
use
its
formula
to
solve
for
35.2
and
then
for
19.9,
which
replace
Y
in
the
function
formula.
Abbr.
deL
Deletes
BASIC
program
lines.
You
can
issue
this
command
only
in
immediate
mode,
not
in
a
BASIC
program.
Parameter:
line
number(s)
You
can
delete
one
line
at
a
time
or
a
group
of
lines.
To
delete
one
line,
just
enter
the
line
number
after
the
word
DELETE.
To
delete
a
group
of
lines,
enter
DELETE,
then
the
first
line
number,
a
dash,
and
the
final
line
number.
You
can
also
delete
all
the
lines
from
the
beginning
of
the
program
up
to
a
certain
line
by
entering
DELETE
followed
by
a
dash
and
the
last
line
you
want
to
delete.
To
delete
all
the
lines
from
a
certain
line
to
the
end
of
the
program,
enter
DELETE,
the
first
line
you
want
to
delete
and
a
dash.
Examples:
DELETE
75
DELETE
150-250
DELETE
-90
DELETE
140-
DIM
Deletes
line
75.
Deletes
lines
150
through
(and
including)
250.
Deletes
all
lines
up
to
and
including
90.
Deletes
line
140
and
all
following
lines
to
the
end
of
the
program.
Abbr.
dl
DIM
array
name
(subscripts),
array
name
(subscripts),
etc.
Defines
an
array,
which
is
also
called
a
matrix.
An
array
is
a
table
of
related
values
that
you
can
use
as
a
unit
or
as
individual
data
items.
You
can
refer
to
any

Other manuals for Commodore Plus 4

Related product manuals