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. If \operatorname{sgn}(x) is a root of unity e^{\pi i p/q}, the result is the rational multiple p \pi / q. For special values, \arg(c \infty) = \arg(c), \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-10-20).