bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] Mistake in Reference manual


From: Axel Hutt
Subject: [Bug-gsl] Mistake in Reference manual
Date: Mon, 22 Mar 2004 09:10:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114

Dear all,

there is a mistake in the reference manual. In the
chapter about Monte-Carlo integration, section Interface

http://sources.redhat.com/gsl/ref/gsl-ref_23.html#SEC370 ,

the example

double
my_f (double x, size_t dim, void * p) {

should pass a pointer 'double* x' and not simply 'double x' .
In addition, few lines later the element 'function' in

F.function = &my_f;

does not exist in 'gsl_monte_function F'.

The correct element is simply 'f' . Hence the call

F.f = &my_f;

is correct instead.

In addition, I would like to add my deep thanks for
providing Monte-Carlo integration in GSL!


Axel


--
Dr. rer.nat. Axel Hutt
WeierstraƟ-Institute for Applied Analysis and Stochastics
Mohrenstr. 39, 10117 Berlin, Germany
Tel.: +49 - (0)30 - 20372 564
Fax.: +49 - (0)30 - 2044 975
http://www.wias-berlin.de/people/hutt





reply via email to

[Prev in Thread] Current Thread [Next in Thread]