Reputation: 109
I faced a problem while writing a code in Matlab that calculates sum of products of all possible combinations of n numbers taken from a vector with length m. It is similar to the task that you will drag exactly n different balls out of the bag with m balls (order doesn't matter).
example: m = 5, n = 3 then i need to calculate sum of 10 summands
thanks for your time
Upvotes: 1
Views: 145