MathGroup Archive 2008

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

Search the Archive

Re: FindRoot with a parameter


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



  • Prev by Date: Re: Range of Use of Mathematica
  • Next by Date: Re: Filtering a list of list for certain elements that are neighbours
  • Previous by thread: FindRoot with a parameter
  • Next by thread: Re: FindRoot with a parameter