mathjs 10.0.2 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/HISTORY.md +11 -0
  2. package/NOTICE +1 -1
  3. package/README.md +10 -2
  4. package/bin/cli.js +1 -1
  5. package/docs/expressions/syntax.md +1 -1
  6. package/docs/reference/functions/invmod.md +41 -0
  7. package/docs/reference/functions.md +1 -0
  8. package/lib/browser/math.js +6 -6
  9. package/lib/browser/math.js.map +1 -1
  10. package/lib/cjs/entry/dependenciesAny/dependenciesInvmod.generated.js +41 -0
  11. package/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js +15 -0
  12. package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +15 -0
  13. package/lib/cjs/entry/dependenciesAny.generated.js +8 -0
  14. package/lib/cjs/entry/dependenciesNumber/dependenciesRationalize.generated.js +15 -0
  15. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +15 -0
  16. package/lib/cjs/entry/impureFunctionsAny.generated.js +11 -0
  17. package/lib/cjs/entry/impureFunctionsNumber.generated.js +10 -0
  18. package/lib/cjs/entry/pureFunctionsAny.generated.js +14 -2
  19. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +6 -1
  20. package/lib/cjs/expression/embeddedDocs/function/arithmetic/invmod.js +15 -0
  21. package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +1 -1
  22. package/lib/cjs/factoriesAny.js +8 -0
  23. package/lib/cjs/function/algebra/rationalize.js +18 -4
  24. package/lib/cjs/function/algebra/simplify/simplifyConstant.js +223 -29
  25. package/lib/cjs/function/algebra/simplify/simplifyCore.js +34 -6
  26. package/lib/cjs/function/algebra/simplify.js +70 -22
  27. package/lib/cjs/function/arithmetic/invmod.js +73 -0
  28. package/lib/cjs/header.js +3 -3
  29. package/lib/cjs/version.js +1 -1
  30. package/lib/esm/entry/dependenciesAny/dependenciesInvmod.generated.js +24 -0
  31. package/lib/esm/entry/dependenciesAny/dependenciesRationalize.generated.js +10 -0
  32. package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +10 -0
  33. package/lib/esm/entry/dependenciesAny.generated.js +1 -0
  34. package/lib/esm/entry/dependenciesNumber/dependenciesRationalize.generated.js +10 -0
  35. package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +10 -0
  36. package/lib/esm/entry/impureFunctionsAny.generated.js +12 -1
  37. package/lib/esm/entry/impureFunctionsNumber.generated.js +10 -0
  38. package/lib/esm/entry/pureFunctionsAny.generated.js +12 -1
  39. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +4 -1
  40. package/lib/esm/expression/embeddedDocs/function/arithmetic/invmod.js +8 -0
  41. package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +1 -1
  42. package/lib/esm/factoriesAny.js +1 -0
  43. package/lib/esm/function/algebra/rationalize.js +18 -4
  44. package/lib/esm/function/algebra/simplify/simplifyConstant.js +197 -29
  45. package/lib/esm/function/algebra/simplify/simplifyCore.js +35 -7
  46. package/lib/esm/function/algebra/simplify.js +70 -22
  47. package/lib/esm/function/arithmetic/invmod.js +57 -0
  48. package/lib/esm/header.js +1 -1
  49. package/lib/esm/version.js +1 -1
  50. package/package.json +2 -1
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.invmodDependencies = void 0;
7
+
8
+ var _dependenciesBigNumberClassGenerated = require("./dependenciesBigNumberClass.generated.js");
9
+
10
+ var _dependenciesAddGenerated = require("./dependenciesAdd.generated.js");
11
+
12
+ var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js");
13
+
14
+ var _dependenciesIsIntegerGenerated = require("./dependenciesIsInteger.generated.js");
15
+
16
+ var _dependenciesModGenerated = require("./dependenciesMod.generated.js");
17
+
18
+ var _dependenciesSmallerGenerated = require("./dependenciesSmaller.generated.js");
19
+
20
+ var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
21
+
22
+ var _dependenciesXgcdGenerated = require("./dependenciesXgcd.generated.js");
23
+
24
+ var _factoriesAny = require("../../factoriesAny.js");
25
+
26
+ /**
27
+ * THIS FILE IS AUTO-GENERATED
28
+ * DON'T MAKE CHANGES HERE
29
+ */
30
+ var invmodDependencies = {
31
+ BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,
32
+ addDependencies: _dependenciesAddGenerated.addDependencies,
33
+ equalDependencies: _dependenciesEqualGenerated.equalDependencies,
34
+ isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,
35
+ modDependencies: _dependenciesModGenerated.modDependencies,
36
+ smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,
37
+ typedDependencies: _dependenciesTypedGenerated.typedDependencies,
38
+ xgcdDependencies: _dependenciesXgcdGenerated.xgcdDependencies,
39
+ createInvmod: _factoriesAny.createInvmod
40
+ };
41
+ exports.invmodDependencies = invmodDependencies;
@@ -9,10 +9,18 @@ var _dependenciesBignumberGenerated = require("./dependenciesBignumber.generated
9
9
 
10
10
  var _dependenciesFractionGenerated = require("./dependenciesFraction.generated.js");
11
11
 
12
+ var _dependenciesAccessorNodeGenerated = require("./dependenciesAccessorNode.generated.js");
13
+
14
+ var _dependenciesArrayNodeGenerated = require("./dependenciesArrayNode.generated.js");
15
+
12
16
  var _dependenciesConstantNodeGenerated = require("./dependenciesConstantNode.generated.js");
13
17
 
14
18
  var _dependenciesFunctionNodeGenerated = require("./dependenciesFunctionNode.generated.js");
15
19
 
20
+ var _dependenciesIndexNodeGenerated = require("./dependenciesIndexNode.generated.js");
21
+
22
+ var _dependenciesObjectNodeGenerated = require("./dependenciesObjectNode.generated.js");
23
+
16
24
  var _dependenciesOperatorNodeGenerated = require("./dependenciesOperatorNode.generated.js");
17
25
 
18
26
  var _dependenciesParenthesisNodeGenerated = require("./dependenciesParenthesisNode.generated.js");
@@ -27,6 +35,8 @@ var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js");
27
35
 
28
36
  var _dependenciesIsZeroGenerated = require("./dependenciesIsZero.generated.js");
29
37
 
38
+ var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
39
+
30
40
  var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
31
41
 
32
42
  var _dependenciesParseGenerated = require("./dependenciesParse.generated.js");
@@ -48,8 +58,12 @@ var _factoriesAny = require("../../factoriesAny.js");
48
58
  var rationalizeDependencies = {
49
59
  bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,
50
60
  fractionDependencies: _dependenciesFractionGenerated.fractionDependencies,
61
+ AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,
62
+ ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,
51
63
  ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,
52
64
  FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,
65
+ IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,
66
+ ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,
53
67
  OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,
54
68
  ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,
55
69
  SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,
@@ -57,6 +71,7 @@ var rationalizeDependencies = {
57
71
  divideDependencies: _dependenciesDivideGenerated.divideDependencies,
58
72
  equalDependencies: _dependenciesEqualGenerated.equalDependencies,
59
73
  isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,
74
+ matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
60
75
  multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
61
76
  parseDependencies: _dependenciesParseGenerated.parseDependencies,
62
77
  powDependencies: _dependenciesPowGenerated.powDependencies,
@@ -9,10 +9,18 @@ var _dependenciesBignumberGenerated = require("./dependenciesBignumber.generated
9
9
 
10
10
  var _dependenciesFractionGenerated = require("./dependenciesFraction.generated.js");
11
11
 
12
+ var _dependenciesAccessorNodeGenerated = require("./dependenciesAccessorNode.generated.js");
13
+
14
+ var _dependenciesArrayNodeGenerated = require("./dependenciesArrayNode.generated.js");
15
+
12
16
  var _dependenciesConstantNodeGenerated = require("./dependenciesConstantNode.generated.js");
13
17
 
14
18
  var _dependenciesFunctionNodeGenerated = require("./dependenciesFunctionNode.generated.js");
15
19
 
20
+ var _dependenciesIndexNodeGenerated = require("./dependenciesIndexNode.generated.js");
21
+
22
+ var _dependenciesObjectNodeGenerated = require("./dependenciesObjectNode.generated.js");
23
+
16
24
  var _dependenciesOperatorNodeGenerated = require("./dependenciesOperatorNode.generated.js");
17
25
 
18
26
  var _dependenciesParenthesisNodeGenerated = require("./dependenciesParenthesisNode.generated.js");
@@ -27,6 +35,8 @@ var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js");
27
35
 
28
36
  var _dependenciesIsZeroGenerated = require("./dependenciesIsZero.generated.js");
29
37
 
38
+ var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
39
+
30
40
  var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
31
41
 
32
42
  var _dependenciesParseGenerated = require("./dependenciesParse.generated.js");
@@ -46,8 +56,12 @@ var _factoriesAny = require("../../factoriesAny.js");
46
56
  var simplifyDependencies = {
47
57
  bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,
48
58
  fractionDependencies: _dependenciesFractionGenerated.fractionDependencies,
59
+ AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,
60
+ ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,
49
61
  ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,
50
62
  FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,
63
+ IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,
64
+ ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,
51
65
  OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,
52
66
  ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,
53
67
  SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,
@@ -55,6 +69,7 @@ var simplifyDependencies = {
55
69
  divideDependencies: _dependenciesDivideGenerated.divideDependencies,
56
70
  equalDependencies: _dependenciesEqualGenerated.equalDependencies,
57
71
  isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,
72
+ matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
58
73
  multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
59
74
  parseDependencies: _dependenciesParseGenerated.parseDependencies,
60
75
  powDependencies: _dependenciesPowGenerated.powDependencies,
@@ -1023,6 +1023,12 @@ Object.defineProperty(exports, "inverseConductanceQuantumDependencies", {
1023
1023
  return _dependenciesInverseConductanceQuantumGenerated.inverseConductanceQuantumDependencies;
1024
1024
  }
1025
1025
  });
1026
+ Object.defineProperty(exports, "invmodDependencies", {
1027
+ enumerable: true,
1028
+ get: function get() {
1029
+ return _dependenciesInvmodGenerated.invmodDependencies;
1030
+ }
1031
+ });
1026
1032
  Object.defineProperty(exports, "isIntegerDependencies", {
1027
1033
  enumerable: true,
1028
1034
  get: function get() {
@@ -2300,6 +2306,8 @@ var _dependenciesInvGenerated = require("./dependenciesAny/dependenciesInv.gener
2300
2306
 
2301
2307
  var _dependenciesInverseConductanceQuantumGenerated = require("./dependenciesAny/dependenciesInverseConductanceQuantum.generated.js");
2302
2308
 
2309
+ var _dependenciesInvmodGenerated = require("./dependenciesAny/dependenciesInvmod.generated.js");
2310
+
2303
2311
  var _dependenciesIsIntegerGenerated = require("./dependenciesAny/dependenciesIsInteger.generated.js");
2304
2312
 
2305
2313
  var _dependenciesIsNaNGenerated = require("./dependenciesAny/dependenciesIsNaN.generated.js");
@@ -5,10 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.rationalizeDependencies = void 0;
7
7
 
8
+ var _dependenciesAccessorNodeGenerated = require("./dependenciesAccessorNode.generated.js");
9
+
10
+ var _dependenciesArrayNodeGenerated = require("./dependenciesArrayNode.generated.js");
11
+
8
12
  var _dependenciesConstantNodeGenerated = require("./dependenciesConstantNode.generated.js");
9
13
 
10
14
  var _dependenciesFunctionNodeGenerated = require("./dependenciesFunctionNode.generated.js");
11
15
 
16
+ var _dependenciesIndexNodeGenerated = require("./dependenciesIndexNode.generated.js");
17
+
18
+ var _dependenciesObjectNodeGenerated = require("./dependenciesObjectNode.generated.js");
19
+
12
20
  var _dependenciesOperatorNodeGenerated = require("./dependenciesOperatorNode.generated.js");
13
21
 
14
22
  var _dependenciesParenthesisNodeGenerated = require("./dependenciesParenthesisNode.generated.js");
@@ -23,6 +31,8 @@ var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js");
23
31
 
24
32
  var _dependenciesIsZeroGenerated = require("./dependenciesIsZero.generated.js");
25
33
 
34
+ var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
35
+
26
36
  var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
27
37
 
28
38
  var _dependenciesParseGenerated = require("./dependenciesParse.generated.js");
@@ -42,8 +52,12 @@ var _factoriesNumber = require("../../factoriesNumber.js");
42
52
  * DON'T MAKE CHANGES HERE
43
53
  */
44
54
  var rationalizeDependencies = {
55
+ AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,
56
+ ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,
45
57
  ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,
46
58
  FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,
59
+ IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,
60
+ ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,
47
61
  OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,
48
62
  ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,
49
63
  SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,
@@ -51,6 +65,7 @@ var rationalizeDependencies = {
51
65
  divideDependencies: _dependenciesDivideGenerated.divideDependencies,
52
66
  equalDependencies: _dependenciesEqualGenerated.equalDependencies,
53
67
  isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,
68
+ matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
54
69
  multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
55
70
  parseDependencies: _dependenciesParseGenerated.parseDependencies,
56
71
  powDependencies: _dependenciesPowGenerated.powDependencies,
@@ -5,10 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.simplifyDependencies = void 0;
7
7
 
8
+ var _dependenciesAccessorNodeGenerated = require("./dependenciesAccessorNode.generated.js");
9
+
10
+ var _dependenciesArrayNodeGenerated = require("./dependenciesArrayNode.generated.js");
11
+
8
12
  var _dependenciesConstantNodeGenerated = require("./dependenciesConstantNode.generated.js");
9
13
 
10
14
  var _dependenciesFunctionNodeGenerated = require("./dependenciesFunctionNode.generated.js");
11
15
 
16
+ var _dependenciesIndexNodeGenerated = require("./dependenciesIndexNode.generated.js");
17
+
18
+ var _dependenciesObjectNodeGenerated = require("./dependenciesObjectNode.generated.js");
19
+
12
20
  var _dependenciesOperatorNodeGenerated = require("./dependenciesOperatorNode.generated.js");
13
21
 
14
22
  var _dependenciesParenthesisNodeGenerated = require("./dependenciesParenthesisNode.generated.js");
@@ -23,6 +31,8 @@ var _dependenciesEqualGenerated = require("./dependenciesEqual.generated.js");
23
31
 
24
32
  var _dependenciesIsZeroGenerated = require("./dependenciesIsZero.generated.js");
25
33
 
34
+ var _dependenciesMatrixGenerated = require("./dependenciesMatrix.generated.js");
35
+
26
36
  var _dependenciesMultiplyGenerated = require("./dependenciesMultiply.generated.js");
27
37
 
28
38
  var _dependenciesParseGenerated = require("./dependenciesParse.generated.js");
@@ -40,8 +50,12 @@ var _factoriesNumber = require("../../factoriesNumber.js");
40
50
  * DON'T MAKE CHANGES HERE
41
51
  */
42
52
  var simplifyDependencies = {
53
+ AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,
54
+ ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,
43
55
  ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,
44
56
  FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,
57
+ IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,
58
+ ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,
45
59
  OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,
46
60
  ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,
47
61
  SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,
@@ -49,6 +63,7 @@ var simplifyDependencies = {
49
63
  divideDependencies: _dependenciesDivideGenerated.divideDependencies,
50
64
  equalDependencies: _dependenciesEqualGenerated.equalDependencies,
51
65
  isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,
66
+ matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,
52
67
  multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,
53
68
  parseDependencies: _dependenciesParseGenerated.parseDependencies,
54
69
  powDependencies: _dependenciesPowGenerated.powDependencies,
@@ -169,8 +169,12 @@ exports.parser = parser;
169
169
  var simplify = (0, _factoriesAny.createSimplify)({
170
170
  bignumber: _pureFunctionsAnyGenerated.bignumber,
171
171
  fraction: _pureFunctionsAnyGenerated.fraction,
172
+ AccessorNode: AccessorNode,
173
+ ArrayNode: ArrayNode,
172
174
  ConstantNode: ConstantNode,
173
175
  FunctionNode: FunctionNode,
176
+ IndexNode: IndexNode,
177
+ ObjectNode: ObjectNode,
174
178
  OperatorNode: OperatorNode,
175
179
  ParenthesisNode: ParenthesisNode,
176
180
  SymbolNode: SymbolNode,
@@ -180,6 +184,7 @@ var simplify = (0, _factoriesAny.createSimplify)({
180
184
  equal: _pureFunctionsAnyGenerated.equal,
181
185
  isZero: _pureFunctionsAnyGenerated.isZero,
182
186
  mathWithTransform: mathWithTransform,
187
+ matrix: _pureFunctionsAnyGenerated.matrix,
183
188
  multiply: _pureFunctionsAnyGenerated.multiply,
184
189
  parse: parse,
185
190
  pow: _pureFunctionsAnyGenerated.pow,
@@ -211,8 +216,12 @@ exports.help = help;
211
216
  var rationalize = (0, _factoriesAny.createRationalize)({
212
217
  bignumber: _pureFunctionsAnyGenerated.bignumber,
213
218
  fraction: _pureFunctionsAnyGenerated.fraction,
219
+ AccessorNode: AccessorNode,
220
+ ArrayNode: ArrayNode,
214
221
  ConstantNode: ConstantNode,
215
222
  FunctionNode: FunctionNode,
223
+ IndexNode: IndexNode,
224
+ ObjectNode: ObjectNode,
216
225
  OperatorNode: OperatorNode,
217
226
  ParenthesisNode: ParenthesisNode,
218
227
  SymbolNode: SymbolNode,
@@ -222,6 +231,7 @@ var rationalize = (0, _factoriesAny.createRationalize)({
222
231
  equal: _pureFunctionsAnyGenerated.equal,
223
232
  isZero: _pureFunctionsAnyGenerated.isZero,
224
233
  mathWithTransform: mathWithTransform,
234
+ matrix: _pureFunctionsAnyGenerated.matrix,
225
235
  multiply: _pureFunctionsAnyGenerated.multiply,
226
236
  parse: parse,
227
237
  pow: _pureFunctionsAnyGenerated.pow,
@@ -396,6 +406,7 @@ exports.rationalize = rationalize;
396
406
  equalText: _pureFunctionsAnyGenerated.equalText,
397
407
  floor: _pureFunctionsAnyGenerated.floor,
398
408
  identity: _pureFunctionsAnyGenerated.identity,
409
+ invmod: _pureFunctionsAnyGenerated.invmod,
399
410
  larger: _pureFunctionsAnyGenerated.larger,
400
411
  log: _pureFunctionsAnyGenerated.log,
401
412
  lsolveAll: _pureFunctionsAnyGenerated.lsolveAll,
@@ -143,8 +143,12 @@ var parse = (0, _factoriesNumber.createParse)({
143
143
  });
144
144
  exports.parse = parse;
145
145
  var simplify = (0, _factoriesNumber.createSimplify)({
146
+ AccessorNode: AccessorNode,
147
+ ArrayNode: ArrayNode,
146
148
  ConstantNode: ConstantNode,
147
149
  FunctionNode: FunctionNode,
150
+ IndexNode: IndexNode,
151
+ ObjectNode: ObjectNode,
148
152
  OperatorNode: OperatorNode,
149
153
  ParenthesisNode: ParenthesisNode,
150
154
  SymbolNode: SymbolNode,
@@ -154,6 +158,7 @@ var simplify = (0, _factoriesNumber.createSimplify)({
154
158
  equal: _pureFunctionsNumberGenerated.equal,
155
159
  isZero: _pureFunctionsNumberGenerated.isZero,
156
160
  mathWithTransform: mathWithTransform,
161
+ matrix: _pureFunctionsNumberGenerated.matrix,
157
162
  multiply: _pureFunctionsNumberGenerated.multiply,
158
163
  parse: parse,
159
164
  pow: _pureFunctionsNumberGenerated.pow,
@@ -195,8 +200,12 @@ var derivative = (0, _factoriesNumber.createDerivative)({
195
200
  });
196
201
  exports.derivative = derivative;
197
202
  var rationalize = (0, _factoriesNumber.createRationalize)({
203
+ AccessorNode: AccessorNode,
204
+ ArrayNode: ArrayNode,
198
205
  ConstantNode: ConstantNode,
199
206
  FunctionNode: FunctionNode,
207
+ IndexNode: IndexNode,
208
+ ObjectNode: ObjectNode,
200
209
  OperatorNode: OperatorNode,
201
210
  ParenthesisNode: ParenthesisNode,
202
211
  SymbolNode: SymbolNode,
@@ -206,6 +215,7 @@ var rationalize = (0, _factoriesNumber.createRationalize)({
206
215
  equal: _pureFunctionsNumberGenerated.equal,
207
216
  isZero: _pureFunctionsNumberGenerated.isZero,
208
217
  mathWithTransform: mathWithTransform,
218
+ matrix: _pureFunctionsNumberGenerated.matrix,
209
219
  multiply: _pureFunctionsNumberGenerated.multiply,
210
220
  parse: parse,
211
221
  pow: _pureFunctionsNumberGenerated.pow,
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.electricConstant = exports.eigs = exports.efimovFactor = exports.e = exports.dotPow = exports.dotMultiply = exports.dotDivide = exports.dot = exports.divideScalar = exports.divide = exports.distance = exports.diff = exports.diag = exports.deuteronMass = exports.det = exports.deepEqual = exports.cube = exports.ctranspose = exports.csch = exports.csc = exports.cross = exports.createUnit = exports.count = exports.coulomb = exports.coth = exports.cot = exports.cosh = exports.cos = exports.conj = exports.conductanceQuantum = exports.concat = exports.composition = exports.complex = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.column = exports.clone = exports.classicalElectronRadius = exports.ceil = exports.cbrt = exports.catalan = exports["boolean"] = exports.boltzmann = exports.bohrRadius = exports.bohrMagneton = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bin = exports.bignumber = exports.bellNumbers = exports.avogadro = exports.atomicMass = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = exports.arg = exports.apply = exports.and = exports.addScalar = exports.add = exports.acsch = exports.acsc = exports.acoth = exports.acot = exports.acosh = exports.acos = exports.abs = exports._true = exports._null = exports._false = exports._NaN = exports._Infinity = exports.Unit = exports.SparseMatrix = exports.Spa = exports.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.Matrix = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = exports.Index = exports.ImmutableDenseMatrix = exports.Fraction = exports.FibonacciHeap = exports.DenseMatrix = exports.Complex = exports.BigNumber = void 0;
7
- exports.planckConstant = exports.planckCharge = exports.pickRandom = exports.pi = exports.phi = exports.permutations = exports.partitionSelect = exports.or = exports.ones = exports.oct = exports.numeric = exports.number = exports.nuclearMagneton = exports.nthRoots = exports.nthRoot = exports.not = exports.norm = exports.neutronMass = exports.multiplyScalar = exports.multiply = exports.multinomial = exports.molarVolume = exports.molarPlanckConstant = exports.molarMassC12 = exports.molarMass = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrixFromRows = exports.matrixFromFunction = exports.matrixFromColumns = exports.matrix = exports.map = exports.magneticFluxQuantum = exports.magneticConstant = exports.mad = exports.lusolve = exports.lup = exports.lsolveAll = exports.lsolve = exports.loschmidt = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.kron = exports.klitzing = exports.kldivergence = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.inverseConductanceQuantum = exports.inv = exports.intersect = exports.index = exports.im = exports.identity = exports.i = exports.hypot = exports.hex = exports.hasNumericValue = exports.hartreeEnergy = exports.gravity = exports.gravitationConstant = exports.getMatrixDataType = exports.gcd = exports.gasConstant = exports.gamma = exports.fraction = exports.format = exports.forEach = exports.floor = exports.flatten = exports.fix = exports.firstRadiation = exports.fineStructure = exports.filter = exports.fermiCoupling = exports.faraday = exports.factorial = exports.expm1 = exports.expm = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.elementaryCharge = exports.electronMass = exports.electricConstant = exports.eigs = exports.efimovFactor = exports.e = exports.dotPow = exports.dotMultiply = exports.dotDivide = exports.dot = exports.divideScalar = exports.divide = exports.distance = exports.diff = exports.diag = exports.deuteronMass = exports.det = exports.deepEqual = exports.cube = exports.ctranspose = exports.csch = exports.csc = exports.cross = exports.createUnit = exports.count = exports.coulomb = exports.coth = exports.cot = exports.cosh = exports.cos = exports.conj = exports.conductanceQuantum = exports.concat = exports.composition = exports.complex = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.column = exports.clone = exports.classicalElectronRadius = exports.ceil = exports.cbrt = exports.catalan = exports["boolean"] = exports.boltzmann = exports.bohrRadius = exports.bohrMagneton = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bin = exports.bignumber = exports.bellNumbers = exports.avogadro = exports.atomicMass = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = exports.arg = exports.apply = exports.and = exports.addScalar = exports.add = exports.acsch = exports.acsc = exports.acoth = exports.acot = exports.acosh = exports.acos = exports.abs = exports._true = exports._null = exports._false = exports._NaN = exports._Infinity = exports.Unit = exports.SparseMatrix = exports.Spa = exports.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.Matrix = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = exports.Index = exports.ImmutableDenseMatrix = exports.Fraction = exports.FibonacciHeap = exports.DenseMatrix = exports.Complex = exports.BigNumber = void 0;
8
- exports.zeros = exports.xor = exports.xgcd = exports.wienDisplacement = exports.weakMixingAngle = exports.version = exports.variance = exports.vacuumImpedance = exports.usolveAll = exports.usolve = exports.unit = exports.unequal = exports.unaryPlus = exports.unaryMinus = exports.typed = exports.typeOf = exports.transpose = exports.trace = exports.to = exports.thomsonCrossSection = exports.tau = exports.tanh = exports.tan = exports.sum = exports.subtract = exports.subset = exports.string = exports.stirlingS2 = exports.stefanBoltzmann = exports.std = exports.squeeze = exports.square = exports.sqrtm = exports.sqrt = exports.splitUnit = exports.speedOfLight = exports.sparse = exports.sort = exports.smallerEq = exports.smaller = exports.slu = exports.size = exports.sinh = exports.sin = exports.sign = exports.setUnion = exports.setSymDifference = exports.setSize = exports.setPowerset = exports.setMultiplicity = exports.setIsSubset = exports.setIntersect = exports.setDistinct = exports.setDifference = exports.setCartesian = exports.secondRadiation = exports.sech = exports.sec = exports.sackurTetrode = exports.rydberg = exports.row = exports.round = exports.rotationMatrix = exports.rotate = exports.rightLogShift = exports.rightArithShift = exports.resize = exports.reshape = exports.replacer = exports.reducedPlanckConstant = exports.re = exports.range = exports.randomInt = exports.random = exports.quantumOfCirculation = exports.quantileSeq = exports.qr = exports.protonMass = exports.prod = exports.print = exports.pow = exports.planckTime = exports.planckTemperature = exports.planckMass = exports.planckLength = exports.planckConstant = exports.planckCharge = exports.pickRandom = exports.pi = exports.phi = exports.permutations = exports.partitionSelect = exports.or = exports.ones = exports.oct = exports.numeric = exports.number = exports.nuclearMagneton = exports.nthRoots = exports.nthRoot = exports.not = exports.norm = exports.neutronMass = exports.multiplyScalar = exports.multiply = exports.multinomial = exports.molarVolume = exports.molarPlanckConstant = exports.molarMassC12 = exports.molarMass = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrixFromRows = exports.matrixFromFunction = exports.matrixFromColumns = exports.matrix = exports.map = exports.magneticFluxQuantum = exports.magneticConstant = exports.mad = exports.lusolve = exports.lup = exports.lsolveAll = exports.lsolve = exports.loschmidt = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.kron = exports.klitzing = exports.kldivergence = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.inverseConductanceQuantum = exports.inv = exports.intersect = exports.index = exports.im = exports.identity = exports.i = exports.hypot = exports.hex = exports.hasNumericValue = exports.hartreeEnergy = exports.gravity = exports.gravitationConstant = exports.getMatrixDataType = exports.gcd = exports.gasConstant = exports.gamma = exports.fraction = exports.format = exports.forEach = exports.floor = exports.flatten = exports.fix = exports.firstRadiation = exports.fineStructure = exports.filter = exports.fermiCoupling = exports.faraday = exports.factorial = exports.expm1 = exports.expm = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.elementaryCharge = exports.electronMass = exports.electricConstant = exports.eigs = exports.efimovFactor = exports.e = exports.dotPow = exports.dotMultiply = exports.dotDivide = exports.dot = exports.divideScalar = exports.divide = exports.distance = exports.diff = exports.diag = exports.deuteronMass = exports.det = exports.deepEqual = exports.cube = exports.ctranspose = exports.csch = exports.csc = exports.cross = exports.createUnit = exports.count = exports.coulomb = exports.coth = exports.cot = exports.cosh = exports.cos = exports.conj = exports.conductanceQuantum = exports.concat = exports.composition = exports.complex = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.column = exports.clone = exports.classicalElectronRadius = exports.ceil = exports.cbrt = exports.catalan = exports["boolean"] = exports.boltzmann = exports.bohrRadius = exports.bohrMagneton = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bin = exports.bignumber = exports.bellNumbers = exports.avogadro = exports.atomicMass = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = exports.arg = exports.apply = exports.and = exports.addScalar = exports.add = exports.acsch = exports.acsc = exports.acoth = exports.acot = exports.acosh = exports.acos = exports.abs = exports._true = exports._null = exports._false = exports._NaN = exports._Infinity = exports.Unit = exports.SparseMatrix = exports.Spa = exports.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.Matrix = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = exports.Index = exports.ImmutableDenseMatrix = exports.Fraction = exports.FibonacciHeap = exports.DenseMatrix = exports.Complex = exports.BigNumber = void 0;
7
+ exports.planckCharge = exports.pickRandom = exports.pi = exports.phi = exports.permutations = exports.partitionSelect = exports.or = exports.ones = exports.oct = exports.numeric = exports.number = exports.nuclearMagneton = exports.nthRoots = exports.nthRoot = exports.not = exports.norm = exports.neutronMass = exports.multiplyScalar = exports.multiply = exports.multinomial = exports.molarVolume = exports.molarPlanckConstant = exports.molarMassC12 = exports.molarMass = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrixFromRows = exports.matrixFromFunction = exports.matrixFromColumns = exports.matrix = exports.map = exports.magneticFluxQuantum = exports.magneticConstant = exports.mad = exports.lusolve = exports.lup = exports.lsolveAll = exports.lsolve = exports.loschmidt = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.kron = exports.klitzing = exports.kldivergence = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.invmod = exports.inverseConductanceQuantum = exports.inv = exports.intersect = exports.index = exports.im = exports.identity = exports.i = exports.hypot = exports.hex = exports.hasNumericValue = exports.hartreeEnergy = exports.gravity = exports.gravitationConstant = exports.getMatrixDataType = exports.gcd = exports.gasConstant = exports.gamma = exports.fraction = exports.format = exports.forEach = exports.floor = exports.flatten = exports.fix = exports.firstRadiation = exports.fineStructure = exports.filter = exports.fermiCoupling = exports.faraday = exports.factorial = exports.expm1 = exports.expm = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.elementaryCharge = exports.electronMass = exports.electricConstant = exports.eigs = exports.efimovFactor = exports.e = exports.dotPow = exports.dotMultiply = exports.dotDivide = exports.dot = exports.divideScalar = exports.divide = exports.distance = exports.diff = exports.diag = exports.deuteronMass = exports.det = exports.deepEqual = exports.cube = exports.ctranspose = exports.csch = exports.csc = exports.cross = exports.createUnit = exports.count = exports.coulomb = exports.coth = exports.cot = exports.cosh = exports.cos = exports.conj = exports.conductanceQuantum = exports.concat = exports.composition = exports.complex = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.column = exports.clone = exports.classicalElectronRadius = exports.ceil = exports.cbrt = exports.catalan = exports["boolean"] = exports.boltzmann = exports.bohrRadius = exports.bohrMagneton = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bin = exports.bignumber = exports.bellNumbers = exports.avogadro = exports.atomicMass = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = exports.arg = exports.apply = exports.and = exports.addScalar = exports.add = exports.acsch = exports.acsc = exports.acoth = exports.acot = exports.acosh = exports.acos = exports.abs = exports._true = exports._null = exports._false = exports._NaN = exports._Infinity = exports.Unit = exports.SparseMatrix = exports.Spa = exports.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.Matrix = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = exports.Index = exports.ImmutableDenseMatrix = exports.Fraction = exports.FibonacciHeap = exports.DenseMatrix = exports.Complex = exports.BigNumber = void 0;
8
+ exports.zeros = exports.xor = exports.xgcd = exports.wienDisplacement = exports.weakMixingAngle = exports.version = exports.variance = exports.vacuumImpedance = exports.usolveAll = exports.usolve = exports.unit = exports.unequal = exports.unaryPlus = exports.unaryMinus = exports.typed = exports.typeOf = exports.transpose = exports.trace = exports.to = exports.thomsonCrossSection = exports.tau = exports.tanh = exports.tan = exports.sum = exports.subtract = exports.subset = exports.string = exports.stirlingS2 = exports.stefanBoltzmann = exports.std = exports.squeeze = exports.square = exports.sqrtm = exports.sqrt = exports.splitUnit = exports.speedOfLight = exports.sparse = exports.sort = exports.smallerEq = exports.smaller = exports.slu = exports.size = exports.sinh = exports.sin = exports.sign = exports.setUnion = exports.setSymDifference = exports.setSize = exports.setPowerset = exports.setMultiplicity = exports.setIsSubset = exports.setIntersect = exports.setDistinct = exports.setDifference = exports.setCartesian = exports.secondRadiation = exports.sech = exports.sec = exports.sackurTetrode = exports.rydberg = exports.row = exports.round = exports.rotationMatrix = exports.rotate = exports.rightLogShift = exports.rightArithShift = exports.resize = exports.reshape = exports.replacer = exports.reducedPlanckConstant = exports.re = exports.range = exports.randomInt = exports.random = exports.quantumOfCirculation = exports.quantileSeq = exports.qr = exports.protonMass = exports.prod = exports.print = exports.pow = exports.planckTime = exports.planckTemperature = exports.planckMass = exports.planckLength = exports.planckConstant = exports.planckCharge = exports.pickRandom = exports.pi = exports.phi = exports.permutations = exports.partitionSelect = exports.or = exports.ones = exports.oct = exports.numeric = exports.number = exports.nuclearMagneton = exports.nthRoots = exports.nthRoot = exports.not = exports.norm = exports.neutronMass = exports.multiplyScalar = exports.multiply = exports.multinomial = exports.molarVolume = exports.molarPlanckConstant = exports.molarMassC12 = exports.molarMass = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrixFromRows = exports.matrixFromFunction = exports.matrixFromColumns = exports.matrix = exports.map = exports.magneticFluxQuantum = exports.magneticConstant = exports.mad = exports.lusolve = exports.lup = exports.lsolveAll = exports.lsolve = exports.loschmidt = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.kron = exports.klitzing = exports.kldivergence = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.invmod = exports.inverseConductanceQuantum = exports.inv = exports.intersect = exports.index = exports.im = exports.identity = exports.i = exports.hypot = exports.hex = exports.hasNumericValue = exports.hartreeEnergy = exports.gravity = exports.gravitationConstant = exports.getMatrixDataType = exports.gcd = exports.gasConstant = exports.gamma = exports.fraction = exports.format = exports.forEach = exports.floor = exports.flatten = exports.fix = exports.firstRadiation = exports.fineStructure = exports.filter = exports.fermiCoupling = exports.faraday = exports.factorial = exports.expm1 = exports.expm = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.elementaryCharge = exports.electronMass = exports.electricConstant = exports.eigs = exports.efimovFactor = exports.e = exports.dotPow = exports.dotMultiply = exports.dotDivide = exports.dot = exports.divideScalar = exports.divide = exports.distance = exports.diff = exports.diag = exports.deuteronMass = exports.det = exports.deepEqual = exports.cube = exports.ctranspose = exports.csch = exports.csc = exports.cross = exports.createUnit = exports.count = exports.coulomb = exports.coth = exports.cot = exports.cosh = exports.cos = exports.conj = exports.conductanceQuantum = exports.concat = exports.composition = exports.complex = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.column = exports.clone = exports.classicalElectronRadius = exports.ceil = exports.cbrt = exports.catalan = exports["boolean"] = exports.boltzmann = exports.bohrRadius = exports.bohrMagneton = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bin = exports.bignumber = exports.bellNumbers = exports.avogadro = exports.atomicMass = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = exports.arg = exports.apply = exports.and = exports.addScalar = exports.add = exports.acsch = exports.acsc = exports.acoth = exports.acot = exports.acosh = exports.acos = exports.abs = exports._true = exports._null = exports._false = exports._NaN = exports._Infinity = exports.Unit = exports.SparseMatrix = exports.Spa = exports.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.Matrix = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = exports.Index = exports.ImmutableDenseMatrix = exports.Fraction = exports.FibonacciHeap = exports.DenseMatrix = exports.Complex = exports.BigNumber = void 0;
9
9
 
10
10
  var _configReadonly = require("./configReadonly.js");
11
11
 
@@ -951,6 +951,18 @@ var identity = /* #__PURE__ */(0, _factoriesAny.createIdentity)({
951
951
  typed: typed
952
952
  });
953
953
  exports.identity = identity;
954
+ var invmod = /* #__PURE__ */(0, _factoriesAny.createInvmod)({
955
+ BigNumber: BigNumber,
956
+ add: add,
957
+ config: _configReadonly.config,
958
+ equal: equal,
959
+ isInteger: isInteger,
960
+ mod: mod,
961
+ smaller: smaller,
962
+ typed: typed,
963
+ xgcd: xgcd
964
+ });
965
+ exports.invmod = invmod;
954
966
  var larger = /* #__PURE__ */(0, _factoriesAny.createLarger)({
955
967
  DenseMatrix: DenseMatrix,
956
968
  config: _configReadonly.config,
@@ -7,6 +7,8 @@ exports.embeddedDocs = void 0;
7
7
 
8
8
  var _bignumber = require("./construction/bignumber.js");
9
9
 
10
+ var _print = require("./function/utils/print.js");
11
+
10
12
  var _typeOf = require("./function/utils/typeOf.js");
11
13
 
12
14
  var _isZero = require("./function/utils/isZero.js");
@@ -279,6 +281,8 @@ var _bitAnd = require("./function/bitwise/bitAnd.js");
279
281
 
280
282
  var _xgcd = require("./function/arithmetic/xgcd.js");
281
283
 
284
+ var _invmod = require("./function/arithmetic/invmod.js");
285
+
282
286
  var _unaryPlus = require("./function/arithmetic/unaryPlus.js");
283
287
 
284
288
  var _unaryMinus = require("./function/arithmetic/unaryMinus.js");
@@ -736,6 +740,7 @@ var embeddedDocs = {
736
740
  unaryMinus: _unaryMinus.unaryMinusDocs,
737
741
  unaryPlus: _unaryPlus.unaryPlusDocs,
738
742
  xgcd: _xgcd.xgcdDocs,
743
+ invmod: _invmod.invmodDocs,
739
744
  // functions - bitwise
740
745
  bitAnd: _bitAnd.bitAndDocs,
741
746
  bitNot: _bitNot.bitNotDocs,
@@ -897,7 +902,7 @@ var embeddedDocs = {
897
902
  isPositive: _isPositive.isPositiveDocs,
898
903
  isPrime: _isPrime.isPrimeDocs,
899
904
  isZero: _isZero.isZeroDocs,
900
- // print: printDocs // TODO: add documentation for print as soon as the parser supports objects.
905
+ print: _print.printDocs,
901
906
  typeOf: _typeOf.typeOfDocs,
902
907
  numeric: _numeric.numericDocs
903
908
  };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.invmodDocs = void 0;
7
+ var invmodDocs = {
8
+ name: 'invmod',
9
+ category: 'Arithmetic',
10
+ syntax: ['invmod(a, b)'],
11
+ description: 'Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)',
12
+ examples: ['invmod(8, 12)=NaN', 'invmod(7, 13)=2', 'math.invmod(15151, 15122)=10429'],
13
+ seealso: ['gcd', 'xgcd']
14
+ };
15
+ exports.invmodDocs = invmodDocs;
@@ -9,7 +9,7 @@ var forEachDocs = {
9
9
  category: 'Matrix',
10
10
  syntax: ['forEach(x, callback)'],
11
11
  description: 'Iterates over all elements of a matrix/array, and executes the given callback function.',
12
- examples: ['forEach([1, 2, 3], function(val) { console.log(val) })'],
12
+ examples: [],
13
13
  seealso: ['map', 'sort', 'filter']
14
14
  };
15
15
  exports.forEachDocs = forEachDocs;
@@ -879,6 +879,12 @@ Object.defineProperty(exports, "createInverseConductanceQuantum", {
879
879
  return _physicalConstants.createInverseConductanceQuantum;
880
880
  }
881
881
  });
882
+ Object.defineProperty(exports, "createInvmod", {
883
+ enumerable: true,
884
+ get: function get() {
885
+ return _invmod.createInvmod;
886
+ }
887
+ });
882
888
  Object.defineProperty(exports, "createIsInteger", {
883
889
  enumerable: true,
884
890
  get: function get() {
@@ -2112,6 +2118,8 @@ var _subtract = require("./function/arithmetic/subtract.js");
2112
2118
 
2113
2119
  var _xgcd = require("./function/arithmetic/xgcd.js");
2114
2120
 
2121
+ var _invmod = require("./function/arithmetic/invmod.js");
2122
+
2115
2123
  var _dotMultiply = require("./function/arithmetic/dotMultiply.js");
2116
2124
 
2117
2125
  var _bitAnd = require("./function/bitwise/bitAnd.js");
@@ -14,7 +14,7 @@ var _simplifyConstant = require("./simplify/simplifyConstant.js");
14
14
  var _simplifyCore = require("./simplify/simplifyCore.js");
15
15
 
16
16
  var name = 'rationalize';
17
- var dependencies = ['config', 'typed', 'equal', 'isZero', 'add', 'subtract', 'multiply', 'divide', 'pow', 'parse', 'simplify', '?bignumber', '?fraction', 'mathWithTransform', 'ConstantNode', 'OperatorNode', 'FunctionNode', 'SymbolNode', 'ParenthesisNode'];
17
+ var dependencies = ['config', 'typed', 'equal', 'isZero', 'add', 'subtract', 'multiply', 'divide', 'pow', 'parse', 'simplify', '?bignumber', '?fraction', 'mathWithTransform', 'matrix', 'AccessorNode', 'ArrayNode', 'ConstantNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'SymbolNode', 'ParenthesisNode'];
18
18
  var createRationalize = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {
19
19
  var config = _ref.config,
20
20
  typed = _ref.typed,
@@ -30,20 +30,30 @@ var createRationalize = /* #__PURE__ */(0, _factory.factory)(name, dependencies,
30
30
  fraction = _ref.fraction,
31
31
  bignumber = _ref.bignumber,
32
32
  mathWithTransform = _ref.mathWithTransform,
33
+ matrix = _ref.matrix,
34
+ AccessorNode = _ref.AccessorNode,
35
+ ArrayNode = _ref.ArrayNode,
33
36
  ConstantNode = _ref.ConstantNode,
34
- OperatorNode = _ref.OperatorNode,
35
37
  FunctionNode = _ref.FunctionNode,
38
+ IndexNode = _ref.IndexNode,
39
+ ObjectNode = _ref.ObjectNode,
40
+ OperatorNode = _ref.OperatorNode,
36
41
  SymbolNode = _ref.SymbolNode,
37
42
  ParenthesisNode = _ref.ParenthesisNode;
38
43
  var simplifyConstant = (0, _simplifyConstant.createSimplifyConstant)({
39
44
  typed: typed,
40
45
  config: config,
41
46
  mathWithTransform: mathWithTransform,
47
+ matrix: matrix,
42
48
  fraction: fraction,
43
49
  bignumber: bignumber,
50
+ AccessorNode: AccessorNode,
51
+ ArrayNode: ArrayNode,
44
52
  ConstantNode: ConstantNode,
45
- OperatorNode: OperatorNode,
46
53
  FunctionNode: FunctionNode,
54
+ IndexNode: IndexNode,
55
+ ObjectNode: ObjectNode,
56
+ OperatorNode: OperatorNode,
47
57
  SymbolNode: SymbolNode
48
58
  });
49
59
  var simplifyCore = (0, _simplifyCore.createSimplifyCore)({
@@ -54,9 +64,13 @@ var createRationalize = /* #__PURE__ */(0, _factory.factory)(name, dependencies,
54
64
  multiply: multiply,
55
65
  divide: divide,
56
66
  pow: pow,
67
+ AccessorNode: AccessorNode,
68
+ ArrayNode: ArrayNode,
57
69
  ConstantNode: ConstantNode,
58
- OperatorNode: OperatorNode,
59
70
  FunctionNode: FunctionNode,
71
+ IndexNode: IndexNode,
72
+ ObjectNode: ObjectNode,
73
+ OperatorNode: OperatorNode,
60
74
  ParenthesisNode: ParenthesisNode
61
75
  });
62
76
  /**