Program Examples; General Directions; 2·1 Four Fundamental Operations For Complex Numbers - Canon Canola SX-300 series Instructions Manual

Programmable calculator
Hide thumbs Also See for Canola SX-300 series:
Table of Contents

Advertisement

§
4. Program Examples
1. General Directions
1.
Put SP nn instruction at the head step of a
program (subroutine) and EP nn at the end of a
program (subroutine).
2.
Put ENT instruction at the step to input a
variable.
3.
To process these input data, write program
instructions followi ng the math ematica I expres-
sions as in manual calculations. But in functional
calculation':l, the order of instructions of data and
function should be exchanged.
2. Program Examples
2·1 Four Fundamental Operations for Complex
Numbers
Arrange the program to perform the desired
operation for the input complex numbers A+Bi
and C+Di, selecting the program using the
BRANCH instruction. Make the print-out format
so that the kind of operation (addition, subtrac-
tion, multiplication, or division) and real part
and imaginary part for input and output can be
· · " . · · . ·
recognized .
i' _"
-,;:
,.
10
Output Format;
4.
The instruction of Round up, off, and down, are
done by using program instructions FIX L, 5/4,
+,
nn and Round Form Slide Switch are ,not
effective to program calculations.
5.
Jump destination (FLAG nn) should be one for
one jump instruction through the entire program
area" including main programs and subroutine
programs.
Study Points;
1.
BRANCH instruction.
2.
Judging if the data is input.
(I F ENT GO TO nn)
3.
Input and output format.
o
o
". ' - · 0
"
o
o
1
:1
1*'.1' 1 i
§ j l :,:
~~
T
l)I
ill-
to .
i21~3i21
iJ
:~
fl
c~~J(,
t.
1.
11
i::J!:.1~.:.1 ~ .•,
~j
II
~~:i ~3121
L
--[i
~ ~=:
"71_ L
29

Advertisement

Table of Contents
loading

Table of Contents