#13286: inconsistent behaviour of solve
-------------------------+--------------------------------------------------
   Reporter:  chapoton   |             Owner:  burcin         
       Type:  defect     |            Status:  new            
   Priority:  minor      |         Milestone:  sage-5.3       
  Component:  symbolics  |          Keywords:  solve, symbolic
Work issues:             |   Report Upstream:  N/A            
  Reviewers:             |           Authors:                 
  Merged in:             |      Dependencies:                 
   Stopgaps:             |  
-------------------------+--------------------------------------------------
 I have found the following :

 {{{
 sage: w,z=var('w','z')
 sage: solve([z-4,w-3],[z,w])
 [[z == 4, w == 3]]
 sage: solve([z-4],z)
 [z == 4]
 sage: solve([z-4,z-2],z)
 []
 sage: solve([z-4,z-2],[z])
 []
 sage: solve([z-4],[z])
 TypeError: [z] is not a valid variable.
 }}}

 The last line is a really *'''bad'''* behaviour ! It forces to distinguish
 the case when there is only one equation and one variable. Compare also
 with the first solve.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13286>
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