3 ms·
Agreed 22/7 is the worse. Too much trouble for too little benefit If you need the value of pi to do a hand calculation, 3.14 is more than enough And if you n
by raverbashing 14y ago
Agreed
22/7 is the worse. Too much trouble for too little benefit
If you need the value of pi to do a hand calculation, 3.14 is more than enough
And if you need to "produce" pi just remember pi/4 = 1 - 1/3 + 1/5 - 1/7... (there are formulas that are better, sure, but less memorizable)
- psykotic 14y ago>And if you need to "produce" pi just remember pi/4 = 1 - 1/3 + 1/5 - 1/7... This converges too slowly to be practically useful. If you group the consecutive terms in pairs you get that the nth pair sums to 1/(2n + 1) - 1/(2n + 3) = (2n+3 - (2n+1))/(2n+1)(2n+3) = 2/(2n+1)(2n+3) = Theta(1/n^2). Thus it has the same asymptotic growth order as sum 1/n^2. That has has monotone terms and so it's easy to estimate how many terms we need to get k correct fractional digits by solving 10^(-k) = 1/n^2, giving n = 10^(k/2). This is off by a big constant factor but it gives you the right idea that you need an exponential number of terms relative to the desired number of significant digits. From Wikipedia: "After 500,000 terms, it produces only five correct decimal digits of pi." So, this series for pi has only theoretical relevance.
- dllthomas 14y ago22/7 is way better than 3.14 for finding the area of a circle with radius sqrt(7).