FLINT3.7.0-dev

nfloat_complex_conj, nfloat_complex_re, nfloat_complex_im, nfloat_complex_neg, nfloat_complex_add, nfloat_complex_sub, nfloat_complex_mul, nfloat_complex_sqr, nfloat_complex_mul_2exp_si, nfloat_complex_abs, nfloat_complex_abs2

Synopsis#include <flint/nfloat.h>
int nfloat_complex_conj(nfloat_complex_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source
int nfloat_complex_re(nfloat_complex_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source
int nfloat_complex_im(nfloat_complex_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source
int nfloat_complex_neg(nfloat_complex_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source
int nfloat_complex_sqr(nfloat_complex_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source
int nfloat_complex_mul_2exp_si(nfloat_complex_ptr res, nfloat_complex_srcptr x, slong y, gr_ctx_t ctx)source
int nfloat_complex_abs(nfloat_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source
int nfloat_complex_abs2(nfloat_complex_ptr res, nfloat_complex_srcptr x, gr_ctx_t ctx)source

Conjugate, real and imaginary parts (as complex numbers), negation, sum, difference, product, square, multiplication by 2y2^y, absolute value (a real number, correctly rounded as by nfloat_hypot) and squared absolute value a2+b2a^2 + b^2 (as a complex number with zero imaginary part, the gr_abs2 method; the square of the nonzero part when the other is zero).

Guides#

Cite this page

The FLINT team, “nfloat_complex_conj, nfloat_complex_re, nfloat_complex_im, nfloat_complex_neg, nfloat_complex_add, nfloat_complex_sub, nfloat_complex_mul, nfloat_complex_sqr, nfloat_complex_mul_2exp_si, nfloat_complex_abs, nfloat_complex_abs2 (nfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/nfloat/nfloat_complex_conj.html (generated 2026-11-20).