FLINT3.7.0-dev

gr_log_integral

Synopsis#include <flint/gr_special.h>
int gr_log_integral(gr_ptr res, gr_srcptr x, int offset, gr_ctx_t ctx)source

Sets res to the logarithmic integral li⁡(x)=∫0xdt/log⁡t\operatorname{li}(x) = \int_0^x dt / \log t, or to the offset logarithmic integral Li⁡(x)=li⁡(x)−li⁡(2)\operatorname{Li}(x) = \operatorname{li}(x) - \operatorname{li}(2) if offset is nonzero.

Cite this page

The FLINT team, “gr_log_integral (gr_special.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_special/gr_log_integral.html (generated 2026-11-02).