FLINT3.7.0-dev

nfloat_pos_inf, nfloat_neg_inf, nfloat_nan

Synopsis#include <flint/nfloat.h>
int nfloat_pos_inf(nfloat_ptr res, gr_ctx_t ctx)source
int nfloat_neg_inf(nfloat_ptr res, gr_ctx_t ctx)source
int nfloat_nan(nfloat_ptr res, gr_ctx_t ctx)source

Set res to +\infty, -\infty or NaN if the context allows it. Otherwise the infinities return GR_DOMAIN and NaN returns GR_UNABLE, leaving res unchanged.

Cite this page

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