mathjs 10.1.0 → 10.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +9 -0
- package/docs/reference/functions/simplify.md +8 -5
- package/lib/browser/math.js +5 -5
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/function/algebra/simplify.js +42 -20
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/function/algebra/simplify.js +42 -20
- package/lib/esm/version.js +1 -1
- package/package.json +12 -12
- package/types/index.d.ts +4 -4
package/HISTORY.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# History
|
2
2
|
|
3
|
+
# 2022-02-02, version 10.1.1
|
4
|
+
|
5
|
+
- Improvements and fixes in function `simplify`, thanks @gwhitney:
|
6
|
+
- Fix #2393: regression bug in `simplify('2-(x+1)')`.
|
7
|
+
- Ad option `consoleDebug` to `simplify` to see what is going on.
|
8
|
+
- Fix TypeScript definition of `ConfigOptions`, which was missing option
|
9
|
+
`predictable`.
|
10
|
+
|
11
|
+
|
3
12
|
# 2022-01-15, version 10.1.0
|
4
13
|
|
5
14
|
- Implemented function `invmod`, see #2368, #1744. Thanks @thetazero.
|
@@ -37,11 +37,14 @@ For more details on the theory, see:
|
|
37
37
|
- [Symbolic computation - Simplification (Wikipedia)](https://en.wikipedia.org/wiki/Symbolic_computation#Simplification)
|
38
38
|
|
39
39
|
An optional `options` argument can be passed as last argument of `simplify`.
|
40
|
-
|
41
|
-
- `
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
Currently available options (defaults in parentheses):
|
41
|
+
- `consoleDebug` (false): whether to write the expression being simplified
|
42
|
+
and any changes to it, along with the rule responsible, to console
|
43
|
+
- `exactFractions` (true): whether to try to convert all constants to
|
44
|
+
exact rational numbers.
|
45
|
+
- `fractionsLimit` (10000): when `exactFractions` is true, constants will
|
46
|
+
be expressed as fractions only when both numerator and denominator
|
47
|
+
are smaller than `fractionsLimit`.
|
45
48
|
|
46
49
|
|
47
50
|
## Syntax
|