Skip to content
Prev 270110 / 398502 Next

maximum number of subdivisions reached

Hi:

integrate() is not a vectorized function. This appears to work:

sapply(1:2, function(x) func(x, 0.1, 0.1, sad = Exp))
[1] 0.250 0.125

In this case, sapply() is a disguised for loop.

HTH,
Dennis
On Mon, Aug 29, 2011 at 9:45 AM, . . <xkziloj at gmail.com> wrote: