[R] numerical intergation

Gabor Grothendieck ggrothendieck at gmail.com
Mon Sep 5 17:32:58 CEST 2005


On 9/5/05, Clark Allan <Allan at stats.uct.ac.za> wrote:
> 
> 
> how does one numerically intergate the following:
> 
> A=function(x,y)
> {
>        xy
> }
> 
> over the range: 2<x<0   4<y<10
> 
> say.
> 
> 
> ie how would one set up the integrate function?
> 
> i forgot!
> 

In this particular case its separable so you could just
integrate each factor and multiply the two results
but if you want to do it in terms of A then see:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/43836.html




More information about the R-help mailing list