search for: my_call_dqag

Displaying 1 result from an estimated 1 matches for "my_call_dqag".

Did you mean: my_call_dqags
2005 May 09
2
use "integrate" for functions defined in C, not R
...ntfn" double f1(double x){ return(x);} static void Cintfn(double *x, int n) { int i; for(i = 0; i < n; i++) x[i] = f1(x[i]); return; } 3. Similar to "call_dqags", I define a C function "my_call_dqags" that has it's own parameters of "lower, upper" and etc define in C, instead of parsing from R. And I call Rdqags(Cintfn, &lower, &upper, &epsabs, &epsrel, &result, &abserr, &neval, &ier, &limit, &lenw, &last, iwo...