Question

d. Use fprintf to tell the user the peak height it lands. onus Question: 2 Questions, 10 points for either Z. Write a for loo
0 0
Add a comment Improve this question Transcribed image text
Answer #1

As we know the GP series with r<1 can have answer as a/(1-r)

=1/(1-1/2)

=2

To converge means the ans should be 2-0.000001 (i.e. 2-1*e-6)

> ans-rep (99999,1000) >x=2 > sum=0 > ans-rep (99999,1000) > for (i in 1:1000) +if (sum< (2-0.000001)) X X/2 sum=sum+x +elsef

As shown above the ans converges at 22nd iteration to make the condition false that means by adding 21 values the value converges

Hence we can say that 21 terms are required to converge this series

Hope the above answer has helped you in understanding the problem. Please upvote the ans if it has really helped you. Good Luck!!

Add a comment
Know the answer?
Add Answer to:
d. Use fprintf to tell the user the peak height it lands. onus Question: 2 Questions,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MATLAB help! I have some MATLAB Assignment to do, the proffesor requires all the small parts...

    MATLAB help! I have some MATLAB Assignment to do, the proffesor requires all the small parts in order to get full credit. Help me out, thank you f LAB SECTION NAME HW6P3 (30 points) following are infinite series representations of the function, un pra i a script file HW6P3 that determines the value of the function from the sum of the series for a given value of x. The program (1 pt) must prompt the user to enter a value...

  • * This is for CS 101 Java class. I can only use "while" loops. I cannot...

    * This is for CS 101 Java class. I can only use "while" loops. I cannot use "for", "do-while" or any other repetition method.* d. Create a new project Lab04d. In this part, you are going to compute arctan(x) in radians The following formula approximates the value of arctan(x) using Taylor series expansion: 2k +1 tan-1 (x) = > (-1)" 2k 1 k=0 Depending on the number of terms included in the summation the approximation becomes more accurate Your program...

  • please use python and provide run result, thank you! click on pic to make it bigger...

    please use python and provide run result, thank you! click on pic to make it bigger For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop), randrange produces a random integer in the range of 0 to stop-1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures A Slot Machine Simulation Understand...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT