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
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { config } from './configReadonly.js';
6
6
  import { createBigNumberClass, createComplexClass, createE, createFalse, createFineStructure, createFractionClass, createI, createInfinity, createLN10, createLOG10E, createMatrixClass, createNaN, createNull, createPhi, createRangeClass, createResultSet, createSQRT1_2, // eslint-disable-line camelcase
7
- createSackurTetrode, createTau, createTrue, createVersion, createDenseMatrixClass, createEfimovFactor, createLN2, createPi, createReplacer, createSQRT2, createTyped, createUnaryPlus, createWeakMixingAngle, createAbs, createAcos, createAcot, createAcsc, createAddScalar, createArg, createAsech, createAsinh, createAtan, createAtanh, createBignumber, createBitNot, createBoolean, createClone, createCombinations, createComplex, createConj, createCosh, createCoth, createCsc, createCube, createEqualScalar, createErf, createExp, createExpm1, createFilter, createForEach, createFormat, createGetMatrixDataType, createHex, createIm, createIsInteger, createIsNegative, createIsPositive, createIsZero, createLOG2E, createLog10, createLog2, createMap, createMultiplyScalar, createNot, createNumber, createOct, createPickRandom, createPrint, createRandom, createRe, createSec, createSign, createSin, createSparseMatrixClass, createSplitUnit, createSquare, createString, createTan, createTypeOf, createAcosh, createAcsch, createApply, createAsec, createBin, createCombinationsWithRep, createCos, createCsch, createIsNaN, createIsPrime, createRandomInt, createSech, createSinh, createSparse, createSqrt, createTanh, createUnaryMinus, createAcoth, createCot, createFraction, createIsNumeric, createMatrix, createMatrixFromFunction, createMod, createNthRoot, createNumeric, createOr, createProd, createReshape, createSize, createSmaller, createSqueeze, createSubset, createSubtract, createTo, createTranspose, createXgcd, createZeros, createAnd, createBitAnd, createBitXor, createCbrt, createCompare, createCompareText, createConcat, createCount, createCtranspose, createDiag, createDivideScalar, createDotDivide, createEqual, createFlatten, createGcd, createHasNumericValue, createHypot, createImmutableDenseMatrixClass, createIndexClass, createKron, createLargerEq, createLeftShift, createLsolve, createMatrixFromColumns, createMin, createMode, createNthRoots, createOnes, createPartitionSelect, createResize, createRightArithShift, createRound, createSmallerEq, createUnequal, createUsolve, createXor, createAdd, createAtan2, createBitOr, createCatalan, createCompareNatural, createDeepEqual, createDiff, createDot, createEqualText, createFloor, createIdentity, createInvmod, createLarger, createLog, createLsolveAll, createMatrixFromRows, createMultiply, createPow, createQr, createRange, createRightLogShift, createRow, createSetCartesian, createSetDistinct, createSetIsSubset, createSetPowerset, createSlu, createSum, createTrace, createUsolveAll, createAsin, createCeil, createColumn, createComposition, createCross, createDistance, createDotMultiply, createFibonacciHeapClass, createFix, createGamma, createIndex, createLcm, createLog1p, createMax, createQuantileSeq, createSetDifference, createSetMultiplicity, createSetSymDifference, createSort, createUnitClass, createVacuumImpedance, createWienDisplacement, createAtomicMass, createBohrMagneton, createBoltzmann, createConductanceQuantum, createCreateUnit, createDeuteronMass, createDotPow, createElectricConstant, createElementaryCharge, createFactorial, createFermiCoupling, createGasConstant, createGravity, createIntersect, createInverseConductanceQuantum, createKlitzing, createLoschmidt, createMagneticConstant, createMolarMass, createMolarPlanckConstant, createNeutronMass, createNuclearMagneton, createPermutations, createPlanckConstant, createPlanckMass, createPlanckTime, createQuantumOfCirculation, createReducedPlanckConstant, createRydberg, createSetIntersect, createSetUnion, createSpaClass, createStefanBoltzmann, createUnitFunction, createAvogadro, createBohrRadius, createCoulomb, createElectronMass, createFaraday, createHartreeEnergy, createLup, createMagneticFluxQuantum, createMolarMassC12, createPlanckCharge, createPlanckTemperature, createSecondRadiation, createSpeedOfLight, createStirlingS2, createBellNumbers, createDet, createFirstRadiation, createMolarVolume, createProtonMass, createSetSize, createThomsonCrossSection, createClassicalElectronRadius, createGravitationConstant, createInv, createLusolve, createSqrtm, createDivide, createExpm, createKldivergence, createMean, createMedian, createPlanckLength, createVariance, createEigs, createMad, createMultinomial, createStd, createNorm, createRotationMatrix, createRotate } from '../factoriesAny.js';
7
+ createSackurTetrode, createTau, createTrue, createVersion, createDenseMatrixClass, createEfimovFactor, createLN2, createPi, createReplacer, createSQRT2, createTyped, createUnaryPlus, createWeakMixingAngle, createAbs, createAcos, createAcot, createAcsc, createAddScalar, createArg, createAsech, createAsinh, createAtan, createAtanh, createBignumber, createBitNot, createBoolean, createClone, createCombinations, createComplex, createConj, createCosh, createCoth, createCsc, createCube, createEqualScalar, createErf, createExp, createExpm1, createFilter, createForEach, createFormat, createGetMatrixDataType, createHex, createIm, createIsInteger, createIsNegative, createIsPositive, createIsZero, createLOG2E, createLog10, createLog2, createMap, createMultiplyScalar, createNot, createNumber, createOct, createPickRandom, createPrint, createRandom, createRe, createSec, createSign, createSin, createSparseMatrixClass, createSplitUnit, createSquare, createString, createTan, createTypeOf, createAcosh, createAcsch, createApply, createAsec, createBin, createCombinationsWithRep, createCos, createCsch, createIsNaN, createIsPrime, createRandomInt, createSech, createSinh, createSparse, createSqrt, createTanh, createUnaryMinus, createAcoth, createCot, createFraction, createIsNumeric, createMatrix, createMatrixFromFunction, createMod, createNthRoot, createNumeric, createOr, createProd, createReshape, createSize, createSmaller, createSqueeze, createSubset, createSubtract, createTo, createTranspose, createXgcd, createZeros, createAnd, createBitAnd, createBitXor, createCbrt, createCompare, createCompareText, createConcat, createCount, createCtranspose, createDiag, createDivideScalar, createDotDivide, createEqual, createFlatten, createGcd, createHasNumericValue, createHypot, createImmutableDenseMatrixClass, createIndexClass, createKron, createLargerEq, createLeftShift, createLsolve, createMatrixFromColumns, createMin, createMode, createNthRoots, createOnes, createPartitionSelect, createResize, createRightArithShift, createRound, createSmallerEq, createUnequal, createUsolve, createXor, createAdd, createAtan2, createBitOr, createCatalan, createCompareNatural, createDeepEqual, createDiff, createDot, createEqualText, createFloor, createIdentity, createInvmod, createLarger, createLog, createLsolveAll, createMatrixFromRows, createMultiply, createPow, createQr, createRange, createRightLogShift, createRow, createSetCartesian, createSetDistinct, createSetIsSubset, createSetPowerset, createSlu, createSum, createTrace, createUsolveAll, createAsin, createCeil, createColumn, createComposition, createCross, createDistance, createDotMultiply, createFibonacciHeapClass, createFix, createGamma, createIndex, createLcm, createLog1p, createMax, createQuantileSeq, createSetDifference, createSetMultiplicity, createSetSymDifference, createSort, createUnitClass, createVacuumImpedance, createWienDisplacement, createAtomicMass, createBohrMagneton, createBoltzmann, createConductanceQuantum, createCreateUnit, createDeuteronMass, createDotPow, createElectricConstant, createElementaryCharge, createFactorial, createFermiCoupling, createGasConstant, createGravity, createIntersect, createInverseConductanceQuantum, createKlitzing, createLoschmidt, createMagneticConstant, createMolarMass, createMolarPlanckConstant, createNeutronMass, createNuclearMagneton, createPermutations, createPlanckConstant, createPlanckMass, createPlanckTime, createQuantumOfCirculation, createReducedPlanckConstant, createRydberg, createSetIntersect, createSetUnion, createSpaClass, createStefanBoltzmann, createThomsonCrossSection, createAvogadro, createBohrRadius, createCoulomb, createElectronMass, createFaraday, createHartreeEnergy, createLup, createMagneticFluxQuantum, createMolarMassC12, createPlanckCharge, createPlanckTemperature, createSecondRadiation, createSpeedOfLight, createStirlingS2, createUnitFunction, createBellNumbers, createDet, createFirstRadiation, createMolarVolume, createProtonMass, createSetSize, createClassicalElectronRadius, createGravitationConstant, createInv, createLusolve, createSqrtm, createDivide, createExpm, createKldivergence, createMean, createMedian, createPlanckLength, createVariance, createEigs, createMad, createMultinomial, createStd, createNorm, createRotationMatrix, createRotate } from '../factoriesAny.js';
8
8
  export var BigNumber = /* #__PURE__ */createBigNumberClass({
9
9
  config
10
10
  });
@@ -1253,9 +1253,10 @@ export var stefanBoltzmann = /* #__PURE__ */createStefanBoltzmann({
1253
1253
  Unit,
1254
1254
  config
1255
1255
  });
1256
- export var unit = /* #__PURE__ */createUnitFunction({
1256
+ export var thomsonCrossSection = /* #__PURE__ */createThomsonCrossSection({
1257
+ BigNumber,
1257
1258
  Unit,
1258
- typed
1259
+ config
1259
1260
  });
1260
1261
  export var avogadro = /* #__PURE__ */createAvogadro({
1261
1262
  BigNumber,
@@ -1345,6 +1346,10 @@ export var stirlingS2 = /* #__PURE__ */createStirlingS2({
1345
1346
  subtract,
1346
1347
  typed
1347
1348
  });
1349
+ export var unit = /* #__PURE__ */createUnitFunction({
1350
+ Unit,
1351
+ typed
1352
+ });
1348
1353
  export var bellNumbers = /* #__PURE__ */createBellNumbers({
1349
1354
  addScalar,
1350
1355
  isInteger,
@@ -1379,11 +1384,6 @@ export var setSize = /* #__PURE__ */createSetSize({
1379
1384
  compareNatural,
1380
1385
  typed
1381
1386
  });
1382
- export var thomsonCrossSection = /* #__PURE__ */createThomsonCrossSection({
1383
- BigNumber,
1384
- Unit,
1385
- config
1386
- });
1387
1387
  export var classicalElectronRadius = /* #__PURE__ */createClassicalElectronRadius({
1388
1388
  BigNumber,
1389
1389
  Unit,
@@ -1,230 +1,231 @@
1
+ import { eDocs } from './constants/e.js';
2
+ import { falseDocs } from './constants/false.js';
3
+ import { iDocs } from './constants/i.js';
4
+ import { InfinityDocs } from './constants/Infinity.js';
5
+ import { LN10Docs } from './constants/LN10.js';
6
+ import { LN2Docs } from './constants/LN2.js';
7
+ import { LOG10EDocs } from './constants/LOG10E.js';
8
+ import { LOG2EDocs } from './constants/LOG2E.js';
9
+ import { NaNDocs } from './constants/NaN.js';
10
+ import { nullDocs } from './constants/null.js';
11
+ import { phiDocs } from './constants/phi.js';
12
+ import { piDocs } from './constants/pi.js';
13
+ import { SQRT12Docs } from './constants/SQRT1_2.js';
14
+ import { SQRT2Docs } from './constants/SQRT2.js';
15
+ import { tauDocs } from './constants/tau.js';
16
+ import { trueDocs } from './constants/true.js';
17
+ import { versionDocs } from './constants/version.js';
1
18
  import { bignumberDocs } from './construction/bignumber.js';
2
- import { printDocs } from './function/utils/print.js';
3
- import { typeOfDocs } from './function/utils/typeOf.js';
4
- import { isZeroDocs } from './function/utils/isZero.js';
5
- import { isPrimeDocs } from './function/utils/isPrime.js';
6
- import { isPositiveDocs } from './function/utils/isPositive.js';
7
- import { isNumericDocs } from './function/utils/isNumeric.js';
8
- import { hasNumericValueDocs } from './function/utils/hasNumericValue.js';
9
- import { isNegativeDocs } from './function/utils/isNegative.js';
10
- import { isIntegerDocs } from './function/utils/isInteger.js';
11
- import { isNaNDocs } from './function/utils/isNaN.js';
12
- import { formatDocs } from './function/utils/format.js';
13
- import { binDocs } from './function/utils/bin.js';
14
- import { octDocs } from './function/utils/oct.js';
15
- import { hexDocs } from './function/utils/hex.js';
16
- import { cloneDocs } from './function/utils/clone.js';
17
- import { toDocs } from './function/units/to.js';
18
- import { tanhDocs } from './function/trigonometry/tanh.js';
19
- import { tanDocs } from './function/trigonometry/tan.js';
20
- import { sinhDocs } from './function/trigonometry/sinh.js';
21
- import { sechDocs } from './function/trigonometry/sech.js';
22
- import { secDocs } from './function/trigonometry/sec.js';
23
- import { cschDocs } from './function/trigonometry/csch.js';
24
- import { cscDocs } from './function/trigonometry/csc.js';
25
- import { cothDocs } from './function/trigonometry/coth.js';
26
- import { cotDocs } from './function/trigonometry/cot.js';
27
- import { coshDocs } from './function/trigonometry/cosh.js';
28
- import { cosDocs } from './function/trigonometry/cos.js';
29
- import { atan2Docs } from './function/trigonometry/atan2.js';
30
- import { atanhDocs } from './function/trigonometry/atanh.js';
31
- import { atanDocs } from './function/trigonometry/atan.js';
32
- import { asinhDocs } from './function/trigonometry/asinh.js';
33
- import { asinDocs } from './function/trigonometry/asin.js';
34
- import { asechDocs } from './function/trigonometry/asech.js';
35
- import { asecDocs } from './function/trigonometry/asec.js';
36
- import { acschDocs } from './function/trigonometry/acsch.js';
37
- import { acscDocs } from './function/trigonometry/acsc.js';
38
- import { acothDocs } from './function/trigonometry/acoth.js';
39
- import { acotDocs } from './function/trigonometry/acot.js';
40
- import { acoshDocs } from './function/trigonometry/acosh.js';
41
- import { acosDocs } from './function/trigonometry/acos.js';
42
- import { sumDocs } from './function/statistics/sum.js';
43
- import { stdDocs } from './function/statistics/std.js';
44
- import { quantileSeqDocs } from './function/statistics/quantileSeq.js';
45
- import { prodDocs } from './function/statistics/prod.js';
46
- import { modeDocs } from './function/statistics/mode.js';
47
- import { minDocs } from './function/statistics/min.js';
48
- import { medianDocs } from './function/statistics/median.js';
49
- import { meanDocs } from './function/statistics/mean.js';
50
- import { maxDocs } from './function/statistics/max.js';
51
- import { madDocs } from './function/statistics/mad.js';
52
- import { erfDocs } from './function/special/erf.js';
53
- import { setUnionDocs } from './function/set/setUnion.js';
54
- import { setSymDifferenceDocs } from './function/set/setSymDifference.js';
55
- import { setSizeDocs } from './function/set/setSize.js';
56
- import { setPowersetDocs } from './function/set/setPowerset.js';
57
- import { setMultiplicityDocs } from './function/set/setMultiplicity.js';
58
- import { setIsSubsetDocs } from './function/set/setIsSubset.js';
59
- import { setIntersectDocs } from './function/set/setIntersect.js';
60
- import { setDistinctDocs } from './function/set/setDistinct.js';
61
- import { setDifferenceDocs } from './function/set/setDifference.js';
62
- import { setCartesianDocs } from './function/set/setCartesian.js';
63
- import { unequalDocs } from './function/relational/unequal.js';
64
- import { smallerEqDocs } from './function/relational/smallerEq.js';
65
- import { smallerDocs } from './function/relational/smaller.js';
66
- import { largerEqDocs } from './function/relational/largerEq.js';
67
- import { largerDocs } from './function/relational/larger.js';
68
- import { equalTextDocs } from './function/relational/equalText.js';
69
- import { equalDocs } from './function/relational/equal.js';
70
- import { deepEqualDocs } from './function/relational/deepEqual.js';
71
- import { compareTextDocs } from './function/relational/compareText.js';
72
- import { compareNaturalDocs } from './function/relational/compareNatural.js';
73
- import { compareDocs } from './function/relational/compare.js';
74
- import { randomIntDocs } from './function/probability/randomInt.js';
75
- import { randomDocs } from './function/probability/random.js';
76
- import { pickRandomDocs } from './function/probability/pickRandom.js';
77
- import { permutationsDocs } from './function/probability/permutations.js';
78
- import { multinomialDocs } from './function/probability/multinomial.js';
79
- import { kldivergenceDocs } from './function/probability/kldivergence.js';
80
- import { gammaDocs } from './function/probability/gamma.js';
81
- import { factorialDocs } from './function/probability/factorial.js';
82
- import { combinationsDocs } from './function/probability/combinations.js';
83
- import { combinationsWithRepDocs } from './function/probability/combinationsWithRep.js';
84
- import { zerosDocs } from './function/matrix/zeros.js';
85
- import { transposeDocs } from './function/matrix/transpose.js';
86
- import { traceDocs } from './function/matrix/trace.js';
87
- import { subsetDocs } from './function/matrix/subset.js';
88
- import { squeezeDocs } from './function/matrix/squeeze.js';
89
- import { sortDocs } from './function/matrix/sort.js';
90
- import { sizeDocs } from './function/matrix/size.js';
91
- import { diffDocs } from './function/matrix/diff.js';
92
- import { reshapeDocs } from './function/matrix/reshape.js';
93
- import { resizeDocs } from './function/matrix/resize.js';
94
- import { rangeDocs } from './function/matrix/range.js';
95
- import { partitionSelectDocs } from './function/matrix/partitionSelect.js';
96
- import { onesDocs } from './function/matrix/ones.js';
97
- import { mapDocs } from './function/matrix/map.js';
98
- import { kronDocs } from './function/matrix/kron.js';
99
- import { invDocs } from './function/matrix/inv.js';
100
- import { forEachDocs } from './function/matrix/forEach.js';
101
- import { flattenDocs } from './function/matrix/flatten.js';
102
- import { filterDocs } from './function/matrix/filter.js';
103
- import { identityDocs } from './function/matrix/identity.js';
104
- import { getMatrixDataTypeDocs } from './function/matrix/getMatrixDataType.js';
105
- import { dotDocs } from './function/matrix/dot.js';
106
- import { diagDocs } from './function/matrix/diag.js';
107
- import { detDocs } from './function/matrix/det.js';
108
- import { ctransposeDocs } from './function/matrix/ctranspose.js';
109
- import { crossDocs } from './function/matrix/cross.js';
110
- import { concatDocs } from './function/matrix/concat.js';
111
- import { countDocs } from './function/matrix/count.js';
112
- import { xorDocs } from './function/logical/xor.js';
113
- import { orDocs } from './function/logical/or.js';
114
- import { notDocs } from './function/logical/not.js';
115
- import { andDocs } from './function/logical/and.js';
116
- import { intersectDocs } from './function/geometry/intersect.js';
117
- import { distanceDocs } from './function/geometry/distance.js';
118
- import { helpDocs } from './function/expression/help.js';
119
- import { evaluateDocs } from './function/expression/evaluate.js';
120
- import { imDocs } from './function/complex/im.js';
121
- import { reDocs } from './function/complex/re.js';
122
- import { conjDocs } from './function/complex/conj.js';
123
- import { argDocs } from './function/complex/arg.js';
124
- import { typedDocs } from './core/typed.js';
125
- import { importDocs } from './core/import.js';
19
+ import { booleanDocs } from './construction/boolean.js';
20
+ import { complexDocs } from './construction/complex.js';
21
+ import { createUnitDocs } from './construction/createUnit.js';
22
+ import { fractionDocs } from './construction/fraction.js';
23
+ import { indexDocs } from './construction/index.js';
24
+ import { matrixDocs } from './construction/matrix.js';
25
+ import { numberDocs } from './construction/number.js';
26
+ import { sparseDocs } from './construction/sparse.js';
27
+ import { splitUnitDocs } from './construction/splitUnit.js';
28
+ import { stringDocs } from './construction/string.js';
29
+ import { unitDocs } from './construction/unit.js';
126
30
  import { configDocs } from './core/config.js';
127
- import { stirlingS2Docs } from './function/combinatorics/stirlingS2.js';
128
- import { compositionDocs } from './function/combinatorics/composition.js';
129
- import { catalanDocs } from './function/combinatorics/catalan.js';
130
- import { bellNumbersDocs } from './function/combinatorics/bellNumbers.js';
131
- import { rightLogShiftDocs } from './function/bitwise/rightLogShift.js';
132
- import { rightArithShiftDocs } from './function/bitwise/rightArithShift.js';
133
- import { leftShiftDocs } from './function/bitwise/leftShift.js';
134
- import { bitXorDocs } from './function/bitwise/bitXor.js';
135
- import { bitOrDocs } from './function/bitwise/bitOr.js';
136
- import { bitNotDocs } from './function/bitwise/bitNot.js';
137
- import { bitAndDocs } from './function/bitwise/bitAnd.js';
138
- import { xgcdDocs } from './function/arithmetic/xgcd.js';
31
+ import { importDocs } from './core/import.js';
32
+ import { typedDocs } from './core/typed.js';
33
+ import { derivativeDocs } from './function/algebra/derivative.js';
34
+ import { leafCountDocs } from './function/algebra/leafCount.js';
35
+ import { lsolveDocs } from './function/algebra/lsolve.js';
36
+ import { lsolveAllDocs } from './function/algebra/lsolveAll.js';
37
+ import { lupDocs } from './function/algebra/lup.js';
38
+ import { lusolveDocs } from './function/algebra/lusolve.js';
39
+ import { qrDocs } from './function/algebra/qr.js';
40
+ import { rationalizeDocs } from './function/algebra/rationalize.js';
41
+ import { resolveDocs } from './function/algebra/resolve.js';
42
+ import { simplifyDocs } from './function/algebra/simplify.js';
43
+ import { simplifyCoreDocs } from './function/algebra/simplifyCore.js';
44
+ import { sluDocs } from './function/algebra/slu.js';
45
+ import { symbolicEqualDocs } from './function/algebra/symbolicEqual.js';
46
+ import { usolveDocs } from './function/algebra/usolve.js';
47
+ import { usolveAllDocs } from './function/algebra/usolveAll.js';
48
+ import { absDocs } from './function/arithmetic/abs.js';
49
+ import { addDocs } from './function/arithmetic/add.js';
50
+ import { cbrtDocs } from './function/arithmetic/cbrt.js';
51
+ import { ceilDocs } from './function/arithmetic/ceil.js';
52
+ import { cubeDocs } from './function/arithmetic/cube.js';
53
+ import { divideDocs } from './function/arithmetic/divide.js';
54
+ import { dotDivideDocs } from './function/arithmetic/dotDivide.js';
55
+ import { dotMultiplyDocs } from './function/arithmetic/dotMultiply.js';
56
+ import { dotPowDocs } from './function/arithmetic/dotPow.js';
57
+ import { expDocs } from './function/arithmetic/exp.js';
58
+ import { expmDocs } from './function/arithmetic/expm.js';
59
+ import { expm1Docs } from './function/arithmetic/expm1.js';
60
+ import { fixDocs } from './function/arithmetic/fix.js';
61
+ import { floorDocs } from './function/arithmetic/floor.js';
62
+ import { gcdDocs } from './function/arithmetic/gcd.js';
63
+ import { hypotDocs } from './function/arithmetic/hypot.js';
139
64
  import { invmodDocs } from './function/arithmetic/invmod.js';
140
- import { unaryPlusDocs } from './function/arithmetic/unaryPlus.js';
141
- import { unaryMinusDocs } from './function/arithmetic/unaryMinus.js';
142
- import { squareDocs } from './function/arithmetic/square.js';
143
- import { sqrtmDocs } from './function/arithmetic/sqrtm.js';
144
- import { sqrtDocs } from './function/arithmetic/sqrt.js';
145
- import { signDocs } from './function/arithmetic/sign.js';
146
- import { roundDocs } from './function/arithmetic/round.js';
147
- import { powDocs } from './function/arithmetic/pow.js';
148
- import { nthRootsDocs } from './function/arithmetic/nthRoots.js';
149
- import { nthRootDocs } from './function/arithmetic/nthRoot.js';
150
- import { normDocs } from './function/arithmetic/norm.js';
151
- import { multiplyDocs } from './function/arithmetic/multiply.js';
152
- import { modDocs } from './function/arithmetic/mod.js';
65
+ import { lcmDocs } from './function/arithmetic/lcm.js';
66
+ import { logDocs } from './function/arithmetic/log.js';
153
67
  import { log10Docs } from './function/arithmetic/log10.js';
154
68
  import { log1pDocs } from './function/arithmetic/log1p.js';
155
69
  import { log2Docs } from './function/arithmetic/log2.js';
156
- import { logDocs } from './function/arithmetic/log.js';
157
- import { lcmDocs } from './function/arithmetic/lcm.js';
158
- import { hypotDocs } from './function/arithmetic/hypot.js';
159
- import { gcdDocs } from './function/arithmetic/gcd.js';
160
- import { floorDocs } from './function/arithmetic/floor.js';
161
- import { fixDocs } from './function/arithmetic/fix.js';
162
- import { expm1Docs } from './function/arithmetic/expm1.js';
163
- import { expmDocs } from './function/arithmetic/expm.js';
70
+ import { modDocs } from './function/arithmetic/mod.js';
71
+ import { multiplyDocs } from './function/arithmetic/multiply.js';
72
+ import { normDocs } from './function/arithmetic/norm.js';
73
+ import { nthRootDocs } from './function/arithmetic/nthRoot.js';
74
+ import { nthRootsDocs } from './function/arithmetic/nthRoots.js';
75
+ import { powDocs } from './function/arithmetic/pow.js';
76
+ import { roundDocs } from './function/arithmetic/round.js';
77
+ import { signDocs } from './function/arithmetic/sign.js';
78
+ import { sqrtDocs } from './function/arithmetic/sqrt.js';
79
+ import { sqrtmDocs } from './function/arithmetic/sqrtm.js';
80
+ import { squareDocs } from './function/arithmetic/square.js';
81
+ import { subtractDocs } from './function/arithmetic/subtract.js';
82
+ import { unaryMinusDocs } from './function/arithmetic/unaryMinus.js';
83
+ import { unaryPlusDocs } from './function/arithmetic/unaryPlus.js';
84
+ import { xgcdDocs } from './function/arithmetic/xgcd.js';
85
+ import { bitAndDocs } from './function/bitwise/bitAnd.js';
86
+ import { bitNotDocs } from './function/bitwise/bitNot.js';
87
+ import { bitOrDocs } from './function/bitwise/bitOr.js';
88
+ import { bitXorDocs } from './function/bitwise/bitXor.js';
89
+ import { leftShiftDocs } from './function/bitwise/leftShift.js';
90
+ import { rightArithShiftDocs } from './function/bitwise/rightArithShift.js';
91
+ import { rightLogShiftDocs } from './function/bitwise/rightLogShift.js';
92
+ import { bellNumbersDocs } from './function/combinatorics/bellNumbers.js';
93
+ import { catalanDocs } from './function/combinatorics/catalan.js';
94
+ import { compositionDocs } from './function/combinatorics/composition.js';
95
+ import { stirlingS2Docs } from './function/combinatorics/stirlingS2.js';
96
+ import { argDocs } from './function/complex/arg.js';
97
+ import { conjDocs } from './function/complex/conj.js';
98
+ import { imDocs } from './function/complex/im.js';
99
+ import { reDocs } from './function/complex/re.js';
100
+ import { evaluateDocs } from './function/expression/evaluate.js';
101
+ import { helpDocs } from './function/expression/help.js';
102
+ import { distanceDocs } from './function/geometry/distance.js';
103
+ import { intersectDocs } from './function/geometry/intersect.js';
104
+ import { andDocs } from './function/logical/and.js';
105
+ import { notDocs } from './function/logical/not.js';
106
+ import { orDocs } from './function/logical/or.js';
107
+ import { xorDocs } from './function/logical/xor.js';
108
+ import { columnDocs } from './function/matrix/column.js';
109
+ import { concatDocs } from './function/matrix/concat.js';
110
+ import { countDocs } from './function/matrix/count.js';
111
+ import { crossDocs } from './function/matrix/cross.js';
112
+ import { ctransposeDocs } from './function/matrix/ctranspose.js';
113
+ import { detDocs } from './function/matrix/det.js';
114
+ import { diagDocs } from './function/matrix/diag.js';
115
+ import { diffDocs } from './function/matrix/diff.js';
116
+ import { dotDocs } from './function/matrix/dot.js';
164
117
  import { eigsDocs } from './function/matrix/eigs.js';
165
- import { expDocs } from './function/arithmetic/exp.js';
166
- import { dotMultiplyDocs } from './function/arithmetic/dotMultiply.js';
167
- import { dotDivideDocs } from './function/arithmetic/dotDivide.js';
168
- import { divideDocs } from './function/arithmetic/divide.js';
169
- import { cubeDocs } from './function/arithmetic/cube.js';
170
- import { ceilDocs } from './function/arithmetic/ceil.js';
171
- import { cbrtDocs } from './function/arithmetic/cbrt.js';
172
- import { addDocs } from './function/arithmetic/add.js';
173
- import { absDocs } from './function/arithmetic/abs.js';
174
- import { qrDocs } from './function/algebra/qr.js';
175
- import { usolveDocs } from './function/algebra/usolve.js';
176
- import { usolveAllDocs } from './function/algebra/usolveAll.js';
177
- import { sluDocs } from './function/algebra/slu.js';
178
- import { leafCountDocs } from './function/algebra/leafCount.js';
179
- import { rationalizeDocs } from './function/algebra/rationalize.js';
180
- import { simplifyDocs } from './function/algebra/simplify.js';
181
- import { simplifyCoreDocs } from './function/algebra/simplifyCore.js';
182
- import { resolveDocs } from './function/algebra/resolve.js';
183
- import { lupDocs } from './function/algebra/lup.js';
184
- import { lsolveDocs } from './function/algebra/lsolve.js';
185
- import { lsolveAllDocs } from './function/algebra/lsolveAll.js';
186
- import { derivativeDocs } from './function/algebra/derivative.js';
187
- import { versionDocs } from './constants/version.js';
188
- import { trueDocs } from './constants/true.js';
189
- import { tauDocs } from './constants/tau.js';
190
- import { SQRT2Docs } from './constants/SQRT2.js';
191
- import { SQRT12Docs } from './constants/SQRT1_2.js';
192
- import { phiDocs } from './constants/phi.js';
193
- import { piDocs } from './constants/pi.js';
194
- import { nullDocs } from './constants/null.js';
195
- import { NaNDocs } from './constants/NaN.js';
196
- import { LOG10EDocs } from './constants/LOG10E.js';
197
- import { LOG2EDocs } from './constants/LOG2E.js';
198
- import { LN10Docs } from './constants/LN10.js';
199
- import { LN2Docs } from './constants/LN2.js';
200
- import { InfinityDocs } from './constants/Infinity.js';
201
- import { iDocs } from './constants/i.js';
202
- import { falseDocs } from './constants/false.js';
203
- import { eDocs } from './constants/e.js';
204
- import { unitDocs } from './construction/unit.js';
205
- import { stringDocs } from './construction/string.js';
206
- import { splitUnitDocs } from './construction/splitUnit.js';
207
- import { sparseDocs } from './construction/sparse.js';
208
- import { numberDocs } from './construction/number.js';
209
- import { matrixDocs } from './construction/matrix.js';
118
+ import { filterDocs } from './function/matrix/filter.js';
119
+ import { flattenDocs } from './function/matrix/flatten.js';
120
+ import { forEachDocs } from './function/matrix/forEach.js';
121
+ import { getMatrixDataTypeDocs } from './function/matrix/getMatrixDataType.js';
122
+ import { identityDocs } from './function/matrix/identity.js';
123
+ import { invDocs } from './function/matrix/inv.js';
124
+ import { kronDocs } from './function/matrix/kron.js';
125
+ import { mapDocs } from './function/matrix/map.js';
126
+ import { matrixFromColumnsDocs } from './function/matrix/matrixFromColumns.js';
210
127
  import { matrixFromFunctionDocs } from './function/matrix/matrixFromFunction.js';
211
128
  import { matrixFromRowsDocs } from './function/matrix/matrixFromRows.js';
212
- import { matrixFromColumnsDocs } from './function/matrix/matrixFromColumns.js';
213
- import { indexDocs } from './construction/index.js';
214
- import { fractionDocs } from './construction/fraction.js';
215
- import { createUnitDocs } from './construction/createUnit.js';
216
- import { complexDocs } from './construction/complex.js';
217
- import { booleanDocs } from './construction/boolean.js';
218
- import { dotPowDocs } from './function/arithmetic/dotPow.js';
219
- import { lusolveDocs } from './function/algebra/lusolve.js';
220
- import { subtractDocs } from './function/arithmetic/subtract.js';
129
+ import { onesDocs } from './function/matrix/ones.js';
130
+ import { partitionSelectDocs } from './function/matrix/partitionSelect.js';
131
+ import { rangeDocs } from './function/matrix/range.js';
132
+ import { reshapeDocs } from './function/matrix/reshape.js';
133
+ import { resizeDocs } from './function/matrix/resize.js';
134
+ import { rotateDocs } from './function/matrix/rotate.js';
135
+ import { rotationMatrixDocs } from './function/matrix/rotationMatrix.js';
136
+ import { rowDocs } from './function/matrix/row.js';
137
+ import { sizeDocs } from './function/matrix/size.js';
138
+ import { sortDocs } from './function/matrix/sort.js';
139
+ import { squeezeDocs } from './function/matrix/squeeze.js';
140
+ import { subsetDocs } from './function/matrix/subset.js';
141
+ import { traceDocs } from './function/matrix/trace.js';
142
+ import { transposeDocs } from './function/matrix/transpose.js';
143
+ import { zerosDocs } from './function/matrix/zeros.js';
144
+ import { combinationsDocs } from './function/probability/combinations.js';
145
+ import { combinationsWithRepDocs } from './function/probability/combinationsWithRep.js';
146
+ import { factorialDocs } from './function/probability/factorial.js';
147
+ import { gammaDocs } from './function/probability/gamma.js';
148
+ import { kldivergenceDocs } from './function/probability/kldivergence.js';
149
+ import { multinomialDocs } from './function/probability/multinomial.js';
150
+ import { permutationsDocs } from './function/probability/permutations.js';
151
+ import { pickRandomDocs } from './function/probability/pickRandom.js';
152
+ import { randomDocs } from './function/probability/random.js';
153
+ import { randomIntDocs } from './function/probability/randomInt.js';
154
+ import { compareDocs } from './function/relational/compare.js';
155
+ import { compareNaturalDocs } from './function/relational/compareNatural.js';
156
+ import { compareTextDocs } from './function/relational/compareText.js';
157
+ import { deepEqualDocs } from './function/relational/deepEqual.js';
158
+ import { equalDocs } from './function/relational/equal.js';
159
+ import { equalTextDocs } from './function/relational/equalText.js';
160
+ import { largerDocs } from './function/relational/larger.js';
161
+ import { largerEqDocs } from './function/relational/largerEq.js';
162
+ import { smallerDocs } from './function/relational/smaller.js';
163
+ import { smallerEqDocs } from './function/relational/smallerEq.js';
164
+ import { unequalDocs } from './function/relational/unequal.js';
165
+ import { setCartesianDocs } from './function/set/setCartesian.js';
166
+ import { setDifferenceDocs } from './function/set/setDifference.js';
167
+ import { setDistinctDocs } from './function/set/setDistinct.js';
168
+ import { setIntersectDocs } from './function/set/setIntersect.js';
169
+ import { setIsSubsetDocs } from './function/set/setIsSubset.js';
170
+ import { setMultiplicityDocs } from './function/set/setMultiplicity.js';
171
+ import { setPowersetDocs } from './function/set/setPowerset.js';
172
+ import { setSizeDocs } from './function/set/setSize.js';
173
+ import { setSymDifferenceDocs } from './function/set/setSymDifference.js';
174
+ import { setUnionDocs } from './function/set/setUnion.js';
175
+ import { erfDocs } from './function/special/erf.js';
176
+ import { madDocs } from './function/statistics/mad.js';
177
+ import { maxDocs } from './function/statistics/max.js';
178
+ import { meanDocs } from './function/statistics/mean.js';
179
+ import { medianDocs } from './function/statistics/median.js';
180
+ import { minDocs } from './function/statistics/min.js';
181
+ import { modeDocs } from './function/statistics/mode.js';
182
+ import { prodDocs } from './function/statistics/prod.js';
183
+ import { quantileSeqDocs } from './function/statistics/quantileSeq.js';
184
+ import { stdDocs } from './function/statistics/std.js';
185
+ import { sumDocs } from './function/statistics/sum.js';
221
186
  import { varianceDocs } from './function/statistics/variance.js';
187
+ import { acosDocs } from './function/trigonometry/acos.js';
188
+ import { acoshDocs } from './function/trigonometry/acosh.js';
189
+ import { acotDocs } from './function/trigonometry/acot.js';
190
+ import { acothDocs } from './function/trigonometry/acoth.js';
191
+ import { acscDocs } from './function/trigonometry/acsc.js';
192
+ import { acschDocs } from './function/trigonometry/acsch.js';
193
+ import { asecDocs } from './function/trigonometry/asec.js';
194
+ import { asechDocs } from './function/trigonometry/asech.js';
195
+ import { asinDocs } from './function/trigonometry/asin.js';
196
+ import { asinhDocs } from './function/trigonometry/asinh.js';
197
+ import { atanDocs } from './function/trigonometry/atan.js';
198
+ import { atan2Docs } from './function/trigonometry/atan2.js';
199
+ import { atanhDocs } from './function/trigonometry/atanh.js';
200
+ import { cosDocs } from './function/trigonometry/cos.js';
201
+ import { coshDocs } from './function/trigonometry/cosh.js';
202
+ import { cotDocs } from './function/trigonometry/cot.js';
203
+ import { cothDocs } from './function/trigonometry/coth.js';
204
+ import { cscDocs } from './function/trigonometry/csc.js';
205
+ import { cschDocs } from './function/trigonometry/csch.js';
206
+ import { secDocs } from './function/trigonometry/sec.js';
207
+ import { sechDocs } from './function/trigonometry/sech.js';
222
208
  import { sinDocs } from './function/trigonometry/sin.js';
209
+ import { sinhDocs } from './function/trigonometry/sinh.js';
210
+ import { tanDocs } from './function/trigonometry/tan.js';
211
+ import { tanhDocs } from './function/trigonometry/tanh.js';
212
+ import { toDocs } from './function/units/to.js';
213
+ import { binDocs } from './function/utils/bin.js';
214
+ import { cloneDocs } from './function/utils/clone.js';
215
+ import { formatDocs } from './function/utils/format.js';
216
+ import { hasNumericValueDocs } from './function/utils/hasNumericValue.js';
217
+ import { hexDocs } from './function/utils/hex.js';
218
+ import { isIntegerDocs } from './function/utils/isInteger.js';
219
+ import { isNaNDocs } from './function/utils/isNaN.js';
220
+ import { isNegativeDocs } from './function/utils/isNegative.js';
221
+ import { isNumericDocs } from './function/utils/isNumeric.js';
222
+ import { isPositiveDocs } from './function/utils/isPositive.js';
223
+ import { isPrimeDocs } from './function/utils/isPrime.js';
224
+ import { isZeroDocs } from './function/utils/isZero.js';
223
225
  import { numericDocs } from './function/utils/numeric.js';
224
- import { columnDocs } from './function/matrix/column.js';
225
- import { rowDocs } from './function/matrix/row.js';
226
- import { rotationMatrixDocs } from './function/matrix/rotationMatrix.js';
227
- import { rotateDocs } from './function/matrix/rotate.js';
226
+ import { octDocs } from './function/utils/oct.js';
227
+ import { printDocs } from './function/utils/print.js';
228
+ import { typeOfDocs } from './function/utils/typeOf.js';
228
229
  export var embeddedDocs = {
229
230
  // construction functions
230
231
  bignumber: bignumberDocs,
@@ -470,9 +471,10 @@ export var embeddedDocs = {
470
471
  lup: lupDocs,
471
472
  lusolve: lusolveDocs,
472
473
  leafCount: leafCountDocs,
473
- simplify: simplifyDocs,
474
474
  resolve: resolveDocs,
475
+ simplify: simplifyDocs,
475
476
  simplifyCore: simplifyCoreDocs,
477
+ symbolicEqual: symbolicEqualDocs,
476
478
  rationalize: rationalizeDocs,
477
479
  slu: sluDocs,
478
480
  usolve: usolveDocs,
@@ -0,0 +1,8 @@
1
+ export var symbolicEqualDocs = {
2
+ name: 'symbolicEqual',
3
+ category: 'Algebra',
4
+ syntax: ['symbolicEqual(expr1, expr2)', 'symbolicEqual(expr1, expr2, options)'],
5
+ description: 'Returns true if the difference of the expressions simplifies to 0',
6
+ examples: ['symbolicEqual("x*y","y*x")', 'symbolicEqual("abs(x^2)", "x^2")', 'symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],
7
+ seealso: ['simplify', 'evaluate']
8
+ };
@@ -2,7 +2,7 @@ export var subsetDocs = {
2
2
  name: 'subset',
3
3
  category: 'Matrix',
4
4
  syntax: ['value(index)', 'value(index) = replacement', 'subset(value, [index])', 'subset(value, [index], replacement)'],
5
- description: 'Get or set a subset of a matrix or string. ' + 'Indexes are one-based. ' + 'Both the ranges lower-bound and upper-bound are included.',
6
- examples: ['d = [1, 2; 3, 4]', 'e = []', 'e[1, 1:2] = [5, 6]', 'e[2, :] = [7, 8]', 'f = d * e', 'f[2, 1]', 'f[:, 1]'],
5
+ description: 'Get or set a subset of the entries of a matrix or ' + 'characters of a string. ' + 'Indexes are one-based. There should be one index specification for ' + 'each dimension of the target. Each specification can be a single ' + 'index, a list of indices, or a range in colon notation `l:u`. ' + 'In a range, both the lower bound l and upper bound u are included; ' + 'and if a bound is omitted it defaults to the most extreme valid value. ' + 'The cartesian product of the indices specified in each dimension ' + 'determines the target of the operation.',
6
+ examples: ['d = [1, 2; 3, 4]', 'e = []', 'e[1, 1:2] = [5, 6]', 'e[2, :] = [7, 8]', 'f = d * e', 'f[2, 1]', 'f[:, 1]', 'f[[1,2], [1,3]] = [9, 10; 11, 12]', 'f'],
7
7
  seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'trace', 'transpose', 'zeros']
8
8
  };