on-internet
← Community

Computing li(x) the logarithmic integral accurately in double precision when x ~ 10^16

Stack Overflow ·

I have two series and one continued fraction method. They all give slightly different answers when x gets large and disagree with OEIS A057754 about Li(10^16) when computed in double precision. Compiled to long double precision all the algorithms agree to a few ULP on the 64 bit significand and OEIS is correct. The logarithmic integral is defined as: They all have the zero at 1.45136923488338105 to within 1 ULP in double precision and out to 10^16 are in pretty good agreement. The first series seems slightly off when evaluated in double precision no matter how hard I try to help it be more acc

Comments

Sign in or sign up to comment and upvote.

No comments yet.