示例#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)))
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)))