Issue 2640 in sympy: uneccessary nesting of exponent

2011-08-17 Thread sympy
Status: Accepted Owner: smi...@gmail.com Labels: Type-Defect Priority-Medium Printing New issue 2640 by smi...@gmail.com: uneccessary nesting of exponent http://code.google.com/p/sympy/issues/detail?id=2640 Rational does not need to be wrapped in parentheses when it is an exponent:

Re: Issue 2640 in sympy: uneccessary nesting of exponent

2011-08-17 Thread sympy
Comment #1 on issue 2640 by smi...@gmail.com: uneccessary nesting of exponent http://code.google.com/p/sympy/issues/detail?id=2640 https://github.com/sympy/sympy/pull/556 python(sqrt(2)) 'e = 2**Rational(1, 2)' str(sqrt(2)*x) '2**(1/2)*x' -- You received this message

Re: Issue 2143 in sympy: Test runner does not print names of XPASSed tests (usually)

2011-08-17 Thread sympy
Updates: Status: Fixed Comment #3 on issue 2143 by smi...@gmail.com: Test runner does not print names of XPASSed tests (usually) http://code.google.com/p/sympy/issues/detail?id=2143 (No comment was entered for this change.) -- You received this message because you are subscribed to

Re: Issue 2079 in sympy: multiple integral gives wrong result

2011-08-17 Thread sympy
Comment #4 on issue 2079 by ness...@googlemail.com: multiple integral gives wrong result http://code.google.com/p/sympy/issues/detail?id=2079 [I sent this by email while the tracker seemed to be down; sorry if it comes up twice now.] There are a couple of problems here, most of which are

Re: Issue 1066 in sympy: sum(1/(x+2)**3,(x,1,oo)) doesn't do it

2011-08-17 Thread sympy
Updates: Labels: NeedsReview Comment #14 on issue 1066 by ness...@googlemail.com: sum(1/(x+2)**3,(x,1,oo)) doesn't do it http://code.google.com/p/sympy/issues/detail?id=1066 This is fixed in gsoc-3: https://github.com/sympy/sympy/pull/543 In [1]: summation(1/(x+2)**3, (x, 1, oo))

Re: Issue 841 in sympy: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral

2011-08-17 Thread sympy
Updates: Labels: NeedsReview Comment #14 on issue 841 by ness...@googlemail.com: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral http://code.google.com/p/sympy/issues/detail?id=841 The definite integral works in gsoc-3

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

2011-08-17 Thread sympy
Updates: Labels: ness987 NeedsReview Comment #16 on issue 1304 by ness...@googlemail.com: Integrate sqrt(x**2 + y**2) fails http://code.google.com/p/sympy/issues/detail?id=1304 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [18]:

Re: Issue 1796 in sympy: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x)

2011-08-17 Thread sympy
Comment #6 on issue 1796 by ness...@googlemail.com: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x) http://code.google.com/p/sympy/issues/detail?id=1796 This works exactly the same as issue 841 in gsoc-3. (i.e. the definite integral works, and the indefinite integrals work if you

Re: Issue 1066 in sympy: sum(1/(x+2)**3,(x,1,oo)) doesn't do it

2011-08-17 Thread sympy
Comment #15 on issue 1066 by ness...@googlemail.com: sum(1/(x+2)**3,(x,1,oo)) doesn't do it http://code.google.com/p/sympy/issues/detail?id=1066 This is fixed in gsoc-3: https://github.com/sympy/sympy/pull/543 In [1]: summation(1/(x+2)**3, (x, 1, oo)) Out[1]: -9/8 + ζ(3) -- You received

Re: Issue 1394 in sympy: integrate(x*sqrt(1+2*x), x) can't do it yet

2011-08-17 Thread sympy
Updates: Labels: NeedsReview ness987 Comment #4 on issue 1394 by ness...@googlemail.com: integrate(x*sqrt(1+2*x), x) can't do it yet http://code.google.com/p/sympy/issues/detail?id=1394 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543), although not as prettily as one

Re: Issue 459 in sympy: simple double integration fails

2011-08-17 Thread sympy
Updates: Labels: NeedsReview ness987 Comment #7 on issue 459 by ness...@googlemail.com: simple double integration fails http://code.google.com/p/sympy/issues/detail?id=459 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [36]: integrate(cos(x*y), (x, -pi/2, pi/2),

Re: Issue 2079 in sympy: multiple integral gives wrong result

2011-08-17 Thread sympy
Comment #5 on issue 2079 by ness...@googlemail.com: multiple integral gives wrong result http://code.google.com/p/sympy/issues/detail?id=2079 [I sent this by email while the tracker seemed to be down; sorry if it comes up twice now.] There are a couple of problems here, most of which are

Re: Issue 1796 in sympy: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x)

2011-08-17 Thread sympy
Comment #7 on issue 1796 by ness...@googlemail.com: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x) http://code.google.com/p/sympy/issues/detail?id=1796 This works exactly the same as issue 841 in gsoc-3. (i.e. the definite integral works, and the indefinite integrals work if you

Re: Issue 1393 in sympy: Implement heuristics for integrating common algebraic functions

2011-08-17 Thread sympy
Comment #15 on issue 1393 by ness...@googlemail.com: Implement heuristics for integrating common algebraic functions http://code.google.com/p/sympy/issues/detail?id=1393 This kind of works in gsoc-3: In [54]: integrate(x**2 * sqrt(5-x**2), x, meijerg=True) Out[54]: ⎧

Re: Issue 1638 in sympy: integrate (sin(x)/x, (x, -oo, oo)) returns Integral (fails)

2011-08-17 Thread sympy
Updates: Labels: NeedsReview ness987 Comment #1 on issue 1638 by ness...@googlemail.com: integrate (sin(x)/x, (x, -oo, oo)) returns Integral (fails) http://code.google.com/p/sympy/issues/detail?id=1638 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [67]:

Re: Issue 1893 in sympy: integrate(log(x) * x**(k-1) * exp(-x) / gamma(k), (x, 0, oo)) hangs

2011-08-17 Thread sympy
Updates: Labels: NeedsReview ness987 Comment #9 on issue 1893 by ness...@googlemail.com: integrate(log(x) * x**(k-1) * exp(-x) / gamma(k), (x, 0, oo)) hangs http://code.google.com/p/sympy/issues/detail?id=1893 This mostly works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In

Re: Issue 1893 in sympy: integrate(log(x) * x**(k-1) * exp(-x) / gamma(k), (x, 0, oo)) hangs

2011-08-17 Thread sympy
Comment #10 on issue 1893 by ness...@googlemail.com: integrate(log(x) * x**(k-1) * exp(-x) / gamma(k), (x, 0, oo)) hangs http://code.google.com/p/sympy/issues/detail?id=1893 This mostly works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [78]: a = Symbol('a', positive=True) In

Re: Issue 2624 in sympy: Sympy 0.7.1 can't integrate Gaussians

2011-08-17 Thread sympy
Updates: Labels: NeedsReview Comment #12 on issue 2624 by ness...@googlemail.com: Sympy 0.7.1 can't integrate Gaussians http://code.google.com/p/sympy/issues/detail?id=2624 as reported before, this works in gsoc-3 which is now up for review: https://github.com/sympy/sympy/pull/543

Re: Issue 1088 in sympy: integrate(log(x)*exp(x), (x, 0, oo)) should return -EulerGamma

2011-08-17 Thread sympy
Comment #3 on issue 1088 by ness...@googlemail.com: integrate(log(x)*exp(x), (x, 0, oo)) should return -EulerGamma http://code.google.com/p/sympy/issues/detail?id=1088 the original integral of this issue does not even exist. Maybe exp(-x) was meant instead? in gsoc-3: In [90]:

Re: Issue 1388 in sympy: integrate(exp(-x)*x**n, x) fails

2011-08-17 Thread sympy
Updates: Labels: NeedsReview ness987 Comment #5 on issue 1388 by ness...@googlemail.com: integrate(exp(-x)*x**n, x) fails http://code.google.com/p/sympy/issues/detail?id=1388 In gsoc-3 (https://github.com/sympy/sympy/pull/543): In [96]: integrate(x**n*exp(-x), x, meijerg=True)

Re: Issue 2640 in sympy: uneccessary nesting of exponent

2011-08-17 Thread sympy
Updates: Labels: NeedsBetterPatch Comment #2 on issue 2640 by asmeurer: uneccessary nesting of exponent http://code.google.com/p/sympy/issues/detail?id=2640 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups

Re: Issue 2079 in sympy: multiple integral gives wrong result

2011-08-17 Thread sympy
Comment #6 on issue 2079 by asmeurer: multiple integral gives wrong result http://code.google.com/p/sympy/issues/detail?id=2079 So, this integral needs to be fixed, and the issues you address above should be fixed, but the problem here is rather unrelated. There was a bug in the way

Re: Issue 2079 in sympy: multiple integral gives wrong result

2011-08-17 Thread sympy
Comment #7 on issue 2079 by ness...@googlemail.com: multiple integral gives wrong result http://code.google.com/p/sympy/issues/detail?id=2079 I fixed the _eval_interval() handling issue in gsoc-3 and added a test. I also fixed everything I said I would fix (and added tests). I will open

Issue 2641 in sympy: limit() heuristics are wrong

2011-08-17 Thread sympy
Status: Accepted Owner: ness...@googlemail.com Labels: Type-Defect Priority-Medium Series New issue 2641 by ness...@googlemail.com: limit() heuristics are wrong http://code.google.com/p/sympy/issues/detail?id=2641 In [10]: limit(log(x)/z - log(2*x)/z, x, 0) Out[10]: 2⋅zoo ─ z In [11]:

Re: Issue 2079 in sympy: multiple integral gives wrong result

2011-08-17 Thread sympy
Updates: Labels: NeedsReview Comment #8 on issue 2079 by asmeurer: multiple integral gives wrong result http://code.google.com/p/sympy/issues/detail?id=2079 See https://github.com/sympy/sympy/pull/559 for the test. -- You received this message because you are subscribed to the Google

Re: Issue 459 in sympy: simple double integration fails

2011-08-17 Thread sympy
Comment #8 on issue 459 by ness...@googlemail.com: simple double integration fails http://code.google.com/p/sympy/issues/detail?id=459 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [36]: integrate(cos(x*y), (x, -pi/2, pi/2), (y, 0, pi)) Out[36]: ⎛ 2⎞ ⎜π ⎟

Re: Issue 1796 in sympy: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x)

2011-08-17 Thread sympy
Comment #8 on issue 1796 by ness...@googlemail.com: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x) http://code.google.com/p/sympy/issues/detail?id=1796 This works exactly the same as issue 841 in gsoc-3. (i.e. the definite integral works, and the indefinite integrals work if you

Issue 2642 in sympy: Complicated multiple integral

2011-08-17 Thread sympy
Status: Accepted Owner: ness...@googlemail.com Labels: Type-Defect Priority-Medium New issue 2642 by ness...@googlemail.com: Complicated multiple integral http://code.google.com/p/sympy/issues/detail?id=2642 Compare issue 2079. We would like to do integrate(sin(x*y*z), (x, 0, pi), (y, 0, pi),

Re: Issue 2641 in sympy: limit() heuristics are wrong

2011-08-17 Thread sympy
Issue 2641: limit() heuristics are wrong http://code.google.com/p/sympy/issues/detail?id=2641 This issue is now blocking issue 2642. See http://code.google.com/p/sympy/issues/detail?id=2642 -- You received this message because you are listed in the owner or CC fields of this issue, or because

Re: Issue 459 in sympy: simple double integration fails

2011-08-17 Thread sympy
Comment #9 on issue 459 by ness...@googlemail.com: simple double integration fails http://code.google.com/p/sympy/issues/detail?id=459 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [36]: integrate(cos(x*y), (x, -pi/2, pi/2), (y, 0, pi)) Out[36]: ⎛ 2⎞ ⎜π ⎟

Re: Issue 2079 in sympy: multiple integral gives wrong result

2011-08-17 Thread sympy
Comment #9 on issue 2079 by ness...@googlemail.com: multiple integral gives wrong result http://code.google.com/p/sympy/issues/detail?id=2079 Compare new issues 2641 (limit) and 2642 (original integral). -- You received this message because you are subscribed to the Google Groups

Re: Issue 1393 in sympy: Implement heuristics for integrating common algebraic functions

2011-08-17 Thread sympy
Comment #16 on issue 1393 by ness...@googlemail.com: Implement heuristics for integrating common algebraic functions http://code.google.com/p/sympy/issues/detail?id=1393 This kind of works in gsoc-3: In [54]: integrate(x**2 * sqrt(5-x**2), x, meijerg=True) Out[54]: ⎧

Re: Issue 459 in sympy: simple double integration fails

2011-08-17 Thread sympy
Comment #10 on issue 459 by ness...@googlemail.com: simple double integration fails http://code.google.com/p/sympy/issues/detail?id=459 This works in gsoc-3 (https://github.com/sympy/sympy/pull/543): In [36]: integrate(cos(x*y), (x, -pi/2, pi/2), (y, 0, pi)) Out[36]: ⎛ 2⎞ ⎜π ⎟

Re: Issue 1718 in sympy: re-writing of sums and products

2011-08-17 Thread sympy
Updates: Status: Fixed Comment #5 on issue 1718 by smi...@gmail.com: re-writing of sums and products http://code.google.com/p/sympy/issues/detail?id=1718 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups

Re: Issue 841 in sympy: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral

2011-08-17 Thread sympy
Comment #15 on issue 841 by asmeurer: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral http://code.google.com/p/sympy/issues/detail?id=841 Yes, now that we have the Meijer G method, there is little sense in writing table lookup heuristics for this. Regarding

Re: Issue 841 in sympy: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral

2011-08-17 Thread sympy
Comment #16 on issue 841 by asmeurer: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral http://code.google.com/p/sympy/issues/detail?id=841 By the way, are you adding tests for these integrals in your branch? -- You received this message because you are

Re: Issue 1796 in sympy: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x)

2011-08-17 Thread sympy
Comment #9 on issue 1796 by ness...@googlemail.com: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x) http://code.google.com/p/sympy/issues/detail?id=1796 This works exactly the same as issue 841 in gsoc-3. (i.e. the definite integral works, and the indefinite integrals work if you

Re: Issue 1893 in sympy: integrate(log(x) * x**(k-1) * exp(-x) / gamma(k), (x, 0, oo)) hangs

2011-08-17 Thread sympy
Comment #11 on issue 1893 by asmeurer: integrate(log(x) * x**(k-1) * exp(-x) / gamma(k), (x, 0, oo)) hangs http://code.google.com/p/sympy/issues/detail?id=1893 So combsimp() isn't being called in the right order, or it's just not working? I deleted your duplicate comment. -- You

Re: Issue 2624 in sympy: Sympy 0.7.1 can't integrate Gaussians

2011-08-17 Thread sympy
Comment #13 on issue 2624 by asmeurer: Sympy 0.7.1 can't integrate Gaussians http://code.google.com/p/sympy/issues/detail?id=2624 By the way, also add a test for the integral from that paper. -- You received this message because you are subscribed to the Google Groups sympy-issues group. To

Re: Issue 1792 in sympy: SymPy does not integrate a real power of sine/cosine

2011-08-17 Thread sympy
Updates: Cc: ness...@googlemail.com Comment #3 on issue 1792 by asmeurer: SymPy does not integrate a real power of sine/cosine http://code.google.com/p/sympy/issues/detail?id=1792 Tom, can we make this work. I tried it in your branch and it still doesn't work there. -- You

Re: Issue 2642 in sympy: Complicated multiple integral

2011-08-17 Thread sympy
Comment #1 on issue 2642 by asmeurer: Complicated multiple integral http://code.google.com/p/sympy/issues/detail?id=2642 The symbolic output of WolframAlpha is a little different, but the numerical result is the same. If your symbolic result is correct, it's actually a little nicer because

Re: Issue 2538 in sympy: latex printer should use \iint for multiple integrals

2011-08-17 Thread sympy
Updates: Status: Fixed Comment #2 on issue 2538 by smi...@gmail.com: latex printer should use \iint for multiple integrals http://code.google.com/p/sympy/issues/detail?id=2538 (No comment was entered for this change.) -- You received this message because you are subscribed to the

Re: Issue 1796 in sympy: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x)

2011-08-17 Thread sympy
Updates: Status: Duplicate Mergedinto: 841 Comment #10 on issue 1796 by asmeurer: No solution for integrate(exp(2*b*x)*exp(-a*x**2), x) http://code.google.com/p/sympy/issues/detail?id=1796 That issue is basically the same as this one. I'd say merge. -- You received this

Re: Issue 841 in sympy: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral

2011-08-17 Thread sympy
Comment #17 on issue 841 by asmeurer: integrate(exp(-x**2)*exp(I*k*x), (x, -oo, oo)) doesn't calculate the integral http://code.google.com/p/sympy/issues/detail?id=841 Issue 1796 has been merged into this issue. -- You received this message because you are subscribed to the Google Groups

Re: Issue 2629 in sympy: Canonical powers

2011-08-17 Thread sympy
Comment #2 on issue 2629 by smi...@gmail.com: Canonical powers http://code.google.com/p/sympy/issues/detail?id=2629 The beta of this powsimp functionality is in my 'and' branch. -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post to this

Re: Issue 2359 in sympy: Ways to print Rationals so that they are copy-pastable

2011-08-17 Thread sympy
Updates: Summary: Ways to print Rationals so that they are copy-pastable Status: Accepted Labels: -NeedsReview Comment #7 on issue 2359 by asmeurer: Ways to print Rationals so that they are copy-pastable http://code.google.com/p/sympy/issues/detail?id=2359 This was

Re: Issue 2359 in sympy: Ways to print Rationals so that they are copy-pastable

2011-08-17 Thread sympy
Comment #8 on issue 2359 by asmeurer: Ways to print Rationals so that they are copy-pastable http://code.google.com/p/sympy/issues/detail?id=2359 By the way, I think powers do denest if you do it in the right order: In [3]: sqrt(x**3) Out[3]: sqrt(x**3) In [4]: sqrt(x)**3 Out[4]: x**(3/2)

Issue 2643 in sympy: Create a root() function

2011-08-17 Thread sympy
Status: Accepted Owner: asmeurer Labels: Type-Enhancement Priority-Medium New issue 2643 by asmeurer: Create a root() function http://code.google.com/p/sympy/issues/detail?id=2643 We should have a root() function, which is a shortcut to rational roots. It would work like root(expr, a) ==

Re: Issue 2359 in sympy: Ways to print Rationals so that they are copy-pastable

2011-08-17 Thread sympy
Updates: Blockedon: 2643 Comment #9 on issue 2359 by asmeurer: Ways to print Rationals so that they are copy-pastable http://code.google.com/p/sympy/issues/detail?id=2359 See issue 2643 for the root() function. -- You received this message because you are subscribed to the Google

Re: Issue 2643 in sympy: Create a root() function

2011-08-17 Thread sympy
Issue 2643: Create a root() function http://code.google.com/p/sympy/issues/detail?id=2643 This issue is now blocking issue 2359. See http://code.google.com/p/sympy/issues/detail?id=2359 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Re: Issue 2642 in sympy: Complicated multiple integral

2011-08-17 Thread sympy
Comment #2 on issue 2642 by asmeurer: Complicated multiple integral http://code.google.com/p/sympy/issues/detail?id=2642 By risch do you mean the full Risch algorithm or the heuristic Risch algorithm? For heurisch() it may or may not work without expansion, just like meijerint. For the

Re: Issue 1391 in sympy: integrate(cos(x)*f(x),(x,0,y)) gives wrong result

2011-08-17 Thread sympy
Updates: Status: Fixed Comment #2 on issue 1391 by asmeurer: integrate(cos(x)*f(x),(x,0,y)) gives wrong result http://code.google.com/p/sympy/issues/detail?id=1391 This works correctly now: In [1]: integrate(cos(x)*f(x),(x,0,y)) Out[1]: y ⌠ ⎮ f(x)⋅cos(x) dx ⌡ 0 In [2]:

Re: Issue 2637 in sympy: Unicode Sigma for pretty printed Sum

2011-08-17 Thread sympy
Updates: Labels: Concrete Comment #3 on issue 2637 by asmeurer: Unicode Sigma for pretty printed Sum http://code.google.com/p/sympy/issues/detail?id=2637 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups sympy-issues

Re: Issue 447 in sympy: pprint: unicode fonts

2011-08-17 Thread sympy
Updates: Owner: --- Labels: Printing Comment #18 on issue 447 by asmeurer: pprint: unicode fonts http://code.google.com/p/sympy/issues/detail?id=447 I was about to close this as old and irrelevant, when I noticed that the character I used in issue 2637 is not being used in our

Re: Issue 447 in sympy: Better unicode square root

2011-08-17 Thread sympy
Updates: Summary: Better unicode square root Labels: -Type-Defect Type-Enhancement Comment #19 on issue 447 by asmeurer: Better unicode square root http://code.google.com/p/sympy/issues/detail?id=447 Here's a screen shot of how it looks in my terminal. The one on top is how

Re: Issue 2629 in sympy: Canonical powers

2011-08-17 Thread sympy
Updates: Labels: NeedsReview smichr Comment #3 on issue 2629 by smi...@gmail.com: Canonical powers http://code.google.com/p/sympy/issues/detail?id=2629 and now in a pull request https://github.com/sympy/sympy/pull/561 -- You received this message because you are subscribed to the

Re: Issue 447 in sympy: Better unicode square root

2011-08-17 Thread sympy
Comment #21 on issue 447 by asmeurer: Better unicode square root http://code.google.com/p/sympy/issues/detail?id=447 By the way, the font I'm using is DejaVu Sans Mono. I don't know if things have changed since comment 12, but this is by far the best font I've found for unicode pretty

Re: Issue 2637 in sympy: Unicode Sigma for pretty printed Sum

2011-08-17 Thread sympy
Comment #4 on issue 2637 by asmeurer: Unicode Sigma for pretty printed Sum http://code.google.com/p/sympy/issues/detail?id=2637 This *almost* looks good: n __ ╲ 〉 f(k) ╱ ‾‾ k = 1 -- You received this message because you are subscribed to the Google Groups sympy-issues group.

Re: Issue 2637 in sympy: Unicode Sigma for pretty printed Sum

2011-08-17 Thread sympy
Comment #5 on issue 2637 by asmeurer: Unicode Sigma for pretty printed Sum http://code.google.com/p/sympy/issues/detail?id=2637 That's probably just a coincidence, though, since that angle character isn't actually coming from the same font as the rest of the characters on my machine. If I