Gistlib Logo

gistlib

other javascript categories

numerical-computation code snippets in javascript

the quantity y=1-\sqrt{1+x^2} for x=10^{-6} is not so accurate due to numerical cancellation. indeed, the relative error associated to it is, approximately: in javascript

gistlibby LogSnag