NSA Attacked Anti-Virus Software
And ya'll laughed at John McAfee and called him crazy!
That is simply false. There are an infinite number of algorithms that might contain the (sub)expression X/X for which zero is a valid value of X. To assume it's a programming error is sheer unmitigated stupidity that I might expect from a mathematician that has never written a real program in his life.
As someone with a degree in mathematics and a degree in computer science (with special academic honors, I might add), I strongly disagree. Fix your damn program to check for a dividend of zero, or at least trap the exception and handle it then. If NaN or any of the infinities are useful in your computation, do it outside the normal math libraries or choose a language that explicitly permits them.
To assert that it's not a programming error is sheer unmitigated arrogance that I might expect from a code monkey who barely scraped by his high-school math courses, assuming you even attended any.
And yes, I've made my living writing programs, many of which benefitted from my knowledge of higher mathematics.
100.0 / 0 = 3
402350.32302 / 0 = 3
pi / 0 = infinity
1942 / 0 = 0
194.3 / 0 = 0
101 / 0 = 1
1010 / 0 = 2
200.02 / 0 = 3
4004004 / 0 = 4
Somebody please submit a RFP for this to C++17 standards committee.
Inside Out
Just a reboot of Herman's Head targeted at the tween set who never had to endure the original.
When it is incorrect, it is, at least *authoritatively* incorrect. -- Hitchiker's Guide To The Galaxy