help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Re: gsl_function with pointer


From: Ivan Liu
Subject: [Help-gsl] Re: gsl_function with pointer
Date: Sat, 7 Oct 2006 20:31:55 +0200

Oh I forgot to say that the error message was

Segmentation fault

Regards,
Ivan Liu

On 10/7/06, Ivan Liu <address@hidden> wrote:

Hi,

I hope to use to declare a gsl_function by pointer, and
use the integration rountine gsl_integration_qag in the
following way:


gsl_function * Integrand=0;
Integrand->function = &f;
Integrand->params = &list;

gsl_integration_qag (Integrand, x_start, x_end, epsabs, epsrel, limit, 1,
w, &resIntegral, &abserr);



it compiles successfully but fails on runtime.

is it not possible to declare gsl_function using pointer and pass it
to the gsl_integration_qag routine?

Regards,
Ivan Liu



reply via email to

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