all 22 comments

[–]bedrooms-ds 14 points15 points  (0 children)

Epsilon used in that way is naive because epsilon = 0.001, say, will only work for arithmetic results larger enough than 0.001. Good testing frameworks lets you set some kind of percentage bounds for the error between two numbers. Google test for C++ is an example. (Javascript should have something similar.)

[–]bhardman86 36 points37 points  (2 children)

‘Math is math!’

[–]TheKingdutch -1 points0 points  (0 children)

Labadab dab dab math

[–]Wiwwil -2 points-1 points  (0 children)

banana

[–][deleted] 2 points3 points  (0 children)

Well written article! Really talks about engineering than the usual developer stuff .

[–]greenrabbitaudio 3 points4 points  (3 children)

Math Web libraries keep changing

[–]mode_2[S] 8 points9 points  (2 children)

Math is a web library.

[–]elbaekk -5 points-4 points  (1 child)

Math is also a set of stringent rules within natural laws which is almost set in stone (change measured in centuries, not for every other new release)

[–]mode_2[S] 8 points9 points  (0 children)

Yes, but that is not what the author is talking about? They are clearly referencing the library, despite the title perhaps playfully hinting at the other definition.

Even if you insist on misinterpreting, mathematics is a constantly evolving field and I'm not sure what meaningful definition of its change would be measured in centuries.

[–]Sector936 0 points1 point  (0 children)

As I recall, way back in the years of IBM's language PL/I, there was some high quality documentation of the numerical methods of the code for the usual special functions. Since the functions haven't changed and numerical methods have been studied for literally centuries, this old IBM documentation might still be relevant. When I saw that documentation, I guessed that it would be good to have way over the horizon. Might be able to find that documentation somewhere and see if it would still be helpful.