Example: #17/24, Section 1.1:

Rewrite the following statement form with a simplified conditional expression, where the function odd returns true if n is odd.

We might begin by assigning letters to the statements involved:

The the conditional expression becomes:

displaymath96

Using De Morgan in one way, this is equivalent to

displaymath97

Then we can distribute (by 3b), to obtain

displaymath98

or

displaymath99

(by commutativity, 1a), which is

displaymath100

by complements (5a). This is equivalent to

displaymath101

by 4b. Hence,

displaymath102

and we could write

if not (Value1 < Value2) then....



LONG ANDREW E
Fri Aug 23 10:36:55 EDT 2002