FLINT3.7.0-dev

ca_sgn

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

Sets res to the complex sign of x, which is x/|x| for x \ne 0 and 0 for x = 0. For special values, \operatorname{sgn}(c \infty) = c, \operatorname{sgn}(\tilde \infty) is Undefined, and Undefined and Unknown map to themselves.

Guides#

Cite this page

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