phaser/v3/src/math/Bernstein.js

9 lines
166 B
JavaScript
Raw Normal View History

var Factorial = require('./Factorial');
var Bernstein = function (n, i)
{
return Factorial(n) / Factorial(i) / Factorial(n - i);
};
module.exports = Bernstein;