Question: python code to perform the following tasks: 1. write a program to evaluate pi with the Leibnizs formula: see image using n = 5,100,5000 number
python code to perform the following tasks:
1. write a program to evaluate pi with the Leibnizs formula: see image

using n = 5,100,5000 number of terms (hint: be careful to the operator precedence rules)
2. make a scatter plot for n vs. the associate approximate value of pi using the matplotlib plot function.
Should be three seperate answers for n = 5, n = 100, n = 5000
h the Leibniz's formula: 72 2 k+1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
