MathGroup Archive 2006

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

Search the Archive

Re: Non-linear Rgression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71602] Re: Non-linear Rgression
  • From: dh <dh at metrohm.ch>
  • Date: Sat, 25 Nov 2006 05:36:37 -0500 (EST)
  • References: <ek630t$8qu$1@smc.vnet.net>

Hi,
try e.g:
d = {{0, 0}, {1, 2}, {3, 6}};
FindFit[d, Log[Cosh[a*x]], a, x]
or another possibility:
<< Statistics`NonlinearFit`
NonlinearFit[d, Log[Cosh[a*x]], x, a]
Daniel

aminr wrote:
> Hello,
> I'm a physics student.I have done an experiment .I want to use
> Mathematica , I found a problem in using it :
> 
> for example I have data ={ {0,0},{1,2},{3,6}}  and I want to fit them
> for a equation such as " y=Log[Cosh[a*x]] "
> so I want the value of parametre"a" and also its error(i.e. a=0.045+-
> 0.05  then error is 0.05 )
>  and also the regression (i.e. R=0.995  )
> please ,please , tell me how I can do it ? I have seen the help browser
> but i did'nt understand.
> could you please possibly try it and send me the programme.
> 


  • Prev by Date: Re: Arithmetic Puzzle (so simple it's hard)
  • Next by Date: Limit of Infinitely Nested Expression (4.0 succeeds, 5.2 fails...)
  • Previous by thread: Re: Non-linear Rgression
  • Next by thread: Re: Non-linear Rgression