A set of functions to deal with analytical formulae.
Helper to calculate all the combinations of the list given.