This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
RV: Bug in diff.c
- To: <gsl-discuss at sources dot redhat dot com>
- Subject: RV: Bug in diff.c
- From: "Asterio Gonzalez" <agonzalez at udiberica dot com>
- Date: Mon, 8 Oct 2001 18:08:15 +0200
Same in lines 80, ...
gsl_multimin_compute_ep (w, h);
fh = f->f (w->evaluation_point, f->params);
gsl_multimin_compute_ep (w, -h);
fl = f->f (w->evaluation_point, f->params);
gsl_vector_set (g, n, (fh - fl) / (2.0 * h));
-----Mensaje original-----
De: Asterio Gonzalez [mailto:agonzalez@udiberica.com]
Enviado el: lunes, 08 de octubre de 2001 17:43
Para: gsl-discuss@sources.redhat.com
Asunto: Bug in diff.c
Hi all,
There is a bug in file diff.c
Line 51:
d[i] = f->f (w->evaluation_point, 0);
must be
d[i] = f->f (w->evaluation_point, f->params);
The evaluate function fails when you must use 'params' info,
so this way passes params to evaluate function.
--
Asterio González Pastor
Responsable I+D
INGENIEURWISSENSCHAFT UND DIENST, S.L.L
P.I.S.A Manufactura 4. Edif. Logos 1. 1º planta.
41927. Mairena del Aljarafe. Sevilla - España
Telf: 954 189010 - Fax: 954 189139
e-mail: agonzalez@udiberica.com
http://www.udiberica.com