public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* RV: Bug in diff.c
@ 2001-12-19 13:20 Asterio Gonzalez
  0 siblings, 0 replies; only message in thread
From: Asterio Gonzalez @ 2001-12-19 13:20 UTC (permalink / raw)
  To: gsl-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-19 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 13:20 RV: Bug in diff.c Asterio Gonzalez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).