EasyManua.ls Logo

IBM 5100 - Page 140

IBM 5100
228 pages
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...
136
The following table shows the possible forms
of
the
function
header:
Number
of
Format
of
Header
Arguments
Type
No
Explicit
Result
Explicit
Result
0 Niladac
VNAME
VR+-NAME
1 Monadic
VNAME
B V R+-NAME B
2 Dyadic
VA
NAME B V R+-A NAME B
There must
be
a blank between the function name and the arguments. Also, the
same
symbol cannot appear more than once in the function header; thus,
Z+-FUNCTION Z
is
invalid.
For user-defined functions, the order in which the arguments
are
entered
is
important. For example,
assume
that
Z+-X
DIVIDE
Y represents a function in
which Z
is
the result
of
Xf
Y.
Now
if
20
DIVIDE
10
is
entered, the result
is
2.
However,
if
10
DIVIDE
20
is
entered, the result
is
0.5.

Table of Contents

Other manuals for IBM 5100

Related product manuals