mypiplottergregory.​m

Plots the value of pi for any n terms of the classic Gregory-Leibnitz series for pi.

You are now following this Submission

This plot shows the way that the classic Gregory-Leibnitz method of calculating pi converges on the true value as you increase the number of terms. You can replace the code with any other method of calculating pi and compare the convergence by comparing the figures.

Cite As

Bud Kelly (2026). mypiplottergregory.m (https://in.mathworks.com/matlabcentral/fileexchange/67002-mypiplottergregory-m), 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.0