FLINT3.7.0-dev

gr_ctx_init_real_ca, gr_ctx_init_complex_ca, gr_ctx_init_real_algebraic_ca, gr_ctx_init_complex_algebraic_ca

Synopsis#include <flint/gr.h>
void gr_ctx_init_real_ca(gr_ctx_t ctx)source
void gr_ctx_init_complex_ca(gr_ctx_t ctx)source
void gr_ctx_init_real_algebraic_ca(gr_ctx_t ctx)source
void gr_ctx_init_complex_algebraic_ca(gr_ctx_t ctx)source

Initialise ctx to the field of real numbers, complex numbers, real algebraic numbers or complex algebraic numbers, represented exactly by elements of type ca_struct (see ca and the guide to ca). Operations whose result is not in the field (for example \sqrt{-1} in the reals, \pi in the algebraic numbers) return GR_DOMAIN, and predicates that cannot be decided return T_UNKNOWN. The context allocates a ca_ctx_t; it is not thread-safe (gr_ctx_is_threadsafe returns T_FALSE).

Guides#

Cite this page

The FLINT team, “gr_ctx_init_real_ca, gr_ctx_init_complex_ca, gr_ctx_init_real_algebraic_ca, gr_ctx_init_complex_algebraic_ca (gr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_domains/gr_ctx_init_real_ca.html (generated 2026-10-20).