FLINT3.7.0-dev

mag_exp_tail

Synopsis#include <flint/mag.h>
void mag_exp_tail(mag_t res, const mag_t x, ulong N)source

Sets res to an upper bound for \sum_{k=N}^{\infty} x^k / k!.

If N \ge 2x, the terms decrease at least geometrically with ratio 1/2 and the bound 2 x^N / N! is used. Otherwise the crude bound e^x is returned.

Guides#

Cite this page

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