Hello,

I have a function f(x_i) which I wish to integrate within a summation, for
each value of the summation index.  That is, I want compute:

sum(integral(f(x_i)))

In this particular case, I am trying to use gsl_integration_qagi().  I need
to be able to pass (at the very least) the index value of the summation, i.
In a perfect world, I could pass a vector of information that would then be
used to create f(x_i), and then I could integrate and sum.

Does such a perfect world exist?  Is anyone aware of how I might pass
additional arguments through the call to gsl_integration_qagi() to be used
by the function f()?

Thanks,

Chris Gast
Quantitative Ecology and Resource Management
University of Washington, Seattle, WA, USA
[email protected]
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to