The Computation of Pi by Archimedes
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Before there was floating point, or a way to write zero, or algebraic notation, Archimedes bounded the value of pi by estimating the perimeter of regular polygons inside and outside the circle. His computation is repeated and explained here using MATLAB.
Cite As
Bill McKeeman (2024). The Computation of Pi by Archimedes (https://www.mathworks.com/matlabcentral/fileexchange/29504-the-computation-of-pi-by-archimedes), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: Variable Precision Integer Arithmetic, Fractions Toolbox
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
@fr/
@vpi/
html/
Version | Published | Release Notes | |
---|---|---|---|
1.20.0.0 | Fixing bug noted by danf in comments.
|
||
1.19.0.0 | Added @vpi and @fr class directories |
||
1.13.0.0 | The submitted zip file still did not have the right contents. Trying again. |
||
1.12.0.0 | Previous version did not have vpi or fr on the MATLAB path -- caused errors. |
||
1.9.0.0 | Still trying to change typo in Greek number |
||
1.8.0.0 | Fixed type in Greek integer |
||
1.7.0.0 | Apologies for many updates. Wordsmithing again. |
||
1.6.0.0 | Minor fixes, sent wrong file last submission. |
||
1.3.0.0 | Improved wording. |
||
1.2.0.0 | Rewrote some of the descriptive material. |
||
1.1.0.0 | Typo in title page |
||
1.0.0.0 |