def LogBinomialCoef(n, k):
 return (((n * math.log(n)) - (k * math.log(k))) - ((n - k) * math.log((n - k))))

def LogBinomialCoef ( n , k ) : return ( ( ( n * math . log ( n ) ) - ( k * math . log ( k ) ) ) - ( ( n - k ) * math . log ( ( n - k ) ) ) )
computes the log of the binomial coefficient .