pi is equal to the following infinite sum:
pi = 4 - 4/3 + 4/5 - 4/7 + 4/9 -..........
Write a program on octave with a for loop to compute and display an approximation X of pi using a truncation of the given sum. Your program should allow the user to enter the number of terms to be used for the approximation.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here