MathGroup Archive 2008

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

Search the Archive

ReplaceAll on Nested Expressions


Here is an attempted replacement:

foo[foo[a, b], c] /. foo[a_, b_] :> foo[a, h[b]]
foo[foo[a, b], h[c]]

How could I write a rule, or what method would I use so that the inner 
foo[a,b] is also replaced?

foo[foo[a, h[b]], h[c]]

-- 
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/




  • Prev by Date: Re: anova help__
  • Next by Date: Re: Pi Formula
  • Previous by thread: Re: Questions on evaluate matrix operations
  • Next by thread: Re: ReplaceAll on Nested Expressions