Re: [R] Double Infinite Integration

2013-12-06 Thread Hans W Borchers
Aya Anas aanas at feps.edu.eg writes: Hello all, I need to perform the following integration where the integrand is the product of three functions: f(x)g(y)z(x,y) the limits of x are(0,inf) and the limits of y are(-inf,inf). Could this be done using R? There is a saying: Don't ask

Re: [R] Double Infinite Integration

2013-12-05 Thread S Ellison
-Original Message- I need to perform the following integration where the integrand is the product of three functions: f(x)g(y)z(x,y) the limits of x are(0,inf) and the limits of y are(-inf,inf). Could this be done using R? I tried using the function integrate 2 times, but it

Re: [R] Double Infinite Integration

2013-12-05 Thread David Winsemius
On Dec 4, 2013, at 12:07 PM, Aya Anas wrote: Hello all, I need to perform the following integration where the integrand is the product of three functions: f(x)g(y)z(x,y) Since f(x) does not depend on y, could you not do: Int( f(x) * Int( Int( g(y)*z(x,y).dy)).dx) # not R code Then use

[R] Double Infinite Integration

2013-12-04 Thread Aya Anas
Hello all, I need to perform the following integration where the integrand is the product of three functions: f(x)g(y)z(x,y) the limits of x are(0,inf) and the limits of y are(-inf,inf). Could this be done using R? I tried using the function integrate 2 times, but it didn't work: z-