[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Integration routine qawc

From: Martin Jansche
Subject: Re: [Help-gsl] Integration routine qawc
Date: Mon, 7 Nov 2005 17:10:19 -0500

On 11/7/05, Silke Diedenhofen <address@hidden> wrote:

> This is the function I like to integrate:
> double f (double omega, void * params) {
>       double Wg = *(double *) params;
>       double omega_0 = *(double *) params;

Are you sure you're passing those parameters as intended?  I would
have expected to see something like

double f(double omega, void *vparams) {
    double *params = (double *) vparams;
    double Wg = params[0];
    double omega_0 = params[1];
    // etc.

Make sure that f() evaluates to the expected result for particular
values of omega and parameters.

-- mj

reply via email to

[Prev in Thread] Current Thread [Next in Thread]