Open rwst opened 6 years ago
Increase the precision until the result is sufficiently accurate:
sage: C = ComplexBallField(128)
sage: C(0).legendre_P(31/2)
[0.141013048084263329998974219590 +/- 5.88e-31]
That is unexpected. So this is a Sage interface issue?
No, that is how Arb works in general (although the algorithms could be improved to address specific cases like this one). In general the user has the responsibility to check if the interval is precise enough and increase the precision otherwise.
With mpmath as comparison:
there is: