Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: extracting function from the list

  • To: mathgroup at
  • Subject: [mg48001] Re: extracting function from the list
  • From: Bill Rowe <readnewsciv at>
  • Date: Wed, 5 May 2004 08:11:06 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 5/4/04 at 1:08 AM, lobachev at (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

  • Prev by Date: Differences between 5.0.0 and 5.0.1?
  • Next by Date: Re: Working with binaries
  • Previous by thread: Re: extracting function from the list
  • Next by thread: Animate