Improve Euler equation error calculation