* Implemented the `multicombinations` function
* Write unit tests for `multicombinations` function
* Integrate the `multicombinations` function throughout codebase
1. Include multicombinations factory function in factoriesAny.js and factoriesNumber.js
2. Write embedded docs for multicombinations
3. Added latex support
4. Refer to multicombinations in the "see also"-section of related functions
* Change name from `multichoose` to `combinationsWithRep`
* Update combinationsWithRep.js
Instead of always cancelling `n-1 factorial` from the denominator and ignoring `k factorial`, added a conditional to cancel the the larger of the two, therefore further reducing redundant calculations.
* Revert "Update combinationsWithRep.js"
This reverts commit efef6d3bd4c381aa12f00869a7624a622268805c.
* Update combinationsWithRep.js
Instead of always cancelling `n-1 factorial` from the denominator and ignoring `k factorial`, added a conditional to cancel the the larger of the two, therefore further reducing redundant calculations.
* Add one more test for the case: k > n-1
* Refactor single for-loop into two separate ones
Mathjs latex uses same syntax as template literals, thus we need to
ignore some otherwise helpful rules that look for template literal
syntax in normal strings.
* only one job for browser tests on travis
Only run local tests in pull requests and only run browser tests
when running in a branch.
Should speed up ci runs slightly.
* let travis do default caching
See: https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#caching-with-npm
* do not do anything fancy with git
Simpler config is better provided it does not slow down ci.
* Revert "do not do anything fancy with git" - to time ci
This reverts commit 543dc3a6ed52004b22f41d0a999819dfa24742e8.
* Revert "Revert "do not do anything fancy with git" - to time ci" -
enough of this hokie cokie
This reverts commit 718c3514ea2413bc2cd9d29a26b20e658f852ae2.
* Implemented the `multicombinations` function
* Write unit tests for `multicombinations` function
* Integrate the `multicombinations` function throughout codebase
1. Include multicombinations factory function in factoriesAny.js and factoriesNumber.js
2. Write embedded docs for multicombinations
3. Added latex support
4. Refer to multicombinations in the "see also"-section of related functions
* Change name from `multichoose` to `combinationsWithRep`
* chore(package): update @babel/core to version 7.5.5
Closes#1575
* chore(package): update @babel/preset-env to version 7.5.5
Closes#1575
* chore(package): update @babel/register to version 7.5.5
Closes#1575
* chore(package): update lockfile package-lock.json