[R] numerical intergation
Robin Hankin
r.hankin at noc.soton.ac.uk
Mon Sep 5 12:13:28 CEST 2005
Hi Allan
you need adapt() from the adapt package.
> library(adapt)
> ?adapt
> adapt(2,lower=c(-2,4),upper=c(0,10),functn=function(z){prod(z)})
value relerr minpts lenwrk ifail
-84 7.38275e-08 165 73 0
>
NB: untested
HTH
rksh
On 5 Sep 2005, at 10:59, Clark Allan wrote:
>
>
> how does one numerically intergate the following:
>
> A=function(x,y)
> {
> xy
> }
>
> over the range: 2<x<0 4<y<10
>
> say.
>
>
> ie how would one set up the integrate function?
>
> i forgot!______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-
> guide.html
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743
More information about the R-help
mailing list