Write a MATLAB program that solves the diffusion equation subject to the boundary conditions y(0) = 1

Question:

Write a MATLAB program that solves the diffusion equationd-y =0 dx2

subject to the boundary conditions y(0) = 1 and dy/dx = −y3/2 at x = 1 using finite centered differences. Show that your numerical result agrees with the analytical solution to this nonlinear problem by plotting both results together.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: