From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12621 invoked by alias); 2 Oct 2002 15:18:48 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 12575 invoked from network); 2 Oct 2002 15:18:47 -0000 Received: from unknown (HELO cns.physics.gatech.edu) (130.207.140.81) by sources.redhat.com with SMTP; 2 Oct 2002 15:18:47 -0000 Received: from [130.207.140.139] (helo=kaos.physics.gatech.edu ident=[UGmc0Qo2ZrjfV7l0hD+bQGS/w+udjULB]) by cns.physics.gatech.edu with esmtp (Exim 3.22 #1) id 17wlL8-00083t-00 for gsl-discuss@sources.redhat.com; Wed, 02 Oct 2002 11:23:06 -0400 Received: from peles by kaos.physics.gatech.edu with local (Exim 3.22 #1 (Redhat)) id 17wlGp-0005yO-00 for ; Wed, 02 Oct 2002 11:18:39 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Slaven Peles To: gsl-discuss@sources.redhat.com Subject: minor copy-paste typo in gsl documentation Date: Wed, 02 Oct 2002 08:18:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: X-SW-Source: 2002-q4/txt/msg00003.txt.bz2 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