FLINT3.7.0-dev

_padic_ctx_pow_ui

Synopsis#include <flint/padic.h>
int _padic_ctx_pow_ui(fmpz_t rop, ulong e, const padic_ctx_t ctx)source

Makes the uninitialised rop equal to p^e. If p^e is in the table, rop becomes a shallow copy of the table entry, which must be neither modified nor cleared, and the function returns 0. Otherwise it initialises rop, computes the power and returns 1, and the caller must clear rop. Throws if e exceeds WORD_MAX.

Cite this page

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