In case anyone was crafting a thoughtful response:  please stop.  I was able
to piece something together from some examples.  Thanks anyway, for those
who may have thought about it.

Chris



-----------------------------
Chris Gast
[email protected]


On Tue, Mar 2, 2010 at 8:14 PM, Chris Gast <[email protected]> wrote:

> 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