FLINT3.7.0-dev

mag_cmp, mag_cmp_2exp_si

Synopsis#include <flint/mag.h>
int mag_cmp(const mag_t x, const mag_t y)source
int mag_cmp_2exp_si(const mag_t x, slong e)source

Return a negative number, zero or a positive number according as x is less than, equal to or greater than y, respectively 2^e. Both comparisons are exact and handle infinity.

Guides#

Cite this page

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