Calculate absolute error (#596)

Calculate absolute error (#596)