Open GoogleCodeExporter opened 9 years ago
Thanks! I have fixed it here:
https://github.com/fredrik-johansson/mpmath/commit/fc474e10694ea0800ef568afd3e7b
f8f4ab1142c
Original comment by fredrik....@gmail.com
on 9 Aug 2012 at 9:56
Fredrik,
I downloaded and installed your fix. There might still be some issues.
ellippi(1,-2,1) probably should return -inf.
Also, test_linalg.py fails for the print statements and the xrange references.
I have only installed the minimum modules required for mpmath.
Here is an alternate ending for the ellippi function returning either 2 or 3
terms.
if away:
d = ctx.nint(x/pi)
z = z-pi*d
#P = 2*d*ctx.ellippi(n,m)
#if ctx.isinf(P):
#return ctx.inf
#else:
#P = 0
def terms():
if complete:
c, s = ctx.zero, ctx.one
else:
c, s = ctx.cos_sin(z)
x = c**2
y = 1-m*s**2
RF = ctx.elliprf(x, y, 1)
RJ = ctx.elliprj(x, y, 1, 1-n*s**2)
if away: return s*RF, n*s**3*RJ/3, 2*d*ctx.ellippi(n,m)
return s*RF, n*s**3*RJ/3
return ctx.sum_accurately(terms)
Original comment by JohnBey...@gmail.com
on 12 Aug 2012 at 3:29
Original issue reported on code.google.com by
JohnBey...@gmail.com
on 6 Aug 2012 at 12:43