can someone explain me what the logic operators in binary mode do?
So what is:
-Neg
-Not
-and
-or
-xor
-xnor
thnx
binary
Started by
Pixter
, May 19 2003 02:59 PM
7 replies to this topic
#1
Posted 19 May 2003 - 02:59 PM
#2
Posted 19 May 2003 - 03:51 PM
The perform binary operations
1 operator:
Neg = 2's compliment negation
Not = if true then false (sets all bits to the opposite of what they were)
2 operators:
and = if both are true then true, else false
or = if both are false then false, else true (opposite of and)
xor = if one, but not both are true then true, else false
xnor = if one, but not both are true then false, else true (opposite of xor)
1 operator:
Neg = 2's compliment negation
Not = if true then false (sets all bits to the opposite of what they were)
2 operators:
and = if both are true then true, else false
or = if both are false then false, else true (opposite of and)
xor = if one, but not both are true then true, else false
xnor = if one, but not both are true then false, else true (opposite of xor)
#3
Posted 19 May 2003 - 03:54 PM
actually i like to think of xor as if odd number of 1's then true else false
and the opposite for xnor
and the opposite for xnor
#4
Posted 19 May 2003 - 03:56 PM
that's true
#5
Posted 20 May 2003 - 08:18 AM
Thank you
#6
Posted 20 May 2003 - 09:42 AM
Are there advantages of programming in different base numbers? As they say... two minds working together can get a lot done! (that is, human and calculator). Can you use them in 'normal' programs and how can you get them there without using a computer?
I like the thick A-E with hex, if only you could get the whole alphabet.
About the text to matrix post, this is a strange idea, but the ? command used with unique values of variables can allow the user to actually type in a word and the calculator can use the result to process it. Unfortunately, I don't know what values you could use... prime numbers maybe?
I like the thick A-E with hex, if only you could get the whole alphabet.
About the text to matrix post, this is a strange idea, but the ? command used with unique values of variables can allow the user to actually type in a word and the calculator can use the result to process it. Unfortunately, I don't know what values you could use... prime numbers maybe?
#7
Posted 20 May 2003 - 09:53 AM
You can accept strings from the user and even display them using some tricky algorithims, but I've never been able to find a way to make the letters appear in the same order they were entered.
#8
Posted 20 May 2003 - 09:58 AM
yea, you would never know the order in which they were entered. You could use it for simple 'yes'/'no' answers and the likes though
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users