Hi please how to fit this function in origiC y=[exp(P1*x/1) +P2*x^1]+[P1*exp(x/2) +P2*x^2]+[P1*exp(x/3)+P2*x^3]+[P1*exp(x/4)+P2*x^]+[P1*exp(x/5)+P2*x^5]+...+[P1*exp(x/k)+P2*x^k]+...... (k=1,...,1000)
There is a minor different between your function and the function above. So if you wrote the function correctly, you need to do minor modification to the codes.
For more details about User-Defined function, please refer to