Project

COMPARISON OF ERROR USING DIFFERENT SCHEMES FOR A SECOND ORDER DERIVATIVE using MATLAB

Objective: clear all close all clc a_c=-0.08333; b_c=1.333; c_c=-2.5; d_c=1.333; e_c=-0.08333; a_r=2.917; b_r=-8.667; c_r=9.5; d_r=-4.667; e_r=0.9167; a_l=2.917; b_l=-8.667; c_l=9.5; d_l=-4.667; e_l=0.9167; x=1; dx=0.025; function [ydot]=f(x); ydot=zeros(1,1); ydot(1)=exp(x)*cos(x); end f_exact=exp(x)*(-sin(x)+cos(x)); f_fds =(f(x+2*dx)-2*f(x+dx)+f(x))/(dx^2);…

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.