#12834: Modify subs so that it can accept multiple equations just like subs_expr
-------------------------------------+-------------------------------------
       Reporter:  JoalHeagney        |        Owner:  AlexGhitza
           Type:  enhancement        |       Status:  needs_info
       Priority:  minor              |    Milestone:  sage-6.4
      Component:  algebra            |   Resolution:
       Keywords:  subs algebra       |    Merged in:
  solving                            |    Reviewers:
        Authors:  Michael Orlitzky   |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/12384       |  045eebfd67858405c6665acfa1eea5f22ca7fc6f
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by vdelecroix):

 * status:  needs_review => needs_info


Comment:

 Hi Marc,

 There is some difference of designs.

  - in your version, the rightmost occurrence of a substitution takes
 precedence, while in Michael's one an error is raised
  - you deprecate `subs_expr` and `substitute_expression` (I think this is
 good)
  - is this a bug or a feature?
 {{{
 sage: var('x,y,t')
 sage: A = cos(x) + sin(y) + x^2 + y^2 + t
 sage: A.subs({x^2 + y^2: t})
 x^2 + y^2 + t + cos(x) + sin(y)
 sage: A.subs({cos(x) + x^2 + sin(y) + t + + y^2: 1})
 1
 }}}
  - I like very much the presence of examples involving maple and
 mathematica

 Vincent

--
Ticket URL: <http://trac.sagemath.org/ticket/12834#comment:15>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to