-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arb_pow could do much better for <a +- a> ^ <b +- c> with b >= c > 0 and a > 0 #444
Comments
Agreed, but |
Hmm, but if there are negative numbers in |
Ah yes, you're right of course. So this really is a special special case. The more general case would be relevant in |
Agreed,
I suppose we could at least do a case distinction there between The |
Patching |
Consider
arb_pow(z, x, y, prec)
withx = <a +- a>
andy
nonnegative. This works as I would expect forx=0
, and also for exact half integersy
, includingy = 0
. But ifa > 0
andy
is not an exact half integer, thenarb_pow
returns a non-finite answer (because it takes the logarithm ofx
, then multiplies byy
, then takes the exponential; but we can't represent the half-infinite interval that the logarithm requires), whereas there is a finite answer. I propose to do roughly this, after all existing special cases have been done:The text was updated successfully, but these errors were encountered: