FLINT3.7.0-dev

n_flog, n_clog

Synopsis#include <flint/ulong_extras.h>
ulong n_flog(ulong n, ulong b)source
ulong n_clog(ulong n, ulong b)source

Returns \lfloor \log_b n \rfloor and \lceil \log_b n \rceil respectively. Requires n \ge 1 and b \ge 2.

Cite this page

The FLINT team, “n_flog, n_clog (ulong_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ulong_extras/n_flog.html (generated 2026-10-20).