MathGroup Archive 1993

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

Search the Archive

Applying a set of rules to a List


I would like to apply a set of rules to all the elements of a list and
I've tried a number of things with no success.

What I have is a set of equations in which certain variables are to be
held at fixed values. The equations are stored as a list, say, oldEqns.
The substitution rules are stored in a variable called fpRules.
I need to get a new set of equations obtained by ReplaceAll'ing the
old eqns with the fpRules.  Here is one attempt:

	applyRules[item_] := ReplaceAll[item, fpRules]

	newEqns = Map[ applyRules, oldEqns ]

Unfortunately this did not work; I don't see any difference between 
oldEqns and newEqns even though I KNOW there are places where the rules
can be applied.
Anyone see the problem?

Thanks,
	Tony Varghese





  • Prev by Date: interpolation of unevenly sampled points
  • Next by Date: multiple parametric plots
  • Previous by thread: Simulated Annealing in Mma
  • Next by thread: Re: Applying a set of rules to a List