Using Maple to solve ODEs
Set p equal to 1. Use Maple to create a function energy which can be used to find the energy at a time that it takes as an argument. Use it to calculate the error in the energy at t=10, by comparing the calculated and initial (exact) energy. Repeat the calculation but this time decreasing the step size by a factor of two. What happens to the error in the energy?
Decrease the step size again to confirm the relationship between the step size and the error.