mirror of
https://github.com/vale981/arb
synced 2025-03-06 01:41:39 -05:00
improve pow with e = 1/2
This commit is contained in:
parent
1b947fe4c4
commit
632315c608
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,11 @@ fmprb_pow_fmpq(fmprb_t y, const fmprb_t x, const fmpq_t a, long prec)
|
|||
{
|
||||
fmprb_pow_fmpz(y, x, fmpq_numref(a), prec);
|
||||
}
|
||||
/* TODO: generalize this to a = p/q for any small p, q */
|
||||
else if (fmpz_is_one(fmpq_numref(a)) && fmpz_cmp_ui(fmpq_denref(a), 2) == 0)
|
||||
{
|
||||
fmprb_sqrt(y, x, prec);
|
||||
}
|
||||
else
|
||||
{
|
||||
long wp;
|
||||
|
|
Loading…
Add table
Reference in a new issue