ca_add_fmpq, ca_add_fmpz, ca_add_ui, ca_add_si, ca_add
Synopsis
#include <flint/ca.h>Sets res to x + y.
For special values:
- c \infty + d \infty = c \infty if c = d, and Undefined if c \ne d (Unknown if this cannot be decided);
- \tilde \infty + \tilde \infty and \tilde \infty + c \infty are Undefined;
- c \infty + z = c \infty and \tilde \infty + z = \tilde \infty;
- Undefined plus any value, including Unknown, is Undefined; otherwise Unknown plus any value is Unknown.
Guides#
Cite this page
The FLINT team, “ca_add_fmpq, ca_add_fmpz, ca_add_ui, ca_add_si, ca_add (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_add_fmpq.html (generated 2026-10-20).
@misc{flint-doc-ca-ca-add-fmpq,
author = {{The FLINT team}},
title = {{ca\_add\_fmpq, ca\_add\_fmpz, ca\_add\_ui, ca\_add\_si, ca\_add (ca.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca/ca_add_fmpq.html},
note = {Generated 2026-10-20}
}