Buzz Lightyear wrote:
> [...]
> Whether
> a ^ ( b + c) != a ^ b + a ^ c
> a v ( b + c) != a v b + a v c;
> a ^ (~b) ?= ~ ( a ^ b)
> a ^ ( b v c ) == (a ^ b) v (a ^ c)
> etc...
>
> a, b ,c: Real numbers.
The bitwise representation of floating point numbers is platform
depended but in any case complex. Have a look at
http://en.wikipedia.org/wiki/IEEE_754-1985
Applying bitwise operations to all bits of a floating point expression
generally makes no sense.
Applying logical operations to a floating point expression involves
exact comparison to 0. Because of the fuzziness of floating point
values you should rather check for a epsilon-neighborhood.
> ^: And
> v: Or
> ~: Revert
The operators of C/C++ have a defined semantic and precedence.
Please, don't make up your own notation.
--
Brüder, in die Tonne die Freiheit,
Brüder, ein Stoppschild davor.
Egal was die Schwarzen Verlangen
Rufen wir: Ja! Brav im Chor.