"(x+1).subs(x==x-1)" now returns the correct result "x" instead of "x-1"
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 28 Feb 2002 17:53:47 +0000 (17:53 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 28 Feb 2002 17:53:47 +0000 (17:53 +0000)
ginac/expairseq.cpp

index c18fade..36261a9 100644 (file)
@@ -402,7 +402,7 @@ ex expairseq::subs(const lst &ls, const lst &lr, bool no_pattern) const
 {
        epvector *vp = subschildren(ls, lr, no_pattern);
        if (vp)
-               return ex_to<basic>(thisexpairseq(vp, overall_coeff)).basic::subs(ls, lr, no_pattern);
+               return ex_to<basic>(thisexpairseq(vp, overall_coeff));
        else
                return basic::subs(ls, lr, no_pattern);
 }