Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

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



  • 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