I'm working through some book questions for my numerical methods subject, and I'm having trouble with this.
The IVP is
Now, I got a stack of code such that I could plot the comparison of the numerical and analytical solutions out, and my tutor agreed. (I'll attach it in a word document).
But I'm having issues with finding the "(relative) truncation error" at various values for h. Now, I got out some answers that didn't 'seem right' (based on observation from the different graphs) but yeh. I'm wondering if anyone is able to throw some ideas or even code my way to help me get this out?
It'd be MASSIVELY appreciated