FLINT3.7.0-dev

gr_conj, gr_re, gr_im, gr_sgn, gr_csgn, gr_arg

Synopsis#include <flint/gr.h>
int gr_conj(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_re(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_im(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_sgn(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_csgn(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_arg(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source

Set res to the complex conjugate, the real part, the imaginary part, the sign x / |x| (0 for x = 0), the real-valued sign used for branch cuts (csgn: the sign of \operatorname{Re}(x), or of \operatorname{Im}(x) when the real part is zero), and the argument in (-\pi, \pi].

Cite this page

The FLINT team, “gr_conj, gr_re, gr_im, gr_sgn, gr_csgn, gr_arg (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr/gr_conj.html (generated 2026-10-20).