> Does function  brent_init () and brent_iterate in file /min/brent.c have a
> bug ??
>
> They do not allow a user minimize a function which has more than one double
> parameters e.g f(x)= b* cos(a *x)  which has parameters (a.b)

Stop using internal APIs you find by reading the source code and
instead read the documentation on one-dimensional minimization:
http://www.gnu.org/software/gsl/manual/html_node/One-dimensional-Minimization.html

If you want to minimize in multiple dimensions, try reading
http://www.gnu.org/software/gsl/manual/html_node/Multidimensional-Minimization.html.

- Rhys

Reply via email to