yep, I set eps to 1e-6 and I think it can not be explained with “numerically unstable”, since the numerically unstable may result in problematic problem which have difficult converge, but it cannot explain a negative output of exp, which is totally wrong.