Re: Issue 1304 in sympy: Integrate sqrt(x**2 + y**2) fails

2010-06-02 Thread sympy
Comment #7 on issue 1304 by asmeurer: Integrate sqrt(x**2 + y**2) fails http://code.google.com/p/sympy/issues/detail?id=1304 So the post in comment 1 confuses real and Real. If a Symbol is real, x.is_real should be True, but Real is the real number class, so x.is_Real should be false. The pr

Re: Issue 1393 in sympy: integrate(x**2 * sqrt(5-x**2), x) can't do it yet

2010-06-02 Thread sympy
Comment #3 on issue 1393 by asmeurer: integrate(x**2 * sqrt(5-x**2), x) can't do it yet http://code.google.com/p/sympy/issues/detail?id=1393 So part of my GSoC project will be to add more heuristics like this to the integrator. As Frederik noted, even if we implement the algebraic case, it

Re: Issue 1426 in sympy: failing integral

2010-06-02 Thread sympy
Comment #1 on issue 1426 by asmeurer: failing integral http://code.google.com/p/sympy/issues/detail?id=1426 It no longer gives a traceback, but takes a long time: integrate((x**m * (1 - x)**n * (a + b*x + c*x**2))/(1 + x**2), x) < long wait > Integral(x**m*(1 - x)**n*(a + b*x + c*x**2)/(1 + x

Re: Issue 1428 in sympy: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi]

2010-06-02 Thread sympy
Comment #1 on issue 1428 by asmeurer: wrong result for integral of sin(k*x)*sin(m*x) over [0,pi] http://code.google.com/p/sympy/issues/detail?id=1428 It works correctly now: In [26]: integrate(sin(k*x)*sin(m*x),(x,0,pi)) Out[26]: k⋅cos(π⋅k)⋅sin(π⋅m) ─── 22 m

Issue 1951 in sympy: sympy.cot(0)=0 rather than infinity sympy 0.6.6

2010-06-02 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1951 by scotta2002: sympy.cot(0)=0 rather than infinity sympy 0.6.6 http://code.google.com/p/sympy/issues/detail?id=1951 sympy.cot(0)=0 rather than infinity in sympy 0.6.6 as pckaged for ubuntu 10.04 32 bit i386. -- You r

Re: Issue 1951 in sympy: sympy.cot(0)=0 rather than infinity sympy 0.6.6

2010-06-02 Thread sympy
Updates: Status: Accepted Labels: WrongResult Comment #1 on issue 1951 by asmeurer: sympy.cot(0)=0 rather than infinity sympy 0.6.6 http://code.google.com/p/sympy/issues/detail?id=1951 It also is a problem in master. In Luke's branch at issue 1475, cot(0) just returns cot(0

Re: Issue 1576 in sympy: Integral of strictly positive function is zero

2010-06-02 Thread sympy
Updates: Status: Accepted Cc: mattpap Comment #4 on issue 1576 by asmeurer: Integral of strictly positive function is zero http://code.google.com/p/sympy/issues/detail?id=1576 This was working in Sympy 0.6.7, but something in the new polys broke it: In [1]: f = Symbol('f') I

Re: Issue 1393 in sympy: integrate(x**2 * sqrt(5-x**2), x) can't do it yet

2010-06-02 Thread sympy
Comment #4 on issue 1393 by fredrik.johansson: integrate(x**2 * sqrt(5-x**2), x) can't do it yet http://code.google.com/p/sympy/issues/detail?id=1393 Quadratics are by far most important, and the only ones that can be done (generally) using elementary functions. For polynomials of degree

Re: Issue 1939 in sympy: Enhancements in ellipse class

2010-06-02 Thread sympy
Updates: Labels: -NeedsReview NeedsBetterPatch Comment #2 on issue 1939 by smichr: Enhancements in ellipse class http://code.google.com/p/sympy/issues/detail?id=1939 1) This patch assumes that the major axis is the horizontal axis, I believe, but this is not a constraint that is (nor s

Issue 1952 in sympy: Implement sinc function

2010-06-02 Thread sympy
Status: Accepted Owner: Labels: Type-Enhancement Priority-Medium New issue 1952 by fredrik.johansson: Implement sinc function http://code.google.com/p/sympy/issues/detail?id=1952 SymPy should implement a sinc function with correct evaluation at x = -oo, 0 and oo. See: http://groups.google.

Re: Issue 1850 in sympy: solve_linear_system contains duplicate rref algorithm

2010-06-02 Thread sympy
Comment #2 on issue 1850 by asmeurer: solve_linear_system contains duplicate rref algorithm http://code.google.com/p/sympy/issues/detail?id=1850 One thing that will need to be added to Matrix.rref is the ability to exit early if the system is inconsistent, as solve_linear_system does, so th

Re: Issue 1441 in sympy: integrate takes forever

2010-06-02 Thread sympy
Updates: Status: Accepted Comment #5 on issue 1441 by asmeurer: integrate takes forever http://code.google.com/p/sympy/issues/detail?id=1441 Regarding comment 5 in issue 1843, yes, a good deal of time is spent doing expansion on a huge expression. I plan on rewriting heurish to use Pol

Re: Issue 1576 in sympy: Integral of strictly positive function is zero

2010-06-02 Thread sympy
Comment #5 on issue 1576 by asmeurer: Integral of strictly positive function is zero http://code.google.com/p/sympy/issues/detail?id=1576 The problem is In [36]: Poly(-4*_t, _t, domain='QQ').invert( Poly(16*y**2*_t**2 + 49, _t, domain='ZZ[y]'))

Re: Issue 1576 in sympy: Integral of strictly positive function is zero

2010-06-02 Thread sympy
Comment #6 on issue 1576 by asmeurer: Integral of strictly positive function is zero http://code.google.com/p/sympy/issues/detail?id=1576 Issue 1578 has been merged into this issue. -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to

Re: Issue 1578 in sympy: failing integral

2010-06-02 Thread sympy
Updates: Status: Duplicate Mergedinto: 1576 Comment #1 on issue 1578 by asmeurer: failing integral http://code.google.com/p/sympy/issues/detail?id=1578 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups "sympy-

Re: Issue 1604 in sympy: Misapplication of integration by parts

2010-06-02 Thread sympy
Updates: Blockedon: 1688 Comment #1 on issue 1604 by asmeurer: Misapplication of integration by parts http://code.google.com/p/sympy/issues/detail?id=1604 This ends up being the source of the error: In [2]: diff(g(x), x).subs(g(x), y) Out[2]: 0 It isn't incorrect, but the Risch algorit

Re: Issue 1688 in sympy: Functions should be objects

2010-06-02 Thread sympy
Issue 1688: Functions should be objects http://code.google.com/p/sympy/issues/detail?id=1688 This issue is now blocking issue 1604. See http://code.google.com/p/sympy/issues/detail?id=1604 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Re: Issue 1604 in sympy: Misapplication of integration by parts

2010-06-02 Thread sympy
Issue 1604: Misapplication of integration by parts http://code.google.com/p/sympy/issues/detail?id=1604 This issue is now blocking issue 1888. See http://code.google.com/p/sympy/issues/detail?id=1888 -- You received this message because you are listed in the owner or CC fields of this issue, or

Re: Issue 1888 in sympy: integrate(f(x).diff(x)**2, x) gives some strange answer

2010-06-02 Thread sympy
Updates: Blockedon: 1604 Comment #1 on issue 1888 by asmeurer: integrate(f(x).diff(x)**2, x) gives some strange answer http://code.google.com/p/sympy/issues/detail?id=1888 I am almost certain that this is the same as issue 1604. f(x).diff(x).subs(f(x), y) gives 0. As the dsolve()

Re: Issue 1749 in sympy: Integration of acosh(x) gives wrong result

2010-06-02 Thread sympy
Updates: Status: Invalid Comment #2 on issue 1749 by asmeurer: Integration of acosh(x) gives wrong result http://code.google.com/p/sympy/issues/detail?id=1749 This was correct: In [30]: simplify(S("""x*(-1 + x**2)**(1/2)*acosh(x)/((-1 + x**2)**(1/2) - x**2*(-1 + x**2)**(1/2)) - x**3

Re: Issue 1750 in sympy: Integration of acot(x) and atan(x) gives wrong results

2010-06-02 Thread sympy
Updates: Status: Invalid Comment #1 on issue 1750 by asmeurer: Integration of acot(x) and atan(x) gives wrong results http://code.google.com/p/sympy/issues/detail?id=1750 As with issue 1749, this was correct, and it does it better now: In [39]: integrate(atan(x), x) Out[39]: ⎛

Re: Issue 1793 in sympy: Integration failure

2010-06-02 Thread sympy
Updates: Labels: -Type-Enhancement -Priority-Low Type-Defect Priority-Medium Comment #2 on issue 1793 by asmeurer: Integration failure http://code.google.com/p/sympy/issues/detail?id=1793 I was going to close this as invalid, but it looks like somewhere the new polys broke it: In [1]

Re: Issue 1793 in sympy: Integration failure

2010-06-02 Thread sympy
Updates: Cc: mattpap Comment #3 on issue 1793 by asmeurer: Integration failure http://code.google.com/p/sympy/issues/detail?id=1793 The problem is the same as in issue 1576, i.e., applying this "fixes" it: diff --git a/sympy/integrals/rationaltools.py b/sympy/integrals/rationaltools.p

Re: Issue 1793 in sympy: Integration failure

2010-06-02 Thread sympy
Comment #4 on issue 1793 by asmeurer: Integration failure http://code.google.com/p/sympy/issues/detail?id=1793 Actually, the answer is probably no, at least partially, because the integral from issue 1576 still fails with this fix. By the way, my apologies to anyone who is subscribed to the

Re: Issue 1793 in sympy: Integration failure

2010-06-02 Thread sympy
Comment #5 on issue 1793 by smichr: Integration failure http://code.google.com/p/sympy/issues/detail?id=1793 The commit titled "x-dependent portion of integrand separated out" (b6dc47b) right before 1766 - in branch 1766 at smichr's account at github doesn't generate this error and give

Re: Issue 1793 in sympy: Integration failure

2010-06-02 Thread sympy
Comment #6 on issue 1793 by asmeurer: Integration failure http://code.google.com/p/sympy/issues/detail?id=1793 That's just because this integral happens to be really simple (A/t + B is what it boils down to). A more general fix is needed. For example, the integral in issue 1575 still fails i