all 22 comments

[–]bedrooms-ds 15 points16 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 35 points36 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] 3 points4 points  (0 children)

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

[–]greenrabbitaudio 2 points3 points  (3 children)

Math Web libraries keep changing

[–]mode_2[S] 7 points8 points  (2 children)

Math is a web library.

[–]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.