Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Double integral in R with variable in the bound

How can the below integral be calculated in R? :

enter image description here

The difficulty is that in the inner integral the upper bound contains one of the variables.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Anyone knows ?

The result must be :
0.0104166666666667

>Solution :

You can get this from:

integrate(Vectorize(function(y) {
    integrate(function(x) {x*y}, 0, 1-2*y)$value }), 0,0.5)
0.01041667  with absolute error < 1.2e-16
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading