[R] R equivalent to (D)QDAWO in Fortran?

From: Bao, Wenkai <wbao_at_mail.smu.edu>
Date: Mon, 25 Apr 2011 16:03:59 +0000

Hi useRs,

I have a set of fortran code that was passed down from previous students, and I am converting its algorithm into R codes.

I encounter this function in Fortran (D)QDAWO, which numerically integrates a function f with a user-specified cosine or sine weight. It is used because the original function that I want to integrate is f(x)*cos(x).

I tried in R to directly integrate by integrate(g(x)), where g(x)=f(x)*cos(x), but a lot of error messages and warnings were given. So is there some function in R that is equivalent to this QDAWO in Fortran, to specifically integrate a function with a sine or cosine component?

Thank you very much!

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. Received on Mon 25 Apr 2011 - 16:30:33 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 25 Apr 2011 - 19:00:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive