X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:content-type:content-transfer-encoding :date:subject:to:message-id:mime-version; q=dns; s=default; b=yG PwCKM+D8GLAohnUKVhrTpzrp66hnRoeo8A1jaFuh5X+HsB35I78+x/qzhVoyK0rd os3zgKJCSt6P4VFqsOoa68WeKvg0Ztxk4xW1oVBImLJauqet2mOHbe8UPklvRNFr YwmHcZ/5WGnyH2kGPpLnsprI64EteP+IZioXIuSfo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:content-type:content-transfer-encoding :date:subject:to:message-id:mime-version; s=default; bh=+8NuIOou vSh4arihumCdUng0l2w=; b=N1fwhNNpGudGxdbiQ4DNadrE6wQVWKDQ2+97A1nk O8+LeTj6UeOwqvzKhjcA/5HHhb1VyDjkLY3rTYXqrw4PvMM1FzzdkEng38DKeRMw LlqTIrk+dvFaaWJWPGpG3/9oFzQu7ITsnk/hks/sm0Kbrp9H9Hqh0do4POhMlHIv C3Y= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: smtp4-g21.free.fr From: Denis Excoffier Content-Type: text/plain; charset=us-ascii Date: Thu, 7 Aug 2014 19:41:04 +0200 Subject: suggestion about math.h To: Cygwin Mailing List Message-Id: <8437F00B-0E62-4F8A-9B4C-B7425545289F@Denis-Excoffier.org> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id s77HfLgn008942 Hello, Perhaps the values of some constants are not as accurate as they should be? See also M_LN2LO and M_LN2HI. diff -uNr cygwin-snapshot-20140807-1-original/newlib/libc/include/math.h cygwin-snapshot-20140807-1-patched/newlib/libc/include/math.h --- cygwin-snapshot-20140807-1-original/newlib/libc/include/math.h 2014-08-07 18:26:21.000000000 +0200 +++ cygwin-snapshot-20140807-1-patched/newlib/libc/include/math.h 2014-08-07 19:31:51.000000000 +0200 @@ -569,14 +569,14 @@ #ifndef __STRICT_ANSI__ #define M_TWOPI (M_PI * 2.0) -#define M_3PI_4 2.3561944901923448370E0 -#define M_SQRTPI 1.77245385090551602792981 +#define M_3PI_4 2.3561944901923449288E0 +#define M_SQRTPI 1.77245385090551602729817 #define M_LN2LO 1.9082149292705877000E-10 #define M_LN2HI 6.9314718036912381649E-1 -#define M_SQRT3 1.73205080756887719000 +#define M_SQRT3 1.73205080756887729353 #define M_IVLN10 0.43429448190325182765 /* 1 / log(10) */ #define M_LOG2_E _M_LN2 -#define M_INVLN2 1.4426950408889633870E0 /* 1 / log(2) */ +#define M_INVLN2 1.4426950408889634074E0 /* 1 / log(2) */ /* Global control over fdlibm error handling. */ Regards, Denis Excoffier. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple