예제 #1
0
def binomialCoefficient(n, i):
	#In case you are calculating first Bezier Element
	if i == 0:
		return 1
	return float(m.fak(n)/(m.fak(i)*m.fak(n-i)))
예제 #2
0
def binomialCoefficient(n, k):
	return (m.fak(n)/(m.fak(k)*m.fak(n-k)))
예제 #3
0
def binomialCoefficient(n, k):
    return (m.fak(n) / (m.fak(k) * m.fak(n - k)))