O
PERATOR
’
S
M
ANUAL
WRXi-OM-E Rev C
193
Results of Calculations
Sometimes you may see a statement like this:
ng operations, using that original
he calculation is the final
A.
Operations are perform
•
Contents of brac
•
Exponentiation
•
Division and mul
n
•
Addition and sub
If there is any doubt as
use brackets. These will also make the order of the
calculations clear to an
sirable if you are to give it to a customer, who will want
to know what was inte
1 1 1 1 0 0 0 0 240 0 0 0 0 0 0 0 0 0
B OR (C AND D) OR E
F 0 0 0 0 0 0 0 0 0
315
A * B * (C / D) * E * F
* C / (D * E * F)
4
2
see whether any errors, deliberate or otherwise, have been introduced.
A = A * A * (Cos (A) + Sin (A) )
The program takes the quantity represented by A and performs all of the followi
value:
•
Multiply A by itself.
•
Calculate the cosine of A.
•
Calculate the sine of A.
•
Add the cosine and the sine together.
•
Multiply that result by the square of A.
en changed. Only at the end of t
At this point, the quantity represented by A has not be
value placed in the memory location labeled
Note that you can write more than one statement on a line, separated by colons, like this
A = B * Cos (34 * Theta) * Sin (55 * Theta) : B = A * A + Z * Z
Order of Calculations
ed in the following order:
kets
tiplicatio
traction
to how th
y reader o
e calculation will be done,
f the program, which is de
nded.
Here are some examples of the uses of brackets:
Brackets are worked out before any other operations are performed.
Use brackets to force the result you want, and also to clarify a calculation.
A 1 1 1 1 1 1 1 1 255 0 1 0 1 1 0 1 0 90
(B OR C) AND (D OR E)
B
C 1 0 1 0 1 0 1 0 130 1 1 1 1 1 0 1 0 250
B OR (C AND (D OR E))
D 0 1 0 1 0 1 0 1 85
0 1 0 1 1 1 1 1 95
((B OR C) AND D) OR E)
E 0 0 0 0 1 1 1 1 15
A 7
B 6
8.75 A * B
C 5
35
A * B * (C / (D * E) ) * F
D
E 3
F
Check these results to