in reply to Boolean algebra

if i get that specification right, chromatic's code doesn't work if there are negated elements that can't be reduced whitin the expression...
for example, on input (a-b)(-a-b) the result would be nothing at all, and not (-b).

yt, snowcrash

Replies are listed 'Best First'.
RE: Re: Boolean algebra
by le (Friar) on Nov 13, 2000 at 17:54 UTC
    Wrong, the result of (a-b)(-a-b) is (-b).