This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fpu/e_expl.c for i686



> expl (1000) is .19e435 and can only be represented with long doubles.
> How much would the error be for expl (100)?

Instead of exp(x) the program computes  exp(x(1 + dx)) where dx
is the relative input error introduced, in this case by the range
reduction method.
    exp(x(1 + dx)) = exp(x) (1 + x dx + ...)
So if x is 100 and dx is 1/2 ulp, the relative error would be
about 50 ulps (long double ulps).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]