Issue 1520 in sympy: Inconsistency in subs

2009-07-07 Thread codesite-noreply
Status: Accepted Owner: Labels: Type-Defect Priority-Medium Milestone-Release0.7.0 New issue 1520 by fab...@fseoane.net: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 I think I found some inconsistencies in the behavior of .subs. For example, why doesn't the fo

Issue 1520 in sympy: Inconsistency in subs

2009-07-08 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is now blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starr

Issue 1520 in sympy: Inconsistency in subs

2009-07-08 Thread codesite-noreply
Comment #1 on issue 1520 by wflynny: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 As you said, Mathematica does not match non-existent symbols. In[1]:= x*y /. (2*x) -> 2 Out[1]= x y In[4]:= x*y /. 2 x -> 2 Out[4]= x y Neither does Maxima: (%i4) subst(2,2*x,x*y);

Issue 1520 in sympy: Inconsistency in subs

2009-07-15 Thread codesite-noreply
Comment #2 on issue 1520 by ondrej.certik: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 Yes, I agree subs should be only substituting what is actually in the expression. -- You received this message because you are listed in the owner or CC fields of this issue,

Issue 1520 in sympy: Inconsistency in subs

2009-08-20 Thread codesite-noreply
Comment #3 on issue 1520 by wflynny: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 So it's clear that (x*y).subs(2*x,1) return x*y. But how about expressions like 3*x*y instead of x*y. Should this return 3/2*y or not do the subs? I guess what I am asking is, shoul

Issue 1520 in sympy: Inconsistency in subs

2009-08-20 Thread codesite-noreply
Comment #4 on issue 1520 by asmeurer: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 Maple has two commands, subs, which does strict substitution (has to appear exactly in the expression, neither 3*x*y or 4*x*y would work), and algsubs, which does algebraic substitu

Issue 1520 in sympy: Inconsistency in subs

2009-08-20 Thread codesite-noreply
Comment #5 on issue 1520 by wflynny: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 Personally, I think that subs should implement the old_coeff | expr_coeff determination. We could implement a *kwargs system I guess to get the algsubs type functionality working. -

Issue 1520 in sympy: Inconsistency in subs

2009-08-20 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Issue 1520 in sympy: Inconsistency in subs

2009-08-21 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Issue 1520 in sympy: Inconsistency in subs

2009-08-21 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Issue 1520 in sympy: Inconsistency in subs

2009-08-21 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Issue 1520 in sympy: Inconsistency in subs

2009-08-21 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Issue 1520 in sympy: Inconsistency in subs

2009-08-22 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Issue 1520 in sympy: Inconsistency in subs

2009-08-22 Thread codesite-noreply
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you

Re: Issue 1520 in sympy: Inconsistency in subs

2011-11-08 Thread sympy
Updates: Status: Fixed Comment #11 on issue 1520 by ronan.l...@gmail.com: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 The inconsistency described in the OP doesn't exist any more, so we can consider this fixed. -- You received this message because you a

Re: Issue 1520 in sympy: Inconsistency in subs

2009-12-02 Thread sympy
Updates: Labels: Matching Comment #7 on issue 1520 by ronan.l...@gmail.com: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 In my branch "pattern-wip-091202" (see issue 1736), there's a preliminary implementation of something quite like Maple's subs. -- You rec

Re: Issue 1520 in sympy: Inconsistency in subs

2009-12-02 Thread sympy
Issue 1520: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 This issue is no longer blocking issue 1358. See http://code.google.com/p/sympy/issues/detail?id=1358 -- You received this message because you are listed in the owner or CC fields of this issue, or because you s

Re: Issue 1520 in sympy: Inconsistency in subs

2011-01-06 Thread sympy
Updates: Labels: -Milestone-Release0.7.0 Milestone-Release0.7.1 Comment #8 on issue 1520 by asmeurer: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 See also issue 2027. -- You received this message because you are subscribed to the Google Groups "sympy-issu

Re: Issue 1520 in sympy: Inconsistency in subs

2011-02-06 Thread sympy
Comment #9 on issue 1520 by smi...@gmail.com: Inconsistency in subs http://code.google.com/p/sympy/issues/detail?id=1520 subs is more constistent now and only does the substitution if old is multiplicatively extractable from expr. h[2] >>> x.subs(2*x, 1) x h[3] >>> (y*x).subs(2*x