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 equation
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
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted: