Re: [R] cubature

2012-03-25 Thread Jeff Newmiller
Who knows? You mention different machines, yet fail to hint what they are much less provide sessionInfo() output, and x is not defined in your global environment in your snippet. Please read the posting guide. I am not familiar with this library, but I would be surprised if it were capable of h

[R] cubature

2012-03-24 Thread JMDS
Hi, I am using adaptIntegrate from Cubature to do numerical integration on a double integral with a 1 x 2 vector x. Say the function is something simple to start like f(x)=x1*x2 and I wish to integrate x1 over (0,365-x2) and x2 over (0,365) f <- function(x) {(x[2])*(x[1])} # "x" is vector int1<-