Question: Problem 1 ( 1 5 points ) ( Core Course Outcome 5 ) ( ) / ( ) Mat.labGrader Write a function mySecondDerivativeOrder 3 that

Problem 1(15 points)(Core Course Outcome 5)()/() Mat.labGrader
Write a function mySecondDerivativeOrder3 that calculates the second derivative d^(2)(y)/(d)x^(2)x,y x with spacing h.
The function input shall be
y: one-dimensional column vector of y values
h: scalar value of spacing h
The function output shall be
d 2 y : column vector of the same size as y containing d^(2)(y)/(d)x^(2)
Calculate d^(2)(y)/(d)x^(2) using only the following formulas that use the nomenclature of Table 8-1 and the lecture notes, but are different
from the formulas listed there:
f^('')(x_(i))=(164f(x_(i))-465f(x_(i|1))+460f(x_((i)/(2)))-170f(x_(i|3))+11f(x_((i)/(5))))/(60h^(2))+O(h^(3))
f^('')(x_(i))=(56f(x_(i-1))-105f(x_(i))+40f(x_(i|1))+10f(x_((i)/(2)))-f(x_(i|4)))/(60h^(2))+O(h^(3))
f^('')(x_(i))=(-5f(x_(i)2)+80f(x_(i-1))-150f(x_(i))+80f(x_(i+1))-5f(x_(i|2)))/(60h^(2))+O(h^(4))
f^('')(x_(i))=(-2f(x_(i-4))+5f(x_(i-3))+50f(x_(i-1))-110f(x_(i))+57f(x_(i|1)))/(60h^(2))+O(h^(3))
f^('')(x_(i))=(57f(x_(i)-5)-230f(x_(i)-4)+290f(x_(i)-3)-235f(x_(i-1))+118f(x_(i)))/(60h^(2))+O(h^(3))
Pay special attention to the sub-indices in the formulas, since some indices are skipped! For every data point, use the most accurate
formula, if Eq.(3) is the most accurate, followed by Eqs. (2) and (4), and followed by Eqs. (1) and (5).
Problem 1 ( 1 5 points ) ( Core Course Outcome 5

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 Programming Questions!