Re: implicit function
- To: mathgroup at smc.vnet.net
- Subject: [mg28307] Re: implicit function
- From: Matthias Hertel <wir95cgu at studserv.uni-leipzig.de>
- Date: Mon, 9 Apr 2001 02:58:06 -0400 (EDT)
- References: <200104070744.DAA02036@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Phil,
FindRoot returns a list of replacement rules. All you have to do is
apply them:
In[1]:= ff[x_] := y /. FindRoot[2y == x, {y, .5}]
In[2]:= ff[.5]
Out[2]= 0.25
Regards
Matthias
Phil Bonacich <bonacich at soc.ucla.edu> writes:
> This is a simple problem, but one that has bedeviled me. I define
> ff[x_] := FindRoot[2y == x, {y, .5}] . I don't want "{y -> 0.25}"
> when I enter ff[.5]; I want ".25", so that I can do other things
> with the function ff. How do I get it?
- References:
- implicit function
- From: "Phil Bonacich" <bonacich@soc.ucla.edu>
- implicit function