Question: I need help with this matlab problem. Thank you in advance. Consider the following ODE: d 2 y d x 2 + x 2 d
I need help with this matlab problem. Thank you in advance.
Consider the following ODE:
for with and
Write a script that:
named ys
finite difference approximations in your formulation.
b Solve for using the finite difference method with Save result as a column vector named
c Solve for using the finite difference method with Save result as a column vector named
d Solve for using the finite difference method with Save result as a column vector named
e Compare the accuracy of your results for bc and d by doing the following:
vectors of values. Note this means you will need to extract only the relevant values corresponding to the specified nodes from your solutions for bc and d to use in this calculation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
