Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6812
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ethan@stoneleaf.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'instance,': 0.05; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'none:': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'def': 0.12; 'wrote:': 0.14; 'appreciated!': 0.16; 'okay,': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'received:gateway13.websitewelcome.com': 0.16; 'stop?': 0.16; 'subject:key': 0.16; 'subject:set': 0.16; 'header:In-Reply-To:1': 0.21; 'point,': 0.25; 'function': 0.25; 'carl': 0.30; 'define': 0.31; 'to:addr:python-list': 0.33; 'header:User-Agent:1': 0.35; 'using': 0.35; 'uses': 0.36; 'running': 0.37; 'floating': 0.37; 'pretty': 0.37; 'subject:: ': 0.38; 'skip:s 20': 0.39; 'to:addr:python.org': 0.39; 'your': 0.60; 'ever': 0.64; 'received:websitewelcome.com': 0.67; 'minutes': 0.67; 'square': 0.67 |
| Date | Wed, 01 Jun 2011 11:10:33 -0700 |
| From | Ethan Furman <ethan@stoneleaf.us> |
| User-Agent | Thunderbird 1.5.0.10 (Windows/20070221) |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: float("nan") in set or as key |
| References | <d63a1808-e704-4538-8541-9edeadab2135@glegroupsg2000goo.googlegroups.com> |
| In-Reply-To | <d63a1808-e704-4538-8541-9edeadab2135@glegroupsg2000goo.googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - gator410.hostgator.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - stoneleaf.us |
| X-BWhitelist | no |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Source-Sender | mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:3050 |
| X-Source-Auth | ethan+stoneleaf.us |
| X-Email-Count | 3 |
| X-Source-Cap | dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2376.1306950997.9059.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1306950997 news.xs4all.nl 49174 [::ffff:82.94.164.166]:55101 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:6812 |
Show key headers only | View raw
Carl Banks wrote: > For instance, say you are using an implementation that uses > floating point, and you define a function that uses Newton's > method to find a square root: > > def square_root(N,x=None): > if x is None: > x = N/2 > for i in range(100): > x = (x + N/x)/2 > return x > > It works pretty well on your floating-point implementation. > Now try running it on an implementation that uses fractions > by default.... > > (Seriously, try running this function with N as a Fraction.) Okay, will this thing ever stop? It's been running for 90 minutes now. Is it just incredibly slow? Any enlightenment appreciated! ~Ethan~
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: float("nan") in set or as key Carl Banks <pavlovevidence@gmail.com> - 2011-05-31 23:09 -0700
Re: float("nan") in set or as key "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2011-06-01 17:17 +0000
Re: float("nan") in set or as key Ethan Furman <ethan@stoneleaf.us> - 2011-06-01 11:10 -0700
Re: float("nan") in set or as key Chris Torek <nospam@torek.net> - 2011-06-01 18:29 +0000
csiph-web