Don't want similar symbols to match pattern
- To: mathgroup at smc.vnet.net
- Subject: [mg43111] Don't want similar symbols to match pattern
- From: jsloan at ieee.org (Joe Sloan)
- Date: Wed, 13 Aug 2003 07:49:45 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I have two symbols, x and x with a subscript. Is there any way I can define the function f[x_] (a function of x and subscripted x) but not pattern match on the subscripted x? Example below. (Renaming my variables would probably be a painful experience, as I intend to use the output in a document requiring the subscripted versions.) thanks Joe e.g. Cell[BoxData[ RowBox[{ RowBox[{"f", "[", "x_", "]"}], "=", RowBox[{"x", "-", SubscriptBox["x", "1"]}]}]], "Input"]