This came up looking at this How to speed up calculation of this equation (FindRoot).
Is there some sense to why FullSimplify gives zero here?
ClearAll[y]
FullSimplify[ Exp[-(-5. + y)^2]]
0.
Obviously incorrect for y->5.
I don't think FullSimplify should be chopping numerically small values in any case.
FullSimplify[ Exp[-(-4. + y)^2]](and other numbers) do not return zero. – bill s Mar 01 '16 at 14:55Table[FullSimplify[ Exp[-(-N[n/1000] + y)^2]], {n, 4325, 4330}]– Artes Mar 01 '16 at 15:10Sqrt[Log[2^27]](4.326080659802649..., can be positive or negative), which would point towards some sort of internal precision bug, although it's a quite odd one. – kirma Mar 01 '16 at 15:17FullSimplify[Exp[-(-5.`10 + y)^2]]– Szabolcs Mar 01 '16 at 15:22$MachineEpsilon, and when this is rounded to 1, whole equation turns zero. Precision-tracking version, on the other hand, avoids this interpretation. – kirma Mar 01 '16 at 15:50FullSimplifychooses this, probably convoluted "simplification" is that0.has a very lowLeafCount. Bam, there we go. – kirma Mar 01 '16 at 15:55