gistlib
other matlab categories
cancellation-error code snippets in matlab
the quantity y=\frac{1}{2}-\sqrt{\frac{1}{4}+x^2} for x=10^{-6} is not so accurate due to numerical cancellation. indeed, the relative error associated to it is, approximately in matlab
gistlib
by LogSnag