Question: How to fit a given function to experimental data?

Hi,

I need to fit a complex function to some data points Couuld you please show me what Maple operations to use?

The function is:

pn := unapply(KT*bn*(sum((dWn[i](lambda)*(sum(c[i+r]*binomial(i+r, i)*(Lmbd0(lambda)/bn)^r, r = 0 .. nterm-i))+IWn[i](lambda)*(2*lambda^3-2)*(sum(r*c[i+r]*binomial(i+r, i)*(Lmbd0(lambda)/bn)^(r-1), r = 1 .. nterm-i))/(bn*(3*lambda^2)))/bn^i, i = 0 .. nterm)), lambda);

- 'IWn' and 'dWn' are known (and long) functions of lambda.

- nterm should be 5 in my case.

- The given experimental data is a 30x2 table with values of 'lambda' and 'pn'. I stored them in two 30x1 arrays named 'lambda_values' and 'pn_values' respectively.

- 'KT' and 'bn' are the variables to be calculated from the fit.

I would like a method to compute 'KT' and 'bn'. I can provide the functions and data if needed. Any help would be appreciated.

Thank you

Please Wait...