NonlinearFit
- To: mathgroup at smc.vnet.net
- Subject: [mg42207] NonlinearFit
- From: lamp02 at hotmail.com (Andrew Kang)
- Date: Mon, 23 Jun 2003 05:49:45 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Please could someone assist me in curve fitting. I have imported a x,y file as follows: data1 = ReadList["data.txt",{Real,Real}] Now I wish to fit a curve of the form below to it: Re[a Exp[I Pi*b/180]/(x - c + I d)^2.5] ,where a, b, c, d are parameters to be determined (real numbers), and 'I' means the imaginary part of a complex number. I tried the following but it doesn't work: <<Statistics`NonlinearFit` NonlinearFit[data1, Re[a Exp[I Pi*b/180]/(x - c + I d)^2.5],{x},{{a,0,0001},{b,120},{c,1.26},{d,0.05}}] Please help me. Thanks is advance Andy