FLINT3.7.0-dev

qqbar_csgn

Synopsis#include <flint/qqbar.h>
int qqbar_csgn(const qqbar_t x)source

Returns the extension of the real sign function that is 1 in the open right half-plane, -1 in the open left half-plane, the sign of the imaginary part on the imaginary axis, and 0 at 0; equivalently \operatorname{csgn}(x) = x / \sqrt{x^2} for x \ne 0.

Cite this page

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