This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: minimize and cspline
- From: Alan Aspuru-Guzik <aspuru at okra dot cchem dot Berkeley dot edu>
- To: Zunbeltz Izaola <zunbeltz at lcdx00 dot wm dot lc dot ehu dot es>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Thu, 9 Oct 2003 12:22:43 -0700 (PDT)
- Subject: Re: minimize and cspline
Kaixo Zunbeltz,
The spline documentation is here
http://sources.redhat.com/gsl/ref/gsl-ref_26.html#SEC389
And a specific example of how to do that is:
http://sources.redhat.com/gsl/ref/gsl-ref_26.html#SEC396
What I would do, is create a gsl_vector for the data points you have.
And then find the maximium element using:
http://sources.redhat.com/gsl/ref/gsl-ref_8.html#SEC165
The bottomline is that the manual has excellent examples.
If you want to support the GSL effort, I would recommend to get a printed
copy of the manual. I have one, and it is very nice and convenient as
well.
http://www.network-theory.co.uk/gsl/manual/
(Or if you are feeling cheapskate, the PDF version is downloadable from
the same page).
If you still have questions, feel free to ask them
Alan Aspuru-Guzik
On Thu, 9 Oct 2003, Zunbeltz Izaola wrote:
> HI,
>
> I'm new to gsl. I've a array with the values of a function. I want to do a
> cspline of the points and then find the maximun of the function. Is it
> possible? I'm reading the documnetation but i can't find how.
>
> thanks in advance
>
> Zunbeltz
>
>
--
Alan Aspuru-Guzik Dios mueve al jugador, y éste, la pieza.
(510)642-2154 UC Berkeley ¿Qué Dios detrás de Dios la trama empieza
de polvo y tiempo y sueño y agonías? -Borges