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 5 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.
  • 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

    Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #8

    A high school teacher showed this to me some 10+ years back (feeling old now). All I can say is no.

    Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

    Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

    Regards, Sander

    H J 2 Replies Last reply
    0
    • Sander RosselS Sander Rossel

      A high school teacher showed this to me some 10+ years back (feeling old now). All I can say is no.

      Visit my blog at Sander's bits - Writing the code you need. Or read my articles at my CodeProject profile.

      Simplicity is prerequisite for reliability. — Edsger W. Dijkstra

      Regards, Sander

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

      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");
      }

      C N F U W 9 Replies 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

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

        Quote:

        Dividing by (x-y), obtain...

        ...the silent reproach of a million tear-stained eyes. :((

        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");
          }

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

          Quote:

          0,99999.... which is technically 1 but not 100%

          Uh?

          H 1 Reply Last reply
          0
          • C CPallini

            Quote:

            0,99999.... which is technically 1 but not 100%

            Uh?

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

            Whats the matter ?

            Rules for the FOSW ![^]

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

            C 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

              R Offline
              R Offline
              Rage
              wrote on last edited by
              #13

              Dominic Burford wrote:

              since we started with y nonzero.

              oh, the irony.

              Do not escape reality : improve reality !

              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");
                }

                N Offline
                N Offline
                Nagy Vilmos
                wrote on last edited by
                #14

                if the numerator and denominator are equal then the value must be 1. Then the second part is almost right, but you missed a very important point, a recurring value is only an *approximation* rather than the absolute. 1/3 is absolute, but the decimal 0.3. is only an approximation. Proof, without bad maths of the 9's reccuring - 0.9. == 1 Multiply by 10: 9.9. = 10 Subtract the original: 9.9. - 0.9. = 9 9 = 9 QED. This is accepted as proper maths, the 1=0 using division by zero is, however, not.

                veni bibi saltavi

                H 1 Reply Last reply
                0
                • N Nagy Vilmos

                  if the numerator and denominator are equal then the value must be 1. Then the second part is almost right, but you missed a very important point, a recurring value is only an *approximation* rather than the absolute. 1/3 is absolute, but the decimal 0.3. is only an approximation. Proof, without bad maths of the 9's reccuring - 0.9. == 1 Multiply by 10: 9.9. = 10 Subtract the original: 9.9. - 0.9. = 9 9 = 9 QED. This is accepted as proper maths, the 1=0 using division by zero is, however, not.

                  veni bibi saltavi

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

                  Nice :) But i guess as long as we have an approximation i'll go with its not exactly 1 :P

                  Nagy Vilmos wrote:

                  This is accepted as proper maths, the 1=0 using division by zero is, however, not.

                  I already said that in an other statement that hes wrong

                  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
                  • H HobbyProggy

                    Whats the matter ?

                    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
                    #16

                    0.9999... is 1.

                    H 1 Reply Last reply
                    0
                    • C CPallini

                      0.9999... is 1.

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

                      By definition, not by maths :)

                      Rules for the FOSW ![^]

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

                      C 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
                        Marc Clifton
                        wrote on last edited by
                        #18

                        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 1 Reply Last reply
                        0
                        • H HobbyProggy

                          By definition, not by maths :)

                          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
                          #19

                          By maths. There's no difference.

                          H 1 Reply Last reply
                          0
                          • C CPallini

                            By maths. There's no difference.

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

                            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 Y 2 Replies Last reply
                            0
                            • 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
                                          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