Calculate absolute error (#596)