Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Operational Auditing A Complete Guide

Authors: Gerardus Blokdyk

2019 Edition

0655515879, 978-0655515876

More Books

Students also viewed these Accounting questions