Jump to content



Photo
- - - - -

binary


  • Please log in to reply
7 replies to this topic

#1 Pixter

Pixter

    Casio Fan

  • Members
  • PipPip
  • 43 posts
  • Location:The Netherlands
  • Interests:casio, visual basic, lego mindstorms and formula 1.

  • Calculators:
    cfx9850gb plus

Posted 19 May 2003 - 02:59 PM

can someone explain me what the logic operators in binary mode do?

So what is:
-Neg
-Not
-and
-or
-xor
-xnor

thnx :)

#2 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

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)

#3 ross8653

ross8653

    Casio Addict

  • Members
  • PipPipPip
  • 96 posts
  • Location:over the river and through the woods
  • Interests:paintball

  • Calculators:
    9850 fx2.0

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

#4 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

Posted 19 May 2003 - 03:56 PM

that's true :)

#5 Pixter

Pixter

    Casio Fan

  • Members
  • PipPip
  • 43 posts
  • Location:The Netherlands
  • Interests:casio, visual basic, lego mindstorms and formula 1.

  • Calculators:
    cfx9850gb plus

Posted 20 May 2003 - 08:18 AM

Thank you :D

#6 genesis

genesis

    UCF BASIC Programming Runner Up

  • Super Member
  • PipPipPipPip
  • 281 posts
  • Location:Perth, Australia
  • Interests:Speaking German, computers, defending CFX calculators...

  • Calculators:
    CFX 9850 GB+

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. :lol:

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 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

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 BiTwhise

BiTwhise

    Casio Overgod

  • [Legends]
  • PipPipPipPipPipPipPip
  • 627 posts
  • Gender:Male
  • Location:Guildford, Surry, UK
  • Interests:Programming, games, consoles, martial arts

  • Calculators:
    FX9700WE, CFX9970G, AFX2.0, Classpad 300

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