RE: [R] Example using Rdqags

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sat 10 Jul 2004 - 03:21:35 EST


This is not a direct answer to your question, but if all you want to do is integrate a function numerically, you don't need to be doing it through R. You should be able to find codes that you can use directly, such as quadpack or even GSL. You may want to search on GAMS (Guide to Available Mathematical Software, http://gams.nist.gov/).

Andy

> From: Victoria Landsman
>
> Dear all,
> I'd like to use the Rmath library for calling R functions in
> C code. I have no any experience in this. I am trying to read
> the "Writing R extensions" manual but with no success. I
> searched the Web and archives but did not find appropriate
> example. To be specific, I am looking for an example of the
> .c file and .R file aimed to compute the integral of f(x)=x^2
> from 0 to 1 using Rdqags?
>
> I am running R 1.9.1 on Sun.
> Much thanks for any comments/help.
> Vicky.



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 10 03:42:41 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:47 EST