Re: Exponential fit question
- To: mathgroup at smc.vnet.net
- Subject: [mg28147] Re: [mg27986] Exponential fit question
- From: "peter lindsay" <pl at plindsay.co.uk>
- Date: Sun, 1 Apr 2001 00:08:07 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello Joe,
Mathematica tries to fit Exp[x] ( not Exp[a x] ) to your points.
If you want an Exp[0.0034 x] type fit then you'll find Mathematica does much better
than excel.
Try the following:
data=={{ ...etc... }}
f==Fit[data, Exp[0.0034*x],x]
plotfit==Plot[f,{x,0,150}]
g==7.5*Exp[0.0034*x]
plotfit2==Plot[g,{x,0,150}]
listy==ListPlot[data]
Show{listy,plotfit,plotfit2]
Regards,
Peter Lindsay