Question: 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

 Hi, Please answer question 2.2 to 2.4. Will like the answer

if it is good~! :) 2 Differentiation The aim of this exercise

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!