answersLogoWhite

0


Best Answer

You can also use formulas to calculate pi. they are best used when plugged into a program, but they are still very slow. James Gregory's formula is:

pi = 4*(1-1/3+1/5-1/7...)

A simple program to calculate pi using his formula is this (python programming language):

def pi(accuracy):

<tab>pi = 0.0

<tab>minus = 1.0

<tab>for i in xrange(1,accuracy):

<tab><tab>minus = -minus

<tab><tab>pi += minus/(i*2-1)

<tab>return pi*4

replace the <tab> with an actual tab (the editor doesn't support tabs)

Run it, than type in pi(accuracy) in the console, but replace accuracy with how accurate you want it to be.

But unfortunately it doesn't get very far, and it's not built to be quick or get vary far, it's just an example. if you want to, you can multithread it and make it capable of using larger number, like writing to a file as it calculates.

the actual digits of pi are these:

3.141592653589792324683846443746375843658475673548356786758346584564856643756655685764747473832883744765657473828911010102029939393838484848474774755656567488382991910101020202939393384848477575666757575848484939393929928293828337u8473565867467575647563853364973947248923343710308321038130183487329743758436573486543785635873538629423984328742748297289332932193182321301823217493887840328480284023843270705720520084703324623598746873467835834563856985634785358346537856829348329481037u120308702137103713139019309`0237121023130813943827647834584358538482382348678236284673284564757736478367284637468366565647347382828374765

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

pi has not been calculated to that degree of accuracy. At present (2016), the first 10 trillion (and 50) digits are known. That is 10,000,000,050 - way smaller than you require.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the first 1000000 numbers of pi?
Write your answer...
Submit
Still have questions?
magnify glass
imp