From: Bill Maier <shufflesky@hotmail.com>
To: "gsl-discuss@sourceware.org" <gsl-discuss@sourceware.org>
Subject: Bug #45926
Date: Wed, 18 Nov 2015 01:50:00 -0000 [thread overview]
Message-ID: <BAY176-W40CD23957B4D8F3D84E3FC91C0@phx.gbl> (raw)
I've investigated bug #45929 "error in generalized hypergeometric function". The problem is in the
file specfunc/hyperg_2F1.c in the first function the file, hyperg_2F1_series(). There is a loop starting
at line 59 which is intended to converge to the solution, and within this loop is a check to insure the
loop is not executed more than 30000 times. This code is actually working and computing the correct
value, but the error terms del_pos and del_neg eventually get no smaller and so the loop executes the
full 30000 iterations and then reports GSL_EMAXITER error, even though it does have the correct
value calculated.
I would fix this by saving the previous error terms and insuring they are becoming smaller with each
iteration. If they are not getting smaller, machine precision has been reached and the value can be
returned to the user. I can supply code or could check in myself through git if I can get access. I have
30+ years of experience with C code and want to begin helping maintain GSL.
By the way, when I do a git clone to get the code and then run ./autogen, it fails with message
"autoreconf: not found". Has this file been left out of the git repository?
-Bill Maier
next reply other threads:[~2015-11-18 1:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 1:50 Bill Maier [this message]
2015-11-18 4:45 ` Dirk Eddelbuettel
2015-11-19 22:21 ` Patrick Alken
2015-11-20 15:54 ` Bill Maier
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=BAY176-W40CD23957B4D8F3D84E3FC91C0@phx.gbl \
--to=shufflesky@hotmail.com \
--cc=gsl-discuss@sourceware.org \
/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).