mathjs 3.1.0 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mathjs might be problematic. Click here for more details.

Files changed (45) hide show
  1. package/HISTORY.md +34 -1
  2. package/dist/math.js +614 -500
  3. package/dist/math.map +1 -1
  4. package/dist/math.min.js +17 -17
  5. package/docs/expressions/customization.md +1 -0
  6. package/docs/reference/functions/format.md +12 -5
  7. package/docs/reference/functions/log10.md +1 -1
  8. package/docs/reference/functions.md +1 -1
  9. package/lib/expression/node/FunctionNode.js +7 -6
  10. package/lib/expression/node/OperatorNode.js +4 -4
  11. package/lib/expression/parse.js +42 -20
  12. package/lib/function/arithmetic/cbrt.js +32 -32
  13. package/lib/function/arithmetic/log10.js +12 -2
  14. package/lib/function/arithmetic/nthRoot.js +2 -2
  15. package/lib/function/statistics/max.js +7 -2
  16. package/lib/function/statistics/mean.js +7 -2
  17. package/lib/function/statistics/median.js +8 -2
  18. package/lib/function/statistics/min.js +7 -2
  19. package/lib/function/statistics/mode.js +3 -3
  20. package/lib/function/statistics/prod.js +2 -2
  21. package/lib/function/statistics/std.js +2 -2
  22. package/lib/function/statistics/sum.js +2 -2
  23. package/lib/function/statistics/var.js +2 -2
  24. package/lib/function/string/format.js +12 -5
  25. package/lib/function/trigonometry/acosh.js +11 -1
  26. package/lib/function/trigonometry/asec.js +1 -1
  27. package/lib/function/trigonometry/asinh.js +1 -1
  28. package/lib/function/trigonometry/atanh.js +11 -1
  29. package/lib/function/trigonometry/cosh.js +2 -2
  30. package/lib/function/trigonometry/sinh.js +3 -7
  31. package/lib/function/trigonometry/tanh.js +2 -2
  32. package/lib/type/unit/Unit.js +3 -0
  33. package/lib/utils/collection/containsCollections.js +18 -0
  34. package/lib/utils/number.js +1 -1
  35. package/lib/utils/types.js +10 -0
  36. package/lib/version.js +1 -1
  37. package/package.json +1 -1
  38. package/test/expression/node/FunctionNode.test.js +12 -0
  39. package/test/expression/parse.test.js +24 -3
  40. package/test/function/arithmetic/nthRoot.test.js +10 -0
  41. package/test/function/statistics/max.test.js +5 -0
  42. package/test/function/statistics/mean.test.js +5 -0
  43. package/test/function/statistics/median.test.js +5 -0
  44. package/test/function/statistics/min.test.js +5 -0
  45. package/test/function/trigonometry/sinh.test.js +41 -30
package/HISTORY.md CHANGED
@@ -1,6 +1,39 @@
1
1
  # History
2
2
 
3
3
 
4
+ ## 2016-04-03, version 3.1.4
5
+
6
+ - Using ES6 Math functions like `Math.sinh`, `Math.cbrt`, `Math.sign`, etc when
7
+ available.
8
+ - Fixed #631: unit aliases `weeks`, `months`, and `years` where missing.
9
+ - Fixed #632: problem with escaped backslashes at the end of strings.
10
+ - Fixed #635: `Node.toString` options where not passed to function arguments.
11
+ - Fixed #629: expression parser throws an error when passing a number with
12
+ decimal exponent instead of parsing them as implicit multiplication.
13
+ - Fixed #484, #555: inaccuracy of `math.sinh` for values between -1 and 1.
14
+ - Fixed #625: Unit `in` (`inch`) not always working due to ambiguity with
15
+ the operator `a in b` (alias of `a to b`).
16
+
17
+
18
+ ## 2016-03-24, version 3.1.3
19
+
20
+ - Fix broken bundle.
21
+
22
+
23
+ ## 2016-03-24, version 3.1.2
24
+
25
+ - Fix broken npm release.
26
+
27
+
28
+ ## 2016-03-24, version 3.1.1
29
+
30
+ - Fixed #621: a bug in parsing implicit multiplications like `(2)(3)+4`.
31
+ - Fixed #623: `nthRoot` of zero with a negative root returned `0` instead of
32
+ `Infinity`.
33
+ - Throw an error when functions `min`, `max`, `mean`, or `median` are invoked
34
+ with multiple matrices as arguments (see #598).
35
+
36
+
4
37
  ## 2016-03-19, version 3.1.0
5
38
 
6
39
  - Hide multiplication operator by default when outputting `toTex` and `toString`
@@ -35,7 +68,7 @@
35
68
  extension in expression nodes:
36
69
  - Implemented new node `ObjectNode`.
37
70
  - Refactored `AssignmentNode`, `UpdateNode`, and `IndexNode` are refactored
38
- into `AccessNode`, `AssignmentNode`, and `IndexNode` having a different API.
71
+ into `AccessorNode`, `AssignmentNode`, and `IndexNode` having a different API.
39
72
  - Upgraded the used BigNumber library `decimal.js` to v5. Replaced the
40
73
  trigonometric functions of math.js with those provided in decimal.js v5.
41
74
  This can give slightly different behavior qua round-off errors.