[Top][All Lists]

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

Re: [Help-gsl] Numerical Integration With gsl_vector ?

From: Brian Gough
Subject: Re: [Help-gsl] Numerical Integration With gsl_vector ?
Date: Mon, 12 Jun 2006 15:33:31 +0100

Daniel J Farrell writes:
 > Is it possible to use two gsl_vector (or even just C arrays) as  
 > arguments to gsl's more advanced integration function?
 > For example, I have made this function which simply takes in two  
 > columns of numbers an X axis and Y axis then computes the area via  
 > the trapezium rule.
 > double integrate_trapezium(gsl_vector *x, gsl_vector *y);
 > I would like to use a better algorithm i.e.:
 > double integrate_fancy_quadrature_algorithm(gsl_vector *x, gsl_vector  
 > *y, other, arguments, if, needed);
 >                      What do you think?


Take a look at the spline/interpolation chapter of the GSL
manual. Integration is provided there--you can choose the
interpolation type.

best regards,

Brian Gough

Network Theory Ltd,
Publishing the GSL Manual -

reply via email to

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