Merge pull request #350 from Joel-Dahne/fix-real-abs

Fix typo in acb_real_abs leading to wrong results for some values
This commit is contained in:
Fredrik Johansson 2020-10-10 14:51:54 +02:00 committed by GitHub
commit 85a8bd4767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ acb_real_abs(acb_t res, const acb_t z, int analytic, slong prec)
{ {
acb_t t; acb_t t;
acb_init(t); acb_init(t);
acb_neg(t, res); acb_neg(t, z);
acb_union(res, z, t, prec); acb_union(res, z, t, prec);
acb_clear(t); acb_clear(t);
} }