Re: curve fitting
- To: mathgroup@smc.vnet.net
- Subject: [mg10363] Re: curve fitting
- From: Paul Abbott <paul@physics.uwa.edu.au>
- Date: Mon, 12 Jan 1998 04:09:58 -0500
- Organization: University of Western Australia
- References: <694c2k$o1p@smc.vnet.net>
Paul.Hanson@colorado.edu 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] Cheers, Paul ____________________________________________________________________ Paul Abbott Phone: +61-8-9380-2734 Department of Physics Fax: +61-8-9380-1014 The University of Western Australia Nedlands WA 6907 mailto:paul@physics.uwa.edu.au AUSTRALIA http://www.pd.uwa.edu.au/~paul God IS a weakly left-handed dice player ____________________________________________________________________