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

2010-12-01 Thread sympy
Comment #6 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 FWIW, if you cause self and -other to be normalized to the same value (0) before adding, they add ok: def __sub__(self, other): return Ad

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

2010-12-01 Thread sympy
Comment #17 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 reply to comment 14: It would make sense to define the A*B operation (where A and B are Matrix instances) as "If dimensions of neighbouring indeces

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

2010-12-01 Thread sympy
Comment #18 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 However, if the meaning of * should be dot or tensor product, SymPy should be able to handle (from associativity): a*b*C as (a \cdot b) C == a \cdo

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

2010-12-01 Thread sympy
Comment #19 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 reply to comment 14: You can also put it differently: If 1x1 matrices were the same as scalars, it would make sense. I think that you mean that the ma

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

2010-12-01 Thread sympy
Comment #20 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 reply to comment 14: You can also put it differently: If 1x1 matrices were the same as scalars, it would make sense. I agree that you the matrix multi

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

2010-12-01 Thread sympy
Comment #21 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 reply to comment 15: I'd prefer the expression 1 + X not to be defined if X is a not 1x1 Matrix. -- You received this message because you are subscri

Re: Issue 388 in sympy: NotImplementedError in matrices

2010-12-01 Thread sympy
Comment #15 on issue 388 by ellisonbg: NotImplementedError in matrices http://code.google.com/p/sympy/issues/detail?id=388 I think we should create a MutableBasic class because there are other classes that will have similar problems. Npt a simple fix though -- You received this message beca