
Nov. 23, 2020
1:32 p.m.
On Tue, Nov 24, 2020 at 8:26 AM Wes Turner <wes.turner@gmail.com> wrote:
Is there a different IEEE spec or CAS that distinguishes between 1/x and 2/x where x=0?
assert 1/0 != 2/0 != math.inf/0
No, why should there be? There is absolutely no difference between them mathematically. The limit of 1/x as x tends towards 0 is exactly the same as the limit of 2/x as x tends towards 0. (If you approach it from the negative side, you get negative infinity, which is what you get if you calculate 1/-0. Otherwise, you get positive infinity.) ChrisA