#16753: solve of equation system misses trivial simplifications
-------------------------------------+-------------------------------------
       Reporter:  rws                |        Owner:
           Type:  defect             |       Status:  needs_work
       Priority:  critical           |    Milestone:  sage-6.4
      Component:  calculus           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Akshay Ajagekar    |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/ajagekar.akshay/Trac16753        |  88dec5a75c53522f0a24889b4e60efda0964d700
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ajagekar.akshay):

 {{{
 sage: solve([x==5],[x])
 }}}
 returns {{{ [x == 5]}}} as expected, the changed code gets executed only
 for system of equations.
 Even for cases like
 {{{
 sage: solve([x==5,y==2],x,y)
 }}}
 maxima returns list of list as solution {{{ [[x == 5, y == 2]]}}}, so an
 empty set is not returned. I also think returning error would be better
 for unsolved equations. For TypeError, the parsing for {{{ solution_dict =
 True}}}
 can be fixed by checking length of variables list and adding appropriate
 condition.

--
Ticket URL: <http://trac.sagemath.org/ticket/16753#comment:12>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to