#11618: solve with solution_dict=True doesn't always return a list
-----------------------------------+----------------------------------------
   Reporter:  mhampton             |          Owner:  burcin              
       Type:  defect               |         Status:  positive_review     
   Priority:  major                |      Milestone:  sage-4.7.2          
  Component:  symbolics            |       Keywords:  solve, solution_dict
Work_issues:                       |       Upstream:  N/A                 
   Reviewer:  Karl-Dieter Crisman  |         Author:  Leif Leonhardy      
     Merged:                       |   Dependencies:  #8553               
-----------------------------------+----------------------------------------
Changes (by kcrisman):

  * status:  needs_review => positive_review
  * reviewer:  => Karl-Dieter Crisman


Old description:

> As pointed out in a post on sage-support:
> {{{
> var('x')
> g(x)=0
> print solve(g(x)==0,x)
> print solve(g(x)==0,x,solution_dict=True)
> }}}
> gives
> {{{
> [x == r1]
> {x: r1}
> }}}
> It should be [{x: r1}] to be consistent.

New description:

 As pointed out in a post on sage-support:
 {{{
 var('x')
 g(x)=0
 print solve(g(x)==0,x)
 print solve(g(x)==0,x,solution_dict=True)
 }}}
 gives
 {{{
 [x == r1]
 {x: r1}
 }}}
 It should be {{{[{x: r1}]}}} to be consistent.

--

Comment:

 Patch looks good.  Performs as advertised.   Thanks!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11618#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to