- A loop over different step sizes (n values like 5, 10, 20, ...).
- Computation of the global error at the final time point (t = 1) for each step size.
- A log-log plot to visualize the relationship between the step size (‘h’) and the error.
- “loglog”: for plotting data on a logarithmic scale for both x and y axes. https://www.mathworks.com/help/matlab/ref/loglog.html
- “abs”: for computing the absolute values. https://www.mathworks.com/help/matlab/ref/double.abs.html
- “legend”: for adding legends to the plots. https://www.mathworks.com/help/matlab/ref/legend.html


