555 Commits

Author SHA1 Message Date
jos
ce6f29788c Publish v6.2.0 2019-08-28 16:07:35 +02:00
jos
718b93b2b4 Create unit aliases bit and byte 2019-08-28 15:41:39 +02:00
Waseem Yusuf
c0e87c4b71 Make combinationsWithRep.js more efficient (#1602)
* 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
2019-08-28 15:10:24 +02:00
Harry Sarson
4cfef3ac34 fix no-case-declarations lint 2019-08-21 10:09:10 +01:00
Harry Sarson
e0adfb3e37 Ignore use of template literals in normal strings for latex
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.
2019-08-21 10:09:10 +01:00
Harry Sarson
b6a42c032d run standard --fix 2019-08-21 10:09:10 +01:00
jos
c17464d592 Publish v6.1.0 2019-08-17 21:58:35 +02:00
Waseem Yusuf
4cee37232f Added a combinationsWithRep function to calculate combinations with repitition (#1588)
* 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`
2019-08-15 11:35:51 +02:00
jos
294515f600 Publish v6.0.4 2019-08-05 21:28:48 +02:00
jos
d8a4f3a00a Update to standard@13.0.2 2019-07-20 13:46:31 +02:00
jos
dac78eaa61 Publish v6.0.3 2019-07-07 11:02:47 +02:00
jos
deb7c05b53 Fix #1550: nested user defined function not receiving variables of an outer user defined function 2019-07-07 10:56:01 +02:00
jos
8d3b79bf59 Publish v6.0.2 2019-06-11 20:59:02 +02:00
jos
c147d54435 Fix not being able to set configuration after disabling function import 2019-06-11 20:40:07 +02:00
jos
7aed291dc6 Publish v6.0.1 2019-06-09 20:46:08 +02:00
jos
5e329838a3 Publish v6.0.0 🎉 2019-06-08 20:00:42 +02:00
jos
aa89c83251 Publish v6.0.0-beta.3 2019-06-05 12:09:58 +02:00
jos
35fc780d2a Refactor import to first flatten the functions and then import them, allowing to import dependency collections 2019-06-05 10:57:48 +02:00
jos
d7dc838419 Simplification in import 2019-06-03 20:09:07 +02:00
jos
41efed79d3 Fix #1473: remove 'use strict' in every file 2019-05-26 20:21:18 +02:00
jos
fc66aa5bb5 Expose function factory via mathjs instance 2019-05-26 15:48:18 +02:00
jos
f54599a701 Fix #1530: apply rounding first and lowerExp and upperExp second when formatting a number 2019-05-25 15:51:33 +02:00
Eric Mansfield
c08188b8ed Updated physical constants to 2019 recommended values (#1529) 2019-05-25 14:48:37 +02:00
jos
859cac81a1 Merged function core and create into one function create 2019-05-22 21:20:56 +02:00
Vlad Levitskiy
538823386a deleted decibel unit (#1524) 2019-05-22 17:06:19 +02:00
jos
20f82df057 Disable failing test, cleanup logging and temporary npm script 2019-05-22 14:06:33 +02:00
jos
e5048a8001 Allow math.import(all). Dropped support for renaming factory functions 2019-05-22 13:49:56 +02:00
jos
9af5206a88 Make matrix dependency requried again for subset. Make IndexNodes dependencies explicit. Disable subset in number implementation for now 2019-05-22 11:08:12 +02:00
jos
b52c4ca595 Publish v6.0.0-beta.2 2019-05-21 20:23:51 +02:00
jos
a602a38340 Updated docs for v6 2019-05-20 21:42:49 +02:00
Vlad Levitskiy
3516731ff6 Fixed tonne and candela units, added bel and dB (#1518)
* fixed tonne and candel units, added bel and dB

* fixed code style
2019-05-20 20:41:10 +02:00
jos
28e33bb89b Merge remote-tracking branch 'origin/v5' into develop
# Conflicts:
#	package-lock.json
#	package.json
2019-05-17 19:44:25 +02:00
jos
0a6aded52a Fix #1512: bug in format notation engineering 2019-05-16 21:51:13 +02:00
jos
80385325d8 Fix derivative and simplify not working in numbers version 2019-05-15 21:45:43 +02:00
jos
c8b02fb9f2 Make matrix dependency optional for now in subset (WIP) 2019-05-15 21:25:44 +02:00
jos
bd2e68e3ab cleanup and reorganize factoriesNumber.js 2019-05-15 18:05:12 +02:00
jos
3e553e1d11 Remove dependency on matrix of function random 2019-05-15 17:54:39 +02:00
jos
2350159a51 Remove deprecation on toTex function properties 2019-05-15 11:38:34 +02:00
jos
da5ede046a Move recreateOnConfigChange into the factories meta data 2019-05-15 11:23:39 +02:00
jos
6b6ae1383c Dropped fake BigNumber support from function erf 2019-05-15 10:54:02 +02:00
jos
52dfafe5be Use mathWithTransform instead of math where needed 2019-05-15 10:29:27 +02:00
jos
ab1b83a2f6 Remove generated files from repo, make tests independent from generated files 2019-05-12 15:14:13 +02:00
jos
df4b334be7 Updated decimal.js. Remove node 6 and add node 12 to travis. Publish v5.10.0 2019-05-08 21:51:51 +02:00
jos
c0a11b3d88 Auto generate impureFunctionsAny files 2019-05-08 11:33:51 +02:00
jos
8162f0c2bb Automatically generate functionsAny and functionsNumber 2019-05-08 10:19:08 +02:00
jos
b0af4fa2b0 Move typeChecks and readonly config in separate files 2019-05-04 19:36:48 +02:00
jos
302afe9cc7 Fix a typo 2019-05-04 19:26:51 +02:00
jos
cc740b39be Move snapshot code into /src to have it transpiled 2019-05-04 15:17:15 +02:00
jos
47e1adcd0e Dynamically generate the expected snapshot structure based on the factories 2019-05-04 14:39:30 +02:00
jos
b4f2eb005e Merge remote-tracking branch 'origin/fix/1428' into develop
# Conflicts:
#	HISTORY.md
#	src/function/algebra/simplify.js
2019-05-04 10:07:39 +02:00