FindFit & NIntegrate
- To: mathgroup at smc.vnet.net
- Subject: [mg96124] FindFit & NIntegrate
- From: hmalissa <hans.malissa at gmx.net>
- Date: Thu, 5 Feb 2009 04:42:33 -0500 (EST)
I want to use the FindFit function (or similar) to fit some experimental data: fit=FindFit[data,expr,pars,vars] Usually this works very well, but in this particular case the model expr consists of a NIntegrate over another function, like: model[x_,a_,b_,c_]:=NIntegrate[function[x_,t_,a_,b_,c_],{t,0,inf}]; fit=FindFit[data,model[x,a,b,c],{a,b,c},x] FindFit now complains about non-numerical values; of course that makes sense. How can I force FindFit to do the fitting anyway?