Computing hundreds, or trillions, of digits of π has long been used to stress hardware, validate software, and establish bragging rights. The many possible algorithms involve some interesting mathematics and some interesting people. MATLAB implementations of the three most important algorithms illustrate different styles of arithmetic in the Symbolic Toolbox.
Cleve Moler (2021). Cleve's Corner Computing Pi (https://www.mathworks.com/matlabcentral/fileexchange/32178-cleve-s-corner-computing-pi), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
I am very interested in calculating the decimal digits of pi, one digit at a time. I have done this with roots of numbers in this 1-digit format.
Sheldon Lebowitz