[Top][All Lists]

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

Re: [Help-gsl] nested function calls

From: Leo Razoumov
Subject: Re: [Help-gsl] nested function calls
Date: Mon, 13 Apr 2009 15:05:35 -0400

On 4/9/09, Holger Perlt <address@hidden> wrote:
> Is it possible to use a gsl-function as argument of another gsl-function?
>  Example:
>  Finding the zeroth of a one-parameter integral:
>  One could use one of the gsl-root functions with the  argument-function
> being the integral
>  over a one-parameter function. One wants to determine the value of the
> parameter where this integral vanishes.
>  Holger

GSL functions are regular C-functions and should be used as such.
In your particular example, please, see GSL documentation, section 32
"One dimensional Root-Finding", subsection 32.10 "Examples" on how to
pass functions as arguments to root solvers. By the way,
implementation of your function could contain integrals, etc.

Hope it helps,

reply via email to

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