Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83410
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.040 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; '[0,': 0.09; 'used.': 0.09; 'jan': 0.12; '1e-100': 0.16; 'arbitrarily': 0.16; 'defined,': 0.16; 'expert,': 0.16; 'formula': 0.16; 'nan': 0.16; 'precision,': 0.16; 'zero,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'mathematical': 0.24; 'values': 0.27; 'header:In- Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'am,': 0.29; "i'm": 0.30; '(on': 0.31; 'constant': 0.31; 'subject:numbers': 0.31; 'subject:other': 0.31; 'this.': 0.32; 'quite': 0.32; 'fri,': 0.33; 'could': 0.34; 'equal': 0.35; 'but': 0.35; 'example,': 0.37; 'being': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'then,': 0.60; 'such': 0.63; 'choose': 0.64; 'within': 0.65; 'between': 0.67; 'close': 0.67; 'received:74.208': 0.68; '2015': 0.84 |
| Date | Fri, 09 Jan 2015 02:49:27 -0500 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Decimals and other numbers |
| References | <CABicbJK-5izGtet8BsS1Yqx+6AHMX7gLU4zYjjt5jULJXNVipA@mail.gmail.com> <54AF405C.6020609@davea.name> <mailman.17501.1420772593.18130.python-list@python.org> <87a91s1kh4.fsf@elektro.pacujo.net> <CAPTjJmrhZYw9vBhN6TUMuqFCL48SMNgSAYhAi5u27R4HWaDmUg@mail.gmail.com> |
| In-Reply-To | <CAPTjJmrhZYw9vBhN6TUMuqFCL48SMNgSAYhAi5u27R4HWaDmUg@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:iBHowEgLdTBMoN8CPTqBilt2jlH003AgcQx/c99zmf2 ODygVjeyUejkDiErXIffClE18jqRADRQ+9IkMTsSMNyMXPP2LU QTE4zX337Y7qaX2Y8KG4QgDFx6Oqjy6NVS0HxWDU14iI2defYR vDIw3cTp3fTLAMsxCkB5dXrfVk+oxMyY8z5f5xkQZ27Walh4OH HTwCqOTDwEtAUKIR6794nmWNfyJSQCKZ/D9JxalTrFayfSDeOD hCDW3BfoUvx1kdJrH/p4qvdMqhbXpEM2MNpar/N970wax255re a9DqGqGsiGLIker2FpJmrdxcRXEy7pqpS0WgFVtqfdTfWHqH/k 7kKbV8fXw03XR8YN0xh4= |
| X-UI-Out-Filterresults | notjunk:1; |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17510.1420789780.18130.python-list@python.org> (permalink) |
| Lines | 47 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1420789780 news.xs4all.nl 2903 [2001:888:2000:d::a6]:47558 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:83410 |
Show key headers only | View raw
On 01/09/2015 02:37 AM, Chris Angelico wrote: > On Fri, Jan 9, 2015 at 6:28 PM, Marko Rauhamaa <marko@pacujo.net> wrote: >> Devin Jeanpierre <jeanpierreda@gmail.com>: >> >>> If 0**0 is defined, it must be 1. >> >> You can "justify" any value a within [0, 1]. For example, choose >> >> y(a, x) = log(a, x) >> >> Then, >> >> lim y(a, x) = 0 >> x -> 0+ >> >> and: >> >> lim[x -> 0+] x**y(a, x) = a >> >> For example, >> >> >>> a = 0.5 >> >>> x = 1e-100 >> >>> y = math.log(a, x) >> >>> y >> 0.0030102999566398118 >> >>> x**y >> 0.5 > > I'm not a mathematical expert, so I don't quite 'get' this. How does > this justify 0**0 being equal to 0.5? > > I know how to justify 0 and 1, and NaN (on the basis that both 0 and 1 > can be justified). I don't follow how other values can be used. Roughly speaking, the idea is to have a relationship between x and y, such that even though they each get arbitrarily close to zero, the formula x**y is a constant 5. So he plugged in 1e-100. But if you plugged in 1e-500000000 and could handle the precision, the result x**y would still be 0.5 -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-08 19:02 -0800
Re: Decimals and other numbers Marko Rauhamaa <marko@pacujo.net> - 2015-01-09 09:28 +0200
Re: Decimals and other numbers Chris Angelico <rosuav@gmail.com> - 2015-01-09 18:37 +1100
Re: Decimals and other numbers Marko Rauhamaa <marko@pacujo.net> - 2015-01-09 11:31 +0200
Re: Decimals and other numbers Dave Angel <davea@davea.name> - 2015-01-09 02:49 -0500
Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-09 00:51 -0800
Re: Decimals and other numbers Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-01-09 11:07 +0200
[OT] x**y == y**x Peter Pearson <pkpearson@nowhere.invalid> - 2015-01-09 17:46 +0000
Re: [OT] x**y == y**x Marko Rauhamaa <marko@pacujo.net> - 2015-01-09 23:41 +0200
Re: [OT] x**y == y**x Peter Pearson <pkpearson@nowhere.invalid> - 2015-01-10 16:57 +0000
Re: Decimals and other numbers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 19:49 +1100
Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-09 00:58 -0800
Re: Decimals and other numbers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 21:20 +1100
Re: Decimals and other numbers Chris Angelico <rosuav@gmail.com> - 2015-01-09 21:39 +1100
Re: Decimals and other numbers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 23:24 +1100
Re: Decimals and other numbers Chris Angelico <rosuav@gmail.com> - 2015-01-09 23:34 +1100
Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-09 17:25 -0800
Re: Decimals and other numbers Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-01-10 16:08 +1300
Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-09 01:11 -0800
Re: Decimals and other numbers Marko Rauhamaa <marko@pacujo.net> - 2015-01-09 11:34 +0200
Re: Decimals and other numbers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-09 22:03 +1100
Re: Decimals and other numbers Marko Rauhamaa <marko@pacujo.net> - 2015-01-09 11:44 +0200
Re: Decimals and other numbers Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2015-01-10 16:05 +1300
Re: Decimals and other numbers Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-09 19:57 -0800
csiph-web