#6195: [with patch, needs review] 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.1
Component: symbolics | Keywords:
-----------------------+----------------------------------------------------
While matching patterns containing wildcards in symbolic expressions,
GiNaC supports returning the sub expressions that match the given
wildcards.
Attached patch wraps this interface.
The current interface for .match() on sage.symbolic.expression.Expression
is to return False if there was a match, and True otherwise. The patch
changes this to return a dictionary with the wildcards in the pattern as
keys. This might result in an empty dictionary being returned. See the
doctests in the patch for examples.
I am open to suggestions for improvements on this interface.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6195>
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
-~----------~----~----~----~------~----~------~--~---