MathGroup Archive 2006

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

Search the Archive

Re: use Solve[...] result as a function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68192] Re: [mg68161] use Solve[...] result as a function
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 29 Jul 2006 01:00:06 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

f[x_] = (y /. Solve[x^2 == y, y][[1]])

x^2


Bob Hanlon

---- alandwehr at freesurf.ch wrote: 
> Hello
> 
> Does anybody know how to use a result of Solve[...] as a function?
> i.e. Solve gives me the result {x->x^2}. Now I want to use the result
> as a function f[x]. How does this work.
> 
> Thank you very much for your help.
> 
> Ananda
> 


  • Prev by Date: RE: Re: Wolfram Workbench
  • Next by Date: Solving linear systems in matrix notation?
  • Previous by thread: use Solve[...] result as a function
  • Next by thread: Re: use Solve[...] result as a function