MathGroup Archive 1998

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

Search the Archive

Question about rule programming



Hi!

I have the following problem (I hope solution is simple):

I am using tracer package and it has the following definition:

S /: S[{mu_},p_] f_[a___,{mu_},b___] := f[a,  p,b];

I'd like to have this substition on any depth of expression, how to do
it?

At the moment I have separate rule for every depth: S /: S[{mu_},p_]
f_[a___,g_[b___,{mu_},c___],d___] :=
        f[a,g[b,p,c],d]

but it's so ugly.

Thanks in advance,

Jacek




  • Prev by Date: multi-column notebook style
  • Next by Date: RE: finite element problem
  • Prev by thread: multi-column notebook style
  • Next by thread: Interpolation ...