[R] two dimensional integration

Rui Barradas ruipbarradas at sapo.pt
Sat Feb 16 20:51:15 CET 2013


Hello,

Though I think you should compute that integral symbolically by hand and 
then define a function with the result, maybe package pracma can do what 
you want.
[functions dblquad(9 and quad2d()]


Hope this helps,

Rui Barradas

Em 16-02-2013 17:01, julia cafnik escreveu:
> Dear R-users,
>
> I'm wondering how to calculate this double integral in R:
>
> int_a^b  int_c^y g(x, y) dx dy
>
> where g(x,y) = exp(- alpha (y - x)) * b
>
> Thanks for answering!
>
> Cheers,
>
> Alui
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list