Re: Issue 1362 in sympy: Expand support for printing derivatives

2009-12-08 Thread sympy
Comment #6 on issue 1362 by fred...@witherden.org: Expand support for printing derivatives http://code.google.com/p/sympy/issues/detail?id=1362 I agree with you, Ondrej, operators are a much cleaner solution in the long run. Plus, support for operators would be useful in many branches of

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #29 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 I have a patch for consideration...factor() in polytools should not be returning two arguments I already fixed that in polys3 and written tests. Also, I made a

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #30 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 The functionality for gcdfactor is there, but a simple wrapper for someone who doesn't want to get into Polys is not there. Compare expr = gcdfactor(expr) with

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2009-12-08 Thread sympy
Comment #55 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Not yet, sorry. There would be 3^4 testcases for union, and intersection should have been written without using complement, if we would want

Re: Issue 353 in sympy: piecewise functions

2009-12-08 Thread sympy
Issue 353: piecewise functions http://code.google.com/p/sympy/issues/detail?id=353 This issue is no longer blocking issue 1695. See http://code.google.com/p/sympy/issues/detail?id=1695 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Re: Issue 7 in sympy: implement relations (, ) solving

2009-12-08 Thread sympy
Issue 7: implement relations (, ) solving http://code.google.com/p/sympy/issues/detail?id=7 This issue is no longer blocking issue 1695. See http://code.google.com/p/sympy/issues/detail?id=1695 -- You received this message because you are listed in the owner or CC fields of this issue, or because

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #31 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 1. I'm talking about this commit: http://github.com/mattpap/sympy-polys/commit/8e1c2fd03f29128eefb584bce28c3ddde42dcf2c Example: In [3]: terms_gcd(x**3*y-x*y**3)

Re: Issue 1719 in sympy: implement from sympy.abc import lower, greek

2009-12-08 Thread sympy
Updates: Labels: -NeedsBetterPatch NeedsReview Comment #11 on issue 1719 by Vinzent.Steinberg: implement from sympy.abc import lower, greek http://code.google.com/p/sympy/issues/detail?id=1719 Sorry, should be fixed now. Strange that the stdlib does not work with iterables but expect

Re: Issue 1719 in sympy: implement from sympy.abc import lower, greek

2009-12-08 Thread sympy
Comment #12 on issue 1719 by Vinzent.Steinberg: implement from sympy.abc import lower, greek http://code.google.com/p/sympy/issues/detail?id=1719 Please pull from g...@github.com:vks/sympy.git 1719 -- You received this message because you are listed in the owner or CC fields of this

Re: Issue 1753 in sympy: update pyglet

2009-12-08 Thread sympy
Updates: Status: Fixed Comment #3 on issue 1753 by Vinzent.Steinberg: update pyglet http://code.google.com/p/sympy/issues/detail?id=1753 Yes, please go for it, Chris. Thanks for reviewing, it's merged! -- You received this message because you are listed in the owner or CC fields of

Re: Issue 1509 in sympy: spelling and grammar

2009-12-08 Thread sympy
Updates: Labels: -NeedsReview Comment #12 on issue 1509 by Vinzent.Steinberg: spelling and grammar http://code.google.com/p/sympy/issues/detail?id=1509 Thank you! It's in. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #32 on issue 1598 by Vinzent.Steinberg: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 I think we can drop fraction(), if we don't improve it. Currently as_numer_denom() seems to be more powerful. -- You received this message because you are

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2009-12-08 Thread sympy
Comment #56 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 I think if we get this in with not that many tests/doctests it's still a large improvement to the current situation, so I would like to see

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #34 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 I'm running on polys3 and observe the following: n 6*(-a + x**2)**8*(-a - 3*x**2) - 48*x**3*(-a + x**2)**6*(a*x + x**3) + 24*x*(-a + x**2)**7*(a*x + x**3) +

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #35 on issue 1598 by asmeurer: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 You are right. fraction() is like as_numer_denom() except for a little magic, but I think we should move all of the code there into as_numer_denom() as it is

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #36 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Also, is there a way to make monic work even when coefficients don't reduce to multiples of the leading coefficient? ### Poly(3*x**3+5*x**2+7*x+11,x).monic()

Re: Issue 1752 in sympy: setup.py test annoyances

2009-12-08 Thread sympy
Comment #1 on issue 1752 by smichr: setup.py test annoyances http://code.google.com/p/sympy/issues/detail?id=1752 doctest are dependent on correctly functioning code. If the code tests indicate that the code is failing, it doesn't make sense to see if the usage of the code is right or not.

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #37 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 re comment 35: Yes, factor should be used whenever there is a term in the resultant Mul that has more than one symbol in it, otherwise it doesn't need to overwork

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #38 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Also, Poly.terms() is giving out monom, coeff whereas the old Poly.iter_terms() gave out coeff, monom...is this intentional? Yes, because this is coherent with

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #39 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Forgot to say, that there always exists a suitable evaluation set. Our task is to find the one which results in a univariate polynomial which has exactly the same

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #40 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 One other observation on polys3...when sending roots a Poly, even if the heuristics fail, the whole process shouldn't fail if the Poly is 4th order or less--a call to

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #41 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Also, is there a way to make monic work even when coefficients don't reduce to multiples of the leading coefficient? Yes, there is only one issue: In [1]: f =

Re: Issue 1735 in sympy: Use expr.func to get the head of expressions.

2009-12-08 Thread sympy
Comment #8 on issue 1735 by ronan.l...@gmail.com: Use expr.func to get the head of expressions. http://code.google.com/p/sympy/issues/detail?id=1735 AFAICT, sympycore's head attribute is equivalent to sympy's func. ('head' is probably the better name) -- You received this message because

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2009-12-08 Thread sympy
Comment #58 on issue 1695 by mag...@rabic.org: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 Maybe you are right, just I am not familiar enough whith the code. Where would you put it? -- You received this message because you are listed

Re: Issue 7 in sympy: implement relations (, ) solving

2009-12-08 Thread sympy
Issue 7: implement relations (, ) solving http://code.google.com/p/sympy/issues/detail?id=7 This issue is no longer blocking issue 1695. See http://code.google.com/p/sympy/issues/detail?id=1695 -- You received this message because you are listed in the owner or CC fields of this issue, or because

Re: Issue 1752 in sympy: setup.py test annoyances

2009-12-08 Thread sympy
Updates: Labels: NeedsReview Comment #2 on issue 1752 by smichr: setup.py test annoyances http://code.google.com/p/sympy/issues/detail?id=1752 The first item is fixable by removing the if at line 170 of setup.py The 2nd issue can be tested from the runtest4 branch at smichr's github

Re: Issue 1746 in sympy: Let bin/test --random accept a seed input

2009-12-08 Thread sympy
Updates: Labels: NeedsReview Comment #1 on issue 1746 by smichr: Let bin/test --random accept a seed input http://code.google.com/p/sympy/issues/detail?id=1746 I can't test this on my system right now...does runtest4 allow you to bin/test --random -prints out a random integer

Issue 1756 in sympy: Division by order terms is invalid

2009-12-08 Thread sympy
Status: Accepted Owner: ronan.l...@gmail.com Labels: Type-Defect Priority-Medium WrongResult New issue 1756 by ronan.l...@gmail.com: Division by order terms is invalid http://code.google.com/p/sympy/issues/detail?id=1756 Sympy produces the following (wrong) results: In [11]: 1/O(1) Out[11]: O(1)

Re: Issue 1747 in sympy: nseries test failure with bin/test --random

2009-12-08 Thread sympy
Updates: Blockedon: 1756 Comment #2 on issue 1747 by ronan.l...@gmail.com: nseries test failure with bin/test --random http://code.google.com/p/sympy/issues/detail?id=1747 I think the caching problem arises because of a wrong arithmetic handling of order terms (see issue 1756), which

Re: Issue 1756 in sympy: Division by order terms is invalid

2009-12-08 Thread sympy
Issue 1756: Division by order terms is invalid http://code.google.com/p/sympy/issues/detail?id=1756 This issue is now blocking issue 1747. See http://code.google.com/p/sympy/issues/detail?id=1747 -- You received this message because you are listed in the owner or CC fields of this issue, or

Re: Issue 1752 in sympy: setup.py test annoyances

2009-12-08 Thread sympy
Comment #3 on issue 1752 by asmeurer: setup.py test annoyances http://code.google.com/p/sympy/issues/detail?id=1752 I still have to interrupt 3 times in your branch (once for the tests, once for the normal doctests, and once for the sphinx doctests). -- You received this message because you

Re: Issue 1746 in sympy: Let bin/test --random accept a seed input

2009-12-08 Thread sympy
Updates: Labels: -NeedsReview NeedsBetterPatch Comment #2 on issue 1746 by asmeurer: Let bin/test --random accept a seed input http://code.google.com/p/sympy/issues/detail?id=1746 The seed prints fine, but the input method doesn't work correctly: dhcp-baca-10:sympy

Re: Issue 1695 in sympy: integral of a piecewise function gives bad result

2009-12-08 Thread sympy
Updates: Cc: fab...@fseoane.net Comment #59 on issue 1695 by Vinzent.Steinberg: integral of a piecewise function gives bad result http://code.google.com/p/sympy/issues/detail?id=1695 CCing Fabian, because he's most familiar with the new assumptions code. But I think relational

Re: Issue 1585 in sympy: expression expanded indiscriminantly

2009-12-08 Thread sympy
Updates: Status: Fixed Labels: -NeedsBetterPatch Comment #4 on issue 1585 by ronan.l...@gmail.com: expression expanded indiscriminantly http://code.google.com/p/sympy/issues/detail?id=1585 This works now. In [25]: eq=(x/neg)**-S.Half; str(eq) Out[25]:

Re: Issue 1739 in sympy: Constants 'C_i' in differential equations confuse solver

2009-12-08 Thread sympy
Comment #4 on issue 1739 by jorn.baayen: Constants 'C_i' in differential equations confuse solver http://code.google.com/p/sympy/issues/detail?id=1739 I'm playing around with some radiation equations (involving exponentials of the dependent variable). How about being able to pass dsolve a

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #43 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 PolynomialError should be imported in polyclasses. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #44 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 PolynomialError should be imported in polyclasses. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred

Re: Issue 1739 in sympy: Constants 'C_i' in differential equations confuse solver

2009-12-08 Thread sympy
Comment #5 on issue 1739 by asmeurer: Constants 'C_i' in differential equations confuse solver http://code.google.com/p/sympy/issues/detail?id=1739 I was just wondering what solvers it was using (what do you get with classify_ode(yourode)?). I am not familiar with any radiation equations.

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #45 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 I went ahead and finished refactoring polytools.py and writing tests for it. Now coverage for this file is 100%. Also added tests for monomialtools.py and fixed all

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #46 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Also, perhaps roots_cubic and roots_quartic should use the monic function rather than the monic method for reasons discussed in comment 41: ###

Re: Issue 1746 in sympy: Let bin/test --random accept a seed input

2009-12-08 Thread sympy
Updates: Cc: smichr Comment #3 on issue 1746 by asmeurer: Let bin/test --random accept a seed input http://code.google.com/p/sympy/issues/detail?id=1746 It's back to the way it was: dhcp-baca-10:sympy aaronmeurer((746fc3a...)$)$./bin/test --random Random seed used = 1260325704

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #47 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 or should that be exquo in line 143 of densearith.py? return [ K.exquo(cf, c) for cf in f ] -- You received this message because you are listed in the owner or CC

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #48 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Yes, making the change in densearith.py solves the problem: var('x');p=Poly(3*x**3+5*x**2+7*x+11) roots(p) {-1/3 + (65/54 + 5*21**(1/2)/18)**(1/3)*(1/2 + I*3**(1/2)/2)

Re: Issue 1746 in sympy: Let bin/test --random accept a seed input

2009-12-08 Thread sympy
Comment #4 on issue 1746 by smichr: Let bin/test --random accept a seed input http://code.google.com/p/sympy/issues/detail?id=1746 Don't give a number with the --random flag; that just picks a random for you. You ran your second run with --random 1260325704; use -r 1260325704 instead.

Re: Issue 1735 in sympy: Use expr.func to get the head of expressions.

2009-12-08 Thread sympy
Updates: Labels: -PassedReview Comment #9 on issue 1735 by ronan.l...@gmail.com: Use expr.func to get the head of expressions. http://code.google.com/p/sympy/issues/detail?id=1735 I've pushed both patches in. There are more places where func could be used, however. -- You received

Re: Issue 1598 in sympy: New polynomials manipulation module

2009-12-08 Thread sympy
Comment #49 on issue 1598 by mattpap: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 or should that be exquo in line 143 of densearith.py? No, because you are changing dup_quo_ground(). See a few lines below that, there is a function

[sympy] Re: diff pow

2009-12-08 Thread czbebe
Thanks Ondrej, Yes, Pow function is all right. To my problem, pow is converted to Pow. However it is tentative solution and I hope pow should be treated formally. czbebe On 12月8日, 午後1:49, Ondrej Certik ond...@certik.cz wrote: 2009/12/7 czbebe o...@bpe.es.osaka-u.ac.jp: Thanks Ondrej,

Re: [sympy] What can be used instaed of string to define dynamically formulas

2009-12-08 Thread Aaron S. Meurer
The problem is using strings directly in functions. The proper way to do this is to convert the string to a SymPy object first with the sympify() function. So for example, this would be perfectly legitimate: from sympy import sympify, diff, S from sympy.core.sympify import SympifyError # Note

Re: [sympy] What can be used instaed of string to define dynamically formulas

2009-12-08 Thread Christophe BAL
That's sound great because that's the way I do. Best regards. Christophe. 2009/12/8 Aaron S. Meurer asmeu...@gmail.com The problem is using strings directly in functions. The proper way to do this is to convert the string to a SymPy object first with the sympify() function. So for

Re: [sympy] What can be used instaed of string to define dynamically formulas

2009-12-08 Thread Ondrej Certik
On Tue, Dec 8, 2009 at 7:59 AM, Aaron S. Meurer asmeu...@gmail.com wrote: The problem is using strings directly in functions.  The proper way to do this is to convert the string to a SymPy object first with the sympify() function.  So for example, this would be perfectly legitimate: from sympy

[sympy] ArgumentIndexError replacement

2009-12-08 Thread Priit Laes
Hey! What would be a good exception to use instead of ArgumentIndexError ? The implementation for this exception has been moved a long time ago (I couldn't find it at least in git tree), but there's still some code left that is utilizing it :S It would be nice if we could get this issue fixed