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: [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

> 




  • Prev by Date: Re: Redundant manipulate
  • Next by Date: Re: Possible Bug Report: CoefficientList
  • Previous by thread: Re: FindRoot with a parameter
  • Next by thread: Re: FindRoot with a parameter