Calculate PI with Gauss-Legendre

Calculate pi to "c" decimal places using the Gauss-Legendre algorithm.
4K Downloads
Updated 23 Dec 2001

No License

Calculate pi using the Gaussian-Legendre algorithm. The function PIGL.M produces an ASCII file containing the number of decimals requested. The maximum number depends on free disk space and the RAM available.

Cite As

Daniel Serrano (2024). Calculate PI with Gauss-Legendre (https://www.mathworks.com/matlabcentral/fileexchange/1202-calculate-pi-with-gauss-legendre), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0