Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. 1 = 0

1 = 0

Scheduled Pinned Locked Moved The Lounge
comdesign
68 Posts 38 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H HobbyProggy

    Allright, tell that the next flightcomputer that breakes down because he multiplied 0,333 and didn't get to 1 ;)

    Rules for the FOSW ![^]

    if(this.signature != "")
    {
    MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
    }
    else
    {
    MessageBox.Show("404-Signature not found");
    }

    C Offline
    C Offline
    CPallini
    wrote on last edited by
    #21

    You know, float are not real numbers. (likewise Computer Science is not Mathematics) :-D

    H N 2 Replies Last reply
    0
    • C CPallini

      You know, float are not real numbers. (likewise Computer Science is not Mathematics) :-D

      H Offline
      H Offline
      HobbyProggy
      wrote on last edited by
      #22

      CPallini wrote:

      (likewise Computer Science is not Mathematics)

      But its both logic :) And 0,999 is not 1 it's even written different :sigh: But i guess we could debate ages about that

      Rules for the FOSW ![^]

      if(this.signature != "")
      {
      MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
      }
      else
      {
      MessageBox.Show("404-Signature not found");
      }

      C Richard DeemingR 2 Replies Last reply
      0
      • H HobbyProggy

        CPallini wrote:

        (likewise Computer Science is not Mathematics)

        But its both logic :) And 0,999 is not 1 it's even written different :sigh: But i guess we could debate ages about that

        Rules for the FOSW ![^]

        if(this.signature != "")
        {
        MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
        }
        else
        {
        MessageBox.Show("404-Signature not found");
        }

        C Offline
        C Offline
        CPallini
        wrote on last edited by
        #23

        Right: we could follow all the nines until we find a difference. :laugh:

        1 Reply Last reply
        0
        • H HobbyProggy

          CPallini wrote:

          (likewise Computer Science is not Mathematics)

          But its both logic :) And 0,999 is not 1 it's even written different :sigh: But i guess we could debate ages about that

          Rules for the FOSW ![^]

          if(this.signature != "")
          {
          MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
          }
          else
          {
          MessageBox.Show("404-Signature not found");
          }

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #24

          Take your pick: How Can 0.999... = 1? | Purplemath[^] For example:

            x = 0.999...
          

          10x = 9.999...
          10x - x = 9.000...
          9x = 9
          x = 1

          EDIT: As Nagy said[^], 2+ hours ago.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          H K 3 Replies Last reply
          0
          • Richard DeemingR Richard Deeming

            Take your pick: How Can 0.999... = 1? | Purplemath[^] For example:

              x = 0.999...
            

            10x = 9.999...
            10x - x = 9.000...
            9x = 9
            x = 1

            EDIT: As Nagy said[^], 2+ hours ago.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            H Offline
            H Offline
            HobbyProggy
            wrote on last edited by
            #25

            1/6 ->*6 0,966666666

            x = 0,9666
            10x = 9,6666
            10x -x = 8,7066
            9x = 8,7066
            x = 0,9674

            !

            Rules for the FOSW ![^]

            if(this.signature != "")
            {
            MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
            }
            else
            {
            MessageBox.Show("404-Signature not found");
            }

            1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              Take your pick: How Can 0.999... = 1? | Purplemath[^] For example:

                x = 0.999...
              

              10x = 9.999...
              10x - x = 9.000...
              9x = 9
              x = 1

              EDIT: As Nagy said[^], 2+ hours ago.


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              H Offline
              H Offline
              HobbyProggy
              wrote on last edited by
              #26

              1/6 = 0,166666 ->*6 0,9996

              x = 0,9996
              10x = 9,996
              10x -x = 8,9964
              9x = 8,9964
              x = 0,9996

              ?

              Rules for the FOSW ![^]

              if(this.signature != "")
              {
              MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
              }
              else
              {
              MessageBox.Show("404-Signature not found");
              }

              Richard DeemingR 1 Reply Last reply
              0
              • H HobbyProggy

                1/6 = 0,166666 ->*6 0,9996

                x = 0,9996
                10x = 9,996
                10x -x = 8,9964
                9x = 8,9964
                x = 0,9996

                ?

                Rules for the FOSW ![^]

                if(this.signature != "")
                {
                MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                }
                else
                {
                MessageBox.Show("404-Signature not found");
                }

                Richard DeemingR Offline
                Richard DeemingR Offline
                Richard Deeming
                wrote on last edited by
                #27

                HobbyProggy wrote:

                1/6 = 0,166666 ->*6 0,9996

                Nope - 6 × 0.1666... = 0.9999... It's simple multiplication:

                1 x 6 = 6 (0.6)
                6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.96)
                6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.996)
                6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.9996)
                6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.99996)
                etc.

                Because you're repeating the operation an infinite number of times, there's no point where you stop and leave the last digit as 6. There's always another digit to the right which needs to be multiplied by 6, carrying the 3 into the current column.


                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                H 1 Reply Last reply
                0
                • Richard DeemingR Richard Deeming

                  HobbyProggy wrote:

                  1/6 = 0,166666 ->*6 0,9996

                  Nope - 6 × 0.1666... = 0.9999... It's simple multiplication:

                  1 x 6 = 6 (0.6)
                  6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.96)
                  6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.996)
                  6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.9996)
                  6 x 6 = 36 = add 3 to the column on the left (6 + 3 = 9), and put 6 in this column (0.99996)
                  etc.

                  Because you're repeating the operation an infinite number of times, there's no point where you stop and leave the last digit as 6. There's always another digit to the right which needs to be multiplied by 6, carrying the 3 into the current column.


                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  H Offline
                  H Offline
                  HobbyProggy
                  wrote on last edited by
                  #28

                  So this works only for 0.999999 ? Because the 6 at the end is in this case important to show that it wont be a 1 in the end :) But nevermind, this is all just playing with numbers :)

                  Rules for the FOSW ![^]

                  if(this.signature != "")
                  {
                  MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                  }
                  else
                  {
                  MessageBox.Show("404-Signature not found");
                  }

                  Richard DeemingR N 2 Replies Last reply
                  0
                  • H HobbyProggy

                    So this works only for 0.999999 ? Because the 6 at the end is in this case important to show that it wont be a 1 in the end :) But nevermind, this is all just playing with numbers :)

                    Rules for the FOSW ![^]

                    if(this.signature != "")
                    {
                    MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                    }
                    else
                    {
                    MessageBox.Show("404-Signature not found");
                    }

                    Richard DeemingR Offline
                    Richard DeemingR Offline
                    Richard Deeming
                    wrote on last edited by
                    #29

                    HobbyProggy wrote:

                    Because the 6 at the end is ...

                    But there isn't a 6 at the "end", because there isn't an "end"! :laugh: Think of it like this:

                    using System;

                    static class Program
                    {
                    static void Main()
                    {
                    while (true)
                    {
                    Console.WriteLine("9");
                    }

                        Console.WriteLine("Squirrel!");
                    }
                    

                    }

                    If you run that program, how long will you have to wait before it prints "Squirrel"?


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                    H 1 Reply Last reply
                    0
                    • Richard DeemingR Richard Deeming

                      HobbyProggy wrote:

                      Because the 6 at the end is ...

                      But there isn't a 6 at the "end", because there isn't an "end"! :laugh: Think of it like this:

                      using System;

                      static class Program
                      {
                      static void Main()
                      {
                      while (true)
                      {
                      Console.WriteLine("9");
                      }

                          Console.WriteLine("Squirrel!");
                      }
                      

                      }

                      If you run that program, how long will you have to wait before it prints "Squirrel"?


                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                      H Offline
                      H Offline
                      HobbyProggy
                      wrote on last edited by
                      #30

                      STACK OVERFLOW :-O nvm

                      Rules for the FOSW ![^]

                      if(this.signature != "")
                      {
                      MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                      }
                      else
                      {
                      MessageBox.Show("404-Signature not found");
                      }

                      1 Reply Last reply
                      0
                      • C CPallini

                        You know, float are not real numbers. (likewise Computer Science is not Mathematics) :-D

                        N Offline
                        N Offline
                        Nelek
                        wrote on last edited by
                        #31

                        Do you mean they are imaginary? :doh: :doh: :doh: This is getting more and more difficult by moments. I think I am grabbing a bier, maybe seeing it double makes it easier :rolleyes: ;P :laugh: :laugh: I'll get my coat

                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                        1 Reply Last reply
                        0
                        • H HobbyProggy

                          So this works only for 0.999999 ? Because the 6 at the end is in this case important to show that it wont be a 1 in the end :) But nevermind, this is all just playing with numbers :)

                          Rules for the FOSW ![^]

                          if(this.signature != "")
                          {
                          MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                          }
                          else
                          {
                          MessageBox.Show("404-Signature not found");
                          }

                          N Offline
                          N Offline
                          Nelek
                          wrote on last edited by
                          #32

                          mmm working by 9, not working by 6 what about 69? does it works? Oh, wait... I think I stop now since I am about to break the KSS rule :laugh: :laugh: I am still on the way getting my coat

                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            Ah, the ol' divide by zero trick. I think my math teacher did that when I was in 8th grade. Almost 40 years ago. And I'm sure it's older than that. ;) Marc

                            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                            C Offline
                            C Offline
                            Corporal Agarn
                            wrote on last edited by
                            #33

                            Since I remember it from math about that time it has to be old. :-D How can I remember this but cannot find my car keys?

                            Mongo: Mongo only pawn... in game of life.

                            Y 1 Reply Last reply
                            0
                            • H HobbyProggy

                              Dominic Burford wrote:

                              x2 - y2 = xy - y2. Dividing by (x-y), obtain x + y = y.

                              Wrong... aint it? x2 -y2 / (x-y) => x+y xy -y2 / (x-y) => y+y xy / x-y => 1*1/1-1 => (actually how could you divide this when there is a minus...) y2 / x-y => y/x-1 => (actually how could you devide this when there is a minus...) But i guess thats bullshit 2 because it "should"? be x2/x-y - y2/x-y which ruins everything :) Okay screw everything... you are wrong, thats all i can say :)

                              Rules for the FOSW ![^]

                              if(this.signature != "")
                              {
                              MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                              }
                              else
                              {
                              MessageBox.Show("404-Signature not found");
                              }

                              K Offline
                              K Offline
                              kiLLe_512
                              wrote on last edited by
                              #34

                              if(!string.IsNullOrEmpty(this.signature)) ftfy

                              H 1 Reply Last reply
                              0
                              • Richard DeemingR Richard Deeming

                                Take your pick: How Can 0.999... = 1? | Purplemath[^] For example:

                                  x = 0.999...
                                

                                10x = 9.999...
                                10x - x = 9.000...
                                9x = 9
                                x = 1

                                EDIT: As Nagy said[^], 2+ hours ago.


                                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                K Offline
                                K Offline
                                kiLLe_512
                                wrote on last edited by
                                #35

                                That's bloody brilliant!

                                1 Reply Last reply
                                0
                                • H HobbyProggy

                                  The only thing i can agree with is that 1 != 3/3 (at least not exactly) because 1/3 is 0,333... and multiplied with 3 it is just 0,99999.... which is technically 1 but not 100%

                                  Rules for the FOSW ![^]

                                  if(this.signature != "")
                                  {
                                  MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                                  }
                                  else
                                  {
                                  MessageBox.Show("404-Signature not found");
                                  }

                                  F Offline
                                  F Offline
                                  Florgenator
                                  wrote on last edited by
                                  #36

                                  Actually, yes 0.9999..... is in fact 1: x = 0.99999.... 10 x = 9.999999.... multiply by 10 10 x = 9 + 0.99999.... split right side into arithmetic expression 10 x = 9 + x replace 0.9999.... with "x" 9 x = 9 subtract "x" from both sides x = 1 divide by 9. without dividing by "0"

                                  1 Reply Last reply
                                  0
                                  • K kiLLe_512

                                    if(!string.IsNullOrEmpty(this.signature)) ftfy

                                    H Offline
                                    H Offline
                                    HobbyProggy
                                    wrote on last edited by
                                    #37

                                    Thank god signature is not an object you first have to convert .ToString() right?

                                    Rules for the FOSW ![^]

                                    if(this.signature != "")
                                    {
                                    MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                                    }
                                    else
                                    {
                                    MessageBox.Show("404-Signature not found");
                                    }

                                    1 Reply Last reply
                                    0
                                    • D Dominic Burford

                                      x = y. Then x2 = xy. Subtract the same thing from both sides: x2 - y2 = xy - y2. Dividing by (x-y), obtain x + y = y. Since x = y, we see that 2 y = y. Thus 2 = 1, since we started with y nonzero. Subtracting 1 from both sides, 1 = 0. :wtf:

                                      "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter

                                      M Offline
                                      M Offline
                                      MKJCP
                                      wrote on last edited by
                                      #38

                                      If you divide by zero you get sucked into the mathematical black hole where all logic is lost. But if it were true that 1=0, would that simplify chip design? "A little knowledge is a dangerous thing, drink deeply or taste not."

                                      Y 1 Reply Last reply
                                      0
                                      • D Dominic Burford

                                        x = y. Then x2 = xy. Subtract the same thing from both sides: x2 - y2 = xy - y2. Dividing by (x-y), obtain x + y = y. Since x = y, we see that 2 y = y. Thus 2 = 1, since we started with y nonzero. Subtracting 1 from both sides, 1 = 0. :wtf:

                                        "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter

                                        B Offline
                                        B Offline
                                        BallsMcShaft
                                        wrote on last edited by
                                        #39

                                        The second statement is false. if x = y, then x2 does not equal xy; x to the second power equals xy. For example: if 1=1 then 1(2) does not equal 1(1) Bullshit from the start, not to mention the division by zero

                                        1 Reply Last reply
                                        0
                                        • H HobbyProggy

                                          The only thing i can agree with is that 1 != 3/3 (at least not exactly) because 1/3 is 0,333... and multiplied with 3 it is just 0,99999.... which is technically 1 but not 100%

                                          Rules for the FOSW ![^]

                                          if(this.signature != "")
                                          {
                                          MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
                                          }
                                          else
                                          {
                                          MessageBox.Show("404-Signature not found");
                                          }

                                          U Offline
                                          U Offline
                                          User 12150297
                                          wrote on last edited by
                                          #40

                                          Am I the only one that doesn't see the issue that we are not dividing 1 by 3.... 1 = 3/3... If you're going to divide by 3 on the 1... wouldn't you need to also need to divide 3/3 by 3 also... 1/3 = (3/3)/3.... which would both be .03333... ??

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups