FLINT3.7.0-dev

nfloat_addmul, nfloat_submul

Synopsis#include <flint/nfloat.h>
int nfloat_addmul(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)source
int nfloat_submul(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)source

Set res to \mathit{res} + xy or \mathit{res} - xy, with two roundings, so the result can be far from the exact value (measured in ulp of the result) when the terms cancel.

Guides#

Cite this page

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