Mathematical operations
maTH library started as a library of mathematical operations made from scratch. Here's a list of all operations the library supports:
Function
Description
Source
int combinations(int n, int k)
How many unique combinations are there with a population of n, whilst selecting k items.
int combinationsWithRep(int n, int k)
How many combinations are there with a population of n, whilst selecting k items (items have repetition).
Last updated