Deutsch English Français Italiano |
<tusvt2$1i19$1@cabale.usenet-fr.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!.POSTED!not-for-mail From: Olivier Miakinen <om+news@miakinen.net> Newsgroups: fr.sci.maths Subject: Re: 0!=1 ? Date: Wed, 15 Mar 2023 18:39:45 +0100 Organization: There's no cabale Lines: 31 Message-ID: <tusvt2$1i19$1@cabale.usenet-fr.net> References: <turdrh$naru$1@dont-email.me> <tusrn5$v1lf$1@dont-email.me> <tuss29$1dfo$1@cabale.usenet-fr.net> <tusvf0$vs65$1@dont-email.me> NNTP-Posting-Host: pa-129.182.162.225.frcl.bull.fr Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: cabale.usenet-fr.net 1678901986 51241 129.182.162.225 (15 Mar 2023 17:39:46 GMT) X-Complaints-To: abuse@usenet-fr.net NNTP-Posting-Date: Wed, 15 Mar 2023 17:39:46 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.1 In-Reply-To: <tusvf0$vs65$1@dont-email.me> Bytes: 1735 Le 15/03/2023 à 18:32, Dominique a écrit : > Le 15/03/2023 à 17:34, Olivier Miakinen a écrit : > >> $ python >> from math import factorial >> factorial(5) >> 120 >> factorial(0) >> 1 > > Factorial : et hop, une fonction que je ne connaissais pas :) À vrai dire moi non plus. Mais je me suis dit qu'il serait étonnant qu'elle n'existe pas, et aussi que le module math serait le plus approprié pour l'y trouver : <https://docs.python.org/3/library/math.html>. D'ailleurs on y trouve aussi une confirmation de ce dont parlait Michel, la fonction gamma (Γ) : $ python from math import gamma gamma(6) 120.0 gamma(1) 1.0 -- Olivier Miakinen