mathjs 10.1.1 → 10.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +17 -0
- package/docs/expressions/algebra.md +27 -0
- package/docs/reference/functions/abs.md +6 -0
- package/docs/reference/functions/acos.md +6 -0
- package/docs/reference/functions/acosh.md +6 -0
- package/docs/reference/functions/acot.md +6 -0
- package/docs/reference/functions/acoth.md +6 -0
- package/docs/reference/functions/acsc.md +6 -0
- package/docs/reference/functions/acsch.md +6 -0
- package/docs/reference/functions/add.md +6 -0
- package/docs/reference/functions/and.md +6 -0
- package/docs/reference/functions/apply.md +6 -0
- package/docs/reference/functions/arg.md +6 -0
- package/docs/reference/functions/asec.md +6 -0
- package/docs/reference/functions/asech.md +6 -0
- package/docs/reference/functions/asin.md +6 -0
- package/docs/reference/functions/asinh.md +6 -0
- package/docs/reference/functions/atan.md +6 -0
- package/docs/reference/functions/atan2.md +6 -0
- package/docs/reference/functions/atanh.md +6 -0
- package/docs/reference/functions/bellNumbers.md +6 -0
- package/docs/reference/functions/bin.md +6 -0
- package/docs/reference/functions/bitAnd.md +6 -0
- package/docs/reference/functions/bitNot.md +6 -0
- package/docs/reference/functions/bitOr.md +6 -0
- package/docs/reference/functions/bitXor.md +6 -0
- package/docs/reference/functions/catalan.md +6 -0
- package/docs/reference/functions/cbrt.md +6 -0
- package/docs/reference/functions/ceil.md +6 -0
- package/docs/reference/functions/clone.md +6 -0
- package/docs/reference/functions/column.md +6 -0
- package/docs/reference/functions/combinations.md +6 -0
- package/docs/reference/functions/combinationsWithRep.md +6 -0
- package/docs/reference/functions/compare.md +6 -0
- package/docs/reference/functions/compareNatural.md +6 -0
- package/docs/reference/functions/compareText.md +6 -0
- package/docs/reference/functions/compile.md +6 -0
- package/docs/reference/functions/composition.md +6 -0
- package/docs/reference/functions/concat.md +6 -0
- package/docs/reference/functions/conj.md +6 -0
- package/docs/reference/functions/cos.md +6 -0
- package/docs/reference/functions/cosh.md +6 -0
- package/docs/reference/functions/cot.md +6 -0
- package/docs/reference/functions/coth.md +6 -0
- package/docs/reference/functions/count.md +6 -0
- package/docs/reference/functions/cross.md +6 -0
- package/docs/reference/functions/csc.md +6 -0
- package/docs/reference/functions/csch.md +6 -0
- package/docs/reference/functions/ctranspose.md +6 -0
- package/docs/reference/functions/cube.md +6 -0
- package/docs/reference/functions/deepEqual.md +6 -0
- package/docs/reference/functions/derivative.md +6 -0
- package/docs/reference/functions/det.md +6 -0
- package/docs/reference/functions/diag.md +6 -0
- package/docs/reference/functions/diff.md +6 -0
- package/docs/reference/functions/distance.md +6 -0
- package/docs/reference/functions/divide.md +6 -0
- package/docs/reference/functions/dot.md +6 -0
- package/docs/reference/functions/dotDivide.md +6 -0
- package/docs/reference/functions/dotMultiply.md +6 -0
- package/docs/reference/functions/dotPow.md +6 -0
- package/docs/reference/functions/eigs.md +6 -0
- package/docs/reference/functions/equal.md +6 -0
- package/docs/reference/functions/equalText.md +6 -0
- package/docs/reference/functions/erf.md +6 -0
- package/docs/reference/functions/evaluate.md +6 -0
- package/docs/reference/functions/exp.md +6 -0
- package/docs/reference/functions/expm.md +6 -0
- package/docs/reference/functions/expm1.md +6 -0
- package/docs/reference/functions/factorial.md +6 -0
- package/docs/reference/functions/filter.md +6 -0
- package/docs/reference/functions/fix.md +6 -0
- package/docs/reference/functions/flatten.md +6 -0
- package/docs/reference/functions/floor.md +6 -0
- package/docs/reference/functions/forEach.md +6 -0
- package/docs/reference/functions/format.md +6 -0
- package/docs/reference/functions/gamma.md +6 -0
- package/docs/reference/functions/gcd.md +6 -0
- package/docs/reference/functions/getMatrixDataType.md +6 -0
- package/docs/reference/functions/hasNumericValue.md +6 -0
- package/docs/reference/functions/help.md +6 -0
- package/docs/reference/functions/hex.md +6 -0
- package/docs/reference/functions/hypot.md +6 -0
- package/docs/reference/functions/identity.md +6 -0
- package/docs/reference/functions/im.md +6 -0
- package/docs/reference/functions/intersect.md +6 -0
- package/docs/reference/functions/inv.md +6 -0
- package/docs/reference/functions/invmod.md +6 -0
- package/docs/reference/functions/isInteger.md +6 -0
- package/docs/reference/functions/isNaN.md +6 -0
- package/docs/reference/functions/isNegative.md +6 -0
- package/docs/reference/functions/isNumeric.md +6 -0
- package/docs/reference/functions/isPositive.md +6 -0
- package/docs/reference/functions/isPrime.md +6 -0
- package/docs/reference/functions/isZero.md +6 -0
- package/docs/reference/functions/kldivergence.md +6 -0
- package/docs/reference/functions/kron.md +6 -0
- package/docs/reference/functions/larger.md +6 -0
- package/docs/reference/functions/largerEq.md +6 -0
- package/docs/reference/functions/lcm.md +6 -0
- package/docs/reference/functions/leafCount.md +52 -0
- package/docs/reference/functions/leftShift.md +6 -0
- package/docs/reference/functions/log.md +6 -0
- package/docs/reference/functions/log10.md +6 -0
- package/docs/reference/functions/log1p.md +6 -0
- package/docs/reference/functions/log2.md +6 -0
- package/docs/reference/functions/lsolve.md +6 -0
- package/docs/reference/functions/lsolveAll.md +6 -0
- package/docs/reference/functions/lup.md +6 -0
- package/docs/reference/functions/lusolve.md +6 -0
- package/docs/reference/functions/mad.md +6 -0
- package/docs/reference/functions/map.md +6 -0
- package/docs/reference/functions/matrixFromColumns.md +6 -0
- package/docs/reference/functions/matrixFromFunction.md +6 -0
- package/docs/reference/functions/matrixFromRows.md +6 -0
- package/docs/reference/functions/max.md +6 -0
- package/docs/reference/functions/mean.md +6 -0
- package/docs/reference/functions/median.md +6 -0
- package/docs/reference/functions/min.md +6 -0
- package/docs/reference/functions/mod.md +6 -0
- package/docs/reference/functions/mode.md +6 -0
- package/docs/reference/functions/multinomial.md +6 -0
- package/docs/reference/functions/multiply.md +6 -0
- package/docs/reference/functions/norm.md +6 -0
- package/docs/reference/functions/not.md +6 -0
- package/docs/reference/functions/nthRoot.md +6 -0
- package/docs/reference/functions/nthRoots.md +6 -0
- package/docs/reference/functions/numeric.md +6 -0
- package/docs/reference/functions/oct.md +6 -0
- package/docs/reference/functions/ones.md +6 -0
- package/docs/reference/functions/or.md +6 -0
- package/docs/reference/functions/parser.md +6 -0
- package/docs/reference/functions/partitionSelect.md +6 -0
- package/docs/reference/functions/permutations.md +6 -0
- package/docs/reference/functions/pickRandom.md +6 -0
- package/docs/reference/functions/pow.md +6 -0
- package/docs/reference/functions/print.md +6 -0
- package/docs/reference/functions/prod.md +6 -0
- package/docs/reference/functions/qr.md +6 -0
- package/docs/reference/functions/quantileSeq.md +6 -0
- package/docs/reference/functions/random.md +6 -0
- package/docs/reference/functions/randomInt.md +6 -0
- package/docs/reference/functions/range.md +6 -0
- package/docs/reference/functions/rationalize.md +7 -1
- package/docs/reference/functions/re.md +6 -0
- package/docs/reference/functions/reshape.md +7 -0
- package/docs/reference/functions/resize.md +6 -0
- package/docs/reference/functions/resolve.md +46 -0
- package/docs/reference/functions/rightArithShift.md +6 -0
- package/docs/reference/functions/rightLogShift.md +6 -0
- package/docs/reference/functions/rotate.md +6 -0
- package/docs/reference/functions/rotationMatrix.md +6 -0
- package/docs/reference/functions/round.md +6 -0
- package/docs/reference/functions/row.md +6 -0
- package/docs/reference/functions/sec.md +6 -0
- package/docs/reference/functions/sech.md +6 -0
- package/docs/reference/functions/setCartesian.md +6 -0
- package/docs/reference/functions/setDifference.md +6 -0
- package/docs/reference/functions/setDistinct.md +6 -0
- package/docs/reference/functions/setIntersect.md +6 -0
- package/docs/reference/functions/setIsSubset.md +6 -0
- package/docs/reference/functions/setMultiplicity.md +6 -0
- package/docs/reference/functions/setPowerset.md +6 -0
- package/docs/reference/functions/setSize.md +6 -0
- package/docs/reference/functions/setSymDifference.md +6 -0
- package/docs/reference/functions/setUnion.md +6 -0
- package/docs/reference/functions/sign.md +6 -0
- package/docs/reference/functions/simplify.md +43 -6
- package/docs/reference/functions/simplifyCore.md +50 -0
- package/docs/reference/functions/sin.md +6 -0
- package/docs/reference/functions/sinh.md +6 -0
- package/docs/reference/functions/size.md +6 -0
- package/docs/reference/functions/slu.md +6 -0
- package/docs/reference/functions/smaller.md +6 -0
- package/docs/reference/functions/smallerEq.md +6 -0
- package/docs/reference/functions/sort.md +6 -0
- package/docs/reference/functions/sqrt.md +6 -0
- package/docs/reference/functions/sqrtm.md +6 -0
- package/docs/reference/functions/square.md +6 -0
- package/docs/reference/functions/squeeze.md +6 -0
- package/docs/reference/functions/std.md +6 -0
- package/docs/reference/functions/stirlingS2.md +6 -0
- package/docs/reference/functions/subset.md +6 -0
- package/docs/reference/functions/subtract.md +6 -0
- package/docs/reference/functions/sum.md +6 -0
- package/docs/reference/functions/tan.md +6 -0
- package/docs/reference/functions/tanh.md +6 -0
- package/docs/reference/functions/to.md +6 -0
- package/docs/reference/functions/trace.md +6 -0
- package/docs/reference/functions/transpose.md +6 -0
- package/docs/reference/functions/typeOf.md +6 -0
- package/docs/reference/functions/unaryMinus.md +6 -0
- package/docs/reference/functions/unaryPlus.md +6 -0
- package/docs/reference/functions/unequal.md +6 -0
- package/docs/reference/functions/usolve.md +6 -0
- package/docs/reference/functions/usolveAll.md +6 -0
- package/docs/reference/functions/variance.md +6 -0
- package/docs/reference/functions/xgcd.md +6 -0
- package/docs/reference/functions/xor.md +6 -0
- package/docs/reference/functions/zeros.md +6 -0
- package/docs/reference/functions.md +3 -0
- package/lib/browser/math.js +6 -6
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/core/create.js +4 -4
- package/lib/cjs/core/function/import.js +3 -3
- package/lib/cjs/core/function/typed.js +2 -2
- package/lib/cjs/defaultInstance.js +3 -3
- package/lib/cjs/entry/allFactoriesAny.js +1 -1
- package/lib/cjs/entry/allFactoriesNumber.js +1 -1
- package/lib/cjs/entry/configReadonly.js +1 -1
- package/lib/cjs/entry/dependenciesAny/dependenciesLeafCount.generated.js +23 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js +3 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesResolve.generated.js +32 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +6 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +65 -0
- package/lib/cjs/entry/dependenciesAny.generated.js +24 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRationalize.generated.js +3 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesResolve.generated.js +32 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +6 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +65 -0
- package/lib/cjs/entry/dependenciesNumber.generated.js +16 -0
- package/lib/cjs/entry/impureFunctionsAny.generated.js +67 -29
- package/lib/cjs/entry/impureFunctionsNumber.generated.js +96 -64
- package/lib/cjs/entry/pureFunctionsAny.generated.js +53 -55
- package/lib/cjs/entry/pureFunctionsNumber.generated.js +46 -48
- package/lib/cjs/expression/Help.js +4 -0
- package/lib/cjs/expression/Parser.js +1 -1
- package/lib/cjs/expression/embeddedDocs/core/typed.js +1 -1
- package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +14 -5
- package/lib/cjs/expression/embeddedDocs/function/algebra/leafCount.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/resolve.js +16 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/simplify.js +1 -1
- package/lib/cjs/expression/embeddedDocs/function/algebra/simplifyCore.js +15 -0
- package/lib/cjs/expression/node/FunctionNode.js +7 -7
- package/lib/cjs/expression/node/IndexNode.js +1 -1
- package/lib/cjs/expression/node/Node.js +3 -3
- package/lib/cjs/expression/node/ObjectNode.js +1 -1
- package/lib/cjs/expression/node/utils/access.js +1 -1
- package/lib/cjs/expression/node/utils/assign.js +1 -1
- package/lib/cjs/expression/parse.js +13 -13
- package/lib/cjs/factoriesAny.js +24 -0
- package/lib/cjs/factoriesNumber.js +16 -0
- package/lib/cjs/function/algebra/decomposition/qr.js +1 -1
- package/lib/cjs/function/algebra/leafCount.js +66 -0
- package/lib/cjs/function/algebra/rationalize.js +24 -41
- package/lib/cjs/function/algebra/resolve.js +106 -0
- package/lib/cjs/function/algebra/simplify/simplifyConstant.js +5 -5
- package/lib/cjs/function/algebra/simplify/util.js +171 -33
- package/lib/cjs/function/algebra/simplify.js +554 -207
- package/lib/cjs/function/algebra/{simplify/simplifyCore.js → simplifyCore.js} +67 -43
- package/lib/cjs/function/algebra/solver/lsolveAll.js +2 -2
- package/lib/cjs/function/algebra/solver/usolveAll.js +2 -2
- package/lib/cjs/function/arithmetic/ceil.js +3 -3
- package/lib/cjs/function/arithmetic/floor.js +3 -3
- package/lib/cjs/function/arithmetic/invmod.js +1 -1
- package/lib/cjs/function/arithmetic/norm.js +1 -1
- package/lib/cjs/function/arithmetic/round.js +1 -1
- package/lib/cjs/function/matrix/eigs/complexEigs.js +5 -5
- package/lib/cjs/function/matrix/matrixFromColumns.js +1 -1
- package/lib/cjs/function/matrix/matrixFromRows.js +1 -1
- package/lib/cjs/function/probability/util/seededRNG.js +2 -2
- package/lib/cjs/function/relational/compareNatural.js +6 -6
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/plain/bignumber/index.js +1 -1
- package/lib/cjs/plain/number/combinations.js +18 -6
- package/lib/cjs/type/bignumber/BigNumber.js +2 -2
- package/lib/cjs/type/bignumber/function/bignumber.js +1 -1
- package/lib/cjs/type/boolean.js +2 -2
- package/lib/cjs/type/complex/Complex.js +14 -14
- package/lib/cjs/type/complex/function/complex.js +1 -1
- package/lib/cjs/type/fraction/Fraction.js +6 -6
- package/lib/cjs/type/fraction/function/fraction.js +1 -1
- package/lib/cjs/type/matrix/DenseMatrix.js +5 -5
- package/lib/cjs/type/matrix/SparseMatrix.js +2 -2
- package/lib/cjs/type/number.js +1 -1
- package/lib/cjs/type/string.js +2 -2
- package/lib/cjs/type/unit/Unit.js +8 -8
- package/lib/cjs/utils/customs.js +2 -2
- package/lib/cjs/utils/emitter.js +1 -1
- package/lib/cjs/utils/function.js +2 -2
- package/lib/cjs/utils/is.js +6 -6
- package/lib/cjs/utils/latex.js +3 -3
- package/lib/cjs/utils/lruQueue.js +1 -1
- package/lib/cjs/utils/map.js +3 -3
- package/lib/cjs/utils/object.js +2 -2
- package/lib/cjs/utils/snapshot.js +7 -7
- package/lib/cjs/utils/string.js +2 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/entry/dependenciesAny/dependenciesLeafCount.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRationalize.generated.js +2 -0
- package/lib/esm/entry/dependenciesAny/dependenciesResolve.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +4 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +40 -0
- package/lib/esm/entry/dependenciesAny.generated.js +3 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRationalize.generated.js +2 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesResolve.generated.js +18 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +4 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +40 -0
- package/lib/esm/entry/dependenciesNumber.generated.js +2 -0
- package/lib/esm/entry/impureFunctionsAny.generated.js +57 -22
- package/lib/esm/entry/impureFunctionsNumber.generated.js +83 -53
- package/lib/esm/entry/pureFunctionsAny.generated.js +42 -42
- package/lib/esm/entry/pureFunctionsNumber.generated.js +32 -32
- package/lib/esm/expression/Help.js +4 -0
- package/lib/esm/expression/embeddedDocs/core/typed.js +1 -1
- package/lib/esm/expression/embeddedDocs/embeddedDocs.js +6 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/leafCount.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/resolve.js +9 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/simplify.js +1 -1
- package/lib/esm/expression/embeddedDocs/function/algebra/simplifyCore.js +8 -0
- package/lib/esm/factoriesAny.js +3 -0
- package/lib/esm/factoriesNumber.js +2 -0
- package/lib/esm/function/algebra/leafCount.js +59 -0
- package/lib/esm/function/algebra/rationalize.js +24 -40
- package/lib/esm/function/algebra/resolve.js +95 -0
- package/lib/esm/function/algebra/simplify/simplifyConstant.js +3 -3
- package/lib/esm/function/algebra/simplify/util.js +170 -34
- package/lib/esm/function/algebra/simplify.js +549 -202
- package/lib/esm/function/algebra/{simplify/simplifyCore.js → simplifyCore.js} +60 -44
- package/lib/esm/plain/number/combinations.js +18 -6
- package/lib/esm/version.js +1 -1
- package/package.json +15 -10
- package/types/index.d.ts +44 -2
- package/lib/cjs/function/algebra/simplify/resolve.js +0 -76
- package/lib/esm/function/algebra/simplify/resolve.js +0 -67
@@ -3,9 +3,9 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
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
|
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
|
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
|
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.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
|
|
@@ -205,12 +205,10 @@ var bitNot = /* #__PURE__ */(0, _factoriesAny.createBitNot)({
|
|
205
205
|
typed: typed
|
206
206
|
});
|
207
207
|
exports.bitNot = bitNot;
|
208
|
-
|
209
|
-
var _boolean = /* #__PURE__ */(0, _factoriesAny.createBoolean)({
|
208
|
+
var boolean = /* #__PURE__ */(0, _factoriesAny.createBoolean)({
|
210
209
|
typed: typed
|
211
210
|
});
|
212
|
-
|
213
|
-
exports["boolean"] = _boolean;
|
211
|
+
exports.boolean = boolean;
|
214
212
|
var clone = /* #__PURE__ */(0, _factoriesAny.createClone)({
|
215
213
|
typed: typed
|
216
214
|
});
|
@@ -821,14 +819,14 @@ var resize = /* #__PURE__ */(0, _factoriesAny.createResize)({
|
|
821
819
|
matrix: matrix
|
822
820
|
});
|
823
821
|
exports.resize = resize;
|
824
|
-
var
|
822
|
+
var rightArithShift = /* #__PURE__ */(0, _factoriesAny.createRightArithShift)({
|
825
823
|
DenseMatrix: DenseMatrix,
|
826
824
|
equalScalar: equalScalar,
|
827
825
|
matrix: matrix,
|
828
826
|
typed: typed,
|
829
827
|
zeros: zeros
|
830
828
|
});
|
831
|
-
exports.
|
829
|
+
exports.rightArithShift = rightArithShift;
|
832
830
|
var round = /* #__PURE__ */(0, _factoriesAny.createRound)({
|
833
831
|
BigNumber: BigNumber,
|
834
832
|
DenseMatrix: DenseMatrix,
|
@@ -1043,14 +1041,14 @@ var range = /* #__PURE__ */(0, _factoriesAny.createRange)({
|
|
1043
1041
|
typed: typed
|
1044
1042
|
});
|
1045
1043
|
exports.range = range;
|
1046
|
-
var
|
1044
|
+
var rightLogShift = /* #__PURE__ */(0, _factoriesAny.createRightLogShift)({
|
1047
1045
|
DenseMatrix: DenseMatrix,
|
1048
1046
|
equalScalar: equalScalar,
|
1049
1047
|
matrix: matrix,
|
1050
1048
|
typed: typed,
|
1051
1049
|
zeros: zeros
|
1052
1050
|
});
|
1053
|
-
exports.
|
1051
|
+
exports.rightLogShift = rightLogShift;
|
1054
1052
|
var row = /* #__PURE__ */(0, _factoriesAny.createRow)({
|
1055
1053
|
Index: Index,
|
1056
1054
|
matrix: matrix,
|
@@ -1217,6 +1215,14 @@ var lcm = /* #__PURE__ */(0, _factoriesAny.createLcm)({
|
|
1217
1215
|
typed: typed
|
1218
1216
|
});
|
1219
1217
|
exports.lcm = lcm;
|
1218
|
+
var log1p = /* #__PURE__ */(0, _factoriesAny.createLog1p)({
|
1219
|
+
Complex: Complex,
|
1220
|
+
config: _configReadonly.config,
|
1221
|
+
divideScalar: divideScalar,
|
1222
|
+
log: log,
|
1223
|
+
typed: typed
|
1224
|
+
});
|
1225
|
+
exports.log1p = log1p;
|
1220
1226
|
var max = /* #__PURE__ */(0, _factoriesAny.createMax)({
|
1221
1227
|
config: _configReadonly.config,
|
1222
1228
|
larger: larger,
|
@@ -1553,14 +1559,22 @@ var hartreeEnergy = /* #__PURE__ */(0, _factoriesAny.createHartreeEnergy)({
|
|
1553
1559
|
config: _configReadonly.config
|
1554
1560
|
});
|
1555
1561
|
exports.hartreeEnergy = hartreeEnergy;
|
1556
|
-
var
|
1557
|
-
|
1558
|
-
|
1562
|
+
var lup = /* #__PURE__ */(0, _factoriesAny.createLup)({
|
1563
|
+
DenseMatrix: DenseMatrix,
|
1564
|
+
Spa: Spa,
|
1565
|
+
SparseMatrix: SparseMatrix,
|
1566
|
+
abs: abs,
|
1567
|
+
addScalar: addScalar,
|
1559
1568
|
divideScalar: divideScalar,
|
1560
|
-
|
1561
|
-
|
1569
|
+
equalScalar: equalScalar,
|
1570
|
+
larger: larger,
|
1571
|
+
matrix: matrix,
|
1572
|
+
multiplyScalar: multiplyScalar,
|
1573
|
+
subtract: subtract,
|
1574
|
+
typed: typed,
|
1575
|
+
unaryMinus: unaryMinus
|
1562
1576
|
});
|
1563
|
-
exports.
|
1577
|
+
exports.lup = lup;
|
1564
1578
|
var magneticFluxQuantum = /* #__PURE__ */(0, _factoriesAny.createMagneticFluxQuantum)({
|
1565
1579
|
BigNumber: BigNumber,
|
1566
1580
|
Unit: Unit,
|
@@ -1619,28 +1633,21 @@ var bellNumbers = /* #__PURE__ */(0, _factoriesAny.createBellNumbers)({
|
|
1619
1633
|
typed: typed
|
1620
1634
|
});
|
1621
1635
|
exports.bellNumbers = bellNumbers;
|
1636
|
+
var det = /* #__PURE__ */(0, _factoriesAny.createDet)({
|
1637
|
+
lup: lup,
|
1638
|
+
matrix: matrix,
|
1639
|
+
multiply: multiply,
|
1640
|
+
subtract: subtract,
|
1641
|
+
typed: typed,
|
1642
|
+
unaryMinus: unaryMinus
|
1643
|
+
});
|
1644
|
+
exports.det = det;
|
1622
1645
|
var firstRadiation = /* #__PURE__ */(0, _factoriesAny.createFirstRadiation)({
|
1623
1646
|
BigNumber: BigNumber,
|
1624
1647
|
Unit: Unit,
|
1625
1648
|
config: _configReadonly.config
|
1626
1649
|
});
|
1627
1650
|
exports.firstRadiation = firstRadiation;
|
1628
|
-
var lup = /* #__PURE__ */(0, _factoriesAny.createLup)({
|
1629
|
-
DenseMatrix: DenseMatrix,
|
1630
|
-
Spa: Spa,
|
1631
|
-
SparseMatrix: SparseMatrix,
|
1632
|
-
abs: abs,
|
1633
|
-
addScalar: addScalar,
|
1634
|
-
divideScalar: divideScalar,
|
1635
|
-
equalScalar: equalScalar,
|
1636
|
-
larger: larger,
|
1637
|
-
matrix: matrix,
|
1638
|
-
multiplyScalar: multiplyScalar,
|
1639
|
-
subtract: subtract,
|
1640
|
-
typed: typed,
|
1641
|
-
unaryMinus: unaryMinus
|
1642
|
-
});
|
1643
|
-
exports.lup = lup;
|
1644
1651
|
var molarVolume = /* #__PURE__ */(0, _factoriesAny.createMolarVolume)({
|
1645
1652
|
BigNumber: BigNumber,
|
1646
1653
|
Unit: Unit,
|
@@ -1670,15 +1677,6 @@ var classicalElectronRadius = /* #__PURE__ */(0, _factoriesAny.createClassicalEl
|
|
1670
1677
|
config: _configReadonly.config
|
1671
1678
|
});
|
1672
1679
|
exports.classicalElectronRadius = classicalElectronRadius;
|
1673
|
-
var det = /* #__PURE__ */(0, _factoriesAny.createDet)({
|
1674
|
-
lup: lup,
|
1675
|
-
matrix: matrix,
|
1676
|
-
multiply: multiply,
|
1677
|
-
subtract: subtract,
|
1678
|
-
typed: typed,
|
1679
|
-
unaryMinus: unaryMinus
|
1680
|
-
});
|
1681
|
-
exports.det = det;
|
1682
1680
|
var gravitationConstant = /* #__PURE__ */(0, _factoriesAny.createGravitationConstant)({
|
1683
1681
|
BigNumber: BigNumber,
|
1684
1682
|
Unit: Unit,
|
@@ -1779,12 +1777,6 @@ var variance = /* #__PURE__ */(0, _factoriesAny.createVariance)({
|
|
1779
1777
|
typed: typed
|
1780
1778
|
});
|
1781
1779
|
exports.variance = variance;
|
1782
|
-
var std = /* #__PURE__ */(0, _factoriesAny.createStd)({
|
1783
|
-
sqrt: sqrt,
|
1784
|
-
typed: typed,
|
1785
|
-
variance: variance
|
1786
|
-
});
|
1787
|
-
exports.std = std;
|
1788
1780
|
var eigs = /* #__PURE__ */(0, _factoriesAny.createEigs)({
|
1789
1781
|
abs: abs,
|
1790
1782
|
add: add,
|
@@ -1819,6 +1811,14 @@ var eigs = /* #__PURE__ */(0, _factoriesAny.createEigs)({
|
|
1819
1811
|
usolveAll: usolveAll
|
1820
1812
|
});
|
1821
1813
|
exports.eigs = eigs;
|
1814
|
+
var mad = /* #__PURE__ */(0, _factoriesAny.createMad)({
|
1815
|
+
abs: abs,
|
1816
|
+
map: map,
|
1817
|
+
median: median,
|
1818
|
+
subtract: subtract,
|
1819
|
+
typed: typed
|
1820
|
+
});
|
1821
|
+
exports.mad = mad;
|
1822
1822
|
var multinomial = /* #__PURE__ */(0, _factoriesAny.createMultinomial)({
|
1823
1823
|
add: add,
|
1824
1824
|
divide: divide,
|
@@ -1829,14 +1829,12 @@ var multinomial = /* #__PURE__ */(0, _factoriesAny.createMultinomial)({
|
|
1829
1829
|
typed: typed
|
1830
1830
|
});
|
1831
1831
|
exports.multinomial = multinomial;
|
1832
|
-
var
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1836
|
-
subtract: subtract,
|
1837
|
-
typed: typed
|
1832
|
+
var std = /* #__PURE__ */(0, _factoriesAny.createStd)({
|
1833
|
+
sqrt: sqrt,
|
1834
|
+
typed: typed,
|
1835
|
+
variance: variance
|
1838
1836
|
});
|
1839
|
-
exports.
|
1837
|
+
exports.std = std;
|
1840
1838
|
var norm = /* #__PURE__ */(0, _factoriesAny.createNorm)({
|
1841
1839
|
abs: abs,
|
1842
1840
|
add: add,
|
@@ -3,8 +3,8 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.multinomial = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrix = exports.map = exports.mad = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.index = exports.hypot = exports.hasNumericValue = exports.gcd = exports.gamma = exports.format = exports.forEach = exports.floor = exports.fix = exports.filter = exports.factorial = exports.expm1 = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.e = exports.divideScalar = exports.divide = exports.deepEqual = exports.cube = exports.csch = exports.csc = exports.coth = exports.cot = exports.cosh = exports.cos = exports.composition = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.clone = exports.ceil = exports.cbrt = exports.catalan = exports
|
7
|
-
exports.xor = exports.xgcd = exports.version = exports.variance = exports.unequal = exports.unaryPlus = exports.unaryMinus = exports.typed = exports.typeOf = exports.tau = exports.tanh = exports.tan = exports.sum = exports.subtract = exports.subset = exports.string = exports.stirlingS2 = exports.std = exports.square = exports.sqrt = exports.smallerEq = exports.smaller = exports.size = exports.sinh = exports.sin = exports.sign = exports.sech = exports.sec = exports.round = exports.rightLogShift = exports.rightArithShift = exports.replacer = exports.range = exports.randomInt = exports.random = exports.quantileSeq = exports.prod = exports.print = exports.pow = exports.pickRandom = exports.pi = exports.phi = exports.permutations = exports.partitionSelect = exports.or = exports.numeric = exports.number = exports.nthRoot = exports.not = exports.norm = exports.multiplyScalar = exports.multiply = exports.multinomial = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrix = exports.map = exports.mad = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.index = exports.hypot = exports.hasNumericValue = exports.gcd = exports.gamma = exports.format = exports.forEach = exports.floor = exports.fix = exports.filter = exports.factorial = exports.expm1 = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.e = exports.divideScalar = exports.divide = exports.deepEqual = exports.cube = exports.csch = exports.csc = exports.coth = exports.cot = exports.cosh = exports.cos = exports.composition = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.clone = exports.ceil = exports.cbrt = exports.catalan = exports
|
6
|
+
exports.multinomial = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrix = exports.map = exports.mad = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.index = exports.hypot = exports.hasNumericValue = exports.gcd = exports.gamma = exports.format = exports.forEach = exports.floor = exports.fix = exports.filter = exports.factorial = exports.expm1 = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.e = exports.divideScalar = exports.divide = exports.deepEqual = exports.cube = exports.csch = exports.csc = exports.coth = exports.cot = exports.cosh = exports.cos = exports.composition = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.clone = exports.ceil = exports.cbrt = exports.catalan = exports.boolean = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bellNumbers = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = 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.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = void 0;
|
7
|
+
exports.xor = exports.xgcd = exports.version = exports.variance = exports.unequal = exports.unaryPlus = exports.unaryMinus = exports.typed = exports.typeOf = exports.tau = exports.tanh = exports.tan = exports.sum = exports.subtract = exports.subset = exports.string = exports.stirlingS2 = exports.std = exports.square = exports.sqrt = exports.smallerEq = exports.smaller = exports.size = exports.sinh = exports.sin = exports.sign = exports.sech = exports.sec = exports.round = exports.rightLogShift = exports.rightArithShift = exports.replacer = exports.range = exports.randomInt = exports.random = exports.quantileSeq = exports.prod = exports.print = exports.pow = exports.pickRandom = exports.pi = exports.phi = exports.permutations = exports.partitionSelect = exports.or = exports.numeric = exports.number = exports.nthRoot = exports.not = exports.norm = exports.multiplyScalar = exports.multiply = exports.multinomial = exports.mode = exports.mod = exports.min = exports.median = exports.mean = exports.max = exports.matrix = exports.map = exports.mad = exports.log2 = exports.log1p = exports.log10 = exports.log = exports.leftShift = exports.lcm = exports.largerEq = exports.larger = exports.isZero = exports.isPrime = exports.isPositive = exports.isNumeric = exports.isNegative = exports.isNaN = exports.isInteger = exports.index = exports.hypot = exports.hasNumericValue = exports.gcd = exports.gamma = exports.format = exports.forEach = exports.floor = exports.fix = exports.filter = exports.factorial = exports.expm1 = exports.exp = exports.erf = exports.equalText = exports.equalScalar = exports.equal = exports.e = exports.divideScalar = exports.divide = exports.deepEqual = exports.cube = exports.csch = exports.csc = exports.coth = exports.cot = exports.cosh = exports.cos = exports.composition = exports.compareText = exports.compareNatural = exports.compare = exports.combinationsWithRep = exports.combinations = exports.clone = exports.ceil = exports.cbrt = exports.catalan = exports.boolean = exports.bitXor = exports.bitOr = exports.bitNot = exports.bitAnd = exports.bellNumbers = exports.atanh = exports.atan2 = exports.atan = exports.asinh = exports.asin = exports.asech = exports.asec = 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.SQRT2 = exports.SQRT1_2 = exports.ResultSet = exports.Range = exports.LOG2E = exports.LOG10E = exports.LN2 = exports.LN10 = void 0;
|
8
8
|
|
9
9
|
var _configReadonly = require("./configReadonly.js");
|
10
10
|
|
@@ -58,6 +58,8 @@ var Range = /* #__PURE__ */(0, _factoriesNumber.createRangeClass)({});
|
|
58
58
|
exports.Range = Range;
|
59
59
|
var replacer = /* #__PURE__ */(0, _factoriesNumber.createReplacer)({});
|
60
60
|
exports.replacer = replacer;
|
61
|
+
var ResultSet = /* #__PURE__ */(0, _factoriesNumber.createResultSet)({});
|
62
|
+
exports.ResultSet = ResultSet;
|
61
63
|
var SQRT1_2 = /* #__PURE__ */(0, _factoriesNumber.createSQRT1_2)({
|
62
64
|
config: _configReadonly.config
|
63
65
|
});
|
@@ -128,12 +130,10 @@ var bitOr = /* #__PURE__ */(0, _factoriesNumber.createBitOr)({
|
|
128
130
|
typed: typed
|
129
131
|
});
|
130
132
|
exports.bitOr = bitOr;
|
131
|
-
|
132
|
-
var _boolean = /* #__PURE__ */(0, _factoriesNumber.createBoolean)({
|
133
|
+
var boolean = /* #__PURE__ */(0, _factoriesNumber.createBoolean)({
|
133
134
|
typed: typed
|
134
135
|
});
|
135
|
-
|
136
|
-
exports["boolean"] = _boolean;
|
136
|
+
exports.boolean = boolean;
|
137
137
|
var cbrt = /* #__PURE__ */(0, _factoriesNumber.createCbrt)({
|
138
138
|
typed: typed
|
139
139
|
});
|
@@ -284,22 +284,18 @@ var random = /* #__PURE__ */(0, _factoriesNumber.createRandom)({
|
|
284
284
|
typed: typed
|
285
285
|
});
|
286
286
|
exports.random = random;
|
287
|
-
var
|
288
|
-
typed: typed
|
289
|
-
});
|
290
|
-
exports.rightArithShift = rightArithShift;
|
291
|
-
var round = /* #__PURE__ */(0, _factoriesNumber.createRound)({
|
287
|
+
var rightLogShift = /* #__PURE__ */(0, _factoriesNumber.createRightLogShift)({
|
292
288
|
typed: typed
|
293
289
|
});
|
294
|
-
exports.
|
295
|
-
var
|
296
|
-
|
290
|
+
exports.rightLogShift = rightLogShift;
|
291
|
+
var SQRT2 = /* #__PURE__ */(0, _factoriesNumber.createSQRT2)({
|
292
|
+
config: _configReadonly.config
|
297
293
|
});
|
298
|
-
exports.
|
299
|
-
var
|
294
|
+
exports.SQRT2 = SQRT2;
|
295
|
+
var sech = /* #__PURE__ */(0, _factoriesNumber.createSech)({
|
300
296
|
typed: typed
|
301
297
|
});
|
302
|
-
exports.
|
298
|
+
exports.sech = sech;
|
303
299
|
var sin = /* #__PURE__ */(0, _factoriesNumber.createSin)({
|
304
300
|
typed: typed
|
305
301
|
});
|
@@ -424,12 +420,14 @@ var randomInt = /* #__PURE__ */(0, _factoriesNumber.createRandomInt)({
|
|
424
420
|
typed: typed
|
425
421
|
});
|
426
422
|
exports.randomInt = randomInt;
|
427
|
-
var
|
428
|
-
|
429
|
-
var SQRT2 = /* #__PURE__ */(0, _factoriesNumber.createSQRT2)({
|
430
|
-
config: _configReadonly.config
|
423
|
+
var rightArithShift = /* #__PURE__ */(0, _factoriesNumber.createRightArithShift)({
|
424
|
+
typed: typed
|
431
425
|
});
|
432
|
-
exports.
|
426
|
+
exports.rightArithShift = rightArithShift;
|
427
|
+
var sec = /* #__PURE__ */(0, _factoriesNumber.createSec)({
|
428
|
+
typed: typed
|
429
|
+
});
|
430
|
+
exports.sec = sec;
|
433
431
|
var sinh = /* #__PURE__ */(0, _factoriesNumber.createSinh)({
|
434
432
|
typed: typed
|
435
433
|
});
|
@@ -463,21 +461,10 @@ var bitXor = /* #__PURE__ */(0, _factoriesNumber.createBitXor)({
|
|
463
461
|
typed: typed
|
464
462
|
});
|
465
463
|
exports.bitXor = bitXor;
|
466
|
-
var
|
467
|
-
addScalar: addScalar,
|
468
|
-
combinations: combinations,
|
469
|
-
divideScalar: divideScalar,
|
470
|
-
isInteger: isInteger,
|
471
|
-
isNegative: isNegative,
|
472
|
-
multiplyScalar: multiplyScalar,
|
473
|
-
typed: typed
|
474
|
-
});
|
475
|
-
exports.catalan = catalan;
|
476
|
-
var compareNatural = /* #__PURE__ */(0, _factoriesNumber.createCompareNatural)({
|
477
|
-
compare: compare,
|
464
|
+
var clone = /* #__PURE__ */(0, _factoriesNumber.createClone)({
|
478
465
|
typed: typed
|
479
466
|
});
|
480
|
-
exports.
|
467
|
+
exports.clone = clone;
|
481
468
|
var equal = /* #__PURE__ */(0, _factoriesNumber.createEqual)({
|
482
469
|
equalScalar: equalScalar,
|
483
470
|
typed: typed
|
@@ -531,10 +518,10 @@ var quantileSeq = /* #__PURE__ */(0, _factoriesNumber.createQuantileSeq)({
|
|
531
518
|
typed: typed
|
532
519
|
});
|
533
520
|
exports.quantileSeq = quantileSeq;
|
534
|
-
var
|
521
|
+
var round = /* #__PURE__ */(0, _factoriesNumber.createRound)({
|
535
522
|
typed: typed
|
536
523
|
});
|
537
|
-
exports.
|
524
|
+
exports.round = round;
|
538
525
|
var smaller = /* #__PURE__ */(0, _factoriesNumber.createSmaller)({
|
539
526
|
config: _configReadonly.config,
|
540
527
|
typed: typed
|
@@ -576,6 +563,16 @@ var atan2 = /* #__PURE__ */(0, _factoriesNumber.createAtan2)({
|
|
576
563
|
typed: typed
|
577
564
|
});
|
578
565
|
exports.atan2 = atan2;
|
566
|
+
var catalan = /* #__PURE__ */(0, _factoriesNumber.createCatalan)({
|
567
|
+
addScalar: addScalar,
|
568
|
+
combinations: combinations,
|
569
|
+
divideScalar: divideScalar,
|
570
|
+
isInteger: isInteger,
|
571
|
+
isNegative: isNegative,
|
572
|
+
multiplyScalar: multiplyScalar,
|
573
|
+
typed: typed
|
574
|
+
});
|
575
|
+
exports.catalan = catalan;
|
579
576
|
var composition = /* #__PURE__ */(0, _factoriesNumber.createComposition)({
|
580
577
|
addScalar: addScalar,
|
581
578
|
combinations: combinations,
|
@@ -643,20 +640,21 @@ var range = /* #__PURE__ */(0, _factoriesNumber.createRange)({
|
|
643
640
|
typed: typed
|
644
641
|
});
|
645
642
|
exports.range = range;
|
646
|
-
var
|
643
|
+
var sign = /* #__PURE__ */(0, _factoriesNumber.createSign)({
|
647
644
|
typed: typed
|
648
645
|
});
|
649
|
-
exports.
|
646
|
+
exports.sign = sign;
|
650
647
|
var std = /* #__PURE__ */(0, _factoriesNumber.createStd)({
|
651
648
|
sqrt: sqrt,
|
652
649
|
typed: typed,
|
653
650
|
variance: variance
|
654
651
|
});
|
655
652
|
exports.std = std;
|
656
|
-
var
|
653
|
+
var compareNatural = /* #__PURE__ */(0, _factoriesNumber.createCompareNatural)({
|
654
|
+
compare: compare,
|
657
655
|
typed: typed
|
658
656
|
});
|
659
|
-
exports.
|
657
|
+
exports.compareNatural = compareNatural;
|
660
658
|
var coth = /* #__PURE__ */(0, _factoriesNumber.createCoth)({
|
661
659
|
typed: typed
|
662
660
|
});
|
@@ -680,6 +678,13 @@ var prod = /* #__PURE__ */(0, _factoriesNumber.createProd)({
|
|
680
678
|
typed: typed
|
681
679
|
});
|
682
680
|
exports.prod = prod;
|
681
|
+
var sum = /* #__PURE__ */(0, _factoriesNumber.createSum)({
|
682
|
+
add: add,
|
683
|
+
config: _configReadonly.config,
|
684
|
+
numeric: numeric,
|
685
|
+
typed: typed
|
686
|
+
});
|
687
|
+
exports.sum = sum;
|
683
688
|
var bellNumbers = /* #__PURE__ */(0, _factoriesNumber.createBellNumbers)({
|
684
689
|
addScalar: addScalar,
|
685
690
|
isInteger: isInteger,
|
@@ -696,13 +701,6 @@ var mad = /* #__PURE__ */(0, _factoriesNumber.createMad)({
|
|
696
701
|
typed: typed
|
697
702
|
});
|
698
703
|
exports.mad = mad;
|
699
|
-
var sum = /* #__PURE__ */(0, _factoriesNumber.createSum)({
|
700
|
-
add: add,
|
701
|
-
config: _configReadonly.config,
|
702
|
-
numeric: numeric,
|
703
|
-
typed: typed
|
704
|
-
});
|
705
|
-
exports.sum = sum;
|
706
704
|
var max = /* #__PURE__ */(0, _factoriesNumber.createMax)({
|
707
705
|
config: _configReadonly.config,
|
708
706
|
larger: larger,
|
@@ -96,6 +96,10 @@ var createHelpClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, f
|
|
96
96
|
desc += '\n';
|
97
97
|
}
|
98
98
|
|
99
|
+
if (doc.mayThrow && doc.mayThrow.length) {
|
100
|
+
desc += 'Throws: ' + doc.mayThrow.join(', ') + '\n\n';
|
101
|
+
}
|
102
|
+
|
99
103
|
if (doc.seealso && doc.seealso.length) {
|
100
104
|
desc += 'See also: ' + doc.seealso.join(', ') + '\n';
|
101
105
|
}
|
@@ -141,7 +141,7 @@ var createParserClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies,
|
|
141
141
|
|
142
142
|
|
143
143
|
Parser.prototype.remove = function (name) {
|
144
|
-
this.scope
|
144
|
+
this.scope.delete(name);
|
145
145
|
};
|
146
146
|
/**
|
147
147
|
* Clear the scope with variables and functions
|
@@ -9,7 +9,7 @@ var typedDocs = {
|
|
9
9
|
category: 'Core',
|
10
10
|
syntax: ['typed(signatures)', 'typed(name, signatures)'],
|
11
11
|
description: 'Create a typed function.',
|
12
|
-
examples: ['double = typed({ "number
|
12
|
+
examples: ['double = typed({ "number": f(x)=x+x })', 'double(2)', 'double("hello")'],
|
13
13
|
seealso: []
|
14
14
|
};
|
15
15
|
exports.typedDocs = typedDocs;
|
@@ -359,10 +359,16 @@ var _usolveAll = require("./function/algebra/usolveAll.js");
|
|
359
359
|
|
360
360
|
var _slu = require("./function/algebra/slu.js");
|
361
361
|
|
362
|
+
var _leafCount = require("./function/algebra/leafCount.js");
|
363
|
+
|
362
364
|
var _rationalize = require("./function/algebra/rationalize.js");
|
363
365
|
|
364
366
|
var _simplify = require("./function/algebra/simplify.js");
|
365
367
|
|
368
|
+
var _simplifyCore = require("./function/algebra/simplifyCore.js");
|
369
|
+
|
370
|
+
var _resolve = require("./function/algebra/resolve.js");
|
371
|
+
|
366
372
|
var _lup = require("./function/algebra/lup.js");
|
367
373
|
|
368
374
|
var _lsolve = require("./function/algebra/lsolve.js");
|
@@ -456,7 +462,7 @@ var _rotate = require("./function/matrix/rotate.js");
|
|
456
462
|
var embeddedDocs = {
|
457
463
|
// construction functions
|
458
464
|
bignumber: _bignumber.bignumberDocs,
|
459
|
-
|
465
|
+
boolean: _boolean.booleanDocs,
|
460
466
|
complex: _complex.complexDocs,
|
461
467
|
createUnit: _createUnit.createUnitDocs,
|
462
468
|
fraction: _fraction.fractionDocs,
|
@@ -470,7 +476,7 @@ var embeddedDocs = {
|
|
470
476
|
// constants
|
471
477
|
e: _e.eDocs,
|
472
478
|
E: _e.eDocs,
|
473
|
-
|
479
|
+
false: _false.falseDocs,
|
474
480
|
i: _i.iDocs,
|
475
481
|
Infinity: _Infinity.InfinityDocs,
|
476
482
|
LN2: _LN2.LN2Docs,
|
@@ -478,14 +484,14 @@ var embeddedDocs = {
|
|
478
484
|
LOG2E: _LOG2E.LOG2EDocs,
|
479
485
|
LOG10E: _LOG10E.LOG10EDocs,
|
480
486
|
NaN: _NaN.NaNDocs,
|
481
|
-
|
487
|
+
null: _null.nullDocs,
|
482
488
|
pi: _pi.piDocs,
|
483
489
|
PI: _pi.piDocs,
|
484
490
|
phi: _phi.phiDocs,
|
485
491
|
SQRT1_2: _SQRT1_.SQRT12Docs,
|
486
492
|
SQRT2: _SQRT.SQRT2Docs,
|
487
493
|
tau: _tau.tauDocs,
|
488
|
-
|
494
|
+
true: _true.trueDocs,
|
489
495
|
version: _version.versionDocs,
|
490
496
|
// physical constants
|
491
497
|
// TODO: more detailed docs for physical constants
|
@@ -697,7 +703,10 @@ var embeddedDocs = {
|
|
697
703
|
lsolveAll: _lsolveAll.lsolveAllDocs,
|
698
704
|
lup: _lup.lupDocs,
|
699
705
|
lusolve: _lusolve.lusolveDocs,
|
706
|
+
leafCount: _leafCount.leafCountDocs,
|
700
707
|
simplify: _simplify.simplifyDocs,
|
708
|
+
resolve: _resolve.resolveDocs,
|
709
|
+
simplifyCore: _simplifyCore.simplifyCoreDocs,
|
701
710
|
rationalize: _rationalize.rationalizeDocs,
|
702
711
|
slu: _slu.sluDocs,
|
703
712
|
usolve: _usolve.usolveDocs,
|
@@ -756,7 +765,7 @@ var embeddedDocs = {
|
|
756
765
|
stirlingS2: _stirlingS.stirlingS2Docs,
|
757
766
|
// functions - core
|
758
767
|
config: _config.configDocs,
|
759
|
-
|
768
|
+
import: _import.importDocs,
|
760
769
|
typed: _typed.typedDocs,
|
761
770
|
// functions - complex
|
762
771
|
arg: _arg.argDocs,
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.leafCountDocs = void 0;
|
7
|
+
var leafCountDocs = {
|
8
|
+
name: 'leafCount',
|
9
|
+
category: 'Algebra',
|
10
|
+
syntax: ['leafCount(expr)'],
|
11
|
+
description: 'Computes the number of leaves in the parse tree of the given expression',
|
12
|
+
examples: ['leafCount("e^(i*pi)-1")', 'leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],
|
13
|
+
seealso: ['simplify']
|
14
|
+
};
|
15
|
+
exports.leafCountDocs = leafCountDocs;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.resolveDocs = void 0;
|
7
|
+
var resolveDocs = {
|
8
|
+
name: 'resolve',
|
9
|
+
category: 'Algebra',
|
10
|
+
syntax: ['resolve(node, scope)'],
|
11
|
+
description: 'Recursively substitute variables in an expression tree.',
|
12
|
+
examples: ['resolve(parse("1 + x"), { x: 7 })', 'resolve(parse("size(text)"), { text: "Hello World" })', 'resolve(parse("x + y"), { x: parse("3z") })', 'resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],
|
13
|
+
seealso: ['simplify', 'evaluate'],
|
14
|
+
mayThrow: ['ReferenceError']
|
15
|
+
};
|
16
|
+
exports.resolveDocs = resolveDocs;
|
@@ -10,6 +10,6 @@ var simplifyDocs = {
|
|
10
10
|
syntax: ['simplify(expr)', 'simplify(expr, rules)'],
|
11
11
|
description: 'Simplify an expression tree.',
|
12
12
|
examples: ['simplify("3 + 2 / 4")', 'simplify("2x + x")', 'f = parse("x * (x + 2 + x)")', 'simplified = simplify(f)', 'simplified.evaluate({x: 2})'],
|
13
|
-
seealso: ['derivative', 'parse', '
|
13
|
+
seealso: ['simplifyCore', 'derivative', 'evaluate', 'parse', 'rationalize', 'resolve']
|
14
14
|
};
|
15
15
|
exports.simplifyDocs = simplifyDocs;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.simplifyCoreDocs = void 0;
|
7
|
+
var simplifyCoreDocs = {
|
8
|
+
name: 'simplifyCore',
|
9
|
+
category: 'Algebra',
|
10
|
+
syntax: ['simplifyCore(node)'],
|
11
|
+
description: 'Perform simple one-pass simplifications on an expression tree.',
|
12
|
+
examples: ['simplifyCore(parse("0*x"))', 'simplifyCore(parse("(x+0)*2"))'],
|
13
|
+
seealso: ['simplify', 'evaluate']
|
14
|
+
};
|
15
|
+
exports.simplifyCoreDocs = simplifyCoreDocs;
|