Complex arg-trig functions

Stephen Montgomery-Smith stephen at missouri.edu
Tue Aug 14 17:02:14 UTC 2012


On 08/14/2012 11:51 AM, Stephen Montgomery-Smith wrote:

> On the other hand, getting sin(x) correct when x is close to, say, 10pi
> would be useful.  It would be nice if sin(x+0.01)-sin(x) is
> approximately 0.01*cos(x), and if the computation (x mod pi/2) didn't
> take into account a few extra digits of pi, and can see this failing for
> certain values of x.

s/0.01/n*DBL_EPSILON/ for small n.



More information about the freebsd-numerics mailing list