subject

Recall that a geometric sum is a sum of the form a + ar + ar2 + ar3 + (a) Write a function file called geomsum1 which accepts the values of r, a and n (in that order) as input arguments and uses a for loop to return the sum of the first n terms of the geometric series. Test your function for r = 1/9, a = 4, n = 11. (b) Write a function file called geomsum2 which accepts the values of r, a and n (in that order) as input arguments and uses the built in command sum to find the sum of the first n terms of the geometric series. Test your function for r = 1/9, a = 4, n = 11. Hint: Start by defining the vector e = [0:n-1] and then evaluate the vector R = r.^e. It should be easy to figure out how to find the sum from there.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 01:30, Cinders13
How can you make your column headings stand out?
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, toolazytobehuman
Me and category do i put them in because this is science
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, dummynate
Universal windows platform is designed for which windows 10 version?
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, trevorhenyan51
Dereck works for long hours on his computer.  he frequently experiences physical strain by the end of the day because he does not follow an important rule of ergonomics with respect to the use of keyboards.  which of the following actions of dereck could lead to physical strain? a.  placing the keyboard exactly in front of him while typingb.  keeping hands and wrists straight while typingc.  using wrist pads throughout the dayd.  pounding at the keys on the keyboard while typinge.  resting his hands on the keyboard when he is not typing
Answers: 1
You know the right answer?
Recall that a geometric sum is a sum of the form a + ar + ar2 + ar3 + (a) Write a function file call...

Questions in other subjects:

Konu
English, 27.10.2021 03:00
Konu
Spanish, 27.10.2021 03:00
Konu
Mathematics, 27.10.2021 03:00