FLINT3.7.0-dev

arf_complex_sqr

Synopsis#include <flint/arf.h>
int arf_complex_sqr(arf_t e, arf_t f, const arf_t a, const arf_t b, slong prec, arf_rnd_t rnd)source

Sets e+fi=(a+bi)2e + fi = (a + bi)^2, with the same conventions as arf_complex_mul, but faster.

As arf_complex_mul with the square kernels: the complex high square (flint_mpn_sqrhigh_n_complex), and for the exact square flint_mpn_sqr_complex from 24 limbs, below that two real squares and one product.

Cite this page

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