The value of pi can be approximated with the gregory leibniz series summation \frac{\pi}{4}=1-\frac{1}{3}+\frac{1}{5}-\frac{1}{7}+\frac{1}{9}-\ldots \pi=4-\frac{4}{3}+\frac{4}{5}-\frac{4}{7}+\frac{4}{9}-\ldots The series converges very slowly. Calculate T, using a midpoint break loop.convergence by comparing successive
values of the summationas you add additional terms until the difference between successive sums isless than 0.001. Set the maximurm umber of iterations to 3000.Determine