FLINT3.7.0-dev

dlog_power_init, dlog_power_clear, dlog_power

Synopsis#include <flint/dlog.h>
ulong dlog_power_init(dlog_power_t t, ulong a, ulong mod, ulong p, ulong e, ulong num)source
void dlog_power_clear(dlog_power_t t)source
ulong dlog_power(const dlog_power_t t, ulong b)source

Initialise t for num logarithms to the base a of order p^e (the subgroup precomputation is made for e \cdot \mathit{num} logarithms and the cost is e times its cost); free it; and return \log_a(b), found one base-p digit at a time, each digit a logarithm in the subgroup of order p.

Cite this page

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