Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Mma: Using FindRoot in NonlinearRegress ?

  • To: mathgroup at
  • Subject: [mg8749] Mma: Using FindRoot in NonlinearRegress ?
  • From: jost at (Christian Jost)
  • Date: Sat, 20 Sep 1997 22:28:14 -0400
  • Organization: Universite Paris-Sud XI
  • Sender: owner-wri-mathgroup at

Hello everybody,

I am trying to use the FindRoot function in NonlinearRegress: so far with
no result, but it may be a simple format problem. Has anybody been able to
do this?

Here is a concrete example:
there is some data={{x1,y1},{x2,y2},...}
and some model, say 
y = FindRoot[a x + b Cos[x]==0,{x,{0,10}}][[1,2]]

Now I want to fit a and b to this model:

   FindRoot[a x + b Cos[x]==0,{x,{0,10}}][[1,2]],

But this doesn't work, there is a lot of error output, mainly that
FindRoot didn't find anything. I suspect somehow the current parameters a
and b are not passed to FindRoot. 
Any help will be much appreciated.

Thanks, Christian.

Christian Jost, Université Paris-Sud XI, Orsay, France

Please don't send any junk mail or advertisements. For personal mail please send to: Christian.Jost at

  • Prev by Date: Re: Help! How can I control the size of individual point?
  • Next by Date: Re: Help! How can I control the size of individual point?
  • Previous by thread: Is 3.0.1 worth the upgrade?
  • Next by thread: [Q] error in Integrate