Project

Week 3 - Discretization basics

Objective: clear allclose allclc% function=sinx/x^3;% analytical derivative% analytical derivative=x^3*cos(x)-3*sin(x)*x^2/x^6;x=pi/3;analytical_derivative=(x^3*cos(x))-(3*sin(x)*(x^2))/(x^6);% first order numerical derivative% first order numerical derivative=f(x+dx)-f(x)/dx;dx=pi/50;first_order_numerical_derivative = (sin(x+dx)/(x+dx)^3)-(sin(x)/x^3)/dx;First_order_error=abs(analytical_derivative-first_order_numerical_derivative);%…

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.