gr_ctx_init_real_ca, gr_ctx_init_complex_ca, gr_ctx_init_real_algebraic_ca, gr_ctx_init_complex_algebraic_ca
#include <flint/gr.h>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#
- Using ca (
ca)
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).
@misc{flint-doc-gr-domains-gr-ctx-init-real-ca,
author = {{The FLINT team}},
title = {{gr\_ctx\_init\_real\_ca, gr\_ctx\_init\_complex\_ca, gr\_ctx\_init\_real\_algebraic\_ca, gr\_ctx\_init\_complex\_algebraic\_ca (gr.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_domains/gr_ctx_init_real_ca.html},
note = {Generated 2026-10-20}
}