FLINT3.7.0-dev

acb_quadratic_roots_fmpz

Synopsis#include <flint/acb.h>
void acb_quadratic_roots_fmpz(acb_t r1, acb_t r2, const fmpz_t a, const fmpz_t b, const fmpz_t c, slong prec)source

Sets r1 and r2 to the roots of ax^2 + bx + c, a \ne 0. Both roots are computed accurately, also when the quadratic formula would suffer from cancellation.

Cite this page

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