Re: FindRoot with a parameter
- To: mathgroup at smc.vnet.net
- Subject: [mg88877] Re: FindRoot with a parameter
- From: dh <dh at metrohm.ch>
- Date: Tue, 20 May 2008 02:26:21 -0400 (EDT)
- References: <g0rkjk$e03$1@smc.vnet.net>
Ho Aaron,
obvioulsy FindRoot can do its job not before we know a. Therefore, waht
you need id a delayed assignment:
K[a_] := FindRoot[a*x == 1/2, {x, 1}]
If you have doubts, it is always safer to define a function with a
delayed assigment.
hope this helps, Daniel
Aaron Fude wrote:
> Hi,
>
> How does one accomplish something like this:
>
> K[a_] = FindRoot[a*x == 1/2, {x, 1}]
>
> My intention is to plot how the zero of a function depends on
> parameters.
>
> Thanks!
>
> Aaron
>