Very nice work indeed! Is it possible to pass 'userdata' to integrand in Julia? It is mentioned in sources but is not listed in keywords.
Thanks, Kaj On Tuesday, April 12, 2016 at 5:34:32 PM UTC+3, Mosè Giordano wrote: > > A quick update: with new version 0.0.5 the syntax of the integrand > function has been changed and now the integrand function should be passed > as in Cubature,jl, for the case of vector-valued integrands. So, for > example, to integrate log(x)/sqrt(x) for x in [0, 1], one can use one of > the following commands: > > Vegas( (x,f) -> f[1] = log(x[1])/sqrt(x[1]), 1, 1) > Suave( (x,f) -> f[1] = log(x[1])/sqrt(x[1]), 1, 1) > Divonne( (x,f) -> f[1] = log(x[1])/sqrt(x[1]), 1, 1) > Cuhre( (x,f) -> f[1] = log(x[1])/sqrt(x[1]), 1, 1) > > More details and examples are available in the manual: > http://cubajl.readthedocs.org/ > > Let me thank Steven G. Johnson for his help. > > Bye, > Mosè >