Issue 1861 in sympy: Simplify uses all available memory in some cases

2010-03-17 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1861 by ggventurini: Simplify uses all available memory in some cases http://code.google.com/p/sympy/issues/detail?id=1861 Simplify fails eating up all my ram. I am sorry I couldn't understand what exactly triggers this,

Re: Issue 1861 in sympy: Simplify uses all available memory in some cases

2010-03-17 Thread sympy
Comment #1 on issue 1861 by asmeurer: Simplify uses all available memory in some cases http://code.google.com/p/sympy/issues/detail?id=1861 What modification makes it work fine? And what version of sympy are you using? It works fine for me: [0, 1, 1/a1, -1/a1,

Re: Issue 1861 in sympy: Simplify uses all available memory in some cases

2010-03-17 Thread sympy
Comment #2 on issue 1861 by ggventurini: Simplify uses all available memory in some cases http://code.google.com/p/sympy/issues/detail?id=1861 Hi there, If I remove a3, it works. I am using 0.6.4 packaged by Ubuntu. [0, 1, 1/a1, -1/a1, 0] [0, 0, -1/a1, 1/a1 + 1/a2, -1/a2] [1, 0,

Re: Issue 1861 in sympy: Simplify uses all available memory in some cases

2010-03-17 Thread sympy
Updates: Status: Invalid Comment #3 on issue 1861 by asmeurer: Simplify uses all available memory in some cases http://code.google.com/p/sympy/issues/detail?id=1861 Bisecting, it looks like it has been fixed since this commit, which is part of sympy 0.6.6: commit

Re: Issue 1598 in sympy: New polynomials manipulation module

2010-03-17 Thread sympy
Comment #93 on issue 1598 by fredrik.johansson: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Specifically, Rouche's theorem can be used. f(x) = 1 + (A/eps)*x g(x) = (B*x^2 + ...)/eps Then by finding a radius R such that |g(x)| |f(x)| within R

Re: Issue 1598 in sympy: New polynomials manipulation module

2010-03-17 Thread sympy
Comment #94 on issue 1598 by fredrik.johansson: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Sorry, that should of course be R eps/A. -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Re: Issue 1598 in sympy: New polynomials manipulation module

2010-03-17 Thread sympy
Comment #95 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Great progress! Keep up the good work. Thanks! Hopefully there will more developments in near future. For complex root isolation, (...) This is an interesting

Re: Issue 1829 in sympy: release 0.6.7

2010-03-17 Thread sympy
Updates: Status: Fixed Comment #32 on issue 1829 by Vinzent.Steinberg: release 0.6.7 http://code.google.com/p/sympy/issues/detail?id=1829 I just released 0.6.7, if anyone wants to release something before 0.7.0 he can do 0.6.8. This time we used a separate stable branch with own

Re: Issue 1598 in sympy: New polynomials manipulation module

2010-03-17 Thread sympy
Comment #96 on issue 1598 by Vinzent.Steinberg: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 I just released 0.6.7 btw. The are apparently some conflicts with current master. But all tests, so let's merge it soon. There are however many doctests

Re: Issue 1598 in sympy: New polynomials manipulation module

2010-03-17 Thread sympy
Updates: Status: Fixed Labels: -NeedsBetterPatch PassedReview Comment #97 on issue 1598 by asmeurer: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Congratulations on getting this in! I think RootOf is in issue 51, so I am going to

Re: Issue 51 in sympy: RootOf for polynomial equations

2010-03-17 Thread sympy
Comment #3 on issue 51 by asmeurer: RootOf for polynomial equations http://code.google.com/p/sympy/issues/detail?id=51 See the discussion at the bottom of issue 1598. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue.

Re: Issue 199 in sympy: Factoring univariate polynomials and rational functions

2010-03-17 Thread sympy
Comment #15 on issue 199 by asmeurer: Factoring univariate polynomials and rational functions http://code.google.com/p/sympy/issues/detail?id=199 The new polys are in, but I am not sure what is or isn't supposed to be working now with respect to this issue. Is there an option to factor to

Re: Issue 317 in sympy: factor() slow

2010-03-17 Thread sympy
Comment #14 on issue 317 by asmeurer: factor() slow http://code.google.com/p/sympy/issues/detail?id=317 With new polys: SYMPY_GROUND_TYPES=sympy: In [1]: a,b,c,d,x = symbols('abcdx') In [2]: %timeit factor(a-x) 1000 loops, best of 3: 1.37 ms per loop In [3]: %timeit factor(a*b-x) 100 loops,

Re: Issue 326 in sympy: sympy.roots_.sturm(...) hangs

2010-03-17 Thread sympy
Updates: Labels: EasyToFix Comment #16 on issue 326 by asmeurer: sympy.roots_.sturm(...) hangs http://code.google.com/p/sympy/issues/detail?id=326 So the new polys are in, but it doesn't look like a test was added for this. -- You received this message because you are listed in the

Re: Issue 588 in sympy: simplify should be better at detecting repeated factors

2010-03-17 Thread sympy
Comment #5 on issue 588 by asmeurer: simplify should be better at detecting repeated factors http://code.google.com/p/sympy/issues/detail?id=588 This is fixed in the new polys, but it needs to be tested: In [1]: e = integrate(x**2 * exp(x) * cos(x), x) In [2]: e Out[2]: x 2 x

Re: Issue 595 in sympy: improve polynomial algorithms: factorization and non-rational coefficients

2010-03-17 Thread sympy
Updates: Status: Fixed Comment #5 on issue 595 by asmeurer: improve polynomial algorithms: factorization and non-rational coefficients http://code.google.com/p/sympy/issues/detail?id=595 New polys with gmpy ground types: In [1]: %timeit factor(expand((x + 2*x + 1)**20*(x**2 +

Re: Issue 1095 in sympy: Trig functions break cancel

2010-03-17 Thread sympy
Updates: Labels: EasyToFix Comment #5 on issue 1095 by asmeurer: Trig functions break cancel http://code.google.com/p/sympy/issues/detail?id=1095 New polys: In [8]: cancel((4*x+6*cos(y))/(2*x+3*cos(y))) Out[8]: 2 In [10]: simplify((4*x+6*cos(y))/(2*x+3*cos(y))) Out[10]: 2 But once

Re: Issue 1097 in sympy: Poly.integrate() crash, but integrate(Poly) work

2010-03-17 Thread sympy
Comment #3 on issue 1097 by asmeurer: Poly.integrate() crash, but integrate(Poly) work http://code.google.com/p/sympy/issues/detail?id=1097 Is there a reason to make Poly.integrate() support definite integrals? -- You received this message because you are listed in the owner or CC fields of

Re: Issue 1106 in sympy: trim fails

2010-03-17 Thread sympy
Comment #4 on issue 1106 by asmeurer: trim fails http://code.google.com/p/sympy/issues/detail?id=1106 trim() doesn't exist anymore, but simplify() gives this: In [22]: V1 Out[22]: ⎛ -d ⎛ -d⎞ -d⎞ ⎜ ── ⎜ ──⎟ ──⎟ ⎜ τ ⎜ τ ⎟ τ ⎟

Re: Issue 1122 in sympy: _decompose in Poly slow

2010-03-17 Thread sympy
Comment #4 on issue 1122 by asmeurer: _decompose in Poly slow http://code.google.com/p/sympy/issues/detail?id=1122 Have these changes been incorporated into the new polys? What is an example expression that was slow before here? -- You received this message because you are listed in the

Re: Issue 1243 in sympy: bug in trim()

2010-03-17 Thread sympy
Comment #3 on issue 1243 by asmeurer: bug in trim() http://code.google.com/p/sympy/issues/detail?id=1243 Of course, it just works in the new polys: In [30]: simplify(c*t) Out[30]: ⅈ⋅x -ⅈ⋅x ⅈ⋅ℯ ⅈ⋅ℯ - ── + ─── 2 2 In [31]: sin(x)._eval_rewrite_as_exp(x)

Re: Issue 1349 in sympy: 'int' object has no attribute 'is_Add'

2010-03-17 Thread sympy
Updates: Status: Fixed Comment #8 on issue 1349 by asmeurer: 'int' object has no attribute 'is_Add' http://code.google.com/p/sympy/issues/detail?id=1349 Poly.add_term() doesn't exist anymore in the new polys, but I'll take Mateusz's word for it. -- You received this message

Re: Issue 1355 in sympy: factor(expand((sin(x)+sin(y))*(cos(x)+cos(y)))) fails

2010-03-17 Thread sympy
Updates: Labels: EasyToFix Comment #5 on issue 1355 by asmeurer: factor(expand((sin(x)+sin(y))*(cos(x)+cos(y fails http://code.google.com/p/sympy/issues/detail?id=1355 Of course, it works in the new polys: In [3]: factor(expand((sin(x)+sin(y))*(cos(x)+cos(y Out[3]: (cos(x) +

Re: Issue 1432 in sympy: simplify gets hung up on this expression

2010-03-17 Thread sympy
Updates: Labels: EasyToFix Comment #4 on issue 1432 by asmeurer: simplify gets hung up on this expression http://code.google.com/p/sympy/issues/detail?id=1432 New polys come to the rescue again: In [4]: a = S(-x1 + F1/(Gc + k) + Gc*x1/(Gc + k) + Gc*xd/(Gc + k) + k*x1/(Gc + k))

Re: Issue 1568 in sympy: factoring is working too hard

2010-03-17 Thread sympy
Updates: Cc: smichr Comment #3 on issue 1568 by asmeurer: factoring is working too hard http://code.google.com/p/sympy/issues/detail?id=1568 Did you paste the expression incorrectly? The third derivative of that expression doesn't have any (a + x)**25 terms. -- You received this

Re: Issue 1587 in sympy: Polynomials docs

2010-03-17 Thread sympy
Updates: Summary: Polynomials docs Comment #4 on issue 1587 by asmeurer: Polynomials docs http://code.google.com/p/sympy/issues/detail?id=1587 Does the new polys have docs written yet? -- You received this message because you are listed in the owner or CC fields of this issue, or

Re: Issue 1647 in sympy: leading_monom is incorrect

2010-03-17 Thread sympy
Comment #4 on issue 1647 by asmeurer: leading_monom is incorrect http://code.google.com/p/sympy/issues/detail?id=1647 What is leading_monom in the new polys (and is this tested)? -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred

Re: Auditing sourcecode using pyflakes

2010-03-17 Thread Ondrej Certik
On Wed, Mar 17, 2010 at 6:11 AM, Priit Laes pl...@plaes.org wrote: Hey, A while ago (last year sometime) I sent a review request about my pyflakes branch to the list, but I dont really recall the outcome but anyway - it wasn't included... So here's the proposal again: I have introduced an

Re: Auditing sourcecode using pyflakes

2010-03-17 Thread Ondrej Certik
On Wed, Mar 17, 2010 at 9:35 AM, Ondrej Certik ond...@certik.cz wrote: On Wed, Mar 17, 2010 at 6:11 AM, Priit Laes pl...@plaes.org wrote: Hey, A while ago (last year sometime) I sent a review request about my pyflakes branch to the list, but I dont really recall the outcome but anyway - it

Please review my 'unused-imports' branch

2010-03-17 Thread Priit Laes
Hey! Now that auditing support is in master, I went out there and picked some low-hanging fruit (unused imports) from the long list of issues reported by audit tool: 70 files changed, 87 insertions(+), 153 deletions(-) From 545 warnings to 349 ;) Branch is here:

Re: isympy - mention ipython?

2010-03-17 Thread Ondrej Certik
Hi Fernando, On Fri, Jan 1, 2010 at 12:47 PM, Fernando Perez fernando.pe...@berkeley.edu wrote: Hey Ondrej, I got that screenshot from David and noticed that isympy says (ipython-0.10)maqroll[~] isympy Python 2.6.4 console for SymPy 0.7.0-git It would be cool if you acknowledged that this

Re: isympy - mention ipython?

2010-03-17 Thread Aaron Meurer
Should we include the IPython version too? Otherwise, it looks fine. Aaron Meurer On Mar 17, 2010, at 4:24 PM, Ondrej Certik wrote: Hi Fernando, On Fri, Jan 1, 2010 at 12:47 PM, Fernando Perez fernando.pe...@berkeley.edu wrote: Hey Ondrej, I got that screenshot from David and noticed

Re: Please review my 'unused-imports' branch

2010-03-17 Thread Aaron Meurer
It does not rebase trivially over master, due to mpmath being updated. Aaron Meurer On Mar 17, 2010, at 4:27 PM, Ondrej Certik wrote: On Wed, Mar 17, 2010 at 2:13 PM, Priit Laes pl...@plaes.org wrote: Hey! Now that auditing support is in master, I went out there and picked some

Re: Please review my 'unused-imports' branch

2010-03-17 Thread Mateusz Paprocki
Hi, On Wed, Mar 17, 2010 at 04:59:50PM -0600, Aaron Meurer wrote: It does not rebase trivially over master, due to mpmath being updated. New rebased branch is polys7. We currently testing it. Aaron Meurer On Mar 17, 2010, at 4:27 PM, Ondrej Certik wrote: On Wed, Mar 17, 2010 at 2:13

Re: Please review my 'unused-imports' branch

2010-03-17 Thread Ondrej Certik
On Wed, Mar 17, 2010 at 5:21 PM, Aaron Meurer asmeu...@gmail.com wrote: I was actually referring to Priit's branch, but I guess polys will need to fixed too. :) Polys are now rebased and pass all tests, but you need the patches from my polys7 branch at github. Those are hotfixes, so now we are

Re: [sympy] Is SymPy project interested in a Dirac notation algebra module

2010-03-17 Thread Alan Bromborsky
Asaf Paris Mandoki wrote: Hi, The website is http://code.google.com/p/openket/ although is outdated. I am attaching the most recent version together with a couple of examples. I guess that we can get rid of most of the code by taking advantage of sympy. I also believe we can improve the API

[sympy] Re: Logic-related issues

2010-03-17 Thread Christian Muise
Having dug deeper, it appears that first order logic isn't even included in the current version of sympy. Is there some manner of generic (existential and universal) quantification in the sympy core that I'm missing? Thanks. Cheers On Mar 16, 1:37 pm, Christian Muise

[sympy] buildbots

2010-03-17 Thread Ondrej Certik
Hi, we could use this for the tests: http://copypasteprogrammer.blogspot.com/2010/03/buildbot-and-nose-test-coverage.html just posting it here, so that I don't forget. If anyone wants to help to set this up, it'd be awesome. I have the hardware, just don't have time. Ondrej -- You received

[sympy] Re: Logic-related issues

2010-03-17 Thread Mateusz Paprocki
Hi, On Wed, Mar 17, 2010 at 08:25:15AM -0700, Christian Muise wrote: Having dug deeper, it appears that first order logic isn't even included in the current version of sympy. Is there some manner of generic (existential and universal) quantification in the sympy core that I'm missing?

[sympy] sympy 0.6.7 released

2010-03-17 Thread Ondrej Certik
Hi, Vinzent just released 0.6.7. Changes: date: 17 March 2010 fix a bug where bin/test and bin/doctest would be installed into /usr/bin fix an example for recent matplotlib versions some fixes for Python 2.4 and 2.5 try to expand integrand if integration fails improved isprime() (pseudoprimes

[sympy] Re: sympy 0.6.7 released

2010-03-17 Thread Ondrej Certik
On Wed, Mar 17, 2010 at 3:09 PM, Ondrej Certik ond...@certik.cz wrote: Hi, Vinzent just released 0.6.7. Changes: New release can be downloaded from: http://code.google.com/p/sympy/downloads/list as usual. Ondrej -- You received this message because you are subscribed to the Google Groups

Re: [sympy] Re: sympy 0.6.7 released

2010-03-17 Thread Aaron Meurer
You forgot to tag the release commits (I would do it but my private ssh key is on my laptop, which is still being repaired). Aaron Meurer On Mar 17, 2010, at 4:10 PM, Ondrej Certik wrote: On Wed, Mar 17, 2010 at 3:09 PM, Ondrej Certik ond...@certik.cz wrote: Hi, Vinzent just released

Re: [sympy] Re: sympy 0.6.7 released

2010-03-17 Thread Ondrej Certik
On Wed, Mar 17, 2010 at 5:37 PM, Aaron Meurer asmeu...@gmail.com wrote: You forgot to tag the release commits (I would do it but my private ssh key is on my laptop, which is still being repaired). As my P.S. note above explains, they are tagged. Try to git clone a new sympy repo and do git

Re: [sympy] Re: sympy 0.6.7 released

2010-03-17 Thread Aaron Meurer
I see, so you tagged the unmerged branch. I will have to remember this when I try bisecting changes. Aaron Meurer On Mar 17, 2010, at 6:50 PM, Ondrej Certik wrote: On Wed, Mar 17, 2010 at 5:37 PM, Aaron Meurer asmeu...@gmail.com wrote: You forgot to tag the release commits (I would do it

Re: [sympy] Re: sympy 0.6.7 released

2010-03-17 Thread Ondrej Certik
On Wed, Mar 17, 2010 at 6:02 PM, Aaron Meurer asmeu...@gmail.com wrote: I see, so you tagged the unmerged branch.  I will have to remember this when I try bisecting changes. Viznent did the release, so I am not exactly sure what he did and if it can be fixed somehow. Ondrej -- You received

[sympy] new polynomials are in

2010-03-17 Thread Ondrej Certik
Hi, we just fixed the last bugs in the Mateusz's polys branch and pushed it in our main git repo. All tests pass for all kinds of configurations that I tried, but if possible, please test it (I didn't test on Mac nor Windows). Just to get some idea, Mateusz did about 150 patches and it

Re: [sympy] new polynomials are in

2010-03-17 Thread Aaron Meurer
I tested many combinations (not all), and everything passes, except for this doctest with -Qnew: File /users/aaronmeurer/documents/sympy/doc/src/tutorial.txt, line 147, in tutorial.txt Failed example: 1/2 Expected: 0 Got: 0.5 Is there a reverse to from __future__ import division