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. Pi to 10 000 decimal places

Pi to 10 000 decimal places

Scheduled Pinned Locked Moved The Lounge
csharpquestionlounge
9 Posts 4 Posters 13 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.
  • A Offline
    A Offline
    AlexMarbus
    wrote on last edited by
    #1

    http://www.ex.ac.uk/cimt/general/pi10000.htm The number Pi calculated. Anybody knows a link with more precision? (Or a proper way to calculate Pi? Wasn't it 4 * atan(1) ? :confused: -- Alex Marbus www.marbus.net

    C L 3 Replies Last reply
    0
    • A AlexMarbus

      http://www.ex.ac.uk/cimt/general/pi10000.htm The number Pi calculated. Anybody knows a link with more precision? (Or a proper way to calculate Pi? Wasn't it 4 * atan(1) ? :confused: -- Alex Marbus www.marbus.net

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      Adjust the following code to taste:

      #include <stdio.h>
      int a=10000,b,c=2800,d,e,f[2801],g;main(){for( ;b-c; )f[b++]=a/5;for(;d=0,g=c*2;c
      -=14,printf("%.4d",e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b);}

      No idea where I came across this little gem. cheers, Chris Maunder

      1 Reply Last reply
      0
      • A AlexMarbus

        http://www.ex.ac.uk/cimt/general/pi10000.htm The number Pi calculated. Anybody knows a link with more precision? (Or a proper way to calculate Pi? Wasn't it 4 * atan(1) ? :confused: -- Alex Marbus www.marbus.net

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Here you'll find nearly anything about pi and it's calculation: Daras Pi Page Have fun Bjørn.

        A 1 Reply Last reply
        0
        • L Lost User

          Here you'll find nearly anything about pi and it's calculation: Daras Pi Page Have fun Bjørn.

          A Offline
          A Offline
          AlexMarbus
          wrote on last edited by
          #4

          Kewl page, thanks.. I followed all the links, and the links on the links, and .. I guess I'm inspired by the magical Pi :) -- Alex Marbus www.marbus.net

          1 Reply Last reply
          0
          • A AlexMarbus

            http://www.ex.ac.uk/cimt/general/pi10000.htm The number Pi calculated. Anybody knows a link with more precision? (Or a proper way to calculate Pi? Wasn't it 4 * atan(1) ? :confused: -- Alex Marbus www.marbus.net

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Only sick people would calculate Pi to 10000 decimal places. ;P :cool:

            D 1 Reply Last reply
            0
            • L Lost User

              Only sick people would calculate Pi to 10000 decimal places. ;P :cool:

              D Offline
              D Offline
              Datacrime
              wrote on last edited by
              #6

              Only sick people would calculate Pi to 10000 decimal places. ;P :cool: I remember at a school book, when we learn about Pi, a small paragraph that said about ancient countries (greek, egyptian, phynics) and how many d.places of Pi they knew and how close or far from true they were. Till then i assume that the persision in Pi digits is a direct measure of the humankind Technological advantage. ;) On the other hand i read somewhere that the first 100 digits of Pi are more than enough to set the route of a spaceship to the most distanced known star. ;P But if people calculating Pi are sick what about those who know by heart the first 100,200,500,1000 or ever 3141 digits? X| On my opinion there more sick people on this planet, like those who watch the movie "Pi", twice. :) (...I did.) - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

              L 2 Replies Last reply
              0
              • D Datacrime

                Only sick people would calculate Pi to 10000 decimal places. ;P :cool: I remember at a school book, when we learn about Pi, a small paragraph that said about ancient countries (greek, egyptian, phynics) and how many d.places of Pi they knew and how close or far from true they were. Till then i assume that the persision in Pi digits is a direct measure of the humankind Technological advantage. ;) On the other hand i read somewhere that the first 100 digits of Pi are more than enough to set the route of a spaceship to the most distanced known star. ;P But if people calculating Pi are sick what about those who know by heart the first 100,200,500,1000 or ever 3141 digits? X| On my opinion there more sick people on this planet, like those who watch the movie "Pi", twice. :) (...I did.) - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Watching a movie more than once is OK; I have seen The Matrix, Ronin and others many times. But learning the first 100, 200, 500, 1000 or more is a waste of time. Atleast you get good entertainment by seeing a good movie agian. And BTW: For what you had to pay that price? :)

                D 1 Reply Last reply
                0
                • L Lost User

                  Watching a movie more than once is OK; I have seen The Matrix, Ronin and others many times. But learning the first 100, 200, 500, 1000 or more is a waste of time. Atleast you get good entertainment by seeing a good movie agian. And BTW: For what you had to pay that price? :)

                  D Offline
                  D Offline
                  Datacrime
                  wrote on last edited by
                  #8

                  For what you had to pay that price? ...for using C :) - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

                  1 Reply Last reply
                  0
                  • D Datacrime

                    Only sick people would calculate Pi to 10000 decimal places. ;P :cool: I remember at a school book, when we learn about Pi, a small paragraph that said about ancient countries (greek, egyptian, phynics) and how many d.places of Pi they knew and how close or far from true they were. Till then i assume that the persision in Pi digits is a direct measure of the humankind Technological advantage. ;) On the other hand i read somewhere that the first 100 digits of Pi are more than enough to set the route of a spaceship to the most distanced known star. ;P But if people calculating Pi are sick what about those who know by heart the first 100,200,500,1000 or ever 3141 digits? X| On my opinion there more sick people on this planet, like those who watch the movie "Pi", twice. :) (...I did.) - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    For starters, sorry my english :) this is not pi related but it´s inspired by this post: <<- - - - - - - - - - - - - - - - - - <

                    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