Re: FindRoot with a parameter
- To: mathgroup at smc.vnet.net
- Subject: [mg88866] Re: [mg88858] FindRoot with a parameter
- From: "W_Craig Carter" <ccarter at mit.edu>
- Date: Mon, 19 May 2008 06:46:08 -0400 (EDT)
- References: <200805190918.FAA12665@smc.vnet.net>
Hello Aaron,
Try this:
aRoot[a_] := FindRoot[a*x == 1/2, {x, 1}]
aRoot[.2]
Plot[x /. aRoot[var], {var, .1, .5}]
Craig
On Mon, May 19, 2008 at 5:18 AM, Aaron Fude <aaronfude at gmail.com> 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
>
>
--
W. Craig Carter
- References:
- FindRoot with a parameter
- From: Aaron Fude <aaronfude@gmail.com>
- FindRoot with a parameter