[R] double integral with C

2007-01-24 Thread Stefano
Hi all, This is more a C querie rather than a R one: I'm writing a C code passing a function F to adapt fortran subroutine. I need to integrate over two variables of F, call them x1 and x2. Then I call the C code in R to optimize the integrated F function. for example F could be defined as

[R] Double integral

2006-09-22 Thread Caio Lucidius Naberezny Azevedo
Hi all, I need to solve double integrals with no closed solution. Calling x and y the two variables we have x ~ Normal(y*v,1) and y ~Half-Normal(0,1). In fact, given a joint funcion g(x,y), I need evaluate the integral of this function under that random structure. Could anyone suggest me

[R] Double integral

2006-09-22 Thread Caio Lucidius Naberezny Azevedo
Hi all, I need to solve double integrals with no closed solution. Calling x and y the two variables we have x ~ Normal(y*v,1) and y ~Half-Normal(0,1). In fact, given a joint funcion g(x,y), I need evaluate the integral of this function under that random structure. Could anyone suggest me

Re: [R] Double integral

2006-09-22 Thread Sundar Dorai-Raj
Caio Lucidius Naberezny Azevedo said the following on 9/22/2006 4:40 PM: Hi all, I need to solve double integrals with no closed solution. Calling x and y the two variables we have x ~ Normal(y*v,1) and y ~Half-Normal(0,1). In fact, given a joint funcion g(x,y), I need evaluate the

[R] double integral

2006-05-05 Thread Dominique Katshunga
Dear r-users, Is there any command in R allowing to evaluate a double integral? for instance let say I want to evaluate the following integral: integrate[lo=(0,1),up=(2,3)] f(x,y)=x^2+y^2 where lo is the vector of lower bounds and up that of upper bounds. I thaught the function adapt would work

Re: [R] double integral

2006-05-05 Thread Gabor Grothendieck
Try RSiteSearch(double integral) On 5/5/06, Dominique Katshunga [EMAIL PROTECTED] wrote: Dear r-users, Is there any command in R allowing to evaluate a double integral? for instance let say I want to evaluate the following integral: integrate[lo=(0,1),up=(2,3)] f(x,y)=x^2+y^2 where lo is

Re: [R] double integral

2006-05-05 Thread Thomas Lumley
On Fri, 5 May 2006, Dominique Katshunga wrote: Dear r-users, Is there any command in R allowing to evaluate a double integral? for instance let say I want to evaluate the following integral: integrate[lo=(0,1),up=(2,3)] f(x,y)=x^2+y^2 where lo is the vector of lower bounds and up that of