MathGroup Archive 1998

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

Search the Archive

Re: curve fitting

> From Fri Jan  9 08:23:20 1998
> Date: Thu, 8 Jan 1998 23:41:12 -0500
> From:
> To:
> Subject: [mg10364] [mg10355] curve fitting
> I'm trying to fit a function of the form: f[x_]:= Exp^(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?
> Dr. Paul Hanson, Ph.D.
> University of Colorado, Boulder

Hi Paul,

say You have data={{x1,y1},{x2,y2},...} and You want to find a least
square approximation for the model y==b*Exp[a], than Log[y]=Log[b]+a*x
and You can use the linear Fit[] function by

lnData=data /. {x_?NumericQ,y_?NumericQ} :> {x,Log[y]}


You will get back a function


Hope that helps

  • Prev by Date: howto interrupt with mathlink
  • Next by Date: debugging MathLink executables
  • Prev by thread: Re: curve fitting
  • Next by thread: Re: curve fitting