Re: extracting function from the list
- To: mathgroup at smc.vnet.net
- Subject: [mg48001] Re: extracting function from the list
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Wed, 5 May 2004 08:11:06 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 5/4/04 at 1:08 AM, lobachev at hawaii.edu (edgar) wrote: >I can not seem to figure out how to extract a function from the >list. for example: mathematica gives me output: {{v->x^2}} >How do I extract just x^2 out of that list and assign it to a >different variable? You need to use the replace operator "/." as in y = First[v/.{{v->x^2}}] -- To reply via email subtract one hundred and four