A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/115304.html below:

probability distribution function in python

probability distribution function in python probability distribution function in pythonTawee Laoitichote tawee199 at ksc.th.com
Tue Apr 10 11:30:48 EDT 2001
Dear Tomasz,

You have to calculate n! , any way. This will cause integer overflow. But
any way if you cheat the def factorial to be fp as follows;

def fac(n):
   if n == 1. then
       return 1.
   return n*fac(n-1.)

It works, but I don't like this way. Smalltalk can perform this calculation
very fast without losing its significance.

tawee



More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4