Re: Issue 1778 in sympy: Rational from string can be improved

2010-04-11 Thread sympy
Updates: Cc: Ronan.Lamy Comment #25 on issue 1778 by smichr: Rational from string can be improved http://code.google.com/p/sympy/issues/detail?id=1778 I suppose we could make Rational quite limited and strict, instantiating from 1 or 2 integers/longs/Integers/Rationals: Rational(i,

Re: Issue 1778 in sympy: Rational from string can be improved

2010-04-11 Thread sympy
Comment #26 on issue 1778 by fredrik.johansson: Rational from string can be improved http://code.google.com/p/sympy/issues/detail?id=1778 That is not actually what the 'full' option in nsimplify does. The option here should probably be called 'exact' or something like that. Converting a

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

2010-04-11 Thread sympy
Comment #6 on issue 588 by smichr: simplify should be better at detecting repeated factors http://code.google.com/p/sympy/issues/detail?id=588 If you are just pulling out a visible term (not a hidden factor) then consider using terms_gcd: terms_gcd(ans) (-cos(x) + x**2*cos(x) +

Re: Issue 1598 in sympy: New polynomials manipulation module

2010-04-11 Thread sympy
Updates: Cc: Vinzent.Steinberg asmeurer Ronan.Lamy Comment #111 on issue 1598 by smichr: New polynomials manipulation module http://code.google.com/p/sympy/issues/detail?id=1598 Where should we discuss polys8 ans polys related issues? I wanted to point out that I have an alternative

Re: Issue 1778 in sympy: Rational from string can be improved

2010-04-11 Thread sympy
Comment #27 on issue 1778 by smichr: Rational from string can be improved http://code.google.com/p/sympy/issues/detail?id=1778 OK. In my original post I was going to suggest literal but exact can work, too. I checked to see that nsimplify would recognize that .[23] is 23/99 and saw the full

Re: Issue 1894 in sympy: Xor(x, 1/y) doesn't work

2010-04-11 Thread sympy
Comment #3 on issue 1894 by mattpap: Xor(x, 1/y) doesn't work http://code.google.com/p/sympy/issues/detail?id=1894 how do you compute 1/True and 1/False? In [1]: 1/True Out[1]: 1.0 In [2]: 1/False ZeroDivisionError: float division I just expect this two inputs should give the same result:

Re: Issue 1894 in sympy: Xor(x, 1/y) doesn't work

2010-04-11 Thread sympy
Comment #4 on issue 1894 by ronan.l...@gmail.com: Xor(x, 1/y) doesn't work http://code.google.com/p/sympy/issues/detail?id=1894 The same operator can have different meanings depending on the context. In '1 2', '' means bitwise-and, not boolean-and as in 'x y'. In contrast, 'And' can only

Re: Issue 1051 in sympy: abs(sin(1)) raises AssertionError

2010-04-11 Thread sympy
Updates: Status: Duplicate Mergedinto: 1717 Comment #15 on issue 1051 by ronan.l...@gmail.com: abs(sin(1)) raises AssertionError http://code.google.com/p/sympy/issues/detail?id=1051 This was fixed in issue 1717. -- You received this message because you are listed in the

Re: Issue 1717 in sympy: inconsistency between facts

2010-04-11 Thread sympy
Comment #13 on issue 1717 by ronan.l...@gmail.com: inconsistency between facts http://code.google.com/p/sympy/issues/detail?id=1717 Issue 1051 has been merged into this issue. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred

Re: Issue 216 in sympy: (-1)**Rational(1,3) could be automatically rewritten using I

2010-04-11 Thread sympy
Updates: Status: Duplicate Labels: EasyToFix Comment #6 on issue 216 by asmeurer: (-1)**Rational(1,3) could be automatically rewritten using I http://code.google.com/p/sympy/issues/detail?id=216 I think the only problem here is that im is not calling expand(complex=True)

Issue 1896 in sympy: Inner core refactoring

2010-04-11 Thread sympy
Status: Started Owner: ronan.l...@gmail.com Labels: Type-Defect Priority-Medium Milestone-Release0.7.0 NeedsReview New issue 1896 by ronan.l...@gmail.com: Inner core refactoring http://code.google.com/p/sympy/issues/detail?id=1896 In my quest to clarify the structure of the core, I have been

Re: Issue 1881 in sympy: solve - OverflowError: mpz too large for int

2010-04-11 Thread sympy
Comment #5 on issue 1881 by notmyadd...@teewars.org: solve - OverflowError: mpz too large for int http://code.google.com/p/sympy/issues/detail?id=1881 Ok, update from gmpy 1.02 to 1.11 fixed that exception, but no solution is fund. solve(f,lmbda) [] This is what I got in maple