FLINT3.7.0-dev

mp_real_mul, mp_real_mul_ui

Synopsis#include <flint/mp_real.h>
void mp_real_mul(mp_real_t res, const mp_real_t a, const mp_real_t b, slong n)source
void mp_real_mul_ui(mp_real_t res, const mp_real_t a, ulong c, slong n)source

Set res to ab resp. ac.

The operands are first truncated to n + 2 limbs, the dropped tails entering the radius through the other operand's magnitude, so that a long exact operand costs no more than the precision asks for. Short products are formed in full and longer ones as windowed middle products (flint_mpn_mulmid); a square goes through flint_mpn_sqr.

Guides#

Cite this page

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