Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Fun Time Binary Codeing  (Read 16813 times)

0 Members and 1 Guest are viewing this topic.

kpac

  • Web moderator


  • Hacker

  • kpac®
  • Thanked: 184
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: Fun Time Binary Codeing
« Reply #30 on: September 05, 2008, 10:53:29 AM »
2^2 means "two raised to the power of two".


...Which means 2 x 2 = 4.

3^3 = 27, because 3 x 3 = 9, 9 x 3 = 27.

squall_01

    Topic Starter


    Prodigy

    Thanked: 80
    Re: Fun Time Binary Codeing
    « Reply #31 on: September 05, 2008, 10:54:37 AM »
    but there are three two's? 
    Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

    If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

    kpac

    • Web moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7

    Dias de verano

    • Guest
    Re: Fun Time Binary Codeing
    « Reply #33 on: September 05, 2008, 11:29:49 AM »
    but there are three two's? 

    There are three figure twos that you can see, yes.

    Quote
    2^0+2^2

    Remember I already explained that the up arrow ^ means "to the power of". If you don't know what that means, you have some studying to do before you can deal with binary arithmetic.

    If you read it out loud, it says "two to the power of zero plus two to the power of two".

    Two to the power of zero equals one.

    Two to the power of two equals four.

    Four plus one equals five.

    I think I can tell you are having a hard time understanding all this. I suggest you do the following:

    1. Get a good math or computer science book that deals with binary arithmetic.
    2. talk to your teacher.

    Forums like this are not the best way to tackle this sort of learning project.



    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Fun Time Binary Codeing
    « Reply #34 on: September 06, 2008, 06:38:31 PM »
    Five is zero unless its valued at one. 

    That doesn't make sense in any context.


    5=1 ? 5 : 0

    Nope, conditional doesn't believe you.


    but there are three two's? 

    Indeed- but we must also focus on the operators(or lack thereof) between those 2's. Just as 222 isn't 6, 2^2+2^0 isn't 6 either.

    Defaulting to addition with operators your unfamiliar with is sure to give incorrect results.
    I was trying to dereference Null Pointers before it was cool.

    ChrisXPPro



      Adviser

    • Forever Learning
    • Thanked: 4
      • ACB Systems
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows XP
    Re: Fun Time Binary Codeing
    « Reply #35 on: September 06, 2008, 07:06:09 PM »
    Just occurred to me that one aspect that might cause confusion for some is - base two to power zero - the 2^0 aspect, is being seen as actual 2 decimal, when in fact in binary, representation of the value is of course 1, just in that first position.

    Higher positions of course have to be either 0 or a true power of 2 - according to the hierarchy of position ..... powers of base 2 from 1 thru 7.

    Thus - 2^1 or zero for position 2,  2^2 or zero for position 3, 2^3 or zero for position 4 .. and so on.

    It's always works remembering binary is analagous to switching or truth - only two possible states at each level - "on"/"off" or "True"/"False"

    Probably doesn't help much!
    Ain't technology great - until it goes wrong!

    squall_01

      Topic Starter


      Prodigy

      Thanked: 80
      Re: Fun Time Binary Codeing
      « Reply #36 on: September 07, 2008, 05:29:26 AM »
      It helped explain that problem.  I understand it better. 
      Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

      If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

      Dias de verano

      • Guest
      Re: Fun Time Binary Codeing
      « Reply #37 on: September 07, 2008, 05:54:26 AM »
      Just occurred to me that one aspect that might cause confusion for some is - base two to power zero - the 2^0 aspect, is being seen as actual 2 decimal, when in fact in binary, representation of the value is of course 1, just in that first position.

      In fact, any number to the power zero equals 1.

      There is a simple (ish) explanation of why this is so here

      Extract:

      if you divide a number to a power by the same number to a different power, the answer is the
      same number raised to the difference of the first two powers.

      For example,

           3
          2      (3-2)      1
         ---- = 2      = 2
           2
          2

      What happens when the powers in the numerator and denominator are the
      same?

           3
          2      (3-3)      0
         ---- = 2      = 2
           3
          2

      But you know that 8/8 = 1. So 2^0 must equal 1.



      squall_01

        Topic Starter


        Prodigy

        Thanked: 80
        Re: Fun Time Binary Codeing
        « Reply #38 on: September 07, 2008, 06:17:41 AM »
        I understood his, but yours has  more details.
        Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

        If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

        ChrisXPPro



          Adviser

        • Forever Learning
        • Thanked: 4
          • ACB Systems
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows XP
        Re: Fun Time Binary Codeing
        « Reply #39 on: September 07, 2008, 09:26:56 AM »
        Useful stuff Dias ...  :)
        Ain't technology great - until it goes wrong!

        squall_01

          Topic Starter


          Prodigy

          Thanked: 80
          Re: Fun Time Binary Codeing
          « Reply #40 on: October 10, 2008, 10:29:27 AM »
          heres the thing he said that we dont need to understand this.
          Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

          If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

          Dias de verano

          • Guest
          Re: Fun Time Binary Codeing
          « Reply #41 on: October 10, 2008, 10:37:56 AM »
          heres the thing he said that we dont need to understand this.

          Who said that?  ::) understand what? Why revive this 6 week old thread?


          squall_01

            Topic Starter


            Prodigy

            Thanked: 80
            Re: Fun Time Binary Codeing
            « Reply #42 on: October 10, 2008, 10:46:02 AM »
            my pc arc teacher.  Binary, cause he told us that we didnt have too...
            Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

            If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

            Dias de verano

            • Guest
            Re: Fun Time Binary Codeing
            « Reply #43 on: October 10, 2008, 10:53:46 AM »
            my pc arc teacher.  Binary, cause he told us that we didnt have too...

            Excuse me. I am confused. Who said you "have" to understand binary arithmetic? Anyway it's not hard. You either have a one, or you don't. If you do, that's called a one. If you don't, that's called a zero. That's all there is to it. Now go haul out the trash, or you don't get no spending cash!

            squall_01

              Topic Starter


              Prodigy

              Thanked: 80
              Re: Fun Time Binary Codeing
              « Reply #44 on: October 10, 2008, 10:55:06 AM »
              i understand it better, but thought he had wanted us too
              Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

              If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres