FLINT3.7.0-dev

ca_set_si, ca_set_ui, ca_set_fmpz, ca_set_fmpq

Synopsis#include <flint/ca.h>
void ca_set_si(ca_t res, slong v, ca_ctx_t ctx)source
void ca_set_ui(ca_t res, ulong v, ca_ctx_t ctx)source
void ca_set_fmpz(ca_t res, const fmpz_t v, ca_ctx_t ctx)source
void ca_set_fmpq(ca_t res, const fmpq_t v, ca_ctx_t ctx)source

Sets res to the integer or rational number v, as an element of \mathbb{Q}.

Guides#

Cite this page

The FLINT team, “ca_set_si, ca_set_ui, ca_set_fmpz, ca_set_fmpq (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_set_si.html (generated 2026-10-20).