This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, I'd like to submit a bug in cygwin implementation of sin(). The following simple program demonstrates this: #include <math.h> #include <stdio.h> int main( int argc, char ** argv) { double g = (double) 3.1415926535897900074; printf("sin(%.10g)=%.10g\n", g, sin(g)); } output is : sin(3.141592654)=3.231089149e-15 whereas all other sin() implementation I could find ( freebsd, linux, msvc) report this: sin(3.141592654)=3.231085104e-015 the difference is in 7th digit, and is significant for double precision. Please find attached cygcheck.out . -- Sincerely, Dmitry Karasik
Attachment:
cygcheck.out
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |