#6195: [with patch, needs work] in symbolic Expression.math() return a 
dictionary
with matched values of wildcards
-----------------------+----------------------------------------------------
 Reporter:  burcin     |       Owner:  burcin    
     Type:  defect     |      Status:  new       
 Priority:  major      |   Milestone:  sage-4.0.2
Component:  symbolics  |    Keywords:            
 Reviewer:             |      Author:            
   Merged:             |  
-----------------------+----------------------------------------------------

Comment(by ncalexan):

 I don't understand this.

 Why does the first match but the second not?
 {{{
 sage: ((x+y)).match(w0+w1)
 {$1: x, $0: y}
 sage: ((x+x)).match(w0+w1)
 }}}


 Can you explain the difference in these behaviours?
 {{{
 sage: ((x+y)^a).match((x+y)^a)
 {}
 sage: print ((x+y)^a).match((x+y)^b)
 None
 }}}

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