GaussLegendre

quick approximation of pi using the Gauss-Legendre algorithm

You are now following this Submission

as example try: vpa(GaussLegendre(11),50)

ans =

3.1415926535897932384626433832795028841971693993751

Cite As

Thomas (2026). GaussLegendre (https://www.mathworks.com/matlabcentral/fileexchange/76850-gausslegendre), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0