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. Other Discussions
  3. The Insider News
  4. A bigger piece of the pi: Finding the 100-trillionth digit

A bigger piece of the pi: Finding the 100-trillionth digit

Scheduled Pinned Locked Moved The Insider News
hostingcloud
11 Posts 11 Posters 0 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.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    The Keyword[^]:

    A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

    Spoiler alert: it's a '0'

    "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

    N J P P A 8 Replies Last reply
    0
    • K Kent Sharkey

      The Keyword[^]:

      A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

      Spoiler alert: it's a '0'

      "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

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

      Kent Sharkey wrote:

      I myself once learned 380 digits of π,

      :wtf: :wtf: :wtf: :omg: :omg: :omg: I have never gone beyond the 3.141592 (and I have checked it out before submitting just to be sure :rolleyes: :doh: ...)

      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
      • K Kent Sharkey

        The Keyword[^]:

        A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

        Spoiler alert: it's a '0'

        "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

        J Offline
        J Offline
        jeron1
        wrote on last edited by
        #3

        Douglas Hofstadter wrote:

        I myself once learned 380 digits of π, when I was a crazy high-school kid.

        :omg: 'crazy' is definitely NOT an overstatement.

        "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

        1 Reply Last reply
        0
        • K Kent Sharkey

          The Keyword[^]:

          A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

          Spoiler alert: it's a '0'

          "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          They're all wrong after the first wrong one.

          1 Reply Last reply
          0
          • K Kent Sharkey

            The Keyword[^]:

            A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

            Spoiler alert: it's a '0'

            "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

            P Offline
            P Offline
            Patrice T
            wrote on last edited by
            #5

            I think I will keep my PI mnemonic 113355, as 355/113 is a rather good approximation which fit my needs.

            Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

            D 1 Reply Last reply
            0
            • K Kent Sharkey

              The Keyword[^]:

              A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

              Spoiler alert: it's a '0'

              "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

              A Offline
              A Offline
              Amarnath S
              wrote on last edited by
              #6

              My high school teacher had taught me this: "How I wish I could recollect of circle round the exact relation Archimede unwound". Counting the number of letters, we get 3.1415926535897 Note that it is Archimede and not Archimedes - the name is modified to suit the Pi value.

              1 Reply Last reply
              0
              • P Patrice T

                I think I will keep my PI mnemonic 113355, as 355/113 is a rather good approximation which fit my needs.

                Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

                D Offline
                D Offline
                Daniel Pfeffer
                wrote on last edited by
                #7

                :thumbsup: An accuracy of 10-7 is good enough to draw a circle of radius 10m to an accuracy of 1 micron. Plenty for almost any earthly engineering tasks...

                Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                1 Reply Last reply
                0
                • K Kent Sharkey

                  The Keyword[^]:

                  A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

                  Spoiler alert: it's a '0'

                  "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

                  G Offline
                  G Offline
                  GuyThiebaut
                  wrote on last edited by
                  #8

                  The approximation I was taught to use in school back in the early 80s was 22/7, not great but good enough for the calculatorless mathematics exams at the time.

                  “That which can be asserted without evidence, can be dismissed without evidence.”

                  ― Christopher Hitchens

                  T 1 Reply Last reply
                  0
                  • G GuyThiebaut

                    The approximation I was taught to use in school back in the early 80s was 22/7, not great but good enough for the calculatorless mathematics exams at the time.

                    “That which can be asserted without evidence, can be dismissed without evidence.”

                    ― Christopher Hitchens

                    T Offline
                    T Offline
                    Tony Hill
                    wrote on last edited by
                    #9

                    In college I was taught 355/113 as it is correct to accurate to 6 decimal places. However I can actually remember it to 10 places now. :omg:

                    1 Reply Last reply
                    0
                    • K Kent Sharkey

                      The Keyword[^]:

                      A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

                      Spoiler alert: it's a '0'

                      "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

                      enhzflepE Offline
                      enhzflepE Offline
                      enhzflep
                      wrote on last edited by
                      #10

                      During one afternoon spent sitting in the car at some school sports nonsense, I remembered it as 3.141592658579. Checking now, I see that I'm fairly close. 3.1415926535897 Still forget what I did with the whatsit from yesterday though, a period roughly 10,950 times shorter.. :laugh: :laugh:

                      1 Reply Last reply
                      0
                      • K Kent Sharkey

                        The Keyword[^]:

                        A few months ago, on an average Tuesday morning in March, I sat down with my coffee to check on the program that had been running a calculation from my home office for 157 days

                        Spoiler alert: it's a '0'

                        "I myself once learned 380 digits of π, when I was a crazy high-school kid. My never-attained ambition was to reach the spot, 762 digits out in the decimal expansion, where it goes '999999', so that I could recite it out loud, come to those six 9's, and then impishly say, 'and so on!'" - Douglas Hofstadter (and similar from Feynmann) edit: Made it more obvious that it was a quote - I wouldn't memorize pi beyond 3, myself ;P

                        T Offline
                        T Offline
                        trønderen
                        wrote on last edited by
                        #11

                        Years ago (I believe it was in the late 1970s), University of Bergen, Norway, ran a huge IBM mainframe. The IT department had a professor teaching a course in error propagation, and in preparing the course material, he saw that the error in calculating the arctan(), which may be a little nasty for extreme values, was higher than one should expect, given 32 bits of precision. As a good researcher should do, he set out to find the explanation. To make a long story short: In the old days, you didn't repeat calculations unless needed. For the old IBM 709, the binary representation of pi had been calculated, and the hex bit pattern was copied whenever needed. For the IBM 7090 Fortran library, the hex was copied without any change. 709/7090 were 36 bit machines. The 360 series were 32 bits. So when the Fortran library was ported, the least significant, last four bits, i.e. the last hex digit, of the pi constant, was chopped off. No one considered rounding. The chopped-off bits were significantly above '.5' (or 1000 as a bit pattern), so the last retained bit should have been rounded up to 1. It remained at 0. No updates to the Fortran library was required (or, at least the pi constant was unchanged), and later to 303x. Once the least significant pi bit was correctly rounded up to 1, the error in the arctan() function dropped to the level predicted by the theoretical analysis.

                        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