tests/Gtilde2.R

library("R2Cuba")
Gtilde2 <- function(x)
{

	cat("x", x[1], "\n")
	ret <- (x[1])^(j-1)/factorial(j-1)
        return(ret)
        
}
tt <- 3
j <- 3
NDIM <- 3
NCOMP <- 1
cuhre(NDIM, NCOMP, Gtilde2) # marche

Try the R2Cuba package in your browser

Any scripts or data that you put into this service are public.

R2Cuba documentation built on May 29, 2017, 7:53 p.m.