Inline the default implementation of approx_eq