Question: I saw the post for A Concise Introduction to Matlab (1st Edition) It is known that the following Leibniz series converges to the value pi/4
I saw the post for A Concise Introduction to Matlab (1st Edition)
"It is known that the following Leibniz series converges to the value pi/4 as N approaches infinity. Plot the difference between PI/4 and the sum S(n) versus n for 0
I'm trying to do this problem in R. Below is the code I have and the error I received. How do I correct this?

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
