#8553: Minor bugs in solve() if dictionary result requested
----------------------------------------------------------+-----------------
   Reporter:  leif                                        |       Owner:  leif  
              
       Type:  defect                                      |      Status:  
needs_work          
   Priority:  trivial                                     |   Milestone:  
sage-4.3.4          
  Component:  symbolics                                   |    Keywords:  
solve, solution_dict
     Author:                                              |    Upstream:  N/A   
              
   Reviewer:  Harald Schilly, Mike Hansen, Burcin Erocal  |      Merged:        
              
Work_issues:                                              |  
----------------------------------------------------------+-----------------

Comment(by leif):

 Replying to [comment:18 burcin]:
 > AFAICT, `solve` returns a list of possible solutions to the given
 equality. When the `solution_dict` parameter is `True`, this list is
 populated by dictionaries instead of symbolic relations.
 >
 > With this reasoning the current behavior of returning an empty list if
 we can't find any solutions even if the `solution_dict` parameter is
 `True` seems correct to me.

 That's really a matter of design; one could equally well specify the
 function to return a list containing an empty dictionary in that case;
 i.e., the current specification is not precise (and that's not the only
 one).

 But you're right, unless we change the ''informal'' "prototype" (its
 signature), it should in any case return a '''''list''' of something''.


 I'd change the patch to reflect whatever behavior you want... ;-)

 -Leif

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8553#comment:20>
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