Question: Write a function called series () to do sigma 1/2^n This function converges at 2.000 as n goes from 0 and approaches infinity. The input
Write a function called series () to do sigma 1/2^n This function converges at 2.000 as n goes from 0 and approaches infinity. The input argument will be the largest sum desired. The return from was function will be the value for n and the vector of the series that was created. Nothing should be displayed from within the function. Example: series (1.90) will return n = 5, sum = 1.0, 1.5, 1.75, 1.875, 1.9375 (1/1 + 1/2 1/4 + 1/8 + 1/16) Write a script that will call the function series () for the SUMS = [1.9, 1.99, 1.999, 1.9999] and display only the four returned series. Do not display the n's
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
