binomialcoef

Calculates the binomial coefficient (in how many ways can k be chosen from n). Depending on input, function can return scalar, vector or matrix

Arguments

  1. Integer n
  2. Integer k

Output

Integer number of combinations

Examples

binomialcoef