Re: 4 hundred quadrillonth?

2009-05-28 Thread Aahz
In article 4a1da210$0$90265$14726...@news.sunsite.dk, Mark Dickinson dicki...@gmail.com wrote: This is getting rather long. Perhaps I should put the above comments together into a 'post-PEP' document. Yes, you should. Better explanation of floating point benefits everyone when widely

Re: 4 hundred quadrillonth?

2009-05-27 Thread Luis Zarrabeitia
On Thursday 21 May 2009 08:50:48 pm R. David Murray wrote: In py3k Eric Smith and Mark Dickinson have implemented Gay's floating point algorithm for Python so that the shortest repr that will round trip correctly is what is used as the floating point repr Little question: what was the

Re: 4 hundred quadrillonth?

2009-05-27 Thread Ned Deily
In article 200905271107.21750.ky...@uh.cu, Luis Zarrabeitia ky...@uh.cu wrote: On Thursday 21 May 2009 08:50:48 pm R. David Murray wrote: In py3k Eric Smith and Mark Dickinson have implemented Gay's floating point algorithm for Python so that the shortest repr that will round trip

Re: 4 hundred quadrillonth?

2009-05-27 Thread Luis Zarrabeitia
On Wednesday 27 May 2009 02:33:38 pm Ned Deily wrote: In article 200905271107.21750.ky...@uh.cu, Little question: what was the goal of such a change? (is there a pep for me to read?) See discussion starting here: http://article.gmane.org/gmane.comp.python.devel/103191/ Thank you. --

Re: 4 hundred quadrillonth?

2009-05-27 Thread Mark Dickinson
Luis Zarrabeitia ky...@uh.cu wrote: On Thursday 21 May 2009 08:50:48 pm R. David Murray wrote: In py3k Eric Smith and Mark Dickinson have implemented Gay's floating point algorithm for Python so that the shortest repr that will round trip correctly is what is used as the floating point

Re: 4 hundred quadrillonth?

2009-05-26 Thread Scott David Daniels
Steven D'Aprano wrote: On Mon, 25 May 2009 16:21:19 +1200, Lawrence D'Oliveiro wrote: ... (0) Opposite is not well-defined unless you have a dichotomy. In the ... (1/3) Why do you jump to the conclusion that pi=3 implies that only ... (1/2) If you get rid of real numbers, then obviously you

Re: 4 hundred quadrillonth?

2009-05-26 Thread Steven D'Aprano
On Mon, 25 May 2009 23:10:02 -0700, Scott David Daniels wrote: Steven D'Aprano wrote: On Mon, 25 May 2009 16:21:19 +1200, Lawrence D'Oliveiro wrote: ... (0) Opposite is not well-defined unless you have a dichotomy. In the ... (1/3) Why do you jump to the conclusion that pi=3 implies that only

Re: 4 hundred quadrillonth?

2009-05-26 Thread Lawrence D'Oliveiro
In message pan.2009.05.25.05.22...@remove.this.cybersource.com.au, Steven D'Aprano wrote: On Sun, 24 May 2009 22:47:51 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: .. Gregory Chaitin among others has been trying to

Re: 4 hundred quadrillonth?

2009-05-26 Thread Steven D'Aprano
On Wed, 27 May 2009 11:33:51 +1200, Lawrence D'Oliveiro wrote: Chaitin is trying to use only computable numbers. Pi is computable, as is e, sqrt(2), the Feigenbaum constant, and many others familiar to us all. Trouble is, they only make up 0% of the reals. It's the other 100% he wants to

Re: 4 hundred quadrillonth?

2009-05-25 Thread Erik Max Francis
Dennis Lee Bieber wrote: On Mon, 25 May 2009 16:21:19 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: Interesting kind of mindset, that assumes that the opposite of real must be integer or a subset thereof... No, but

Re: Re: 4 hundred quadrillonth?

2009-05-25 Thread Dave Angel
Lawrence D'Oliveiro wrote: In message mailman.525.1242941777.8015.python-l...@python.org, Christian Heimes wrote: Welcome to IEEE 754 floating point land! :) It used to be worse in the days before IEEE 754 became widespread. Anybody remember a certain Prof William Kahan from

Re: Re: 4 hundred quadrillonth?

2009-05-25 Thread Lawrence D'Oliveiro
In message mailman.702.1243237468.8015.python-l...@python.org, Dave Angel wrote: Lawrence D'Oliveiro wrote: Anybody remember a certain Prof William Kahan from Berkeley ... I remember the professor. He was responsible for large parts of the Intel 8087 specification, which later got

Re: 4 hundred quadrillonth?

2009-05-25 Thread Hendrik van Rooyen
Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 24 May 2009 22:47:51 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: As for exactitude in physics, Gregory Chaitin among others has been trying to rework physics

Re: 4 hundred quadrillonth?

2009-05-24 Thread Lawrence D'Oliveiro
In message mailman.525.1242941777.8015.python-l...@python.org, Christian Heimes wrote: Welcome to IEEE 754 floating point land! :) It used to be worse in the days before IEEE 754 became widespread. Anybody remember a certain Prof William Kahan from Berkeley, and the foreword he wrote to the

Re: 4 hundred quadrillonth?

2009-05-24 Thread Lawrence D'Oliveiro
In message 7b986ef0-d118-4e0c- afef-3c6385a4c...@b7g2000pre.googlegroups.com, rustom wrote: For a mathematician there are no inexact numbers; for a physicist no exact ones. On the contrary, mathematics have worked out a precise theory of inexactness. As for exactitude in physics, Gregory

Re: 4 hundred quadrillonth?

2009-05-24 Thread Dave Angel
Dennis Lee Bieber wrote: On Sun, 24 May 2009 22:47:51 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: As for exactitude in physics, Gregory Chaitin among others has been trying to rework physics to get rid of real numbers

Re: 4 hundred quadrillonth?

2009-05-24 Thread Erik Max Francis
Lawrence D'Oliveiro wrote: In message mailman.525.1242941777.8015.python-l...@python.org, Christian Heimes wrote: Welcome to IEEE 754 floating point land! :) It used to be worse in the days before IEEE 754 became widespread. Anybody remember a certain Prof William Kahan from Berkeley, and

About Standard Numerics (was Re: 4 hundred quadrillonth?)

2009-05-24 Thread Lawrence D'Oliveiro
In message 9mwdntfmpprjqotxnz2dnuvz_vadn...@giganews.com, Erik Max Francis wrote: Lawrence D'Oliveiro wrote: In message mailman.525.1242941777.8015.python-l...@python.org, Christian Heimes wrote: Welcome to IEEE 754 floating point land! :) It used to be worse in the days before IEEE

Re: 4 hundred quadrillonth?

2009-05-24 Thread David Robinow
On Sun, May 24, 2009 at 7:51 PM, Dave Angel da...@ieee.org wrote:        By decreeing that the value of PI is 3? Only in Ohio. Please, we're smarter than that in Ohio. In fact, while the Indiana legislature was learning about PI, we had guys inventing the airplane.

Re: 4 hundred quadrillonth?

2009-05-24 Thread Lawrence D'Oliveiro
In message mailman.674.1243192904.8015.python-l...@python.org, Dennis Lee Bieber wrote: On Sun, 24 May 2009 22:47:51 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in gmane.comp.python.general: As for exactitude in physics, Gregory Chaitin among others

Re: 4 hundred quadrillonth?

2009-05-24 Thread Steven D'Aprano
On Mon, 25 May 2009 16:21:19 +1200, Lawrence D'Oliveiro wrote: In message mailman.674.1243192904.8015.python-l...@python.org, Dennis Lee Bieber wrote: On Sun, 24 May 2009 22:47:51 +1200, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand declaimed the following in

Re: 4 hundred quadrillonth?

2009-05-22 Thread Andre Engels
On Thu, May 21, 2009 at 11:05 PM, seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. So what's up with that 4 at the end.

Re: 4 hundred quadrillonth?

2009-05-22 Thread rustom
On May 22, 6:56 am, AggieDan04 danb...@yahoo.com wrote: The error in this example is roughly equivalent to the width of a red blood cell compared to the distance between Earth and the sun.  There are very few applications that need more accuracy than that. For a mathematician there are no

Re: 4 hundred quadrillonth?

2009-05-22 Thread Steven D'Aprano
On Thu, 21 May 2009 18:30:17 -0700, Gary Herron wrote: In py3k Eric Smith and Mark Dickinson have implemented Gay's floating point algorithm for Python so that the shortest repr that will round trip correctly is what is used as the floating point repr --David Which won't change

Re: 4 hundred quadrillonth?

2009-05-22 Thread Steven D'Aprano
On Thu, 21 May 2009 18:56:08 -0700, AggieDan04 wrote: The error in this example is roughly equivalent to the width of a red blood cell compared to the distance between Earth and the sun. There are very few applications that need more accuracy than that. Which is fine if the error *remains*

Re: 4 hundred quadrillonth?

2009-05-22 Thread Mark Dickinson
On May 22, 3:28 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Thu, 21 May 2009 18:30:17 -0700, Gary Herron wrote: In py3k Eric Smith and Mark Dickinson have implemented Gay's floating point algorithm for Python so that the shortest repr that will round trip correctly

Re: 4 hundred quadrillonth?

2009-05-22 Thread Steven D'Aprano
On Fri, 22 May 2009 13:05:59 -0700, Mark Dickinson wrote: With a sigh of relief, Yay! We now will have lots of subtle floating point bugs that people can't see! Ignorance is bliss and what you don't know about floating point can't hurt you! Why do you think this change will give rise to

Re: 4 hundred quadrillonth?

2009-05-21 Thread MRAB
seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. So what's up with that 4 at the end. It bothers me. Read

Re: 4 hundred quadrillonth?

2009-05-21 Thread Christian Heimes
seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. So what's up with that 4 at the end. It bothers me. Welcome to IEEE

Re: 4 hundred quadrillonth?

2009-05-21 Thread Carl Banks
On May 21, 2:05 pm, seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. That would depend on how you define the numbers and

Re: 4 hundred quadrillonth?

2009-05-21 Thread Chris Rebert
On Thu, May 21, 2009 at 2:53 PM, Carl Banks pavlovevide...@gmail.com wrote: On May 21, 2:05 pm, seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0

Re: 4 hundred quadrillonth?

2009-05-21 Thread Chris Rebert
On Thu, May 21, 2009 at 2:53 PM, Carl Banks pavlovevide...@gmail.com wrote: On May 21, 2:05 pm, seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0

Re: 4 hundred quadrillonth?

2009-05-21 Thread norseman
seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. So what's up with that 4 at the end. It bothers me.

Re: 4 hundred quadrillonth?

2009-05-21 Thread Grant Edwards
On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. So what's up

Re: 4 hundred quadrillonth?

2009-05-21 Thread Carl Banks
On May 21, 3:45 pm, norseman norse...@hughes.net wrote: Beyond that - just fix the money at 2, gas pumps at 3 and the sine/cosine at 8 and let it ride. :) Or just use print. print 4.0/5.0 0.8 Since interactive prompt is usually used by programmers who are inspecting values it makes a little

Re: 4 hundred quadrillonth?

2009-05-21 Thread MRAB
Grant Edwards wrote: On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no

Re: 4 hundred quadrillonth?

2009-05-21 Thread Gary Herron
MRAB wrote: Grant Edwards wrote: On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8.

Re: 4 hundred quadrillonth?

2009-05-21 Thread Rob Clewley
On Thu, May 21, 2009 at 8:19 PM, Gary Herron gher...@islandtraining.com wrote: MRAB wrote: Grant Edwards wrote: On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very satisfying, and I am hoping

Re: 4 hundred quadrillonth?

2009-05-21 Thread R. David Murray
Gary Herron gher...@islandtraining.com wrote: MRAB wrote: Grant Edwards wrote: On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to

Re: 4 hundred quadrillonth?

2009-05-21 Thread Gary Herron
R. David Murray wrote: Gary Herron gher...@islandtraining.com wrote: MRAB wrote: Grant Edwards wrote: On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory Python book is not very

Re: 4 hundred quadrillonth?

2009-05-21 Thread AggieDan04
On May 21, 5:45 pm, norseman norse...@hughes.net wrote: seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the following to me: 4 / 5.0 0.80004 4 / 5.0 is 0.8. No more, no less. So what's up

Re: 4 hundred quadrillonth?

2009-05-21 Thread AggieDan04
On May 21, 5:36 pm, Chris Rebert c...@rebertia.com wrote: On Thu, May 21, 2009 at 2:53 PM, Carl Banks pavlovevide...@gmail.com wrote: On May 21, 2:05 pm, seanm...@gmail.com wrote: The explaination in my introductory Python book is not very satisfying, and I am hoping someone can explain the

Re: 4 hundred quadrillonth?

2009-05-21 Thread Dave Angel
Rob Clewley wrote: On Thu, May 21, 2009 at 8:19 PM, Gary Herron gher...@islandtraining.com wrote: MRAB wrote: Grant Edwards wrote: On 2009-05-21, Christian Heimes li...@cheimes.de wrote: seanm...@gmail.com schrieb: The explaination in my introductory