Toshiba STE 58762 Welding System User Manual


 
STE 58762
2-14
The order of computation for the above expression is:
1.Calculate e - f. e-f
2.Calculate C * d. c * d
3.Divide C * d by e - f. (c * d) / (e - f)
4.Add the above result to b. b + (c * d) / (e - f)
5.Subtract g from the above result. (b + (c * d) / (e - f)) - g
Table 2.4 presents the order of computational priority for various operations.
Table 2.4 Order of computational priority
Priority Operation Operand Grouping convention
High
Low
Parenthesis
Assignment of vector elements
Assignment of negative signs and negations
Exponentiation
Multiplication, division, remainder
Addition, subtraction
Comparison
Equality, inequality
Logical product, logical sum
Substitution
( )
.
-, NOT
^
*, /, MOD
+, -
<, >, < =, > =,
= <, = >
= =, < >, > <
AND, OR
=
Left to right
Left to right
Right to left
Left to right
Left to right
Left to right
Left to right
Left to right
Left to right
Right to left
Note:
Explanation of grouping convention:
Left to right ... 1 + 2 - 3 is interpreted as (1 + 2) - 3.
Right to left ... NOT-3 is interpreted as NOT (-3).