News for hackers. Stuff that matters.
Re:1/0 = 0 by glitchc on Friday August 10, 2018 @08:35PM (#17737642)
It happens in scientific computing with zero bounded signals fairly regularly. Sometimes values hover close enough to zero that the computation results in a/0. It's not desired but the only alternative is a guard that invariably adds a performance penalty. There are other ways around it, such as normalization, but they're not trivial depending on the problem and can actually add other sources of bugs/errors. I understand the author's intent even though I disagree with the result.
Re:1/0 = 0 by jibal on Saturday August 11, 2018 @04:24AM (#17738881)
1/a when a is close to zero is very large. 1/0 == 0 violates the limit and is just bad math.