The Computation of Pi by Archimedes
Updated 4 Mar 2016
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.
Bill McKeeman (2023). 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 CompatibilityWindows macOS Linux
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.
Fixing bug noted by danf in comments.
Added @vpi and @fr class directories
The submitted zip file still did not have the right contents. Trying again.
Previous version did not have vpi or fr on the MATLAB path -- caused errors.
Still trying to change typo in Greek number
Fixed type in Greek integer
Apologies for many updates. Wordsmithing again.
Minor fixes, sent wrong file last submission.
Rewrote some of the descriptive material.
Typo in title page