2**2**2**2**2 wrong? Bug?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Jul 13 02:50:23 CEST 2007


En Thu, 12 Jul 2007 07:30:05 -0300, Nick Craig-Wood <nick at craig-wood.com>  
escribió:

> Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
>>  En Wed, 11 Jul 2007 16:39:17 -0300, Paul McGuire <ptmcg at austin.rr.com>
>>  escribió:
>>
>> > As was
>> > pointed out earlier, left-associativity with exponentiation is of
>> > little value, since (2**3)**2 is the same as 2**(3*2) or 2**6=64.
>>
>>  Just for curiosity: This helps to find the answer to the problem  
>> "Which is
>>  the largest number that can be written with only 3 digits?"
>>  Some people stop at 999, others try 99**9 and 9**99, and the winner is
>>  9**9**9, or:
>
> Actually I think 9**9E9 is bigger!

But you have to use an "E", or write "...x10⁹" in standard "paper-and-pen"  
mathematical notation. The idea was to use *only* digits.

-- 
Gabriel Genellina




More information about the Python-list mailing list