EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 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
Page #91 background imageLoading...
Page #91 background image
DEF
FN
Format
Explanation
Example
DEF
FN
<function
name>(<variable>)=
<numeric
expression>
The
DEF
FN
statement
is
used
to
define
user
function.
Such
functions
consist
of
combinations
of
functions
which
are
intrinsic
to
BASIC.
The
<function
name>
is
an
uppercase
letter.
DEF
FNA(X)=2*#X1t2+34#X+1.....
Defines
2X?
+
3X
+
1
as
FNA(X).
DEF
FNE(V)=1/2*#M#V12......00....
Defines
1/2MV?
as
FNE(V).
(incorrect
definitions)
10
DEF
FNK(X)
=SIN(X/3
+
4/4),
FNL(X)
=
EXP(—
Xt2/K)
aoaseeteneett
Only
one
user
function
can
be
defined
by
a
single
DEF
FN
statement.
10
DEF
FND(X)=FNB(X)/C
+
X.......
Any
functions
which
have
been
defined
with
DEF
FN
cannot
be
used
in
another
DEF
FN.
Find
the
kinetic
energy
of
a
mass
of
5.5
kg
when
it
is
imparted
with
initial
accelera-
tions
of
3.5
m/s*,
3.5x2
m/s’,
and
3.5x3
m/s.
10
DEF
FNE(V)=1/2*M#*Vt2
20
M=5,5:V=3.5
30
PRINT
FNE(V),
FNE(V
#2),
FNE(V*3)
40
END
Note:
All
user
function
definitions
are
cleared
when
the
CLR
or
NEW
statement
is
executed.
6-34

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals