Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Question about rule programming


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

At the moment I have separate rule for every depth: S /: S[{mu_},p_]
f_[a___,g_[b___,{mu_},c___],d___] :=

but it's so ugly.

Thanks in advance,


  • 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 ...