FLINT3.7.0-dev

ca_arg

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

Sets res to the argument (phase) of x in (−π,π](-\pi, \pi], with arg⁡(0)=0\arg(0) = 0. If sgn⁡(x)\operatorname{sgn}(x) is a root of unity eπip/qe^{\pi i p/q}, the result is the rational multiple pπ/qp \pi / q. For special values, arg⁡(c∞)=arg⁡(c)\arg(c \infty) = \arg(c), arg⁡(∞~)\arg(\tilde \infty) is Undefined, and Undefined and Unknown map to themselves.

Cite this page

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