mathjs 10.2.0 → 10.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/HISTORY.md +12 -0
  2. package/docs/expressions/syntax.md +31 -2
  3. package/docs/reference/functions/map.md +22 -5
  4. package/docs/reference/functions/subset.md +10 -2
  5. package/docs/reference/functions/symbolicEqual.md +62 -0
  6. package/docs/reference/functions.md +2 -1
  7. package/lib/browser/math.js +5 -5
  8. package/lib/browser/math.js.map +1 -1
  9. package/lib/cjs/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +29 -0
  10. package/lib/cjs/entry/dependenciesAny.generated.js +8 -0
  11. package/lib/cjs/entry/impureFunctionsAny.generated.js +16 -8
  12. package/lib/cjs/entry/pureFunctionsAny.generated.js +9 -9
  13. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +237 -234
  14. package/lib/cjs/expression/embeddedDocs/function/algebra/symbolicEqual.js +15 -0
  15. package/lib/cjs/expression/embeddedDocs/function/matrix/subset.js +2 -2
  16. package/lib/cjs/expression/node/FunctionNode.js +74 -55
  17. package/lib/cjs/factoriesAny.js +8 -0
  18. package/lib/cjs/function/algebra/simplify.js +8 -0
  19. package/lib/cjs/function/algebra/symbolicEqual.js +88 -0
  20. package/lib/cjs/function/matrix/eigs/complexEigs.js +8 -6
  21. package/lib/cjs/function/matrix/map.js +53 -15
  22. package/lib/cjs/function/matrix/subset.js +15 -5
  23. package/lib/cjs/header.js +2 -2
  24. package/lib/cjs/version.js +1 -1
  25. package/lib/esm/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +16 -0
  26. package/lib/esm/entry/dependenciesAny.generated.js +1 -0
  27. package/lib/esm/entry/impureFunctionsAny.generated.js +16 -9
  28. package/lib/esm/entry/pureFunctionsAny.generated.js +8 -8
  29. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +218 -216
  30. package/lib/esm/expression/embeddedDocs/function/algebra/symbolicEqual.js +8 -0
  31. package/lib/esm/expression/embeddedDocs/function/matrix/subset.js +2 -2
  32. package/lib/esm/expression/node/FunctionNode.js +70 -53
  33. package/lib/esm/factoriesAny.js +1 -0
  34. package/lib/esm/function/algebra/simplify.js +8 -0
  35. package/lib/esm/function/algebra/symbolicEqual.js +80 -0
  36. package/lib/esm/function/matrix/eigs/complexEigs.js +8 -6
  37. package/lib/esm/function/matrix/map.js +53 -15
  38. package/lib/esm/function/matrix/subset.js +15 -5
  39. package/lib/esm/version.js +1 -1
  40. package/package.json +1 -1
  41. package/types/index.d.ts +4 -4
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.symbolicEqualDependencies = void 0;
7
+
8
+ var _dependenciesOperatorNodeGenerated = require("./dependenciesOperatorNode.generated.js");
9
+
10
+ var _dependenciesParseGenerated = require("./dependenciesParse.generated.js");
11
+
12
+ var _dependenciesSimplifyGenerated = require("./dependenciesSimplify.generated.js");
13
+
14
+ var _dependenciesTypedGenerated = require("./dependenciesTyped.generated.js");
15
+
16
+ var _factoriesAny = require("../../factoriesAny.js");
17
+
18
+ /**
19
+ * THIS FILE IS AUTO-GENERATED
20
+ * DON'T MAKE CHANGES HERE
21
+ */
22
+ var symbolicEqualDependencies = {
23
+ OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,
24
+ parseDependencies: _dependenciesParseGenerated.parseDependencies,
25
+ simplifyDependencies: _dependenciesSimplifyGenerated.simplifyDependencies,
26
+ typedDependencies: _dependenciesTypedGenerated.typedDependencies,
27
+ createSymbolicEqual: _factoriesAny.createSymbolicEqual
28
+ };
29
+ exports.symbolicEqualDependencies = symbolicEqualDependencies;
@@ -1881,6 +1881,12 @@ Object.defineProperty(exports, "sumTransformDependencies", {
1881
1881
  return _dependenciesSumTransformGenerated.sumTransformDependencies;
1882
1882
  }
1883
1883
  });
1884
+ Object.defineProperty(exports, "symbolicEqualDependencies", {
1885
+ enumerable: true,
1886
+ get: function get() {
1887
+ return _dependenciesSymbolicEqualGenerated.symbolicEqualDependencies;
1888
+ }
1889
+ });
1884
1890
  Object.defineProperty(exports, "tanDependencies", {
1885
1891
  enumerable: true,
1886
1892
  get: function get() {
@@ -2650,6 +2656,8 @@ var _dependenciesSumTransformGenerated = require("./dependenciesAny/dependencies
2650
2656
 
2651
2657
  var _dependenciesSymbolNodeGenerated = require("./dependenciesAny/dependenciesSymbolNode.generated.js");
2652
2658
 
2659
+ var _dependenciesSymbolicEqualGenerated = require("./dependenciesAny/dependenciesSymbolicEqual.generated.js");
2660
+
2653
2661
  var _dependenciesTanGenerated = require("./dependenciesAny/dependenciesTan.generated.js");
2654
2662
 
2655
2663
  var _dependenciesTanhGenerated = require("./dependenciesAny/dependenciesTanh.generated.js");
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "docs", {
12
12
  return _embeddedDocs.embeddedDocs;
13
13
  }
14
14
  });
15
- exports.simplifyCore = exports.simplify = exports.reviver = exports.resolve = exports.rationalize = exports.parser = exports.parse = exports.leafCount = exports.help = exports.evaluate = void 0;
15
+ exports.symbolicEqual = exports.simplifyCore = exports.simplify = exports.reviver = exports.resolve = exports.rationalize = exports.parser = exports.parse = exports.leafCount = exports.help = exports.evaluate = void 0;
16
16
 
17
17
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
18
18
 
@@ -275,6 +275,13 @@ var help = (0, _factoriesAny.createHelp)({
275
275
  typed: _pureFunctionsAnyGenerated.typed
276
276
  });
277
277
  exports.help = help;
278
+ var symbolicEqual = (0, _factoriesAny.createSymbolicEqual)({
279
+ OperatorNode: OperatorNode,
280
+ parse: parse,
281
+ simplify: simplify,
282
+ typed: _pureFunctionsAnyGenerated.typed
283
+ });
284
+ exports.symbolicEqual = symbolicEqual;
278
285
  (0, _extends2.default)(math, {
279
286
  e: _pureFunctionsAnyGenerated.e,
280
287
  false: _pureFunctionsAnyGenerated._false,
@@ -512,7 +519,7 @@ exports.help = help;
512
519
  setIntersect: _pureFunctionsAnyGenerated.setIntersect,
513
520
  setUnion: _pureFunctionsAnyGenerated.setUnion,
514
521
  stefanBoltzmann: _pureFunctionsAnyGenerated.stefanBoltzmann,
515
- unit: _pureFunctionsAnyGenerated.unit,
522
+ thomsonCrossSection: _pureFunctionsAnyGenerated.thomsonCrossSection,
516
523
  avogadro: _pureFunctionsAnyGenerated.avogadro,
517
524
  bohrRadius: _pureFunctionsAnyGenerated.bohrRadius,
518
525
  coulomb: _pureFunctionsAnyGenerated.coulomb,
@@ -529,6 +536,7 @@ exports.help = help;
529
536
  secondRadiation: _pureFunctionsAnyGenerated.secondRadiation,
530
537
  speedOfLight: _pureFunctionsAnyGenerated.speedOfLight,
531
538
  stirlingS2: _pureFunctionsAnyGenerated.stirlingS2,
539
+ unit: _pureFunctionsAnyGenerated.unit,
532
540
  bellNumbers: _pureFunctionsAnyGenerated.bellNumbers,
533
541
  compile: compile,
534
542
  det: _pureFunctionsAnyGenerated.det,
@@ -538,7 +546,6 @@ exports.help = help;
538
546
  molarVolume: _pureFunctionsAnyGenerated.molarVolume,
539
547
  protonMass: _pureFunctionsAnyGenerated.protonMass,
540
548
  setSize: _pureFunctionsAnyGenerated.setSize,
541
- thomsonCrossSection: _pureFunctionsAnyGenerated.thomsonCrossSection,
542
549
  classicalElectronRadius: _pureFunctionsAnyGenerated.classicalElectronRadius,
543
550
  gravitationConstant: _pureFunctionsAnyGenerated.gravitationConstant,
544
551
  inv: _pureFunctionsAnyGenerated.inv,
@@ -561,6 +568,7 @@ exports.help = help;
561
568
  rationalize: rationalize,
562
569
  std: _pureFunctionsAnyGenerated.std,
563
570
  help: help,
571
+ symbolicEqual: symbolicEqual,
564
572
  norm: _pureFunctionsAnyGenerated.norm,
565
573
  rotationMatrix: _pureFunctionsAnyGenerated.rotationMatrix,
566
574
  rotate: _pureFunctionsAnyGenerated.rotate,
@@ -644,11 +652,6 @@ exports.help = help;
644
652
  typed: _pureFunctionsAnyGenerated.typed,
645
653
  variance: _pureFunctionsAnyGenerated.variance
646
654
  }),
647
- mean: (0, _factoriesAny.createMeanTransform)({
648
- add: _pureFunctionsAnyGenerated.add,
649
- divide: _pureFunctionsAnyGenerated.divide,
650
- typed: _pureFunctionsAnyGenerated.typed
651
- }),
652
655
  variance: (0, _factoriesAny.createVarianceTransform)({
653
656
  add: _pureFunctionsAnyGenerated.add,
654
657
  apply: _pureFunctionsAnyGenerated.apply,
@@ -657,6 +660,11 @@ exports.help = help;
657
660
  multiply: _pureFunctionsAnyGenerated.multiply,
658
661
  subtract: _pureFunctionsAnyGenerated.subtract,
659
662
  typed: _pureFunctionsAnyGenerated.typed
663
+ }),
664
+ mean: (0, _factoriesAny.createMeanTransform)({
665
+ add: _pureFunctionsAnyGenerated.add,
666
+ divide: _pureFunctionsAnyGenerated.divide,
667
+ typed: _pureFunctionsAnyGenerated.typed
660
668
  })
661
669
  });
662
670
  (0, _extends2.default)(classes, {
@@ -1518,11 +1518,12 @@ var stefanBoltzmann = /* #__PURE__ */(0, _factoriesAny.createStefanBoltzmann)({
1518
1518
  config: _configReadonly.config
1519
1519
  });
1520
1520
  exports.stefanBoltzmann = stefanBoltzmann;
1521
- var unit = /* #__PURE__ */(0, _factoriesAny.createUnitFunction)({
1521
+ var thomsonCrossSection = /* #__PURE__ */(0, _factoriesAny.createThomsonCrossSection)({
1522
+ BigNumber: BigNumber,
1522
1523
  Unit: Unit,
1523
- typed: typed
1524
+ config: _configReadonly.config
1524
1525
  });
1525
- exports.unit = unit;
1526
+ exports.thomsonCrossSection = thomsonCrossSection;
1526
1527
  var avogadro = /* #__PURE__ */(0, _factoriesAny.createAvogadro)({
1527
1528
  BigNumber: BigNumber,
1528
1529
  Unit: Unit,
@@ -1625,6 +1626,11 @@ var stirlingS2 = /* #__PURE__ */(0, _factoriesAny.createStirlingS2)({
1625
1626
  typed: typed
1626
1627
  });
1627
1628
  exports.stirlingS2 = stirlingS2;
1629
+ var unit = /* #__PURE__ */(0, _factoriesAny.createUnitFunction)({
1630
+ Unit: Unit,
1631
+ typed: typed
1632
+ });
1633
+ exports.unit = unit;
1628
1634
  var bellNumbers = /* #__PURE__ */(0, _factoriesAny.createBellNumbers)({
1629
1635
  addScalar: addScalar,
1630
1636
  isInteger: isInteger,
@@ -1665,12 +1671,6 @@ var setSize = /* #__PURE__ */(0, _factoriesAny.createSetSize)({
1665
1671
  typed: typed
1666
1672
  });
1667
1673
  exports.setSize = setSize;
1668
- var thomsonCrossSection = /* #__PURE__ */(0, _factoriesAny.createThomsonCrossSection)({
1669
- BigNumber: BigNumber,
1670
- Unit: Unit,
1671
- config: _configReadonly.config
1672
- });
1673
- exports.thomsonCrossSection = thomsonCrossSection;
1674
1674
  var classicalElectronRadius = /* #__PURE__ */(0, _factoriesAny.createClassicalElectronRadius)({
1675
1675
  BigNumber: BigNumber,
1676
1676
  Unit: Unit,