Casio FX-702P Manual del usuario - Página 11
Navegue en línea o descargue pdf Manual del usuario para Calculadora Casio FX-702P. Casio FX-702P 13 páginas.
Program
F iles
As
t he
W RT/Mode
1
m ode
i s
n ot
y et
i mplemented,
t he
o nly
w ay
t o
w rite
p rogram
f or
the
e mulator
i s
t hrough
t ext
f iles.
T hey
m ust
b e
s uffixed
w ith
" .702"
a nd
l ike
t he
o riginal
Fx-‐702p
t apes
c an
b e
o f
t wo
f ormats:
" simple
p rogram"
o r
" all
p rograms
a nd
variables".
Simple
P rogram
F ormat
The
f ormat
i s
v ery
s imple:
j ust
e nter
t he
b asic
l ines
i n
a scending
o rder.
F or
i nstance,
a
program
f inding
t he
r eal
r oots
o f
a
2
10 INP "A",A,"B",B,"C",C:D=B*B-4*A*C:PRT "D=";D:IF D<0 THEN 10
20 PRT (SQR D-B)/A/2,(-B-SQR D)/A/2:GOTO 10
Like
t he
r eal
F X-‐702p,
o nly
u ppercase
l etter
a re
s upported.
Should
y ou
n eed
s ome
v ariables
t o
b e
i nitialized
f or
t he
p rogram
t o
r un,
y ou
c an
a dd
them
b efore
t he
s ource
c ode:
A=1
B=78
C=64
D=13000
1 WAIT 0:PRT"**POLARIS**","*COPYRIGHT A.TONIC*"
2 A=INT(RAN#*600+900:T=INT(RAN#*9+25:G=INT(RAN#*9+1
3 L=0:R=0:V=0:E=INT(RAN#*D+D:P=0:N=INT(RAN#*6+28:S=0:SET F0
And
y ou
c an
c omment
y our
c ode.
A
c omment
i s
a
e ntire
l ine
p refixed
b y
e ither
/ /, /*
or
\ *
All
P rograms
a nd
V ariables
F ormat
The
s yntax
i s
b asically
t he
s ame
a s
a
s ingle
p rogram
b ut
w ith
a
h eader
f or
t he
p rogram
name,
p rogram
n umbers
t o
s eparate
P 0
t o
P 9
a nd
o ptional
p asswords.
All programs: "UTILS2"
P0
Password: "0"
1 INP "A",A,"B",E,"N",N:FOR Z=1 TO N:C=(A+E)/2:B=(A+C)/2
2 D=(C+E)/2:X=B:GSB 10:F=Y:X=C:GSB 10:IF F>Y;E=C:GOTO 5
3 F=Y:X=D:GSB 10:IF F<Y;A=C:GOTO 5
4 A=B:E=D
5 NEXT Z:X=(A+E)/2:GSB 10:PRT "T=";X,"MAX F=";Y:GOTO 1
15 RET
P1
d egree
e quation
w ill
l ook
l ike:
nd