could it be just a sign problem? Try comparing after applying np.abs