From: Lowell Johnson <ldj00@sio.midco.net>
To: gsl-discuss@sourceware.org
Cc: Giulio Bottazzi <giulio.bottazzi@libero.it>,
gsl-discuss <gsl-discuss@sources.redhat.com>
Subject: Re: cvs version: make check FAIL
Date: Wed, 24 May 2006 06:42:00 -0000 [thread overview]
Message-ID: <200605232109.19532.ldj00@sio.midco.net> (raw)
Message-ID: <20060524064200.aljWWh8pJSepEhS5nNaFvUsaEjvyj_Le7KKN3hXBfIc@z> (raw)
In-Reply-To: <20060524000329.8cb0b5c2.giulio.bottazzi@libero.it>
[-- Attachment #1: Type: text/plain, Size: 1145 bytes --]
On Tuesday 23 May 2006 05:03 pm, Giulio Bottazzi wrote:
> Hi,
> the following is obtained with make check on AMD64
>
> make[2]: Entering directory `/usr/local/gsl/specfunc'
> FAIL: gsl_sf_mathieu_c(0, 10.0, 0.0, &r) [2146]
> expected: 0.007626517570935782
> obtained: 0.007626517570935777 1.693427080992244e-18 2.22045e-16
> fracdiff: 3.411891718287791e-16
> value/expected not consistent within reported error
> 0.00762651757093577715 1.69342708099224407e-18
[snip additional Mathieu function test failures]
Hi Giulio,
It looks like I set the computed error tolerances too tight for cases
where the absolute value of the result is less than 1. I've attached a
patch to the specfunc directory that works for me.
The Mathieu functions are new to the trunk, and I've only tested on AMD
Athlon. Hopefully a thorough testing on multiple architectures will
identify any additional issues.
Thanks.
Lowell
--
Lowell D. Johnson
Linux: Bringing stability, security, and freedom to home and business
computing since 1991. www.linux.org
Free and Open Source Software: Of the people, by the people, for the
people.
[-- Attachment #2: mathieu.patch --]
[-- Type: text/x-diff, Size: 2027 bytes --]
Index: mathieu_angfunc.c
===================================================================
RCS file: /cvs/gsl/gsl/specfunc/mathieu_angfunc.c,v
retrieving revision 1.1
diff -u -r1.1 mathieu_angfunc.c
--- mathieu_angfunc.c 18 Apr 2006 17:59:46 -0000 1.1
+++ mathieu_angfunc.c 24 May 2006 01:52:53 -0000
@@ -54,7 +54,9 @@
fn = cos(order*zz)/norm;
result->val = fn;
- result->err = GSL_DBL_EPSILON*fabs(fn);
+ result->err = 2.0*GSL_DBL_EPSILON;
+ if (fabs(fn) > 1.0)
+ result->err *= fabs(fn);
return GSL_SUCCESS;
}
@@ -97,7 +99,9 @@
fn /= norm;
result->val = fn;
- result->err = GSL_DBL_EPSILON*fabs(fn);
+ result->err = 2.0*GSL_DBL_EPSILON;
+ if (fabs(fn) > 1.0)
+ result->err *= fabs(fn);
return GSL_SUCCESS;
}
@@ -126,7 +130,9 @@
fn = sin(order*zz);
result->val = fn;
- result->err = GSL_DBL_EPSILON*fabs(fn);
+ result->err = 2.0*GSL_DBL_EPSILON;
+ if (fabs(fn) > 1.0)
+ result->err *= fabs(fn);
return GSL_SUCCESS;
}
@@ -167,7 +173,9 @@
fn /= norm;
result->val = fn;
- result->err = GSL_DBL_EPSILON*fabs(fn);
+ result->err = 2.0*GSL_DBL_EPSILON;
+ if (fabs(fn) > 1.0)
+ result->err *= fabs(fn);
return GSL_SUCCESS;
}
Index: mathieu_radfunc.c
===================================================================
RCS file: /cvs/gsl/gsl/specfunc/mathieu_radfunc.c,v
retrieving revision 1.1
diff -u -r1.1 mathieu_radfunc.c
--- mathieu_radfunc.c 18 Apr 2006 17:59:46 -0000 1.1
+++ mathieu_radfunc.c 24 May 2006 01:52:54 -0000
@@ -141,7 +141,9 @@
}
result->val = fn;
- result->err = GSL_DBL_EPSILON*fabs(fn);
+ result->err = 2.0*GSL_DBL_EPSILON;
+ if (fabs(fn) > 1.0)
+ result->err *= fabs(fn);
return GSL_SUCCESS;
}
@@ -268,7 +270,9 @@
}
result->val = fn;
- result->err = GSL_DBL_EPSILON*fabs(fn);
+ result->err = 2.0*GSL_DBL_EPSILON;
+ if (fabs(fn) > 1.0)
+ result->err *= fabs(fn);
return GSL_SUCCESS;
}
next prev parent reply other threads:[~2006-05-24 2:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-23 22:03 Giulio Bottazzi
2006-05-24 2:09 ` Lowell Johnson [this message]
2006-05-24 6:42 ` Lowell Johnson
2006-05-24 14:28 ` picca
2006-05-25 20:11 ` Lowell Johnson
2006-05-25 20:12 ` Gerard Jungman
2006-05-25 20:18 ` Gerard Jungman
2006-05-29 16:10 ` Giulio Bottazzi
2006-06-01 12:33 ` 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=200605232109.19532.ldj00@sio.midco.net \
--to=ldj00@sio.midco.net \
--cc=giulio.bottazzi@libero.it \
--cc=gsl-discuss@sources.redhat.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).