I have solved system of ODEs by using the NDSolve and iNDSolve
. I want to calculate the error for my system of equationsthe solutions. So far iI have calculated error by plotting results of each equation.
- Is itwhat I'm doing the correct way to obtain the error for my problem?
- I am not sure the results I gotam getting are accurate enough depending upon this error analysis or not?. If not, then kindly suggest some other way to calculate the error for my problem.
Many thanks in advance.
My code for sytemsolving the system of ODEs
s =
NDSolve[
{x''[t] == -(1/2)*y[t]*x'[t], y''[t] == x'[t],
x'[0] == -1 + x[0], y[0] == 0, x[10] == 0, y'[10] == 0}, {x,
{x, y}, {t, 20}]
To obtainI am examining the error for one ofthe 1st equation is as followswith
Plot[(x''[t] + (1/2)*y[t]*x'[t]) /. s, {t, 1, 10},
WorkingPrecision -> 50]
theand for my secondthe 2nd equation is as follows
Plot[(y''[t] + x'[t]) /. s, {t, 1, 10}, WorkingPrecision -> 50]