|
Note of caution |
Top Previous Next |
|
It is always advisable to use parentheses rather than relying on the precedence order of operators. It prevents errors and makes the intention clear. It is especially important to encapsulate not operators in parentheses to limit their scope. Examples: u(k)$(s(k) and {u(k) xor t(k)}) = a(k); u(k)$(s(k) and {u(k) or t(k)}) = a(k); u(k)$([not s(k)] and {u(k) or t(k)}) = a(k); u(k)$(s(k) xor {u(k) and t(k){) = a(k); u(k)$(s(k) xor [not {u(k) and t(k)}]) = a(k); Notes:
|