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
>