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)sourceint nfloat_submul(nfloat_ptr res, nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx)sourceSet 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).
@misc{flint-doc-nfloat-nfloat-addmul,
author = {{The FLINT team}},
title = {{nfloat\_addmul, nfloat\_submul (nfloat.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nfloat/nfloat_addmul.html},
note = {Generated 2026-10-20}
}