Sage: Ticket #6481: g.subs({x:1,y:2}) should walk through x,y sorted
https://trac.sagemath.org/ticket/6481
<p>
reported by Kwankyu on [sage-support]:
</p>
<pre class="wiki">I mean the substitution y:x*y is applied first in the following
sage: R.<x,y>=QQ[]
sage: g=x+y
sage: g.subs({x:x+1,y:x*y})
x*y + x + y + 1
where I think applying x:x+1 first seems intuitive if order ever
should be significant.
</pre>en-usSagehttps://trac.sagemath.org/chrome/site/logo_sagemath_trac.png
https://trac.sagemath.org/ticket/6481
Trac 1.1.6wasWed, 08 Jul 2009 13:11:28 GMT
https://trac.sagemath.org/ticket/6481#comment:1
https://trac.sagemath.org/ticket/6481#comment:1
<p>
For the record, I think the entire design of subs for multivariate polynomial rings is wrong. I've thus opened <a class="closed ticket" href="https://trac.sagemath.org/ticket/6482" title="defect: [with patch, positive review] multivariate polynomial substitution has ... (closed: fixed)">#6482</a> and explained my reasoning for this.
</p>
<p>
Note that in any case, if the current subs behavior is super fast or useful to people (is it?) then we can keep it as a nondefault option, in which case this ticket <a class="closed ticket" href="https://trac.sagemath.org/ticket/6481" title="defect: g.subs({x:1,y:2}) should walk through x,y sorted (closed: duplicate)">#6481</a> also makes sense to keep, since at least we should do the order of substitution in an easy-to-understand way.
</p>
TicketrlmWed, 08 Jul 2009 19:50:06 GMTmilestone changed
https://trac.sagemath.org/ticket/6481#comment:2
https://trac.sagemath.org/ticket/6481#comment:2
<ul>
<li><strong>milestone</strong>
changed from <em>sage-4.1</em> to <em>sage-4.1.1</em>
</li>
</ul>
TicketmalbWed, 09 Sep 2009 20:13:29 GMTstatus changed; resolution set
https://trac.sagemath.org/ticket/6481#comment:3
https://trac.sagemath.org/ticket/6481#comment:3
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>duplicate</em>
</li>
</ul>
<p>
Dupe of <a class="closed ticket" href="https://trac.sagemath.org/ticket/6482" title="defect: [with patch, positive review] multivariate polynomial substitution has ... (closed: fixed)">#6482</a>
</p>
TicketmvnguSun, 20 Sep 2009 22:10:54 GMTmilestone changed
https://trac.sagemath.org/ticket/6481#comment:4
https://trac.sagemath.org/ticket/6481#comment:4
<ul>
<li><strong>milestone</strong>
changed from <em>sage-4.1.2</em> to <em>sage-duplicate/invalid/wontfix</em>
</li>
</ul>
Ticket