[R] Numerical integration of a two dimensional function over a disk

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Tue May 8 13:44:36 CEST 2012


"Simply impossible" seems an odd description for a technique described in every elementary calculus text under the heading "integration in cylindrical coordinates".
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

yingfu xie <xieyingfu at yahoo.com> wrote:

>Hello, there!
>>Basically my problem is very clear. I would like to take a
>(numerical)�integration of a function f(x,y) which can be quite complex
>of x and y, over a disk (x-a)^2+(y-b)^2<= r^2 (with r constant).
>However, after some search in R, I just cannot find a function in R
>that suits my purpose. Function Integrate applies to one dimensional,
>and adaptIntegrate to�rectangle. In my case, it is not easy or
>simply�impossible�to transform�the definition area�to a rectangle with
>constant�boundaries. ��I must have missed something, but is there any R
>function which can solve the integration without going to ex. Monto
>Carlo? Many thanks in advance!
>>Best regards,
>Yingfu
>	[[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