150
Reopening Function Definition
If
you want
to
edit a function
that
has previously besn closed,
the
function defini-
tion
must
be reopened. For example,
if
function R
is
already defined,
the
function
definition for function R
is
reopened by entering V
R.
The rest
of
the
function
header must
not
be entered
or
the
error
message DEFN ERROR
is
displaye~
and
the
function definition
is
not
reopened. The
5100
responds by displaying
[n+1], where n
is
the
number
of
statements
in
R.
Function editing
then
pro-
ceeds
in
the
normal manner.
Function definition can also be reopened and
the
editing or display requested on
the
same line. For example,
VR[3]S~S+1
edits
the
function
by
entering
the
new
line 3
(S~S+1)
immediately. Then
the
5100
responds by displaying [4] and
awaiting continuation. The entire process can be accomplished on a single line:
VR[3]S~S+1
Vopens
the
definition
of
function
R,
enters a new line
3,
and termin-
ates function definition. VR[D]V causes
the
entire definition
of
R
to
be displayed,
after
which
the
5100
returns
to
execution mode.
Note: You
cannot
reopen
the
definition
of
a function,
delet~
a
statement,
and
close
the
function (for example,
VR[~4]V)
on
the
same line, since
the
closing V
cannot
be on
the
same line as
the
[Lln].
When an error occurs
in,
a function,
the
function name,
the
line number, and
the
statement
in
error are displayed. A
caret
on
the
following line indicates where
the
5100
stopped execution
of
the
statement. The
statement
in
error can be corrected
as follows:
1.
Scroll down until
the
caret
is
removed from
the
screen.
2.
Scroll up one line.
3. I nsert a V before
the
function name.
4. Correct
the
error
in
the
statement.
5. Place a V after
the
statement.
6. Press EXECUTE.
This procedure works only
if
the
complete
statement
is
displayed.