## Links
Home · |
## Logical or Boolean functionsThe calculator has three logical functions: and, or and exclusive-or (xor) built in. These calculate values bitwise, almost literally comparing the ieee-754 representations of numbers bit by bit. These operations act on binary representations of numbers, where the bits are the binary digits. They only really make sense if you are using binary, octal or hexadecimal representation of a number and so they are not available (directly) for decimals. They also don’t make much sense for anything other than nonnegative integers, but since the functions can be defined consistently for any complex number, they are. ## The and function
This function (and button, ‘&’ key) computes the bitwise and of two numbers:
for digits ## The or function
This function (or button, ‘|’ key) computes the bitwise inclusive or (Latin
## The xor function
This function (xor button, ‘X’ key) computes the bitwise exclusive or (Latin
## Other logical functionsThe unary logical functions not and bitwise complement are not implemented because I haven’t found an unambiguous way to decide what they mean when applied to a complex number in ieee-754 representation. Last modified: Sat 31 May 2008 01:10 pm |