Consider the function f(x) = defined on x+1 [-10,10]. We define x = -10 + ih,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the function f(x) = defined on x+1 [-10,10]. We define x = -10 + ih, where i = 0,..., n and h = 20 with n = 11, 21, 41, 81. Write n 1. a MATLAB script to 1. Calculate a numerical approximation of f'(x) for i = 1, ..., n 1 using backward difference formula. 2. Calculate the maximum of the absolute value of the errors with n = 11, 21, 41, 81. 3. Plot the results versus n. 4. Calculate a numerical approximation of f" (xi) for i = 1, ..., n 1 using mid- point formula. 5. Calculate the maximum of the absolute value of the errors with n = 11, 21, 41, 81. 6. Plot the results versus n. Consider the function f(x) = defined on x+1 [-10,10]. We define x = -10 + ih, where i = 0,..., n and h = 20 with n = 11, 21, 41, 81. Write n 1. a MATLAB script to 1. Calculate a numerical approximation of f'(x) for i = 1, ..., n 1 using backward difference formula. 2. Calculate the maximum of the absolute value of the errors with n = 11, 21, 41, 81. 3. Plot the results versus n. 4. Calculate a numerical approximation of f" (xi) for i = 1, ..., n 1 using mid- point formula. 5. Calculate the maximum of the absolute value of the errors with n = 11, 21, 41, 81. 6. Plot the results versus n.
Expert Answer:
Answer rating: 100% (QA)
Heres a MATLAB script that implements the described calculations and plots matlab Function definitio... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The following activity time estimates, in days, are for a construction project planned by Curtis Construction Company: Required: (1) Compute the expected completion time for activity 3-4. (2)...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
For each of the following, indicate whether the item would be reported on the balance sheet (B/S), reported on the income statement (I/S), or not shown in the financial statements (Not) and whether...
-
On January 1, 2015, White Co. had the following balances: Projected benefit obligation.................................................$7,400,000 Fair value of plan...
-
3. Nam Trieu joint stock company has just paid dividend of VND 1,800/share. Expected dividend growth rate is 8% pa in the next 3 years and subsequently 5% pa to infinity. If the investors require a...
-
What are the primary purposes of ESS and MSS? What are the advantages and disadvantages of each?
-
John Smith worked in the stockyard of a large building supply company. One day he unexpectedly left for California, never to return. His foreman seized the opportunity to continue to submit time...
-
For 2016, Theta Corporation had net income of $2,250,000. At the beginning of the year, there were 800,000 shares outstanding, and halfway through the year the company issued 130,000 new shares. If...
-
Make a general journal, general ledger, and trial balance Sengel Moon opened The Bike Doctor. The following transactions occurred during the month of October of the current year Oct 1 Moon invested...
-
S Mason (single) is a 50 percent shareholder in Angels Corporation (an S Corporation). Mason receives a $192,000 salary working full time for Angels Corporation. Angels Corporation reported $448,000...
-
Espresso Express operates a number of espresso coffee stands in busy suburban malls. The fixed weekly expense of a coffee stand is $700 and the variable cost per cup of coffee served is $0.63...
-
es Fickel Company has two manufacturing departments-Assembly and Testing & Packaging. The predetermined overhead rates in Assembly and Testing & Packaging are $14.00 per direct labor-hour and $10.00...
-
1) In your opinion, what are some of the qualities that make a good leader? 2) Name a leader from your experience who made you feel more powerful and raised your capabilities. What enabled him or her...
-
According to the CDC's report on the actual leading causes of death, what is really the number one cause of death in the United States?
-
Thirty years ago we measured the success of our divisional managers on the basis of market share growth, sales and profits. In the late 1970s we switched to return on capital employed because the old...
-
A parking lot charges $3 for the first hour (or part of an hour) and $2 for each succeeding hour (or part), up to a daily maximum of $10. (a) Sketch a graph of the cost of parking at this lot as a...
-
A three-phase linear ac motor has an armature winding of wavelength 25 cm. A three-phase balanced set of currents at a frequency of 100 Hz is applied to the armature. a. Calculate the linear velocity...
-
What is the effect on the rotating mmf and flux waves of a three-phase winding produced by balanced-three-phase currents if two of the phase connections are interchanges?
-
Figure shows the magnetic circuit for a permanent-magnet loudspeaker. The voice coil (not shown) is in the form of a circular cylindrical coil which fits in the air gap. A samarium-cobalt magnet is...
-
In problem 49, when does the estate's taxable year end? problem 49, John Henry died on May 1, 2018. When does his final 1040 have to be filed?
-
John Henry died on May 1, 2018. When does his final 1040 have to be filed?
-
John and Mary Hughes file their income tax return on a calendar year basis. John dies on May 15, 2018. Mary remarries on July 4, 2018. Can Mary file a joint return with John for the taxable year 2018?
Study smarter with the SolutionInn App