MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Question about pattern matching

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34057] Question about pattern matching
  • From: "Mike Varney" <varney at collorado.edu>
  • Date: Wed, 1 May 2002 08:00:27 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello.
I have a rather straight forward question on pattern matching.

Say that I have a expression given as:

(kg m^2) /(s^2)

When I try a pattern matching substitution such as:

(kg m^2) /(s^2) /. (kg m)/(s^2) -> n

Returns:
(kg m^2) /(s^2)


Am I missing some sort of rule?  How can I do this sort of pattern matching.

Thanks for you help.
Mike



  • Prev by Date: Urgent Plot Problem
  • Next by Date: SubscriptSymbols Package Improved
  • Previous by thread: RE: Urgent Plot Problem
  • Next by thread: Re: Question about pattern matching