by kbumsik · 7y ago · 0 comments
The title reminds me a friend of mine who attends a data science master course without computer background. He asked me for help for his numpy homework on Bayesian Probability theory. The number he got was so small that he got weird result. I immedieatly thought it was because float64 couldn't cover that number so I told him to use longdouble dtype (it's 80 bits in Intel I think) and the problem solved.
Later he told me even the professor didn't expect such case when announcing the homework and many students couldn't finish the hw on time because of this.
This is a very dangerous habit. If 64 bits isn't enough you are generally using the wrong representation.
Relevant xkcd: https://xkcd.com/435/
Or as my friend put it: everything is just a trivial special case of either mathematics or physics. ;-)
"Die ganzen Zahlen hat der liebe Gott gemacht, alles andere ist Menschenwerk"
https://en.m.wikipedia.org/wiki/Leopold_Kronecker
Verbose, highly literal translation: "Loving God created the absolute integers; all else is the work of humanity."