/*
Copyright (C) 2024 Jean Kieffer
This file is part of FLINT.
FLINT is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version. See <https://www.gnu.org/licenses/>.
*/
#include "acb.h"
#include "acb_theta.h"
void acb_theta_ctx_sqr_inv(acb_t sqr_inv, const acb_t inv, const acb_t sqr,
int z_is_real, slong prec)
{
if (z_is_real)
{
acb_conj(sqr_inv, sqr);
}
else
{
acb_sqr(sqr_inv, inv, prec);
}
}