Re: [ast-users] A real number arithmetic issue

2014-07-03 Thread Janis Papanagnou
users@lists.research.att.com Date: Fri, 27 Jun 2014 10:58:28 +0200 Subject: Re: [ast-users] A real number arithmetic issue Yes, indeed, four years is obviously too old. :-) I downloaded the binary from http://www2.research.att.com/sw/download/ and can confirm your results from the test case. Just wondered tha

Re: [ast-users] A real number arithmetic issue

2014-06-27 Thread Janis Papanagnou
ux.i386-64); is above download link still valid? - I noticed you are using a 2014 version. Thanks! Date: Thu, 26 Jun 2014 14:48:27 -0400 Subject: Re: [ast-users] A real number arithmetic issue From: dgk...@gmail.com To: janis_papanag...@hotmail.com; ast-users@lists.research.att.com I suspect th

Re: [ast-users] A real number arithmetic issue

2014-06-26 Thread David Korn
I suspect that this is because you are running a very old ksh93. Here is what I get on ubuntu linux x86_63.13.0-30-generic4 release . $ print $(( log(2.171828) )) 0.775569209249095711 $ print $(( log(200.0) / log(2.171828) )) 18.7071090052317417 $ print $(( log(200.0) / log(2) )) 20.9315

[ast-users] A real number arithmetic issue

2014-06-25 Thread Janis Papanagnou
I've just noticed something strange with real number arithmetic in ksh. The problem: It seems that the fractional part in a division is interpreted as integer. $ print $(( log(2.171828) )) 0.775569209249095711 $ print $(( log(200.0) / log(2.171828) )) ksh: log(200.0) / log(2.171828) : di