public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* minor copy-paste typo in gsl documentation
@ 2002-10-02  8:18 Slaven Peles
  2002-10-02 12:32 ` Brian Gough
  0 siblings, 1 reply; 2+ messages in thread
From: Slaven Peles @ 2002-10-02  8:18 UTC (permalink / raw)
  To: gsl-discuss

There is a minor typo in chapter on Multidimensional Root-Finding in GSL 
reference manual. http://sources.redhat.com/gsl/ref/gsl-ref_33.html#SEC434

There is an example program:

int
powell_df (gsl_vector * x, void * p, gsl_matrix * J) 
{
   struct powell_params * params 
     = *(struct powell_params *)p;
   double A = (params->A);
   double x0 = gsl_vector_get(x,0);
   double x1 = gsl_vector_get(x,1);
   gsl_vector_set (J, 0, 0, A * x1)
   gsl_vector_set (J, 0, 1, A * x0)
   gsl_vector_set (J, 1, 0, -exp(-x0))
   gsl_vector_set (J, 1, 1, -exp(-x1))
   return GSL_SUCCESS
}

Obviously instead of gsl_vector_set should be gsl_matrix_set ;-).

Slaven

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: minor copy-paste typo in gsl documentation
  2002-10-02  8:18 minor copy-paste typo in gsl documentation Slaven Peles
@ 2002-10-02 12:32 ` Brian Gough
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Gough @ 2002-10-02 12:32 UTC (permalink / raw)
  To: Slaven Peles; +Cc: gsl-discuss

Slaven Peles writes:
 > There is a minor typo in chapter on Multidimensional Root-Finding
 > in GSL reference
 > manual. http://sources.redhat.com/gsl/ref/gsl-ref_33.html#SEC434
 >  There is an example program: Obviously instead of gsl_vector_set
 > should be gsl_matrix_set ;-).

Thanks for the bug report.
Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-02 19:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02  8:18 minor copy-paste typo in gsl documentation Slaven Peles
2002-10-02 12:32 ` Brian Gough

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).