ReplaceAll and rules from a list v7.0
- To: mathgroup at smc.vnet.net
- Subject: [mg104227] ReplaceAll and rules from a list v7.0
- From: kristoph <kristophs.post at web.de>
- Date: Sat, 24 Oct 2009 02:40:20 -0400 (EDT)
Hi,
Suppose I have the equation
x=a+b
and the list
l={{1,1},{2,2},{3,3}}
How can I quickly assign the list to the above equation, that is, I
would like to get the following result
{2,4,6}
The first element of each sub-list should be assigned to a and the
second to b.
Thanks in advance.
Kristoph
- Follow-Ups:
- Re: ReplaceAll and rules from a list v7.0
- From: Matthias Greiff <greiff@mac.com>
- RE: ReplaceAll and rules from a list v7.0
- From: Richard Hofler <rhofler@bus.ucf.edu>
- Re: ReplaceAll and rules from a list v7.0
- From: Leonid Shifrin <lshifr@gmail.com>
- Re: ReplaceAll and rules from a list v7.0
- From: Adriano Pascoletti <adriano.pascoletti@dimi.uniud.it>
- Re: ReplaceAll and rules from a list v7.0