From: Slaven Peles <peles@cns.physics.gatech.edu>
To: gsl-discuss@sources.redhat.com
Subject: minor copy-paste typo in gsl documentation
Date: Wed, 02 Oct 2002 08:18:00 -0000 [thread overview]
Message-ID: <E17wlGp-0005yO-00@kaos.physics.gatech.edu> (raw)
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
next reply other threads:[~2002-10-02 15:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-02 8:18 Slaven Peles [this message]
2002-10-02 12:32 ` Brian Gough
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E17wlGp-0005yO-00@kaos.physics.gatech.edu \
--to=peles@cns.physics.gatech.edu \
--cc=gsl-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).