Issue 1904 in sympy: Error in evaluation of power with noncommutative base

2010-04-19 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1904 by alberthilbert: Error in evaluation of power with noncommutative base http://code.google.com/p/sympy/issues/detail?id=1904 Power with noncommutative Mul as base are treated like it was commutative: x = Symbol('x',

Re: Issue 1904 in sympy: Error in evaluation of power with noncommutative base

2010-04-19 Thread sympy
Comment #1 on issue 1904 by alberthilbert: Error in evaluation of power with noncommutative base http://code.google.com/p/sympy/issues/detail?id=1904 The following patch should solve that problem. Raffaele Attachments: 0001-Fix-evaluation-of-power-with-noncommutative-Mul-as-b.patch

Issue 1905 in sympy: Differentiation and Geometric Algebra

2010-04-19 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 1905 by jdeko...@hotmail.com: Differentiation and Geometric Algebra http://code.google.com/p/sympy/issues/detail?id=1905 Two different ways to do the same thing don't give the same result. Here is the code sample in order

Re: Issue 700 in sympy: pretty: merge test_pretty.py & test_pretty_unicode.py

2010-04-19 Thread sympy
Updates: Labels: -NeedsReview PassedReview NeedsBetterPatch Comment #11 on issue 700 by asmeurer: pretty: merge test_pretty.py & test_pretty_unicode.py http://code.google.com/p/sympy/issues/detail?id=700 The log message needs to be line wrapped, but other than that, this looks good.

Re: Issue 1904 in sympy: Error in evaluation of power with noncommutative base

2010-04-19 Thread sympy
Updates: Status: Duplicate Labels: NeedsReview Mergedinto: 1261 Comment #2 on issue 1904 by asmeurer: Error in evaluation of power with noncommutative base http://code.google.com/p/sympy/issues/detail?id=1904 Hi. This patch looks good, but this is a duplicate of issue

Re: Issue 1905 in sympy: Differentiation and Geometric Algebra

2010-04-19 Thread sympy
Updates: Cc: abro...@verizon.net Comment #1 on issue 1905 by asmeurer: Differentiation and Geometric Algebra http://code.google.com/p/sympy/issues/detail?id=1905 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fields of th

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Comment #26 on issue 1261 by asmeurer: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 Issue 1904 has been merged into this issue. -- You received this message because you are listed in the owner or CC fields of this issue, or becaus

Issue 1906 in sympy: loading sympy fails in python 2.4 under windows

2010-04-19 Thread sympy
Status: Accepted Owner: smichr Labels: Type-Defect Priority-Medium New issue 1906 by smichr: loading sympy fails in python 2.4 under windows http://code.google.com/p/sympy/issues/detail?id=1906 PythonWin 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32. Portions Copyright

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Comment #27 on issue 1261 by alberthilbert: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 The following patch should solve that problem. Raffaele Attachments: 0001-Fix-evaluation-of-power-with-noncommutative-Mul-as-b.patc

Re: Issue 1904 in sympy: Error in evaluation of power with noncommutative base

2010-04-19 Thread sympy
Comment #3 on issue 1904 by alberthilbert: Error in evaluation of power with noncommutative base http://code.google.com/p/sympy/issues/detail?id=1904 Yes... Done! -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. Y

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Updates: Labels: -NeedsBetterPatch NeedsReview Comment #28 on issue 1261 by asmeurer: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 (No comment was entered for this change.) -- You received this message because you are list

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-19 Thread sympy
Comment #3 on issue 1902 by smichr: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 Perhaps you are confusing atoms() with has(). has() is suppose to look for patterns while atoms() will give sub-expressions of a given type (and it

Re: Issue 700 in sympy: pretty: merge test_pretty.py & test_pretty_unicode.py

2010-04-19 Thread sympy
Comment #12 on issue 700 by Toon.Verstraelen: pretty: merge test_pretty.py & test_pretty_unicode.py http://code.google.com/p/sympy/issues/detail?id=700 please read: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#creating-good-commit-messages -- You received this message bec

Re: Issue 1906 in sympy: loading sympy fails in python 2.4 under windows

2010-04-19 Thread sympy
Comment #1 on issue 1906 by mattpap: loading sympy fails in python 2.4 under windows http://code.google.com/p/sympy/issues/detail?id=1906 Can you issue 'import fractions' in this interpreter. In algebratools.py there is a piece of code which checks if 'fractions' module is available, and if

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Updates: Labels: -NeedsReview PassedReview Comment #29 on issue 1261 by Vinzent.Steinberg: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 Thank you, the patch looks fine, it fixes the problem and all tests pass. +1 Would it

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Comment #30 on issue 1261 by asmeurer: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 Indeed, 10x faster: In [1]: a = S(1) In [2]: %timeit a == S.One 100 loops, best of 3: 4.21 us per loop In [3]: %timeit a is S.One 100 lo

Re: Issue 700 in sympy: pretty: merge test_pretty.py & test_pretty_unicode.py

2010-04-19 Thread sympy
Comment #13 on issue 700 by Toon.Verstraelen: pretty: merge test_pretty.py & test_pretty_unicode.py http://code.google.com/p/sympy/issues/detail?id=700 First of all: this is a nice patch carefully put together. Just a few very minor comments: - In def test_pretty_ascii_str() and def test_

Re: Issue 1900 in sympy: factor((1+2*x+x**2)**100) works too hard

2010-04-19 Thread sympy
Updates: Labels: Polynomial Comment #5 on issue 1900 by Vinzent.Steinberg: factor((1+2*x+x**2)**100) works too hard http://code.google.com/p/sympy/issues/detail?id=1900 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fi

Re: Issue 1411 in sympy: Make fancy latex printing work within the Sage notebook

2010-04-19 Thread sympy
Comment #2 on issue 1411 by Vinzent.Steinberg: Make fancy latex printing work within the Sage notebook http://code.google.com/p/sympy/issues/detail?id=1411 Wasn't this implemented in master already? See commit 8d3d2eb3b89f7c6efb9fdbef62530394953ee0ce. -- You received this message because you

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Comment #31 on issue 1261 by mattpap: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 This is a reason for having singleton objects (S). We could use a == 1 as well, but guess what would be the implications. If [2] is used in heavy

Re: Issue 1411 in sympy: Make fancy latex printing work within the Sage notebook

2010-04-19 Thread sympy
Updates: Status: Fixed Comment #3 on issue 1411 by asmeurer: Make fancy latex printing work within the Sage notebook http://code.google.com/p/sympy/issues/detail?id=1411 Yep, the issue number was even listed as the subject line of the message to the patches list: http://groups.goog

Re: Issue 1551 in sympy: StrPrinter is class sympy.printing.str and instance in sympy.core.basic

2010-04-19 Thread sympy
Updates: Cc: Ronan.Lamy Comment #8 on issue 1551 by Vinzent.Steinberg: StrPrinter is class sympy.printing.str and instance in sympy.core.basic http://code.google.com/p/sympy/issues/detail?id=1551 Ronan should review this, as he requested the changes. -- You received this message beca

Re: Issue 1411 in sympy: Make fancy latex printing work within the Sage notebook

2010-04-19 Thread sympy
Updates: Status: Started Comment #4 on issue 1411 by ellisonbg: Make fancy latex printing work within the Sage notebook http://code.google.com/p/sympy/issues/detail?id=1411 This patch only fixed part of the problem, namely renaming _latex_ -> _latex. But, there is a second part tha

Re: Issue 1903 in sympy: Unify Assume keys, ask keys and ask handlers

2010-04-19 Thread sympy
Comment #3 on issue 1903 by Vinzent.Steinberg: Unify Assume keys, ask keys and ask handlers http://code.google.com/p/sympy/issues/detail?id=1903 Not simply, because Q.complex is still an ordinary object, not a class or a function. Can't we just assign the __doc__ attribute? +return e

Re: Issue 415 in sympy: sqrt(6)/2*sqrt(2) does not auto-simplify properly

2010-04-19 Thread sympy
Updates: Cc: ondrej.certik Ronan.Lamy Comment #17 on issue 415 by Vinzent.Steinberg: sqrt(6)/2*sqrt(2) does not auto-simplify properly http://code.google.com/p/sympy/issues/detail?id=415 So it is up to 2.2 times slower with your change, but correct. I'm fine with this, but don't kno

Re: Issue 1906 in sympy: loading sympy fails in python 2.4 under windows

2010-04-19 Thread sympy
Comment #2 on issue 1906 by smichr: loading sympy fails in python 2.4 under windows http://code.google.com/p/sympy/issues/detail?id=1906 yes...I saw that you had a flag for that and tried it: C:\Documents and Settings\chris>\python24\python.exe Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC

Re: Issue 1411 in sympy: Make fancy latex printing work within the Sage notebook

2010-04-19 Thread sympy
Updates: Labels: EasyToFix Comment #5 on issue 1411 by Vinzent.Steinberg: Make fancy latex printing work within the Sage notebook http://code.google.com/p/sympy/issues/detail?id=1411 Which should be trivial to fix. -- You received this message because you are listed in the owner or C

Re: Issue 1906 in sympy: loading sympy fails in python 2.4 under windows

2010-04-19 Thread sympy
Comment #3 on issue 1906 by Vinzent.Steinberg: loading sympy fails in python 2.4 under windows http://code.google.com/p/sympy/issues/detail?id=1906 This is strange, the fractions module is new in Python 2.6. What does your version actually implement? (help(fractions)) -- You received this

Re: Issue 1906 in sympy: loading sympy fails in python 2.4 under windows

2010-04-19 Thread sympy
Updates: Status: Invalid Comment #4 on issue 1906 by smichr: loading sympy fails in python 2.4 under windows http://code.google.com/p/sympy/issues/detail?id=1906 mea culpa. The help shows that it is my own file in site-packages that is being loaded. False alarm. -- You received t

Re: Issue 1261 in sympy: incorrect exponentiation with non-commutative symbols

2010-04-19 Thread sympy
Updates: Status: Fixed Comment #32 on issue 1261 by Vinzent.Steinberg: incorrect exponentiation with non-commutative symbols http://code.google.com/p/sympy/issues/detail?id=1261 If fixed the patch to use 'is' and pushed it in. For the fixing a new issue should be opened. It might ma

Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Status: Accepted Owner: Vinzent.Steinberg CC: smichr Labels: Type-Defect Priority-Medium New issue 1907 by Vinzent.Steinberg: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 In [11]: Add(Pow(y, 2, evaluate=True), Mul(-1, Pow(y, 2))) Out[11]: 22 y

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Comment #1 on issue 1907 by mattpap: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 It's all about the old assumptions engine: In [1]: Pow(y, 2, evaluate=True) Out[1]: 2 y In [2]: _._assumptions Out[2]: {evaluate: True} The _assumptions property i

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Comment #2 on issue 1907 by ronan.l...@gmail.com: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 The exception seen comes more precisely from: In [4]: Pow(y, 2, evaluate=False).is_commutative ---

Re: Issue 415 in sympy: sqrt(6)/2*sqrt(2) does not auto-simplify properly

2010-04-19 Thread sympy
Comment #18 on issue 415 by asmeurer: sqrt(6)/2*sqrt(2) does not auto-simplify properly http://code.google.com/p/sympy/issues/detail?id=415 Mul only reflattens when it needs to, that is, when it can potentially pull out a constant from a power. As I noted in the commit message, a simple pr

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Comment #3 on issue 1907 by asmeurer: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 The is_commutative AttributeError is a duplicate of issue 1864. -- You received this message because you are listed in the owner or CC fields of this issue, or becau

Re: Issue 1905 in sympy: Differentiation and Geometric Algebra

2010-04-19 Thread sympy
Comment #2 on issue 1905 by abro...@verizon.net: Differentiation and Geometric Algebra http://code.google.com/p/sympy/issues/detail?id=1905 Both diff(y,x) and exp(y) are not defined in the galgebra module for y a multivector. If y is a multivector and y*y is a scalar then exp(y) can be expr

Re: Issue 1864 in sympy: AttributeError: is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1

2010-04-19 Thread sympy
Comment #4 on issue 1864 by ronan.l...@gmail.com: AttributeError: is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1 http://code.google.com/p/sympy/issues/detail?id=1864 Issue 1907 has been merged into this issue. -- You received this message because you are listed in

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Updates: Status: Duplicate Mergedinto: 1864 Comment #4 on issue 1907 by ronan.l...@gmail.com: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 Then this issue is an exact duplicate of issue 1864: the .is_commutative issue is the on

Re: Issue 1864 in sympy: AttributeError: is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1

2010-04-19 Thread sympy
Updates: Labels: EasyToFix Milestone-Release0.7.0 Comment #5 on issue 1864 by ronan.l...@gmail.com: AttributeError: is_commutative with Mul(Pow(2, 2, evaluate=False), 3, evaluate=False) + 1 http://code.google.com/p/sympy/issues/detail?id=1864 From issue 1907: The exception seen comes

Re: Issue 700 in sympy: pretty: merge test_pretty.py & test_pretty_unicode.py

2010-04-19 Thread sympy
Updates: Labels: -NeedsBetterPatch Comment #14 on issue 700 by kazuo.thow: pretty: merge test_pretty.py & test_pretty_unicode.py http://code.google.com/p/sympy/issues/detail?id=700 Thanks for pointing those things out; updated patch is attached. Attachments: 0001-Merged-test_

Re: Issue 1763 in sympy: sympify(u"α") does not wor k

2010-04-19 Thread sympy
Comment #2 on issue 1763 by ronan.l...@gmail.com: sympify(u"α") does not work http://code.google.com/p/sympy/issues/detail?id=1763 In my "code-refactor-3" branch, I bypass the encoding problem and get the same error as in the initial comment: In [1]: sympify(u"α")

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Updates: Status: Accepted Mergedinto: -1864 Comment #5 on issue 1907 by Vinzent.Steinberg: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 The exception is covered by issue 1864, but not the problem in [11]. Please note that this wo

Re: Issue 1763 in sympy: sympify(u"α") does not wor k

2010-04-19 Thread sympy
Updates: Labels: -Priority-High -Milestone-Release0.7.0 Priority-Low Milestone-Release0.8.0 Comment #3 on issue 1763 by asmeurer: sympify(u"α") does not work http://code.google.com/p/sympy/issues/detail?id=1763 It isn't that important, and there is no point in refactoring the parser when i

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-19 Thread sympy
Comment #4 on issue 1902 by alberthilbert: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 From what I can see from source code, 'has' method accepts 'BasicType' object as parameter and return 'True' if 'self' contains some instanc

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Comment #6 on issue 1907 by asmeurer: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 It think it's because Add cancels terms by creating a dictionary of term:coeff pairs. So, x + y - x becomes {x:1}, then {x:1, y:1}, and finally, {x:1 - 1, y: 1} =

Re: Issue 1763 in sympy: sympify(u"α") does not wor k

2010-04-19 Thread sympy
Comment #4 on issue 1763 by Vinzent.Steinberg: sympify(u"α") does not work http://code.google.com/p/sympy/issues/detail?id=1763 There are several motivations to write an own parser: issue 871, issue 976 and issue 60. -- You received this message because you are listed in the owner or CC fiel

Re: Issue 700 in sympy: pretty: merge test_pretty.py & test_pretty_unicode.py

2010-04-19 Thread sympy
Updates: Status: Fixed Comment #15 on issue 700 by asmeurer: pretty: merge test_pretty.py & test_pretty_unicode.py http://code.google.com/p/sympy/issues/detail?id=700 It looks like you fixed everything that was noted here and on IRC, so I pushed it in. Welcome to SymPy! -- You re

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-19 Thread sympy
Comment #5 on issue 1902 by Vinzent.Steinberg: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 I think this should work with Symbol() and Wild() too, for consistency's sake. -- You received this message because you are listed in

Issue 1908 in sympy: mutable core

2010-04-19 Thread sympy
Status: Accepted Owner: CC: fab...@fseoane.net Labels: Type-Enhancement Priority-Medium New issue 1908 by Vinzent.Steinberg: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 This should result in a considerable speed improvement. I think it could be done using a dict (or se

Re: Issue 1908 in sympy: mutable core

2010-04-19 Thread sympy
Comment #1 on issue 1908 by Vinzent.Steinberg: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 See also http://code.google.com/p/sympycore/, which probably implemented this. -- You received this message because you are listed in the owner or CC fields of this issue, or beca

Re: Issue 1903 in sympy: Unify Assume keys, ask keys and ask handlers

2010-04-19 Thread sympy
Updates: Cc: fab...@fseoane.net Comment #4 on issue 1903 by Vinzent.Steinberg: Unify Assume keys, ask keys and ask handlers http://code.google.com/p/sympy/issues/detail?id=1903 (No comment was entered for this change.) -- You received this message because you are listed in the owner

Re: Issue 1905 in sympy: Differentiation and Geometric Algebra

2010-04-19 Thread sympy
Comment #3 on issue 1905 by abro...@verizon.net: Differentiation and Geometric Algebra http://code.google.com/p/sympy/issues/detail?id=1905 Also in your case gamma_x**2 = -1 so that exp(x*gamma_x) = cos(x)+sin(x)*gamma_x and d/dx(exp(x*gamma_x)) = -sin(x)+cos(x)*gamma_x. If gamma_x**2 = 1

Re: Issue 1907 in sympy: Pow(..., evaluate=something) is broken

2010-04-19 Thread sympy
Comment #7 on issue 1907 by smichr: Pow(..., evaluate=something) is broken http://code.google.com/p/sympy/issues/detail?id=1907 But even if all terms have evaluate True, the expression may not go to zero: Add(*[Pow(*[y,2],evaluate=True), Mul(*[-1,Pow(*[y,2],evaluate=True)],evaluate=True)],eva

Re: Issue 1411 in sympy: Make fancy latex printing work within the Sage notebook

2010-04-19 Thread sympy
Updates: Status: Fixed Comment #6 on issue 1411 by Toon.Verstraelen: Make fancy latex printing work within the Sage notebook http://code.google.com/p/sympy/issues/detail?id=1411 Bug is fixed (see sympy-patches mail of Matt Curry.) -- You received this message because you are listed i

Re: Issue 1908 in sympy: mutable core

2010-04-19 Thread sympy
Comment #2 on issue 1908 by fabian.seoane: mutable core http://code.google.com/p/sympy/issues/detail?id=1908 You are very brave by opening this issue :-) BTW, ginac uses lists in trees (which is similar to dicts, but not the same): http://www.ginac.de/tutorial/Internal-representation-of-pro