Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Pattern Matching with Plus[]' topicStudent Support Forum > General > Archives > "Pattern Matching with Plus[]"

Next Comment >Help | Reply To Topic
Author Comment/Response
Kent Liu
03/01/13 00:34am

I suppose I will get A if I run

Plus[x, y] /. Plus[_, _] -> A

But it returns Plus[x,y]

To get A if have to run

Plus[x, y] /. Plus[x_, y_] -> A

In addition, if I return Plus with Power, I get A for both cases.

Do I miss anything?

URL: ,

Subject (listing for 'Pattern Matching with Plus[]')
Author Date Posted
Pattern Matching with Plus[] Kent Liu 03/01/13 00:34am
Re: Pattern Matching with Plus[] Forum Modera... 03/01/13 09:43am
Next Comment >Help | Reply To Topic