Message-ID: <511FE333.5000208@sapo.pt>
Date: 2013-02-16T19:51:15Z
From: Rui Barradas
Subject: two dimensional integration
In-Reply-To: <CAHFJQgRi1n+3bhfZ_JuPNK5U52oZd6frN=aZGb0eunprUDzLjQ@mail.gmail.com>
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.
>