[R] Complex integration in R

Robin Hankin rksh1 at cam.ac.uk
Fri Dec 12 09:37:20 CET 2008


Hi Borja

library(elliptic)
?myintegrate

HTH

rksh



Borja Soto Varela wrote:
> Dear R-user
>
> I need a function to approximate a complex integration. My function is:
>
> aprox2=function(s,x,rate){
>     dexp(x,rate)*exp(-s*x)
> }
>
> where argument s is a complex number. I can't use the integrate function
> because it's only used with "numeric" arguments
>
> Does anyone know some function to approximate complex integrals?
>
> Thanks
> Borja
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Robin K. S. Hankin
Uncertainty Analyst
University of Cambridge
19 Silver Street
Cambridge CB3 9EP
01223-764877



More information about the R-help mailing list