MathGroup Archive 1998

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

Search the Archive

Re: curve fitting

  • To:
  • Subject: [mg10363] Re: curve fitting
  • From: Paul Abbott <>
  • Date: Mon, 12 Jan 1998 04:09:58 -0500
  • Organization: University of Western Australia
  • References: <694c2k$> wrote:

> I'm trying to fit a function of the form: f[x_]:= Exp^(a*x)

You mean Exp[a*x] or E^(a*x)?
> Now, I can fit the exponential without the constant, but I'm really
> interested in knowing what the constant is but I haven't found a way to
> code this.   Helpful suggestions?

Try Statistics`NonlinearFit`:

In[1]:= <<Statistics`NonlinearFit`

In[2]:= Table[{x, Exp[2.1*x]}, {x, -2, 3}]; 

In[3]:=NonlinearFit[%, Exp[a*x], x, a] Out[3]= Exp[2.1*x]


Paul Abbott                                   Phone: +61-8-9380-2734
Department of Physics                           Fax: +61-8-9380-1014
The University of Western Australia            Nedlands WA  6907  AUSTRALIA                   

            God IS a weakly left-handed dice player

  • Prev by Date: Re: Math Problem in Mathematica
  • Next by Date: Re: Background jobs with Mathematica 3.0 under Linux ?
  • Prev by thread: Re: curve fitting
  • Next by thread: Re: curve fitting