Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'problem with pattern matching' topicStudent Support Forum > General > Archives > "problem with pattern matching"

Next Comment >Help | Reply To Topic
Author Comment/Response
Rob Aulwes
02/25/99 9:45pm

I'm having trouble specifying the pattern to pick out terms from a polynomial.
For example, if the polynomial were 2z-2w + 4x-4y+3a, I want to specify a
pattern to pick out 2z-2w and 4x-4y; in general, I want to pick out an
expression like n*x_-n*y_. I tried the pattern, x_Integer*y_ - x_Integer*z_, but
this did not work. How do I specify such a pattern?

Thanks,

Rob Aulwes

URL: ,

Subject (listing for 'problem with pattern matching')
Author Date Posted
problem with pattern matching Rob Aulwes 02/25/99 9:45pm
Re: problem with pattern matching P.J. Hinton 03/10/99 10:46pm
Next Comment >Help | Reply To Topic