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: 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 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: <54AF405C.6020609@davea.name> <87a91s1kh4.fsf@elektro.pacujo.net> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On 01/09/2015 02:37 AM, Chris Angelico wrote: > On Fri, Jan 9, 2015 at 6:28 PM, Marko Rauhamaa wrote: >> Devin Jeanpierre : >> >>> 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