Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Updates: Status: Accepted Comment #1 on issue 2107 by asmeurer: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 I get the same thing in master. I don't know if this is something that can be fixed, or if it is just one of those

Issue 2108 in sympy: 3/2*x/(y + 1) - z in QQ[x, y, z] failure

2010-11-30 Thread sympy
Status: Accepted Owner: asmeurer CC: mattpap Labels: Type-Defect Priority-Medium Polynomial New issue 2108 by asmeurer: 3/2*x/(y + 1) - z in QQ[x, y, z] failure http://code.google.com/p/sympy/issues/detail?id=2108 In [3]: 3/2*x/(y + 1) - z in QQ[x, y, z]

Re: Issue 2075 in sympy: solve fails for eq1=1 + 2*y/b - (e + x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c

2010-11-30 Thread sympy
Comment #5 on issue 2075 by asmeurer: solve fails for eq1=1 + 2*y/b - (e + x)**2/a; eq3=1 + 2*y/d - (x - e)**2/c http://code.google.com/p/sympy/issues/detail?id=2075 Those are used internally by Poly to determine what the coefficients of a polynomial come from. ZZ means the integers and QQ

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Comment #2 on issue 2107 by fredrik.johansson: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 There is definitely something fishy going on here. Note a = Real(0.1,1) a - a -4.e-4 a + (-a) 0 THIS LINE WAS ADDED TO THIS COMMENT BECAU

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #11 on issue 2106 by ronan.l...@gmail.com: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 I'm not sure what exactly is the suggestion here, but in any case 1*1 matrices shouldn't be handled specially. Also, I don't think there'

Re: Issue 388 in sympy: NotImplementedError in matrices

2010-11-30 Thread sympy
Comment #13 on issue 388 by ronan.l...@gmail.com: NotImplementedError in matrices http://code.google.com/p/sympy/issues/detail?id=388 The NotImplementedError is because Matrix isn't a subclass of Basic and behaves quite differently (instances are mutable, no .args attribute, ...). Having

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #12 on issue 2106 by Vinzent.Steinberg: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 Well, you could define the addition componentwise, this makes sense. And this is what numpy/mpmath are doing. I thinks it's fine to let th

Re: Issue 388 in sympy: NotImplementedError in matrices

2010-11-30 Thread sympy
Updates: Labels: -EasyToFix Comment #14 on issue 388 by asmeurer: NotImplementedError in matrices http://code.google.com/p/sympy/issues/detail?id=388 What about creating an ImmutableMatrix class to allow this to work? We already need to refactor Matrix so that it is like Polys where t

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Updates: Cc: fredrik.johansson Comment #3 on issue 2107 by asmeurer: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 The only thing that I can see that is being called differently there is that Real has __add__ defined but not _

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Comment #4 on issue 2107 by asmeurer: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 Actually, we also need to figure out what makes it go wrong in Add and fix it there too, so that explicitly calling Add(Real(0.1, 10), -Real(0.1, 10))

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #13 on issue 2106 by mipavelka: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 Well, I think that if SymPy distinguishes between 1x1 matrices and scalars, the Matrix.trace() function, for example, should be redefined. Because t

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #14 on issue 2106 by asmeurer: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 There is a mathematical difference. For example, 3*Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) makes sense, but Matrix([3])*Matrix([[1, 2, 3], [4, 5,

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #15 on issue 2106 by ronan.l...@gmail.com: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 The problem with defining addition componentwise is that you'd expect (1 + X) * Y = Y + X*Y. -- You received this message because you a

Re: Issue 2106 in sympy: Matrix of shape (1,1) and a number can't be added

2010-11-30 Thread sympy
Comment #16 on issue 2106 by Vinzent.Steinberg: Matrix of shape (1,1) and a number can't be added http://code.google.com/p/sympy/issues/detail?id=2106 The problem with defining addition componentwise is that you'd expect (1 + X) * Y = Y + X*Y. Why? It's clear in Python that 1 cannot be th

Issue 2109 in sympy: GA SymPy module not work embeded

2010-11-30 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 2109 by huahai.yang: GA SymPy module not work embeded http://code.google.com/p/sympy/issues/detail?id=2109 I am learning Geometric Algebra and would like to use the SymPy GA module. Using the module in a python REPL is fine,

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Comment #5 on issue 2107 by smichr: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 cf issue 2105 -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sy