Paul Rubin wrote:
> Robert Kern <[EMAIL PROTECTED]> writes:
>>    G = int(ceil(log(U) / log(1.0 - p)))
> 
> I usually owuld write that as int(ceil(log(U, 1.0 - p))).

Knock yourself out. I was cribbing from my C implementation in numpy.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to