static/js/ari.js
/**
 * Calculate the combination of choosing m iterms from n iterms.
 * @function comb
 * @param {number} n - the input integer
 * @param {number} m - the input integer of elements taken
 * @return {number} the combination of n choose m
 */
Calculate the combination of choosing m iterms from n iterms.
@function comb
@param {number} n - the input integer
@param {number} m - the input integer of elements taken
@return {number} the combination of n choose m
Calculate the combination of choosing m iterms from n iterms . @function comb @param { number } n - the input integer @param { number } m - the input integer of elements taken @return { number } the combination of n choose m
function comb(n, m) {
  if (!Number.isInteger(n) || (m != undefined && !Number.isInteger(m))) {
    return 0;
  }
  return factorial(n, n - m + 1) / factorial(m);
}
function comb ( n , m ) { if ( ! Number . isInteger ( n ) || ( m != undefined && ! Number . isInteger ( m ) ) ) { return 0 ; } return factorial ( n , n - m + 1 ) / factorial ( m ) ; }
Calculate the combination of choosing m iterms from n iterms.
Calculate the combination of choosing m iterms from n iterms .