Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Fitting model with variable in integration limit' topicStudent Support Forum > General > Archives > "Fitting model with variable in integration limit"

Next Comment >Help | Reply To Topic
Author Comment/Response
greedohun
09/22/11 06:41am

I have to fit an equation to a set of data where the equation has its variable in the limit of a numerical integration.

I have tried it with a simplified model:

NonlinearModelFit[{1, 2, 3, 5, 8, 13, 17, 18, 18, 19},
a*NIntegrate[5^x/Gamma[x], {x, 0, y}], {a}, y]

But this gives the error:

NIntegrate::nlim: x = y is not a valid limit of integration.

The same equation can be plotted on a specified y range, i.e. {y,0,10}, which makes me believe that the problem is that nonlinearModelFit doesnt assume that the range should be the one where data is available.

I haven't had much success either with supplying this assumption, or using other fitting functions (FindFit..). Could someone help me please?

URL: ,

Subject (listing for 'Fitting model with variable in integration limit')
Author Date Posted
Fitting model with variable in integration limit greedohun 09/22/11 06:41am
Re: Fitting model with variable in integration ... yehuda ben-s... 09/23/11 01:33am
Next Comment >Help | Reply To Topic