FLINT3.7.0-dev

padic_pow_si

Synopsis#include <flint/padic.h>
void padic_pow_si(padic_t rop, const padic_t op, slong e, const padic_ctx_t ctx)source

Sets rop to opeop^e, reduced, for any integer ee, with op0=1op^0 = 1. For e<0e < 0 the unit is first inverted modulo pN−evp^{N - ev}. If op is zero and e≠0e \ne 0 the result is zero, also for e<0e < 0. Assumes that evev does not overflow a slong.

If the input pvup^v u is only known modulo pNp^N, then xex^e is only known modulo pN+(e−1)vp^{N + (e - 1)v}, which is a loss of precision when v<0v < 0 (Precision and representation of p-adic numbers). The function computes the power of the stored value exactly and does not account for this.

Cite this page

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