0% found this document useful (0 votes)
65 views2 pages

Pi Approximation Accuracy Data

The document contains calculations of pi using various algorithms. It runs calculations using sides of length 4, 8, 16, 32 etc up to 1,048,576 and records the estimated value of pi from each algorithm inside and outside the circle. The accuracy of each estimate improves as the number of sides increases, reaching full accuracy at 524,288 sides.

Uploaded by

vigines89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views2 pages

Pi Approximation Accuracy Data

The document contains calculations of pi using various algorithms. It runs calculations using sides of length 4, 8, 16, 32 etc up to 1,048,576 and records the estimated value of pi from each algorithm inside and outside the circle. The accuracy of each estimate improves as the number of sides increases, reaching full accuracy at 524,288 sides.

Uploaded by

vigines89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd

Sides

4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
65536
131072
262144
524288
1048576

Inside
2.8284271247
3.0614674589
3.1214451523
3.1365484905
3.140331157
3.1412772509
3.1415138011
3.1415729404
3.1415877253
3.1415914215
3.1415923456
3.1415925766
3.1415926343
3.1415926488
3.1415926524
3.1415926533
3.1415926535
3.1415926536
3.1415926536

Outside
4
3.313708499
3.1825978781
3.1517249074
3.1441183852
3.1422236299
3.1417503692
3.1416320807
3.1416025103
3.1415951177
3.1415932696
3.1415928076
3.1415926921
3.1415926632
3.141592656
3.1415926542
3.1415926537
3.1415926536
3.1415926536

Pi guess
3.4142135624
3.187587979
3.1520215152
3.144136699
3.1422247711
3.1417504404
3.1416320852
3.1416025105
3.1415951178
3.1415932696
3.1415928076
3.1415926921
3.1415926632
3.141592656
3.1415926542
3.1415926537
3.1415926536
3.1415926536
3.1415926536
3.1415929204

% accuracy
91%
98.535923322%
99.668039026%
99.919020520%
99.979879075%
99.994977489%
99.998744854%
99.999686244%
99.999921563%
99.999980391%
99.999995098%
99.999998774%
99.999999694%
99.999999923%
99.999999981%
99.999999995%
99.999999999%
100.000000000%
100.000000000%
99.999991509%

Notes

You might also like