probability distribution function in python

Tawee 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