Description: This matlab code is used to solve the boundary value problem of the differential equation:
-u +u=x 0<x<1,u(0)=0,u(1)=0, where the accurate solution is :
u(x)=1/(exp(1)-1/exp(1))*exp(-x)+1/(1/exp(1)-exp(1))*exp(x)+x
To Search:
File list (Check if you may need any files):
20110525(Ritz).wmf
AccurateSolution.m
IntegralFx.m
Ritz_Main.m