Question
In Calculus, we learn that a geometric series has In Calculus, we learn that a geometric s has an exact sum OO 1-r i 0
In Calculus, we learn that a geometric series has In Calculus, we learn that a geometric s has an exact sum OO 1-r i 0 provided that lrl 1. For instance, ifr 0.5, then the sum is exactly 2. Write a MATLAB function to calculate the approximation (the summation) using a stopping criterion of 0.01% Run your file for r-0.9, 0.99, 0.999, 0.9999, 0.99999, and 0.999999. In a table, report the number of iterations needed and the relative error for each r. Show transcribed image text In Calculus, we learn that a geometric series has an exact sum: Sigma^infinity _i = 0 r^i = 1/1 - r, provided that |r| < 1. For instance, if r = 0.5, then the sum is exactly 2. Write a MATLAB function to calculate the approximation (the summation) using a stopping criterion of 0.01%. Run your file for r = 0.9,0.99,0.999,0.9999,0.99999, and 0.999999. In a table, report the number of iterations needed and the relative error for each r.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started