MathGroup Archive 2006

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

Search the Archive

Re: transforming a rule of lists to a list of rules


Ken Senior wrote:

>Hello everyone.
>
>Does anyone know a way to transform a rule involving a list into a list
>of individual rules, that is to interpret the rule elementwise?  For
>example, given
>
>   {a,b,c} -> {0,3,x}
>
>is there a transformation which will turn this into
>
>   {a->0, b->3, c->x}
>
>Thanks for the help!
>
>Ken
>
>  
>
This seems to work:

Solve[a*(b-3)*(c-x)==0,{a,b,c}]


  • Prev by Date: Re: RE: Re: General--Difficulties in Understanding Mathematica Syntax
  • Next by Date: Re: transforming a rule of lists to a list of rules
  • Previous by thread: Re: Writing and reading a comma delimited or tab delimited file one record at a time
  • Next by thread: Re: transforming a rule of lists to a list of rules