ca_fmpq_div, ca_fmpz_div, ca_ui_div, ca_si_div, ca_div_fmpq, ca_div_fmpz, ca_div_ui, ca_div_si, ca_div
Synopsis
#include <flint/ca.h>Sets res to x / y, which is x \cdot (1/y) for numbers.
For special values and division by zero:
- z / 0 = \tilde \infty for z \ne 0, and 0/0 is Undefined;
- c \infty / z = (c / \operatorname{sgn}(z)) \infty for z \ne 0, and c \infty / 0 = \tilde \infty / 0 = \tilde \infty;
- z / (c \infty) = z / \tilde \infty = 0;
- a quotient of two infinities is Undefined;
- Undefined divided by or into any value is Undefined; otherwise Unknown gives Unknown.
If the case cannot be decided because a zero test fails, the result is Unknown.
Guides#
Cite this page
The FLINT team, “ca_fmpq_div, ca_fmpz_div, ca_ui_div, ca_si_div, ca_div_fmpq, ca_div_fmpz, ca_div_ui, ca_div_si, ca_div (ca.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ca/ca_fmpq_div.html (generated 2026-10-20).
@misc{flint-doc-ca-ca-fmpq-div,
author = {{The FLINT team}},
title = {{ca\_fmpq\_div, ca\_fmpz\_div, ca\_ui\_div, ca\_si\_div, ca\_div\_fmpq, ca\_div\_fmpz, ca\_div\_ui, ca\_div\_si, ca\_div (ca.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ca/ca_fmpq_div.html},
note = {Generated 2026-10-20}
}