This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/13940] acos returns wrong value
- From: "aj at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 03 Apr 2012 07:37:58 +0000
- Subject: [Bug math/13940] acos returns wrong value
- Auto-submitted: auto-generated
- References: <bug-13940-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13940
Andreas Jaeger <aj at suse dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |aj at suse dot de
Resolution| |WORKSFORME
--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2012-04-03 07:37:58 UTC ---
I just wrote a short test program to confirm that the test we have in the math
testsuite for acos(-1) is working:
#include <math.h>
#include <stdio.h>
int
main (void)
{
float f;
double d;
long double ld;
f = acosf (-1.0f);
d = acos (-1.0);
ld = acosl (-1.0);
printf ("float %f\n", f);
printf ("double %f\n", d);
printf ("long double %Lf\n", ld);
return 0;
}
It returns on my glibc 2.15 system:
aj@byrd:/tmp> gcc -Wall -lm t.c
aj@byrd:/tmp> ./a.out
float 3.141593
double 3.141593
long double 3.141593
So, everything is fine.
If it does not work for you, please attach a short selfcontained test case and
example output.
Closing as WORKSFORME - feel free to reopen if you have additional data.
The issue mentioned in libc-help is something different and as Carlos said, it
needs a separate bug report.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.