MathGroup Archive 2002

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

Search the Archive

How To Change A Rule


Greetings,

I'm quite newby to Mathematica programming and will thank you if you could
help me solve the following:

I have a list of rules of the form:
{s1->-11, s2->12}
And would like to change every rule in the list that it's RHS is negative to
0 so that I will get:
{s1->0, s2->12}
I tried to find an access function to manipulate rules but could not.

Any help ?

TIA,

Ariel.

















Thanks,

Ariel Fligler




  • Prev by Date: Re: What if the symbol doesn't exist?
  • Next by Date: Re: Factor, Expand. Daytime Hours.
  • Previous by thread: Re: Entering constant placeholders
  • Next by thread: Re: How To Change A Rule