[Python-es] cubo perfecto

marmolro marmolro en gmail.com
Lun Mar 15 15:38:36 CET 2010


perdón, se me fue la mano je je:

math.pow(27,1./3).is_integer()




2010/3/15 marmolro <marmolro en gmail.com>

> Buenas,
>
> con la función inversa básicamente :) :
>
> >>> math.log(27,3).is_integer()
> True
>
>
> 2010/3/15 Pavel Daniel Lopez Castillo <pdlopez en uci.cu>
>
>> Necesito una funcion que me permita conocer si un numero es un cubo
>> perfecto ejemplo
>>
>> cubos perfectos: 1,8,27,64 etc...
>>
>>
>>
>>
>> _______________________________________________
>> Python-es mailing list
>> Python-es en python.org
>> http://mail.python.org/mailman/listinfo/python-es
>> FAQ: http://python-es-faq.wikidot.com/
>>
>>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20100315/43a5d8ab/attachment.html>


Más información sobre la lista de distribución Python-es