Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

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
____________________________________________________________________



  • 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