mathjs 10.0.1 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HISTORY.md +10 -0
- package/docs/reference/constants.md +1 -1
- package/lib/browser/math.js +6 -6
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/entry/dependenciesAny/dependenciesIntersect.generated.js +6 -0
- package/lib/cjs/entry/pureFunctionsAny.generated.js +2 -0
- package/lib/cjs/function/algebra/simplify.js +3 -0
- package/lib/cjs/function/arithmetic/round.js +2 -2
- package/lib/cjs/function/geometry/intersect.js +12 -13
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/type/matrix/SparseMatrix.js +19 -15
- package/lib/cjs/type/unit/Unit.js +2 -2
- package/lib/cjs/utils/number.js +1 -1
- package/lib/cjs/utils/snapshot.js +2 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/entry/dependenciesAny/dependenciesIntersect.generated.js +4 -0
- package/lib/esm/entry/pureFunctionsAny.generated.js +2 -0
- package/lib/esm/function/algebra/simplify.js +3 -0
- package/lib/esm/function/arithmetic/round.js +2 -2
- package/lib/esm/function/geometry/intersect.js +12 -12
- package/lib/esm/type/matrix/SparseMatrix.js +19 -15
- package/lib/esm/type/unit/Unit.js +2 -2
- package/lib/esm/utils/number.js +1 -1
- package/lib/esm/utils/snapshot.js +2 -2
- package/lib/esm/version.js +1 -1
- package/package.json +12 -12
package/HISTORY.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# History
|
2
2
|
|
3
|
+
# 2021-12-29, version 10.0.2
|
4
|
+
|
5
|
+
- Fix #2156: simplify expressions like `-1 / (-x)` to `1/x`. Thanks @ony3000.
|
6
|
+
- Fix #2363: remove a redundant part of the regex to split a number.
|
7
|
+
- Fix #2291: add support for fractions in function `intersect`.
|
8
|
+
Thanks @thetazero.
|
9
|
+
- Fix #2358: bug in `SparseMatrix` when replacing a subset of a matrix with
|
10
|
+
a non-consecutive index. Thanks @Al-0.
|
11
|
+
|
12
|
+
|
3
13
|
# 2021-12-22, version 10.0.1
|
4
14
|
|
5
15
|
- Fix #1681: function `gamma` giving inaccurate complex results in some cases.
|
@@ -5,7 +5,7 @@ Math.js contains the following constants.
|
|
5
5
|
Constant | Description | Value
|
6
6
|
--------------- | ----------- | -----
|
7
7
|
`e`, `E` | Euler's number, the base of the natural logarithm. | 2.718281828459045
|
8
|
-
`i` | Imaginary unit, defined as i*i
|
8
|
+
`i` | Imaginary unit, defined as `i * i = -1`. A complex number is described as `a + b * i`, where a is the real part, and b is the imaginary part. | `sqrt(-1)`
|
9
9
|
`Infinity` | Infinity, a number which is larger than the maximum number that can be handled by a floating point number. | `Infinity`
|
10
10
|
`LN2` | Returns the natural logarithm of 2. | `0.6931471805599453`
|
11
11
|
`LN10` | Returns the natural logarithm of 10. | `2.302585092994046`
|