Factored and canonical forms: Example 2 |
INDEX
![]() |
Now suppose that x and y are two constrained variables, and you want to express the following relation: y = (x - 1)*(x + 2). If you write it in a factored form, like this:
The propagation reduces the domain of y:
y = [-12, 4] |
However, if you write it this way:
Then, the domain of y is:
y = [-4, 4] |
In short, there are situations where the canonical form of an arithmetic expression leads to greater domain reduction than does the factored form of the same expression.
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |