If you were paying attention to the field of pseudoscience a couple of weeks ago you’ll remember the story of the
maths teacher who revolutionised division by zero and without a by-your-leave was teaching it to secondary school pupils. Not only was he subverting the standard procedure of childhood education (by teaching his pet fantasies as the
(
Read more... )
Comments 4
Reply
It would contradict established properties for most numbering systems and algebras. Which would be bad.
Reply
Technically, this is a "quiet NaN", which generates no errors when used in calculations. There is also a "signalling NaN", which does. Because division by zero results in a quiet NaN, sometimes programs might output a NaN if the programmer forgot to check for that case... but only if they were using floating point numbers.
Reply
Are you suggesting that it would be a programming language issue without being a CPU issue? Like somehow programming languages use a different mathematics from processors?
As for the details about the difference between integers and floats - I haven't mentioned them yet, though I will get round to them at some point I imagine. They're less interesting that divide-by-zero errors. Ordinary users will come across the latter but don't need to know the difference with the former (except in the case of finance or science applications).
Writing it without going off at tangents is harder than you might think.
Reply
Leave a comment