Sequence of Evaluation
Equation 1: The first operation is [a, b] & 1, so 1 is converted to a set [0,
1].
x2 = a & d
Fully parenthesize your equation. Errors can occur if you are not familiar
with the precedence rules in
Write out numbers as sets of 1s and 0s instead of as decimal numbers. If the
width is not what you expected, you will get an error message.
= ([a, b] & 1 ) & d
= ([a, b] & [0, 1]) & d
= ([a & 0, b & 1]) & d
= [ 0 , b ] & d
= [0 & d, b & d]
= [0, b & d]
x1 = 0
y1 = b & d
= (1 & d) & [a, b]
= d & [a, b]
= [d & a, d & b]
y2 = b & d
See Also