Question: Residual error plot

Hello everyone,

I want to know, how we can plot residual errors of the numerical scheme offered with dsolve command? This plot should show that the errors are in admissible range which indicates that the numerical scheme offers high accuracy.

For example, we have a bvp

dsolve({diff(y(x),x$2)-2*y(x)=0,y(0)=1.2,y(1)=0.9}, numeric,method=bvp[midrich]);

How to plot "Residual Error vs x" in this specific case?

 Thanks

Please Wait...