FLINT3.7.0-dev

_mp_real_small_exp_pm_2, _mp_real_small_exp_pm_3

Synopsis#include <flint/mp_real.h>
void _mp_real_small_exp_pm_2(ulong * y2, ulong * y1, ulong * y0, ulong * z2, ulong * z1, ulong * z0, ulong v1, ulong v0)source
void _mp_real_small_exp_pm_3(ulong * y3, ulong * y2, ulong * y1, ulong * y0, ulong * z3, ulong * z2, ulong * z1, ulong * z0, ulong v2, ulong v1, ulong v0)source

For v \in [0, 1) at two resp. three fraction limbs (most significant limb first), set y = \exp(v) and z = \exp(-v), each with an integral limb, at about 1.5 times the cost of one exponential. 64-bit only.

Cite this page

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