This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RV: Bug in diff.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]