MathGroup Archive 2011

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

Search the Archive

Re: nested findroot

  • To: mathgroup at
  • Subject: [mg122802] Re: nested findroot
  • From: Ray Koopman <koopman at>
  • Date: Fri, 11 Nov 2011 04:53:05 -0500 (EST)
  • Delivered-to:
  • References: <j9genv$p2n$>

On Nov 10, 4:06 am, Anna McCuan <anna.mcc... at> wrote:
> I'm getting an error finding a root using functions which are defined
> using findroot.  This happens in spite of the fact that I can graph
> the function and see clearly that there is an easy to find root.
> Does anyone know how to execute this root search successfully?
> The file is posted publicly at

Change the definitions of f and g so that
they apply only when the argument is numeric:

f[w_?NumericQ] := ...
g[w_?NumericQ] := ...

FindRoot[g[soln] - 9 f[soln] == 0, {soln, .13}]
{soln -> 0.131216}

  • Prev by Date: large integration result for simple problem: 1/x,, also BesselJ
  • Next by Date: Re: AspectRatio -> 1 vs AspectRatio ->1.25
  • Previous by thread: Re: nested findroot
  • Next by thread: Question on two-stage optimization of polynomials: how to draw a response function?