ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 22 Sep 2014 14:33:40 +0200pattern matchinghttps://ask.sagemath.org/question/24243/pattern-matching/ Is it possible to use pattern matching in Sage? I have some experience with Mathematica and I'm currently thinking about switching, and I'm evaluating what Sage can do. As far as I can see pattern matching is not supported. Is this true? If yes, are there any plans to support it in the future?
See [here](http://en.wikipedia.org/wiki/Pattern_matching) for some examples.
Mon, 22 Sep 2014 14:07:45 +0200https://ask.sagemath.org/question/24243/pattern-matching/Answer by kcrisman for <p>Is it possible to use pattern matching in Sage? I have some experience with Mathematica and I'm currently thinking about switching, and I'm evaluating what Sage can do. As far as I can see pattern matching is not supported. Is this true? If yes, are there any plans to support it in the future?</p>
<p>See <a href="http://en.wikipedia.org/wiki/Pattern_matching">here</a> for some examples.</p>
https://ask.sagemath.org/question/24243/pattern-matching/?answer=24244#post-id-24244 There is at least some support for this, such as [wildcards](http://www.sagemath.org/doc/reference/calculus/sage/symbolic/ring.html#sage.symbolic.ring.SymbolicRing.wild). If you search for examples using this I think it will help. I am not an expert in this type of thing, but I've seen people do some pretty impressive stuff with wildcards, anyway.Mon, 22 Sep 2014 14:33:40 +0200https://ask.sagemath.org/question/24243/pattern-matching/?answer=24244#post-id-24244