Re: [R] two dimensional integration

2013-02-17 Thread julia cafnik
{ sapply(y, function(y) { integrate(function(x) exp(- kappa * (y - x)) * theta, a, y)$value }) }, a, b)$value ) Result: [1] 0.04535358 Thanks for helping! On Sun, Feb 17, 2013 at 10:04 AM, Berend Hasselman wrote: > > On 17-02-2013, at 10:01, julia cafnik wrote: > &g

Re: [R] two dimensional integration

2013-02-17 Thread julia cafnik
thank for your help. already solved it. Cheers, J. On Sun, Feb 17, 2013 at 9:41 AM, Berend Hasselman wrote: > > On 16-02-2013, at 18:01, julia cafnik wrote: > > > Dear R-users, > > > > I'm wondering how to calculate this double integral in R: > &