FLINT3.7.0-dev

ca_inv

Synopsis#include <flint/ca.h>
void ca_inv(ca_t res, const ca_t x, ca_ctx_t ctx)source

Sets res to 1/x. In a field with one algebraic generator the result has a rational denominator; in a generic field the denominator is not rationalised.

The rules for zero and special values are 1/0 = \tilde \infty, 1/(c \infty) = 1/\tilde \infty = 0, and Undefined and Unknown map to themselves. If it cannot be decided whether x = 0, the result is Unknown.

Guides#

Cite this page

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