mirror of
https://github.com/vale981/arb
synced 2025-03-05 09:21:38 -05:00
special case +/- 2 in fmpcb_root
This commit is contained in:
parent
7d663e14f7
commit
28814f40c2
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ fmpcb_root(fmpcb_t r, const fmpcb_t a, long m, long index, long prec)
|
|||
fmpcb_set_round(r, a, prec);
|
||||
else if (m == -1)
|
||||
fmpcb_inv(r, a, prec);
|
||||
else if (m == 2)
|
||||
fmpcb_sqrt(r, a, prec);
|
||||
else if (m == -2)
|
||||
fmpcb_rsqrt(r, a, prec);
|
||||
else if (prec < 300 || !fmpcb_is_exact(a) || (m == LONG_MIN))
|
||||
fmpcb_root_exp(r, a, m, index, prec);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue