Hi, Please answer question 2.2 to 2.4. Will like the answer if it is good~!...

70.2K

Verified Solution

Question

Accounting

image

image

Hi, Please answer question 2.2 to 2.4. Will like the answer if it is good~! :)

2 Differentiation The aim of this exercise is to create a function that estimates the second derivative of a discretely sampled function. Finite-difference expressions for the second derivatives are un (2.1a) us 2u1 - 5u2 + 4u3 u4 h2 Wj+1 2u; + Uj-1 j = 2, 3, ..., n-1, h2 Sun-1 + 4un-2 Un-3 h2 (2.1b) 2un um (2.1c) where uj = u(x;) for j = 1, 2,..., n, u u" (x;) and 4. Use (2.1a) or (2.1c) at the boundaries (j = 1 and n) and (2.1b) at all other interior points. Include d2dx2 in your report. Submit d2dx2 to MATLAB Grader by opening Assignment 2 - d2dx2 on MyUni. 2.3. Similarly to Question 1.2, write a script called d2dx2Error.m that uses d2dx2 to estimate the second derivative of u(x) = COS X for 4. Use (2.1a) or (2.1c) at the boundaries (j = 1 and n) and (2.1b) at all other interior points. Include d2dx2 in your report. Submit d2dx2 to MATLAB Grader by opening Assignment 2 - d2dx2 on MyUni. 2.3. Similarly to Question 1.2, write a script called d2dx2Error.m that uses d2dx2 to estimate the second derivative of u(x) = COS X for

Answer & Explanation Solved by verified expert
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students