FLINT3.7.0-dev

gr_log, gr_log1p, gr_log2, gr_log10

Synopsis#include <flint/gr_special.h>
int gr_log(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_log1p(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_log2(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_log10(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source

Set res to the principal natural logarithm \log x, to \log(1 + x) (accurate for small x), or to the logarithms in base 2 and 10. GR_DOMAIN for x = 0.

Guides#

Cite this page

The FLINT team, “gr_log, gr_log1p, gr_log2, gr_log10 (gr_special.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_special/gr_log.html (generated 2026-10-20).