An introduction to computing.

Discussion in 'Computer Science & Culture' started by TheFrogger, Oct 23, 2017.

Thread Status:
Not open for further replies.
  1. TheFrogger Banned Valued Senior Member

    Messages:
    2,175
    • sciforums is a discussion forum. Please think carefully before posting rubbish.
    Welcome.

    Computers work in binary. Either there is a number, or there isn't. The numbers double each occasion.

    128|64|32|16|8|4|2|1
    xx0|x0|x0|x0|1|0|1|0

    The digital displayed above is ten, which contains one eight, and one two. Zero fours (8+4=12) and zero ones.

    I believe the formula for the above is 2n-1.

    Example: 8=15.

    8+4+2+1.

    The equation balanced...

    2n-1
    2n=1
    n=1÷2
    n=0.5
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. origin Heading towards oblivion Valued Senior Member

    Messages:
    11,888
    This doesn't mean anything. I am going to ask the mods to move this to a more appropriate section.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. NotEinstein Valued Senior Member

    Messages:
    1,986
    Not really. Binary means there's either a zero or a one.

    Awkward notation, but sure.

    True.

    You mean, for the maximum number representable given the highest power of two? If so, yes, that is correct.

    This is bad notation. In the future, write: "for n = 8, we have 2 * 8 - 1 = 15".

    That is indeed the 15 you were mentioning.

    Not sure what that means...

    This does not follow. A minus sign is different from an equal sign.

    And that's clearly non-sense. You just used n = 8 as an example, so clearly n can take other values than just 0.5.
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. origin Heading towards oblivion Valued Senior Member

    Messages:
    11,888
    It is not awkward notation it is just wrong.

    So he is saying that the base 10 number 2 is the number 1 in base 2 (which is wrong).
    But he also says 8 is the number 1 in base 2 (which is wronger)!

    Numbers on the left are base 10 their equivalent number is base 2 is on the right.
    B10 1 = B2 1
    B10 2 = B2 10
    B10 4 = B2 100
    B10 8 = B2 1000
    B10 16 = B2 10000
    B10 32 = B2 100000
    B10 64 = B2 1000000
    B10 128 = B2 100000000
     
  8. NotEinstein Valued Senior Member

    Messages:
    1,986
    The way I understood it: ignore the x's. 10 = 8 + 2. You've got zero 1's, one 2's, zero 4's, one 8, zero 16's, etc. It's just giving the values of each digit in a binary number. Basically, multiple top values with bottom values, and sum over them to get the decimal value belonging to a binary value.
     
  9. origin Heading towards oblivion Valued Senior Member

    Messages:
    11,888
    Maybe I just do not understand the notation.

    The number 10 in base 2 is 1010.

    How does what he wrote get you to the number 1010 or get you from 1010 to 10?
     
  10. NotEinstein Valued Senior Member

    Messages:
    1,986
    See http://www.electronics-tutorials.ws/binary/bin_2.html
    about half-way down, the section "Representation of a Binary Number".
     
  11. origin Heading towards oblivion Valued Senior Member

    Messages:
    11,888
    Thanks for clearing that up for me! Counters explanation was just a tad unclear. I have never had him make any sense so I jumped to an incorrect conclusion.

    Please Register or Log in to view the hidden image!

     
  12. NotEinstein Valued Senior Member

    Messages:
    1,986
    Glad I could right one wrong on the internet today.

    Please Register or Log in to view the hidden image!

     
  13. James R Just this guy, you know? Staff Member

    Messages:
    39,397
    Mod note:

    sciforums is a discussion forum, and the opening post here gives very little to discuss, other than Counter's errors. This kind of pseudo-mathematics is mostly a waste of everybody's time here. Following repeated warnings about similar postings, Counter has received another one for this thread (his post was reported).

    Due to accumulated warning points, Counter will now be taking a 3 day automatic break from sciforums.

    This thread is closed.
     
Thread Status:
Not open for further replies.

Share This Page