Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-03 Thread K. Frank
Hello Kai and Everybody! A couple of comments about whether to use special cases for pow (x, y) for things like y = 0.5 or y = integer... On Tue, May 3, 2011 at 6:58 AM, Kai Tietz wrote: > 2011/5/3 Peter Rockett : >> On 03/05/2011 10:11, Kai Tietz wrote: >> ... >> The reason is not introducing a

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-03 Thread Kai Tietz
2011/5/3 Peter Rockett : > On 03/05/2011 10:11, Kai Tietz wrote: >> 2011/5/3 JonY: >>> On 5/3/2011 04:05, Kai Tietz wrote: 2011/5/2 Peter Rockett: > On 02/05/2011 17:00, Keith Marshall wrote: >> On 02/05/11 16:30, Charles Wilson wrote: So, we would like sqrt (x) and pow (x, 0.

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-03 Thread Kai Tietz
2011/5/3 JonY : > On 5/3/2011 04:05, Kai Tietz wrote: >> 2011/5/2 Peter Rockett : >>> On 02/05/2011 17:00, Keith Marshall wrote: On 02/05/11 16:30, Charles Wilson wrote: >> So, we would like sqrt (x) and pow (x, 0.5) to agree. >>> >>> The point below about off-topic diversions into precisi

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-02 Thread JonY
On 5/3/2011 04:05, Kai Tietz wrote: > 2011/5/2 Peter Rockett : >> On 02/05/2011 17:00, Keith Marshall wrote: >>> On 02/05/11 16:30, Charles Wilson wrote: > So, we would like sqrt (x) and pow (x, 0.5) to agree. >> >> The point below about off-topic diversions into precision is valid but >> can I

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-01 Thread James K Beard
-- From: K. Frank [mailto:kfrank2...@gmail.com] Sent: Sunday, May 01, 2011 11:29 AM To: mingw64; MinGW Users List Subject: Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me. Hello Jon! On Sun, May 1, 2011 at 10:17 AM, JonY wrote: > On 5/1/2011 22:03, James K Beard

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-01 Thread K. Frank
Hello Jon! On Sun, May 1, 2011 at 10:17 AM, JonY wrote: > On 5/1/2011 22:03, James K Beard wrote: >> Now, about that math library problem... >> ... >> AFAIK, all currently produced FPUs are IEEE compliant.  Are there some out >> there that are still bucking the inevitable? > > -- Putting mingw li

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-01 Thread James K Beard
, 2011 10:18 AM To: mingw-w64-public@lists.sourceforge.net Cc: MinGW Users List Subject: Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me. On 5/1/2011 22:03, James K Beard wrote: > Now, about that math library problem -- it seems to me that asking > full ma

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-01 Thread JonY
On 5/1/2011 22:03, James K Beard wrote: > Now, about that math library problem -- it seems to me that asking full > mantissa accuracy and agreement for 32-bit and 64-bit floating point is > reasonable. Differences between FPUs makes full mantissa accuracy and > agreement at 80 bits a bit of a ques

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-05-01 Thread JonY
On 5/1/2011 19:01, Peter Rockett wrote: > On 01/05/11 08:43, Keith Marshall wrote: >> On 30/04/11 23:14, Kai Tietz wrote: >>> long double (80-bit): >>> digits for mantissa:64 >>> digit:18, min exp:-16381 (-4931 10th) >>> max exp: 16384 (4932 10th) >>> Epsilon:1.0842e-019 >>> >>> Which means

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread K. Frank
Hello Bob and Kai! On Sat, Apr 30, 2011 at 5:41 PM, Kai Tietz wrote: > 2011/4/30 Bob Delaney : >> >> On Apr 30, 2011, at 10:15 AM, K. Frank wrote: >> >>> I get: >>> >>>   C:\>gcc -o pow_test pow_test.c >>> >>>   C:\>pow_test >>>   2.20017764^3.10008882 = 11.521534126785718

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread Kai Tietz
2011/4/30 Kai Tietz : > 2011/4/30 K. Frank : >> Hello Kai! >> >> On Sat, Apr 30, 2011 at 5:51 AM, Kai Tietz wrote: >>> 2011/4/30 Kai Tietz : 2011/4/30 Greg Chicares : > On 2011-04-29 19:55Z, K. Frank wrote: >> >> By the way, could someone confirm that mingw does use msvcrt for >>>

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread Kai Tietz
2011/4/30 K. Frank : > Hello Kai! > > On Sat, Apr 30, 2011 at 5:51 AM, Kai Tietz wrote: >> 2011/4/30 Kai Tietz : >>> 2011/4/30 Greg Chicares : On 2011-04-29 19:55Z, K. Frank wrote: > > By the way, could someone confirm that mingw does use msvcrt for > sqrt and pow? http:

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread K. Frank
Hello Kai! On Sat, Apr 30, 2011 at 5:51 AM, Kai Tietz wrote: > 2011/4/30 Kai Tietz : >> 2011/4/30 Greg Chicares : >>> On 2011-04-29 19:55Z, K. Frank wrote: By the way, could someone confirm that mingw does use msvcrt for sqrt and pow? >>> >>> http://cygwin.com/cgi-bin/cvsweb.cgi/sr

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread James K Beard
her common workstation processors. Yet we are looking at software transcendental function libraries. James K Beard -Original Message- From: Greg Chicares [mailto:gchica...@sbcglobal.net] Sent: Friday, April 29, 2011 7:38 PM To: MinGW Users List Cc: mingw64 Subject: Re: [Mingw-w64-public] [Mingw-u

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread Kai Tietz
2011/4/30 Kai Tietz : > 2011/4/30 Greg Chicares : >> On 2011-04-29 19:55Z, K. Frank wrote: >>> >>> By the way, could someone confirm that mingw does use msvcrt for >>> sqrt and pow? >> >> http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/math/?cvsroot=src >> >> Looks to me like sqrt(dou

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread Kai Tietz
2011/4/30 Greg Chicares : > On 2011-04-29 19:55Z, K. Frank wrote: >> >> By the way, could someone confirm that mingw does use msvcrt for >> sqrt and pow? > > http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/math/?cvsroot=src > > Looks to me like sqrt(double) calls into msvcrt. But pow(

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-30 Thread Greg Chicares
On 2011-04-29 19:55Z, K. Frank wrote: > > By the way, could someone confirm that mingw does use msvcrt for > sqrt and pow? http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/math/?cvsroot=src Looks to me like sqrt(double) calls into msvcrt. But pow() is a different story. Danny implem

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-29 Thread James K Beard
. James K Beard -Original Message- From: K. Frank [mailto:kfrank2...@gmail.com] Sent: Friday, April 29, 2011 8:51 PM To: mingw64; MinGW Users List Subject: Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me. Hi Greg! On Fri, Apr 29, 2011 at 7:38 PM, Greg Ch

Re: [Mingw-w64-public] [Mingw-users] Math library discrepancies that surprised me.

2011-04-29 Thread K. Frank
Hi Greg! On Fri, Apr 29, 2011 at 7:38 PM, Greg Chicares wrote: > On 2011-04-29 19:55Z, K. Frank wrote: >> >> By the way, could someone confirm that mingw does use msvcrt for >> sqrt and pow? > > http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/math/?cvsroot=src > > Looks to me like s