Re: [Python] zero alla zero

2016-08-06 Per discussione Marco Beri
Il 06 ago 2016 7:23 PM, "Marco Giusti" ha scritto: > > On Sat, Aug 06 2016, Marco Beri wrote: > >Il 06 ago 2016 5:21 PM, "Simone Federici" ha scritto: > >> > >> http://mathforum.org/dr.math/faq/faq.0.to.0.power.html > > > >"Consensus has recently been built around setting the value of 0^0 = 1". >

Re: [Python] zero alla zero

2016-08-06 Per discussione Marco Giusti
On Sat, Aug 06 2016, Marco Beri wrote: >Il 06 ago 2016 5:21 PM, "Simone Federici" ha scritto: >> >> http://mathforum.org/dr.math/faq/faq.0.to.0.power.html > >"Consensus has recently been built around setting the value of 0^0 = 1". > >E con questo fine del discorso :-) > >Più divertente fare questa

Re: [Python] zero alla zero

2016-08-06 Per discussione alessandro medici
Più che una convenzione di python è una regola della matematica: qualsiasi numero elevato alla zero ha come valore 1. My cent... :-) Il 06/ago/2016 10:40, "Daniele Zambelli" ha scritto: > Mi è crollato un mito! > > >>> pow(0, 0) > 1 > >>> 0**0 > 1 > > Perché Python fa queste cose? > > ... > > P

Re: [Python] zero alla zero

2016-08-06 Per discussione Carlos Catucci
2016-08-06 10:40 GMT+02:00 Daniele Zambelli : > Mi è crollato un mito! http://stackoverflow.com/questions/14414430/why-0-0-equals-1-in-python http://stackoverflow.com/questions/25623841/strange-behaviour-when-raising-numbers-to-the-power-of-zero-in-python Il mito rimane in piedi ;) Carlos --

[Python] zero alla zero

2016-08-06 Per discussione Daniele Zambelli
Mi è crollato un mito! >>> pow(0, 0) 1 >>> 0**0 1 Perché Python fa queste cose? ... Poi cercando un po' in Internet ho visto che nell'informatica questa "convenzione" è molto diffusa. Mah... Buona estate. -- Daniele www.fugamatematica.blogspot.com giusto! nel verso forse è per