{"version":3,"file":"mathjs-BG5UYDNM.js","sources":["../../node_modules/mathjs/lib/cjs/core/config.js","../../node_modules/mathjs/lib/cjs/utils/is.js","../../node_modules/mathjs/lib/cjs/utils/object.js","../../node_modules/mathjs/lib/cjs/core/function/config.js","../../node_modules/mathjs/lib/cjs/entry/configReadonly.js","../../node_modules/mathjs/lib/cjs/utils/number.js","../../node_modules/mathjs/lib/cjs/utils/bignumber/formatter.js","../../node_modules/mathjs/lib/cjs/utils/string.js","../../node_modules/mathjs/lib/cjs/error/DimensionError.js","../../node_modules/mathjs/lib/cjs/error/IndexError.js","../../node_modules/mathjs/lib/cjs/utils/array.js","../../node_modules/mathjs/lib/cjs/utils/factory.js","../../node_modules/mathjs/lib/cjs/utils/customs.js","../../node_modules/mathjs/lib/cjs/utils/map.js","../../node_modules/mathjs/lib/cjs/core/function/typed.js","../../node_modules/mathjs/lib/cjs/type/resultset/ResultSet.js","../../node_modules/mathjs/lib/cjs/type/bignumber/BigNumber.js","../../node_modules/mathjs/lib/cjs/type/complex/Complex.js","../../node_modules/mathjs/lib/cjs/type/fraction/Fraction.js","../../node_modules/mathjs/lib/cjs/type/matrix/Range.js","../../node_modules/mathjs/lib/cjs/type/matrix/Matrix.js","../../node_modules/mathjs/lib/cjs/type/matrix/DenseMatrix.js","../../node_modules/mathjs/lib/cjs/function/utils/clone.js","../../node_modules/mathjs/lib/cjs/utils/switch.js","../../node_modules/mathjs/lib/cjs/utils/collection.js","../../node_modules/mathjs/lib/cjs/function/utils/isInteger.js","../../node_modules/mathjs/lib/cjs/plain/number/arithmetic.js","../../node_modules/mathjs/lib/cjs/plain/number/bitwise.js","../../node_modules/mathjs/lib/cjs/utils/product.js","../../node_modules/mathjs/lib/cjs/plain/number/combinations.js","../../node_modules/mathjs/lib/cjs/plain/number/constants.js","../../node_modules/mathjs/lib/cjs/plain/number/logical.js","../../node_modules/mathjs/lib/cjs/plain/number/probability.js","../../node_modules/mathjs/lib/cjs/plain/number/trigonometry.js","../../node_modules/mathjs/lib/cjs/plain/number/utils.js","../../node_modules/mathjs/lib/cjs/plain/number/index.js","../../node_modules/mathjs/lib/cjs/function/utils/isNegative.js","../../node_modules/mathjs/lib/cjs/function/utils/isNumeric.js","../../node_modules/mathjs/lib/cjs/function/utils/hasNumericValue.js","../../node_modules/mathjs/lib/cjs/function/utils/isPositive.js","../../node_modules/mathjs/lib/cjs/function/utils/isZero.js","../../node_modules/mathjs/lib/cjs/function/utils/isNaN.js","../../node_modules/mathjs/lib/cjs/function/utils/typeOf.js","../../node_modules/mathjs/lib/cjs/utils/bignumber/nearlyEqual.js","../../node_modules/mathjs/lib/cjs/utils/complex.js","../../node_modules/mathjs/lib/cjs/function/relational/equalScalar.js","../../node_modules/mathjs/lib/cjs/type/matrix/SparseMatrix.js","../../node_modules/mathjs/lib/cjs/type/number.js","../../node_modules/mathjs/lib/cjs/type/string.js","../../node_modules/mathjs/lib/cjs/type/boolean.js","../../node_modules/mathjs/lib/cjs/type/bignumber/function/bignumber.js","../../node_modules/mathjs/lib/cjs/type/complex/function/complex.js","../../node_modules/mathjs/lib/cjs/type/fraction/function/fraction.js","../../node_modules/mathjs/lib/cjs/type/matrix/function/matrix.js","../../node_modules/mathjs/lib/cjs/function/matrix/matrixFromFunction.js","../../node_modules/mathjs/lib/cjs/function/matrix/matrixFromRows.js","../../node_modules/mathjs/lib/cjs/function/matrix/matrixFromColumns.js","../../node_modules/mathjs/lib/cjs/type/unit/function/splitUnit.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/unaryMinus.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/unaryPlus.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/abs.js","../../node_modules/mathjs/lib/cjs/function/matrix/apply.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/addScalar.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/cbrt.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm11.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm12.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm14.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/ceil.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/cube.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/exp.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/expm1.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/fix.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/floor.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm01.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm04.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm10.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm13.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/gcd.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm02.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm06.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/lcm.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/log10.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/log2.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm03.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm05.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/mod.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/multiplyScalar.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/multiply.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/nthRoot.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/sign.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/sqrt.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/square.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/subtract.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/xgcd.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/invmod.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm09.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/dotMultiply.js","../../node_modules/mathjs/lib/cjs/utils/bignumber/bitwise.js","../../node_modules/mathjs/lib/cjs/function/bitwise/bitAnd.js","../../node_modules/mathjs/lib/cjs/function/bitwise/bitNot.js","../../node_modules/mathjs/lib/cjs/function/bitwise/bitOr.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm07.js","../../node_modules/mathjs/lib/cjs/function/bitwise/bitXor.js","../../node_modules/mathjs/lib/cjs/function/complex/arg.js","../../node_modules/mathjs/lib/cjs/function/complex/conj.js","../../node_modules/mathjs/lib/cjs/function/complex/im.js","../../node_modules/mathjs/lib/cjs/function/complex/re.js","../../node_modules/mathjs/lib/cjs/function/logical/not.js","../../node_modules/mathjs/lib/cjs/function/logical/or.js","../../node_modules/mathjs/lib/cjs/function/logical/xor.js","../../node_modules/mathjs/lib/cjs/function/matrix/concat.js","../../node_modules/mathjs/lib/cjs/function/matrix/column.js","../../node_modules/mathjs/lib/cjs/function/matrix/count.js","../../node_modules/mathjs/lib/cjs/function/matrix/cross.js","../../node_modules/mathjs/lib/cjs/function/matrix/diag.js","../../node_modules/mathjs/lib/cjs/utils/lruQueue.js","../../node_modules/mathjs/lib/cjs/utils/function.js","../../node_modules/mathjs/lib/cjs/function/matrix/filter.js","../../node_modules/mathjs/lib/cjs/function/matrix/flatten.js","../../node_modules/mathjs/lib/cjs/function/matrix/forEach.js","../../node_modules/mathjs/lib/cjs/function/matrix/getMatrixDataType.js","../../node_modules/mathjs/lib/cjs/function/matrix/identity.js","../../node_modules/mathjs/lib/cjs/function/matrix/kron.js","../../node_modules/mathjs/lib/cjs/function/matrix/map.js","../../node_modules/mathjs/lib/cjs/function/matrix/diff.js","../../node_modules/mathjs/lib/cjs/function/matrix/ones.js","../../node_modules/mathjs/lib/cjs/utils/noop.js","../../node_modules/mathjs/lib/cjs/function/matrix/range.js","../../node_modules/mathjs/lib/cjs/function/matrix/reshape.js","../../node_modules/mathjs/lib/cjs/error/ArgumentsError.js","../../node_modules/mathjs/lib/cjs/function/matrix/resize.js","../../node_modules/mathjs/lib/cjs/function/matrix/rotate.js","../../node_modules/mathjs/lib/cjs/function/matrix/rotationMatrix.js","../../node_modules/mathjs/lib/cjs/function/matrix/row.js","../../node_modules/mathjs/lib/cjs/function/matrix/size.js","../../node_modules/mathjs/lib/cjs/function/matrix/squeeze.js","../../node_modules/mathjs/lib/cjs/function/matrix/subset.js","../../node_modules/mathjs/lib/cjs/function/matrix/transpose.js","../../node_modules/mathjs/lib/cjs/function/matrix/ctranspose.js","../../node_modules/mathjs/lib/cjs/function/matrix/zeros.js","../../node_modules/mathjs/lib/cjs/function/matrix/fft.js","../../node_modules/mathjs/lib/cjs/function/matrix/ifft.js","../../node_modules/mathjs/lib/cjs/function/special/erf.js","../../node_modules/mathjs/lib/cjs/function/statistics/mode.js","../../node_modules/mathjs/lib/cjs/function/statistics/utils/improveErrorMessage.js","../../node_modules/mathjs/lib/cjs/function/statistics/prod.js","../../node_modules/mathjs/lib/cjs/function/string/format.js","../../node_modules/mathjs/lib/cjs/function/string/bin.js","../../node_modules/mathjs/lib/cjs/function/string/oct.js","../../node_modules/mathjs/lib/cjs/function/string/hex.js","../../node_modules/mathjs/lib/cjs/function/string/print.js","../../node_modules/mathjs/lib/cjs/function/unit/to.js","../../node_modules/mathjs/lib/cjs/function/utils/isPrime.js","../../node_modules/mathjs/lib/cjs/function/utils/numeric.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/divideScalar.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/pow.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/round.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/log.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/log1p.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/nthRoots.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/dotPow.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/dotDivide.js","../../node_modules/mathjs/lib/cjs/function/algebra/solver/utils/solveValidation.js","../../node_modules/mathjs/lib/cjs/function/algebra/solver/lsolve.js","../../node_modules/mathjs/lib/cjs/function/algebra/solver/usolve.js","../../node_modules/mathjs/lib/cjs/function/algebra/solver/lsolveAll.js","../../node_modules/mathjs/lib/cjs/function/algebra/solver/usolveAll.js","../../node_modules/mathjs/lib/cjs/type/matrix/utils/algorithm08.js","../../node_modules/mathjs/lib/cjs/function/bitwise/leftShift.js","../../node_modules/mathjs/lib/cjs/function/bitwise/rightArithShift.js","../../node_modules/mathjs/lib/cjs/function/bitwise/rightLogShift.js","../../node_modules/mathjs/lib/cjs/function/logical/and.js","../../node_modules/mathjs/lib/cjs/function/relational/compare.js","../../node_modules/mathjs/lib/cjs/function/relational/compareNatural.js","../../node_modules/mathjs/lib/cjs/function/relational/compareText.js","../../node_modules/mathjs/lib/cjs/function/relational/equal.js","../../node_modules/mathjs/lib/cjs/function/relational/equalText.js","../../node_modules/mathjs/lib/cjs/function/relational/smaller.js","../../node_modules/mathjs/lib/cjs/function/relational/smallerEq.js","../../node_modules/mathjs/lib/cjs/function/relational/larger.js","../../node_modules/mathjs/lib/cjs/function/relational/largerEq.js","../../node_modules/mathjs/lib/cjs/function/relational/deepEqual.js","../../node_modules/mathjs/lib/cjs/function/relational/unequal.js","../../node_modules/mathjs/lib/cjs/function/matrix/partitionSelect.js","../../node_modules/mathjs/lib/cjs/function/matrix/sort.js","../../node_modules/mathjs/lib/cjs/function/statistics/max.js","../../node_modules/mathjs/lib/cjs/function/statistics/min.js","../../node_modules/mathjs/lib/cjs/type/matrix/ImmutableDenseMatrix.js","../../node_modules/mathjs/lib/cjs/type/matrix/MatrixIndex.js","../../node_modules/mathjs/lib/cjs/type/matrix/FibonacciHeap.js","../../node_modules/mathjs/lib/cjs/type/matrix/Spa.js","../../node_modules/mathjs/lib/cjs/utils/bignumber/constants.js","../../node_modules/mathjs/lib/cjs/type/unit/Unit.js","../../node_modules/mathjs/lib/cjs/type/unit/function/unit.js","../../node_modules/mathjs/lib/cjs/type/matrix/function/sparse.js","../../node_modules/mathjs/lib/cjs/type/unit/function/createUnit.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/acos.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/acosh.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/acot.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/acoth.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/acsc.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/acsch.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/asec.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/asech.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/asin.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/asinh.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/atan.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/atan2.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/atanh.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/cos.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/cosh.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/cot.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/coth.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/csc.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/csch.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/sec.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/sech.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/sin.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/sinh.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/tan.js","../../node_modules/mathjs/lib/cjs/function/trigonometry/tanh.js","../../node_modules/mathjs/lib/cjs/function/set/setCartesian.js","../../node_modules/mathjs/lib/cjs/function/set/setDifference.js","../../node_modules/mathjs/lib/cjs/function/set/setDistinct.js","../../node_modules/mathjs/lib/cjs/function/set/setIntersect.js","../../node_modules/mathjs/lib/cjs/function/set/setIsSubset.js","../../node_modules/mathjs/lib/cjs/function/set/setMultiplicity.js","../../node_modules/mathjs/lib/cjs/function/set/setPowerset.js","../../node_modules/mathjs/lib/cjs/function/set/setSize.js","../../node_modules/mathjs/lib/cjs/function/set/setSymDifference.js","../../node_modules/mathjs/lib/cjs/function/set/setUnion.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/add.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/hypot.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/norm.js","../../node_modules/mathjs/lib/cjs/function/matrix/dot.js","../../node_modules/mathjs/lib/cjs/function/matrix/trace.js","../../node_modules/mathjs/lib/cjs/type/matrix/function/index.js","../../node_modules/mathjs/lib/cjs/expression/keywords.js","../../node_modules/mathjs/lib/cjs/expression/node/Node.js","../../node_modules/mathjs/lib/cjs/expression/transform/utils/errorTransform.js","../../node_modules/mathjs/lib/cjs/expression/node/utils/access.js","../../node_modules/mathjs/lib/cjs/expression/node/AccessorNode.js","../../node_modules/mathjs/lib/cjs/expression/node/ArrayNode.js","../../node_modules/mathjs/lib/cjs/expression/node/utils/assign.js","../../node_modules/mathjs/lib/cjs/expression/operators.js","../../node_modules/mathjs/lib/cjs/expression/node/AssignmentNode.js","../../node_modules/mathjs/lib/cjs/expression/node/BlockNode.js","../../node_modules/mathjs/lib/cjs/expression/node/ConditionalNode.js","../../node_modules/mathjs/lib/cjs/utils/latex.js","../../node_modules/mathjs/lib/cjs/expression/node/ConstantNode.js","../../node_modules/mathjs/lib/cjs/expression/node/FunctionAssignmentNode.js","../../node_modules/mathjs/lib/cjs/expression/node/IndexNode.js","../../node_modules/mathjs/lib/cjs/expression/node/ObjectNode.js","../../node_modules/mathjs/lib/cjs/expression/node/OperatorNode.js","../../node_modules/mathjs/lib/cjs/expression/node/ParenthesisNode.js","../../node_modules/mathjs/lib/cjs/expression/node/RangeNode.js","../../node_modules/mathjs/lib/cjs/expression/node/RelationalNode.js","../../node_modules/mathjs/lib/cjs/expression/node/SymbolNode.js","../../node_modules/mathjs/lib/cjs/utils/scope.js","../../node_modules/mathjs/lib/cjs/expression/node/FunctionNode.js","../../node_modules/mathjs/lib/cjs/expression/parse.js","../../node_modules/mathjs/lib/cjs/expression/function/compile.js","../../node_modules/mathjs/lib/cjs/expression/function/evaluate.js","../../node_modules/mathjs/lib/cjs/expression/Parser.js","../../node_modules/mathjs/lib/cjs/expression/function/parser.js","../../node_modules/mathjs/lib/cjs/function/algebra/decomposition/lup.js","../../node_modules/mathjs/lib/cjs/function/algebra/decomposition/qr.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csPermute.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csTdfs.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csPost.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csEtree.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csFkeep.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csFlip.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csAmd.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csLeaf.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csCounts.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csSqr.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csMarked.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csMark.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csUnflip.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csDfs.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csReach.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csSpsolve.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csLu.js","../../node_modules/mathjs/lib/cjs/function/algebra/decomposition/slu.js","../../node_modules/mathjs/lib/cjs/function/algebra/sparse/csIpvec.js","../../node_modules/mathjs/lib/cjs/function/algebra/solver/lusolve.js","../../node_modules/mathjs/lib/cjs/expression/Help.js","../../node_modules/mathjs/lib/cjs/type/chain/Chain.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/e.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/false.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/i.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/Infinity.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/LN10.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/LN2.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/LOG10E.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/LOG2E.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/NaN.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/null.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/phi.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/pi.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/SQRT1_2.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/SQRT2.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/tau.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/true.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/constants/version.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/bignumber.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/boolean.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/complex.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/createUnit.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/fraction.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/index.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/matrix.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/number.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/sparse.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/splitUnit.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/string.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/construction/unit.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/core/config.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/core/import.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/core/typed.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/derivative.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/leafCount.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/lsolve.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/lsolveAll.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/lup.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/lusolve.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/qr.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/rationalize.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/resolve.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/simplify.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/simplifyCore.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/slu.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/symbolicEqual.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/usolve.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/algebra/usolveAll.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/abs.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/add.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/cbrt.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/ceil.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/cube.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/divide.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/dotDivide.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/dotMultiply.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/dotPow.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/exp.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/expm.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/expm1.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/fix.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/floor.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/gcd.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/hypot.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/invmod.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/lcm.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/log.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/log10.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/log1p.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/log2.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/mod.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/multiply.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/norm.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/nthRoot.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/nthRoots.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/pow.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/round.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/sign.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/sqrt.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/sqrtm.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/square.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/subtract.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/unaryMinus.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/unaryPlus.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/arithmetic/xgcd.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/bitAnd.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/bitNot.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/bitOr.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/bitXor.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/leftShift.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/rightArithShift.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/bitwise/rightLogShift.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/combinatorics/bellNumbers.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/combinatorics/catalan.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/combinatorics/composition.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/combinatorics/stirlingS2.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/complex/arg.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/complex/conj.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/complex/im.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/complex/re.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/expression/evaluate.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/expression/help.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/geometry/distance.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/geometry/intersect.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/logical/and.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/logical/not.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/logical/or.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/logical/xor.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/column.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/concat.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/count.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/cross.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/ctranspose.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/det.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/diag.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/diff.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/dot.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/eigs.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/filter.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/flatten.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/getMatrixDataType.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/identity.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/inv.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/pinv.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/kron.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/map.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromColumns.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromFunction.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromRows.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/ones.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/partitionSelect.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/range.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/reshape.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/resize.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/rotate.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/rotationMatrix.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/row.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/size.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/sort.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/squeeze.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/subset.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/trace.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/transpose.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/zeros.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/fft.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/matrix/ifft.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/combinations.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/combinationsWithRep.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/factorial.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/gamma.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/lgamma.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/kldivergence.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/multinomial.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/permutations.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/pickRandom.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/random.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/probability/randomInt.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/compare.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/compareNatural.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/compareText.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/deepEqual.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/equal.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/equalText.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/larger.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/largerEq.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/smaller.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/smallerEq.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/relational/unequal.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setCartesian.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setDifference.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setDistinct.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setIntersect.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setIsSubset.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setMultiplicity.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setPowerset.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setSize.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setSymDifference.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/set/setUnion.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/special/erf.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/mad.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/max.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/mean.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/median.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/min.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/mode.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/prod.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/quantileSeq.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/std.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/cumsum.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/sum.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/statistics/variance.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/acos.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/acosh.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/acot.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/acoth.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/acsc.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/acsch.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/asec.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/asech.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/asin.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/asinh.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/atan.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/atan2.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/atanh.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/cos.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/cosh.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/cot.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/coth.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/csc.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/csch.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/sec.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/sech.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/sin.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/sinh.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/tan.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/trigonometry/tanh.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/units/to.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/bin.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/clone.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/format.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/hasNumericValue.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/hex.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isInteger.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isNaN.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isNegative.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isNumeric.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isPositive.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isPrime.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/isZero.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/numeric.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/oct.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/print.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/function/utils/typeOf.js","../../node_modules/mathjs/lib/cjs/expression/embeddedDocs/embeddedDocs.js","../../node_modules/mathjs/lib/cjs/expression/function/help.js","../../node_modules/mathjs/lib/cjs/type/chain/function/chain.js","../../node_modules/mathjs/lib/cjs/function/matrix/det.js","../../node_modules/mathjs/lib/cjs/function/matrix/inv.js","../../node_modules/mathjs/lib/cjs/function/matrix/pinv.js","../../node_modules/mathjs/lib/cjs/function/matrix/eigs/complexEigs.js","../../node_modules/mathjs/lib/cjs/function/matrix/eigs/realSymetric.js","../../node_modules/mathjs/lib/cjs/function/matrix/eigs.js","../../node_modules/mathjs/lib/cjs/function/matrix/expm.js","../../node_modules/mathjs/lib/cjs/function/matrix/sqrtm.js","../../node_modules/mathjs/lib/cjs/function/arithmetic/divide.js","../../node_modules/mathjs/lib/cjs/function/geometry/distance.js","../../node_modules/mathjs/lib/cjs/function/geometry/intersect.js","../../node_modules/mathjs/lib/cjs/function/statistics/sum.js","../../node_modules/mathjs/lib/cjs/function/statistics/cumsum.js","../../node_modules/mathjs/lib/cjs/function/statistics/mean.js","../../node_modules/mathjs/lib/cjs/function/statistics/median.js","../../node_modules/mathjs/lib/cjs/function/statistics/mad.js","../../node_modules/mathjs/lib/cjs/function/statistics/variance.js","../../node_modules/mathjs/lib/cjs/function/statistics/quantileSeq.js","../../node_modules/mathjs/lib/cjs/function/statistics/std.js","../../node_modules/mathjs/lib/cjs/function/probability/combinations.js","../../node_modules/mathjs/lib/cjs/function/probability/combinationsWithRep.js","../../node_modules/mathjs/lib/cjs/function/probability/gamma.js","../../node_modules/mathjs/lib/cjs/function/probability/lgamma.js","../../node_modules/mathjs/lib/cjs/function/probability/factorial.js","../../node_modules/mathjs/lib/cjs/function/probability/kldivergence.js","../../node_modules/mathjs/lib/cjs/function/probability/multinomial.js","../../node_modules/mathjs/lib/cjs/function/probability/permutations.js","../../node_modules/mathjs/lib/cjs/function/probability/util/seededRNG.js","../../node_modules/mathjs/lib/cjs/function/probability/pickRandom.js","../../node_modules/mathjs/lib/cjs/function/probability/util/randomMatrix.js","../../node_modules/mathjs/lib/cjs/function/probability/random.js","../../node_modules/mathjs/lib/cjs/function/probability/randomInt.js","../../node_modules/mathjs/lib/cjs/function/combinatorics/stirlingS2.js","../../node_modules/mathjs/lib/cjs/function/combinatorics/bellNumbers.js","../../node_modules/mathjs/lib/cjs/function/combinatorics/catalan.js","../../node_modules/mathjs/lib/cjs/function/combinatorics/composition.js","../../node_modules/mathjs/lib/cjs/function/algebra/leafCount.js","../../node_modules/mathjs/lib/cjs/function/algebra/simplify/util.js","../../node_modules/mathjs/lib/cjs/function/algebra/simplify/simplifyConstant.js","../../node_modules/mathjs/lib/cjs/function/algebra/simplify.js","../../node_modules/mathjs/lib/cjs/function/algebra/simplifyCore.js","../../node_modules/mathjs/lib/cjs/function/algebra/resolve.js","../../node_modules/mathjs/lib/cjs/function/algebra/symbolicEqual.js","../../node_modules/mathjs/lib/cjs/function/algebra/derivative.js","../../node_modules/mathjs/lib/cjs/function/algebra/rationalize.js","../../node_modules/mathjs/lib/cjs/json/reviver.js","../../node_modules/mathjs/lib/cjs/json/replacer.js","../../node_modules/mathjs/lib/cjs/version.js","../../node_modules/mathjs/lib/cjs/constants.js","../../node_modules/mathjs/lib/cjs/type/unit/physicalConstants.js","../../node_modules/mathjs/lib/cjs/expression/transform/apply.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/column.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/utils/compileInlineExpression.js","../../node_modules/mathjs/lib/cjs/expression/transform/filter.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/forEach.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/index.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/map.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/utils/lastDimToZeroBase.js","../../node_modules/mathjs/lib/cjs/expression/transform/max.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/mean.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/min.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/range.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/row.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/subset.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/concat.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/diff.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/std.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/sum.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/cumsum.transform.js","../../node_modules/mathjs/lib/cjs/expression/transform/variance.transform.js","../../node_modules/mathjs/lib/cjs/factoriesAny.js","../../node_modules/mathjs/lib/cjs/entry/pureFunctionsAny.generated.js","../../node_modules/mathjs/lib/cjs/entry/impureFunctionsAny.generated.js","../../node_modules/mathjs/lib/cjs/entry/typeChecks.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBigNumberClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesComplexClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMatrixClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDenseMatrixClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFractionClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTyped.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAbs.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesEqualScalar.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSparseMatrixClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMatrix.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSubset.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAccessorNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcos.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcosh.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcoth.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcsc.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAcsch.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAddScalar.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAdd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesZeros.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAnd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsInteger.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesApply.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesApplyTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesArg.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesArrayNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAsec.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAsech.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAsin.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAsinh.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAssignmentNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAtan.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAtan2.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAtanh.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBignumber.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFraction.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNumber.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNumeric.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDivideScalar.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesEqual.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRound.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCeil.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFloor.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFix.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFormat.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsNumeric.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMultiplyScalar.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIdentity.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsZero.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConj.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSize.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMultiply.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUnaryMinus.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSubtract.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDet.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesInv.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPow.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUnitClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAtomicMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesAvogadro.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsNegative.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCombinations.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesGamma.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFactorial.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLarger.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesStirlingS2.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBellNumbers.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBin.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBitAnd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBitNot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBitOr.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBitXor.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesResultSet.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBlockNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBohrMagneton.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBohrRadius.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBoltzmann.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesBoolean.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCatalan.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCbrt.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesChainClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesChain.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesClassicalElectronRadius.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesClone.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSmaller.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesImmutableDenseMatrixClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIndexClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLargerEq.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSmallerEq.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRange.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesColumn.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesColumnTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCombinationsWithRep.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCompare.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCompareNatural.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCompareText.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConditionalNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConstantNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFunctionAssignmentNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSymbolNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFunctionNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIndexNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesObjectNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesOperatorNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesParenthesisNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRangeNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRelationalNode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesParse.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCompile.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesComplex.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsPositive.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesComposition.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConcat.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConcatTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesConductanceQuantum.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCos.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCosh.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCoth.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCoulomb.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesProd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCount.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCreateUnit.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCross.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCsc.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCsch.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTranspose.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCtranspose.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCube.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUnaryPlus.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCumSum.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesCumSumTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDeepEqual.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDivide.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesResolve.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSimplifyCore.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDerivative.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDeuteronMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDiag.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDiff.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDiffTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSqrt.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDistance.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDotDivide.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDotMultiply.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesDotPow.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesE.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesEfimovFactor.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFlatten.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIm.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSign.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesQr.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRe.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSin.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUsolve.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUsolveAll.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesEigs.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesElectricConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesElectronMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesElementaryCharge.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesEqualText.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesErf.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesEvaluate.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesExp.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesExpm.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesExpm1.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFalse.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFaraday.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFermiCoupling.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesI.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTau.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFft.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFibonacciHeapClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFilter.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFilterTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFineStructure.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesFirstRadiation.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesForEach.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesForEachTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesGasConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesGcd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesGetMatrixDataType.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesGravitationConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesGravity.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesHartreeEnergy.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesHasNumericValue.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesHelpClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesHelp.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesHex.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesHypot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIfft.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIndex.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIndexTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesInfinity.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIntersect.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesInverseConductanceQuantum.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMod.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesXgcd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesInvmod.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsNaN.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsPrime.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLog.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSum.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesKldivergence.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesKlitzing.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesKron.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLN10.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLN2.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLOG10E.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLOG2E.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLcm.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLeafCount.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLeftShift.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLgamma.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLog10.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLog1p.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLog2.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLoschmidt.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLsolve.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLsolveAll.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSpaClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLup.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSlu.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesLusolve.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMap.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPartitionSelect.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMedian.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMad.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMagneticConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMagneticFluxQuantum.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMapTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMax.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMaxTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMean.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMeanTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMin.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMinTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMolarMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMolarMassC12.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMolarPlanckConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMolarVolume.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesMultinomial.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNaN.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNeutronMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNorm.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNthRoot.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNthRoots.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNuclearMagneton.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesNull.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesOct.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesOnes.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesOr.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesParserClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesParser.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPermutations.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPhi.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPi.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPickRandom.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPinv.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPlanckCharge.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPlanckConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPlanckLength.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPlanckMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPlanckTemperature.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPlanckTime.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesPrint.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesProtonMass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesQuantileSeq.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesQuantumOfCirculation.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRandom.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRandomInt.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRangeClass.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRangeTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesReducedPlanckConstant.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesReplacer.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesReshape.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesResize.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesReviver.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRightArithShift.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRightLogShift.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRotationMatrix.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRotate.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRow.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRowTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesRydberg.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSQRT1_2.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSQRT2.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSackurTetrode.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSec.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSech.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSecondRadiation.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetCartesian.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetDifference.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetDistinct.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetIntersect.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetIsSubset.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetMultiplicity.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetPowerset.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetSize.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetSymDifference.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSetUnion.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSinh.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSort.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSparse.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSpeedOfLight.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSplitUnit.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSqrtm.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSquare.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSqueeze.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesVariance.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesStd.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesStdTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesStefanBoltzmann.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesString.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSubsetTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSumTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTan.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTanh.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesThomsonCrossSection.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTo.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTrace.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTrue.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesTypeOf.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUnequal.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUnitFunction.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUppercaseE.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesUppercasePi.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesVacuumImpedance.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesVarianceTransform.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesVersion.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesWeakMixingAngle.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesWienDisplacement.generated.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesXor.generated.js","../../node_modules/mathjs/lib/cjs/entry/allFactoriesAny.js","../../node_modules/mathjs/lib/cjs/entry/dependenciesAny.generated.js","../../node_modules/mathjs/lib/cjs/utils/polyfills.js","../../node_modules/mathjs/lib/cjs/utils/emitter.js","../../node_modules/mathjs/lib/cjs/core/function/import.js","../../node_modules/mathjs/lib/cjs/core/create.js","../../node_modules/mathjs/lib/cjs/entry/mainAny.js","../../node_modules/mathjs/lib/cjs/index.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DEFAULT_CONFIG = void 0;\nvar DEFAULT_CONFIG = {\n // minimum relative difference between two compared values,\n // used by all comparison functions\n epsilon: 1e-12,\n // type of default matrix output. Choose 'matrix' (default) or 'array'\n matrix: 'Matrix',\n // type of default number output. Choose 'number' (default) 'BigNumber', or 'Fraction\n number: 'number',\n // number of significant digits in BigNumbers\n precision: 64,\n // predictable output type of functions. When true, output type depends only\n // on the input types. When false (default), output type can vary depending\n // on input values. For example `math.sqrt(-4)` returns `complex('2i')` when\n // predictable is false, and returns `NaN` when true.\n predictable: false,\n // random seed for seeded pseudo random number generation\n // null = randomly seed\n randomSeed: null\n};\nexports.DEFAULT_CONFIG = DEFAULT_CONFIG;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isAccessorNode = isAccessorNode;\nexports.isArray = void 0;\nexports.isArrayNode = isArrayNode;\nexports.isAssignmentNode = isAssignmentNode;\nexports.isBigNumber = isBigNumber;\nexports.isBlockNode = isBlockNode;\nexports.isBoolean = isBoolean;\nexports.isChain = isChain;\nexports.isCollection = isCollection;\nexports.isComplex = isComplex;\nexports.isConditionalNode = isConditionalNode;\nexports.isConstantNode = isConstantNode;\nexports.isDate = isDate;\nexports.isDenseMatrix = isDenseMatrix;\nexports.isFraction = isFraction;\nexports.isFunction = isFunction;\nexports.isFunctionAssignmentNode = isFunctionAssignmentNode;\nexports.isFunctionNode = isFunctionNode;\nexports.isHelp = isHelp;\nexports.isIndex = isIndex;\nexports.isIndexNode = isIndexNode;\nexports.isMatrix = isMatrix;\nexports.isNode = isNode;\nexports.isNull = isNull;\nexports.isNumber = isNumber;\nexports.isObject = isObject;\nexports.isObjectNode = isObjectNode;\nexports.isOperatorNode = isOperatorNode;\nexports.isParenthesisNode = isParenthesisNode;\nexports.isRange = isRange;\nexports.isRangeNode = isRangeNode;\nexports.isRegExp = isRegExp;\nexports.isResultSet = isResultSet;\nexports.isSparseMatrix = isSparseMatrix;\nexports.isString = isString;\nexports.isSymbolNode = isSymbolNode;\nexports.isUndefined = isUndefined;\nexports.isUnit = isUnit;\nexports.typeOf = typeOf;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\n// type checks for all known types\n//\n// note that:\n//\n// - check by duck-typing on a property like `isUnit`, instead of checking instanceof.\n// instanceof cannot be used because that would not allow to pass data from\n// one instance of math.js to another since each has it's own instance of Unit.\n// - check the `isUnit` property via the constructor, so there will be no\n// matches for \"fake\" instances like plain objects with a property `isUnit`.\n// That is important for security reasons.\n// - It must not be possible to override the type checks used internally,\n// for security reasons, so these functions are not exposed in the expression\n// parser.\nfunction isNumber(x) {\n return typeof x === 'number';\n}\n\nfunction isBigNumber(x) {\n if (!x || (0, _typeof2.default)(x) !== 'object' || typeof x.constructor !== 'function') {\n return false;\n }\n\n if (x.isBigNumber === true && (0, _typeof2.default)(x.constructor.prototype) === 'object' && x.constructor.prototype.isBigNumber === true) {\n return true;\n }\n\n if (typeof x.constructor.isDecimal === 'function' && x.constructor.isDecimal(x) === true) {\n return true;\n }\n\n return false;\n}\n\nfunction isComplex(x) {\n return x && (0, _typeof2.default)(x) === 'object' && Object.getPrototypeOf(x).isComplex === true || false;\n}\n\nfunction isFraction(x) {\n return x && (0, _typeof2.default)(x) === 'object' && Object.getPrototypeOf(x).isFraction === true || false;\n}\n\nfunction isUnit(x) {\n return x && x.constructor.prototype.isUnit === true || false;\n}\n\nfunction isString(x) {\n return typeof x === 'string';\n}\n\nvar isArray = Array.isArray;\nexports.isArray = isArray;\n\nfunction isMatrix(x) {\n return x && x.constructor.prototype.isMatrix === true || false;\n}\n/**\n * Test whether a value is a collection: an Array or Matrix\n * @param {*} x\n * @returns {boolean} isCollection\n */\n\n\nfunction isCollection(x) {\n return Array.isArray(x) || isMatrix(x);\n}\n\nfunction isDenseMatrix(x) {\n return x && x.isDenseMatrix && x.constructor.prototype.isMatrix === true || false;\n}\n\nfunction isSparseMatrix(x) {\n return x && x.isSparseMatrix && x.constructor.prototype.isMatrix === true || false;\n}\n\nfunction isRange(x) {\n return x && x.constructor.prototype.isRange === true || false;\n}\n\nfunction isIndex(x) {\n return x && x.constructor.prototype.isIndex === true || false;\n}\n\nfunction isBoolean(x) {\n return typeof x === 'boolean';\n}\n\nfunction isResultSet(x) {\n return x && x.constructor.prototype.isResultSet === true || false;\n}\n\nfunction isHelp(x) {\n return x && x.constructor.prototype.isHelp === true || false;\n}\n\nfunction isFunction(x) {\n return typeof x === 'function';\n}\n\nfunction isDate(x) {\n return x instanceof Date;\n}\n\nfunction isRegExp(x) {\n return x instanceof RegExp;\n}\n\nfunction isObject(x) {\n return !!(x && (0, _typeof2.default)(x) === 'object' && x.constructor === Object && !isComplex(x) && !isFraction(x));\n}\n\nfunction isNull(x) {\n return x === null;\n}\n\nfunction isUndefined(x) {\n return x === undefined;\n}\n\nfunction isAccessorNode(x) {\n return x && x.isAccessorNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isArrayNode(x) {\n return x && x.isArrayNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isAssignmentNode(x) {\n return x && x.isAssignmentNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isBlockNode(x) {\n return x && x.isBlockNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isConditionalNode(x) {\n return x && x.isConditionalNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isConstantNode(x) {\n return x && x.isConstantNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isFunctionAssignmentNode(x) {\n return x && x.isFunctionAssignmentNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isFunctionNode(x) {\n return x && x.isFunctionNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isIndexNode(x) {\n return x && x.isIndexNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isNode(x) {\n return x && x.isNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isObjectNode(x) {\n return x && x.isObjectNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isOperatorNode(x) {\n return x && x.isOperatorNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isParenthesisNode(x) {\n return x && x.isParenthesisNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isRangeNode(x) {\n return x && x.isRangeNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isSymbolNode(x) {\n return x && x.isSymbolNode === true && x.constructor.prototype.isNode === true || false;\n}\n\nfunction isChain(x) {\n return x && x.constructor.prototype.isChain === true || false;\n}\n\nfunction typeOf(x) {\n var t = (0, _typeof2.default)(x);\n\n if (t === 'object') {\n // JavaScript types\n if (x === null) return 'null';\n if (Array.isArray(x)) return 'Array';\n if (x instanceof Date) return 'Date';\n if (x instanceof RegExp) return 'RegExp'; // math.js types\n\n if (isBigNumber(x)) return 'BigNumber';\n if (isComplex(x)) return 'Complex';\n if (isFraction(x)) return 'Fraction';\n if (isMatrix(x)) return 'Matrix';\n if (isUnit(x)) return 'Unit';\n if (isIndex(x)) return 'Index';\n if (isRange(x)) return 'Range';\n if (isResultSet(x)) return 'ResultSet';\n if (isNode(x)) return x.type;\n if (isChain(x)) return 'Chain';\n if (isHelp(x)) return 'Help';\n return 'Object';\n }\n\n if (t === 'function') return 'Function';\n return t; // can be 'string', 'number', 'boolean', ...\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canDefineProperty = canDefineProperty;\nexports.clone = clone;\nexports.deepExtend = deepExtend;\nexports.deepFlatten = deepFlatten;\nexports.deepStrictEqual = deepStrictEqual;\nexports.extend = extend;\nexports.get = get;\nexports.hasOwnProperty = hasOwnProperty;\nexports.isLegacyFactory = isLegacyFactory;\nexports.lazy = lazy;\nexports.mapObject = mapObject;\nexports.pick = pick;\nexports.pickShallow = pickShallow;\nexports.set = set;\nexports.traverse = traverse;\nexports.values = values;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"./is.js\");\n\n/**\n * Clone an object\n *\n * clone(x)\n *\n * Can clone any primitive type, array, and object.\n * If x has a function clone, this function will be invoked to clone the object.\n *\n * @param {*} x\n * @return {*} clone\n */\nfunction clone(x) {\n var type = (0, _typeof2.default)(x); // immutable primitive types\n\n if (type === 'number' || type === 'string' || type === 'boolean' || x === null || x === undefined) {\n return x;\n } // use clone function of the object when available\n\n\n if (typeof x.clone === 'function') {\n return x.clone();\n } // array\n\n\n if (Array.isArray(x)) {\n return x.map(function (value) {\n return clone(value);\n });\n }\n\n if (x instanceof Date) return new Date(x.valueOf());\n if ((0, _is.isBigNumber)(x)) return x; // bignumbers are immutable\n\n if (x instanceof RegExp) throw new TypeError('Cannot clone ' + x); // TODO: clone a RegExp\n // object\n\n return mapObject(x, clone);\n}\n/**\n * Apply map to all properties of an object\n * @param {Object} object\n * @param {function} callback\n * @return {Object} Returns a copy of the object with mapped properties\n */\n\n\nfunction mapObject(object, callback) {\n var clone = {};\n\n for (var key in object) {\n if (hasOwnProperty(object, key)) {\n clone[key] = callback(object[key]);\n }\n }\n\n return clone;\n}\n/**\n * Extend object a with the properties of object b\n * @param {Object} a\n * @param {Object} b\n * @return {Object} a\n */\n\n\nfunction extend(a, b) {\n for (var prop in b) {\n if (hasOwnProperty(b, prop)) {\n a[prop] = b[prop];\n }\n }\n\n return a;\n}\n/**\n * Deep extend an object a with the properties of object b\n * @param {Object} a\n * @param {Object} b\n * @returns {Object}\n */\n\n\nfunction deepExtend(a, b) {\n // TODO: add support for Arrays to deepExtend\n if (Array.isArray(b)) {\n throw new TypeError('Arrays are not supported by deepExtend');\n }\n\n for (var prop in b) {\n // We check against prop not being in Object.prototype or Function.prototype\n // to prevent polluting for example Object.__proto__.\n if (hasOwnProperty(b, prop) && !(prop in Object.prototype) && !(prop in Function.prototype)) {\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n\n if (a[prop] && a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop]);\n } else {\n a[prop] = b[prop];\n }\n } else if (Array.isArray(b[prop])) {\n throw new TypeError('Arrays are not supported by deepExtend');\n } else {\n a[prop] = b[prop];\n }\n }\n }\n\n return a;\n}\n/**\n * Deep test equality of all fields in two pairs of arrays or objects.\n * Compares values and functions strictly (ie. 2 is not the same as '2').\n * @param {Array | Object} a\n * @param {Array | Object} b\n * @returns {boolean}\n */\n\n\nfunction deepStrictEqual(a, b) {\n var prop, i, len;\n\n if (Array.isArray(a)) {\n if (!Array.isArray(b)) {\n return false;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (i = 0, len = a.length; i < len; i++) {\n if (!deepStrictEqual(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n } else if (typeof a === 'function') {\n return a === b;\n } else if (a instanceof Object) {\n if (Array.isArray(b) || !(b instanceof Object)) {\n return false;\n }\n\n for (prop in a) {\n // noinspection JSUnfilteredForInLoop\n if (!(prop in b) || !deepStrictEqual(a[prop], b[prop])) {\n return false;\n }\n }\n\n for (prop in b) {\n // noinspection JSUnfilteredForInLoop\n if (!(prop in a)) {\n return false;\n }\n }\n\n return true;\n } else {\n return a === b;\n }\n}\n/**\n * Recursively flatten a nested object.\n * @param {Object} nestedObject\n * @return {Object} Returns the flattened object\n */\n\n\nfunction deepFlatten(nestedObject) {\n var flattenedObject = {};\n\n _deepFlatten(nestedObject, flattenedObject);\n\n return flattenedObject;\n} // helper function used by deepFlatten\n\n\nfunction _deepFlatten(nestedObject, flattenedObject) {\n for (var prop in nestedObject) {\n if (hasOwnProperty(nestedObject, prop)) {\n var value = nestedObject[prop];\n\n if ((0, _typeof2.default)(value) === 'object' && value !== null) {\n _deepFlatten(value, flattenedObject);\n } else {\n flattenedObject[prop] = value;\n }\n }\n }\n}\n/**\n * Test whether the current JavaScript engine supports Object.defineProperty\n * @returns {boolean} returns true if supported\n */\n\n\nfunction canDefineProperty() {\n // test needed for broken IE8 implementation\n try {\n if (Object.defineProperty) {\n Object.defineProperty({}, 'x', {\n get: function get() {\n return null;\n }\n });\n return true;\n }\n } catch (e) {}\n\n return false;\n}\n/**\n * Attach a lazy loading property to a constant.\n * The given function `fn` is called once when the property is first requested.\n *\n * @param {Object} object Object where to add the property\n * @param {string} prop Property name\n * @param {Function} valueResolver Function returning the property value. Called\n * without arguments.\n */\n\n\nfunction lazy(object, prop, valueResolver) {\n var _uninitialized = true;\n\n var _value;\n\n Object.defineProperty(object, prop, {\n get: function get() {\n if (_uninitialized) {\n _value = valueResolver();\n _uninitialized = false;\n }\n\n return _value;\n },\n set: function set(value) {\n _value = value;\n _uninitialized = false;\n },\n configurable: true,\n enumerable: true\n });\n}\n/**\n * Traverse a path into an object.\n * When a namespace is missing, it will be created\n * @param {Object} object\n * @param {string | string[]} path A dot separated string like 'name.space'\n * @return {Object} Returns the object at the end of the path\n */\n\n\nfunction traverse(object, path) {\n if (path && typeof path === 'string') {\n return traverse(object, path.split('.'));\n }\n\n var obj = object;\n\n if (path) {\n for (var i = 0; i < path.length; i++) {\n var key = path[i];\n\n if (!(key in obj)) {\n obj[key] = {};\n }\n\n obj = obj[key];\n }\n }\n\n return obj;\n}\n/**\n * A safe hasOwnProperty\n * @param {Object} object\n * @param {string} property\n */\n\n\nfunction hasOwnProperty(object, property) {\n return object && Object.hasOwnProperty.call(object, property);\n}\n/**\n * Test whether an object is a factory. a factory has fields:\n *\n * - factory: function (type: Object, config: Object, load: function, typed: function [, math: Object]) (required)\n * - name: string (optional)\n * - path: string A dot separated path (optional)\n * - math: boolean If true (false by default), the math namespace is passed\n * as fifth argument of the factory function\n *\n * @param {*} object\n * @returns {boolean}\n */\n\n\nfunction isLegacyFactory(object) {\n return object && typeof object.factory === 'function';\n}\n/**\n * Get a nested property from an object\n * @param {Object} object\n * @param {string | string[]} path\n * @returns {Object}\n */\n\n\nfunction get(object, path) {\n if (typeof path === 'string') {\n if (isPath(path)) {\n return get(object, path.split('.'));\n } else {\n return object[path];\n }\n }\n\n var child = object;\n\n for (var i = 0; i < path.length; i++) {\n var key = path[i];\n child = child ? child[key] : undefined;\n }\n\n return child;\n}\n/**\n * Set a nested property in an object\n * Mutates the object itself\n * If the path doesn't exist, it will be created\n * @param {Object} object\n * @param {string | string[]} path\n * @param {*} value\n * @returns {Object}\n */\n\n\nfunction set(object, path, value) {\n if (typeof path === 'string') {\n if (isPath(path)) {\n return set(object, path.split('.'), value);\n } else {\n object[path] = value;\n return object;\n }\n }\n\n var child = object;\n\n for (var i = 0; i < path.length - 1; i++) {\n var key = path[i];\n\n if (child[key] === undefined) {\n child[key] = {};\n }\n\n child = child[key];\n }\n\n if (path.length > 0) {\n var lastKey = path[path.length - 1];\n child[lastKey] = value;\n }\n\n return object;\n}\n/**\n * Create an object composed of the picked object properties\n * @param {Object} object\n * @param {string[]} properties\n * @param {function} [transform] Optional value to transform a value when picking it\n * @return {Object}\n */\n\n\nfunction pick(object, properties, transform) {\n var copy = {};\n\n for (var i = 0; i < properties.length; i++) {\n var key = properties[i];\n var value = get(object, key);\n\n if (value !== undefined) {\n set(copy, key, transform ? transform(value, key) : value);\n }\n }\n\n return copy;\n}\n/**\n * Shallow version of pick, creating an object composed of the picked object properties\n * but not for nested properties\n * @param {Object} object\n * @param {string[]} properties\n * @return {Object}\n */\n\n\nfunction pickShallow(object, properties) {\n var copy = {};\n\n for (var i = 0; i < properties.length; i++) {\n var key = properties[i];\n var value = object[key];\n\n if (value !== undefined) {\n copy[key] = value;\n }\n }\n\n return copy;\n}\n\nfunction values(object) {\n return Object.keys(object).map(function (key) {\n return object[key];\n });\n} // helper function to test whether a string contains a path like 'user.name'\n\n\nfunction isPath(str) {\n return str.indexOf('.') !== -1;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NUMBER_OPTIONS = exports.MATRIX_OPTIONS = void 0;\nexports.configFactory = configFactory;\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _config2 = require(\"../config.js\");\n\nvar MATRIX_OPTIONS = ['Matrix', 'Array']; // valid values for option matrix\n\nexports.MATRIX_OPTIONS = MATRIX_OPTIONS;\nvar NUMBER_OPTIONS = ['number', 'BigNumber', 'Fraction']; // valid values for option number\n\nexports.NUMBER_OPTIONS = NUMBER_OPTIONS;\n\nfunction configFactory(config, emit) {\n /**\n * Set configuration options for math.js, and get current options.\n * Will emit a 'config' event, with arguments (curr, prev, changes).\n *\n * This function is only available on a mathjs instance created using `create`.\n *\n * Syntax:\n *\n * math.config(config: Object): Object\n *\n * Examples:\n *\n *\n * import { create, all } from 'mathjs'\n *\n * // create a mathjs instance\n * const math = create(all)\n *\n * math.config().number // outputs 'number'\n * math.evaluate('0.4') // outputs number 0.4\n * math.config({number: 'Fraction'})\n * math.evaluate('0.4') // outputs Fraction 2/5\n *\n * @param {Object} [options] Available options:\n * {number} epsilon\n * Minimum relative difference between two\n * compared values, used by all comparison functions.\n * {string} matrix\n * A string 'Matrix' (default) or 'Array'.\n * {string} number\n * A string 'number' (default), 'BigNumber', or 'Fraction'\n * {number} precision\n * The number of significant digits for BigNumbers.\n * Not applicable for Numbers.\n * {string} parenthesis\n * How to display parentheses in LaTeX and string\n * output.\n * {string} randomSeed\n * Random seed for seeded pseudo random number generator.\n * Set to null to randomly seed.\n * @return {Object} Returns the current configuration\n */\n function _config(options) {\n if (options) {\n var prev = (0, _object.mapObject)(config, _object.clone); // validate some of the options\n\n validateOption(options, 'matrix', MATRIX_OPTIONS);\n validateOption(options, 'number', NUMBER_OPTIONS); // merge options\n\n (0, _object.deepExtend)(config, options);\n var curr = (0, _object.mapObject)(config, _object.clone);\n var changes = (0, _object.mapObject)(options, _object.clone); // emit 'config' event\n\n emit('config', curr, prev, changes);\n return curr;\n } else {\n return (0, _object.mapObject)(config, _object.clone);\n }\n } // attach the valid options to the function so they can be extended\n\n\n _config.MATRIX_OPTIONS = MATRIX_OPTIONS;\n _config.NUMBER_OPTIONS = NUMBER_OPTIONS; // attach the config properties as readonly properties to the config function\n\n Object.keys(_config2.DEFAULT_CONFIG).forEach(function (key) {\n Object.defineProperty(_config, key, {\n get: function get() {\n return config[key];\n },\n enumerable: true,\n configurable: true\n });\n });\n return _config;\n}\n/**\n * Test whether an Array contains a specific item.\n * @param {Array.} array\n * @param {string} item\n * @return {boolean}\n */\n\n\nfunction contains(array, item) {\n return array.indexOf(item) !== -1;\n}\n/**\n * Validate an option\n * @param {Object} options Object with options\n * @param {string} name Name of the option to validate\n * @param {Array.} values Array with valid values for this option\n */\n\n\nfunction validateOption(options, name, values) {\n if (options[name] !== undefined && !contains(values, options[name])) {\n // unknown value\n console.warn('Warning: Unknown value \"' + options[name] + '\" for configuration option \"' + name + '\". ' + 'Available options: ' + values.map(function (value) {\n return JSON.stringify(value);\n }).join(', ') + '.');\n }\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.config = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _config = require(\"../core/config.js\");\n\nvar _config2 = require(\"../core/function/config.js\");\n\n// create a read-only version of config\nvar config = /* #__PURE__ */function config(options) {\n if (options) {\n throw new Error('The global config is readonly. \\n' + 'Please create a mathjs instance if you want to change the default configuration. \\n' + 'Example:\\n' + '\\n' + ' import { create, all } from \\'mathjs\\';\\n' + ' const mathjs = create(all);\\n' + ' mathjs.config({ number: \\'BigNumber\\' });\\n');\n }\n\n return Object.freeze(_config.DEFAULT_CONFIG);\n};\n\nexports.config = config;\n(0, _extends2.default)(config, _config.DEFAULT_CONFIG, {\n MATRIX_OPTIONS: _config2.MATRIX_OPTIONS,\n NUMBER_OPTIONS: _config2.NUMBER_OPTIONS\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cbrt = exports.atanh = exports.asinh = exports.acosh = exports.DBL_EPSILON = void 0;\nexports.copysign = copysign;\nexports.cosh = void 0;\nexports.digits = digits;\nexports.expm1 = void 0;\nexports.format = format;\nexports.isInteger = isInteger;\nexports.log2 = exports.log1p = exports.log10 = void 0;\nexports.nearlyEqual = nearlyEqual;\nexports.roundDigits = roundDigits;\nexports.sinh = exports.sign = void 0;\nexports.splitNumber = splitNumber;\nexports.tanh = void 0;\nexports.toEngineering = toEngineering;\nexports.toExponential = toExponential;\nexports.toFixed = toFixed;\nexports.toPrecision = toPrecision;\n\nvar _is = require(\"./is.js\");\n\n/**\n * @typedef {{sign: '+' | '-' | '', coefficients: number[], exponent: number}} SplitValue\n */\n\n/**\n * Check if a number is integer\n * @param {number | boolean} value\n * @return {boolean} isInteger\n */\nfunction isInteger(value) {\n if (typeof value === 'boolean') {\n return true;\n }\n\n return isFinite(value) ? value === Math.round(value) : false;\n}\n/**\n * Calculate the sign of a number\n * @param {number} x\n * @returns {number}\n */\n\n\nvar sign = /* #__PURE__ */Math.sign || function (x) {\n if (x > 0) {\n return 1;\n } else if (x < 0) {\n return -1;\n } else {\n return 0;\n }\n};\n/**\n * Calculate the base-2 logarithm of a number\n * @param {number} x\n * @returns {number}\n */\n\n\nexports.sign = sign;\n\nvar log2 = /* #__PURE__ */Math.log2 || function log2(x) {\n return Math.log(x) / Math.LN2;\n};\n/**\n * Calculate the base-10 logarithm of a number\n * @param {number} x\n * @returns {number}\n */\n\n\nexports.log2 = log2;\n\nvar log10 = /* #__PURE__ */Math.log10 || function log10(x) {\n return Math.log(x) / Math.LN10;\n};\n/**\n * Calculate the natural logarithm of a number + 1\n * @param {number} x\n * @returns {number}\n */\n\n\nexports.log10 = log10;\n\nvar log1p = /* #__PURE__ */Math.log1p || function (x) {\n return Math.log(x + 1);\n};\n/**\n * Calculate cubic root for a number\n *\n * Code from es6-shim.js:\n * https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js#L1564-L1577\n *\n * @param {number} x\n * @returns {number} Returns the cubic root of x\n */\n\n\nexports.log1p = log1p;\n\nvar cbrt = /* #__PURE__ */Math.cbrt || function cbrt(x) {\n if (x === 0) {\n return x;\n }\n\n var negate = x < 0;\n var result;\n\n if (negate) {\n x = -x;\n }\n\n if (isFinite(x)) {\n result = Math.exp(Math.log(x) / 3); // from https://en.wikipedia.org/wiki/Cube_root#Numerical_methods\n\n result = (x / (result * result) + 2 * result) / 3;\n } else {\n result = x;\n }\n\n return negate ? -result : result;\n};\n/**\n * Calculates exponentiation minus 1\n * @param {number} x\n * @return {number} res\n */\n\n\nexports.cbrt = cbrt;\n\nvar expm1 = /* #__PURE__ */Math.expm1 || function expm1(x) {\n return x >= 2e-4 || x <= -2e-4 ? Math.exp(x) - 1 : x + x * x / 2 + x * x * x / 6;\n};\n/**\n * Formats a number in a given base\n * @param {number} n\n * @param {number} base\n * @param {number} size\n * @returns {string}\n */\n\n\nexports.expm1 = expm1;\n\nfunction formatNumberToBase(n, base, size) {\n var prefixes = {\n 2: '0b',\n 8: '0o',\n 16: '0x'\n };\n var prefix = prefixes[base];\n var suffix = '';\n\n if (size) {\n if (size < 1) {\n throw new Error('size must be in greater than 0');\n }\n\n if (!isInteger(size)) {\n throw new Error('size must be an integer');\n }\n\n if (n > Math.pow(2, size - 1) - 1 || n < -Math.pow(2, size - 1)) {\n throw new Error(\"Value must be in range [-2^\".concat(size - 1, \", 2^\").concat(size - 1, \"-1]\"));\n }\n\n if (!isInteger(n)) {\n throw new Error('Value must be an integer');\n }\n\n if (n < 0) {\n n = n + Math.pow(2, size);\n }\n\n suffix = \"i\".concat(size);\n }\n\n var sign = '';\n\n if (n < 0) {\n n = -n;\n sign = '-';\n }\n\n return \"\".concat(sign).concat(prefix).concat(n.toString(base)).concat(suffix);\n}\n/**\n * Convert a number to a formatted string representation.\n *\n * Syntax:\n *\n * format(value)\n * format(value, options)\n * format(value, precision)\n * format(value, fn)\n *\n * Where:\n *\n * {number} value The value to be formatted\n * {Object} options An object with formatting options. Available options:\n * {string} notation\n * Number notation. Choose from:\n * 'fixed' Always use regular number notation.\n * For example '123.40' and '14000000'\n * 'exponential' Always use exponential notation.\n * For example '1.234e+2' and '1.4e+7'\n * 'engineering' Always use engineering notation.\n * For example '123.4e+0' and '14.0e+6'\n * 'auto' (default) Regular number notation for numbers\n * having an absolute value between\n * `lowerExp` and `upperExp` bounds, and\n * uses exponential notation elsewhere.\n * Lower bound is included, upper bound\n * is excluded.\n * For example '123.4' and '1.4e7'.\n * 'bin', 'oct, or\n * 'hex' Format the number using binary, octal,\n * or hexadecimal notation.\n * For example '0b1101' and '0x10fe'.\n * {number} wordSize The word size in bits to use for formatting\n * in binary, octal, or hexadecimal notation.\n * To be used only with 'bin', 'oct', or 'hex'\n * values for 'notation' option. When this option\n * is defined the value is formatted as a signed\n * twos complement integer of the given word size\n * and the size suffix is appended to the output.\n * For example\n * format(-1, {notation: 'hex', wordSize: 8}) === '0xffi8'.\n * Default value is undefined.\n * {number} precision A number between 0 and 16 to round\n * the digits of the number.\n * In case of notations 'exponential',\n * 'engineering', and 'auto',\n * `precision` defines the total\n * number of significant digits returned.\n * In case of notation 'fixed',\n * `precision` defines the number of\n * significant digits after the decimal\n * point.\n * `precision` is undefined by default,\n * not rounding any digits.\n * {number} lowerExp Exponent determining the lower boundary\n * for formatting a value with an exponent\n * when `notation='auto`.\n * Default value is `-3`.\n * {number} upperExp Exponent determining the upper boundary\n * for formatting a value with an exponent\n * when `notation='auto`.\n * Default value is `5`.\n * {Function} fn A custom formatting function. Can be used to override the\n * built-in notations. Function `fn` is called with `value` as\n * parameter and must return a string. Is useful for example to\n * format all values inside a matrix in a particular way.\n *\n * Examples:\n *\n * format(6.4) // '6.4'\n * format(1240000) // '1.24e6'\n * format(1/3) // '0.3333333333333333'\n * format(1/3, 3) // '0.333'\n * format(21385, 2) // '21000'\n * format(12.071, {notation: 'fixed'}) // '12'\n * format(2.3, {notation: 'fixed', precision: 2}) // '2.30'\n * format(52.8, {notation: 'exponential'}) // '5.28e+1'\n * format(12345678, {notation: 'engineering'}) // '12.345678e+6'\n *\n * @param {number} value\n * @param {Object | Function | number} [options]\n * @return {string} str The formatted value\n */\n\n\nfunction format(value, options) {\n if (typeof options === 'function') {\n // handle format(value, fn)\n return options(value);\n } // handle special cases\n\n\n if (value === Infinity) {\n return 'Infinity';\n } else if (value === -Infinity) {\n return '-Infinity';\n } else if (isNaN(value)) {\n return 'NaN';\n } // default values for options\n\n\n var notation = 'auto';\n var precision;\n var wordSize;\n\n if (options) {\n // determine notation from options\n if (options.notation) {\n notation = options.notation;\n } // determine precision from options\n\n\n if ((0, _is.isNumber)(options)) {\n precision = options;\n } else if ((0, _is.isNumber)(options.precision)) {\n precision = options.precision;\n }\n\n if (options.wordSize) {\n wordSize = options.wordSize;\n\n if (typeof wordSize !== 'number') {\n throw new Error('Option \"wordSize\" must be a number');\n }\n }\n } // handle the various notations\n\n\n switch (notation) {\n case 'fixed':\n return toFixed(value, precision);\n\n case 'exponential':\n return toExponential(value, precision);\n\n case 'engineering':\n return toEngineering(value, precision);\n\n case 'bin':\n return formatNumberToBase(value, 2, wordSize);\n\n case 'oct':\n return formatNumberToBase(value, 8, wordSize);\n\n case 'hex':\n return formatNumberToBase(value, 16, wordSize);\n\n case 'auto':\n // remove trailing zeros after the decimal point\n return toPrecision(value, precision, options && options).replace(/((\\.\\d*?)(0+))($|e)/, function () {\n var digits = arguments[2];\n var e = arguments[4];\n return digits !== '.' ? digits + e : e;\n });\n\n default:\n throw new Error('Unknown notation \"' + notation + '\". ' + 'Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.');\n }\n}\n/**\n * Split a number into sign, coefficients, and exponent\n * @param {number | string} value\n * @return {SplitValue}\n * Returns an object containing sign, coefficients, and exponent\n */\n\n\nfunction splitNumber(value) {\n // parse the input value\n var match = String(value).toLowerCase().match(/^(-?)(\\d+\\.?\\d*)(e([+-]?\\d+))?$/);\n\n if (!match) {\n throw new SyntaxError('Invalid number ' + value);\n }\n\n var sign = match[1];\n var digits = match[2];\n var exponent = parseFloat(match[4] || '0');\n var dot = digits.indexOf('.');\n exponent += dot !== -1 ? dot - 1 : digits.length - 1;\n var coefficients = digits.replace('.', '') // remove the dot (must be removed before removing leading zeros)\n .replace(/^0*/, function (zeros) {\n // remove leading zeros, add their count to the exponent\n exponent -= zeros.length;\n return '';\n }).replace(/0*$/, '') // remove trailing zeros\n .split('').map(function (d) {\n return parseInt(d);\n });\n\n if (coefficients.length === 0) {\n coefficients.push(0);\n exponent++;\n }\n\n return {\n sign: sign,\n coefficients: coefficients,\n exponent: exponent\n };\n}\n/**\n * Format a number in engineering notation. Like '1.23e+6', '2.3e+0', '3.500e-3'\n * @param {number | string} value\n * @param {number} [precision] Optional number of significant figures to return.\n */\n\n\nfunction toEngineering(value, precision) {\n if (isNaN(value) || !isFinite(value)) {\n return String(value);\n }\n\n var split = splitNumber(value);\n var rounded = roundDigits(split, precision);\n var e = rounded.exponent;\n var c = rounded.coefficients; // find nearest lower multiple of 3 for exponent\n\n var newExp = e % 3 === 0 ? e : e < 0 ? e - 3 - e % 3 : e - e % 3;\n\n if ((0, _is.isNumber)(precision)) {\n // add zeroes to give correct sig figs\n while (precision > c.length || e - newExp + 1 > c.length) {\n c.push(0);\n }\n } else {\n // concatenate coefficients with necessary zeros\n // add zeros if necessary (for example: 1e+8 -> 100e+6)\n var missingZeros = Math.abs(e - newExp) - (c.length - 1);\n\n for (var i = 0; i < missingZeros; i++) {\n c.push(0);\n }\n } // find difference in exponents\n\n\n var expDiff = Math.abs(e - newExp);\n var decimalIdx = 1; // push decimal index over by expDiff times\n\n while (expDiff > 0) {\n decimalIdx++;\n expDiff--;\n } // if all coefficient values are zero after the decimal point and precision is unset, don't add a decimal value.\n // otherwise concat with the rest of the coefficients\n\n\n var decimals = c.slice(decimalIdx).join('');\n var decimalVal = (0, _is.isNumber)(precision) && decimals.length || decimals.match(/[1-9]/) ? '.' + decimals : '';\n var str = c.slice(0, decimalIdx).join('') + decimalVal + 'e' + (e >= 0 ? '+' : '') + newExp.toString();\n return rounded.sign + str;\n}\n/**\n * Format a number with fixed notation.\n * @param {number | string} value\n * @param {number} [precision=undefined] Optional number of decimals after the\n * decimal point. null by default.\n */\n\n\nfunction toFixed(value, precision) {\n if (isNaN(value) || !isFinite(value)) {\n return String(value);\n }\n\n var splitValue = splitNumber(value);\n var rounded = typeof precision === 'number' ? roundDigits(splitValue, splitValue.exponent + 1 + precision) : splitValue;\n var c = rounded.coefficients;\n var p = rounded.exponent + 1; // exponent may have changed\n // append zeros if needed\n\n var pp = p + (precision || 0);\n\n if (c.length < pp) {\n c = c.concat(zeros(pp - c.length));\n } // prepend zeros if needed\n\n\n if (p < 0) {\n c = zeros(-p + 1).concat(c);\n p = 1;\n } // insert a dot if needed\n\n\n if (p < c.length) {\n c.splice(p, 0, p === 0 ? '0.' : '.');\n }\n\n return rounded.sign + c.join('');\n}\n/**\n * Format a number in exponential notation. Like '1.23e+5', '2.3e+0', '3.500e-3'\n * @param {number | string} value\n * @param {number} [precision] Number of digits in formatted output.\n * If not provided, the maximum available digits\n * is used.\n */\n\n\nfunction toExponential(value, precision) {\n if (isNaN(value) || !isFinite(value)) {\n return String(value);\n } // round if needed, else create a clone\n\n\n var split = splitNumber(value);\n var rounded = precision ? roundDigits(split, precision) : split;\n var c = rounded.coefficients;\n var e = rounded.exponent; // append zeros if needed\n\n if (c.length < precision) {\n c = c.concat(zeros(precision - c.length));\n } // format as `C.CCCe+EEE` or `C.CCCe-EEE`\n\n\n var first = c.shift();\n return rounded.sign + first + (c.length > 0 ? '.' + c.join('') : '') + 'e' + (e >= 0 ? '+' : '') + e;\n}\n/**\n * Format a number with a certain precision\n * @param {number | string} value\n * @param {number} [precision=undefined] Optional number of digits.\n * @param {{lowerExp: number | undefined, upperExp: number | undefined}} [options]\n * By default:\n * lowerExp = -3 (incl)\n * upper = +5 (excl)\n * @return {string}\n */\n\n\nfunction toPrecision(value, precision, options) {\n if (isNaN(value) || !isFinite(value)) {\n return String(value);\n } // determine lower and upper bound for exponential notation.\n\n\n var lowerExp = options && options.lowerExp !== undefined ? options.lowerExp : -3;\n var upperExp = options && options.upperExp !== undefined ? options.upperExp : 5;\n var split = splitNumber(value);\n var rounded = precision ? roundDigits(split, precision) : split;\n\n if (rounded.exponent < lowerExp || rounded.exponent >= upperExp) {\n // exponential notation\n return toExponential(value, precision);\n } else {\n var c = rounded.coefficients;\n var e = rounded.exponent; // append trailing zeros\n\n if (c.length < precision) {\n c = c.concat(zeros(precision - c.length));\n } // append trailing zeros\n // TODO: simplify the next statement\n\n\n c = c.concat(zeros(e - c.length + 1 + (c.length < precision ? precision - c.length : 0))); // prepend zeros\n\n c = zeros(-e).concat(c);\n var dot = e > 0 ? e : 0;\n\n if (dot < c.length - 1) {\n c.splice(dot + 1, 0, '.');\n }\n\n return rounded.sign + c.join('');\n }\n}\n/**\n * Round the number of digits of a number *\n * @param {SplitValue} split A value split with .splitNumber(value)\n * @param {number} precision A positive integer\n * @return {SplitValue}\n * Returns an object containing sign, coefficients, and exponent\n * with rounded digits\n */\n\n\nfunction roundDigits(split, precision) {\n // create a clone\n var rounded = {\n sign: split.sign,\n coefficients: split.coefficients,\n exponent: split.exponent\n };\n var c = rounded.coefficients; // prepend zeros if needed\n\n while (precision <= 0) {\n c.unshift(0);\n rounded.exponent++;\n precision++;\n }\n\n if (c.length > precision) {\n var removed = c.splice(precision, c.length - precision);\n\n if (removed[0] >= 5) {\n var i = precision - 1;\n c[i]++;\n\n while (c[i] === 10) {\n c.pop();\n\n if (i === 0) {\n c.unshift(0);\n rounded.exponent++;\n i++;\n }\n\n i--;\n c[i]++;\n }\n }\n }\n\n return rounded;\n}\n/**\n * Create an array filled with zeros.\n * @param {number} length\n * @return {Array}\n */\n\n\nfunction zeros(length) {\n var arr = [];\n\n for (var i = 0; i < length; i++) {\n arr.push(0);\n }\n\n return arr;\n}\n/**\n * Count the number of significant digits of a number.\n *\n * For example:\n * 2.34 returns 3\n * 0.0034 returns 2\n * 120.5e+30 returns 4\n *\n * @param {number} value\n * @return {number} digits Number of significant digits\n */\n\n\nfunction digits(value) {\n return value.toExponential().replace(/e.*$/, '') // remove exponential notation\n .replace(/^0\\.?0*|\\./, '') // remove decimal point and leading zeros\n .length;\n}\n/**\n * Minimum number added to one that makes the result different than one\n */\n\n\nvar DBL_EPSILON = Number.EPSILON || 2.2204460492503130808472633361816E-16;\n/**\n * Compares two floating point numbers.\n * @param {number} x First value to compare\n * @param {number} y Second value to compare\n * @param {number} [epsilon] The maximum relative difference between x and y\n * If epsilon is undefined or null, the function will\n * test whether x and y are exactly equal.\n * @return {boolean} whether the two numbers are nearly equal\n*/\n\nexports.DBL_EPSILON = DBL_EPSILON;\n\nfunction nearlyEqual(x, y, epsilon) {\n // if epsilon is null or undefined, test whether x and y are exactly equal\n if (epsilon === null || epsilon === undefined) {\n return x === y;\n }\n\n if (x === y) {\n return true;\n } // NaN\n\n\n if (isNaN(x) || isNaN(y)) {\n return false;\n } // at this point x and y should be finite\n\n\n if (isFinite(x) && isFinite(y)) {\n // check numbers are very close, needed when comparing numbers near zero\n var diff = Math.abs(x - y);\n\n if (diff < DBL_EPSILON) {\n return true;\n } else {\n // use relative error\n return diff <= Math.max(Math.abs(x), Math.abs(y)) * epsilon;\n }\n } // Infinite and Number or negative Infinite and positive Infinite cases\n\n\n return false;\n}\n/**\n * Calculate the hyperbolic arccos of a number\n * @param {number} x\n * @return {number}\n */\n\n\nvar acosh = Math.acosh || function (x) {\n return Math.log(Math.sqrt(x * x - 1) + x);\n};\n\nexports.acosh = acosh;\n\nvar asinh = Math.asinh || function (x) {\n return Math.log(Math.sqrt(x * x + 1) + x);\n};\n/**\n * Calculate the hyperbolic arctangent of a number\n * @param {number} x\n * @return {number}\n */\n\n\nexports.asinh = asinh;\n\nvar atanh = Math.atanh || function (x) {\n return Math.log((1 + x) / (1 - x)) / 2;\n};\n/**\n * Calculate the hyperbolic cosine of a number\n * @param {number} x\n * @returns {number}\n */\n\n\nexports.atanh = atanh;\n\nvar cosh = Math.cosh || function (x) {\n return (Math.exp(x) + Math.exp(-x)) / 2;\n};\n/**\n * Calculate the hyperbolic sine of a number\n * @param {number} x\n * @returns {number}\n */\n\n\nexports.cosh = cosh;\n\nvar sinh = Math.sinh || function (x) {\n return (Math.exp(x) - Math.exp(-x)) / 2;\n};\n/**\n * Calculate the hyperbolic tangent of a number\n * @param {number} x\n * @returns {number}\n */\n\n\nexports.sinh = sinh;\n\nvar tanh = Math.tanh || function (x) {\n var e = Math.exp(2 * x);\n return (e - 1) / (e + 1);\n};\n/**\n * Returns a value with the magnitude of x and the sign of y.\n * @param {number} x\n * @param {number} y\n * @returns {number}\n */\n\n\nexports.tanh = tanh;\n\nfunction copysign(x, y) {\n var signx = x > 0 ? true : x < 0 ? false : 1 / x === Infinity;\n var signy = y > 0 ? true : y < 0 ? false : 1 / y === Infinity;\n return signx ^ signy ? -x : x;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.format = format;\nexports.toEngineering = toEngineering;\nexports.toExponential = toExponential;\nexports.toFixed = toFixed;\n\nvar _number = require(\"../number.js\");\n\n/**\n * Formats a BigNumber in a given base\n * @param {BigNumber} n\n * @param {number} base\n * @param {number} size\n * @returns {string}\n */\nfunction formatBigNumberToBase(n, base, size) {\n var BigNumberCtor = n.constructor;\n var big2 = new BigNumberCtor(2);\n var suffix = '';\n\n if (size) {\n if (size < 1) {\n throw new Error('size must be in greater than 0');\n }\n\n if (!(0, _number.isInteger)(size)) {\n throw new Error('size must be an integer');\n }\n\n if (n.greaterThan(big2.pow(size - 1).sub(1)) || n.lessThan(big2.pow(size - 1).mul(-1))) {\n throw new Error(\"Value must be in range [-2^\".concat(size - 1, \", 2^\").concat(size - 1, \"-1]\"));\n }\n\n if (!n.isInteger()) {\n throw new Error('Value must be an integer');\n }\n\n if (n.lessThan(0)) {\n n = n.add(big2.pow(size));\n }\n\n suffix = \"i\".concat(size);\n }\n\n switch (base) {\n case 2:\n return \"\".concat(n.toBinary()).concat(suffix);\n\n case 8:\n return \"\".concat(n.toOctal()).concat(suffix);\n\n case 16:\n return \"\".concat(n.toHexadecimal()).concat(suffix);\n\n default:\n throw new Error(\"Base \".concat(base, \" not supported \"));\n }\n}\n/**\n * Convert a BigNumber to a formatted string representation.\n *\n * Syntax:\n *\n * format(value)\n * format(value, options)\n * format(value, precision)\n * format(value, fn)\n *\n * Where:\n *\n * {number} value The value to be formatted\n * {Object} options An object with formatting options. Available options:\n * {string} notation\n * Number notation. Choose from:\n * 'fixed' Always use regular number notation.\n * For example '123.40' and '14000000'\n * 'exponential' Always use exponential notation.\n * For example '1.234e+2' and '1.4e+7'\n * 'auto' (default) Regular number notation for numbers\n * having an absolute value between\n * `lower` and `upper` bounds, and uses\n * exponential notation elsewhere.\n * Lower bound is included, upper bound\n * is excluded.\n * For example '123.4' and '1.4e7'.\n * 'bin', 'oct, or\n * 'hex' Format the number using binary, octal,\n * or hexadecimal notation.\n * For example '0b1101' and '0x10fe'.\n * {number} wordSize The word size in bits to use for formatting\n * in binary, octal, or hexadecimal notation.\n * To be used only with 'bin', 'oct', or 'hex'\n * values for 'notation' option. When this option\n * is defined the value is formatted as a signed\n * twos complement integer of the given word size\n * and the size suffix is appended to the output.\n * For example\n * format(-1, {notation: 'hex', wordSize: 8}) === '0xffi8'.\n * Default value is undefined.\n * {number} precision A number between 0 and 16 to round\n * the digits of the number.\n * In case of notations 'exponential',\n * 'engineering', and 'auto',\n * `precision` defines the total\n * number of significant digits returned.\n * In case of notation 'fixed',\n * `precision` defines the number of\n * significant digits after the decimal\n * point.\n * `precision` is undefined by default.\n * {number} lowerExp Exponent determining the lower boundary\n * for formatting a value with an exponent\n * when `notation='auto`.\n * Default value is `-3`.\n * {number} upperExp Exponent determining the upper boundary\n * for formatting a value with an exponent\n * when `notation='auto`.\n * Default value is `5`.\n * {Function} fn A custom formatting function. Can be used to override the\n * built-in notations. Function `fn` is called with `value` as\n * parameter and must return a string. Is useful for example to\n * format all values inside a matrix in a particular way.\n *\n * Examples:\n *\n * format(6.4) // '6.4'\n * format(1240000) // '1.24e6'\n * format(1/3) // '0.3333333333333333'\n * format(1/3, 3) // '0.333'\n * format(21385, 2) // '21000'\n * format(12e8, {notation: 'fixed'}) // returns '1200000000'\n * format(2.3, {notation: 'fixed', precision: 4}) // returns '2.3000'\n * format(52.8, {notation: 'exponential'}) // returns '5.28e+1'\n * format(12400, {notation: 'engineering'}) // returns '12.400e+3'\n *\n * @param {BigNumber} value\n * @param {Object | Function | number} [options]\n * @return {string} str The formatted value\n */\n\n\nfunction format(value, options) {\n if (typeof options === 'function') {\n // handle format(value, fn)\n return options(value);\n } // handle special cases\n\n\n if (!value.isFinite()) {\n return value.isNaN() ? 'NaN' : value.gt(0) ? 'Infinity' : '-Infinity';\n } // default values for options\n\n\n var notation = 'auto';\n var precision;\n var wordSize;\n\n if (options !== undefined) {\n // determine notation from options\n if (options.notation) {\n notation = options.notation;\n } // determine precision from options\n\n\n if (typeof options === 'number') {\n precision = options;\n } else if (options.precision) {\n precision = options.precision;\n }\n\n if (options.wordSize) {\n wordSize = options.wordSize;\n\n if (typeof wordSize !== 'number') {\n throw new Error('Option \"wordSize\" must be a number');\n }\n }\n } // handle the various notations\n\n\n switch (notation) {\n case 'fixed':\n return toFixed(value, precision);\n\n case 'exponential':\n return toExponential(value, precision);\n\n case 'engineering':\n return toEngineering(value, precision);\n\n case 'bin':\n return formatBigNumberToBase(value, 2, wordSize);\n\n case 'oct':\n return formatBigNumberToBase(value, 8, wordSize);\n\n case 'hex':\n return formatBigNumberToBase(value, 16, wordSize);\n\n case 'auto':\n {\n // determine lower and upper bound for exponential notation.\n // TODO: implement support for upper and lower to be BigNumbers themselves\n var lowerExp = options && options.lowerExp !== undefined ? options.lowerExp : -3;\n var upperExp = options && options.upperExp !== undefined ? options.upperExp : 5; // handle special case zero\n\n if (value.isZero()) return '0'; // determine whether or not to output exponential notation\n\n var str;\n var rounded = value.toSignificantDigits(precision);\n var exp = rounded.e;\n\n if (exp >= lowerExp && exp < upperExp) {\n // normal number notation\n str = rounded.toFixed();\n } else {\n // exponential notation\n str = toExponential(value, precision);\n } // remove trailing zeros after the decimal point\n\n\n return str.replace(/((\\.\\d*?)(0+))($|e)/, function () {\n var digits = arguments[2];\n var e = arguments[4];\n return digits !== '.' ? digits + e : e;\n });\n }\n\n default:\n throw new Error('Unknown notation \"' + notation + '\". ' + 'Choose \"auto\", \"exponential\", \"fixed\", \"bin\", \"oct\", or \"hex.');\n }\n}\n/**\n * Format a BigNumber in engineering notation. Like '1.23e+6', '2.3e+0', '3.500e-3'\n * @param {BigNumber | string} value\n * @param {number} [precision] Optional number of significant figures to return.\n */\n\n\nfunction toEngineering(value, precision) {\n // find nearest lower multiple of 3 for exponent\n var e = value.e;\n var newExp = e % 3 === 0 ? e : e < 0 ? e - 3 - e % 3 : e - e % 3; // find difference in exponents, and calculate the value without exponent\n\n var valueWithoutExp = value.mul(Math.pow(10, -newExp));\n var valueStr = valueWithoutExp.toPrecision(precision);\n\n if (valueStr.indexOf('e') !== -1) {\n valueStr = valueWithoutExp.toString();\n }\n\n return valueStr + 'e' + (e >= 0 ? '+' : '') + newExp.toString();\n}\n/**\n * Format a number in exponential notation. Like '1.23e+5', '2.3e+0', '3.500e-3'\n * @param {BigNumber} value\n * @param {number} [precision] Number of digits in formatted output.\n * If not provided, the maximum available digits\n * is used.\n * @returns {string} str\n */\n\n\nfunction toExponential(value, precision) {\n if (precision !== undefined) {\n return value.toExponential(precision - 1); // Note the offset of one\n } else {\n return value.toExponential();\n }\n}\n/**\n * Format a number with fixed notation.\n * @param {BigNumber} value\n * @param {number} [precision=undefined] Optional number of decimals after the\n * decimal point. Undefined by default.\n */\n\n\nfunction toFixed(value, precision) {\n return value.toFixed(precision);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareText = compareText;\nexports.endsWith = endsWith;\nexports.escape = escape;\nexports.format = format;\nexports.stringify = stringify;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"./is.js\");\n\nvar _number = require(\"./number.js\");\n\nvar _formatter = require(\"./bignumber/formatter.js\");\n\n/**\n * Check if a text ends with a certain string.\n * @param {string} text\n * @param {string} search\n */\nfunction endsWith(text, search) {\n var start = text.length - search.length;\n var end = text.length;\n return text.substring(start, end) === search;\n}\n/**\n * Format a value of any type into a string.\n *\n * Usage:\n * math.format(value)\n * math.format(value, precision)\n * math.format(value, options)\n *\n * When value is a function:\n *\n * - When the function has a property `syntax`, it returns this\n * syntax description.\n * - In other cases, a string `'function'` is returned.\n *\n * When `value` is an Object:\n *\n * - When the object contains a property `format` being a function, this\n * function is invoked as `value.format(options)` and the result is returned.\n * - When the object has its own `toString` method, this method is invoked\n * and the result is returned.\n * - In other cases the function will loop over all object properties and\n * return JSON object notation like '{\"a\": 2, \"b\": 3}'.\n *\n * Example usage:\n * math.format(2/7) // '0.2857142857142857'\n * math.format(math.pi, 3) // '3.14'\n * math.format(new Complex(2, 3)) // '2 + 3i'\n * math.format('hello') // '\"hello\"'\n *\n * @param {*} value Value to be stringified\n * @param {Object | number | Function} [options]\n * Formatting options. See src/utils/number.js:format for a\n * description of the available options controlling number output.\n * This generic \"format\" also supports the option property `truncate: NN`\n * giving the maximum number NN of characters to return (if there would\n * have been more, they are deleted and replaced by an ellipsis).\n * @return {string} str\n */\n\n\nfunction format(value, options) {\n var result = _format(value, options);\n\n if (options && (0, _typeof2.default)(options) === 'object' && 'truncate' in options && result.length > options.truncate) {\n return result.substring(0, options.truncate - 3) + '...';\n }\n\n return result;\n}\n\nfunction _format(value, options) {\n if (typeof value === 'number') {\n return (0, _number.format)(value, options);\n }\n\n if ((0, _is.isBigNumber)(value)) {\n return (0, _formatter.format)(value, options);\n } // note: we use unsafe duck-typing here to check for Fractions, this is\n // ok here since we're only invoking toString or concatenating its values\n\n\n if (looksLikeFraction(value)) {\n if (!options || options.fraction !== 'decimal') {\n // output as ratio, like '1/3'\n return value.s * value.n + '/' + value.d;\n } else {\n // output as decimal, like '0.(3)'\n return value.toString();\n }\n }\n\n if (Array.isArray(value)) {\n return formatArray(value, options);\n }\n\n if ((0, _is.isString)(value)) {\n return '\"' + value + '\"';\n }\n\n if (typeof value === 'function') {\n return value.syntax ? String(value.syntax) : 'function';\n }\n\n if (value && (0, _typeof2.default)(value) === 'object') {\n if (typeof value.format === 'function') {\n return value.format(options);\n } else if (value && value.toString(options) !== {}.toString()) {\n // this object has a non-native toString method, use that one\n return value.toString(options);\n } else {\n var entries = Object.keys(value).map(function (key) {\n return '\"' + key + '\": ' + format(value[key], options);\n });\n return '{' + entries.join(', ') + '}';\n }\n }\n\n return String(value);\n}\n/**\n * Stringify a value into a string enclosed in double quotes.\n * Unescaped double quotes and backslashes inside the value are escaped.\n * @param {*} value\n * @return {string}\n */\n\n\nfunction stringify(value) {\n var text = String(value);\n var escaped = '';\n var i = 0;\n\n while (i < text.length) {\n var c = text.charAt(i);\n\n if (c === '\\\\') {\n escaped += c;\n i++;\n c = text.charAt(i);\n\n if (c === '' || '\"\\\\/bfnrtu'.indexOf(c) === -1) {\n escaped += '\\\\'; // no valid escape character -> escape it\n }\n\n escaped += c;\n } else if (c === '\"') {\n escaped += '\\\\\"';\n } else {\n escaped += c;\n }\n\n i++;\n }\n\n return '\"' + escaped + '\"';\n}\n/**\n * Escape special HTML characters\n * @param {*} value\n * @return {string}\n */\n\n\nfunction escape(value) {\n var text = String(value);\n text = text.replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(//g, '>');\n return text;\n}\n/**\n * Recursively format an n-dimensional matrix\n * Example output: \"[[1, 2], [3, 4]]\"\n * @param {Array} array\n * @param {Object | number | Function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @returns {string} str\n */\n\n\nfunction formatArray(array, options) {\n if (Array.isArray(array)) {\n var str = '[';\n var len = array.length;\n\n for (var i = 0; i < len; i++) {\n if (i !== 0) {\n str += ', ';\n }\n\n str += formatArray(array[i], options);\n }\n\n str += ']';\n return str;\n } else {\n return format(array, options);\n }\n}\n/**\n * Check whether a value looks like a Fraction (unsafe duck-type check)\n * @param {*} value\n * @return {boolean}\n */\n\n\nfunction looksLikeFraction(value) {\n return value && (0, _typeof2.default)(value) === 'object' && typeof value.s === 'number' && typeof value.n === 'number' && typeof value.d === 'number' || false;\n}\n/**\n * Compare two strings\n * @param {string} x\n * @param {string} y\n * @returns {number}\n */\n\n\nfunction compareText(x, y) {\n // we don't want to convert numbers to string, only accept string input\n if (!(0, _is.isString)(x)) {\n throw new TypeError('Unexpected type of argument in function compareText ' + '(expected: string or Array or Matrix, actual: ' + (0, _is.typeOf)(x) + ', index: 0)');\n }\n\n if (!(0, _is.isString)(y)) {\n throw new TypeError('Unexpected type of argument in function compareText ' + '(expected: string or Array or Matrix, actual: ' + (0, _is.typeOf)(y) + ', index: 1)');\n }\n\n return x === y ? 0 : x > y ? 1 : -1;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DimensionError = DimensionError;\n\n/**\n * Create a range error with the message:\n * 'Dimension mismatch ( != )'\n * @param {number | number[]} actual The actual size\n * @param {number | number[]} expected The expected size\n * @param {string} [relation='!='] Optional relation between actual\n * and expected size: '!=', '<', etc.\n * @extends RangeError\n */\nfunction DimensionError(actual, expected, relation) {\n if (!(this instanceof DimensionError)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.actual = actual;\n this.expected = expected;\n this.relation = relation;\n this.message = 'Dimension mismatch (' + (Array.isArray(actual) ? '[' + actual.join(', ') + ']' : actual) + ' ' + (this.relation || '!=') + ' ' + (Array.isArray(expected) ? '[' + expected.join(', ') + ']' : expected) + ')';\n this.stack = new Error().stack;\n}\n\nDimensionError.prototype = new RangeError();\nDimensionError.prototype.constructor = RangeError;\nDimensionError.prototype.name = 'DimensionError';\nDimensionError.prototype.isDimensionError = true;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.IndexError = IndexError;\n\n/**\n * Create a range error with the message:\n * 'Index out of range (index < min)'\n * 'Index out of range (index < max)'\n *\n * @param {number} index The actual index\n * @param {number} [min=0] Minimum index (included)\n * @param {number} [max] Maximum index (excluded)\n * @extends RangeError\n */\nfunction IndexError(index, min, max) {\n if (!(this instanceof IndexError)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.index = index;\n\n if (arguments.length < 3) {\n this.min = 0;\n this.max = min;\n } else {\n this.min = min;\n this.max = max;\n }\n\n if (this.min !== undefined && this.index < this.min) {\n this.message = 'Index out of range (' + this.index + ' < ' + this.min + ')';\n } else if (this.max !== undefined && this.index >= this.max) {\n this.message = 'Index out of range (' + this.index + ' > ' + (this.max - 1) + ')';\n } else {\n this.message = 'Index out of range (' + this.index + ')';\n }\n\n this.stack = new Error().stack;\n}\n\nIndexError.prototype = new RangeError();\nIndexError.prototype.constructor = RangeError;\nIndexError.prototype.name = 'IndexError';\nIndexError.prototype.isIndexError = true;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.arraySize = arraySize;\nexports.contains = contains;\nexports.filter = filter;\nexports.filterRegExp = filterRegExp;\nexports.flatten = flatten;\nexports.forEach = forEach;\nexports.generalize = generalize;\nexports.getArrayDataType = getArrayDataType;\nexports.identify = identify;\nexports.initial = initial;\nexports.join = join;\nexports.last = last;\nexports.map = map;\nexports.processSizesWildcard = processSizesWildcard;\nexports.reshape = reshape;\nexports.resize = resize;\nexports.squeeze = squeeze;\nexports.unsqueeze = unsqueeze;\nexports.validate = validate;\nexports.validateIndex = validateIndex;\n\nvar _number = require(\"./number.js\");\n\nvar _is = require(\"./is.js\");\n\nvar _string = require(\"./string.js\");\n\nvar _DimensionError = require(\"../error/DimensionError.js\");\n\nvar _IndexError = require(\"../error/IndexError.js\");\n\n/**\n * Calculate the size of a multi dimensional array.\n * This function checks the size of the first entry, it does not validate\n * whether all dimensions match. (use function `validate` for that)\n * @param {Array} x\n * @Return {Number[]} size\n */\nfunction arraySize(x) {\n var s = [];\n\n while (Array.isArray(x)) {\n s.push(x.length);\n x = x[0];\n }\n\n return s;\n}\n/**\n * Recursively validate whether each element in a multi dimensional array\n * has a size corresponding to the provided size array.\n * @param {Array} array Array to be validated\n * @param {number[]} size Array with the size of each dimension\n * @param {number} dim Current dimension\n * @throws DimensionError\n * @private\n */\n\n\nfunction _validate(array, size, dim) {\n var i;\n var len = array.length;\n\n if (len !== size[dim]) {\n throw new _DimensionError.DimensionError(len, size[dim]);\n }\n\n if (dim < size.length - 1) {\n // recursively validate each child array\n var dimNext = dim + 1;\n\n for (i = 0; i < len; i++) {\n var child = array[i];\n\n if (!Array.isArray(child)) {\n throw new _DimensionError.DimensionError(size.length - 1, size.length, '<');\n }\n\n _validate(array[i], size, dimNext);\n }\n } else {\n // last dimension. none of the childs may be an array\n for (i = 0; i < len; i++) {\n if (Array.isArray(array[i])) {\n throw new _DimensionError.DimensionError(size.length + 1, size.length, '>');\n }\n }\n }\n}\n/**\n * Validate whether each element in a multi dimensional array has\n * a size corresponding to the provided size array.\n * @param {Array} array Array to be validated\n * @param {number[]} size Array with the size of each dimension\n * @throws DimensionError\n */\n\n\nfunction validate(array, size) {\n var isScalar = size.length === 0;\n\n if (isScalar) {\n // scalar\n if (Array.isArray(array)) {\n throw new _DimensionError.DimensionError(array.length, 0);\n }\n } else {\n // array\n _validate(array, size, 0);\n }\n}\n/**\n * Test whether index is an integer number with index >= 0 and index < length\n * when length is provided\n * @param {number} index Zero-based index\n * @param {number} [length] Length of the array\n */\n\n\nfunction validateIndex(index, length) {\n if (!(0, _is.isNumber)(index) || !(0, _number.isInteger)(index)) {\n throw new TypeError('Index must be an integer (value: ' + index + ')');\n }\n\n if (index < 0 || typeof length === 'number' && index >= length) {\n throw new _IndexError.IndexError(index, length);\n }\n}\n/**\n * Resize a multi dimensional array. The resized array is returned.\n * @param {Array} array Array to be resized\n * @param {Array.} size Array with the size of each dimension\n * @param {*} [defaultValue=0] Value to be filled in in new entries,\n * zero by default. Specify for example `null`,\n * to clearly see entries that are not explicitly\n * set.\n * @return {Array} array The resized array\n */\n\n\nfunction resize(array, size, defaultValue) {\n // TODO: add support for scalars, having size=[] ?\n // check the type of the arguments\n if (!Array.isArray(array) || !Array.isArray(size)) {\n throw new TypeError('Array expected');\n }\n\n if (size.length === 0) {\n throw new Error('Resizing to scalar is not supported');\n } // check whether size contains positive integers\n\n\n size.forEach(function (value) {\n if (!(0, _is.isNumber)(value) || !(0, _number.isInteger)(value) || value < 0) {\n throw new TypeError('Invalid size, must contain positive integers ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n }); // recursively resize the array\n\n var _defaultValue = defaultValue !== undefined ? defaultValue : 0;\n\n _resize(array, size, 0, _defaultValue);\n\n return array;\n}\n/**\n * Recursively resize a multi dimensional array\n * @param {Array} array Array to be resized\n * @param {number[]} size Array with the size of each dimension\n * @param {number} dim Current dimension\n * @param {*} [defaultValue] Value to be filled in in new entries,\n * undefined by default.\n * @private\n */\n\n\nfunction _resize(array, size, dim, defaultValue) {\n var i;\n var elem;\n var oldLen = array.length;\n var newLen = size[dim];\n var minLen = Math.min(oldLen, newLen); // apply new length\n\n array.length = newLen;\n\n if (dim < size.length - 1) {\n // non-last dimension\n var dimNext = dim + 1; // resize existing child arrays\n\n for (i = 0; i < minLen; i++) {\n // resize child array\n elem = array[i];\n\n if (!Array.isArray(elem)) {\n elem = [elem]; // add a dimension\n\n array[i] = elem;\n }\n\n _resize(elem, size, dimNext, defaultValue);\n } // create new child arrays\n\n\n for (i = minLen; i < newLen; i++) {\n // get child array\n elem = [];\n array[i] = elem; // resize new child array\n\n _resize(elem, size, dimNext, defaultValue);\n }\n } else {\n // last dimension\n // remove dimensions of existing values\n for (i = 0; i < minLen; i++) {\n while (Array.isArray(array[i])) {\n array[i] = array[i][0];\n }\n } // fill new elements with the default value\n\n\n for (i = minLen; i < newLen; i++) {\n array[i] = defaultValue;\n }\n }\n}\n/**\n * Re-shape a multi dimensional array to fit the specified dimensions\n * @param {Array} array Array to be reshaped\n * @param {Array.} sizes List of sizes for each dimension\n * @returns {Array} Array whose data has been formatted to fit the\n * specified dimensions\n *\n * @throws {DimensionError} If the product of the new dimension sizes does\n * not equal that of the old ones\n */\n\n\nfunction reshape(array, sizes) {\n var flatArray = flatten(array);\n var currentLength = flatArray.length;\n\n if (!Array.isArray(array) || !Array.isArray(sizes)) {\n throw new TypeError('Array expected');\n }\n\n if (sizes.length === 0) {\n throw new _DimensionError.DimensionError(0, currentLength, '!=');\n }\n\n sizes = processSizesWildcard(sizes, currentLength);\n var newLength = product(sizes);\n\n if (currentLength !== newLength) {\n throw new _DimensionError.DimensionError(newLength, currentLength, '!=');\n }\n\n try {\n return _reshape(flatArray, sizes);\n } catch (e) {\n if (e instanceof _DimensionError.DimensionError) {\n throw new _DimensionError.DimensionError(newLength, currentLength, '!=');\n }\n\n throw e;\n }\n}\n/**\n * Replaces the wildcard -1 in the sizes array.\n * @param {Array.} sizes List of sizes for each dimension. At most on wildcard.\n * @param {number} currentLength Number of elements in the array.\n * @throws {Error} If more than one wildcard or unable to replace it.\n * @returns {Array.} The sizes array with wildcard replaced.\n */\n\n\nfunction processSizesWildcard(sizes, currentLength) {\n var newLength = product(sizes);\n var processedSizes = sizes.slice();\n var WILDCARD = -1;\n var wildCardIndex = sizes.indexOf(WILDCARD);\n var isMoreThanOneWildcard = sizes.indexOf(WILDCARD, wildCardIndex + 1) >= 0;\n\n if (isMoreThanOneWildcard) {\n throw new Error('More than one wildcard in sizes');\n }\n\n var hasWildcard = wildCardIndex >= 0;\n var canReplaceWildcard = currentLength % newLength === 0;\n\n if (hasWildcard) {\n if (canReplaceWildcard) {\n processedSizes[wildCardIndex] = -currentLength / newLength;\n } else {\n throw new Error('Could not replace wildcard, since ' + currentLength + ' is no multiple of ' + -newLength);\n }\n }\n\n return processedSizes;\n}\n/**\n * Computes the product of all array elements.\n * @param {Array} array Array of factors\n * @returns {number} Product of all elements\n */\n\n\nfunction product(array) {\n return array.reduce(function (prev, curr) {\n return prev * curr;\n }, 1);\n}\n/**\n * Iteratively re-shape a multi dimensional array to fit the specified dimensions\n * @param {Array} array Array to be reshaped\n * @param {Array.} sizes List of sizes for each dimension\n * @returns {Array} Array whose data has been formatted to fit the\n * specified dimensions\n */\n\n\nfunction _reshape(array, sizes) {\n // testing if there are enough elements for the requested shape\n var tmpArray = array;\n var tmpArray2; // for each dimensions starting by the last one and ignoring the first one\n\n for (var sizeIndex = sizes.length - 1; sizeIndex > 0; sizeIndex--) {\n var size = sizes[sizeIndex];\n tmpArray2 = []; // aggregate the elements of the current tmpArray in elements of the requested size\n\n var length = tmpArray.length / size;\n\n for (var i = 0; i < length; i++) {\n tmpArray2.push(tmpArray.slice(i * size, (i + 1) * size));\n } // set it as the new tmpArray for the next loop turn or for return\n\n\n tmpArray = tmpArray2;\n }\n\n return tmpArray;\n}\n/**\n * Squeeze a multi dimensional array\n * @param {Array} array\n * @param {Array} [size]\n * @returns {Array} returns the array itself\n */\n\n\nfunction squeeze(array, size) {\n var s = size || arraySize(array); // squeeze outer dimensions\n\n while (Array.isArray(array) && array.length === 1) {\n array = array[0];\n s.shift();\n } // find the first dimension to be squeezed\n\n\n var dims = s.length;\n\n while (s[dims - 1] === 1) {\n dims--;\n } // squeeze inner dimensions\n\n\n if (dims < s.length) {\n array = _squeeze(array, dims, 0);\n s.length = dims;\n }\n\n return array;\n}\n/**\n * Recursively squeeze a multi dimensional array\n * @param {Array} array\n * @param {number} dims Required number of dimensions\n * @param {number} dim Current dimension\n * @returns {Array | *} Returns the squeezed array\n * @private\n */\n\n\nfunction _squeeze(array, dims, dim) {\n var i, ii;\n\n if (dim < dims) {\n var next = dim + 1;\n\n for (i = 0, ii = array.length; i < ii; i++) {\n array[i] = _squeeze(array[i], dims, next);\n }\n } else {\n while (Array.isArray(array)) {\n array = array[0];\n }\n }\n\n return array;\n}\n/**\n * Unsqueeze a multi dimensional array: add dimensions when missing\n *\n * Paramter `size` will be mutated to match the new, unqueezed matrix size.\n *\n * @param {Array} array\n * @param {number} dims Desired number of dimensions of the array\n * @param {number} [outer] Number of outer dimensions to be added\n * @param {Array} [size] Current size of array.\n * @returns {Array} returns the array itself\n * @private\n */\n\n\nfunction unsqueeze(array, dims, outer, size) {\n var s = size || arraySize(array); // unsqueeze outer dimensions\n\n if (outer) {\n for (var i = 0; i < outer; i++) {\n array = [array];\n s.unshift(1);\n }\n } // unsqueeze inner dimensions\n\n\n array = _unsqueeze(array, dims, 0);\n\n while (s.length < dims) {\n s.push(1);\n }\n\n return array;\n}\n/**\n * Recursively unsqueeze a multi dimensional array\n * @param {Array} array\n * @param {number} dims Required number of dimensions\n * @param {number} dim Current dimension\n * @returns {Array | *} Returns the squeezed array\n * @private\n */\n\n\nfunction _unsqueeze(array, dims, dim) {\n var i, ii;\n\n if (Array.isArray(array)) {\n var next = dim + 1;\n\n for (i = 0, ii = array.length; i < ii; i++) {\n array[i] = _unsqueeze(array[i], dims, next);\n }\n } else {\n for (var d = dim; d < dims; d++) {\n array = [array];\n }\n }\n\n return array;\n}\n/**\n * Flatten a multi dimensional array, put all elements in a one dimensional\n * array\n * @param {Array} array A multi dimensional array\n * @return {Array} The flattened array (1 dimensional)\n */\n\n\nfunction flatten(array) {\n if (!Array.isArray(array)) {\n // if not an array, return as is\n return array;\n }\n\n var flat = [];\n array.forEach(function callback(value) {\n if (Array.isArray(value)) {\n value.forEach(callback); // traverse through sub-arrays recursively\n } else {\n flat.push(value);\n }\n });\n return flat;\n}\n/**\n * A safe map\n * @param {Array} array\n * @param {function} callback\n */\n\n\nfunction map(array, callback) {\n return Array.prototype.map.call(array, callback);\n}\n/**\n * A safe forEach\n * @param {Array} array\n * @param {function} callback\n */\n\n\nfunction forEach(array, callback) {\n Array.prototype.forEach.call(array, callback);\n}\n/**\n * A safe filter\n * @param {Array} array\n * @param {function} callback\n */\n\n\nfunction filter(array, callback) {\n if (arraySize(array).length !== 1) {\n throw new Error('Only one dimensional matrices supported');\n }\n\n return Array.prototype.filter.call(array, callback);\n}\n/**\n * Filter values in a callback given a regular expression\n * @param {Array} array\n * @param {RegExp} regexp\n * @return {Array} Returns the filtered array\n * @private\n */\n\n\nfunction filterRegExp(array, regexp) {\n if (arraySize(array).length !== 1) {\n throw new Error('Only one dimensional matrices supported');\n }\n\n return Array.prototype.filter.call(array, function (entry) {\n return regexp.test(entry);\n });\n}\n/**\n * A safe join\n * @param {Array} array\n * @param {string} separator\n */\n\n\nfunction join(array, separator) {\n return Array.prototype.join.call(array, separator);\n}\n/**\n * Assign a numeric identifier to every element of a sorted array\n * @param {Array} a An array\n * @return {Array} An array of objects containing the original value and its identifier\n */\n\n\nfunction identify(a) {\n if (!Array.isArray(a)) {\n throw new TypeError('Array input expected');\n }\n\n if (a.length === 0) {\n return a;\n }\n\n var b = [];\n var count = 0;\n b[0] = {\n value: a[0],\n identifier: 0\n };\n\n for (var i = 1; i < a.length; i++) {\n if (a[i] === a[i - 1]) {\n count++;\n } else {\n count = 0;\n }\n\n b.push({\n value: a[i],\n identifier: count\n });\n }\n\n return b;\n}\n/**\n * Remove the numeric identifier from the elements\n * @param {array} a An array\n * @return {array} An array of values without identifiers\n */\n\n\nfunction generalize(a) {\n if (!Array.isArray(a)) {\n throw new TypeError('Array input expected');\n }\n\n if (a.length === 0) {\n return a;\n }\n\n var b = [];\n\n for (var i = 0; i < a.length; i++) {\n b.push(a[i].value);\n }\n\n return b;\n}\n/**\n * Check the datatype of a given object\n * This is a low level implementation that should only be used by\n * parent Matrix classes such as SparseMatrix or DenseMatrix\n * This method does not validate Array Matrix shape\n * @param {Array} array\n * @param {function} typeOf Callback function to use to determine the type of a value\n * @return {string}\n */\n\n\nfunction getArrayDataType(array, typeOf) {\n var type; // to hold type info\n\n var length = 0; // to hold length value to ensure it has consistent sizes\n\n for (var i = 0; i < array.length; i++) {\n var item = array[i];\n var isArray = Array.isArray(item); // Saving the target matrix row size\n\n if (i === 0 && isArray) {\n length = item.length;\n } // If the current item is an array but the length does not equal the targetVectorSize\n\n\n if (isArray && item.length !== length) {\n return undefined;\n }\n\n var itemType = isArray ? getArrayDataType(item, typeOf) // recurse into a nested array\n : typeOf(item);\n\n if (type === undefined) {\n type = itemType; // first item\n } else if (type !== itemType) {\n return 'mixed';\n } else {// we're good, everything has the same type so far\n }\n }\n\n return type;\n}\n/**\n * Return the last item from an array\n * @param array\n * @returns {*}\n */\n\n\nfunction last(array) {\n return array[array.length - 1];\n}\n/**\n * Get all but the last element of array.\n */\n\n\nfunction initial(array) {\n return array.slice(0, array.length - 1);\n}\n/**\n * Test whether an array or string contains an item\n * @param {Array | string} array\n * @param {*} item\n * @return {boolean}\n */\n\n\nfunction contains(array, item) {\n return array.indexOf(item) !== -1;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.assertDependencies = assertDependencies;\nexports.create = create;\nexports.factory = factory;\nexports.isFactory = isFactory;\nexports.isOptionalDependency = isOptionalDependency;\nexports.sortFactories = sortFactories;\nexports.stripOptionalNotation = stripOptionalNotation;\n\nvar _array = require(\"./array.js\");\n\nvar _object = require(\"./object.js\");\n\n/**\n * Create a factory function, which can be used to inject dependencies.\n *\n * The created functions are memoized, a consecutive call of the factory\n * with the exact same inputs will return the same function instance.\n * The memoized cache is exposed on `factory.cache` and can be cleared\n * if needed.\n *\n * Example:\n *\n * const name = 'log'\n * const dependencies = ['config', 'typed', 'divideScalar', 'Complex']\n *\n * export const createLog = factory(name, dependencies, ({ typed, config, divideScalar, Complex }) => {\n * // ... create the function log here and return it\n * }\n *\n * @param {string} name Name of the function to be created\n * @param {string[]} dependencies The names of all required dependencies\n * @param {function} create Callback function called with an object with all dependencies\n * @param {Object} [meta] Optional object with meta information that will be attached\n * to the created factory function as property `meta`.\n * @returns {function}\n */\nfunction factory(name, dependencies, create, meta) {\n function assertAndCreate(scope) {\n // we only pass the requested dependencies to the factory function\n // to prevent functions to rely on dependencies that are not explicitly\n // requested.\n var deps = (0, _object.pickShallow)(scope, dependencies.map(stripOptionalNotation));\n assertDependencies(name, dependencies, scope);\n return create(deps);\n }\n\n assertAndCreate.isFactory = true;\n assertAndCreate.fn = name;\n assertAndCreate.dependencies = dependencies.slice().sort();\n\n if (meta) {\n assertAndCreate.meta = meta;\n }\n\n return assertAndCreate;\n}\n/**\n * Sort all factories such that when loading in order, the dependencies are resolved.\n *\n * @param {Array} factories\n * @returns {Array} Returns a new array with the sorted factories.\n */\n\n\nfunction sortFactories(factories) {\n var factoriesByName = {};\n factories.forEach(function (factory) {\n factoriesByName[factory.fn] = factory;\n });\n\n function containsDependency(factory, dependency) {\n // TODO: detect circular references\n if (isFactory(factory)) {\n if ((0, _array.contains)(factory.dependencies, dependency.fn || dependency.name)) {\n return true;\n }\n\n if (factory.dependencies.some(function (d) {\n return containsDependency(factoriesByName[d], dependency);\n })) {\n return true;\n }\n }\n\n return false;\n }\n\n var sorted = [];\n\n function addFactory(factory) {\n var index = 0;\n\n while (index < sorted.length && !containsDependency(sorted[index], factory)) {\n index++;\n }\n\n sorted.splice(index, 0, factory);\n } // sort regular factory functions\n\n\n factories.filter(isFactory).forEach(addFactory); // sort legacy factory functions AFTER the regular factory functions\n\n factories.filter(function (factory) {\n return !isFactory(factory);\n }).forEach(addFactory);\n return sorted;\n} // TODO: comment or cleanup if unused in the end\n\n\nfunction create(factories) {\n var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n sortFactories(factories).forEach(function (factory) {\n return factory(scope);\n });\n return scope;\n}\n/**\n * Test whether an object is a factory. This is the case when it has\n * properties name, dependencies, and a function create.\n * @param {*} obj\n * @returns {boolean}\n */\n\n\nfunction isFactory(obj) {\n return typeof obj === 'function' && typeof obj.fn === 'string' && Array.isArray(obj.dependencies);\n}\n/**\n * Assert that all dependencies of a list with dependencies are available in the provided scope.\n *\n * Will throw an exception when there are dependencies missing.\n *\n * @param {string} name Name for the function to be created. Used to generate a useful error message\n * @param {string[]} dependencies\n * @param {Object} scope\n */\n\n\nfunction assertDependencies(name, dependencies, scope) {\n var allDefined = dependencies.filter(function (dependency) {\n return !isOptionalDependency(dependency);\n }) // filter optionals\n .every(function (dependency) {\n return scope[dependency] !== undefined;\n });\n\n if (!allDefined) {\n var missingDependencies = dependencies.filter(function (dependency) {\n return scope[dependency] === undefined;\n }); // TODO: create a custom error class for this, a MathjsError or something like that\n\n throw new Error(\"Cannot create function \\\"\".concat(name, \"\\\", \") + \"some dependencies are missing: \".concat(missingDependencies.map(function (d) {\n return \"\\\"\".concat(d, \"\\\"\");\n }).join(', '), \".\"));\n }\n}\n\nfunction isOptionalDependency(dependency) {\n return dependency && dependency[0] === '?';\n}\n\nfunction stripOptionalNotation(dependency) {\n return dependency && dependency[0] === '?' ? dependency.slice(1) : dependency;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getSafeProperties = getSafeProperties;\nexports.getSafeProperty = getSafeProperty;\nexports.hasSafeProperty = hasSafeProperty;\nexports.isPlainObject = isPlainObject;\nexports.isSafeMethod = isSafeMethod;\nexports.isSafeProperty = isSafeProperty;\nexports.setSafeProperty = setSafeProperty;\nexports.validateSafeMethod = validateSafeMethod;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _object = require(\"./object.js\");\n\n/**\n * Get a property of a plain object\n * Throws an error in case the object is not a plain object or the\n * property is not defined on the object itself\n * @param {Object} object\n * @param {string} prop\n * @return {*} Returns the property value when safe\n */\nfunction getSafeProperty(object, prop) {\n // only allow getting safe properties of a plain object\n if (isPlainObject(object) && isSafeProperty(object, prop)) {\n return object[prop];\n }\n\n if (typeof object[prop] === 'function' && isSafeMethod(object, prop)) {\n throw new Error('Cannot access method \"' + prop + '\" as a property');\n }\n\n throw new Error('No access to property \"' + prop + '\"');\n}\n/**\n * Set a property on a plain object.\n * Throws an error in case the object is not a plain object or the\n * property would override an inherited property like .constructor or .toString\n * @param {Object} object\n * @param {string} prop\n * @param {*} value\n * @return {*} Returns the value\n */\n// TODO: merge this function into access.js?\n\n\nfunction setSafeProperty(object, prop, value) {\n // only allow setting safe properties of a plain object\n if (isPlainObject(object) && isSafeProperty(object, prop)) {\n object[prop] = value;\n return value;\n }\n\n throw new Error('No access to property \"' + prop + '\"');\n}\n\nfunction getSafeProperties(object) {\n return Object.keys(object).filter(function (prop) {\n return (0, _object.hasOwnProperty)(object, prop);\n });\n}\n\nfunction hasSafeProperty(object, prop) {\n return prop in object;\n}\n/**\n * Test whether a property is safe to use for an object.\n * For example .toString and .constructor are not safe\n * @param {string} prop\n * @return {boolean} Returns true when safe\n */\n\n\nfunction isSafeProperty(object, prop) {\n if (!object || (0, _typeof2.default)(object) !== 'object') {\n return false;\n } // SAFE: whitelisted\n // e.g length\n\n\n if ((0, _object.hasOwnProperty)(safeNativeProperties, prop)) {\n return true;\n } // UNSAFE: inherited from Object prototype\n // e.g constructor\n\n\n if (prop in Object.prototype) {\n // 'in' is used instead of hasOwnProperty for nodejs v0.10\n // which is inconsistent on root prototypes. It is safe\n // here because Object.prototype is a root object\n return false;\n } // UNSAFE: inherited from Function prototype\n // e.g call, apply\n\n\n if (prop in Function.prototype) {\n // 'in' is used instead of hasOwnProperty for nodejs v0.10\n // which is inconsistent on root prototypes. It is safe\n // here because Function.prototype is a root object\n return false;\n }\n\n return true;\n}\n/**\n * Validate whether a method is safe.\n * Throws an error when that's not the case.\n * @param {Object} object\n * @param {string} method\n */\n// TODO: merge this function into assign.js?\n\n\nfunction validateSafeMethod(object, method) {\n if (!isSafeMethod(object, method)) {\n throw new Error('No access to method \"' + method + '\"');\n }\n}\n/**\n * Check whether a method is safe.\n * Throws an error when that's not the case (for example for `constructor`).\n * @param {Object} object\n * @param {string} method\n * @return {boolean} Returns true when safe, false otherwise\n */\n\n\nfunction isSafeMethod(object, method) {\n if (object === null || object === undefined || typeof object[method] !== 'function') {\n return false;\n } // UNSAFE: ghosted\n // e.g overridden toString\n // Note that IE10 doesn't support __proto__ and we can't do this check there.\n\n\n if ((0, _object.hasOwnProperty)(object, method) && Object.getPrototypeOf && method in Object.getPrototypeOf(object)) {\n return false;\n } // SAFE: whitelisted\n // e.g toString\n\n\n if ((0, _object.hasOwnProperty)(safeNativeMethods, method)) {\n return true;\n } // UNSAFE: inherited from Object prototype\n // e.g constructor\n\n\n if (method in Object.prototype) {\n // 'in' is used instead of hasOwnProperty for nodejs v0.10\n // which is inconsistent on root prototypes. It is safe\n // here because Object.prototype is a root object\n return false;\n } // UNSAFE: inherited from Function prototype\n // e.g call, apply\n\n\n if (method in Function.prototype) {\n // 'in' is used instead of hasOwnProperty for nodejs v0.10\n // which is inconsistent on root prototypes. It is safe\n // here because Function.prototype is a root object\n return false;\n }\n\n return true;\n}\n\nfunction isPlainObject(object) {\n return (0, _typeof2.default)(object) === 'object' && object && object.constructor === Object;\n}\n\nvar safeNativeProperties = {\n length: true,\n name: true\n};\nvar safeNativeMethods = {\n toString: true,\n valueOf: true,\n toLocaleString: true\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ObjectWrappingMap = void 0;\nexports.assign = assign;\nexports.createEmptyMap = createEmptyMap;\nexports.createMap = createMap;\nexports.isMap = isMap;\nexports.toObject = toObject;\n\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\n\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\n\nvar _customs = require(\"./customs.js\");\n\nvar _is = require(\"./is.js\");\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\n * A map facade on a bare object.\n *\n * The small number of methods needed to implement a scope,\n * forwarding on to the SafeProperty functions. Over time, the codebase\n * will stop using this method, as all objects will be Maps, rather than\n * more security prone objects.\n */\nvar ObjectWrappingMap = /*#__PURE__*/function () {\n function ObjectWrappingMap(object) {\n (0, _classCallCheck2.default)(this, ObjectWrappingMap);\n this.wrappedObject = object;\n }\n\n (0, _createClass2.default)(ObjectWrappingMap, [{\n key: \"keys\",\n value: function keys() {\n return Object.keys(this.wrappedObject);\n }\n }, {\n key: \"get\",\n value: function get(key) {\n return (0, _customs.getSafeProperty)(this.wrappedObject, key);\n }\n }, {\n key: \"set\",\n value: function set(key, value) {\n (0, _customs.setSafeProperty)(this.wrappedObject, key, value);\n return this;\n }\n }, {\n key: \"has\",\n value: function has(key) {\n return (0, _customs.hasSafeProperty)(this.wrappedObject, key);\n }\n }]);\n return ObjectWrappingMap;\n}();\n/**\n * Creates an empty map, or whatever your platform's polyfill is.\n *\n * @returns an empty Map or Map like object.\n */\n\n\nexports.ObjectWrappingMap = ObjectWrappingMap;\n\nfunction createEmptyMap() {\n return new Map();\n}\n/**\n * Creates a Map from the given object.\n *\n * @param { Map | { [key: string]: unknown } | undefined } mapOrObject\n * @returns\n */\n\n\nfunction createMap(mapOrObject) {\n if (!mapOrObject) {\n return createEmptyMap();\n }\n\n if (isMap(mapOrObject)) {\n return mapOrObject;\n }\n\n if ((0, _is.isObject)(mapOrObject)) {\n return new ObjectWrappingMap(mapOrObject);\n }\n\n throw new Error('createMap can create maps from objects or Maps');\n}\n/**\n * Unwraps a map into an object.\n *\n * @param {Map} map\n * @returns { [key: string]: unknown }\n */\n\n\nfunction toObject(map) {\n if (map instanceof ObjectWrappingMap) {\n return map.wrappedObject;\n }\n\n var object = {};\n\n var _iterator = _createForOfIteratorHelper(map.keys()),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var key = _step.value;\n var value = map.get(key);\n (0, _customs.setSafeProperty)(object, key, value);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return object;\n}\n/**\n * Returns `true` if the passed object appears to be a Map (i.e. duck typing).\n *\n * Methods looked for are `get`, `set`, `keys` and `has`.\n *\n * @param {Map | object} object\n * @returns\n */\n\n\nfunction isMap(object) {\n // We can use the fast instanceof, or a slower duck typing check.\n // The duck typing method needs to cover enough methods to not be confused with DenseMatrix.\n if (!object) {\n return false;\n }\n\n return object instanceof Map || object instanceof ObjectWrappingMap || typeof object.set === 'function' && typeof object.get === 'function' && typeof object.keys === 'function' && typeof object.has === 'function';\n}\n/**\n * Copies the contents of key-value pairs from each `objects` in to `map`.\n *\n * Object is `objects` can be a `Map` or object.\n *\n * This is the `Map` analog to `Object.assign`.\n */\n\n\nfunction assign(map) {\n for (var _len = arguments.length, objects = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n objects[_key - 1] = arguments[_key];\n }\n\n for (var _i = 0, _objects = objects; _i < _objects.length; _i++) {\n var args = _objects[_i];\n\n if (!args) {\n continue;\n }\n\n if (isMap(args)) {\n var _iterator2 = _createForOfIteratorHelper(args.keys()),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var key = _step2.value;\n map.set(key, args.get(key));\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n } else if ((0, _is.isObject)(args)) {\n for (var _i2 = 0, _Object$keys = Object.keys(args); _i2 < _Object$keys.length; _i2++) {\n var _key2 = _Object$keys[_i2];\n map.set(_key2, args[_key2]);\n }\n }\n }\n\n return map;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTyped = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _typedFunction = _interopRequireDefault(require(\"typed-function\"));\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _map = require(\"../../utils/map.js\");\n\n/**\n * Create a typed-function which checks the types of the arguments and\n * can match them against multiple provided signatures. The typed-function\n * automatically converts inputs in order to find a matching signature.\n * Typed functions throw informative errors in case of wrong input arguments.\n *\n * See the library [typed-function](https://github.com/josdejong/typed-function)\n * for detailed documentation.\n *\n * Syntax:\n *\n * math.typed(name, signatures) : function\n * math.typed(signatures) : function\n *\n * Examples:\n *\n * // create a typed function with multiple types per argument (type union)\n * const fn2 = typed({\n * 'number | boolean': function (b) {\n * return 'b is a number or boolean'\n * },\n * 'string, number | boolean': function (a, b) {\n * return 'a is a string, b is a number or boolean'\n * }\n * })\n *\n * // create a typed function with an any type argument\n * const log = typed({\n * 'string, any': function (event, data) {\n * console.log('event: ' + event + ', data: ' + JSON.stringify(data))\n * }\n * })\n *\n * @param {string} [name] Optional name for the typed-function\n * @param {Object} signatures Object with one or multiple function signatures\n * @returns {function} The created typed-function.\n */\n// returns a new instance of typed-function\nvar _createTyped2 = function _createTyped() {\n // initially, return the original instance of typed-function\n // consecutively, return a new instance from typed.create.\n _createTyped2 = _typedFunction.default.create;\n return _typedFunction.default;\n};\n\nvar dependencies = ['?BigNumber', '?Complex', '?DenseMatrix', '?Fraction'];\n/**\n * Factory function for creating a new typed instance\n * @param {Object} dependencies Object with data types like Complex and BigNumber\n * @returns {Function}\n */\n\nvar createTyped = /* #__PURE__ */(0, _factory.factory)('typed', dependencies, function createTyped(_ref) {\n var BigNumber = _ref.BigNumber,\n Complex = _ref.Complex,\n DenseMatrix = _ref.DenseMatrix,\n Fraction = _ref.Fraction;\n\n // TODO: typed-function must be able to silently ignore signatures with unknown data types\n // get a new instance of typed-function\n var typed = _createTyped2(); // define all types. The order of the types determines in which order function\n // arguments are type-checked (so for performance it's important to put the\n // most used types first).\n\n\n typed.types = [{\n name: 'number',\n test: _is.isNumber\n }, {\n name: 'Complex',\n test: _is.isComplex\n }, {\n name: 'BigNumber',\n test: _is.isBigNumber\n }, {\n name: 'Fraction',\n test: _is.isFraction\n }, {\n name: 'Unit',\n test: _is.isUnit\n }, {\n name: 'string',\n test: _is.isString\n }, {\n name: 'Chain',\n test: _is.isChain\n }, {\n name: 'Array',\n test: _is.isArray\n }, {\n name: 'Matrix',\n test: _is.isMatrix\n }, {\n name: 'DenseMatrix',\n test: _is.isDenseMatrix\n }, {\n name: 'SparseMatrix',\n test: _is.isSparseMatrix\n }, {\n name: 'Range',\n test: _is.isRange\n }, {\n name: 'Index',\n test: _is.isIndex\n }, {\n name: 'boolean',\n test: _is.isBoolean\n }, {\n name: 'ResultSet',\n test: _is.isResultSet\n }, {\n name: 'Help',\n test: _is.isHelp\n }, {\n name: 'function',\n test: _is.isFunction\n }, {\n name: 'Date',\n test: _is.isDate\n }, {\n name: 'RegExp',\n test: _is.isRegExp\n }, {\n name: 'null',\n test: _is.isNull\n }, {\n name: 'undefined',\n test: _is.isUndefined\n }, {\n name: 'AccessorNode',\n test: _is.isAccessorNode\n }, {\n name: 'ArrayNode',\n test: _is.isArrayNode\n }, {\n name: 'AssignmentNode',\n test: _is.isAssignmentNode\n }, {\n name: 'BlockNode',\n test: _is.isBlockNode\n }, {\n name: 'ConditionalNode',\n test: _is.isConditionalNode\n }, {\n name: 'ConstantNode',\n test: _is.isConstantNode\n }, {\n name: 'FunctionNode',\n test: _is.isFunctionNode\n }, {\n name: 'FunctionAssignmentNode',\n test: _is.isFunctionAssignmentNode\n }, {\n name: 'IndexNode',\n test: _is.isIndexNode\n }, {\n name: 'Node',\n test: _is.isNode\n }, {\n name: 'ObjectNode',\n test: _is.isObjectNode\n }, {\n name: 'OperatorNode',\n test: _is.isOperatorNode\n }, {\n name: 'ParenthesisNode',\n test: _is.isParenthesisNode\n }, {\n name: 'RangeNode',\n test: _is.isRangeNode\n }, {\n name: 'SymbolNode',\n test: _is.isSymbolNode\n }, {\n name: 'Map',\n test: _map.isMap\n }, {\n name: 'Object',\n test: _is.isObject\n } // order 'Object' last, it matches on other classes too\n ];\n typed.conversions = [{\n from: 'number',\n to: 'BigNumber',\n convert: function convert(x) {\n if (!BigNumber) {\n throwNoBignumber(x);\n } // note: conversion from number to BigNumber can fail if x has >15 digits\n\n\n if ((0, _number.digits)(x) > 15) {\n throw new TypeError('Cannot implicitly convert a number with >15 significant digits to BigNumber ' + '(value: ' + x + '). ' + 'Use function bignumber(x) to convert to BigNumber.');\n }\n\n return new BigNumber(x);\n }\n }, {\n from: 'number',\n to: 'Complex',\n convert: function convert(x) {\n if (!Complex) {\n throwNoComplex(x);\n }\n\n return new Complex(x, 0);\n }\n }, {\n from: 'number',\n to: 'string',\n convert: function convert(x) {\n return x + '';\n }\n }, {\n from: 'BigNumber',\n to: 'Complex',\n convert: function convert(x) {\n if (!Complex) {\n throwNoComplex(x);\n }\n\n return new Complex(x.toNumber(), 0);\n }\n }, {\n from: 'Fraction',\n to: 'BigNumber',\n convert: function convert(x) {\n throw new TypeError('Cannot implicitly convert a Fraction to BigNumber or vice versa. ' + 'Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.');\n }\n }, {\n from: 'Fraction',\n to: 'Complex',\n convert: function convert(x) {\n if (!Complex) {\n throwNoComplex(x);\n }\n\n return new Complex(x.valueOf(), 0);\n }\n }, {\n from: 'number',\n to: 'Fraction',\n convert: function convert(x) {\n if (!Fraction) {\n throwNoFraction(x);\n }\n\n var f = new Fraction(x);\n\n if (f.valueOf() !== x) {\n throw new TypeError('Cannot implicitly convert a number to a Fraction when there will be a loss of precision ' + '(value: ' + x + '). ' + 'Use function fraction(x) to convert to Fraction.');\n }\n\n return f;\n }\n }, {\n // FIXME: add conversion from Fraction to number, for example for `sqrt(fraction(1,3))`\n // from: 'Fraction',\n // to: 'number',\n // convert: function (x) {\n // return x.valueOf()\n // }\n // }, {\n from: 'string',\n to: 'number',\n convert: function convert(x) {\n var n = Number(x);\n\n if (isNaN(n)) {\n throw new Error('Cannot convert \"' + x + '\" to a number');\n }\n\n return n;\n }\n }, {\n from: 'string',\n to: 'BigNumber',\n convert: function convert(x) {\n if (!BigNumber) {\n throwNoBignumber(x);\n }\n\n try {\n return new BigNumber(x);\n } catch (err) {\n throw new Error('Cannot convert \"' + x + '\" to BigNumber');\n }\n }\n }, {\n from: 'string',\n to: 'Fraction',\n convert: function convert(x) {\n if (!Fraction) {\n throwNoFraction(x);\n }\n\n try {\n return new Fraction(x);\n } catch (err) {\n throw new Error('Cannot convert \"' + x + '\" to Fraction');\n }\n }\n }, {\n from: 'string',\n to: 'Complex',\n convert: function convert(x) {\n if (!Complex) {\n throwNoComplex(x);\n }\n\n try {\n return new Complex(x);\n } catch (err) {\n throw new Error('Cannot convert \"' + x + '\" to Complex');\n }\n }\n }, {\n from: 'boolean',\n to: 'number',\n convert: function convert(x) {\n return +x;\n }\n }, {\n from: 'boolean',\n to: 'BigNumber',\n convert: function convert(x) {\n if (!BigNumber) {\n throwNoBignumber(x);\n }\n\n return new BigNumber(+x);\n }\n }, {\n from: 'boolean',\n to: 'Fraction',\n convert: function convert(x) {\n if (!Fraction) {\n throwNoFraction(x);\n }\n\n return new Fraction(+x);\n }\n }, {\n from: 'boolean',\n to: 'string',\n convert: function convert(x) {\n return String(x);\n }\n }, {\n from: 'Array',\n to: 'Matrix',\n convert: function convert(array) {\n if (!DenseMatrix) {\n throwNoMatrix();\n }\n\n return new DenseMatrix(array);\n }\n }, {\n from: 'Matrix',\n to: 'Array',\n convert: function convert(matrix) {\n return matrix.valueOf();\n }\n }];\n return typed;\n});\nexports.createTyped = createTyped;\n\nfunction throwNoBignumber(x) {\n throw new Error(\"Cannot convert value \".concat(x, \" into a BigNumber: no class 'BigNumber' provided\"));\n}\n\nfunction throwNoComplex(x) {\n throw new Error(\"Cannot convert value \".concat(x, \" into a Complex number: no class 'Complex' provided\"));\n}\n\nfunction throwNoMatrix() {\n throw new Error('Cannot convert array into a Matrix: no class \\'DenseMatrix\\' provided');\n}\n\nfunction throwNoFraction(x) {\n throw new Error(\"Cannot convert value \".concat(x, \" into a Fraction, no class 'Fraction' provided.\"));\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createResultSet = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ResultSet';\nvar dependencies = [];\nvar createResultSet = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function () {\n /**\n * A ResultSet contains a list or results\n * @class ResultSet\n * @param {Array} entries\n * @constructor ResultSet\n */\n function ResultSet(entries) {\n if (!(this instanceof ResultSet)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.entries = entries || [];\n }\n /**\n * Attach type information\n */\n\n\n ResultSet.prototype.type = 'ResultSet';\n ResultSet.prototype.isResultSet = true;\n /**\n * Returns the array with results hold by this ResultSet\n * @memberof ResultSet\n * @returns {Array} entries\n */\n\n ResultSet.prototype.valueOf = function () {\n return this.entries;\n };\n /**\n * Returns the stringified results of the ResultSet\n * @memberof ResultSet\n * @returns {string} string\n */\n\n\n ResultSet.prototype.toString = function () {\n return '[' + this.entries.join(', ') + ']';\n };\n /**\n * Get a JSON representation of the ResultSet\n * @memberof ResultSet\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"ResultSet\", \"entries\": [...]}`\n */\n\n\n ResultSet.prototype.toJSON = function () {\n return {\n mathjs: 'ResultSet',\n entries: this.entries\n };\n };\n /**\n * Instantiate a ResultSet from a JSON object\n * @memberof ResultSet\n * @param {Object} json A JSON object structured as:\n * `{\"mathjs\": \"ResultSet\", \"entries\": [...]}`\n * @return {ResultSet}\n */\n\n\n ResultSet.fromJSON = function (json) {\n return new ResultSet(json.entries);\n };\n\n return ResultSet;\n}, {\n isClass: true\n});\nexports.createResultSet = createResultSet;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBigNumberClass = void 0;\n\nvar _decimal = _interopRequireDefault(require(\"decimal.js\"));\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'BigNumber';\nvar dependencies = ['?on', 'config'];\nvar createBigNumberClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var on = _ref.on,\n config = _ref.config;\n\n var BigNumber = _decimal.default.clone({\n precision: config.precision,\n modulo: _decimal.default.EUCLID\n });\n\n BigNumber.prototype = Object.create(BigNumber.prototype);\n /**\n * Attach type information\n */\n\n BigNumber.prototype.type = 'BigNumber';\n BigNumber.prototype.isBigNumber = true;\n /**\n * Get a JSON representation of a BigNumber containing\n * type information\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"BigNumber\", \"value\": \"0.2\"}`\n */\n\n BigNumber.prototype.toJSON = function () {\n return {\n mathjs: 'BigNumber',\n value: this.toString()\n };\n };\n /**\n * Instantiate a BigNumber from a JSON object\n * @param {Object} json a JSON object structured as:\n * `{\"mathjs\": \"BigNumber\", \"value\": \"0.2\"}`\n * @return {BigNumber}\n */\n\n\n BigNumber.fromJSON = function (json) {\n return new BigNumber(json.value);\n };\n\n if (on) {\n // listen for changed in the configuration, automatically apply changed precision\n on('config', function (curr, prev) {\n if (curr.precision !== prev.precision) {\n BigNumber.config({\n precision: curr.precision\n });\n }\n });\n }\n\n return BigNumber;\n}, {\n isClass: true\n});\nexports.createBigNumberClass = createBigNumberClass;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createComplexClass = void 0;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _complex = _interopRequireDefault(require(\"complex.js\"));\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Complex';\nvar dependencies = [];\nvar createComplexClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function () {\n /**\n * Attach type information\n */\n _complex.default.prototype.type = 'Complex';\n _complex.default.prototype.isComplex = true;\n /**\n * Get a JSON representation of the complex number\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"Complex\", \"re\": 2, \"im\": 3}`\n */\n\n _complex.default.prototype.toJSON = function () {\n return {\n mathjs: 'Complex',\n re: this.re,\n im: this.im\n };\n };\n /*\n * Return the value of the complex number in polar notation\n * The angle phi will be set in the interval of [-pi, pi].\n * @return {{r: number, phi: number}} Returns and object with properties r and phi.\n */\n\n\n _complex.default.prototype.toPolar = function () {\n return {\n r: this.abs(),\n phi: this.arg()\n };\n };\n /**\n * Get a string representation of the complex number,\n * with optional formatting options.\n * @param {Object | number | Function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @return {string} str\n */\n\n\n _complex.default.prototype.format = function (options) {\n var str = '';\n var im = this.im;\n var re = this.re;\n var strRe = (0, _number.format)(this.re, options);\n var strIm = (0, _number.format)(this.im, options); // round either re or im when smaller than the configured precision\n\n var precision = (0, _is.isNumber)(options) ? options : options ? options.precision : null;\n\n if (precision !== null) {\n var epsilon = Math.pow(10, -precision);\n\n if (Math.abs(re / im) < epsilon) {\n re = 0;\n }\n\n if (Math.abs(im / re) < epsilon) {\n im = 0;\n }\n }\n\n if (im === 0) {\n // real value\n str = strRe;\n } else if (re === 0) {\n // purely complex value\n if (im === 1) {\n str = 'i';\n } else if (im === -1) {\n str = '-i';\n } else {\n str = strIm + 'i';\n }\n } else {\n // complex value\n if (im < 0) {\n if (im === -1) {\n str = strRe + ' - i';\n } else {\n str = strRe + ' - ' + strIm.substring(1) + 'i';\n }\n } else {\n if (im === 1) {\n str = strRe + ' + i';\n } else {\n str = strRe + ' + ' + strIm + 'i';\n }\n }\n }\n\n return str;\n };\n /**\n * Create a complex number from polar coordinates\n *\n * Usage:\n *\n * Complex.fromPolar(r: number, phi: number) : Complex\n * Complex.fromPolar({r: number, phi: number}) : Complex\n *\n * @param {*} args...\n * @return {Complex}\n */\n\n\n _complex.default.fromPolar = function (args) {\n switch (arguments.length) {\n case 1:\n {\n var arg = arguments[0];\n\n if ((0, _typeof2.default)(arg) === 'object') {\n return (0, _complex.default)(arg);\n } else {\n throw new TypeError('Input has to be an object with r and phi keys.');\n }\n }\n\n case 2:\n {\n var r = arguments[0];\n var phi = arguments[1];\n\n if ((0, _is.isNumber)(r)) {\n if ((0, _is.isUnit)(phi) && phi.hasBase('ANGLE')) {\n // convert unit to a number in radians\n phi = phi.toNumber('rad');\n }\n\n if ((0, _is.isNumber)(phi)) {\n return new _complex.default({\n r: r,\n phi: phi\n });\n }\n\n throw new TypeError('Phi is not a number nor an angle unit.');\n } else {\n throw new TypeError('Radius r is not a number.');\n }\n }\n\n default:\n throw new SyntaxError('Wrong number of arguments in function fromPolar');\n }\n };\n\n _complex.default.prototype.valueOf = _complex.default.prototype.toString;\n /**\n * Create a Complex number from a JSON object\n * @param {Object} json A JSON Object structured as\n * {\"mathjs\": \"Complex\", \"re\": 2, \"im\": 3}\n * All properties are optional, default values\n * for `re` and `im` are 0.\n * @return {Complex} Returns a new Complex number\n */\n\n _complex.default.fromJSON = function (json) {\n return new _complex.default(json);\n };\n /**\n * Compare two complex numbers, `a` and `b`:\n *\n * - Returns 1 when the real part of `a` is larger than the real part of `b`\n * - Returns -1 when the real part of `a` is smaller than the real part of `b`\n * - Returns 1 when the real parts are equal\n * and the imaginary part of `a` is larger than the imaginary part of `b`\n * - Returns -1 when the real parts are equal\n * and the imaginary part of `a` is smaller than the imaginary part of `b`\n * - Returns 0 when both real and imaginary parts are equal.\n *\n * @params {Complex} a\n * @params {Complex} b\n * @returns {number} Returns the comparison result: -1, 0, or 1\n */\n\n\n _complex.default.compare = function (a, b) {\n if (a.re > b.re) {\n return 1;\n }\n\n if (a.re < b.re) {\n return -1;\n }\n\n if (a.im > b.im) {\n return 1;\n }\n\n if (a.im < b.im) {\n return -1;\n }\n\n return 0;\n };\n\n return _complex.default;\n}, {\n isClass: true\n});\nexports.createComplexClass = createComplexClass;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFractionClass = void 0;\n\nvar _fraction = _interopRequireDefault(require(\"fraction.js\"));\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Fraction';\nvar dependencies = [];\nvar createFractionClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function () {\n /**\n * Attach type information\n */\n _fraction.default.prototype.type = 'Fraction';\n _fraction.default.prototype.isFraction = true;\n /**\n * Get a JSON representation of a Fraction containing type information\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"Fraction\", \"n\": 3, \"d\": 8}`\n */\n\n _fraction.default.prototype.toJSON = function () {\n return {\n mathjs: 'Fraction',\n n: this.s * this.n,\n d: this.d\n };\n };\n /**\n * Instantiate a Fraction from a JSON object\n * @param {Object} json a JSON object structured as:\n * `{\"mathjs\": \"Fraction\", \"n\": 3, \"d\": 8}`\n * @return {BigNumber}\n */\n\n\n _fraction.default.fromJSON = function (json) {\n return new _fraction.default(json);\n };\n\n return _fraction.default;\n}, {\n isClass: true\n});\nexports.createFractionClass = createFractionClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRangeClass = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Range';\nvar dependencies = [];\nvar createRangeClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function () {\n /**\n * Create a range. A range has a start, step, and end, and contains functions\n * to iterate over the range.\n *\n * A range can be constructed as:\n *\n * const range = new Range(start, end)\n * const range = new Range(start, end, step)\n *\n * To get the result of the range:\n * range.forEach(function (x) {\n * console.log(x)\n * })\n * range.map(function (x) {\n * return math.sin(x)\n * })\n * range.toArray()\n *\n * Example usage:\n *\n * const c = new Range(2, 6) // 2:1:5\n * c.toArray() // [2, 3, 4, 5]\n * const d = new Range(2, -3, -1) // 2:-1:-2\n * d.toArray() // [2, 1, 0, -1, -2]\n *\n * @class Range\n * @constructor Range\n * @param {number} start included lower bound\n * @param {number} end excluded upper bound\n * @param {number} [step] step size, default value is 1\n */\n function Range(start, end, step) {\n if (!(this instanceof Range)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n var hasStart = start !== null && start !== undefined;\n var hasEnd = end !== null && end !== undefined;\n var hasStep = step !== null && step !== undefined;\n\n if (hasStart) {\n if ((0, _is.isBigNumber)(start)) {\n start = start.toNumber();\n } else if (typeof start !== 'number') {\n throw new TypeError('Parameter start must be a number');\n }\n }\n\n if (hasEnd) {\n if ((0, _is.isBigNumber)(end)) {\n end = end.toNumber();\n } else if (typeof end !== 'number') {\n throw new TypeError('Parameter end must be a number');\n }\n }\n\n if (hasStep) {\n if ((0, _is.isBigNumber)(step)) {\n step = step.toNumber();\n } else if (typeof step !== 'number') {\n throw new TypeError('Parameter step must be a number');\n }\n }\n\n this.start = hasStart ? parseFloat(start) : 0;\n this.end = hasEnd ? parseFloat(end) : 0;\n this.step = hasStep ? parseFloat(step) : 1;\n }\n /**\n * Attach type information\n */\n\n\n Range.prototype.type = 'Range';\n Range.prototype.isRange = true;\n /**\n * Parse a string into a range,\n * The string contains the start, optional step, and end, separated by a colon.\n * If the string does not contain a valid range, null is returned.\n * For example str='0:2:11'.\n * @memberof Range\n * @param {string} str\n * @return {Range | null} range\n */\n\n Range.parse = function (str) {\n if (typeof str !== 'string') {\n return null;\n }\n\n var args = str.split(':');\n var nums = args.map(function (arg) {\n return parseFloat(arg);\n });\n var invalid = nums.some(function (num) {\n return isNaN(num);\n });\n\n if (invalid) {\n return null;\n }\n\n switch (nums.length) {\n case 2:\n return new Range(nums[0], nums[1]);\n\n case 3:\n return new Range(nums[0], nums[2], nums[1]);\n\n default:\n return null;\n }\n };\n /**\n * Create a clone of the range\n * @return {Range} clone\n */\n\n\n Range.prototype.clone = function () {\n return new Range(this.start, this.end, this.step);\n };\n /**\n * Retrieve the size of the range.\n * Returns an array containing one number, the number of elements in the range.\n * @memberof Range\n * @returns {number[]} size\n */\n\n\n Range.prototype.size = function () {\n var len = 0;\n var start = this.start;\n var step = this.step;\n var end = this.end;\n var diff = end - start;\n\n if ((0, _number.sign)(step) === (0, _number.sign)(diff)) {\n len = Math.ceil(diff / step);\n } else if (diff === 0) {\n len = 0;\n }\n\n if (isNaN(len)) {\n len = 0;\n }\n\n return [len];\n };\n /**\n * Calculate the minimum value in the range\n * @memberof Range\n * @return {number | undefined} min\n */\n\n\n Range.prototype.min = function () {\n var size = this.size()[0];\n\n if (size > 0) {\n if (this.step > 0) {\n // positive step\n return this.start;\n } else {\n // negative step\n return this.start + (size - 1) * this.step;\n }\n } else {\n return undefined;\n }\n };\n /**\n * Calculate the maximum value in the range\n * @memberof Range\n * @return {number | undefined} max\n */\n\n\n Range.prototype.max = function () {\n var size = this.size()[0];\n\n if (size > 0) {\n if (this.step > 0) {\n // positive step\n return this.start + (size - 1) * this.step;\n } else {\n // negative step\n return this.start;\n }\n } else {\n return undefined;\n }\n };\n /**\n * Execute a callback function for each value in the range.\n * @memberof Range\n * @param {function} callback The callback method is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Range being traversed.\n */\n\n\n Range.prototype.forEach = function (callback) {\n var x = this.start;\n var step = this.step;\n var end = this.end;\n var i = 0;\n\n if (step > 0) {\n while (x < end) {\n callback(x, [i], this);\n x += step;\n i++;\n }\n } else if (step < 0) {\n while (x > end) {\n callback(x, [i], this);\n x += step;\n i++;\n }\n }\n };\n /**\n * Execute a callback function for each value in the Range, and return the\n * results as an array\n * @memberof Range\n * @param {function} callback The callback method is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n * @returns {Array} array\n */\n\n\n Range.prototype.map = function (callback) {\n var array = [];\n this.forEach(function (value, index, obj) {\n array[index[0]] = callback(value, index, obj);\n });\n return array;\n };\n /**\n * Create an Array with a copy of the Ranges data\n * @memberof Range\n * @returns {Array} array\n */\n\n\n Range.prototype.toArray = function () {\n var array = [];\n this.forEach(function (value, index) {\n array[index[0]] = value;\n });\n return array;\n };\n /**\n * Get the primitive value of the Range, a one dimensional array\n * @memberof Range\n * @returns {Array} array\n */\n\n\n Range.prototype.valueOf = function () {\n // TODO: implement a caching mechanism for range.valueOf()\n return this.toArray();\n };\n /**\n * Get a string representation of the range, with optional formatting options.\n * Output is formatted as 'start:step:end', for example '2:6' or '0:0.2:11'\n * @memberof Range\n * @param {Object | number | function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @returns {string} str\n */\n\n\n Range.prototype.format = function (options) {\n var str = (0, _number.format)(this.start, options);\n\n if (this.step !== 1) {\n str += ':' + (0, _number.format)(this.step, options);\n }\n\n str += ':' + (0, _number.format)(this.end, options);\n return str;\n };\n /**\n * Get a string representation of the range.\n * @memberof Range\n * @returns {string}\n */\n\n\n Range.prototype.toString = function () {\n return this.format();\n };\n /**\n * Get a JSON representation of the range\n * @memberof Range\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"Range\", \"start\": 2, \"end\": 4, \"step\": 1}`\n */\n\n\n Range.prototype.toJSON = function () {\n return {\n mathjs: 'Range',\n start: this.start,\n end: this.end,\n step: this.step\n };\n };\n /**\n * Instantiate a Range from a JSON object\n * @memberof Range\n * @param {Object} json A JSON object structured as:\n * `{\"mathjs\": \"Range\", \"start\": 2, \"end\": 4, \"step\": 1}`\n * @return {Range}\n */\n\n\n Range.fromJSON = function (json) {\n return new Range(json.start, json.end, json.step);\n };\n\n return Range;\n}, {\n isClass: true\n});\nexports.createRangeClass = createRangeClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMatrixClass = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Matrix';\nvar dependencies = [];\nvar createMatrixClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function () {\n /**\n * @constructor Matrix\n *\n * A Matrix is a wrapper around an Array. A matrix can hold a multi dimensional\n * array. A matrix can be constructed as:\n *\n * let matrix = math.matrix(data)\n *\n * Matrix contains the functions to resize, get and set values, get the size,\n * clone the matrix and to convert the matrix to a vector, array, or scalar.\n * Furthermore, one can iterate over the matrix using map and forEach.\n * The internal Array of the Matrix can be accessed using the function valueOf.\n *\n * Example usage:\n *\n * let matrix = math.matrix([[1, 2], [3, 4]])\n * matix.size() // [2, 2]\n * matrix.resize([3, 2], 5)\n * matrix.valueOf() // [[1, 2], [3, 4], [5, 5]]\n * matrix.subset([1,2]) // 3 (indexes are zero-based)\n *\n */\n function Matrix() {\n if (!(this instanceof Matrix)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n }\n /**\n * Attach type information\n */\n\n\n Matrix.prototype.type = 'Matrix';\n Matrix.prototype.isMatrix = true;\n /**\n * Get the storage format used by the matrix.\n *\n * Usage:\n * const format = matrix.storage() // retrieve storage format\n *\n * @return {string} The storage format.\n */\n\n Matrix.prototype.storage = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke storage on a Matrix interface');\n };\n /**\n * Get the datatype of the data stored in the matrix.\n *\n * Usage:\n * const format = matrix.datatype() // retrieve matrix datatype\n *\n * @return {string} The datatype.\n */\n\n\n Matrix.prototype.datatype = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke datatype on a Matrix interface');\n };\n /**\n * Create a new Matrix With the type of the current matrix instance\n * @param {Array | Object} data\n * @param {string} [datatype]\n */\n\n\n Matrix.prototype.create = function (data, datatype) {\n throw new Error('Cannot invoke create on a Matrix interface');\n };\n /**\n * Get a subset of the matrix, or replace a subset of the matrix.\n *\n * Usage:\n * const subset = matrix.subset(index) // retrieve subset\n * const value = matrix.subset(index, replacement) // replace subset\n *\n * @param {Index} index\n * @param {Array | Matrix | *} [replacement]\n * @param {*} [defaultValue=0] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be filled with zeros.\n */\n\n\n Matrix.prototype.subset = function (index, replacement, defaultValue) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke subset on a Matrix interface');\n };\n /**\n * Get a single element from the matrix.\n * @param {number[]} index Zero-based index\n * @return {*} value\n */\n\n\n Matrix.prototype.get = function (index) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke get on a Matrix interface');\n };\n /**\n * Replace a single element in the matrix.\n * @param {number[]} index Zero-based index\n * @param {*} value\n * @param {*} [defaultValue] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be left undefined.\n * @return {Matrix} self\n */\n\n\n Matrix.prototype.set = function (index, value, defaultValue) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke set on a Matrix interface');\n };\n /**\n * Resize the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (resize in place).\n *\n * @param {number[]} size The new size the matrix should have.\n * @param {*} [defaultValue=0] Default value, filled in on new entries.\n * If not provided, the matrix elements will\n * be filled with zeros.\n * @param {boolean} [copy] Return a resized copy of the matrix\n *\n * @return {Matrix} The resized matrix\n */\n\n\n Matrix.prototype.resize = function (size, defaultValue) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke resize on a Matrix interface');\n };\n /**\n * Reshape the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (reshape in place).\n *\n * @param {number[]} size The new size the matrix should have.\n * @param {boolean} [copy] Return a reshaped copy of the matrix\n *\n * @return {Matrix} The reshaped matrix\n */\n\n\n Matrix.prototype.reshape = function (size, defaultValue) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke reshape on a Matrix interface');\n };\n /**\n * Create a clone of the matrix\n * @return {Matrix} clone\n */\n\n\n Matrix.prototype.clone = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke clone on a Matrix interface');\n };\n /**\n * Retrieve the size of the matrix.\n * @returns {number[]} size\n */\n\n\n Matrix.prototype.size = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke size on a Matrix interface');\n };\n /**\n * Create a new matrix with the results of the callback function executed on\n * each entry of the matrix.\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n * @param {boolean} [skipZeros] Invoke callback function for non-zero values only.\n *\n * @return {Matrix} matrix\n */\n\n\n Matrix.prototype.map = function (callback, skipZeros) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke map on a Matrix interface');\n };\n /**\n * Execute a callback function on each entry of the matrix.\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n */\n\n\n Matrix.prototype.forEach = function (callback) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke forEach on a Matrix interface');\n };\n /**\n * Iterate over the matrix elements\n * @return {Iterable<{ value, index: number[] }>}\n */\n\n\n Matrix.prototype[Symbol.iterator] = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot iterate a Matrix interface');\n };\n /**\n * Create an Array with a copy of the data of the Matrix\n * @returns {Array} array\n */\n\n\n Matrix.prototype.toArray = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke toArray on a Matrix interface');\n };\n /**\n * Get the primitive value of the Matrix: a multidimensional array\n * @returns {Array} array\n */\n\n\n Matrix.prototype.valueOf = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke valueOf on a Matrix interface');\n };\n /**\n * Get a string representation of the matrix, with optional formatting options.\n * @param {Object | number | Function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @returns {string} str\n */\n\n\n Matrix.prototype.format = function (options) {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke format on a Matrix interface');\n };\n /**\n * Get a string representation of the matrix\n * @returns {string} str\n */\n\n\n Matrix.prototype.toString = function () {\n // must be implemented by each of the Matrix implementations\n throw new Error('Cannot invoke toString on a Matrix interface');\n };\n\n return Matrix;\n}, {\n isClass: true\n});\nexports.createMatrixClass = createMatrixClass;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDenseMatrixClass = void 0;\n\nvar _regenerator = _interopRequireDefault(require(\"@babel/runtime/regenerator\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _DimensionError = require(\"../../error/DimensionError.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar name = 'DenseMatrix';\nvar dependencies = ['Matrix'];\nvar createDenseMatrixClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Matrix = _ref.Matrix;\n\n /**\n * Dense Matrix implementation. A regular, dense matrix, supporting multi-dimensional matrices. This is the default matrix type.\n * @class DenseMatrix\n * @enum {{ value, index: number[] }}\n */\n function DenseMatrix(data, datatype) {\n if (!(this instanceof DenseMatrix)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (datatype && !(0, _is.isString)(datatype)) {\n throw new Error('Invalid datatype: ' + datatype);\n }\n\n if ((0, _is.isMatrix)(data)) {\n // check data is a DenseMatrix\n if (data.type === 'DenseMatrix') {\n // clone data & size\n this._data = (0, _object.clone)(data._data);\n this._size = (0, _object.clone)(data._size);\n this._datatype = datatype || data._datatype;\n } else {\n // build data from existing matrix\n this._data = data.toArray();\n this._size = data.size();\n this._datatype = datatype || data._datatype;\n }\n } else if (data && (0, _is.isArray)(data.data) && (0, _is.isArray)(data.size)) {\n // initialize fields from JSON representation\n this._data = data.data;\n this._size = data.size; // verify the dimensions of the array\n\n (0, _array.validate)(this._data, this._size);\n this._datatype = datatype || data.datatype;\n } else if ((0, _is.isArray)(data)) {\n // replace nested Matrices with Arrays\n this._data = preprocess(data); // get the dimensions of the array\n\n this._size = (0, _array.arraySize)(this._data); // verify the dimensions of the array, TODO: compute size while processing array\n\n (0, _array.validate)(this._data, this._size); // data type unknown\n\n this._datatype = datatype;\n } else if (data) {\n // unsupported type\n throw new TypeError('Unsupported type of data (' + (0, _is.typeOf)(data) + ')');\n } else {\n // nothing provided\n this._data = [];\n this._size = [0];\n this._datatype = datatype;\n }\n }\n\n DenseMatrix.prototype = new Matrix();\n /**\n * Create a new DenseMatrix\n */\n\n DenseMatrix.prototype.createDenseMatrix = function (data, datatype) {\n return new DenseMatrix(data, datatype);\n };\n /**\n * Attach type information\n */\n\n\n DenseMatrix.prototype.type = 'DenseMatrix';\n DenseMatrix.prototype.isDenseMatrix = true;\n /**\n * Get the matrix type\n *\n * Usage:\n * const matrixType = matrix.getDataType() // retrieves the matrix type\n *\n * @memberOf DenseMatrix\n * @return {string} type information; if multiple types are found from the Matrix, it will return \"mixed\"\n */\n\n DenseMatrix.prototype.getDataType = function () {\n return (0, _array.getArrayDataType)(this._data, _is.typeOf);\n };\n /**\n * Get the storage format used by the matrix.\n *\n * Usage:\n * const format = matrix.storage() // retrieve storage format\n *\n * @memberof DenseMatrix\n * @return {string} The storage format.\n */\n\n\n DenseMatrix.prototype.storage = function () {\n return 'dense';\n };\n /**\n * Get the datatype of the data stored in the matrix.\n *\n * Usage:\n * const format = matrix.datatype() // retrieve matrix datatype\n *\n * @memberof DenseMatrix\n * @return {string} The datatype.\n */\n\n\n DenseMatrix.prototype.datatype = function () {\n return this._datatype;\n };\n /**\n * Create a new DenseMatrix\n * @memberof DenseMatrix\n * @param {Array} data\n * @param {string} [datatype]\n */\n\n\n DenseMatrix.prototype.create = function (data, datatype) {\n return new DenseMatrix(data, datatype);\n };\n /**\n * Get a subset of the matrix, or replace a subset of the matrix.\n *\n * Usage:\n * const subset = matrix.subset(index) // retrieve subset\n * const value = matrix.subset(index, replacement) // replace subset\n *\n * @memberof DenseMatrix\n * @param {Index} index\n * @param {Array | Matrix | *} [replacement]\n * @param {*} [defaultValue=0] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be filled with zeros.\n */\n\n\n DenseMatrix.prototype.subset = function (index, replacement, defaultValue) {\n switch (arguments.length) {\n case 1:\n return _get(this, index);\n // intentional fall through\n\n case 2:\n case 3:\n return _set(this, index, replacement, defaultValue);\n\n default:\n throw new SyntaxError('Wrong number of arguments');\n }\n };\n /**\n * Get a single element from the matrix.\n * @memberof DenseMatrix\n * @param {number[]} index Zero-based index\n * @return {*} value\n */\n\n\n DenseMatrix.prototype.get = function (index) {\n if (!(0, _is.isArray)(index)) {\n throw new TypeError('Array expected');\n }\n\n if (index.length !== this._size.length) {\n throw new _DimensionError.DimensionError(index.length, this._size.length);\n } // check index\n\n\n for (var x = 0; x < index.length; x++) {\n (0, _array.validateIndex)(index[x], this._size[x]);\n }\n\n var data = this._data;\n\n for (var i = 0, ii = index.length; i < ii; i++) {\n var indexI = index[i];\n (0, _array.validateIndex)(indexI, data.length);\n data = data[indexI];\n }\n\n return data;\n };\n /**\n * Replace a single element in the matrix.\n * @memberof DenseMatrix\n * @param {number[]} index Zero-based index\n * @param {*} value\n * @param {*} [defaultValue] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be left undefined.\n * @return {DenseMatrix} self\n */\n\n\n DenseMatrix.prototype.set = function (index, value, defaultValue) {\n if (!(0, _is.isArray)(index)) {\n throw new TypeError('Array expected');\n }\n\n if (index.length < this._size.length) {\n throw new _DimensionError.DimensionError(index.length, this._size.length, '<');\n }\n\n var i, ii, indexI; // enlarge matrix when needed\n\n var size = index.map(function (i) {\n return i + 1;\n });\n\n _fit(this, size, defaultValue); // traverse over the dimensions\n\n\n var data = this._data;\n\n for (i = 0, ii = index.length - 1; i < ii; i++) {\n indexI = index[i];\n (0, _array.validateIndex)(indexI, data.length);\n data = data[indexI];\n } // set new value\n\n\n indexI = index[index.length - 1];\n (0, _array.validateIndex)(indexI, data.length);\n data[indexI] = value;\n return this;\n };\n /**\n * Get a submatrix of this matrix\n * @memberof DenseMatrix\n * @param {DenseMatrix} matrix\n * @param {Index} index Zero-based index\n * @private\n */\n\n\n function _get(matrix, index) {\n if (!(0, _is.isIndex)(index)) {\n throw new TypeError('Invalid index');\n }\n\n var isScalar = index.isScalar();\n\n if (isScalar) {\n // return a scalar\n return matrix.get(index.min());\n } else {\n // validate dimensions\n var size = index.size();\n\n if (size.length !== matrix._size.length) {\n throw new _DimensionError.DimensionError(size.length, matrix._size.length);\n } // validate if any of the ranges in the index is out of range\n\n\n var min = index.min();\n var max = index.max();\n\n for (var i = 0, ii = matrix._size.length; i < ii; i++) {\n (0, _array.validateIndex)(min[i], matrix._size[i]);\n (0, _array.validateIndex)(max[i], matrix._size[i]);\n } // retrieve submatrix\n // TODO: more efficient when creating an empty matrix and setting _data and _size manually\n\n\n return new DenseMatrix(_getSubmatrix(matrix._data, index, size.length, 0), matrix._datatype);\n }\n }\n /**\n * Recursively get a submatrix of a multi dimensional matrix.\n * Index is not checked for correct number or length of dimensions.\n * @memberof DenseMatrix\n * @param {Array} data\n * @param {Index} index\n * @param {number} dims Total number of dimensions\n * @param {number} dim Current dimension\n * @return {Array} submatrix\n * @private\n */\n\n\n function _getSubmatrix(data, index, dims, dim) {\n var last = dim === dims - 1;\n var range = index.dimension(dim);\n\n if (last) {\n return range.map(function (i) {\n (0, _array.validateIndex)(i, data.length);\n return data[i];\n }).valueOf();\n } else {\n return range.map(function (i) {\n (0, _array.validateIndex)(i, data.length);\n var child = data[i];\n return _getSubmatrix(child, index, dims, dim + 1);\n }).valueOf();\n }\n }\n /**\n * Replace a submatrix in this matrix\n * Indexes are zero-based.\n * @memberof DenseMatrix\n * @param {DenseMatrix} matrix\n * @param {Index} index\n * @param {DenseMatrix | Array | *} submatrix\n * @param {*} defaultValue Default value, filled in on new entries when\n * the matrix is resized.\n * @return {DenseMatrix} matrix\n * @private\n */\n\n\n function _set(matrix, index, submatrix, defaultValue) {\n if (!index || index.isIndex !== true) {\n throw new TypeError('Invalid index');\n } // get index size and check whether the index contains a single value\n\n\n var iSize = index.size();\n var isScalar = index.isScalar(); // calculate the size of the submatrix, and convert it into an Array if needed\n\n var sSize;\n\n if ((0, _is.isMatrix)(submatrix)) {\n sSize = submatrix.size();\n submatrix = submatrix.valueOf();\n } else {\n sSize = (0, _array.arraySize)(submatrix);\n }\n\n if (isScalar) {\n // set a scalar\n // check whether submatrix is a scalar\n if (sSize.length !== 0) {\n throw new TypeError('Scalar expected');\n }\n\n matrix.set(index.min(), submatrix, defaultValue);\n } else {\n // set a submatrix\n // validate dimensions\n if (iSize.length < matrix._size.length) {\n throw new _DimensionError.DimensionError(iSize.length, matrix._size.length, '<');\n }\n\n if (sSize.length < iSize.length) {\n // calculate number of missing outer dimensions\n var i = 0;\n var outer = 0;\n\n while (iSize[i] === 1 && sSize[i] === 1) {\n i++;\n }\n\n while (iSize[i] === 1) {\n outer++;\n i++;\n } // unsqueeze both outer and inner dimensions\n\n\n submatrix = (0, _array.unsqueeze)(submatrix, iSize.length, outer, sSize);\n } // check whether the size of the submatrix matches the index size\n\n\n if (!(0, _object.deepStrictEqual)(iSize, sSize)) {\n throw new _DimensionError.DimensionError(iSize, sSize, '>');\n } // enlarge matrix when needed\n\n\n var size = index.max().map(function (i) {\n return i + 1;\n });\n\n _fit(matrix, size, defaultValue); // insert the sub matrix\n\n\n var dims = iSize.length;\n var dim = 0;\n\n _setSubmatrix(matrix._data, index, submatrix, dims, dim);\n }\n\n return matrix;\n }\n /**\n * Replace a submatrix of a multi dimensional matrix.\n * @memberof DenseMatrix\n * @param {Array} data\n * @param {Index} index\n * @param {Array} submatrix\n * @param {number} dims Total number of dimensions\n * @param {number} dim\n * @private\n */\n\n\n function _setSubmatrix(data, index, submatrix, dims, dim) {\n var last = dim === dims - 1;\n var range = index.dimension(dim);\n\n if (last) {\n range.forEach(function (dataIndex, subIndex) {\n (0, _array.validateIndex)(dataIndex);\n data[dataIndex] = submatrix[subIndex[0]];\n });\n } else {\n range.forEach(function (dataIndex, subIndex) {\n (0, _array.validateIndex)(dataIndex);\n\n _setSubmatrix(data[dataIndex], index, submatrix[subIndex[0]], dims, dim + 1);\n });\n }\n }\n /**\n * Resize the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (resize in place).\n *\n * @memberof DenseMatrix\n * @param {number[] || Matrix} size The new size the matrix should have.\n * @param {*} [defaultValue=0] Default value, filled in on new entries.\n * If not provided, the matrix elements will\n * be filled with zeros.\n * @param {boolean} [copy] Return a resized copy of the matrix\n *\n * @return {Matrix} The resized matrix\n */\n\n\n DenseMatrix.prototype.resize = function (size, defaultValue, copy) {\n // validate arguments\n if (!(0, _is.isCollection)(size)) {\n throw new TypeError('Array or Matrix expected');\n } // SparseMatrix input is always 2d, flatten this into 1d if it's indeed a vector\n\n\n var sizeArray = size.valueOf().map(function (value) {\n return Array.isArray(value) && value.length === 1 ? value[0] : value;\n }); // matrix to resize\n\n var m = copy ? this.clone() : this; // resize matrix\n\n return _resize(m, sizeArray, defaultValue);\n };\n\n function _resize(matrix, size, defaultValue) {\n // check size\n if (size.length === 0) {\n // first value in matrix\n var v = matrix._data; // go deep\n\n while ((0, _is.isArray)(v)) {\n v = v[0];\n }\n\n return v;\n } // resize matrix\n\n\n matrix._size = size.slice(0); // copy the array\n\n matrix._data = (0, _array.resize)(matrix._data, matrix._size, defaultValue); // return matrix\n\n return matrix;\n }\n /**\n * Reshape the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (reshape in place).\n *\n * NOTE: This might be better suited to copy by default, instead of modifying\n * in place. For now, it operates in place to remain consistent with\n * resize().\n *\n * @memberof DenseMatrix\n * @param {number[]} size The new size the matrix should have.\n * @param {boolean} [copy] Return a reshaped copy of the matrix\n *\n * @return {Matrix} The reshaped matrix\n */\n\n\n DenseMatrix.prototype.reshape = function (size, copy) {\n var m = copy ? this.clone() : this;\n m._data = (0, _array.reshape)(m._data, size);\n\n var currentLength = m._size.reduce(function (length, size) {\n return length * size;\n });\n\n m._size = (0, _array.processSizesWildcard)(size, currentLength);\n return m;\n };\n /**\n * Enlarge the matrix when it is smaller than given size.\n * If the matrix is larger or equal sized, nothing is done.\n * @memberof DenseMatrix\n * @param {DenseMatrix} matrix The matrix to be resized\n * @param {number[]} size\n * @param {*} defaultValue Default value, filled in on new entries.\n * @private\n */\n\n\n function _fit(matrix, size, defaultValue) {\n var // copy the array\n newSize = matrix._size.slice(0);\n\n var changed = false; // add dimensions when needed\n\n while (newSize.length < size.length) {\n newSize.push(0);\n changed = true;\n } // enlarge size when needed\n\n\n for (var i = 0, ii = size.length; i < ii; i++) {\n if (size[i] > newSize[i]) {\n newSize[i] = size[i];\n changed = true;\n }\n }\n\n if (changed) {\n // resize only when size is changed\n _resize(matrix, newSize, defaultValue);\n }\n }\n /**\n * Create a clone of the matrix\n * @memberof DenseMatrix\n * @return {DenseMatrix} clone\n */\n\n\n DenseMatrix.prototype.clone = function () {\n var m = new DenseMatrix({\n data: (0, _object.clone)(this._data),\n size: (0, _object.clone)(this._size),\n datatype: this._datatype\n });\n return m;\n };\n /**\n * Retrieve the size of the matrix.\n * @memberof DenseMatrix\n * @returns {number[]} size\n */\n\n\n DenseMatrix.prototype.size = function () {\n return this._size.slice(0); // return a clone of _size\n };\n /**\n * Create a new matrix with the results of the callback function executed on\n * each entry of the matrix.\n * @memberof DenseMatrix\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n *\n * @return {DenseMatrix} matrix\n */\n\n\n DenseMatrix.prototype.map = function (callback) {\n // matrix instance\n var me = this;\n\n var recurse = function recurse(value, index) {\n if ((0, _is.isArray)(value)) {\n return value.map(function (child, i) {\n return recurse(child, index.concat(i));\n });\n } else {\n return callback(value, index, me);\n }\n }; // determine the new datatype when the original matrix has datatype defined\n // TODO: should be done in matrix constructor instead\n\n\n var data = recurse(this._data, []);\n var datatype = this._datatype !== undefined ? (0, _array.getArrayDataType)(data, _is.typeOf) : undefined;\n return new DenseMatrix(data, datatype);\n };\n /**\n * Execute a callback function on each entry of the matrix.\n * @memberof DenseMatrix\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n */\n\n\n DenseMatrix.prototype.forEach = function (callback) {\n // matrix instance\n var me = this;\n\n var recurse = function recurse(value, index) {\n if ((0, _is.isArray)(value)) {\n value.forEach(function (child, i) {\n recurse(child, index.concat(i));\n });\n } else {\n callback(value, index, me);\n }\n };\n\n recurse(this._data, []);\n };\n /**\n * Iterate over the matrix elements\n * @return {Iterable<{ value, index: number[] }>}\n */\n\n\n DenseMatrix.prototype[Symbol.iterator] = /*#__PURE__*/_regenerator.default.mark(function _callee() {\n var recurse;\n return _regenerator.default.wrap(function _callee$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n recurse = /*#__PURE__*/_regenerator.default.mark(function recurse(value, index) {\n var i;\n return _regenerator.default.wrap(function recurse$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(0, _is.isArray)(value)) {\n _context.next = 9;\n break;\n }\n\n i = 0;\n\n case 2:\n if (!(i < value.length)) {\n _context.next = 7;\n break;\n }\n\n return _context.delegateYield(recurse(value[i], index.concat(i)), \"t0\", 4);\n\n case 4:\n i++;\n _context.next = 2;\n break;\n\n case 7:\n _context.next = 11;\n break;\n\n case 9:\n _context.next = 11;\n return {\n value: value,\n index: index\n };\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, recurse);\n });\n return _context2.delegateYield(recurse(this._data, []), \"t0\", 2);\n\n case 2:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee, this);\n });\n /**\n * Returns an array containing the rows of a 2D matrix\n * @returns {Array}\n */\n\n DenseMatrix.prototype.rows = function () {\n var result = [];\n var s = this.size();\n\n if (s.length !== 2) {\n throw new TypeError('Rows can only be returned for a 2D matrix.');\n }\n\n var data = this._data;\n\n var _iterator = _createForOfIteratorHelper(data),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var row = _step.value;\n result.push(new DenseMatrix([row], this._datatype));\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n };\n /**\n * Returns an array containing the columns of a 2D matrix\n * @returns {Array}\n */\n\n\n DenseMatrix.prototype.columns = function () {\n var _this = this;\n\n var result = [];\n var s = this.size();\n\n if (s.length !== 2) {\n throw new TypeError('Rows can only be returned for a 2D matrix.');\n }\n\n var data = this._data;\n\n var _loop = function _loop(i) {\n var col = data.map(function (row) {\n return [row[i]];\n });\n result.push(new DenseMatrix(col, _this._datatype));\n };\n\n for (var i = 0; i < s[1]; i++) {\n _loop(i);\n }\n\n return result;\n };\n /**\n * Create an Array with a copy of the data of the DenseMatrix\n * @memberof DenseMatrix\n * @returns {Array} array\n */\n\n\n DenseMatrix.prototype.toArray = function () {\n return (0, _object.clone)(this._data);\n };\n /**\n * Get the primitive value of the DenseMatrix: a multidimensional array\n * @memberof DenseMatrix\n * @returns {Array} array\n */\n\n\n DenseMatrix.prototype.valueOf = function () {\n return this._data;\n };\n /**\n * Get a string representation of the matrix, with optional formatting options.\n * @memberof DenseMatrix\n * @param {Object | number | Function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @returns {string} str\n */\n\n\n DenseMatrix.prototype.format = function (options) {\n return (0, _string.format)(this._data, options);\n };\n /**\n * Get a string representation of the matrix\n * @memberof DenseMatrix\n * @returns {string} str\n */\n\n\n DenseMatrix.prototype.toString = function () {\n return (0, _string.format)(this._data);\n };\n /**\n * Get a JSON representation of the matrix\n * @memberof DenseMatrix\n * @returns {Object}\n */\n\n\n DenseMatrix.prototype.toJSON = function () {\n return {\n mathjs: 'DenseMatrix',\n data: this._data,\n size: this._size,\n datatype: this._datatype\n };\n };\n /**\n * Get the kth Matrix diagonal.\n *\n * @memberof DenseMatrix\n * @param {number | BigNumber} [k=0] The kth diagonal where the vector will retrieved.\n *\n * @returns {Matrix} The matrix with the diagonal values.\n */\n\n\n DenseMatrix.prototype.diagonal = function (k) {\n // validate k if any\n if (k) {\n // convert BigNumber to a number\n if ((0, _is.isBigNumber)(k)) {\n k = k.toNumber();\n } // is must be an integer\n\n\n if (!(0, _is.isNumber)(k) || !(0, _number.isInteger)(k)) {\n throw new TypeError('The parameter k must be an integer number');\n }\n } else {\n // default value\n k = 0;\n }\n\n var kSuper = k > 0 ? k : 0;\n var kSub = k < 0 ? -k : 0; // rows & columns\n\n var rows = this._size[0];\n var columns = this._size[1]; // number diagonal values\n\n var n = Math.min(rows - kSub, columns - kSuper); // x is a matrix get diagonal from matrix\n\n var data = []; // loop rows\n\n for (var i = 0; i < n; i++) {\n data[i] = this._data[i + kSub][i + kSuper];\n } // create DenseMatrix\n\n\n return new DenseMatrix({\n data: data,\n size: [n],\n datatype: this._datatype\n });\n };\n /**\n * Create a diagonal matrix.\n *\n * @memberof DenseMatrix\n * @param {Array} size The matrix size.\n * @param {number | Matrix | Array } value The values for the diagonal.\n * @param {number | BigNumber} [k=0] The kth diagonal where the vector will be filled in.\n * @param {number} [defaultValue] The default value for non-diagonal\n * @param {string} [datatype] The datatype for the diagonal\n *\n * @returns {DenseMatrix}\n */\n\n\n DenseMatrix.diagonal = function (size, value, k, defaultValue) {\n if (!(0, _is.isArray)(size)) {\n throw new TypeError('Array expected, size parameter');\n }\n\n if (size.length !== 2) {\n throw new Error('Only two dimensions matrix are supported');\n } // map size & validate\n\n\n size = size.map(function (s) {\n // check it is a big number\n if ((0, _is.isBigNumber)(s)) {\n // convert it\n s = s.toNumber();\n } // validate arguments\n\n\n if (!(0, _is.isNumber)(s) || !(0, _number.isInteger)(s) || s < 1) {\n throw new Error('Size values must be positive integers');\n }\n\n return s;\n }); // validate k if any\n\n if (k) {\n // convert BigNumber to a number\n if ((0, _is.isBigNumber)(k)) {\n k = k.toNumber();\n } // is must be an integer\n\n\n if (!(0, _is.isNumber)(k) || !(0, _number.isInteger)(k)) {\n throw new TypeError('The parameter k must be an integer number');\n }\n } else {\n // default value\n k = 0;\n }\n\n var kSuper = k > 0 ? k : 0;\n var kSub = k < 0 ? -k : 0; // rows and columns\n\n var rows = size[0];\n var columns = size[1]; // number of non-zero items\n\n var n = Math.min(rows - kSub, columns - kSuper); // value extraction function\n\n var _value; // check value\n\n\n if ((0, _is.isArray)(value)) {\n // validate array\n if (value.length !== n) {\n // number of values in array must be n\n throw new Error('Invalid value array length');\n } // define function\n\n\n _value = function _value(i) {\n // return value @ i\n return value[i];\n };\n } else if ((0, _is.isMatrix)(value)) {\n // matrix size\n var ms = value.size(); // validate matrix\n\n if (ms.length !== 1 || ms[0] !== n) {\n // number of values in array must be n\n throw new Error('Invalid matrix length');\n } // define function\n\n\n _value = function _value(i) {\n // return value @ i\n return value.get([i]);\n };\n } else {\n // define function\n _value = function _value() {\n // return value\n return value;\n };\n } // discover default value if needed\n\n\n if (!defaultValue) {\n // check first value in array\n defaultValue = (0, _is.isBigNumber)(_value(0)) ? _value(0).mul(0) // trick to create a BigNumber with value zero\n : 0;\n } // empty array\n\n\n var data = []; // check we need to resize array\n\n if (size.length > 0) {\n // resize array\n data = (0, _array.resize)(data, size, defaultValue); // fill diagonal\n\n for (var d = 0; d < n; d++) {\n data[d + kSub][d + kSuper] = _value(d);\n }\n } // create DenseMatrix\n\n\n return new DenseMatrix({\n data: data,\n size: [rows, columns]\n });\n };\n /**\n * Generate a matrix from a JSON object\n * @memberof DenseMatrix\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"DenseMatrix\", data: [], size: []}`,\n * where mathjs is optional\n * @returns {DenseMatrix}\n */\n\n\n DenseMatrix.fromJSON = function (json) {\n return new DenseMatrix(json);\n };\n /**\n * Swap rows i and j in Matrix.\n *\n * @memberof DenseMatrix\n * @param {number} i Matrix row index 1\n * @param {number} j Matrix row index 2\n *\n * @return {Matrix} The matrix reference\n */\n\n\n DenseMatrix.prototype.swapRows = function (i, j) {\n // check index\n if (!(0, _is.isNumber)(i) || !(0, _number.isInteger)(i) || !(0, _is.isNumber)(j) || !(0, _number.isInteger)(j)) {\n throw new Error('Row index must be positive integers');\n } // check dimensions\n\n\n if (this._size.length !== 2) {\n throw new Error('Only two dimensional matrix is supported');\n } // validate index\n\n\n (0, _array.validateIndex)(i, this._size[0]);\n (0, _array.validateIndex)(j, this._size[0]); // swap rows\n\n DenseMatrix._swapRows(i, j, this._data); // return current instance\n\n\n return this;\n };\n /**\n * Swap rows i and j in Dense Matrix data structure.\n *\n * @param {number} i Matrix row index 1\n * @param {number} j Matrix row index 2\n * @param {Array} data Matrix data\n */\n\n\n DenseMatrix._swapRows = function (i, j, data) {\n // swap values i <-> j\n var vi = data[i];\n data[i] = data[j];\n data[j] = vi;\n };\n /**\n * Preprocess data, which can be an Array or DenseMatrix with nested Arrays and\n * Matrices. Replaces all nested Matrices with Arrays\n * @memberof DenseMatrix\n * @param {Array} data\n * @return {Array} data\n */\n\n\n function preprocess(data) {\n for (var i = 0, ii = data.length; i < ii; i++) {\n var elem = data[i];\n\n if ((0, _is.isArray)(elem)) {\n data[i] = preprocess(elem);\n } else if (elem && elem.isMatrix === true) {\n data[i] = preprocess(elem.valueOf());\n }\n }\n\n return data;\n }\n\n return DenseMatrix;\n}, {\n isClass: true\n});\nexports.createDenseMatrixClass = createDenseMatrixClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createClone = void 0;\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'clone';\nvar dependencies = ['typed'];\nvar createClone = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Clone an object. Will make a deep copy of the data.\n *\n * Syntax:\n *\n * math.clone(x)\n *\n * Examples:\n *\n * math.clone(3.5) // returns number 3.5\n * math.clone(math.complex('2-4i') // returns Complex 2 - 4i\n * math.clone(math.unit(45, 'deg')) // returns Unit 45 deg\n * math.clone([[1, 2], [3, 4]]) // returns Array [[1, 2], [3, 4]]\n * math.clone(\"hello world\") // returns string \"hello world\"\n *\n * @param {*} x Object to be cloned\n * @return {*} A clone of object x\n */\n return typed(name, {\n any: _object.clone\n });\n});\nexports.createClone = createClone;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports._switch = _switch;\n\n/**\n * Transpose a matrix\n * @param {Array} mat\n * @returns {Array} ret\n * @private\n */\nfunction _switch(mat) {\n var I = mat.length;\n var J = mat[0].length;\n var i, j;\n var ret = [];\n\n for (j = 0; j < J; j++) {\n var tmp = [];\n\n for (i = 0; i < I; i++) {\n tmp.push(mat[i][j]);\n }\n\n ret.push(tmp);\n }\n\n return ret;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.containsCollections = containsCollections;\nexports.deepForEach = deepForEach;\nexports.deepMap = deepMap;\nexports.reduce = reduce;\nexports.scatter = scatter;\n\nvar _is = require(\"./is.js\");\n\nvar _IndexError = require(\"../error/IndexError.js\");\n\nvar _array = require(\"./array.js\");\n\nvar _switch2 = require(\"./switch.js\");\n\n/**\n * Test whether an array contains collections\n * @param {Array} array\n * @returns {boolean} Returns true when the array contains one or multiple\n * collections (Arrays or Matrices). Returns false otherwise.\n */\nfunction containsCollections(array) {\n for (var i = 0; i < array.length; i++) {\n if ((0, _is.isCollection)(array[i])) {\n return true;\n }\n }\n\n return false;\n}\n/**\n * Recursively loop over all elements in a given multi dimensional array\n * and invoke the callback on each of the elements.\n * @param {Array | Matrix} array\n * @param {Function} callback The callback method is invoked with one\n * parameter: the current element in the array\n */\n\n\nfunction deepForEach(array, callback) {\n if ((0, _is.isMatrix)(array)) {\n array = array.valueOf();\n }\n\n for (var i = 0, ii = array.length; i < ii; i++) {\n var value = array[i];\n\n if (Array.isArray(value)) {\n deepForEach(value, callback);\n } else {\n callback(value);\n }\n }\n}\n/**\n * Execute the callback function element wise for each element in array and any\n * nested array\n * Returns an array with the results\n * @param {Array | Matrix} array\n * @param {Function} callback The callback is called with two parameters:\n * value1 and value2, which contain the current\n * element of both arrays.\n * @param {boolean} [skipZeros] Invoke callback function for non-zero values only.\n *\n * @return {Array | Matrix} res\n */\n\n\nfunction deepMap(array, callback, skipZeros) {\n if (array && typeof array.map === 'function') {\n // TODO: replace array.map with a for loop to improve performance\n return array.map(function (x) {\n return deepMap(x, callback, skipZeros);\n });\n } else {\n return callback(array);\n }\n}\n/**\n * Reduce a given matrix or array to a new matrix or\n * array with one less dimension, applying the given\n * callback in the selected dimension.\n * @param {Array | Matrix} mat\n * @param {number} dim\n * @param {Function} callback\n * @return {Array | Matrix} res\n */\n\n\nfunction reduce(mat, dim, callback) {\n var size = Array.isArray(mat) ? (0, _array.arraySize)(mat) : mat.size();\n\n if (dim < 0 || dim >= size.length) {\n // TODO: would be more clear when throwing a DimensionError here\n throw new _IndexError.IndexError(dim, size.length);\n }\n\n if ((0, _is.isMatrix)(mat)) {\n return mat.create(_reduce(mat.valueOf(), dim, callback));\n } else {\n return _reduce(mat, dim, callback);\n }\n}\n/**\n * Recursively reduce a matrix\n * @param {Array} mat\n * @param {number} dim\n * @param {Function} callback\n * @returns {Array} ret\n * @private\n */\n\n\nfunction _reduce(mat, dim, callback) {\n var i, ret, val, tran;\n\n if (dim <= 0) {\n if (!Array.isArray(mat[0])) {\n val = mat[0];\n\n for (i = 1; i < mat.length; i++) {\n val = callback(val, mat[i]);\n }\n\n return val;\n } else {\n tran = (0, _switch2._switch)(mat);\n ret = [];\n\n for (i = 0; i < tran.length; i++) {\n ret[i] = _reduce(tran[i], dim - 1, callback);\n }\n\n return ret;\n }\n } else {\n ret = [];\n\n for (i = 0; i < mat.length; i++) {\n ret[i] = _reduce(mat[i], dim - 1, callback);\n }\n\n return ret;\n }\n} // TODO: document function scatter\n\n\nfunction scatter(a, j, w, x, u, mark, cindex, f, inverse, update, value) {\n // a arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr; // vars\n\n var k, k0, k1, i; // check we need to process values (pattern matrix)\n\n if (x) {\n // values in j\n for (k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = aindex[k]; // check value exists in current j\n\n if (w[i] !== mark) {\n // i is new entry in j\n w[i] = mark; // add i to pattern of C\n\n cindex.push(i); // x(i) = A, check we need to call function this time\n\n if (update) {\n // copy value to workspace calling callback function\n x[i] = inverse ? f(avalues[k], value) : f(value, avalues[k]); // function was called on current row\n\n u[i] = mark;\n } else {\n // copy value to workspace\n x[i] = avalues[k];\n }\n } else {\n // i exists in C already\n x[i] = inverse ? f(avalues[k], x[i]) : f(x[i], avalues[k]); // function was called on current row\n\n u[i] = mark;\n }\n }\n } else {\n // values in j\n for (k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = aindex[k]; // check value exists in current j\n\n if (w[i] !== mark) {\n // i is new entry in j\n w[i] = mark; // add i to pattern of C\n\n cindex.push(i);\n } else {\n // indicate function was called on current row\n u[i] = mark;\n }\n }\n }\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsInteger = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'isInteger';\nvar dependencies = ['typed'];\nvar createIsInteger = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is an integer number.\n * The function supports `number`, `BigNumber`, and `Fraction`.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isInteger(x)\n *\n * Examples:\n *\n * math.isInteger(2) // returns true\n * math.isInteger(0) // returns true\n * math.isInteger(0.5) // returns false\n * math.isInteger(math.bignumber(500)) // returns true\n * math.isInteger(math.fraction(4)) // returns true\n * math.isInteger('3') // returns true\n * math.isInteger([3, 0.5, -2]) // returns [true, false, true]\n * math.isInteger(math.complex('2-4i') // throws an error\n *\n * See also:\n *\n * isNumeric, isPositive, isNegative, isZero\n *\n * @param {number | BigNumber | Fraction | Array | Matrix} x Value to be tested\n * @return {boolean} Returns true when `x` contains a numeric, integer value.\n * Throws an error in case of an unknown data type.\n */\n return typed(name, {\n number: _number.isInteger,\n // TODO: what to do with isInteger(add(0.1, 0.2)) ?\n BigNumber: function BigNumber(x) {\n return x.isInt();\n },\n Fraction: function Fraction(x) {\n return x.d === 1 && isFinite(x.n);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIsInteger = createIsInteger;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.absNumber = absNumber;\nexports.addNumber = addNumber;\nexports.cbrtNumber = cbrtNumber;\nexports.cubeNumber = cubeNumber;\nexports.divideNumber = divideNumber;\nexports.expNumber = expNumber;\nexports.expm1Number = expm1Number;\nexports.gcdNumber = gcdNumber;\nexports.lcmNumber = lcmNumber;\nexports.log10Number = log10Number;\nexports.log1pNumber = log1pNumber;\nexports.log2Number = log2Number;\nexports.logNumber = logNumber;\nexports.modNumber = modNumber;\nexports.multiplyNumber = multiplyNumber;\nexports.normNumber = normNumber;\nexports.nthRootNumber = nthRootNumber;\nexports.powNumber = powNumber;\nexports.roundNumber = roundNumber;\nexports.signNumber = signNumber;\nexports.sqrtNumber = sqrtNumber;\nexports.squareNumber = squareNumber;\nexports.subtractNumber = subtractNumber;\nexports.unaryMinusNumber = unaryMinusNumber;\nexports.unaryPlusNumber = unaryPlusNumber;\nexports.xgcdNumber = xgcdNumber;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar n1 = 'number';\nvar n2 = 'number, number';\n\nfunction absNumber(a) {\n return Math.abs(a);\n}\n\nabsNumber.signature = n1;\n\nfunction addNumber(a, b) {\n return a + b;\n}\n\naddNumber.signature = n2;\n\nfunction subtractNumber(a, b) {\n return a - b;\n}\n\nsubtractNumber.signature = n2;\n\nfunction multiplyNumber(a, b) {\n return a * b;\n}\n\nmultiplyNumber.signature = n2;\n\nfunction divideNumber(a, b) {\n return a / b;\n}\n\ndivideNumber.signature = n2;\n\nfunction unaryMinusNumber(x) {\n return -x;\n}\n\nunaryMinusNumber.signature = n1;\n\nfunction unaryPlusNumber(x) {\n return x;\n}\n\nunaryPlusNumber.signature = n1;\n\nfunction cbrtNumber(x) {\n return (0, _number.cbrt)(x);\n}\n\ncbrtNumber.signature = n1;\n\nfunction cubeNumber(x) {\n return x * x * x;\n}\n\ncubeNumber.signature = n1;\n\nfunction expNumber(x) {\n return Math.exp(x);\n}\n\nexpNumber.signature = n1;\n\nfunction expm1Number(x) {\n return (0, _number.expm1)(x);\n}\n\nexpm1Number.signature = n1;\n/**\n * Calculate gcd for numbers\n * @param {number} a\n * @param {number} b\n * @returns {number} Returns the greatest common denominator of a and b\n */\n\nfunction gcdNumber(a, b) {\n if (!(0, _number.isInteger)(a) || !(0, _number.isInteger)(b)) {\n throw new Error('Parameters in function gcd must be integer numbers');\n } // https://en.wikipedia.org/wiki/Euclidean_algorithm\n\n\n var r;\n\n while (b !== 0) {\n r = a % b;\n a = b;\n b = r;\n }\n\n return a < 0 ? -a : a;\n}\n\ngcdNumber.signature = n2;\n/**\n * Calculate lcm for two numbers\n * @param {number} a\n * @param {number} b\n * @returns {number} Returns the least common multiple of a and b\n */\n\nfunction lcmNumber(a, b) {\n if (!(0, _number.isInteger)(a) || !(0, _number.isInteger)(b)) {\n throw new Error('Parameters in function lcm must be integer numbers');\n }\n\n if (a === 0 || b === 0) {\n return 0;\n } // https://en.wikipedia.org/wiki/Euclidean_algorithm\n // evaluate lcm here inline to reduce overhead\n\n\n var t;\n var prod = a * b;\n\n while (b !== 0) {\n t = b;\n b = a % t;\n a = t;\n }\n\n return Math.abs(prod / a);\n}\n\nlcmNumber.signature = n2;\n/**\n * Calculate the logarithm of a value, optionally to a given base.\n * @param {number} x\n * @param {number | null | undefined} base\n * @return {number}\n */\n\nfunction logNumber(x, y) {\n if (y) {\n return Math.log(x) / Math.log(y);\n }\n\n return Math.log(x);\n}\n/**\n * Calculate the 10-base logarithm of a number\n * @param {number} x\n * @return {number}\n */\n\n\nfunction log10Number(x) {\n return (0, _number.log10)(x);\n}\n\nlog10Number.signature = n1;\n/**\n * Calculate the 2-base logarithm of a number\n * @param {number} x\n * @return {number}\n */\n\nfunction log2Number(x) {\n return (0, _number.log2)(x);\n}\n\nlog2Number.signature = n1;\n/**\n * Calculate the natural logarithm of a `number+1`\n * @param {number} x\n * @returns {number}\n */\n\nfunction log1pNumber(x) {\n return (0, _number.log1p)(x);\n}\n\nlog1pNumber.signature = n1;\n/**\n * Calculate the modulus of two numbers\n * @param {number} x\n * @param {number} y\n * @returns {number} res\n * @private\n */\n\nfunction modNumber(x, y) {\n if (y > 0) {\n // We don't use JavaScript's % operator here as this doesn't work\n // correctly for x < 0 and x === 0\n // see https://en.wikipedia.org/wiki/Modulo_operation\n return x - y * Math.floor(x / y);\n } else if (y === 0) {\n return x;\n } else {\n // y < 0\n // TODO: implement mod for a negative divisor\n throw new Error('Cannot calculate mod for a negative divisor');\n }\n}\n\nmodNumber.signature = n2;\n/**\n * Calculate the nth root of a, solve x^root == a\n * http://rosettacode.org/wiki/Nth_root#JavaScript\n * @param {number} a\n * @param {number} [2] root\n * @private\n */\n\nfunction nthRootNumber(a) {\n var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n var inv = root < 0;\n\n if (inv) {\n root = -root;\n }\n\n if (root === 0) {\n throw new Error('Root must be non-zero');\n }\n\n if (a < 0 && Math.abs(root) % 2 !== 1) {\n throw new Error('Root must be odd when a is negative.');\n } // edge cases zero and infinity\n\n\n if (a === 0) {\n return inv ? Infinity : 0;\n }\n\n if (!isFinite(a)) {\n return inv ? 0 : a;\n }\n\n var x = Math.pow(Math.abs(a), 1 / root); // If a < 0, we require that root is an odd integer,\n // so (-1) ^ (1/root) = -1\n\n x = a < 0 ? -x : x;\n return inv ? 1 / x : x; // Very nice algorithm, but fails with nthRoot(-2, 3).\n // Newton's method has some well-known problems at times:\n // https://en.wikipedia.org/wiki/Newton%27s_method#Failure_analysis\n\n /*\n let x = 1 // Initial guess\n let xPrev = 1\n let i = 0\n const iMax = 10000\n do {\n const delta = (a / Math.pow(x, root - 1) - x) / root\n xPrev = x\n x = x + delta\n i++\n }\n while (xPrev !== x && i < iMax)\n if (xPrev !== x) {\n throw new Error('Function nthRoot failed to converge')\n }\n return inv ? 1 / x : x\n */\n}\n\nfunction signNumber(x) {\n return (0, _number.sign)(x);\n}\n\nsignNumber.signature = n1;\n\nfunction sqrtNumber(x) {\n return Math.sqrt(x);\n}\n\nsqrtNumber.signature = n1;\n\nfunction squareNumber(x) {\n return x * x;\n}\n\nsquareNumber.signature = n1;\n/**\n * Calculate xgcd for two numbers\n * @param {number} a\n * @param {number} b\n * @return {number} result\n * @private\n */\n\nfunction xgcdNumber(a, b) {\n // source: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm\n var t; // used to swap two variables\n\n var q; // quotient\n\n var r; // remainder\n\n var x = 0;\n var lastx = 1;\n var y = 1;\n var lasty = 0;\n\n if (!(0, _number.isInteger)(a) || !(0, _number.isInteger)(b)) {\n throw new Error('Parameters in function xgcd must be integer numbers');\n }\n\n while (b) {\n q = Math.floor(a / b);\n r = a - q * b;\n t = x;\n x = lastx - q * x;\n lastx = t;\n t = y;\n y = lasty - q * y;\n lasty = t;\n a = b;\n b = r;\n }\n\n var res;\n\n if (a < 0) {\n res = [-a, -lastx, -lasty];\n } else {\n res = [a, a ? lastx : 0, lasty];\n }\n\n return res;\n}\n\nxgcdNumber.signature = n2;\n/**\n * Calculates the power of x to y, x^y, for two numbers.\n * @param {number} x\n * @param {number} y\n * @return {number} res\n */\n\nfunction powNumber(x, y) {\n // x^Infinity === 0 if -1 < x < 1\n // A real number 0 is returned instead of complex(0)\n if (x * x < 1 && y === Infinity || x * x > 1 && y === -Infinity) {\n return 0;\n }\n\n return Math.pow(x, y);\n}\n\npowNumber.signature = n2;\n/**\n * round a number to the given number of decimals, or to zero if decimals is\n * not provided\n * @param {number} value\n * @param {number} decimals number of decimals, between 0 and 15 (0 by default)\n * @return {number} roundedValue\n */\n\nfunction roundNumber(value) {\n var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n\n if (!(0, _number.isInteger)(decimals) || decimals < 0 || decimals > 15) {\n throw new Error('Number of decimals in function round must be an integer from 0 to 15 inclusive');\n }\n\n return parseFloat((0, _number.toFixed)(value, decimals));\n}\n/**\n * Calculate the norm of a number, the absolute value.\n * @param {number} x\n * @return {number}\n */\n\n\nfunction normNumber(x) {\n return Math.abs(x);\n}\n\nnormNumber.signature = n1;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitAndNumber = bitAndNumber;\nexports.bitNotNumber = bitNotNumber;\nexports.bitOrNumber = bitOrNumber;\nexports.bitXorNumber = bitXorNumber;\nexports.leftShiftNumber = leftShiftNumber;\nexports.rightArithShiftNumber = rightArithShiftNumber;\nexports.rightLogShiftNumber = rightLogShiftNumber;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar n1 = 'number';\nvar n2 = 'number, number';\n\nfunction bitAndNumber(x, y) {\n if (!(0, _number.isInteger)(x) || !(0, _number.isInteger)(y)) {\n throw new Error('Integers expected in function bitAnd');\n }\n\n return x & y;\n}\n\nbitAndNumber.signature = n2;\n\nfunction bitNotNumber(x) {\n if (!(0, _number.isInteger)(x)) {\n throw new Error('Integer expected in function bitNot');\n }\n\n return ~x;\n}\n\nbitNotNumber.signature = n1;\n\nfunction bitOrNumber(x, y) {\n if (!(0, _number.isInteger)(x) || !(0, _number.isInteger)(y)) {\n throw new Error('Integers expected in function bitOr');\n }\n\n return x | y;\n}\n\nbitOrNumber.signature = n2;\n\nfunction bitXorNumber(x, y) {\n if (!(0, _number.isInteger)(x) || !(0, _number.isInteger)(y)) {\n throw new Error('Integers expected in function bitXor');\n }\n\n return x ^ y;\n}\n\nbitXorNumber.signature = n2;\n\nfunction leftShiftNumber(x, y) {\n if (!(0, _number.isInteger)(x) || !(0, _number.isInteger)(y)) {\n throw new Error('Integers expected in function leftShift');\n }\n\n return x << y;\n}\n\nleftShiftNumber.signature = n2;\n\nfunction rightArithShiftNumber(x, y) {\n if (!(0, _number.isInteger)(x) || !(0, _number.isInteger)(y)) {\n throw new Error('Integers expected in function rightArithShift');\n }\n\n return x >> y;\n}\n\nrightArithShiftNumber.signature = n2;\n\nfunction rightLogShiftNumber(x, y) {\n if (!(0, _number.isInteger)(x) || !(0, _number.isInteger)(y)) {\n throw new Error('Integers expected in function rightLogShift');\n }\n\n return x >>> y;\n}\n\nrightLogShiftNumber.signature = n2;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.product = product;\n\n/** @param {number} i\n * @param {number} n\n * @returns {number} product of i to n\n */\nfunction product(i, n) {\n if (n < i) {\n return 1;\n }\n\n if (n === i) {\n return n;\n }\n\n var half = n + i >> 1; // divide (n + i) by 2 and truncate to integer\n\n return product(i, half) * product(half + 1, n);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.combinationsNumber = combinationsNumber;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _product = require(\"../../utils/product.js\");\n\nfunction combinationsNumber(n, k) {\n if (!(0, _number.isInteger)(n) || n < 0) {\n throw new TypeError('Positive integer value expected in function combinations');\n }\n\n if (!(0, _number.isInteger)(k) || k < 0) {\n throw new TypeError('Positive integer value expected in function combinations');\n }\n\n if (k > n) {\n throw new TypeError('k must be less than or equal to n');\n }\n\n var nMinusk = n - k;\n var answer = 1;\n var firstnumerator = k < nMinusk ? nMinusk + 1 : k + 1;\n var nextdivisor = 2;\n var lastdivisor = k < nMinusk ? k : nMinusk; // balance multiplications and divisions to try to keep intermediate values\n // in exact-integer range as long as possible\n\n for (var nextnumerator = firstnumerator; nextnumerator <= n; ++nextnumerator) {\n answer *= nextnumerator;\n\n while (nextdivisor <= lastdivisor && answer % nextdivisor === 0) {\n answer /= nextdivisor;\n ++nextdivisor;\n }\n } // for big n, k, floating point may have caused weirdness in remainder\n\n\n if (nextdivisor <= lastdivisor) {\n answer /= (0, _product.product)(nextdivisor, lastdivisor);\n }\n\n return answer;\n}\n\ncombinationsNumber.signature = 'number, number';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tau = exports.pi = exports.phi = exports.e = void 0;\nvar pi = Math.PI;\nexports.pi = pi;\nvar tau = 2 * Math.PI;\nexports.tau = tau;\nvar e = Math.E;\nexports.e = e;\nvar phi = 1.6180339887498948; // eslint-disable-line no-loss-of-precision\n\nexports.phi = phi;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.andNumber = andNumber;\nexports.notNumber = notNumber;\nexports.orNumber = orNumber;\nexports.xorNumber = xorNumber;\nvar n1 = 'number';\nvar n2 = 'number, number';\n\nfunction notNumber(x) {\n return !x;\n}\n\nnotNumber.signature = n1;\n\nfunction orNumber(x, y) {\n return !!(x || y);\n}\n\norNumber.signature = n2;\n\nfunction xorNumber(x, y) {\n return !!x !== !!y;\n}\n\nxorNumber.signature = n2;\n\nfunction andNumber(x, y) {\n return !!(x && y);\n}\n\nandNumber.signature = n2;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gammaG = void 0;\nexports.gammaNumber = gammaNumber;\nexports.lgammaN = exports.lgammaG = exports.gammaP = void 0;\nexports.lgammaNumber = lgammaNumber;\nexports.lnSqrt2PI = exports.lgammaSeries = void 0;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _product = require(\"../../utils/product.js\");\n\n/* eslint-disable no-loss-of-precision */\nfunction gammaNumber(n) {\n var x;\n\n if ((0, _number.isInteger)(n)) {\n if (n <= 0) {\n return isFinite(n) ? Infinity : NaN;\n }\n\n if (n > 171) {\n return Infinity; // Will overflow\n }\n\n return (0, _product.product)(1, n - 1);\n }\n\n if (n < 0.5) {\n return Math.PI / (Math.sin(Math.PI * n) * gammaNumber(1 - n));\n }\n\n if (n >= 171.35) {\n return Infinity; // will overflow\n }\n\n if (n > 85.0) {\n // Extended Stirling Approx\n var twoN = n * n;\n var threeN = twoN * n;\n var fourN = threeN * n;\n var fiveN = fourN * n;\n return Math.sqrt(2 * Math.PI / n) * Math.pow(n / Math.E, n) * (1 + 1 / (12 * n) + 1 / (288 * twoN) - 139 / (51840 * threeN) - 571 / (2488320 * fourN) + 163879 / (209018880 * fiveN) + 5246819 / (75246796800 * fiveN * n));\n }\n\n --n;\n x = gammaP[0];\n\n for (var i = 1; i < gammaP.length; ++i) {\n x += gammaP[i] / (n + i);\n }\n\n var t = n + gammaG + 0.5;\n return Math.sqrt(2 * Math.PI) * Math.pow(t, n + 0.5) * Math.exp(-t) * x;\n}\n\ngammaNumber.signature = 'number'; // TODO: comment on the variables g and p\n\nvar gammaG = 4.7421875;\nexports.gammaG = gammaG;\nvar gammaP = [0.99999999999999709182, 57.156235665862923517, -59.597960355475491248, 14.136097974741747174, -0.49191381609762019978, 0.33994649984811888699e-4, 0.46523628927048575665e-4, -0.98374475304879564677e-4, 0.15808870322491248884e-3, -0.21026444172410488319e-3, 0.21743961811521264320e-3, -0.16431810653676389022e-3, 0.84418223983852743293e-4, -0.26190838401581408670e-4, 0.36899182659531622704e-5]; // lgamma implementation ref: https://mrob.com/pub/ries/lanczos-gamma.html#code\n// log(2 * pi) / 2\n\nexports.gammaP = gammaP;\nvar lnSqrt2PI = 0.91893853320467274178;\nexports.lnSqrt2PI = lnSqrt2PI;\nvar lgammaG = 5; // Lanczos parameter \"g\"\n\nexports.lgammaG = lgammaG;\nvar lgammaN = 7; // Range of coefficients \"n\"\n\nexports.lgammaN = lgammaN;\nvar lgammaSeries = [1.000000000190015, 76.18009172947146, -86.50532032941677, 24.01409824083091, -1.231739572450155, 0.1208650973866179e-2, -0.5395239384953e-5];\nexports.lgammaSeries = lgammaSeries;\n\nfunction lgammaNumber(n) {\n if (n < 0) return NaN;\n if (n === 0) return Infinity;\n if (!isFinite(n)) return n;\n\n if (n < 0.5) {\n // Use Euler's reflection formula:\n // gamma(z) = PI / (sin(PI * z) * gamma(1 - z))\n return Math.log(Math.PI / Math.sin(Math.PI * n)) - lgammaNumber(1 - n);\n } // Compute the logarithm of the Gamma function using the Lanczos method\n\n\n n = n - 1;\n var base = n + lgammaG + 0.5; // Base of the Lanczos exponential\n\n var sum = lgammaSeries[0]; // We start with the terms that have the smallest coefficients and largest denominator\n\n for (var i = lgammaN - 1; i >= 1; i--) {\n sum += lgammaSeries[i] / (n + i);\n }\n\n return lnSqrt2PI + (n + 0.5) * Math.log(base) - base + Math.log(sum);\n}\n\nlgammaNumber.signature = 'number';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acosNumber = acosNumber;\nexports.acoshNumber = acoshNumber;\nexports.acotNumber = acotNumber;\nexports.acothNumber = acothNumber;\nexports.acscNumber = acscNumber;\nexports.acschNumber = acschNumber;\nexports.asecNumber = asecNumber;\nexports.asechNumber = asechNumber;\nexports.asinNumber = asinNumber;\nexports.asinhNumber = asinhNumber;\nexports.atan2Number = atan2Number;\nexports.atanNumber = atanNumber;\nexports.atanhNumber = atanhNumber;\nexports.cosNumber = cosNumber;\nexports.coshNumber = coshNumber;\nexports.cotNumber = cotNumber;\nexports.cothNumber = cothNumber;\nexports.cscNumber = cscNumber;\nexports.cschNumber = cschNumber;\nexports.secNumber = secNumber;\nexports.sechNumber = sechNumber;\nexports.sinNumber = sinNumber;\nexports.sinhNumber = sinhNumber;\nexports.tanNumber = tanNumber;\nexports.tanhNumber = tanhNumber;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar n1 = 'number';\nvar n2 = 'number, number';\n\nfunction acosNumber(x) {\n return Math.acos(x);\n}\n\nacosNumber.signature = n1;\n\nfunction acoshNumber(x) {\n return (0, _number.acosh)(x);\n}\n\nacoshNumber.signature = n1;\n\nfunction acotNumber(x) {\n return Math.atan(1 / x);\n}\n\nacotNumber.signature = n1;\n\nfunction acothNumber(x) {\n return isFinite(x) ? (Math.log((x + 1) / x) + Math.log(x / (x - 1))) / 2 : 0;\n}\n\nacothNumber.signature = n1;\n\nfunction acscNumber(x) {\n return Math.asin(1 / x);\n}\n\nacscNumber.signature = n1;\n\nfunction acschNumber(x) {\n var xInv = 1 / x;\n return Math.log(xInv + Math.sqrt(xInv * xInv + 1));\n}\n\nacschNumber.signature = n1;\n\nfunction asecNumber(x) {\n return Math.acos(1 / x);\n}\n\nasecNumber.signature = n1;\n\nfunction asechNumber(x) {\n var xInv = 1 / x;\n var ret = Math.sqrt(xInv * xInv - 1);\n return Math.log(ret + xInv);\n}\n\nasechNumber.signature = n1;\n\nfunction asinNumber(x) {\n return Math.asin(x);\n}\n\nasinNumber.signature = n1;\n\nfunction asinhNumber(x) {\n return (0, _number.asinh)(x);\n}\n\nasinhNumber.signature = n1;\n\nfunction atanNumber(x) {\n return Math.atan(x);\n}\n\natanNumber.signature = n1;\n\nfunction atan2Number(y, x) {\n return Math.atan2(y, x);\n}\n\natan2Number.signature = n2;\n\nfunction atanhNumber(x) {\n return (0, _number.atanh)(x);\n}\n\natanhNumber.signature = n1;\n\nfunction cosNumber(x) {\n return Math.cos(x);\n}\n\ncosNumber.signature = n1;\n\nfunction coshNumber(x) {\n return (0, _number.cosh)(x);\n}\n\ncoshNumber.signature = n1;\n\nfunction cotNumber(x) {\n return 1 / Math.tan(x);\n}\n\ncotNumber.signature = n1;\n\nfunction cothNumber(x) {\n var e = Math.exp(2 * x);\n return (e + 1) / (e - 1);\n}\n\ncothNumber.signature = n1;\n\nfunction cscNumber(x) {\n return 1 / Math.sin(x);\n}\n\ncscNumber.signature = n1;\n\nfunction cschNumber(x) {\n // consider values close to zero (+/-)\n if (x === 0) {\n return Number.POSITIVE_INFINITY;\n } else {\n return Math.abs(2 / (Math.exp(x) - Math.exp(-x))) * (0, _number.sign)(x);\n }\n}\n\ncschNumber.signature = n1;\n\nfunction secNumber(x) {\n return 1 / Math.cos(x);\n}\n\nsecNumber.signature = n1;\n\nfunction sechNumber(x) {\n return 2 / (Math.exp(x) + Math.exp(-x));\n}\n\nsechNumber.signature = n1;\n\nfunction sinNumber(x) {\n return Math.sin(x);\n}\n\nsinNumber.signature = n1;\n\nfunction sinhNumber(x) {\n return (0, _number.sinh)(x);\n}\n\nsinhNumber.signature = n1;\n\nfunction tanNumber(x) {\n return Math.tan(x);\n}\n\ntanNumber.signature = n1;\n\nfunction tanhNumber(x) {\n return (0, _number.tanh)(x);\n}\n\ntanhNumber.signature = n1;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isIntegerNumber = isIntegerNumber;\nexports.isNaNNumber = isNaNNumber;\nexports.isNegativeNumber = isNegativeNumber;\nexports.isPositiveNumber = isPositiveNumber;\nexports.isZeroNumber = isZeroNumber;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar n1 = 'number';\n\nfunction isIntegerNumber(x) {\n return (0, _number.isInteger)(x);\n}\n\nisIntegerNumber.signature = n1;\n\nfunction isNegativeNumber(x) {\n return x < 0;\n}\n\nisNegativeNumber.signature = n1;\n\nfunction isPositiveNumber(x) {\n return x > 0;\n}\n\nisPositiveNumber.signature = n1;\n\nfunction isZeroNumber(x) {\n return x === 0;\n}\n\nisZeroNumber.signature = n1;\n\nfunction isNaNNumber(x) {\n return Number.isNaN(x);\n}\n\nisNaNNumber.signature = n1;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _arithmetic = require(\"./arithmetic.js\");\n\nObject.keys(_arithmetic).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _arithmetic[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _arithmetic[key];\n }\n });\n});\n\nvar _bitwise = require(\"./bitwise.js\");\n\nObject.keys(_bitwise).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _bitwise[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _bitwise[key];\n }\n });\n});\n\nvar _combinations = require(\"./combinations.js\");\n\nObject.keys(_combinations).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _combinations[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _combinations[key];\n }\n });\n});\n\nvar _constants = require(\"./constants.js\");\n\nObject.keys(_constants).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _constants[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _constants[key];\n }\n });\n});\n\nvar _logical = require(\"./logical.js\");\n\nObject.keys(_logical).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _logical[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _logical[key];\n }\n });\n});\n\nvar _relational = require(\"./relational.js\");\n\nObject.keys(_relational).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _relational[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _relational[key];\n }\n });\n});\n\nvar _probability = require(\"./probability.js\");\n\nObject.keys(_probability).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _probability[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _probability[key];\n }\n });\n});\n\nvar _trigonometry = require(\"./trigonometry.js\");\n\nObject.keys(_trigonometry).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _trigonometry[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _trigonometry[key];\n }\n });\n});\n\nvar _utils = require(\"./utils.js\");\n\nObject.keys(_utils).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _utils[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _utils[key];\n }\n });\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsNegative = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'isNegative';\nvar dependencies = ['typed'];\nvar createIsNegative = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is negative: smaller than zero.\n * The function supports types `number`, `BigNumber`, `Fraction`, and `Unit`.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isNegative(x)\n *\n * Examples:\n *\n * math.isNegative(3) // returns false\n * math.isNegative(-2) // returns true\n * math.isNegative(0) // returns false\n * math.isNegative(-0) // returns false\n * math.isNegative(math.bignumber(2)) // returns false\n * math.isNegative(math.fraction(-2, 5)) // returns true\n * math.isNegative('-2') // returns true\n * math.isNegative([2, 0, -3]') // returns [false, false, true]\n *\n * See also:\n *\n * isNumeric, isPositive, isZero, isInteger\n *\n * @param {number | BigNumber | Fraction | Unit | Array | Matrix} x Value to be tested\n * @return {boolean} Returns true when `x` is larger than zero.\n * Throws an error in case of an unknown data type.\n */\n return typed(name, {\n number: _index.isNegativeNumber,\n BigNumber: function BigNumber(x) {\n return x.isNeg() && !x.isZero() && !x.isNaN();\n },\n Fraction: function Fraction(x) {\n return x.s < 0; // It's enough to decide on the sign\n },\n Unit: function Unit(x) {\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIsNegative = createIsNegative;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsNumeric = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'isNumeric';\nvar dependencies = ['typed'];\nvar createIsNumeric = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is an numeric value.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isNumeric(x)\n *\n * Examples:\n *\n * math.isNumeric(2) // returns true\n * math.isNumeric('2') // returns false\n * math.hasNumericValue('2') // returns true\n * math.isNumeric(0) // returns true\n * math.isNumeric(math.bignumber(500)) // returns true\n * math.isNumeric(math.fraction(4)) // returns true\n * math.isNumeric(math.complex('2-4i') // returns false\n * math.isNumeric([2.3, 'foo', false]) // returns [true, false, true]\n *\n * See also:\n *\n * isZero, isPositive, isNegative, isInteger, hasNumericValue\n *\n * @param {*} x Value to be tested\n * @return {boolean} Returns true when `x` is a `number`, `BigNumber`,\n * `Fraction`, or `boolean`. Returns false for other types.\n * Throws an error in case of unknown types.\n */\n return typed(name, {\n 'number | BigNumber | Fraction | boolean': function numberBigNumberFractionBoolean() {\n return true;\n },\n 'Complex | Unit | string | null | undefined | Node': function ComplexUnitStringNullUndefinedNode() {\n return false;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIsNumeric = createIsNumeric;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createHasNumericValue = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'hasNumericValue';\nvar dependencies = ['typed', 'isNumeric'];\nvar createHasNumericValue = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n isNumeric = _ref.isNumeric;\n\n /**\n * Test whether a value is an numeric value.\n *\n * In case of a string, true is returned if the string contains a numeric value.\n *\n * Syntax:\n *\n * math.hasNumericValue(x)\n *\n * Examples:\n *\n * math.hasNumericValue(2) // returns true\n * math.hasNumericValue('2') // returns true\n * math.isNumeric('2') // returns false\n * math.hasNumericValue(0) // returns true\n * math.hasNumericValue(math.bignumber(500)) // returns true\n * math.hasNumericValue(math.fraction(4)) // returns true\n * math.hasNumericValue(math.complex('2-4i') // returns false\n * math.hasNumericValue([2.3, 'foo', false]) // returns [true, false, true]\n *\n * See also:\n *\n * isZero, isPositive, isNegative, isInteger, isNumeric\n *\n * @param {*} x Value to be tested\n * @return {boolean} Returns true when `x` is a `number`, `BigNumber`,\n * `Fraction`, `Boolean`, or a `String` containing number. Returns false for other types.\n * Throws an error in case of unknown types.\n */\n return typed(name, {\n string: function string(x) {\n return x.trim().length > 0 && !isNaN(Number(x));\n },\n any: function any(x) {\n return isNumeric(x);\n }\n });\n});\nexports.createHasNumericValue = createHasNumericValue;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsPositive = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'isPositive';\nvar dependencies = ['typed'];\nvar createIsPositive = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is positive: larger than zero.\n * The function supports types `number`, `BigNumber`, `Fraction`, and `Unit`.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isPositive(x)\n *\n * Examples:\n *\n * math.isPositive(3) // returns true\n * math.isPositive(-2) // returns false\n * math.isPositive(0) // returns false\n * math.isPositive(-0) // returns false\n * math.isPositive(0.5) // returns true\n * math.isPositive(math.bignumber(2)) // returns true\n * math.isPositive(math.fraction(-2, 5)) // returns false\n * math.isPositive(math.fraction(1,3)) // returns false\n * math.isPositive('2') // returns true\n * math.isPositive([2, 0, -3]) // returns [true, false, false]\n *\n * See also:\n *\n * isNumeric, isZero, isNegative, isInteger\n *\n * @param {number | BigNumber | Fraction | Unit | Array | Matrix} x Value to be tested\n * @return {boolean} Returns true when `x` is larger than zero.\n * Throws an error in case of an unknown data type.\n */\n return typed(name, {\n number: _index.isPositiveNumber,\n BigNumber: function BigNumber(x) {\n return !x.isNeg() && !x.isZero() && !x.isNaN();\n },\n Fraction: function Fraction(x) {\n return x.s > 0 && x.n > 0;\n },\n Unit: function Unit(x) {\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIsPositive = createIsPositive;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsZero = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'isZero';\nvar dependencies = ['typed'];\nvar createIsZero = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is zero.\n * The function can check for zero for types `number`, `BigNumber`, `Fraction`,\n * `Complex`, and `Unit`.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isZero(x)\n *\n * Examples:\n *\n * math.isZero(0) // returns true\n * math.isZero(2) // returns false\n * math.isZero(0.5) // returns false\n * math.isZero(math.bignumber(0)) // returns true\n * math.isZero(math.fraction(0)) // returns true\n * math.isZero(math.fraction(1,3)) // returns false\n * math.isZero(math.complex('2 - 4i') // returns false\n * math.isZero(math.complex('0i') // returns true\n * math.isZero('0') // returns true\n * math.isZero('2') // returns false\n * math.isZero([2, 0, -3]') // returns [false, true, false]\n *\n * See also:\n *\n * isNumeric, isPositive, isNegative, isInteger\n *\n * @param {number | BigNumber | Complex | Fraction | Unit | Array | Matrix} x Value to be tested\n * @return {boolean} Returns true when `x` is zero.\n * Throws an error in case of an unknown data type.\n */\n return typed(name, {\n number: _index.isZeroNumber,\n BigNumber: function BigNumber(x) {\n return x.isZero();\n },\n Complex: function Complex(x) {\n return x.re === 0 && x.im === 0;\n },\n Fraction: function Fraction(x) {\n return x.d === 1 && x.n === 0;\n },\n Unit: function Unit(x) {\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIsZero = createIsZero;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsNaN = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'isNaN';\nvar dependencies = ['typed'];\nvar createIsNaN = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is NaN (not a number).\n * The function supports types `number`, `BigNumber`, `Fraction`, `Unit` and `Complex`.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isNaN(x)\n *\n * Examples:\n *\n * math.isNaN(3) // returns false\n * math.isNaN(NaN) // returns true\n * math.isNaN(0) // returns false\n * math.isNaN(math.bignumber(NaN)) // returns true\n * math.isNaN(math.bignumber(0)) // returns false\n * math.isNaN(math.fraction(-2, 5)) // returns false\n * math.isNaN('-2') // returns false\n * math.isNaN([2, 0, -3, NaN]') // returns [false, false, false, true]\n *\n * See also:\n *\n * isNumeric, isNegative, isPositive, isZero, isInteger\n *\n * @param {number | BigNumber | Fraction | Unit | Array | Matrix} x Value to be tested\n * @return {boolean} Returns true when `x` is NaN.\n * Throws an error in case of an unknown data type.\n */\n return typed(name, {\n number: _index.isNaNNumber,\n BigNumber: function BigNumber(x) {\n return x.isNaN();\n },\n Fraction: function Fraction(x) {\n return false;\n },\n Complex: function Complex(x) {\n return x.isNaN();\n },\n Unit: function Unit(x) {\n return Number.isNaN(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, Number.isNaN);\n }\n });\n});\nexports.createIsNaN = createIsNaN;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTypeOf = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'typeOf';\nvar dependencies = ['typed'];\nvar createTypeOf = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Determine the type of a variable.\n *\n * Function `typeOf` recognizes the following types of objects:\n *\n * Object | Returns | Example\n * ---------------------- | ------------- | ------------------------------------------\n * null | `'null'` | `math.typeOf(null)`\n * number | `'number'` | `math.typeOf(3.5)`\n * boolean | `'boolean'` | `math.typeOf(true)`\n * string | `'string'` | `math.typeOf('hello world')`\n * Array | `'Array'` | `math.typeOf([1, 2, 3])`\n * Date | `'Date'` | `math.typeOf(new Date())`\n * Function | `'Function'` | `math.typeOf(function () {})`\n * Object | `'Object'` | `math.typeOf({a: 2, b: 3})`\n * RegExp | `'RegExp'` | `math.typeOf(/a regexp/)`\n * undefined | `'undefined'` | `math.typeOf(undefined)`\n * math.BigNumber | `'BigNumber'` | `math.typeOf(math.bignumber('2.3e500'))`\n * math.Chain | `'Chain'` | `math.typeOf(math.chain(2))`\n * math.Complex | `'Complex'` | `math.typeOf(math.complex(2, 3))`\n * math.Fraction | `'Fraction'` | `math.typeOf(math.fraction(1, 3))`\n * math.Help | `'Help'` | `math.typeOf(math.help('sqrt'))`\n * math.Help | `'Help'` | `math.typeOf(math.help('sqrt'))`\n * math.Index | `'Index'` | `math.typeOf(math.index(1, 3))`\n * math.Matrix | `'Matrix'` | `math.typeOf(math.matrix([[1,2], [3, 4]]))`\n * math.Range | `'Range'` | `math.typeOf(math.range(0, 10))`\n * math.ResultSet | `'ResultSet'` | `math.typeOf(math.evaluate('a=2\\nb=3'))`\n * math.Unit | `'Unit'` | `math.typeOf(math.unit('45 deg'))`\n * math.AccessorNode | `'AccessorNode'` | `math.typeOf(math.parse('A[2]'))`\n * math.ArrayNode | `'ArrayNode'` | `math.typeOf(math.parse('[1,2,3]'))`\n * math.AssignmentNode | `'AssignmentNode'` | `math.typeOf(math.parse('x=2'))`\n * math.BlockNode | `'BlockNode'` | `math.typeOf(math.parse('a=2; b=3'))`\n * math.ConditionalNode | `'ConditionalNode'` | `math.typeOf(math.parse('x<0 ? -x : x'))`\n * math.ConstantNode | `'ConstantNode'` | `math.typeOf(math.parse('2.3'))`\n * math.FunctionAssignmentNode | `'FunctionAssignmentNode'` | `math.typeOf(math.parse('f(x)=x^2'))`\n * math.FunctionNode | `'FunctionNode'` | `math.typeOf(math.parse('sqrt(4)'))`\n * math.IndexNode | `'IndexNode'` | `math.typeOf(math.parse('A[2]').index)`\n * math.ObjectNode | `'ObjectNode'` | `math.typeOf(math.parse('{a:2}'))`\n * math.ParenthesisNode | `'ParenthesisNode'` | `math.typeOf(math.parse('(2+3)'))`\n * math.RangeNode | `'RangeNode'` | `math.typeOf(math.parse('1:10'))`\n * math.SymbolNode | `'SymbolNode'` | `math.typeOf(math.parse('x'))`\n *\n * Syntax:\n *\n * math.typeOf(x)\n *\n * Examples:\n *\n * math.typeOf(3.5) // returns 'number'\n * math.typeOf(math.complex('2-4i')) // returns 'Complex'\n * math.typeOf(math.unit('45 deg')) // returns 'Unit'\n * math.typeOf('hello world') // returns 'string'\n *\n * @param {*} x The variable for which to test the type.\n * @return {string} Returns the name of the type. Primitive types are lower case,\n * non-primitive types are upper-camel-case.\n * For example 'number', 'string', 'Array', 'Date'.\n */\n return typed(name, {\n any: _is.typeOf\n });\n});\nexports.createTypeOf = createTypeOf;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nearlyEqual = nearlyEqual;\n\n/**\n * Compares two BigNumbers.\n * @param {BigNumber} x First value to compare\n * @param {BigNumber} y Second value to compare\n * @param {number} [epsilon] The maximum relative difference between x and y\n * If epsilon is undefined or null, the function will\n * test whether x and y are exactly equal.\n * @return {boolean} whether the two numbers are nearly equal\n */\nfunction nearlyEqual(x, y, epsilon) {\n // if epsilon is null or undefined, test whether x and y are exactly equal\n if (epsilon === null || epsilon === undefined) {\n return x.eq(y);\n } // use \"==\" operator, handles infinities\n\n\n if (x.eq(y)) {\n return true;\n } // NaN\n\n\n if (x.isNaN() || y.isNaN()) {\n return false;\n } // at this point x and y should be finite\n\n\n if (x.isFinite() && y.isFinite()) {\n // check numbers are very close, needed when comparing numbers near zero\n var diff = x.minus(y).abs();\n\n if (diff.isZero()) {\n return true;\n } else {\n // use relative error\n var max = x.constructor.max(x.abs(), y.abs());\n return diff.lte(max.times(epsilon));\n }\n } // Infinite and Number or negative Infinite and positive Infinite cases\n\n\n return false;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.complexEquals = complexEquals;\n\nvar _number = require(\"./number.js\");\n\n/**\n * Test whether two complex values are equal provided a given epsilon.\n * Does not use or change the global Complex.EPSILON setting\n * @param {Complex} x\n * @param {Complex} y\n * @param {number} epsilon\n * @returns {boolean}\n */\nfunction complexEquals(x, y, epsilon) {\n return (0, _number.nearlyEqual)(x.re, y.re, epsilon) && (0, _number.nearlyEqual)(x.im, y.im, epsilon);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createEqualScalarNumber = exports.createEqualScalar = void 0;\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _complex = require(\"../../utils/complex.js\");\n\nvar name = 'equalScalar';\nvar dependencies = ['typed', 'config'];\nvar createEqualScalar = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config;\n\n /**\n * Test whether two scalar values are nearly equal.\n *\n * @param {number | BigNumber | Fraction | boolean | Complex | Unit} x First value to compare\n * @param {number | BigNumber | Fraction | boolean | Complex} y Second value to compare\n * @return {boolean} Returns true when the compared values are equal, else returns false\n * @private\n */\n return typed(name, {\n 'boolean, boolean': function booleanBoolean(x, y) {\n return x === y;\n },\n 'number, number': function numberNumber(x, y) {\n return (0, _number.nearlyEqual)(x, y, config.epsilon);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.eq(y) || (0, _nearlyEqual.nearlyEqual)(x, y, config.epsilon);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.equals(y);\n },\n 'Complex, Complex': function ComplexComplex(x, y) {\n return (0, _complex.complexEquals)(x, y, config.epsilon);\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (!x.equalBase(y)) {\n throw new Error('Cannot compare units with different base');\n }\n\n return this(x.value, y.value);\n }\n });\n});\nexports.createEqualScalar = createEqualScalar;\nvar createEqualScalarNumber = (0, _factory.factory)(name, ['typed', 'config'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config;\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return (0, _number.nearlyEqual)(x, y, config.epsilon);\n }\n });\n});\nexports.createEqualScalarNumber = createEqualScalarNumber;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSparseMatrixClass = void 0;\n\nvar _regenerator = _interopRequireDefault(require(\"@babel/runtime/regenerator\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../error/DimensionError.js\");\n\nvar name = 'SparseMatrix';\nvar dependencies = ['typed', 'equalScalar', 'Matrix'];\nvar createSparseMatrixClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar,\n Matrix = _ref.Matrix;\n\n /**\n * Sparse Matrix implementation. This type implements\n * a [Compressed Column Storage](https://en.wikipedia.org/wiki/Sparse_matrix#Compressed_sparse_column_(CSC_or_CCS))\n * format for two-dimensional sparse matrices.\n * @class SparseMatrix\n */\n function SparseMatrix(data, datatype) {\n if (!(this instanceof SparseMatrix)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (datatype && !(0, _is.isString)(datatype)) {\n throw new Error('Invalid datatype: ' + datatype);\n }\n\n if ((0, _is.isMatrix)(data)) {\n // create from matrix\n _createFromMatrix(this, data, datatype);\n } else if (data && (0, _is.isArray)(data.index) && (0, _is.isArray)(data.ptr) && (0, _is.isArray)(data.size)) {\n // initialize fields\n this._values = data.values;\n this._index = data.index;\n this._ptr = data.ptr;\n this._size = data.size;\n this._datatype = datatype || data.datatype;\n } else if ((0, _is.isArray)(data)) {\n // create from array\n _createFromArray(this, data, datatype);\n } else if (data) {\n // unsupported type\n throw new TypeError('Unsupported type of data (' + (0, _is.typeOf)(data) + ')');\n } else {\n // nothing provided\n this._values = [];\n this._index = [];\n this._ptr = [0];\n this._size = [0, 0];\n this._datatype = datatype;\n }\n }\n\n function _createFromMatrix(matrix, source, datatype) {\n // check matrix type\n if (source.type === 'SparseMatrix') {\n // clone arrays\n matrix._values = source._values ? (0, _object.clone)(source._values) : undefined;\n matrix._index = (0, _object.clone)(source._index);\n matrix._ptr = (0, _object.clone)(source._ptr);\n matrix._size = (0, _object.clone)(source._size);\n matrix._datatype = datatype || source._datatype;\n } else {\n // build from matrix data\n _createFromArray(matrix, source.valueOf(), datatype || source._datatype);\n }\n }\n\n function _createFromArray(matrix, data, datatype) {\n // initialize fields\n matrix._values = [];\n matrix._index = [];\n matrix._ptr = [];\n matrix._datatype = datatype; // discover rows & columns, do not use math.size() to avoid looping array twice\n\n var rows = data.length;\n var columns = 0; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0;\n\n if ((0, _is.isString)(datatype)) {\n // find signature that matches (datatype, datatype)\n eq = typed.find(equalScalar, [datatype, datatype]) || equalScalar; // convert 0 to the same datatype\n\n zero = typed.convert(0, datatype);\n } // check we have rows (empty array)\n\n\n if (rows > 0) {\n // column index\n var j = 0;\n\n do {\n // store pointer to values index\n matrix._ptr.push(matrix._index.length); // loop rows\n\n\n for (var i = 0; i < rows; i++) {\n // current row\n var row = data[i]; // check row is an array\n\n if ((0, _is.isArray)(row)) {\n // update columns if needed (only on first column)\n if (j === 0 && columns < row.length) {\n columns = row.length;\n } // check row has column\n\n\n if (j < row.length) {\n // value\n var v = row[j]; // check value != 0\n\n if (!eq(v, zero)) {\n // store value\n matrix._values.push(v); // index\n\n\n matrix._index.push(i);\n }\n }\n } else {\n // update columns if needed (only on first column)\n if (j === 0 && columns < 1) {\n columns = 1;\n } // check value != 0 (row is a scalar)\n\n\n if (!eq(row, zero)) {\n // store value\n matrix._values.push(row); // index\n\n\n matrix._index.push(i);\n }\n }\n } // increment index\n\n\n j++;\n } while (j < columns);\n } // store number of values in ptr\n\n\n matrix._ptr.push(matrix._index.length); // size\n\n\n matrix._size = [rows, columns];\n }\n\n SparseMatrix.prototype = new Matrix();\n /**\n * Create a new SparseMatrix\n */\n\n SparseMatrix.prototype.createSparseMatrix = function (data, datatype) {\n return new SparseMatrix(data, datatype);\n };\n /**\n * Attach type information\n */\n\n\n SparseMatrix.prototype.type = 'SparseMatrix';\n SparseMatrix.prototype.isSparseMatrix = true;\n /**\n * Get the matrix type\n *\n * Usage:\n * const matrixType = matrix.getDataType() // retrieves the matrix type\n *\n * @memberOf SparseMatrix\n * @return {string} type information; if multiple types are found from the Matrix, it will return \"mixed\"\n */\n\n SparseMatrix.prototype.getDataType = function () {\n return (0, _array.getArrayDataType)(this._values, _is.typeOf);\n };\n /**\n * Get the storage format used by the matrix.\n *\n * Usage:\n * const format = matrix.storage() // retrieve storage format\n *\n * @memberof SparseMatrix\n * @return {string} The storage format.\n */\n\n\n SparseMatrix.prototype.storage = function () {\n return 'sparse';\n };\n /**\n * Get the datatype of the data stored in the matrix.\n *\n * Usage:\n * const format = matrix.datatype() // retrieve matrix datatype\n *\n * @memberof SparseMatrix\n * @return {string} The datatype.\n */\n\n\n SparseMatrix.prototype.datatype = function () {\n return this._datatype;\n };\n /**\n * Create a new SparseMatrix\n * @memberof SparseMatrix\n * @param {Array} data\n * @param {string} [datatype]\n */\n\n\n SparseMatrix.prototype.create = function (data, datatype) {\n return new SparseMatrix(data, datatype);\n };\n /**\n * Get the matrix density.\n *\n * Usage:\n * const density = matrix.density() // retrieve matrix density\n *\n * @memberof SparseMatrix\n * @return {number} The matrix density.\n */\n\n\n SparseMatrix.prototype.density = function () {\n // rows & columns\n var rows = this._size[0];\n var columns = this._size[1]; // calculate density\n\n return rows !== 0 && columns !== 0 ? this._index.length / (rows * columns) : 0;\n };\n /**\n * Get a subset of the matrix, or replace a subset of the matrix.\n *\n * Usage:\n * const subset = matrix.subset(index) // retrieve subset\n * const value = matrix.subset(index, replacement) // replace subset\n *\n * @memberof SparseMatrix\n * @param {Index} index\n * @param {Array | Matrix | *} [replacement]\n * @param {*} [defaultValue=0] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be filled with zeros.\n */\n\n\n SparseMatrix.prototype.subset = function (index, replacement, defaultValue) {\n // check it is a pattern matrix\n if (!this._values) {\n throw new Error('Cannot invoke subset on a Pattern only matrix');\n } // check arguments\n\n\n switch (arguments.length) {\n case 1:\n return _getsubset(this, index);\n // intentional fall through\n\n case 2:\n case 3:\n return _setsubset(this, index, replacement, defaultValue);\n\n default:\n throw new SyntaxError('Wrong number of arguments');\n }\n };\n\n function _getsubset(matrix, idx) {\n // check idx\n if (!(0, _is.isIndex)(idx)) {\n throw new TypeError('Invalid index');\n }\n\n var isScalar = idx.isScalar();\n\n if (isScalar) {\n // return a scalar\n return matrix.get(idx.min());\n } // validate dimensions\n\n\n var size = idx.size();\n\n if (size.length !== matrix._size.length) {\n throw new _DimensionError.DimensionError(size.length, matrix._size.length);\n } // vars\n\n\n var i, ii, k, kk; // validate if any of the ranges in the index is out of range\n\n var min = idx.min();\n var max = idx.max();\n\n for (i = 0, ii = matrix._size.length; i < ii; i++) {\n (0, _array.validateIndex)(min[i], matrix._size[i]);\n (0, _array.validateIndex)(max[i], matrix._size[i]);\n } // matrix arrays\n\n\n var mvalues = matrix._values;\n var mindex = matrix._index;\n var mptr = matrix._ptr; // rows & columns dimensions for result matrix\n\n var rows = idx.dimension(0);\n var columns = idx.dimension(1); // workspace & permutation vector\n\n var w = [];\n var pv = []; // loop rows in resulting matrix\n\n rows.forEach(function (i, r) {\n // update permutation vector\n pv[i] = r[0]; // mark i in workspace\n\n w[i] = true;\n }); // result matrix arrays\n\n var values = mvalues ? [] : undefined;\n var index = [];\n var ptr = []; // loop columns in result matrix\n\n columns.forEach(function (j) {\n // update ptr\n ptr.push(index.length); // loop values in column j\n\n for (k = mptr[j], kk = mptr[j + 1]; k < kk; k++) {\n // row\n i = mindex[k]; // check row is in result matrix\n\n if (w[i] === true) {\n // push index\n index.push(pv[i]); // check we need to process values\n\n if (values) {\n values.push(mvalues[k]);\n }\n }\n }\n }); // update ptr\n\n ptr.push(index.length); // return matrix\n\n return new SparseMatrix({\n values: values,\n index: index,\n ptr: ptr,\n size: size,\n datatype: matrix._datatype\n });\n }\n\n function _setsubset(matrix, index, submatrix, defaultValue) {\n // check index\n if (!index || index.isIndex !== true) {\n throw new TypeError('Invalid index');\n } // get index size and check whether the index contains a single value\n\n\n var iSize = index.size();\n var isScalar = index.isScalar(); // calculate the size of the submatrix, and convert it into an Array if needed\n\n var sSize;\n\n if ((0, _is.isMatrix)(submatrix)) {\n // submatrix size\n sSize = submatrix.size(); // use array representation\n\n submatrix = submatrix.toArray();\n } else {\n // get submatrix size (array, scalar)\n sSize = (0, _array.arraySize)(submatrix);\n } // check index is a scalar\n\n\n if (isScalar) {\n // verify submatrix is a scalar\n if (sSize.length !== 0) {\n throw new TypeError('Scalar expected');\n } // set value\n\n\n matrix.set(index.min(), submatrix, defaultValue);\n } else {\n // validate dimensions, index size must be one or two dimensions\n if (iSize.length !== 1 && iSize.length !== 2) {\n throw new _DimensionError.DimensionError(iSize.length, matrix._size.length, '<');\n } // check submatrix and index have the same dimensions\n\n\n if (sSize.length < iSize.length) {\n // calculate number of missing outer dimensions\n var i = 0;\n var outer = 0;\n\n while (iSize[i] === 1 && sSize[i] === 1) {\n i++;\n }\n\n while (iSize[i] === 1) {\n outer++;\n i++;\n } // unsqueeze both outer and inner dimensions\n\n\n submatrix = (0, _array.unsqueeze)(submatrix, iSize.length, outer, sSize);\n } // check whether the size of the submatrix matches the index size\n\n\n if (!(0, _object.deepStrictEqual)(iSize, sSize)) {\n throw new _DimensionError.DimensionError(iSize, sSize, '>');\n } // insert the sub matrix\n\n\n if (iSize.length === 1) {\n // if the replacement index only has 1 dimension, go trough each one and set its value\n var range = index.dimension(0);\n range.forEach(function (dataIndex, subIndex) {\n (0, _array.validateIndex)(dataIndex);\n matrix.set([dataIndex, 0], submatrix[subIndex[0]], defaultValue);\n });\n } else {\n // if the replacement index has 2 dimensions, go through each one and set the value in the correct index\n var firstDimensionRange = index.dimension(0);\n var secondDimensionRange = index.dimension(1);\n firstDimensionRange.forEach(function (firstDataIndex, firstSubIndex) {\n (0, _array.validateIndex)(firstDataIndex);\n secondDimensionRange.forEach(function (secondDataIndex, secondSubIndex) {\n (0, _array.validateIndex)(secondDataIndex);\n matrix.set([firstDataIndex, secondDataIndex], submatrix[firstSubIndex[0]][secondSubIndex[0]], defaultValue);\n });\n });\n }\n }\n\n return matrix;\n }\n /**\n * Get a single element from the matrix.\n * @memberof SparseMatrix\n * @param {number[]} index Zero-based index\n * @return {*} value\n */\n\n\n SparseMatrix.prototype.get = function (index) {\n if (!(0, _is.isArray)(index)) {\n throw new TypeError('Array expected');\n }\n\n if (index.length !== this._size.length) {\n throw new _DimensionError.DimensionError(index.length, this._size.length);\n } // check it is a pattern matrix\n\n\n if (!this._values) {\n throw new Error('Cannot invoke get on a Pattern only matrix');\n } // row and column\n\n\n var i = index[0];\n var j = index[1]; // check i, j are valid\n\n (0, _array.validateIndex)(i, this._size[0]);\n (0, _array.validateIndex)(j, this._size[1]); // find value index\n\n var k = _getValueIndex(i, this._ptr[j], this._ptr[j + 1], this._index); // check k is prior to next column k and it is in the correct row\n\n\n if (k < this._ptr[j + 1] && this._index[k] === i) {\n return this._values[k];\n }\n\n return 0;\n };\n /**\n * Replace a single element in the matrix.\n * @memberof SparseMatrix\n * @param {number[]} index Zero-based index\n * @param {*} v\n * @param {*} [defaultValue] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be set to zero.\n * @return {SparseMatrix} self\n */\n\n\n SparseMatrix.prototype.set = function (index, v, defaultValue) {\n if (!(0, _is.isArray)(index)) {\n throw new TypeError('Array expected');\n }\n\n if (index.length !== this._size.length) {\n throw new _DimensionError.DimensionError(index.length, this._size.length);\n } // check it is a pattern matrix\n\n\n if (!this._values) {\n throw new Error('Cannot invoke set on a Pattern only matrix');\n } // row and column\n\n\n var i = index[0];\n var j = index[1]; // rows & columns\n\n var rows = this._size[0];\n var columns = this._size[1]; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0;\n\n if ((0, _is.isString)(this._datatype)) {\n // find signature that matches (datatype, datatype)\n eq = typed.find(equalScalar, [this._datatype, this._datatype]) || equalScalar; // convert 0 to the same datatype\n\n zero = typed.convert(0, this._datatype);\n } // check we need to resize matrix\n\n\n if (i > rows - 1 || j > columns - 1) {\n // resize matrix\n _resize(this, Math.max(i + 1, rows), Math.max(j + 1, columns), defaultValue); // update rows & columns\n\n\n rows = this._size[0];\n columns = this._size[1];\n } // check i, j are valid\n\n\n (0, _array.validateIndex)(i, rows);\n (0, _array.validateIndex)(j, columns); // find value index\n\n var k = _getValueIndex(i, this._ptr[j], this._ptr[j + 1], this._index); // check k is prior to next column k and it is in the correct row\n\n\n if (k < this._ptr[j + 1] && this._index[k] === i) {\n // check value != 0\n if (!eq(v, zero)) {\n // update value\n this._values[k] = v;\n } else {\n // remove value from matrix\n _remove(k, j, this._values, this._index, this._ptr);\n }\n } else {\n // insert value @ (i, j)\n _insert(k, i, j, v, this._values, this._index, this._ptr);\n }\n\n return this;\n };\n\n function _getValueIndex(i, top, bottom, index) {\n // check row is on the bottom side\n if (bottom - top === 0) {\n return bottom;\n } // loop rows [top, bottom[\n\n\n for (var r = top; r < bottom; r++) {\n // check we found value index\n if (index[r] === i) {\n return r;\n }\n } // we did not find row\n\n\n return top;\n }\n\n function _remove(k, j, values, index, ptr) {\n // remove value @ k\n values.splice(k, 1);\n index.splice(k, 1); // update pointers\n\n for (var x = j + 1; x < ptr.length; x++) {\n ptr[x]--;\n }\n }\n\n function _insert(k, i, j, v, values, index, ptr) {\n // insert value\n values.splice(k, 0, v); // update row for k\n\n index.splice(k, 0, i); // update column pointers\n\n for (var x = j + 1; x < ptr.length; x++) {\n ptr[x]++;\n }\n }\n /**\n * Resize the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (resize in place).\n *\n * @memberof SparseMatrix\n * @param {number[] | Matrix} size The new size the matrix should have.\n * Since sparse matrices are always two-dimensional,\n * size must be two numbers in either an array or a matrix\n * @param {*} [defaultValue=0] Default value, filled in on new entries.\n * If not provided, the matrix elements will\n * be filled with zeros.\n * @param {boolean} [copy] Return a resized copy of the matrix\n *\n * @return {Matrix} The resized matrix\n */\n\n\n SparseMatrix.prototype.resize = function (size, defaultValue, copy) {\n // validate arguments\n if (!(0, _is.isCollection)(size)) {\n throw new TypeError('Array or Matrix expected');\n } // SparseMatrix input is always 2d, flatten this into 1d if it's indeed a vector\n\n\n var sizeArray = size.valueOf().map(function (value) {\n return Array.isArray(value) && value.length === 1 ? value[0] : value;\n });\n\n if (sizeArray.length !== 2) {\n throw new Error('Only two dimensions matrix are supported');\n } // check sizes\n\n\n sizeArray.forEach(function (value) {\n if (!(0, _is.isNumber)(value) || !(0, _number.isInteger)(value) || value < 0) {\n throw new TypeError('Invalid size, must contain positive integers ' + '(size: ' + (0, _string.format)(sizeArray) + ')');\n }\n }); // matrix to resize\n\n var m = copy ? this.clone() : this; // resize matrix\n\n return _resize(m, sizeArray[0], sizeArray[1], defaultValue);\n };\n\n function _resize(matrix, rows, columns, defaultValue) {\n // value to insert at the time of growing matrix\n var value = defaultValue || 0; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0;\n\n if ((0, _is.isString)(matrix._datatype)) {\n // find signature that matches (datatype, datatype)\n eq = typed.find(equalScalar, [matrix._datatype, matrix._datatype]) || equalScalar; // convert 0 to the same datatype\n\n zero = typed.convert(0, matrix._datatype); // convert value to the same datatype\n\n value = typed.convert(value, matrix._datatype);\n } // should we insert the value?\n\n\n var ins = !eq(value, zero); // old columns and rows\n\n var r = matrix._size[0];\n var c = matrix._size[1];\n var i, j, k; // check we need to increase columns\n\n if (columns > c) {\n // loop new columns\n for (j = c; j < columns; j++) {\n // update matrix._ptr for current column\n matrix._ptr[j] = matrix._values.length; // check we need to insert matrix._values\n\n if (ins) {\n // loop rows\n for (i = 0; i < r; i++) {\n // add new matrix._values\n matrix._values.push(value); // update matrix._index\n\n\n matrix._index.push(i);\n }\n }\n } // store number of matrix._values in matrix._ptr\n\n\n matrix._ptr[columns] = matrix._values.length;\n } else if (columns < c) {\n // truncate matrix._ptr\n matrix._ptr.splice(columns + 1, c - columns); // truncate matrix._values and matrix._index\n\n\n matrix._values.splice(matrix._ptr[columns], matrix._values.length);\n\n matrix._index.splice(matrix._ptr[columns], matrix._index.length);\n } // update columns\n\n\n c = columns; // check we need to increase rows\n\n if (rows > r) {\n // check we have to insert values\n if (ins) {\n // inserts\n var n = 0; // loop columns\n\n for (j = 0; j < c; j++) {\n // update matrix._ptr for current column\n matrix._ptr[j] = matrix._ptr[j] + n; // where to insert matrix._values\n\n k = matrix._ptr[j + 1] + n; // pointer\n\n var p = 0; // loop new rows, initialize pointer\n\n for (i = r; i < rows; i++, p++) {\n // add value\n matrix._values.splice(k + p, 0, value); // update matrix._index\n\n\n matrix._index.splice(k + p, 0, i); // increment inserts\n\n\n n++;\n }\n } // store number of matrix._values in matrix._ptr\n\n\n matrix._ptr[c] = matrix._values.length;\n }\n } else if (rows < r) {\n // deletes\n var d = 0; // loop columns\n\n for (j = 0; j < c; j++) {\n // update matrix._ptr for current column\n matrix._ptr[j] = matrix._ptr[j] - d; // where matrix._values start for next column\n\n var k0 = matrix._ptr[j];\n var k1 = matrix._ptr[j + 1] - d; // loop matrix._index\n\n for (k = k0; k < k1; k++) {\n // row\n i = matrix._index[k]; // check we need to delete value and matrix._index\n\n if (i > rows - 1) {\n // remove value\n matrix._values.splice(k, 1); // remove item from matrix._index\n\n\n matrix._index.splice(k, 1); // increase deletes\n\n\n d++;\n }\n }\n } // update matrix._ptr for current column\n\n\n matrix._ptr[j] = matrix._values.length;\n } // update matrix._size\n\n\n matrix._size[0] = rows;\n matrix._size[1] = columns; // return matrix\n\n return matrix;\n }\n /**\n * Reshape the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (reshape in place).\n *\n * NOTE: This might be better suited to copy by default, instead of modifying\n * in place. For now, it operates in place to remain consistent with\n * resize().\n *\n * @memberof SparseMatrix\n * @param {number[]} sizes The new size the matrix should have.\n * Since sparse matrices are always two-dimensional,\n * size must be two numbers in either an array or a matrix\n * @param {boolean} [copy] Return a reshaped copy of the matrix\n *\n * @return {Matrix} The reshaped matrix\n */\n\n\n SparseMatrix.prototype.reshape = function (sizes, copy) {\n // validate arguments\n if (!(0, _is.isArray)(sizes)) {\n throw new TypeError('Array expected');\n }\n\n if (sizes.length !== 2) {\n throw new Error('Sparse matrices can only be reshaped in two dimensions');\n } // check sizes\n\n\n sizes.forEach(function (value) {\n if (!(0, _is.isNumber)(value) || !(0, _number.isInteger)(value) || value <= -2 || value === 0) {\n throw new TypeError('Invalid size, must contain positive integers or -1 ' + '(size: ' + (0, _string.format)(sizes) + ')');\n }\n });\n var currentLength = this._size[0] * this._size[1];\n sizes = (0, _array.processSizesWildcard)(sizes, currentLength);\n var newLength = sizes[0] * sizes[1]; // m * n must not change\n\n if (currentLength !== newLength) {\n throw new Error('Reshaping sparse matrix will result in the wrong number of elements');\n } // matrix to reshape\n\n\n var m = copy ? this.clone() : this; // return unchanged if the same shape\n\n if (this._size[0] === sizes[0] && this._size[1] === sizes[1]) {\n return m;\n } // Convert to COO format (generate a column index)\n\n\n var colIndex = [];\n\n for (var i = 0; i < m._ptr.length; i++) {\n for (var j = 0; j < m._ptr[i + 1] - m._ptr[i]; j++) {\n colIndex.push(i);\n }\n } // Clone the values array\n\n\n var values = m._values.slice(); // Clone the row index array\n\n\n var rowIndex = m._index.slice(); // Transform the (row, column) indices\n\n\n for (var _i = 0; _i < m._index.length; _i++) {\n var r1 = rowIndex[_i];\n var c1 = colIndex[_i];\n var flat = r1 * m._size[1] + c1;\n colIndex[_i] = flat % sizes[1];\n rowIndex[_i] = Math.floor(flat / sizes[1]);\n } // Now reshaping is supposed to preserve the row-major order, BUT these sparse matrices are stored\n // in column-major order, so we have to reorder the value array now. One option is to use a multisort,\n // sorting several arrays based on some other array.\n // OR, we could easily just:\n // 1. Remove all values from the matrix\n\n\n m._values.length = 0;\n m._index.length = 0;\n m._ptr.length = sizes[1] + 1;\n m._size = sizes.slice();\n\n for (var _i2 = 0; _i2 < m._ptr.length; _i2++) {\n m._ptr[_i2] = 0;\n } // 2. Re-insert all elements in the proper order (simplified code from SparseMatrix.prototype.set)\n // This step is probably the most time-consuming\n\n\n for (var h = 0; h < values.length; h++) {\n var _i3 = rowIndex[h];\n var _j = colIndex[h];\n var v = values[h];\n\n var k = _getValueIndex(_i3, m._ptr[_j], m._ptr[_j + 1], m._index);\n\n _insert(k, _i3, _j, v, m._values, m._index, m._ptr);\n } // The value indices are inserted out of order, but apparently that's... still OK?\n\n\n return m;\n };\n /**\n * Create a clone of the matrix\n * @memberof SparseMatrix\n * @return {SparseMatrix} clone\n */\n\n\n SparseMatrix.prototype.clone = function () {\n var m = new SparseMatrix({\n values: this._values ? (0, _object.clone)(this._values) : undefined,\n index: (0, _object.clone)(this._index),\n ptr: (0, _object.clone)(this._ptr),\n size: (0, _object.clone)(this._size),\n datatype: this._datatype\n });\n return m;\n };\n /**\n * Retrieve the size of the matrix.\n * @memberof SparseMatrix\n * @returns {number[]} size\n */\n\n\n SparseMatrix.prototype.size = function () {\n return this._size.slice(0); // copy the Array\n };\n /**\n * Create a new matrix with the results of the callback function executed on\n * each entry of the matrix.\n * @memberof SparseMatrix\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n * @param {boolean} [skipZeros] Invoke callback function for non-zero values only.\n *\n * @return {SparseMatrix} matrix\n */\n\n\n SparseMatrix.prototype.map = function (callback, skipZeros) {\n // check it is a pattern matrix\n if (!this._values) {\n throw new Error('Cannot invoke map on a Pattern only matrix');\n } // matrix instance\n\n\n var me = this; // rows and columns\n\n var rows = this._size[0];\n var columns = this._size[1]; // invoke callback\n\n var invoke = function invoke(v, i, j) {\n // invoke callback\n return callback(v, [i, j], me);\n }; // invoke _map\n\n\n return _map(this, 0, rows - 1, 0, columns - 1, invoke, skipZeros);\n };\n /**\n * Create a new matrix with the results of the callback function executed on the interval\n * [minRow..maxRow, minColumn..maxColumn].\n */\n\n\n function _map(matrix, minRow, maxRow, minColumn, maxColumn, callback, skipZeros) {\n // result arrays\n var values = [];\n var index = [];\n var ptr = []; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0;\n\n if ((0, _is.isString)(matrix._datatype)) {\n // find signature that matches (datatype, datatype)\n eq = typed.find(equalScalar, [matrix._datatype, matrix._datatype]) || equalScalar; // convert 0 to the same datatype\n\n zero = typed.convert(0, matrix._datatype);\n } // invoke callback\n\n\n var invoke = function invoke(v, x, y) {\n // invoke callback\n v = callback(v, x, y); // check value != 0\n\n if (!eq(v, zero)) {\n // store value\n values.push(v); // index\n\n index.push(x);\n }\n }; // loop columns\n\n\n for (var j = minColumn; j <= maxColumn; j++) {\n // store pointer to values index\n ptr.push(values.length); // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n\n var k0 = matrix._ptr[j];\n var k1 = matrix._ptr[j + 1];\n\n if (skipZeros) {\n // loop k within [k0, k1[\n for (var k = k0; k < k1; k++) {\n // row index\n var i = matrix._index[k]; // check i is in range\n\n if (i >= minRow && i <= maxRow) {\n // value @ k\n invoke(matrix._values[k], i - minRow, j - minColumn);\n }\n }\n } else {\n // create a cache holding all defined values\n var _values = {};\n\n for (var _k = k0; _k < k1; _k++) {\n var _i4 = matrix._index[_k];\n _values[_i4] = matrix._values[_k];\n } // loop over all rows (indexes can be unordered so we can't use that),\n // and either read the value or zero\n\n\n for (var _i5 = minRow; _i5 <= maxRow; _i5++) {\n var value = _i5 in _values ? _values[_i5] : 0;\n invoke(value, _i5 - minRow, j - minColumn);\n }\n }\n } // store number of values in ptr\n\n\n ptr.push(values.length); // return sparse matrix\n\n return new SparseMatrix({\n values: values,\n index: index,\n ptr: ptr,\n size: [maxRow - minRow + 1, maxColumn - minColumn + 1]\n });\n }\n /**\n * Execute a callback function on each entry of the matrix.\n * @memberof SparseMatrix\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix being traversed.\n * @param {boolean} [skipZeros] Invoke callback function for non-zero values only.\n * If false, the indices are guaranteed to be in order,\n * if true, the indices can be unordered.\n */\n\n\n SparseMatrix.prototype.forEach = function (callback, skipZeros) {\n // check it is a pattern matrix\n if (!this._values) {\n throw new Error('Cannot invoke forEach on a Pattern only matrix');\n } // matrix instance\n\n\n var me = this; // rows and columns\n\n var rows = this._size[0];\n var columns = this._size[1]; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n var k0 = this._ptr[j];\n var k1 = this._ptr[j + 1];\n\n if (skipZeros) {\n // loop k within [k0, k1[\n for (var k = k0; k < k1; k++) {\n // row index\n var i = this._index[k]; // value @ k\n\n callback(this._values[k], [i, j], me);\n }\n } else {\n // create a cache holding all defined values\n var values = {};\n\n for (var _k2 = k0; _k2 < k1; _k2++) {\n var _i6 = this._index[_k2];\n values[_i6] = this._values[_k2];\n } // loop over all rows (indexes can be unordered so we can't use that),\n // and either read the value or zero\n\n\n for (var _i7 = 0; _i7 < rows; _i7++) {\n var value = _i7 in values ? values[_i7] : 0;\n callback(value, [_i7, j], me);\n }\n }\n }\n };\n /**\n * Iterate over the matrix elements, skipping zeros\n * @return {Iterable<{ value, index: number[] }>}\n */\n\n\n SparseMatrix.prototype[Symbol.iterator] = /*#__PURE__*/_regenerator.default.mark(function _callee() {\n var columns, j, k0, k1, k, i;\n return _regenerator.default.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (this._values) {\n _context.next = 2;\n break;\n }\n\n throw new Error('Cannot iterate a Pattern only matrix');\n\n case 2:\n columns = this._size[1];\n j = 0;\n\n case 4:\n if (!(j < columns)) {\n _context.next = 18;\n break;\n }\n\n k0 = this._ptr[j];\n k1 = this._ptr[j + 1];\n k = k0;\n\n case 8:\n if (!(k < k1)) {\n _context.next = 15;\n break;\n }\n\n // row index\n i = this._index[k];\n _context.next = 12;\n return {\n value: this._values[k],\n index: [i, j]\n };\n\n case 12:\n k++;\n _context.next = 8;\n break;\n\n case 15:\n j++;\n _context.next = 4;\n break;\n\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n });\n /**\n * Create an Array with a copy of the data of the SparseMatrix\n * @memberof SparseMatrix\n * @returns {Array} array\n */\n\n SparseMatrix.prototype.toArray = function () {\n return _toArray(this._values, this._index, this._ptr, this._size, true);\n };\n /**\n * Get the primitive value of the SparseMatrix: a two dimensions array\n * @memberof SparseMatrix\n * @returns {Array} array\n */\n\n\n SparseMatrix.prototype.valueOf = function () {\n return _toArray(this._values, this._index, this._ptr, this._size, false);\n };\n\n function _toArray(values, index, ptr, size, copy) {\n // rows and columns\n var rows = size[0];\n var columns = size[1]; // result\n\n var a = []; // vars\n\n var i, j; // initialize array\n\n for (i = 0; i < rows; i++) {\n a[i] = [];\n\n for (j = 0; j < columns; j++) {\n a[i][j] = 0;\n }\n } // loop columns\n\n\n for (j = 0; j < columns; j++) {\n // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n var k0 = ptr[j];\n var k1 = ptr[j + 1]; // loop k within [k0, k1[\n\n for (var k = k0; k < k1; k++) {\n // row index\n i = index[k]; // set value (use one for pattern matrix)\n\n a[i][j] = values ? copy ? (0, _object.clone)(values[k]) : values[k] : 1;\n }\n }\n\n return a;\n }\n /**\n * Get a string representation of the matrix, with optional formatting options.\n * @memberof SparseMatrix\n * @param {Object | number | Function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @returns {string} str\n */\n\n\n SparseMatrix.prototype.format = function (options) {\n // rows and columns\n var rows = this._size[0];\n var columns = this._size[1]; // density\n\n var density = this.density(); // rows & columns\n\n var str = 'Sparse Matrix [' + (0, _string.format)(rows, options) + ' x ' + (0, _string.format)(columns, options) + '] density: ' + (0, _string.format)(density, options) + '\\n'; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n var k0 = this._ptr[j];\n var k1 = this._ptr[j + 1]; // loop k within [k0, k1[\n\n for (var k = k0; k < k1; k++) {\n // row index\n var i = this._index[k]; // append value\n\n str += '\\n (' + (0, _string.format)(i, options) + ', ' + (0, _string.format)(j, options) + ') ==> ' + (this._values ? (0, _string.format)(this._values[k], options) : 'X');\n }\n }\n\n return str;\n };\n /**\n * Get a string representation of the matrix\n * @memberof SparseMatrix\n * @returns {string} str\n */\n\n\n SparseMatrix.prototype.toString = function () {\n return (0, _string.format)(this.toArray());\n };\n /**\n * Get a JSON representation of the matrix\n * @memberof SparseMatrix\n * @returns {Object}\n */\n\n\n SparseMatrix.prototype.toJSON = function () {\n return {\n mathjs: 'SparseMatrix',\n values: this._values,\n index: this._index,\n ptr: this._ptr,\n size: this._size,\n datatype: this._datatype\n };\n };\n /**\n * Get the kth Matrix diagonal.\n *\n * @memberof SparseMatrix\n * @param {number | BigNumber} [k=0] The kth diagonal where the vector will retrieved.\n *\n * @returns {Matrix} The matrix vector with the diagonal values.\n */\n\n\n SparseMatrix.prototype.diagonal = function (k) {\n // validate k if any\n if (k) {\n // convert BigNumber to a number\n if ((0, _is.isBigNumber)(k)) {\n k = k.toNumber();\n } // is must be an integer\n\n\n if (!(0, _is.isNumber)(k) || !(0, _number.isInteger)(k)) {\n throw new TypeError('The parameter k must be an integer number');\n }\n } else {\n // default value\n k = 0;\n }\n\n var kSuper = k > 0 ? k : 0;\n var kSub = k < 0 ? -k : 0; // rows & columns\n\n var rows = this._size[0];\n var columns = this._size[1]; // number diagonal values\n\n var n = Math.min(rows - kSub, columns - kSuper); // diagonal arrays\n\n var values = [];\n var index = [];\n var ptr = []; // initial ptr value\n\n ptr[0] = 0; // loop columns\n\n for (var j = kSuper; j < columns && values.length < n; j++) {\n // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n var k0 = this._ptr[j];\n var k1 = this._ptr[j + 1]; // loop x within [k0, k1[\n\n for (var x = k0; x < k1; x++) {\n // row index\n var i = this._index[x]; // check row\n\n if (i === j - kSuper + kSub) {\n // value on this column\n values.push(this._values[x]); // store row\n\n index[values.length - 1] = i - kSub; // exit loop\n\n break;\n }\n }\n } // close ptr\n\n\n ptr.push(values.length); // return matrix\n\n return new SparseMatrix({\n values: values,\n index: index,\n ptr: ptr,\n size: [n, 1]\n });\n };\n /**\n * Generate a matrix from a JSON object\n * @memberof SparseMatrix\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"SparseMatrix\", \"values\": [], \"index\": [], \"ptr\": [], \"size\": []}`,\n * where mathjs is optional\n * @returns {SparseMatrix}\n */\n\n\n SparseMatrix.fromJSON = function (json) {\n return new SparseMatrix(json);\n };\n /**\n * Create a diagonal matrix.\n *\n * @memberof SparseMatrix\n * @param {Array} size The matrix size.\n * @param {number | Array | Matrix } value The values for the diagonal.\n * @param {number | BigNumber} [k=0] The kth diagonal where the vector will be filled in.\n * @param {number} [defaultValue] The default value for non-diagonal\n * @param {string} [datatype] The Matrix datatype, values must be of this datatype.\n *\n * @returns {SparseMatrix}\n */\n\n\n SparseMatrix.diagonal = function (size, value, k, defaultValue, datatype) {\n if (!(0, _is.isArray)(size)) {\n throw new TypeError('Array expected, size parameter');\n }\n\n if (size.length !== 2) {\n throw new Error('Only two dimensions matrix are supported');\n } // map size & validate\n\n\n size = size.map(function (s) {\n // check it is a big number\n if ((0, _is.isBigNumber)(s)) {\n // convert it\n s = s.toNumber();\n } // validate arguments\n\n\n if (!(0, _is.isNumber)(s) || !(0, _number.isInteger)(s) || s < 1) {\n throw new Error('Size values must be positive integers');\n }\n\n return s;\n }); // validate k if any\n\n if (k) {\n // convert BigNumber to a number\n if ((0, _is.isBigNumber)(k)) {\n k = k.toNumber();\n } // is must be an integer\n\n\n if (!(0, _is.isNumber)(k) || !(0, _number.isInteger)(k)) {\n throw new TypeError('The parameter k must be an integer number');\n }\n } else {\n // default value\n k = 0;\n } // equal signature to use\n\n\n var eq = equalScalar; // zero value\n\n var zero = 0;\n\n if ((0, _is.isString)(datatype)) {\n // find signature that matches (datatype, datatype)\n eq = typed.find(equalScalar, [datatype, datatype]) || equalScalar; // convert 0 to the same datatype\n\n zero = typed.convert(0, datatype);\n }\n\n var kSuper = k > 0 ? k : 0;\n var kSub = k < 0 ? -k : 0; // rows and columns\n\n var rows = size[0];\n var columns = size[1]; // number of non-zero items\n\n var n = Math.min(rows - kSub, columns - kSuper); // value extraction function\n\n var _value; // check value\n\n\n if ((0, _is.isArray)(value)) {\n // validate array\n if (value.length !== n) {\n // number of values in array must be n\n throw new Error('Invalid value array length');\n } // define function\n\n\n _value = function _value(i) {\n // return value @ i\n return value[i];\n };\n } else if ((0, _is.isMatrix)(value)) {\n // matrix size\n var ms = value.size(); // validate matrix\n\n if (ms.length !== 1 || ms[0] !== n) {\n // number of values in array must be n\n throw new Error('Invalid matrix length');\n } // define function\n\n\n _value = function _value(i) {\n // return value @ i\n return value.get([i]);\n };\n } else {\n // define function\n _value = function _value() {\n // return value\n return value;\n };\n } // create arrays\n\n\n var values = [];\n var index = [];\n var ptr = []; // loop items\n\n for (var j = 0; j < columns; j++) {\n // number of rows with value\n ptr.push(values.length); // diagonal index\n\n var i = j - kSuper; // check we need to set diagonal value\n\n if (i >= 0 && i < n) {\n // get value @ i\n var v = _value(i); // check for zero\n\n\n if (!eq(v, zero)) {\n // column\n index.push(i + kSub); // add value\n\n values.push(v);\n }\n }\n } // last value should be number of values\n\n\n ptr.push(values.length); // create SparseMatrix\n\n return new SparseMatrix({\n values: values,\n index: index,\n ptr: ptr,\n size: [rows, columns]\n });\n };\n /**\n * Swap rows i and j in Matrix.\n *\n * @memberof SparseMatrix\n * @param {number} i Matrix row index 1\n * @param {number} j Matrix row index 2\n *\n * @return {Matrix} The matrix reference\n */\n\n\n SparseMatrix.prototype.swapRows = function (i, j) {\n // check index\n if (!(0, _is.isNumber)(i) || !(0, _number.isInteger)(i) || !(0, _is.isNumber)(j) || !(0, _number.isInteger)(j)) {\n throw new Error('Row index must be positive integers');\n } // check dimensions\n\n\n if (this._size.length !== 2) {\n throw new Error('Only two dimensional matrix is supported');\n } // validate index\n\n\n (0, _array.validateIndex)(i, this._size[0]);\n (0, _array.validateIndex)(j, this._size[0]); // swap rows\n\n SparseMatrix._swapRows(i, j, this._size[1], this._values, this._index, this._ptr); // return current instance\n\n\n return this;\n };\n /**\n * Loop rows with data in column j.\n *\n * @param {number} j Column\n * @param {Array} values Matrix values\n * @param {Array} index Matrix row indeces\n * @param {Array} ptr Matrix column pointers\n * @param {Function} callback Callback function invoked for every row in column j\n */\n\n\n SparseMatrix._forEachRow = function (j, values, index, ptr, callback) {\n // indeces for column j\n var k0 = ptr[j];\n var k1 = ptr[j + 1]; // loop\n\n for (var k = k0; k < k1; k++) {\n // invoke callback\n callback(index[k], values[k]);\n }\n };\n /**\n * Swap rows x and y in Sparse Matrix data structures.\n *\n * @param {number} x Matrix row index 1\n * @param {number} y Matrix row index 2\n * @param {number} columns Number of columns in matrix\n * @param {Array} values Matrix values\n * @param {Array} index Matrix row indeces\n * @param {Array} ptr Matrix column pointers\n */\n\n\n SparseMatrix._swapRows = function (x, y, columns, values, index, ptr) {\n // loop columns\n for (var j = 0; j < columns; j++) {\n // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n var k0 = ptr[j];\n var k1 = ptr[j + 1]; // find value index @ x\n\n var kx = _getValueIndex(x, k0, k1, index); // find value index @ x\n\n\n var ky = _getValueIndex(y, k0, k1, index); // check both rows exist in matrix\n\n\n if (kx < k1 && ky < k1 && index[kx] === x && index[ky] === y) {\n // swap values (check for pattern matrix)\n if (values) {\n var v = values[kx];\n values[kx] = values[ky];\n values[ky] = v;\n } // next column\n\n\n continue;\n } // check x row exist & no y row\n\n\n if (kx < k1 && index[kx] === x && (ky >= k1 || index[ky] !== y)) {\n // value @ x (check for pattern matrix)\n var vx = values ? values[kx] : undefined; // insert value @ y\n\n index.splice(ky, 0, y);\n\n if (values) {\n values.splice(ky, 0, vx);\n } // remove value @ x (adjust array index if needed)\n\n\n index.splice(ky <= kx ? kx + 1 : kx, 1);\n\n if (values) {\n values.splice(ky <= kx ? kx + 1 : kx, 1);\n } // next column\n\n\n continue;\n } // check y row exist & no x row\n\n\n if (ky < k1 && index[ky] === y && (kx >= k1 || index[kx] !== x)) {\n // value @ y (check for pattern matrix)\n var vy = values ? values[ky] : undefined; // insert value @ x\n\n index.splice(kx, 0, x);\n\n if (values) {\n values.splice(kx, 0, vy);\n } // remove value @ y (adjust array index if needed)\n\n\n index.splice(kx <= ky ? ky + 1 : ky, 1);\n\n if (values) {\n values.splice(kx <= ky ? ky + 1 : ky, 1);\n }\n }\n }\n };\n\n return SparseMatrix;\n}, {\n isClass: true\n});\nexports.createSparseMatrixClass = createSparseMatrixClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNumber = void 0;\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar _collection = require(\"../utils/collection.js\");\n\nvar name = 'number';\nvar dependencies = ['typed'];\n/**\n * Separates the radix, integer part, and fractional part of a non decimal number string\n * @param {string} input string to parse\n * @returns {object} the parts of the string or null if not a valid input\n */\n\nfunction getNonDecimalNumberParts(input) {\n var nonDecimalWithRadixMatch = input.match(/(0[box])([0-9a-fA-F]*)\\.([0-9a-fA-F]*)/);\n\n if (nonDecimalWithRadixMatch) {\n var radix = {\n '0b': 2,\n '0o': 8,\n '0x': 16\n }[nonDecimalWithRadixMatch[1]];\n var integerPart = nonDecimalWithRadixMatch[2];\n var fractionalPart = nonDecimalWithRadixMatch[3];\n return {\n input: input,\n radix: radix,\n integerPart: integerPart,\n fractionalPart: fractionalPart\n };\n } else {\n return null;\n }\n}\n/**\n * Makes a number from a radix, and integer part, and a fractional part\n * @param {parts} [x] parts of the number string (from getNonDecimalNumberParts)\n * @returns {number} the number\n */\n\n\nfunction makeNumberFromNonDecimalParts(parts) {\n var n = parseInt(parts.integerPart, parts.radix);\n var f = 0;\n\n for (var i = 0; i < parts.fractionalPart.length; i++) {\n var digitValue = parseInt(parts.fractionalPart[i], parts.radix);\n f += digitValue / Math.pow(parts.radix, i + 1);\n }\n\n var result = n + f;\n\n if (isNaN(result)) {\n throw new SyntaxError('String \"' + parts.input + '\" is no valid number');\n }\n\n return result;\n}\n\nvar createNumber = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Create a number or convert a string, boolean, or unit to a number.\n * When value is a matrix, all elements will be converted to number.\n *\n * Syntax:\n *\n * math.number(value)\n * math.number(unit, valuelessUnit)\n *\n * Examples:\n *\n * math.number(2) // returns number 2\n * math.number('7.2') // returns number 7.2\n * math.number(true) // returns number 1\n * math.number([true, false, true, true]) // returns [1, 0, 1, 1]\n * math.number(math.unit('52cm'), 'm') // returns 0.52\n *\n * See also:\n *\n * bignumber, boolean, complex, index, matrix, string, unit\n *\n * @param {string | number | BigNumber | Fraction | boolean | Array | Matrix | Unit | null} [value] Value to be converted\n * @param {Unit | string} [valuelessUnit] A valueless unit, used to convert a unit to a number\n * @return {number | Array | Matrix} The created number\n */\n var number = typed('number', {\n '': function _() {\n return 0;\n },\n number: function number(x) {\n return x;\n },\n string: function string(x) {\n if (x === 'NaN') return NaN;\n var nonDecimalNumberParts = getNonDecimalNumberParts(x);\n\n if (nonDecimalNumberParts) {\n return makeNumberFromNonDecimalParts(nonDecimalNumberParts);\n }\n\n var size = 0;\n var wordSizeSuffixMatch = x.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);\n\n if (wordSizeSuffixMatch) {\n // x includes a size suffix like 0xffffi32, so we extract\n // the suffix and remove it from x\n size = Number(wordSizeSuffixMatch[2]);\n x = wordSizeSuffixMatch[1];\n }\n\n var num = Number(x);\n\n if (isNaN(num)) {\n throw new SyntaxError('String \"' + x + '\" is no valid number');\n }\n\n if (wordSizeSuffixMatch) {\n // x is a signed bin, oct, or hex literal\n // num is the value of string x if x is interpreted as unsigned\n if (num > Math.pow(2, size) - 1) {\n // literal is too large for size suffix\n throw new SyntaxError(\"String \\\"\".concat(x, \"\\\" is out of range\"));\n } // check if the bit at index size - 1 is set and if so do the twos complement\n\n\n if (num >= Math.pow(2, size - 1)) {\n num = num - Math.pow(2, size);\n }\n }\n\n return num;\n },\n BigNumber: function BigNumber(x) {\n return x.toNumber();\n },\n Fraction: function Fraction(x) {\n return x.valueOf();\n },\n Unit: function Unit(x) {\n throw new Error('Second argument with valueless unit expected');\n },\n null: function _null(x) {\n return 0;\n },\n 'Unit, string | Unit': function UnitStringUnit(unit, valuelessUnit) {\n return unit.toNumber(valuelessUnit);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n }); // reviver function to parse a JSON object like:\n //\n // {\"mathjs\":\"number\",\"value\":\"2.3\"}\n //\n // into a number 2.3\n\n number.fromJSON = function (json) {\n return parseFloat(json.value);\n };\n\n return number;\n});\nexports.createNumber = createNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createString = void 0;\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar _collection = require(\"../utils/collection.js\");\n\nvar _number = require(\"../utils/number.js\");\n\nvar name = 'string';\nvar dependencies = ['typed'];\nvar createString = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Create a string or convert any object into a string.\n * Elements of Arrays and Matrices are processed element wise.\n *\n * Syntax:\n *\n * math.string(value)\n *\n * Examples:\n *\n * math.string(4.2) // returns string '4.2'\n * math.string(math.complex(3, 2) // returns string '3 + 2i'\n *\n * const u = math.unit(5, 'km')\n * math.string(u.to('m')) // returns string '5000 m'\n *\n * math.string([true, false]) // returns ['true', 'false']\n *\n * See also:\n *\n * bignumber, boolean, complex, index, matrix, number, unit\n *\n * @param {* | Array | Matrix | null} [value] A value to convert to a string\n * @return {string | Array | Matrix} The created string\n */\n return typed(name, {\n '': function _() {\n return '';\n },\n number: _number.format,\n null: function _null(x) {\n return 'null';\n },\n boolean: function boolean(x) {\n return x + '';\n },\n string: function string(x) {\n return x;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n },\n any: function any(x) {\n return String(x);\n }\n });\n});\nexports.createString = createString;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBoolean = void 0;\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar _collection = require(\"../utils/collection.js\");\n\nvar name = 'boolean';\nvar dependencies = ['typed'];\nvar createBoolean = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Create a boolean or convert a string or number to a boolean.\n * In case of a number, `true` is returned for non-zero numbers, and `false` in\n * case of zero.\n * Strings can be `'true'` or `'false'`, or can contain a number.\n * When value is a matrix, all elements will be converted to boolean.\n *\n * Syntax:\n *\n * math.boolean(x)\n *\n * Examples:\n *\n * math.boolean(0) // returns false\n * math.boolean(1) // returns true\n * math.boolean(-3) // returns true\n * math.boolean('true') // returns true\n * math.boolean('false') // returns false\n * math.boolean([1, 0, 1, 1]) // returns [true, false, true, true]\n *\n * See also:\n *\n * bignumber, complex, index, matrix, string, unit\n *\n * @param {string | number | boolean | Array | Matrix | null} value A value of any type\n * @return {boolean | Array | Matrix} The boolean value\n */\n return typed(name, {\n '': function _() {\n return false;\n },\n boolean: function boolean(x) {\n return x;\n },\n number: function number(x) {\n return !!x;\n },\n null: function _null(x) {\n return false;\n },\n BigNumber: function BigNumber(x) {\n return !x.isZero();\n },\n string: function string(x) {\n // try case insensitive\n var lcase = x.toLowerCase();\n\n if (lcase === 'true') {\n return true;\n } else if (lcase === 'false') {\n return false;\n } // test whether value is a valid number\n\n\n var num = Number(x);\n\n if (x !== '' && !isNaN(num)) {\n return !!num;\n }\n\n throw new Error('Cannot convert \"' + x + '\" to a boolean');\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createBoolean = createBoolean;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBignumber = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _collection = require(\"../../../utils/collection.js\");\n\nvar name = 'bignumber';\nvar dependencies = ['typed', 'BigNumber'];\nvar createBignumber = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n BigNumber = _ref.BigNumber;\n\n /**\n * Create a BigNumber, which can store numbers with arbitrary precision.\n * When a matrix is provided, all elements will be converted to BigNumber.\n *\n * Syntax:\n *\n * math.bignumber(x)\n *\n * Examples:\n *\n * 0.1 + 0.2 // returns number 0.30000000000000004\n * math.bignumber(0.1) + math.bignumber(0.2) // returns BigNumber 0.3\n *\n *\n * 7.2e500 // returns number Infinity\n * math.bignumber('7.2e500') // returns BigNumber 7.2e500\n *\n * See also:\n *\n * boolean, complex, index, matrix, string, unit\n *\n * @param {number | string | Fraction | BigNumber | Array | Matrix | boolean | null} [value] Value for the big number,\n * 0 by default.\n * @returns {BigNumber} The created bignumber\n */\n return typed('bignumber', {\n '': function _() {\n return new BigNumber(0);\n },\n number: function number(x) {\n // convert to string to prevent errors in case of >15 digits\n return new BigNumber(x + '');\n },\n string: function string(x) {\n var wordSizeSuffixMatch = x.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);\n\n if (wordSizeSuffixMatch) {\n // x has a word size suffix\n var size = wordSizeSuffixMatch[2];\n var n = BigNumber(wordSizeSuffixMatch[1]);\n var twoPowSize = new BigNumber(2).pow(Number(size));\n\n if (n.gt(twoPowSize.sub(1))) {\n throw new SyntaxError(\"String \\\"\".concat(x, \"\\\" is out of range\"));\n }\n\n var twoPowSizeSubOne = new BigNumber(2).pow(Number(size) - 1);\n\n if (n.gte(twoPowSizeSubOne)) {\n return n.sub(twoPowSize);\n } else {\n return n;\n }\n }\n\n return new BigNumber(x);\n },\n BigNumber: function BigNumber(x) {\n // we assume a BigNumber is immutable\n return x;\n },\n Fraction: function Fraction(x) {\n return new BigNumber(x.n).div(x.d).times(x.s);\n },\n null: function _null(x) {\n return new BigNumber(0);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createBignumber = createBignumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createComplex = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _collection = require(\"../../../utils/collection.js\");\n\nvar name = 'complex';\nvar dependencies = ['typed', 'Complex'];\nvar createComplex = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Complex = _ref.Complex;\n\n /**\n * Create a complex value or convert a value to a complex value.\n *\n * Syntax:\n *\n * math.complex() // creates a complex value with zero\n * // as real and imaginary part.\n * math.complex(re : number, im : string) // creates a complex value with provided\n * // values for real and imaginary part.\n * math.complex(re : number) // creates a complex value with provided\n * // real value and zero imaginary part.\n * math.complex(complex : Complex) // clones the provided complex value.\n * math.complex(arg : string) // parses a string into a complex value.\n * math.complex(array : Array) // converts the elements of the array\n * // or matrix element wise into a\n * // complex value.\n * math.complex({re: number, im: number}) // creates a complex value with provided\n * // values for real an imaginary part.\n * math.complex({r: number, phi: number}) // creates a complex value with provided\n * // polar coordinates\n *\n * Examples:\n *\n * const a = math.complex(3, -4) // a = Complex 3 - 4i\n * a.re = 5 // a = Complex 5 - 4i\n * const i = a.im // Number -4\n * const b = math.complex('2 + 6i') // Complex 2 + 6i\n * const c = math.complex() // Complex 0 + 0i\n * const d = math.add(a, b) // Complex 5 + 2i\n *\n * See also:\n *\n * bignumber, boolean, index, matrix, number, string, unit\n *\n * @param {* | Array | Matrix} [args]\n * Arguments specifying the real and imaginary part of the complex number\n * @return {Complex | Array | Matrix} Returns a complex value\n */\n return typed('complex', {\n '': function _() {\n return Complex.ZERO;\n },\n number: function number(x) {\n return new Complex(x, 0);\n },\n 'number, number': function numberNumber(re, im) {\n return new Complex(re, im);\n },\n // TODO: this signature should be redundant\n 'BigNumber, BigNumber': function BigNumberBigNumber(re, im) {\n return new Complex(re.toNumber(), im.toNumber());\n },\n Fraction: function Fraction(x) {\n return new Complex(x.valueOf(), 0);\n },\n Complex: function Complex(x) {\n return x.clone();\n },\n string: function string(x) {\n return Complex(x); // for example '2 + 3i'\n },\n null: function _null(x) {\n return Complex(0);\n },\n Object: function Object(x) {\n if ('re' in x && 'im' in x) {\n return new Complex(x.re, x.im);\n }\n\n if ('r' in x && 'phi' in x || 'abs' in x && 'arg' in x) {\n return new Complex(x);\n }\n\n throw new Error('Expected object with properties (re and im) or (r and phi) or (abs and arg)');\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createComplex = createComplex;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFraction = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _collection = require(\"../../../utils/collection.js\");\n\nvar name = 'fraction';\nvar dependencies = ['typed', 'Fraction'];\nvar createFraction = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Fraction = _ref.Fraction;\n\n /**\n * Create a fraction or convert a value to a fraction.\n *\n * With one numeric argument, produces the closest rational approximation to the\n * input.\n * With two arguments, the first is the numerator and the second is the denominator,\n * and creates the corresponding fraction. Both numerator and denominator must be\n * integers.\n * With one object argument, looks for the integer numerator as the value of property\n * 'n' and the integer denominator as the value of property 'd'.\n * With a matrix argument, creates a matrix of the same shape with entries\n * converted into fractions.\n *\n * Syntax:\n * math.fraction(value)\n * math.fraction(numerator, denominator)\n * math.fraction({n: numerator, d: denominator})\n * math.fraction(matrix: Array | Matrix)\n *\n * Examples:\n *\n * math.fraction(6.283) // returns Fraction 6283/1000\n * math.fraction(1, 3) // returns Fraction 1/3\n * math.fraction('2/3') // returns Fraction 2/3\n * math.fraction({n: 2, d: 3}) // returns Fraction 2/3\n * math.fraction([0.2, 0.25, 1.25]) // returns Array [1/5, 1/4, 5/4]\n * math.fraction(4, 5.1) // throws Error: Parameters must be integer\n *\n * See also:\n *\n * bignumber, number, string, unit\n *\n * @param {number | string | Fraction | BigNumber | Array | Matrix} [args]\n * Arguments specifying the value, or numerator and denominator of\n * the fraction\n * @return {Fraction | Array | Matrix} Returns a fraction\n */\n return typed('fraction', {\n number: function number(x) {\n if (!isFinite(x) || isNaN(x)) {\n throw new Error(x + ' cannot be represented as a fraction');\n }\n\n return new Fraction(x);\n },\n string: function string(x) {\n return new Fraction(x);\n },\n 'number, number': function numberNumber(numerator, denominator) {\n return new Fraction(numerator, denominator);\n },\n null: function _null(x) {\n return new Fraction(0);\n },\n BigNumber: function BigNumber(x) {\n return new Fraction(x.toString());\n },\n Fraction: function Fraction(x) {\n return x; // fractions are immutable\n },\n Object: function Object(x) {\n return new Fraction(x);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createFraction = createFraction;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMatrix = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'matrix';\nvar dependencies = ['typed', 'Matrix', 'DenseMatrix', 'SparseMatrix'];\nvar createMatrix = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Matrix = _ref.Matrix,\n DenseMatrix = _ref.DenseMatrix,\n SparseMatrix = _ref.SparseMatrix;\n\n /**\n * Create a Matrix. The function creates a new `math.Matrix` object from\n * an `Array`. A Matrix has utility functions to manipulate the data in the\n * matrix, like getting the size and getting or setting values in the matrix.\n * Supported storage formats are 'dense' and 'sparse'.\n *\n * Syntax:\n *\n * math.matrix() // creates an empty matrix using default storage format (dense).\n * math.matrix(data) // creates a matrix with initial data using default storage format (dense).\n * math.matrix('dense') // creates an empty matrix using the given storage format.\n * math.matrix(data, 'dense') // creates a matrix with initial data using the given storage format.\n * math.matrix(data, 'sparse') // creates a sparse matrix with initial data.\n * math.matrix(data, 'sparse', 'number') // creates a sparse matrix with initial data, number data type.\n *\n * Examples:\n *\n * let m = math.matrix([[1, 2], [3, 4]])\n * m.size() // Array [2, 2]\n * m.resize([3, 2], 5)\n * m.valueOf() // Array [[1, 2], [3, 4], [5, 5]]\n * m.get([1, 0]) // number 3\n *\n * See also:\n *\n * bignumber, boolean, complex, index, number, string, unit, sparse\n *\n * @param {Array | Matrix} [data] A multi dimensional array\n * @param {string} [format] The Matrix storage format, either `'dense'` or `'sparse'`\n * @param {string} [datatype] Type of the values\n *\n * @return {Matrix} The created matrix\n */\n return typed(name, {\n '': function _() {\n return _create([]);\n },\n string: function string(format) {\n return _create([], format);\n },\n 'string, string': function stringString(format, datatype) {\n return _create([], format, datatype);\n },\n Array: function Array(data) {\n return _create(data);\n },\n Matrix: function Matrix(data) {\n return _create(data, data.storage());\n },\n 'Array | Matrix, string': _create,\n 'Array | Matrix, string, string': _create\n });\n /**\n * Create a new Matrix with given storage format\n * @param {Array} data\n * @param {string} [format]\n * @param {string} [datatype]\n * @returns {Matrix} Returns a new Matrix\n * @private\n */\n\n function _create(data, format, datatype) {\n // get storage format constructor\n if (format === 'dense' || format === 'default' || format === undefined) {\n return new DenseMatrix(data, datatype);\n }\n\n if (format === 'sparse') {\n return new SparseMatrix(data, datatype);\n }\n\n throw new TypeError('Unknown matrix type ' + JSON.stringify(format) + '.');\n }\n});\nexports.createMatrix = createMatrix;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMatrixFromFunction = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'matrixFromFunction';\nvar dependencies = ['typed', 'matrix', 'isZero'];\nvar createMatrixFromFunction = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n isZero = _ref.isZero;\n\n /**\n * Create a matrix by evaluating a generating function at each index.\n * The simplest overload returns a multi-dimensional array as long as `size` is an array.\n * Passing `size` as a Matrix or specifying a `format` will result in returning a Matrix.\n *\n * Syntax:\n *\n * math.matrixFromFunction(size, fn)\n * math.matrixFromFunction(size, fn, format)\n * math.matrixFromFunction(size, fn, format, datatype)\n * math.matrixFromFunction(size, format, fn)\n * math.matrixFromFunction(size, format, datatype, fn)\n *\n * Examples:\n *\n * math.matrixFromFunction([3,3], i => i[0] - i[1]) // an antisymmetric matrix\n * math.matrixFromFunction([100, 100], 'sparse', i => i[0] - i[1] === 1 ? 4 : 0) // a sparse subdiagonal matrix\n * math.matrixFromFunction([5], i => math.random()) // a random vector\n *\n * See also:\n *\n * matrix, zeros\n *\n * @param {Array | Matrix} size The size of the matrix to be created\n * @param {function} fn Callback function invoked for every entry in the matrix\n * @param {string} [format] The Matrix storage format, either `'dense'` or `'sparse'`\n * @param {string} [datatype] Type of the values\n * @return {Array | Matrix} Returns the created matrix\n */\n return typed(name, {\n 'Array | Matrix, function, string, string': function ArrayMatrixFunctionStringString(size, fn, format, datatype) {\n return _create(size, fn, format, datatype);\n },\n 'Array | Matrix, function, string': function ArrayMatrixFunctionString(size, fn, format) {\n return _create(size, fn, format);\n },\n 'Matrix, function': function MatrixFunction(size, fn) {\n return _create(size, fn, 'dense');\n },\n 'Array, function': function ArrayFunction(size, fn) {\n return _create(size, fn, 'dense').toArray();\n },\n 'Array | Matrix, string, function': function ArrayMatrixStringFunction(size, format, fn) {\n return _create(size, fn, format);\n },\n 'Array | Matrix, string, string, function': function ArrayMatrixStringStringFunction(size, format, datatype, fn) {\n return _create(size, fn, format, datatype);\n }\n });\n\n function _create(size, fn, format, datatype) {\n var m;\n\n if (datatype !== undefined) {\n m = matrix(format, datatype);\n } else {\n m = matrix(format);\n }\n\n m.resize(size);\n m.forEach(function (_, index) {\n var val = fn(index);\n if (isZero(val)) return;\n m.set(index, val);\n });\n return m;\n }\n});\nexports.createMatrixFromFunction = createMatrixFromFunction;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMatrixFromRows = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar name = 'matrixFromRows';\nvar dependencies = ['typed', 'matrix', 'flatten', 'size'];\nvar createMatrixFromRows = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n flatten = _ref.flatten,\n size = _ref.size;\n\n /**\n * Create a dense matrix from vectors as individual rows.\n * If you pass column vectors, they will be transposed (but not conjugated!)\n *\n * Syntax:\n *\n * math.matrixFromRows(...arr)\n * math.matrixFromRows(row1, row2)\n * math.matrixFromRows(row1, row2, row3)\n *\n * Examples:\n *\n * math.matrixFromRows([1, 2, 3], [[4],[5],[6]])\n * math.matrixFromRows(...vectors)\n *\n * See also:\n *\n * matrix, matrixFromColumns, matrixFromFunction, zeros\n *\n * @param {... Array | Matrix} rows Multiple rows\n * @return { number[][] | Matrix } if at least one of the arguments is an array, an array will be returned\n */\n return typed(name, {\n '...Array': function Array(arr) {\n return _createArray(arr);\n },\n '...Matrix': function Matrix(arr) {\n return matrix(_createArray(arr.map(function (m) {\n return m.toArray();\n })));\n } // TODO implement this properly for SparseMatrix\n\n });\n\n function _createArray(arr) {\n if (arr.length === 0) throw new TypeError('At least one row is needed to construct a matrix.');\n var N = checkVectorTypeAndReturnLength(arr[0]);\n var result = [];\n\n var _iterator = _createForOfIteratorHelper(arr),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var row = _step.value;\n var rowLength = checkVectorTypeAndReturnLength(row);\n\n if (rowLength !== N) {\n throw new TypeError('The vectors had different length: ' + (N | 0) + ' ≠ ' + (rowLength | 0));\n }\n\n result.push(flatten(row));\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n }\n\n function checkVectorTypeAndReturnLength(vec) {\n var s = size(vec);\n\n if (s.length === 1) {\n // 1D vector\n return s[0];\n } else if (s.length === 2) {\n // 2D vector\n if (s[0] === 1) {\n // row vector\n return s[1];\n } else if (s[1] === 1) {\n // col vector\n return s[0];\n } else {\n throw new TypeError('At least one of the arguments is not a vector.');\n }\n } else {\n throw new TypeError('Only one- or two-dimensional vectors are supported.');\n }\n }\n});\nexports.createMatrixFromRows = createMatrixFromRows;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMatrixFromColumns = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar name = 'matrixFromColumns';\nvar dependencies = ['typed', 'matrix', 'flatten', 'size'];\nvar createMatrixFromColumns = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n flatten = _ref.flatten,\n size = _ref.size;\n\n /**\n * Create a dense matrix from vectors as individual columns.\n * If you pass row vectors, they will be transposed (but not conjugated!)\n *\n * Syntax:\n *\n * math.matrixFromColumns(...arr)\n * math.matrixFromColumns(col1, col2)\n * math.matrixFromColumns(col1, col2, col3)\n *\n * Examples:\n *\n * math.matrixFromColumns([1, 2, 3], [[4],[5],[6]])\n * math.matrixFromColumns(...vectors)\n *\n * See also:\n *\n * matrix, matrixFromRows, matrixFromFunction, zeros\n *\n * @param {... Array | Matrix} cols Multiple columns\n * @return { number[][] | Matrix } if at least one of the arguments is an array, an array will be returned\n */\n return typed(name, {\n '...Array': function Array(arr) {\n return _createArray(arr);\n },\n '...Matrix': function Matrix(arr) {\n return matrix(_createArray(arr.map(function (m) {\n return m.toArray();\n })));\n } // TODO implement this properly for SparseMatrix\n\n });\n\n function _createArray(arr) {\n if (arr.length === 0) throw new TypeError('At least one column is needed to construct a matrix.');\n var N = checkVectorTypeAndReturnLength(arr[0]); // create an array with empty rows\n\n var result = [];\n\n for (var i = 0; i < N; i++) {\n result[i] = [];\n } // loop columns\n\n\n var _iterator = _createForOfIteratorHelper(arr),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var col = _step.value;\n var colLength = checkVectorTypeAndReturnLength(col);\n\n if (colLength !== N) {\n throw new TypeError('The vectors had different length: ' + (N | 0) + ' ≠ ' + (colLength | 0));\n }\n\n var f = flatten(col); // push a value to each row\n\n for (var _i = 0; _i < N; _i++) {\n result[_i].push(f[_i]);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return result;\n }\n\n function checkVectorTypeAndReturnLength(vec) {\n var s = size(vec);\n\n if (s.length === 1) {\n // 1D vector\n return s[0];\n } else if (s.length === 2) {\n // 2D vector\n if (s[0] === 1) {\n // row vector\n return s[1];\n } else if (s[1] === 1) {\n // col vector\n return s[0];\n } else {\n throw new TypeError('At least one of the arguments is not a vector.');\n }\n } else {\n throw new TypeError('Only one- or two-dimensional vectors are supported.');\n }\n }\n});\nexports.createMatrixFromColumns = createMatrixFromColumns;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSplitUnit = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'splitUnit';\nvar dependencies = ['typed'];\nvar createSplitUnit = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Split a unit in an array of units whose sum is equal to the original unit.\n *\n * Syntax:\n *\n * splitUnit(unit: Unit, parts: Array.)\n *\n * Example:\n *\n * math.splitUnit(new Unit(1, 'm'), ['feet', 'inch'])\n * // [ 3 feet, 3.3700787401575 inch ]\n *\n * See also:\n *\n * unit\n *\n * @param {Array} [parts] An array of strings or valueless units.\n * @return {Array} An array of units.\n */\n return typed(name, {\n 'Unit, Array': function UnitArray(unit, parts) {\n return unit.splitUnit(parts);\n }\n });\n});\nexports.createSplitUnit = createSplitUnit;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnaryMinus = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'unaryMinus';\nvar dependencies = ['typed'];\nvar createUnaryMinus = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Inverse the sign of a value, apply a unary minus operation.\n *\n * For matrices, the function is evaluated element wise. Boolean values and\n * strings will be converted to a number. For complex numbers, both real and\n * complex value are inverted.\n *\n * Syntax:\n *\n * math.unaryMinus(x)\n *\n * Examples:\n *\n * math.unaryMinus(3.5) // returns -3.5\n * math.unaryMinus(-4.2) // returns 4.2\n *\n * See also:\n *\n * add, subtract, unaryPlus\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x Number to be inverted.\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} Returns the value with inverted sign.\n */\n return typed(name, {\n number: _index.unaryMinusNumber,\n Complex: function Complex(x) {\n return x.neg();\n },\n BigNumber: function BigNumber(x) {\n return x.neg();\n },\n Fraction: function Fraction(x) {\n return x.neg();\n },\n Unit: function Unit(x) {\n var res = x.clone();\n res.value = this(x.value);\n return res;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since unaryMinus(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n } // TODO: add support for string\n\n });\n});\nexports.createUnaryMinus = createUnaryMinus;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnaryPlus = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'unaryPlus';\nvar dependencies = ['typed', 'config', 'BigNumber'];\nvar createUnaryPlus = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n BigNumber = _ref.BigNumber;\n\n /**\n * Unary plus operation.\n * Boolean values and strings will be converted to a number, numeric values will be returned as is.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.unaryPlus(x)\n *\n * Examples:\n *\n * math.unaryPlus(3.5) // returns 3.5\n * math.unaryPlus(1) // returns 1\n *\n * See also:\n *\n * unaryMinus, add, subtract\n *\n * @param {number | BigNumber | Fraction | string | Complex | Unit | Array | Matrix} x\n * Input value\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix}\n * Returns the input value when numeric, converts to a number when input is non-numeric.\n */\n return typed(name, {\n number: _index.unaryPlusNumber,\n Complex: function Complex(x) {\n return x; // complex numbers are immutable\n },\n BigNumber: function BigNumber(x) {\n return x; // bignumbers are immutable\n },\n Fraction: function Fraction(x) {\n return x; // fractions are immutable\n },\n Unit: function Unit(x) {\n return x.clone();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since unaryPlus(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n 'boolean | string': function booleanString(x) {\n // convert to a number or bignumber\n return config.number === 'BigNumber' ? new BigNumber(+x) : +x;\n }\n });\n});\nexports.createUnaryPlus = createUnaryPlus;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAbs = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'abs';\nvar dependencies = ['typed'];\nvar createAbs = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the absolute value of a number. For matrices, the function is\n * evaluated element wise.\n *\n * Syntax:\n *\n * math.abs(x)\n *\n * Examples:\n *\n * math.abs(3.5) // returns number 3.5\n * math.abs(-4.2) // returns number 4.2\n *\n * math.abs([3, -5, -1, 0, 2]) // returns Array [3, 5, 1, 0, 2]\n *\n * See also:\n *\n * sign\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} x\n * A number or matrix for which to get the absolute value\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix | Unit}\n * Absolute value of `x`\n */\n return typed(name, {\n number: _index.absNumber,\n Complex: function Complex(x) {\n return x.abs();\n },\n BigNumber: function BigNumber(x) {\n return x.abs();\n },\n Fraction: function Fraction(x) {\n return x.abs();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since abs(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n Unit: function Unit(x) {\n return x.abs();\n }\n });\n});\nexports.createAbs = createAbs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createApply = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _IndexError = require(\"../../error/IndexError.js\");\n\nvar name = 'apply';\nvar dependencies = ['typed', 'isInteger'];\nvar createApply = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n isInteger = _ref.isInteger;\n\n /**\n * Apply a function that maps an array to a scalar\n * along a given axis of a matrix or array.\n * Returns a new matrix or array with one less dimension than the input.\n *\n * Syntax:\n *\n * math.apply(A, dim, callback)\n *\n * Where:\n *\n * - `dim: number` is a zero-based dimension over which to concatenate the matrices.\n *\n * Examples:\n *\n * const A = [[1, 2], [3, 4]]\n * const sum = math.sum\n *\n * math.apply(A, 0, sum) // returns [4, 6]\n * math.apply(A, 1, sum) // returns [3, 7]\n *\n * See also:\n *\n * map, filter, forEach\n *\n * @param {Array | Matrix} array The input Matrix\n * @param {number} dim The dimension along which the callback is applied\n * @param {Function} callback The callback function that is applied. This Function\n * should take an array or 1-d matrix as an input and\n * return a number.\n * @return {Array | Matrix} res The residual matrix with the function applied over some dimension.\n */\n return typed(name, {\n 'Array | Matrix, number | BigNumber, function': function ArrayMatrixNumberBigNumberFunction(mat, dim, callback) {\n if (!isInteger(dim)) {\n throw new TypeError('Integer number expected for dimension');\n }\n\n var size = Array.isArray(mat) ? (0, _array.arraySize)(mat) : mat.size();\n\n if (dim < 0 || dim >= size.length) {\n throw new _IndexError.IndexError(dim, size.length);\n }\n\n if ((0, _is.isMatrix)(mat)) {\n return mat.create(_apply(mat.valueOf(), dim, callback));\n } else {\n return _apply(mat, dim, callback);\n }\n }\n });\n});\n/**\n * Recursively reduce a matrix\n * @param {Array} mat\n * @param {number} dim\n * @param {Function} callback\n * @returns {Array} ret\n * @private\n */\n\nexports.createApply = createApply;\n\nfunction _apply(mat, dim, callback) {\n var i, ret, tran;\n\n if (dim <= 0) {\n if (!Array.isArray(mat[0])) {\n return callback(mat);\n } else {\n tran = _switch(mat);\n ret = [];\n\n for (i = 0; i < tran.length; i++) {\n ret[i] = _apply(tran[i], dim - 1, callback);\n }\n\n return ret;\n }\n } else {\n ret = [];\n\n for (i = 0; i < mat.length; i++) {\n ret[i] = _apply(mat[i], dim - 1, callback);\n }\n\n return ret;\n }\n}\n/**\n * Transpose a matrix\n * @param {Array} mat\n * @returns {Array} ret\n * @private\n */\n\n\nfunction _switch(mat) {\n var I = mat.length;\n var J = mat[0].length;\n var i, j;\n var ret = [];\n\n for (j = 0; j < J; j++) {\n var tmp = [];\n\n for (i = 0; i < I; i++) {\n tmp.push(mat[i][j]);\n }\n\n ret.push(tmp);\n }\n\n return ret;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAddScalar = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'addScalar';\nvar dependencies = ['typed'];\nvar createAddScalar = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Add two scalar values, `x + y`.\n * This function is meant for internal use: it is used by the public function\n * `add`\n *\n * This function does not support collections (Array or Matrix).\n *\n * @param {number | BigNumber | Fraction | Complex | Unit} x First value to add\n * @param {number | BigNumber | Fraction | Complex} y Second value to add\n * @return {number | BigNumber | Fraction | Complex | Unit} Sum of `x` and `y`\n * @private\n */\n return typed(name, {\n 'number, number': _index.addNumber,\n 'Complex, Complex': function ComplexComplex(x, y) {\n return x.add(y);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.plus(y);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.add(y);\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (x.value === null || x.value === undefined) throw new Error('Parameter x contains a unit with undefined value');\n if (y.value === null || y.value === undefined) throw new Error('Parameter y contains a unit with undefined value');\n if (!x.equalBase(y)) throw new Error('Units do not match');\n var res = x.clone();\n res.value = this(res.value, y.value);\n res.fixPrefix = false;\n return res;\n }\n });\n});\nexports.createAddScalar = createAddScalar;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCbrt = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'cbrt';\nvar dependencies = ['config', 'typed', 'isNegative', 'unaryMinus', 'matrix', 'Complex', 'BigNumber', 'Fraction'];\nvar createCbrt = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n typed = _ref.typed,\n isNegative = _ref.isNegative,\n unaryMinus = _ref.unaryMinus,\n matrix = _ref.matrix,\n Complex = _ref.Complex,\n BigNumber = _ref.BigNumber,\n Fraction = _ref.Fraction;\n\n /**\n * Calculate the cubic root of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.cbrt(x)\n * math.cbrt(x, allRoots)\n *\n * Examples:\n *\n * math.cbrt(27) // returns 3\n * math.cube(3) // returns 27\n * math.cbrt(-64) // returns -4\n * math.cbrt(math.unit('27 m^3')) // returns Unit 3 m\n * math.cbrt([27, 64, 125]) // returns [3, 4, 5]\n *\n * const x = math.complex('8i')\n * math.cbrt(x) // returns Complex 1.7320508075689 + i\n * math.cbrt(x, true) // returns Matrix [\n * // 1.7320508075689 + i\n * // -1.7320508075689 + i\n * // -2i\n * // ]\n *\n * See also:\n *\n * square, sqrt, cube\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x\n * Value for which to calculate the cubic root.\n * @param {boolean} [allRoots] Optional, false by default. Only applicable\n * when `x` is a number or complex number. If true, all complex\n * roots are returned, if false (default) the principal root is\n * returned.\n * @return {number | BigNumber | Complex | Unit | Array | Matrix}\n * Returns the cubic root of `x`\n */\n return typed(name, {\n number: _index.cbrtNumber,\n // note: signature 'number, boolean' is also supported,\n // created by typed as it knows how to convert number to Complex\n Complex: _cbrtComplex,\n 'Complex, boolean': _cbrtComplex,\n BigNumber: function BigNumber(x) {\n return x.cbrt();\n },\n Unit: _cbrtUnit,\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since cbrt(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n /**\n * Calculate the cubic root for a complex number\n * @param {Complex} x\n * @param {boolean} [allRoots] If true, the function will return an array\n * with all three roots. If false or undefined,\n * the principal root is returned.\n * @returns {Complex | Array. | Matrix.} Returns the cubic root(s) of x\n * @private\n */\n\n function _cbrtComplex(x, allRoots) {\n // https://www.wikiwand.com/en/Cube_root#/Complex_numbers\n var arg3 = x.arg() / 3;\n var abs = x.abs(); // principal root:\n\n var principal = new Complex((0, _index.cbrtNumber)(abs), 0).mul(new Complex(0, arg3).exp());\n\n if (allRoots) {\n var all = [principal, new Complex((0, _index.cbrtNumber)(abs), 0).mul(new Complex(0, arg3 + Math.PI * 2 / 3).exp()), new Complex((0, _index.cbrtNumber)(abs), 0).mul(new Complex(0, arg3 - Math.PI * 2 / 3).exp())];\n return config.matrix === 'Array' ? all : matrix(all);\n } else {\n return principal;\n }\n }\n /**\n * Calculate the cubic root for a Unit\n * @param {Unit} x\n * @return {Unit} Returns the cubic root of x\n * @private\n */\n\n\n function _cbrtUnit(x) {\n if (x.value && (0, _is.isComplex)(x.value)) {\n var result = x.clone();\n result.value = 1.0;\n result = result.pow(1.0 / 3); // Compute the units\n\n result.value = _cbrtComplex(x.value); // Compute the value\n\n return result;\n } else {\n var negate = isNegative(x.value);\n\n if (negate) {\n x.value = unaryMinus(x.value);\n } // TODO: create a helper function for this\n\n\n var third;\n\n if ((0, _is.isBigNumber)(x.value)) {\n third = new BigNumber(1).div(3);\n } else if ((0, _is.isFraction)(x.value)) {\n third = new Fraction(1, 3);\n } else {\n third = 1 / 3;\n }\n\n var _result = x.pow(third);\n\n if (negate) {\n _result.value = unaryMinus(_result.value);\n }\n\n return _result;\n }\n }\n});\nexports.createCbrt = createCbrt;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm11 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'algorithm11';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm11 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix S nonzero items and invokes the callback function f(Sij, b).\n * Callback function invoked NZ times (number of nonzero items in S).\n *\n *\n * ┌ f(Sij, b) ; S(i,j) !== 0\n * C(i,j) = ┤\n * └ 0 ; otherwise\n *\n *\n * @param {Matrix} s The SparseMatrix instance (S)\n * @param {Scalar} b The Scalar value\n * @param {Function} callback The f(Aij,b) operation to invoke\n * @param {boolean} inverse A true value indicates callback should be invoked f(b,Sij)\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * https://github.com/josdejong/mathjs/pull/346#issuecomment-97626813\n */\n return function algorithm11(s, b, callback, inverse) {\n // sparse matrix arrays\n var avalues = s._values;\n var aindex = s._index;\n var aptr = s._ptr;\n var asize = s._size;\n var adt = s._datatype; // sparse matrix cannot be a Pattern matrix\n\n if (!avalues) {\n throw new Error('Cannot perform operation on Pattern Sparse Matrix and Scalar value');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string') {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // convert b to the same datatype\n\n b = typed.convert(b, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cvalues = [];\n var cindex = [];\n var cptr = []; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // initialize ptr\n cptr[j] = cindex.length; // values in j\n\n for (var k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n var i = aindex[k]; // invoke callback\n\n var v = inverse ? cf(b, avalues[k]) : cf(avalues[k], b); // check value is zero\n\n if (!eq(v, zero)) {\n // push index & value\n cindex.push(i);\n cvalues.push(v);\n }\n }\n } // update ptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return s.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm11 = createAlgorithm11;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm12 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'algorithm12';\nvar dependencies = ['typed', 'DenseMatrix'];\nvar createAlgorithm12 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Iterates over SparseMatrix S nonzero items and invokes the callback function f(Sij, b).\n * Callback function invoked MxN times.\n *\n *\n * ┌ f(Sij, b) ; S(i,j) !== 0\n * C(i,j) = ┤\n * └ f(0, b) ; otherwise\n *\n *\n * @param {Matrix} s The SparseMatrix instance (S)\n * @param {Scalar} b The Scalar value\n * @param {Function} callback The f(Aij,b) operation to invoke\n * @param {boolean} inverse A true value indicates callback should be invoked f(b,Sij)\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * https://github.com/josdejong/mathjs/pull/346#issuecomment-97626813\n */\n return function algorithm12(s, b, callback, inverse) {\n // sparse matrix arrays\n var avalues = s._values;\n var aindex = s._index;\n var aptr = s._ptr;\n var asize = s._size;\n var adt = s._datatype; // sparse matrix cannot be a Pattern matrix\n\n if (!avalues) {\n throw new Error('Cannot perform operation on Pattern Sparse Matrix and Scalar value');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string') {\n // datatype\n dt = adt; // convert b to the same datatype\n\n b = typed.convert(b, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cdata = []; // workspaces\n\n var x = []; // marks indicating we have a value in x for a given column\n\n var w = []; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // columns mark\n var mark = j + 1; // values in j\n\n for (var k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n var r = aindex[k]; // update workspace\n\n x[r] = avalues[k];\n w[r] = mark;\n } // loop rows\n\n\n for (var i = 0; i < rows; i++) {\n // initialize C on first column\n if (j === 0) {\n // create row array\n cdata[i] = [];\n } // check sparse matrix has a value @ i,j\n\n\n if (w[i] === mark) {\n // invoke callback, update C\n cdata[i][j] = inverse ? cf(b, x[i]) : cf(x[i], b);\n } else {\n // dense matrix value @ i, j\n cdata[i][j] = inverse ? cf(b, 0) : cf(0, b);\n }\n }\n } // return dense matrix\n\n\n return new DenseMatrix({\n data: cdata,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm12 = createAlgorithm12;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm14 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _object = require(\"../../../utils/object.js\");\n\nvar name = 'algorithm14';\nvar dependencies = ['typed'];\nvar createAlgorithm14 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Iterates over DenseMatrix items and invokes the callback function f(Aij..z, b).\n * Callback function invoked MxN times.\n *\n * C(i,j,...z) = f(Aij..z, b)\n *\n * @param {Matrix} a The DenseMatrix instance (A)\n * @param {Scalar} b The Scalar value\n * @param {Function} callback The f(Aij..z,b) operation to invoke\n * @param {boolean} inverse A true value indicates callback should be invoked f(b,Aij..z)\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * https://github.com/josdejong/mathjs/pull/346#issuecomment-97659042\n */\n return function algorithm14(a, b, callback, inverse) {\n // a arrays\n var adata = a._data;\n var asize = a._size;\n var adt = a._datatype; // datatype\n\n var dt; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string') {\n // datatype\n dt = adt; // convert b to the same datatype\n\n b = typed.convert(b, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // populate cdata, iterate through dimensions\n\n\n var cdata = asize.length > 0 ? _iterate(cf, 0, asize, asize[0], adata, b, inverse) : []; // c matrix\n\n return a.createDenseMatrix({\n data: cdata,\n size: (0, _object.clone)(asize),\n datatype: dt\n });\n }; // recursive function\n\n function _iterate(f, level, s, n, av, bv, inverse) {\n // initialize array for this level\n var cv = []; // check we reach the last level\n\n if (level === s.length - 1) {\n // loop arrays in last level\n for (var i = 0; i < n; i++) {\n // invoke callback and store value\n cv[i] = inverse ? f(bv, av[i]) : f(av[i], bv);\n }\n } else {\n // iterate current level\n for (var j = 0; j < n; j++) {\n // iterate next level\n cv[j] = _iterate(f, level + 1, s, s[level + 1], av[j], bv, inverse);\n }\n }\n\n return cv;\n }\n});\nexports.createAlgorithm14 = createAlgorithm14;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCeilNumber = exports.createCeil = void 0;\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _decimal = _interopRequireDefault(require(\"decimal.js\"));\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'ceil';\nvar dependencies = ['typed', 'config', 'round', 'matrix', 'equalScalar', 'zeros', 'DenseMatrix'];\nvar createCeilNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config', 'round'], function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n round = _ref.round;\n return typed(name, {\n number: function number(x) {\n if ((0, _number.nearlyEqual)(x, round(x), config.epsilon)) {\n return round(x);\n } else {\n return Math.ceil(x);\n }\n },\n 'number, number': function numberNumber(x, n) {\n if ((0, _number.nearlyEqual)(x, round(x, n), config.epsilon)) {\n return round(x, n);\n } else {\n var _split = \"\".concat(x, \"e\").split('e'),\n _split2 = (0, _slicedToArray2.default)(_split, 2),\n number = _split2[0],\n exponent = _split2[1];\n\n var result = Math.ceil(Number(\"\".concat(number, \"e\").concat(Number(exponent) + n)));\n\n var _split3 = \"\".concat(result, \"e\").split('e');\n\n var _split4 = (0, _slicedToArray2.default)(_split3, 2);\n\n number = _split4[0];\n exponent = _split4[1];\n return Number(\"\".concat(number, \"e\").concat(Number(exponent) - n));\n }\n }\n });\n});\nexports.createCeilNumber = createCeilNumber;\nvar createCeil = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config,\n round = _ref2.round,\n matrix = _ref2.matrix,\n equalScalar = _ref2.equalScalar,\n zeros = _ref2.zeros,\n DenseMatrix = _ref2.DenseMatrix;\n var algorithm11 = (0, _algorithm.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm2.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm14 = (0, _algorithm3.createAlgorithm14)({\n typed: typed\n });\n var ceilNumber = createCeilNumber({\n typed: typed,\n config: config,\n round: round\n });\n /**\n * Round a value towards plus infinity\n * If `x` is complex, both real and imaginary part are rounded towards plus infinity.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.ceil(x)\n * math.ceil(x, n)\n *\n * Examples:\n *\n * math.ceil(3.2) // returns number 4\n * math.ceil(3.8) // returns number 4\n * math.ceil(-4.2) // returns number -4\n * math.ceil(-4.7) // returns number -4\n *\n * math.ceil(3.212, 2) // returns number 3.22\n * math.ceil(3.288, 2) // returns number 3.29\n * math.ceil(-4.212, 2) // returns number -4.21\n * math.ceil(-4.782, 2) // returns number -4.78\n *\n * const c = math.complex(3.24, -2.71)\n * math.ceil(c) // returns Complex 4 - 2i\n * math.ceil(c, 1) // returns Complex 3.3 - 2.7i\n *\n * math.ceil([3.2, 3.8, -4.7]) // returns Array [4, 4, -4]\n * math.ceil([3.21, 3.82, -4.71], 1) // returns Array [3.3, 3.9, -4.7]\n *\n * See also:\n *\n * floor, fix, round\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix} x Number to be rounded\n * @param {number | BigNumber | Array} [n=0] Number of decimals\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix} Rounded value\n */\n\n return typed('ceil', {\n number: ceilNumber.signatures.number,\n 'number,number': ceilNumber.signatures['number,number'],\n Complex: function Complex(x) {\n return x.ceil();\n },\n 'Complex, number': function ComplexNumber(x, n) {\n return x.ceil(n);\n },\n 'Complex, BigNumber': function ComplexBigNumber(x, n) {\n return x.ceil(n.toNumber());\n },\n BigNumber: function BigNumber(x) {\n if ((0, _nearlyEqual.nearlyEqual)(x, round(x), config.epsilon)) {\n return round(x);\n } else {\n return x.ceil();\n }\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, n) {\n if ((0, _nearlyEqual.nearlyEqual)(x, round(x, n), config.epsilon)) {\n return round(x, n);\n } else {\n return x.toDecimalPlaces(n.toNumber(), _decimal.default.ROUND_CEIL);\n }\n },\n Fraction: function Fraction(x) {\n return x.ceil();\n },\n 'Fraction, number': function FractionNumber(x, n) {\n return x.ceil(n);\n },\n 'Fraction, BigNumber': function FractionBigNumber(x, n) {\n return x.ceil(n.toNumber());\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since ceil(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, n) {\n var _this = this;\n\n // deep map collection, skip zeros since ceil(0) = 0\n return (0, _collection.deepMap)(x, function (i) {\n return _this(i, n);\n }, true);\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'number | Complex | Fraction | BigNumber, Array': function numberComplexFractionBigNumberArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n },\n 'number | Complex | Fraction | BigNumber, Matrix': function numberComplexFractionBigNumberMatrix(x, y) {\n if (equalScalar(x, 0)) return zeros(y.size(), y.storage());\n\n if (y.storage() === 'dense') {\n return algorithm14(y, x, this, true);\n }\n\n return algorithm12(y, x, this, true);\n }\n });\n});\nexports.createCeil = createCeil;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCube = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'cube';\nvar dependencies = ['typed'];\nvar createCube = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the cube of a value, `x * x * x`.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.cube(x)\n *\n * Examples:\n *\n * math.cube(2) // returns number 8\n * math.pow(2, 3) // returns number 8\n * math.cube(4) // returns number 64\n * 4 * 4 * 4 // returns number 64\n *\n * math.cube([1, 2, 3, 4]) // returns Array [1, 8, 27, 64]\n *\n * See also:\n *\n * multiply, square, pow, cbrt\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} x Number for which to calculate the cube\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} Cube of x\n */\n return typed(name, {\n number: _index.cubeNumber,\n Complex: function Complex(x) {\n return x.mul(x).mul(x); // Is faster than pow(x, 3)\n },\n BigNumber: function BigNumber(x) {\n return x.times(x).times(x);\n },\n Fraction: function Fraction(x) {\n return x.pow(3); // Is faster than mul()mul()mul()\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since cube(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n Unit: function Unit(x) {\n return x.pow(3);\n }\n });\n});\nexports.createCube = createCube;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createExp = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'exp';\nvar dependencies = ['typed'];\nvar createExp = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the exponent of a value.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.exp(x)\n *\n * Examples:\n *\n * math.exp(2) // returns number 7.3890560989306495\n * math.pow(math.e, 2) // returns number 7.3890560989306495\n * math.log(math.exp(2)) // returns number 2\n *\n * math.exp([1, 2, 3])\n * // returns Array [\n * // 2.718281828459045,\n * // 7.3890560989306495,\n * // 20.085536923187668\n * // ]\n *\n * See also:\n *\n * expm1, log, pow\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x A number or matrix to exponentiate\n * @return {number | BigNumber | Complex | Array | Matrix} Exponent of `x`\n */\n return typed(name, {\n number: _index.expNumber,\n Complex: function Complex(x) {\n return x.exp();\n },\n BigNumber: function BigNumber(x) {\n return x.exp();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // TODO: exp(sparse) should return a dense matrix since exp(0)==1\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createExp = createExp;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createExpm1 = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'expm1';\nvar dependencies = ['typed', 'Complex'];\nvar createExpm1 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _Complex = _ref.Complex;\n\n /**\n * Calculate the value of subtracting 1 from the exponential value.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.expm1(x)\n *\n * Examples:\n *\n * math.expm1(2) // returns number 6.38905609893065\n * math.pow(math.e, 2) - 1 // returns number 6.3890560989306495\n * math.log(math.expm1(2) + 1) // returns number 2\n *\n * math.expm1([1, 2, 3])\n * // returns Array [\n * // 1.718281828459045,\n * // 6.3890560989306495,\n * // 19.085536923187668\n * // ]\n *\n * See also:\n *\n * exp, log, pow\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x A number or matrix to apply expm1\n * @return {number | BigNumber | Complex | Array | Matrix} Exponent of `x`\n */\n return typed(name, {\n number: _index.expm1Number,\n Complex: function Complex(x) {\n var r = Math.exp(x.re);\n return new _Complex(r * Math.cos(x.im) - 1, r * Math.sin(x.im));\n },\n BigNumber: function BigNumber(x) {\n return x.exp().minus(1);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createExpm1 = createExpm1;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFixNumber = exports.createFix = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'fix';\nvar dependencies = ['typed', 'Complex', 'matrix', 'ceil', 'floor', 'equalScalar', 'zeros', 'DenseMatrix'];\nvar createFixNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'ceil', 'floor'], function (_ref) {\n var typed = _ref.typed,\n ceil = _ref.ceil,\n floor = _ref.floor;\n return typed(name, {\n number: function number(x) {\n return x > 0 ? floor(x) : ceil(x);\n },\n 'number, number': function numberNumber(x, n) {\n return x > 0 ? floor(x, n) : ceil(x, n);\n }\n });\n});\nexports.createFixNumber = createFixNumber;\nvar createFix = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref2) {\n var typed = _ref2.typed,\n _Complex = _ref2.Complex,\n matrix = _ref2.matrix,\n ceil = _ref2.ceil,\n floor = _ref2.floor,\n equalScalar = _ref2.equalScalar,\n zeros = _ref2.zeros,\n DenseMatrix = _ref2.DenseMatrix;\n var algorithm12 = (0, _algorithm.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm14 = (0, _algorithm2.createAlgorithm14)({\n typed: typed\n });\n var fixNumber = createFixNumber({\n typed: typed,\n ceil: ceil,\n floor: floor\n });\n /**\n * Round a value towards zero.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.fix(x)\n * math.fix(x,n)\n *\n * Examples:\n *\n * math.fix(3.2) // returns number 3\n * math.fix(3.8) // returns number 3\n * math.fix(-4.2) // returns number -4\n * math.fix(-4.7) // returns number -4\n *\n * math.fix(3.12, 1) // returns number 3.1\n * math.fix(3.18, 1) // returns number 3.1\n * math.fix(-4.12, 1) // returns number -4.1\n * math.fix(-4.17, 1) // returns number -4.1\n *\n * const c = math.complex(3.22, -2.78)\n * math.fix(c) // returns Complex 3 - 2i\n * math.fix(c, 1) // returns Complex 3.2 - 2.7i\n *\n * math.fix([3.2, 3.8, -4.7]) // returns Array [3, 3, -4]\n * math.fix([3.2, 3.8, -4.7], 1) // returns Array [3.2, 3.8, -4.7]\n *\n * See also:\n *\n * ceil, floor, round\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix} x Number to be rounded\n * @param {number | BigNumber | Array} [n=0] Number of decimals\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix} Rounded value\n */\n\n return typed('fix', {\n number: fixNumber.signatures.number,\n 'number, number | BigNumber': fixNumber.signatures['number,number'],\n Complex: function Complex(x) {\n return new _Complex(x.re > 0 ? Math.floor(x.re) : Math.ceil(x.re), x.im > 0 ? Math.floor(x.im) : Math.ceil(x.im));\n },\n 'Complex, number': function ComplexNumber(x, n) {\n return new _Complex(x.re > 0 ? floor(x.re, n) : ceil(x.re, n), x.im > 0 ? floor(x.im, n) : ceil(x.im, n));\n },\n 'Complex, BigNumber': function ComplexBigNumber(x, bn) {\n var n = bn.toNumber();\n return new _Complex(x.re > 0 ? floor(x.re, n) : ceil(x.re, n), x.im > 0 ? floor(x.im, n) : ceil(x.im, n));\n },\n BigNumber: function BigNumber(x) {\n return x.isNegative() ? ceil(x) : floor(x);\n },\n 'BigNumber, number | BigNumber': function BigNumberNumberBigNumber(x, n) {\n return x.isNegative() ? ceil(x, n) : floor(x, n);\n },\n Fraction: function Fraction(x) {\n return x.s < 0 ? x.ceil() : x.floor();\n },\n 'Fraction, number | BigNumber': function FractionNumberBigNumber(x, n) {\n return x.s < 0 ? ceil(x, n) : floor(x, n);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since fix(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n 'Array | Matrix, number | BigNumber': function ArrayMatrixNumberBigNumber(x, n) {\n var _this = this;\n\n // deep map collection, skip zeros since fix(0) = 0\n return (0, _collection.deepMap)(x, function (i) {\n return _this(i, n);\n }, true);\n },\n 'number | Complex | Fraction | BigNumber, Array': function numberComplexFractionBigNumberArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n },\n 'number | Complex | Fraction | BigNumber, Matrix': function numberComplexFractionBigNumberMatrix(x, y) {\n if (equalScalar(x, 0)) return zeros(y.size(), y.storage());\n\n if (y.storage() === 'dense') {\n return algorithm14(y, x, this, true);\n }\n\n return algorithm12(y, x, this, true);\n }\n });\n});\nexports.createFix = createFix;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFloorNumber = exports.createFloor = void 0;\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _decimal = _interopRequireDefault(require(\"decimal.js\"));\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'floor';\nvar dependencies = ['typed', 'config', 'round', 'matrix', 'equalScalar', 'zeros', 'DenseMatrix'];\nvar createFloorNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config', 'round'], function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n round = _ref.round;\n return typed(name, {\n number: function number(x) {\n if ((0, _number.nearlyEqual)(x, round(x), config.epsilon)) {\n return round(x);\n } else {\n return Math.floor(x);\n }\n },\n 'number, number': function numberNumber(x, n) {\n if ((0, _number.nearlyEqual)(x, round(x, n), config.epsilon)) {\n return round(x, n);\n } else {\n var _split = \"\".concat(x, \"e\").split('e'),\n _split2 = (0, _slicedToArray2.default)(_split, 2),\n number = _split2[0],\n exponent = _split2[1];\n\n var result = Math.floor(Number(\"\".concat(number, \"e\").concat(Number(exponent) + n)));\n\n var _split3 = \"\".concat(result, \"e\").split('e');\n\n var _split4 = (0, _slicedToArray2.default)(_split3, 2);\n\n number = _split4[0];\n exponent = _split4[1];\n return Number(\"\".concat(number, \"e\").concat(Number(exponent) - n));\n }\n }\n });\n});\nexports.createFloorNumber = createFloorNumber;\nvar createFloor = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config,\n round = _ref2.round,\n matrix = _ref2.matrix,\n equalScalar = _ref2.equalScalar,\n zeros = _ref2.zeros,\n DenseMatrix = _ref2.DenseMatrix;\n var algorithm11 = (0, _algorithm.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm2.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm14 = (0, _algorithm3.createAlgorithm14)({\n typed: typed\n });\n var floorNumber = createFloorNumber({\n typed: typed,\n config: config,\n round: round\n });\n /**\n * Round a value towards minus infinity.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.floor(x)\n * math.floor(x, n)\n *\n * Examples:\n *\n * math.floor(3.2) // returns number 3\n * math.floor(3.8) // returns number 3\n * math.floor(-4.2) // returns number -5\n * math.floor(-4.7) // returns number -5\n *\n * math.floor(3.212, 2) // returns number 3.21\n * math.floor(3.288, 2) // returns number 3.28\n * math.floor(-4.212, 2) // returns number -4.22\n * math.floor(-4.782, 2) // returns number -4.79\n *\n * const c = math.complex(3.24, -2.71)\n * math.floor(c) // returns Complex 3 - 3i\n * math.floor(c, 1) // returns Complex 3.2 - 2.8i\n *\n * math.floor([3.2, 3.8, -4.7]) // returns Array [3, 3, -5]\n * math.floor([3.21, 3.82, -4.71], 1) // returns Array [3.2, 3.8, -4.8]\n *\n * math.floor(math.tau, [2, 3]) // returns Array [6.28, 6.283]\n *\n * // Note that floor(array, array) currently not implemented.\n *\n * See also:\n *\n * ceil, fix, round\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix} x Number to be rounded\n * @param {number | BigNumber | Array} [n=0] Number of decimals\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix} Rounded value\n */\n\n return typed('floor', {\n number: floorNumber.signatures.number,\n 'number,number': floorNumber.signatures['number,number'],\n Complex: function Complex(x) {\n return x.floor();\n },\n 'Complex, number': function ComplexNumber(x, n) {\n return x.floor(n);\n },\n 'Complex, BigNumber': function ComplexBigNumber(x, n) {\n return x.floor(n.toNumber());\n },\n BigNumber: function BigNumber(x) {\n if ((0, _nearlyEqual.nearlyEqual)(x, round(x), config.epsilon)) {\n return round(x);\n } else {\n return x.floor();\n }\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, n) {\n if ((0, _nearlyEqual.nearlyEqual)(x, round(x, n), config.epsilon)) {\n return round(x, n);\n } else {\n return x.toDecimalPlaces(n.toNumber(), _decimal.default.ROUND_FLOOR);\n }\n },\n Fraction: function Fraction(x) {\n return x.floor();\n },\n 'Fraction, number': function FractionNumber(x, n) {\n return x.floor(n);\n },\n 'Fraction, BigNumber': function FractionBigNumber(x, n) {\n return x.floor(n.toNumber());\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since floor(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, n) {\n var _this = this;\n\n // deep map collection, skip zeros since ceil(0) = 0\n return (0, _collection.deepMap)(x, function (i) {\n return _this(i, n);\n }, true);\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'number | Complex | Fraction | BigNumber, Array': function numberComplexFractionBigNumberArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n },\n 'number | Complex | Fraction | BigNumber, Matrix': function numberComplexFractionBigNumberMatrix(x, y) {\n if (equalScalar(x, 0)) return zeros(y.size(), y.storage());\n\n if (y.storage() === 'dense') {\n return algorithm14(y, x, this, true);\n }\n\n return algorithm12(y, x, this, true);\n }\n });\n});\nexports.createFloor = createFloor;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm01 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm01';\nvar dependencies = ['typed'];\nvar createAlgorithm01 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Iterates over SparseMatrix nonzero items and invokes the callback function f(Dij, Sij).\n * Callback function invoked NNZ times (number of nonzero items in SparseMatrix).\n *\n *\n * ┌ f(Dij, Sij) ; S(i,j) !== 0\n * C(i,j) = ┤\n * └ Dij ; otherwise\n *\n *\n * @param {Matrix} denseMatrix The DenseMatrix instance (D)\n * @param {Matrix} sparseMatrix The SparseMatrix instance (S)\n * @param {Function} callback The f(Dij,Sij) operation to invoke, where Dij = DenseMatrix(i,j) and Sij = SparseMatrix(i,j)\n * @param {boolean} inverse A true value indicates callback should be invoked f(Sij,Dij)\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97477571\n */\n return function algorithm1(denseMatrix, sparseMatrix, callback, inverse) {\n // dense matrix arrays\n var adata = denseMatrix._data;\n var asize = denseMatrix._size;\n var adt = denseMatrix._datatype; // sparse matrix arrays\n\n var bvalues = sparseMatrix._values;\n var bindex = sparseMatrix._index;\n var bptr = sparseMatrix._ptr;\n var bsize = sparseMatrix._size;\n var bdt = sparseMatrix._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // sparse matrix cannot be a Pattern matrix\n\n\n if (!bvalues) {\n throw new Error('Cannot perform operation on Dense Matrix and Pattern Sparse Matrix');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // process data types\n\n var dt = typeof adt === 'string' && adt === bdt ? adt : undefined; // callback function\n\n var cf = dt ? typed.find(callback, [dt, dt]) : callback; // vars\n\n var i, j; // result (DenseMatrix)\n\n var cdata = []; // initialize c\n\n for (i = 0; i < rows; i++) {\n cdata[i] = [];\n } // workspace\n\n\n var x = []; // marks indicating we have a value in x for a given column\n\n var w = []; // loop columns in b\n\n for (j = 0; j < columns; j++) {\n // column mark\n var mark = j + 1; // values in column j\n\n for (var k0 = bptr[j], k1 = bptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = bindex[k]; // update workspace\n\n x[i] = inverse ? cf(bvalues[k], adata[i][j]) : cf(adata[i][j], bvalues[k]); // mark i as updated\n\n w[i] = mark;\n } // loop rows\n\n\n for (i = 0; i < rows; i++) {\n // check row is in workspace\n if (w[i] === mark) {\n // c[i][j] was already calculated\n cdata[i][j] = x[i];\n } else {\n // item does not exist in S\n cdata[i][j] = adata[i][j];\n }\n }\n } // return dense matrix\n\n\n return denseMatrix.createDenseMatrix({\n data: cdata,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm01 = createAlgorithm01;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm04 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm04';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm04 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix A and SparseMatrix B nonzero items and invokes the callback function f(Aij, Bij).\n * Callback function invoked MAX(NNZA, NNZB) times\n *\n *\n * ┌ f(Aij, Bij) ; A(i,j) !== 0 && B(i,j) !== 0\n * C(i,j) = ┤ A(i,j) ; A(i,j) !== 0\n * └ B(i,j) ; B(i,j) !== 0\n *\n *\n * @param {Matrix} a The SparseMatrix instance (A)\n * @param {Matrix} b The SparseMatrix instance (B)\n * @param {Function} callback The f(Aij,Bij) operation to invoke\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97620294\n */\n return function algorithm04(a, b, callback) {\n // sparse matrix arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size;\n var adt = a._datatype; // sparse matrix arrays\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr;\n var bsize = b._size;\n var bdt = b._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cvalues = avalues && bvalues ? [] : undefined;\n var cindex = [];\n var cptr = []; // workspace\n\n var xa = avalues && bvalues ? [] : undefined;\n var xb = avalues && bvalues ? [] : undefined; // marks indicating we have a value in x for a given column\n\n var wa = [];\n var wb = []; // vars\n\n var i, j, k, k0, k1; // loop columns\n\n for (j = 0; j < columns; j++) {\n // update cptr\n cptr[j] = cindex.length; // columns mark\n\n var mark = j + 1; // loop A(:,j)\n\n for (k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = aindex[k]; // update c\n\n cindex.push(i); // update workspace\n\n wa[i] = mark; // check we need to process values\n\n if (xa) {\n xa[i] = avalues[k];\n }\n } // loop B(:,j)\n\n\n for (k0 = bptr[j], k1 = bptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = bindex[k]; // check row exists in A\n\n if (wa[i] === mark) {\n // update record in xa @ i\n if (xa) {\n // invoke callback\n var v = cf(xa[i], bvalues[k]); // check for zero\n\n if (!eq(v, zero)) {\n // update workspace\n xa[i] = v;\n } else {\n // remove mark (index will be removed later)\n wa[i] = null;\n }\n }\n } else {\n // update c\n cindex.push(i); // update workspace\n\n wb[i] = mark; // check we need to process values\n\n if (xb) {\n xb[i] = bvalues[k];\n }\n }\n } // check we need to process values (non pattern matrix)\n\n\n if (xa && xb) {\n // initialize first index in j\n k = cptr[j]; // loop index in j\n\n while (k < cindex.length) {\n // row\n i = cindex[k]; // check workspace has value @ i\n\n if (wa[i] === mark) {\n // push value (Aij != 0 || (Aij != 0 && Bij != 0))\n cvalues[k] = xa[i]; // increment pointer\n\n k++;\n } else if (wb[i] === mark) {\n // push value (bij != 0)\n cvalues[k] = xb[i]; // increment pointer\n\n k++;\n } else {\n // remove index @ k\n cindex.splice(k, 1);\n }\n }\n }\n } // update cptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm04 = createAlgorithm04;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm10 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'algorithm10';\nvar dependencies = ['typed', 'DenseMatrix'];\nvar createAlgorithm10 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Iterates over SparseMatrix S nonzero items and invokes the callback function f(Sij, b).\n * Callback function invoked NZ times (number of nonzero items in S).\n *\n *\n * ┌ f(Sij, b) ; S(i,j) !== 0\n * C(i,j) = ┤\n * └ b ; otherwise\n *\n *\n * @param {Matrix} s The SparseMatrix instance (S)\n * @param {Scalar} b The Scalar value\n * @param {Function} callback The f(Aij,b) operation to invoke\n * @param {boolean} inverse A true value indicates callback should be invoked f(b,Sij)\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * https://github.com/josdejong/mathjs/pull/346#issuecomment-97626813\n */\n return function algorithm10(s, b, callback, inverse) {\n // sparse matrix arrays\n var avalues = s._values;\n var aindex = s._index;\n var aptr = s._ptr;\n var asize = s._size;\n var adt = s._datatype; // sparse matrix cannot be a Pattern matrix\n\n if (!avalues) {\n throw new Error('Cannot perform operation on Pattern Sparse Matrix and Scalar value');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string') {\n // datatype\n dt = adt; // convert b to the same datatype\n\n b = typed.convert(b, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cdata = []; // workspaces\n\n var x = []; // marks indicating we have a value in x for a given column\n\n var w = []; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // columns mark\n var mark = j + 1; // values in j\n\n for (var k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n var r = aindex[k]; // update workspace\n\n x[r] = avalues[k];\n w[r] = mark;\n } // loop rows\n\n\n for (var i = 0; i < rows; i++) {\n // initialize C on first column\n if (j === 0) {\n // create row array\n cdata[i] = [];\n } // check sparse matrix has a value @ i,j\n\n\n if (w[i] === mark) {\n // invoke callback, update C\n cdata[i][j] = inverse ? cf(b, x[i]) : cf(x[i], b);\n } else {\n // dense matrix value @ i, j\n cdata[i][j] = b;\n }\n }\n } // return dense matrix\n\n\n return new DenseMatrix({\n data: cdata,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm10 = createAlgorithm10;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm13 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm13';\nvar dependencies = ['typed'];\nvar createAlgorithm13 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Iterates over DenseMatrix items and invokes the callback function f(Aij..z, Bij..z).\n * Callback function invoked MxN times.\n *\n * C(i,j,...z) = f(Aij..z, Bij..z)\n *\n * @param {Matrix} a The DenseMatrix instance (A)\n * @param {Matrix} b The DenseMatrix instance (B)\n * @param {Function} callback The f(Aij..z,Bij..z) operation to invoke\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * https://github.com/josdejong/mathjs/pull/346#issuecomment-97658658\n */\n return function algorithm13(a, b, callback) {\n // a arrays\n var adata = a._data;\n var asize = a._size;\n var adt = a._datatype; // b arrays\n\n var bdata = b._data;\n var bsize = b._size;\n var bdt = b._datatype; // c arrays\n\n var csize = []; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // validate each one of the dimension sizes\n\n\n for (var s = 0; s < asize.length; s++) {\n // must match\n if (asize[s] !== bsize[s]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // update dimension in c\n\n\n csize[s] = asize[s];\n } // datatype\n\n\n var dt; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // populate cdata, iterate through dimensions\n\n\n var cdata = csize.length > 0 ? _iterate(cf, 0, csize, csize[0], adata, bdata) : []; // c matrix\n\n return a.createDenseMatrix({\n data: cdata,\n size: csize,\n datatype: dt\n });\n }; // recursive function\n\n function _iterate(f, level, s, n, av, bv) {\n // initialize array for this level\n var cv = []; // check we reach the last level\n\n if (level === s.length - 1) {\n // loop arrays in last level\n for (var i = 0; i < n; i++) {\n // invoke callback and store value\n cv[i] = f(av[i], bv[i]);\n }\n } else {\n // iterate current level\n for (var j = 0; j < n; j++) {\n // iterate next level\n cv[j] = _iterate(f, level + 1, s, s[level + 1], av[j], bv[j]);\n }\n }\n\n return cv;\n }\n});\nexports.createAlgorithm13 = createAlgorithm13;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createGcd = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm04.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'gcd';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'BigNumber', 'DenseMatrix'];\nvar createGcd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n BigNumber = _ref.BigNumber,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm01 = (0, _algorithm.createAlgorithm01)({\n typed: typed\n });\n var algorithm04 = (0, _algorithm2.createAlgorithm04)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm3.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Calculate the greatest common divisor for two or more values or arrays.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.gcd(a, b)\n * math.gcd(a, b, c, ...)\n *\n * Examples:\n *\n * math.gcd(8, 12) // returns 4\n * math.gcd(-4, 6) // returns 2\n * math.gcd(25, 15, -10) // returns 5\n *\n * math.gcd([8, -4], [12, 6]) // returns [4, 2]\n *\n * See also:\n *\n * lcm, xgcd\n *\n * @param {... number | BigNumber | Fraction | Array | Matrix} args Two or more integer numbers\n * @return {number | BigNumber | Fraction | Array | Matrix} The greatest common divisor\n */\n\n return typed(name, {\n 'number, number': _index.gcdNumber,\n 'BigNumber, BigNumber': _gcdBigNumber,\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.gcd(y);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm04(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm01(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm01(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm10(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n return algorithm10(y, x, this, true);\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n },\n // TODO: need a smarter notation here\n 'Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber': function ArrayMatrixNumberBigNumberArrayMatrixNumberBigNumberArrayMatrixNumberBigNumber(a, b, args) {\n var res = this(a, b);\n\n for (var i = 0; i < args.length; i++) {\n res = this(res, args[i]);\n }\n\n return res;\n }\n });\n /**\n * Calculate gcd for BigNumbers\n * @param {BigNumber} a\n * @param {BigNumber} b\n * @returns {BigNumber} Returns greatest common denominator of a and b\n * @private\n */\n\n function _gcdBigNumber(a, b) {\n if (!a.isInt() || !b.isInt()) {\n throw new Error('Parameters in function gcd must be integer numbers');\n } // https://en.wikipedia.org/wiki/Euclidean_algorithm\n\n\n var zero = new BigNumber(0);\n\n while (!b.isZero()) {\n var r = a.mod(b);\n a = b;\n b = r;\n }\n\n return a.lt(zero) ? a.neg() : a;\n }\n});\nexports.createGcd = createGcd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm02 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm02';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm02 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix nonzero items and invokes the callback function f(Dij, Sij).\n * Callback function invoked NNZ times (number of nonzero items in SparseMatrix).\n *\n *\n * ┌ f(Dij, Sij) ; S(i,j) !== 0\n * C(i,j) = ┤\n * └ 0 ; otherwise\n *\n *\n * @param {Matrix} denseMatrix The DenseMatrix instance (D)\n * @param {Matrix} sparseMatrix The SparseMatrix instance (S)\n * @param {Function} callback The f(Dij,Sij) operation to invoke, where Dij = DenseMatrix(i,j) and Sij = SparseMatrix(i,j)\n * @param {boolean} inverse A true value indicates callback should be invoked f(Sij,Dij)\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97477571\n */\n return function algorithm02(denseMatrix, sparseMatrix, callback, inverse) {\n // dense matrix arrays\n var adata = denseMatrix._data;\n var asize = denseMatrix._size;\n var adt = denseMatrix._datatype; // sparse matrix arrays\n\n var bvalues = sparseMatrix._values;\n var bindex = sparseMatrix._index;\n var bptr = sparseMatrix._ptr;\n var bsize = sparseMatrix._size;\n var bdt = sparseMatrix._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // sparse matrix cannot be a Pattern matrix\n\n\n if (!bvalues) {\n throw new Error('Cannot perform operation on Dense Matrix and Pattern Sparse Matrix');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result (SparseMatrix)\n\n\n var cvalues = [];\n var cindex = [];\n var cptr = []; // loop columns in b\n\n for (var j = 0; j < columns; j++) {\n // update cptr\n cptr[j] = cindex.length; // values in column j\n\n for (var k0 = bptr[j], k1 = bptr[j + 1], k = k0; k < k1; k++) {\n // row\n var i = bindex[k]; // update C(i,j)\n\n var cij = inverse ? cf(bvalues[k], adata[i][j]) : cf(adata[i][j], bvalues[k]); // check for nonzero\n\n if (!eq(cij, zero)) {\n // push i & v\n cindex.push(i);\n cvalues.push(cij);\n }\n }\n } // update cptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return sparseMatrix.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm02 = createAlgorithm02;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm06 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar _collection = require(\"../../../utils/collection.js\");\n\nvar name = 'algorithm06';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm06 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix A and SparseMatrix B nonzero items and invokes the callback function f(Aij, Bij).\n * Callback function invoked (Anz U Bnz) times, where Anz and Bnz are the nonzero elements in both matrices.\n *\n *\n * ┌ f(Aij, Bij) ; A(i,j) !== 0 && B(i,j) !== 0\n * C(i,j) = ┤\n * └ 0 ; otherwise\n *\n *\n * @param {Matrix} a The SparseMatrix instance (A)\n * @param {Matrix} b The SparseMatrix instance (B)\n * @param {Function} callback The f(Aij,Bij) operation to invoke\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97620294\n */\n return function algorithm06(a, b, callback) {\n // sparse matrix arrays\n var avalues = a._values;\n var asize = a._size;\n var adt = a._datatype; // sparse matrix arrays\n\n var bvalues = b._values;\n var bsize = b._size;\n var bdt = b._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cvalues = avalues && bvalues ? [] : undefined;\n var cindex = [];\n var cptr = []; // workspaces\n\n var x = cvalues ? [] : undefined; // marks indicating we have a value in x for a given column\n\n var w = []; // marks indicating value in a given row has been updated\n\n var u = []; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // update cptr\n cptr[j] = cindex.length; // columns mark\n\n var mark = j + 1; // scatter the values of A(:,j) into workspace\n\n (0, _collection.scatter)(a, j, w, x, u, mark, cindex, cf); // scatter the values of B(:,j) into workspace\n\n (0, _collection.scatter)(b, j, w, x, u, mark, cindex, cf); // check we need to process values (non pattern matrix)\n\n if (x) {\n // initialize first index in j\n var k = cptr[j]; // loop index in j\n\n while (k < cindex.length) {\n // row\n var i = cindex[k]; // check function was invoked on current row (Aij !=0 && Bij != 0)\n\n if (u[i] === mark) {\n // value @ i\n var v = x[i]; // check for zero value\n\n if (!eq(v, zero)) {\n // push value\n cvalues.push(v); // increment pointer\n\n k++;\n } else {\n // remove value @ i, do not increment pointer\n cindex.splice(k, 1);\n }\n } else {\n // remove value @ i, do not increment pointer\n cindex.splice(k, 1);\n }\n }\n } else {\n // initialize first index in j\n var p = cptr[j]; // loop index in j\n\n while (p < cindex.length) {\n // row\n var r = cindex[p]; // check function was invoked on current row (Aij !=0 && Bij != 0)\n\n if (u[r] !== mark) {\n // remove value @ i, do not increment pointer\n cindex.splice(p, 1);\n } else {\n // increment pointer\n p++;\n }\n }\n }\n } // update cptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm06 = createAlgorithm06;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLcm = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm06.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'lcm';\nvar dependencies = ['typed', 'matrix', 'equalScalar'];\nvar createLcm = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm06 = (0, _algorithm2.createAlgorithm06)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm3.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Calculate the least common multiple for two or more values or arrays.\n *\n * lcm is defined as:\n *\n * lcm(a, b) = abs(a * b) / gcd(a, b)\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.lcm(a, b)\n * math.lcm(a, b, c, ...)\n *\n * Examples:\n *\n * math.lcm(4, 6) // returns 12\n * math.lcm(6, 21) // returns 42\n * math.lcm(6, 21, 5) // returns 210\n *\n * math.lcm([4, 6], [6, 21]) // returns [12, 42]\n *\n * See also:\n *\n * gcd, xgcd\n *\n * @param {... number | BigNumber | Array | Matrix} args Two or more integer numbers\n * @return {number | BigNumber | Array | Matrix} The least common multiple\n */\n\n return typed(name, {\n 'number, number': _index.lcmNumber,\n 'BigNumber, BigNumber': _lcmBigNumber,\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.lcm(y);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm06(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm02(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n return algorithm11(y, x, this, true);\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n },\n // TODO: need a smarter notation here\n 'Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber': function ArrayMatrixNumberBigNumberArrayMatrixNumberBigNumberArrayMatrixNumberBigNumber(a, b, args) {\n var res = this(a, b);\n\n for (var i = 0; i < args.length; i++) {\n res = this(res, args[i]);\n }\n\n return res;\n }\n });\n /**\n * Calculate lcm for two BigNumbers\n * @param {BigNumber} a\n * @param {BigNumber} b\n * @returns {BigNumber} Returns the least common multiple of a and b\n * @private\n */\n\n function _lcmBigNumber(a, b) {\n if (!a.isInt() || !b.isInt()) {\n throw new Error('Parameters in function lcm must be integer numbers');\n }\n\n if (a.isZero()) {\n return a;\n }\n\n if (b.isZero()) {\n return b;\n } // https://en.wikipedia.org/wiki/Euclidean_algorithm\n // evaluate lcm here inline to reduce overhead\n\n\n var prod = a.times(b);\n\n while (!b.isZero()) {\n var t = b;\n b = a.mod(t);\n a = t;\n }\n\n return prod.div(a).abs();\n }\n});\nexports.createLcm = createLcm;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLog10 = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'log10';\nvar dependencies = ['typed', 'config', 'Complex'];\nvar createLog10 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n _Complex = _ref.Complex;\n\n /**\n * Calculate the 10-base logarithm of a value. This is the same as calculating `log(x, 10)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.log10(x)\n *\n * Examples:\n *\n * math.log10(0.00001) // returns -5\n * math.log10(10000) // returns 4\n * math.log(10000) / math.log(10) // returns 4\n * math.pow(10, 4) // returns 10000\n *\n * See also:\n *\n * exp, log, log1p, log2\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * Value for which to calculate the logarithm.\n * @return {number | BigNumber | Complex | Array | Matrix}\n * Returns the 10-base logarithm of `x`\n */\n return typed(name, {\n number: function number(x) {\n if (x >= 0 || config.predictable) {\n return (0, _index.log10Number)(x);\n } else {\n // negative value -> complex value computation\n return new _Complex(x, 0).log().div(Math.LN10);\n }\n },\n Complex: function Complex(x) {\n return new _Complex(x).log().div(Math.LN10);\n },\n BigNumber: function BigNumber(x) {\n if (!x.isNegative() || config.predictable) {\n return x.log();\n } else {\n // downgrade to number, return Complex valued result\n return new _Complex(x.toNumber(), 0).log().div(Math.LN10);\n }\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createLog10 = createLog10;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLog2 = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'log2';\nvar dependencies = ['typed', 'config', 'Complex'];\nvar createLog2 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex;\n\n /**\n * Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.log2(x)\n *\n * Examples:\n *\n * math.log2(0.03125) // returns -5\n * math.log2(16) // returns 4\n * math.log2(16) / math.log2(2) // returns 4\n * math.pow(2, 4) // returns 16\n *\n * See also:\n *\n * exp, log, log1p, log10\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * Value for which to calculate the logarithm.\n * @return {number | BigNumber | Complex | Array | Matrix}\n * Returns the 2-base logarithm of `x`\n */\n return typed(name, {\n number: function number(x) {\n if (x >= 0 || config.predictable) {\n return (0, _index.log2Number)(x);\n } else {\n // negative value -> complex value computation\n return _log2Complex(new Complex(x, 0));\n }\n },\n Complex: _log2Complex,\n BigNumber: function BigNumber(x) {\n if (!x.isNegative() || config.predictable) {\n return x.log(2);\n } else {\n // downgrade to number, return Complex valued result\n return _log2Complex(new Complex(x.toNumber(), 0));\n }\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n /**\n * Calculate log2 for a complex value\n * @param {Complex} x\n * @returns {Complex}\n * @private\n */\n\n function _log2Complex(x) {\n var newX = Math.sqrt(x.re * x.re + x.im * x.im);\n return new Complex(Math.log2 ? Math.log2(newX) : Math.log(newX) / Math.LN2, Math.atan2(x.im, x.re) / Math.LN2);\n }\n});\nexports.createLog2 = createLog2;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm03 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm03';\nvar dependencies = ['typed'];\nvar createAlgorithm03 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Iterates over SparseMatrix items and invokes the callback function f(Dij, Sij).\n * Callback function invoked M*N times.\n *\n *\n * ┌ f(Dij, Sij) ; S(i,j) !== 0\n * C(i,j) = ┤\n * └ f(Dij, 0) ; otherwise\n *\n *\n * @param {Matrix} denseMatrix The DenseMatrix instance (D)\n * @param {Matrix} sparseMatrix The SparseMatrix instance (C)\n * @param {Function} callback The f(Dij,Sij) operation to invoke, where Dij = DenseMatrix(i,j) and Sij = SparseMatrix(i,j)\n * @param {boolean} inverse A true value indicates callback should be invoked f(Sij,Dij)\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97477571\n */\n return function algorithm03(denseMatrix, sparseMatrix, callback, inverse) {\n // dense matrix arrays\n var adata = denseMatrix._data;\n var asize = denseMatrix._size;\n var adt = denseMatrix._datatype; // sparse matrix arrays\n\n var bvalues = sparseMatrix._values;\n var bindex = sparseMatrix._index;\n var bptr = sparseMatrix._ptr;\n var bsize = sparseMatrix._size;\n var bdt = sparseMatrix._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // sparse matrix cannot be a Pattern matrix\n\n\n if (!bvalues) {\n throw new Error('Cannot perform operation on Dense Matrix and Pattern Sparse Matrix');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result (DenseMatrix)\n\n\n var cdata = []; // initialize dense matrix\n\n for (var z = 0; z < rows; z++) {\n // initialize row\n cdata[z] = [];\n } // workspace\n\n\n var x = []; // marks indicating we have a value in x for a given column\n\n var w = []; // loop columns in b\n\n for (var j = 0; j < columns; j++) {\n // column mark\n var mark = j + 1; // values in column j\n\n for (var k0 = bptr[j], k1 = bptr[j + 1], k = k0; k < k1; k++) {\n // row\n var i = bindex[k]; // update workspace\n\n x[i] = inverse ? cf(bvalues[k], adata[i][j]) : cf(adata[i][j], bvalues[k]);\n w[i] = mark;\n } // process workspace\n\n\n for (var y = 0; y < rows; y++) {\n // check we have a calculated value for current row\n if (w[y] === mark) {\n // use calculated value\n cdata[y][j] = x[y];\n } else {\n // calculate value\n cdata[y][j] = inverse ? cf(zero, adata[y][j]) : cf(adata[y][j], zero);\n }\n }\n } // return dense matrix\n\n\n return denseMatrix.createDenseMatrix({\n data: cdata,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm03 = createAlgorithm03;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm05 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm05';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm05 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix A and SparseMatrix B nonzero items and invokes the callback function f(Aij, Bij).\n * Callback function invoked MAX(NNZA, NNZB) times\n *\n *\n * ┌ f(Aij, Bij) ; A(i,j) !== 0 || B(i,j) !== 0\n * C(i,j) = ┤\n * └ 0 ; otherwise\n *\n *\n * @param {Matrix} a The SparseMatrix instance (A)\n * @param {Matrix} b The SparseMatrix instance (B)\n * @param {Function} callback The f(Aij,Bij) operation to invoke\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97620294\n */\n return function algorithm05(a, b, callback) {\n // sparse matrix arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size;\n var adt = a._datatype; // sparse matrix arrays\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr;\n var bsize = b._size;\n var bdt = b._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cvalues = avalues && bvalues ? [] : undefined;\n var cindex = [];\n var cptr = []; // workspaces\n\n var xa = cvalues ? [] : undefined;\n var xb = cvalues ? [] : undefined; // marks indicating we have a value in x for a given column\n\n var wa = [];\n var wb = []; // vars\n\n var i, j, k, k1; // loop columns\n\n for (j = 0; j < columns; j++) {\n // update cptr\n cptr[j] = cindex.length; // columns mark\n\n var mark = j + 1; // loop values A(:,j)\n\n for (k = aptr[j], k1 = aptr[j + 1]; k < k1; k++) {\n // row\n i = aindex[k]; // push index\n\n cindex.push(i); // update workspace\n\n wa[i] = mark; // check we need to process values\n\n if (xa) {\n xa[i] = avalues[k];\n }\n } // loop values B(:,j)\n\n\n for (k = bptr[j], k1 = bptr[j + 1]; k < k1; k++) {\n // row\n i = bindex[k]; // check row existed in A\n\n if (wa[i] !== mark) {\n // push index\n cindex.push(i);\n } // update workspace\n\n\n wb[i] = mark; // check we need to process values\n\n if (xb) {\n xb[i] = bvalues[k];\n }\n } // check we need to process values (non pattern matrix)\n\n\n if (cvalues) {\n // initialize first index in j\n k = cptr[j]; // loop index in j\n\n while (k < cindex.length) {\n // row\n i = cindex[k]; // marks\n\n var wai = wa[i];\n var wbi = wb[i]; // check Aij or Bij are nonzero\n\n if (wai === mark || wbi === mark) {\n // matrix values @ i,j\n var va = wai === mark ? xa[i] : zero;\n var vb = wbi === mark ? xb[i] : zero; // Cij\n\n var vc = cf(va, vb); // check for zero\n\n if (!eq(vc, zero)) {\n // push value\n cvalues.push(vc); // increment pointer\n\n k++;\n } else {\n // remove value @ i, do not increment pointer\n cindex.splice(k, 1);\n }\n }\n }\n }\n } // update cptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm05 = createAlgorithm05;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMod = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm05.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm7 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'mod';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'DenseMatrix'];\nvar createMod = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm03 = (0, _algorithm2.createAlgorithm03)({\n typed: typed\n });\n var algorithm05 = (0, _algorithm3.createAlgorithm05)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm4.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm5.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm6.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm7.createAlgorithm14)({\n typed: typed\n });\n /**\n * Calculates the modulus, the remainder of an integer division.\n *\n * For matrices, the function is evaluated element wise.\n *\n * The modulus is defined as:\n *\n * x - y * floor(x / y)\n *\n * See https://en.wikipedia.org/wiki/Modulo_operation.\n *\n * Syntax:\n *\n * math.mod(x, y)\n *\n * Examples:\n *\n * math.mod(8, 3) // returns 2\n * math.mod(11, 2) // returns 1\n *\n * function isOdd(x) {\n * return math.mod(x, 2) != 0\n * }\n *\n * isOdd(2) // returns false\n * isOdd(3) // returns true\n *\n * See also:\n *\n * divide\n *\n * @param {number | BigNumber | Fraction | Array | Matrix} x Dividend\n * @param {number | BigNumber | Fraction | Array | Matrix} y Divisor\n * @return {number | BigNumber | Fraction | Array | Matrix} Returns the remainder of `x` divided by `y`.\n */\n\n return typed(name, {\n 'number, number': _index.modNumber,\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n if (y.isNeg()) {\n throw new Error('Cannot calculate mod for a negative divisor');\n }\n\n return y.isZero() ? x : x.mod(y);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n if (y.compare(0) < 0) {\n throw new Error('Cannot calculate mod for a negative divisor');\n } // Workaround suggested in Fraction.js library to calculate correct modulo for negative dividend\n\n\n return x.compare(0) >= 0 ? x.mod(y) : x.mod(y).add(y).mod(y);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm05(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createMod = createMod;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMultiplyScalar = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'multiplyScalar';\nvar dependencies = ['typed'];\nvar createMultiplyScalar = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Multiply two scalar values, `x * y`.\n * This function is meant for internal use: it is used by the public function\n * `multiply`\n *\n * This function does not support collections (Array or Matrix).\n *\n * @param {number | BigNumber | Fraction | Complex | Unit} x First value to multiply\n * @param {number | BigNumber | Fraction | Complex} y Second value to multiply\n * @return {number | BigNumber | Fraction | Complex | Unit} Multiplication of `x` and `y`\n * @private\n */\n return typed('multiplyScalar', {\n 'number, number': _index.multiplyNumber,\n 'Complex, Complex': function ComplexComplex(x, y) {\n return x.mul(y);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.times(y);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.mul(y);\n },\n 'number | Fraction | BigNumber | Complex, Unit': function numberFractionBigNumberComplexUnit(x, y) {\n var res = y.clone();\n res.value = res.value === null ? res._normalize(x) : this(res.value, x);\n return res;\n },\n 'Unit, number | Fraction | BigNumber | Complex': function UnitNumberFractionBigNumberComplex(x, y) {\n var res = x.clone();\n res.value = res.value === null ? res._normalize(y) : this(res.value, y);\n return res;\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n return x.multiply(y);\n }\n });\n});\nexports.createMultiplyScalar = createMultiplyScalar;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMultiply = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'multiply';\nvar dependencies = ['typed', 'matrix', 'addScalar', 'multiplyScalar', 'equalScalar', 'dot'];\nvar createMultiply = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n addScalar = _ref.addScalar,\n multiplyScalar = _ref.multiplyScalar,\n equalScalar = _ref.equalScalar,\n dot = _ref.dot;\n var algorithm11 = (0, _algorithm.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm14 = (0, _algorithm2.createAlgorithm14)({\n typed: typed\n });\n\n function _validateMatrixDimensions(size1, size2) {\n // check left operand dimensions\n switch (size1.length) {\n case 1:\n // check size2\n switch (size2.length) {\n case 1:\n // Vector x Vector\n if (size1[0] !== size2[0]) {\n // throw error\n throw new RangeError('Dimension mismatch in multiplication. Vectors must have the same length');\n }\n\n break;\n\n case 2:\n // Vector x Matrix\n if (size1[0] !== size2[0]) {\n // throw error\n throw new RangeError('Dimension mismatch in multiplication. Vector length (' + size1[0] + ') must match Matrix rows (' + size2[0] + ')');\n }\n\n break;\n\n default:\n throw new Error('Can only multiply a 1 or 2 dimensional matrix (Matrix B has ' + size2.length + ' dimensions)');\n }\n\n break;\n\n case 2:\n // check size2\n switch (size2.length) {\n case 1:\n // Matrix x Vector\n if (size1[1] !== size2[0]) {\n // throw error\n throw new RangeError('Dimension mismatch in multiplication. Matrix columns (' + size1[1] + ') must match Vector length (' + size2[0] + ')');\n }\n\n break;\n\n case 2:\n // Matrix x Matrix\n if (size1[1] !== size2[0]) {\n // throw error\n throw new RangeError('Dimension mismatch in multiplication. Matrix A columns (' + size1[1] + ') must match Matrix B rows (' + size2[0] + ')');\n }\n\n break;\n\n default:\n throw new Error('Can only multiply a 1 or 2 dimensional matrix (Matrix B has ' + size2.length + ' dimensions)');\n }\n\n break;\n\n default:\n throw new Error('Can only multiply a 1 or 2 dimensional matrix (Matrix A has ' + size1.length + ' dimensions)');\n }\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a Dense Vector (N)\n * @param {Matrix} b Dense Vector (N)\n *\n * @return {number} Scalar value\n */\n\n\n function _multiplyVectorVector(a, b, n) {\n // check empty vector\n if (n === 0) {\n throw new Error('Cannot multiply two empty vectors');\n }\n\n return dot(a, b);\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a Dense Vector (M)\n * @param {Matrix} b Matrix (MxN)\n *\n * @return {Matrix} Dense Vector (N)\n */\n\n\n function _multiplyVectorMatrix(a, b) {\n // process storage\n if (b.storage() !== 'dense') {\n throw new Error('Support for SparseMatrix not implemented');\n }\n\n return _multiplyVectorDenseMatrix(a, b);\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a Dense Vector (M)\n * @param {Matrix} b Dense Matrix (MxN)\n *\n * @return {Matrix} Dense Vector (N)\n */\n\n\n function _multiplyVectorDenseMatrix(a, b) {\n // a dense\n var adata = a._data;\n var asize = a._size;\n var adt = a._datatype; // b dense\n\n var bdata = b._data;\n var bsize = b._size;\n var bdt = b._datatype; // rows & columns\n\n var alength = asize[0];\n var bcolumns = bsize[1]; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n } // result\n\n\n var c = []; // loop matrix columns\n\n for (var j = 0; j < bcolumns; j++) {\n // sum (do not initialize it with zero)\n var sum = mf(adata[0], bdata[0][j]); // loop vector\n\n for (var i = 1; i < alength; i++) {\n // multiply & accumulate\n sum = af(sum, mf(adata[i], bdata[i][j]));\n }\n\n c[j] = sum;\n } // return matrix\n\n\n return a.createDenseMatrix({\n data: c,\n size: [bcolumns],\n datatype: dt\n });\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a Matrix (MxN)\n * @param {Matrix} b Dense Vector (N)\n *\n * @return {Matrix} Dense Vector (M)\n */\n\n\n var _multiplyMatrixVector = typed('_multiplyMatrixVector', {\n 'DenseMatrix, any': _multiplyDenseMatrixVector,\n 'SparseMatrix, any': _multiplySparseMatrixVector\n });\n /**\n * C = A * B\n *\n * @param {Matrix} a Matrix (MxN)\n * @param {Matrix} b Matrix (NxC)\n *\n * @return {Matrix} Matrix (MxC)\n */\n\n\n var _multiplyMatrixMatrix = typed('_multiplyMatrixMatrix', {\n 'DenseMatrix, DenseMatrix': _multiplyDenseMatrixDenseMatrix,\n 'DenseMatrix, SparseMatrix': _multiplyDenseMatrixSparseMatrix,\n 'SparseMatrix, DenseMatrix': _multiplySparseMatrixDenseMatrix,\n 'SparseMatrix, SparseMatrix': _multiplySparseMatrixSparseMatrix\n });\n /**\n * C = A * B\n *\n * @param {Matrix} a DenseMatrix (MxN)\n * @param {Matrix} b Dense Vector (N)\n *\n * @return {Matrix} Dense Vector (M)\n */\n\n\n function _multiplyDenseMatrixVector(a, b) {\n // a dense\n var adata = a._data;\n var asize = a._size;\n var adt = a._datatype; // b dense\n\n var bdata = b._data;\n var bdt = b._datatype; // rows & columns\n\n var arows = asize[0];\n var acolumns = asize[1]; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n } // result\n\n\n var c = []; // loop matrix a rows\n\n for (var i = 0; i < arows; i++) {\n // current row\n var row = adata[i]; // sum (do not initialize it with zero)\n\n var sum = mf(row[0], bdata[0]); // loop matrix a columns\n\n for (var j = 1; j < acolumns; j++) {\n // multiply & accumulate\n sum = af(sum, mf(row[j], bdata[j]));\n }\n\n c[i] = sum;\n } // return matrix\n\n\n return a.createDenseMatrix({\n data: c,\n size: [arows],\n datatype: dt\n });\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a DenseMatrix (MxN)\n * @param {Matrix} b DenseMatrix (NxC)\n *\n * @return {Matrix} DenseMatrix (MxC)\n */\n\n\n function _multiplyDenseMatrixDenseMatrix(a, b) {\n // a dense\n var adata = a._data;\n var asize = a._size;\n var adt = a._datatype; // b dense\n\n var bdata = b._data;\n var bsize = b._size;\n var bdt = b._datatype; // rows & columns\n\n var arows = asize[0];\n var acolumns = asize[1];\n var bcolumns = bsize[1]; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n } // result\n\n\n var c = []; // loop matrix a rows\n\n for (var i = 0; i < arows; i++) {\n // current row\n var row = adata[i]; // initialize row array\n\n c[i] = []; // loop matrix b columns\n\n for (var j = 0; j < bcolumns; j++) {\n // sum (avoid initializing sum to zero)\n var sum = mf(row[0], bdata[0][j]); // loop matrix a columns\n\n for (var x = 1; x < acolumns; x++) {\n // multiply & accumulate\n sum = af(sum, mf(row[x], bdata[x][j]));\n }\n\n c[i][j] = sum;\n }\n } // return matrix\n\n\n return a.createDenseMatrix({\n data: c,\n size: [arows, bcolumns],\n datatype: dt\n });\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a DenseMatrix (MxN)\n * @param {Matrix} b SparseMatrix (NxC)\n *\n * @return {Matrix} SparseMatrix (MxC)\n */\n\n\n function _multiplyDenseMatrixSparseMatrix(a, b) {\n // a dense\n var adata = a._data;\n var asize = a._size;\n var adt = a._datatype; // b sparse\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr;\n var bsize = b._size;\n var bdt = b._datatype; // validate b matrix\n\n if (!bvalues) {\n throw new Error('Cannot multiply Dense Matrix times Pattern only Matrix');\n } // rows & columns\n\n\n var arows = asize[0];\n var bcolumns = bsize[1]; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // equalScalar signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt);\n } // result\n\n\n var cvalues = [];\n var cindex = [];\n var cptr = []; // c matrix\n\n var c = b.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [arows, bcolumns],\n datatype: dt\n }); // loop b columns\n\n for (var jb = 0; jb < bcolumns; jb++) {\n // update ptr\n cptr[jb] = cindex.length; // indeces in column jb\n\n var kb0 = bptr[jb];\n var kb1 = bptr[jb + 1]; // do not process column jb if no data exists\n\n if (kb1 > kb0) {\n // last row mark processed\n var last = 0; // loop a rows\n\n for (var i = 0; i < arows; i++) {\n // column mark\n var mark = i + 1; // C[i, jb]\n\n var cij = void 0; // values in b column j\n\n for (var kb = kb0; kb < kb1; kb++) {\n // row\n var ib = bindex[kb]; // check value has been initialized\n\n if (last !== mark) {\n // first value in column jb\n cij = mf(adata[i][ib], bvalues[kb]); // update mark\n\n last = mark;\n } else {\n // accumulate value\n cij = af(cij, mf(adata[i][ib], bvalues[kb]));\n }\n } // check column has been processed and value != 0\n\n\n if (last === mark && !eq(cij, zero)) {\n // push row & value\n cindex.push(i);\n cvalues.push(cij);\n }\n }\n }\n } // update ptr\n\n\n cptr[bcolumns] = cindex.length; // return sparse matrix\n\n return c;\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a SparseMatrix (MxN)\n * @param {Matrix} b Dense Vector (N)\n *\n * @return {Matrix} SparseMatrix (M, 1)\n */\n\n\n function _multiplySparseMatrixVector(a, b) {\n // a sparse\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var adt = a._datatype; // validate a matrix\n\n if (!avalues) {\n throw new Error('Cannot multiply Pattern only Matrix times Dense Matrix');\n } // b dense\n\n\n var bdata = b._data;\n var bdt = b._datatype; // rows & columns\n\n var arows = a._size[0];\n var brows = b._size[0]; // result\n\n var cvalues = [];\n var cindex = [];\n var cptr = []; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // equalScalar signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt);\n } // workspace\n\n\n var x = []; // vector with marks indicating a value x[i] exists in a given column\n\n var w = []; // update ptr\n\n cptr[0] = 0; // rows in b\n\n for (var ib = 0; ib < brows; ib++) {\n // b[ib]\n var vbi = bdata[ib]; // check b[ib] != 0, avoid loops\n\n if (!eq(vbi, zero)) {\n // A values & index in ib column\n for (var ka0 = aptr[ib], ka1 = aptr[ib + 1], ka = ka0; ka < ka1; ka++) {\n // a row\n var ia = aindex[ka]; // check value exists in current j\n\n if (!w[ia]) {\n // ia is new entry in j\n w[ia] = true; // add i to pattern of C\n\n cindex.push(ia); // x(ia) = A\n\n x[ia] = mf(vbi, avalues[ka]);\n } else {\n // i exists in C already\n x[ia] = af(x[ia], mf(vbi, avalues[ka]));\n }\n }\n }\n } // copy values from x to column jb of c\n\n\n for (var p1 = cindex.length, p = 0; p < p1; p++) {\n // row\n var ic = cindex[p]; // copy value\n\n cvalues[p] = x[ic];\n } // update ptr\n\n\n cptr[1] = cindex.length; // return sparse matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [arows, 1],\n datatype: dt\n });\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a SparseMatrix (MxN)\n * @param {Matrix} b DenseMatrix (NxC)\n *\n * @return {Matrix} SparseMatrix (MxC)\n */\n\n\n function _multiplySparseMatrixDenseMatrix(a, b) {\n // a sparse\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var adt = a._datatype; // validate a matrix\n\n if (!avalues) {\n throw new Error('Cannot multiply Pattern only Matrix times Dense Matrix');\n } // b dense\n\n\n var bdata = b._data;\n var bdt = b._datatype; // rows & columns\n\n var arows = a._size[0];\n var brows = b._size[0];\n var bcolumns = b._size[1]; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // equalScalar signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt);\n } // result\n\n\n var cvalues = [];\n var cindex = [];\n var cptr = []; // c matrix\n\n var c = a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [arows, bcolumns],\n datatype: dt\n }); // workspace\n\n var x = []; // vector with marks indicating a value x[i] exists in a given column\n\n var w = []; // loop b columns\n\n for (var jb = 0; jb < bcolumns; jb++) {\n // update ptr\n cptr[jb] = cindex.length; // mark in workspace for current column\n\n var mark = jb + 1; // rows in jb\n\n for (var ib = 0; ib < brows; ib++) {\n // b[ib, jb]\n var vbij = bdata[ib][jb]; // check b[ib, jb] != 0, avoid loops\n\n if (!eq(vbij, zero)) {\n // A values & index in ib column\n for (var ka0 = aptr[ib], ka1 = aptr[ib + 1], ka = ka0; ka < ka1; ka++) {\n // a row\n var ia = aindex[ka]; // check value exists in current j\n\n if (w[ia] !== mark) {\n // ia is new entry in j\n w[ia] = mark; // add i to pattern of C\n\n cindex.push(ia); // x(ia) = A\n\n x[ia] = mf(vbij, avalues[ka]);\n } else {\n // i exists in C already\n x[ia] = af(x[ia], mf(vbij, avalues[ka]));\n }\n }\n }\n } // copy values from x to column jb of c\n\n\n for (var p0 = cptr[jb], p1 = cindex.length, p = p0; p < p1; p++) {\n // row\n var ic = cindex[p]; // copy value\n\n cvalues[p] = x[ic];\n }\n } // update ptr\n\n\n cptr[bcolumns] = cindex.length; // return sparse matrix\n\n return c;\n }\n /**\n * C = A * B\n *\n * @param {Matrix} a SparseMatrix (MxN)\n * @param {Matrix} b SparseMatrix (NxC)\n *\n * @return {Matrix} SparseMatrix (MxC)\n */\n\n\n function _multiplySparseMatrixSparseMatrix(a, b) {\n // a sparse\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var adt = a._datatype; // b sparse\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr;\n var bdt = b._datatype; // rows & columns\n\n var arows = a._size[0];\n var bcolumns = b._size[1]; // flag indicating both matrices (a & b) contain data\n\n var values = avalues && bvalues; // datatype\n\n var dt; // addScalar signature to use\n\n var af = addScalar; // multiplyScalar signature to use\n\n var mf = multiplyScalar; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n // datatype\n dt = adt; // find signatures that matches (dt, dt)\n\n af = typed.find(addScalar, [dt, dt]);\n mf = typed.find(multiplyScalar, [dt, dt]);\n } // result\n\n\n var cvalues = values ? [] : undefined;\n var cindex = [];\n var cptr = []; // c matrix\n\n var c = a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [arows, bcolumns],\n datatype: dt\n }); // workspace\n\n var x = values ? [] : undefined; // vector with marks indicating a value x[i] exists in a given column\n\n var w = []; // variables\n\n var ka, ka0, ka1, kb, kb0, kb1, ia, ib; // loop b columns\n\n for (var jb = 0; jb < bcolumns; jb++) {\n // update ptr\n cptr[jb] = cindex.length; // mark in workspace for current column\n\n var mark = jb + 1; // B values & index in j\n\n for (kb0 = bptr[jb], kb1 = bptr[jb + 1], kb = kb0; kb < kb1; kb++) {\n // b row\n ib = bindex[kb]; // check we need to process values\n\n if (values) {\n // loop values in a[:,ib]\n for (ka0 = aptr[ib], ka1 = aptr[ib + 1], ka = ka0; ka < ka1; ka++) {\n // row\n ia = aindex[ka]; // check value exists in current j\n\n if (w[ia] !== mark) {\n // ia is new entry in j\n w[ia] = mark; // add i to pattern of C\n\n cindex.push(ia); // x(ia) = A\n\n x[ia] = mf(bvalues[kb], avalues[ka]);\n } else {\n // i exists in C already\n x[ia] = af(x[ia], mf(bvalues[kb], avalues[ka]));\n }\n }\n } else {\n // loop values in a[:,ib]\n for (ka0 = aptr[ib], ka1 = aptr[ib + 1], ka = ka0; ka < ka1; ka++) {\n // row\n ia = aindex[ka]; // check value exists in current j\n\n if (w[ia] !== mark) {\n // ia is new entry in j\n w[ia] = mark; // add i to pattern of C\n\n cindex.push(ia);\n }\n }\n }\n } // check we need to process matrix values (pattern matrix)\n\n\n if (values) {\n // copy values from x to column jb of c\n for (var p0 = cptr[jb], p1 = cindex.length, p = p0; p < p1; p++) {\n // row\n var ic = cindex[p]; // copy value\n\n cvalues[p] = x[ic];\n }\n }\n } // update ptr\n\n\n cptr[bcolumns] = cindex.length; // return sparse matrix\n\n return c;\n }\n /**\n * Multiply two or more values, `x * y`.\n * For matrices, the matrix product is calculated.\n *\n * Syntax:\n *\n * math.multiply(x, y)\n * math.multiply(x, y, z, ...)\n *\n * Examples:\n *\n * math.multiply(4, 5.2) // returns number 20.8\n * math.multiply(2, 3, 4) // returns number 24\n *\n * const a = math.complex(2, 3)\n * const b = math.complex(4, 1)\n * math.multiply(a, b) // returns Complex 5 + 14i\n *\n * const c = [[1, 2], [4, 3]]\n * const d = [[1, 2, 3], [3, -4, 7]]\n * math.multiply(c, d) // returns Array [[7, -6, 17], [13, -4, 33]]\n *\n * const e = math.unit('2.1 km')\n * math.multiply(3, e) // returns Unit 6.3 km\n *\n * See also:\n *\n * divide, prod, cross, dot\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x First value to multiply\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} y Second value to multiply\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} Multiplication of `x` and `y`\n */\n\n\n return typed(name, (0, _object.extend)({\n // we extend the signatures of multiplyScalar with signatures dealing with matrices\n 'Array, Array': function ArrayArray(x, y) {\n // check dimensions\n _validateMatrixDimensions((0, _array.arraySize)(x), (0, _array.arraySize)(y)); // use dense matrix implementation\n\n\n var m = this(matrix(x), matrix(y)); // return array or scalar\n\n return (0, _is.isMatrix)(m) ? m.valueOf() : m;\n },\n 'Matrix, Matrix': function MatrixMatrix(x, y) {\n // dimensions\n var xsize = x.size();\n var ysize = y.size(); // check dimensions\n\n _validateMatrixDimensions(xsize, ysize); // process dimensions\n\n\n if (xsize.length === 1) {\n // process y dimensions\n if (ysize.length === 1) {\n // Vector * Vector\n return _multiplyVectorVector(x, y, xsize[0]);\n } // Vector * Matrix\n\n\n return _multiplyVectorMatrix(x, y);\n } // process y dimensions\n\n\n if (ysize.length === 1) {\n // Matrix * Vector\n return _multiplyMatrixVector(x, y);\n } // Matrix * Matrix\n\n\n return _multiplyMatrixMatrix(x, y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use Matrix * Matrix implementation\n return this(x, matrix(y));\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use Matrix * Matrix implementation\n return this(matrix(x, y.storage()), y);\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, multiplyScalar, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, multiplyScalar, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm11(y, x, multiplyScalar, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, multiplyScalar, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, multiplyScalar, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, multiplyScalar, true).valueOf();\n },\n 'any, any': multiplyScalar,\n 'any, any, ...any': function anyAnyAny(x, y, rest) {\n var result = this(x, y);\n\n for (var i = 0; i < rest.length; i++) {\n result = this(result, rest[i]);\n }\n\n return result;\n }\n }, multiplyScalar.signatures));\n});\nexports.createMultiply = createMultiply;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNthRootNumber = exports.createNthRoot = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm06.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'nthRoot';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'BigNumber'];\nvar createNthRoot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n _BigNumber = _ref.BigNumber;\n var algorithm01 = (0, _algorithm.createAlgorithm01)({\n typed: typed\n });\n var algorithm02 = (0, _algorithm2.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm06 = (0, _algorithm3.createAlgorithm06)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm4.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm6.createAlgorithm14)({\n typed: typed\n });\n /**\n * Calculate the nth root of a value.\n * The principal nth root of a positive real number A, is the positive real\n * solution of the equation\n *\n * x^root = A\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.nthRoot(a)\n * math.nthRoot(a, root)\n *\n * Examples:\n *\n * math.nthRoot(9, 2) // returns 3, as 3^2 == 9\n * math.sqrt(9) // returns 3, as 3^2 == 9\n * math.nthRoot(64, 3) // returns 4, as 4^3 == 64\n *\n * See also:\n *\n * sqrt, pow\n *\n * @param {number | BigNumber | Array | Matrix | Complex} a\n * Value for which to calculate the nth root\n * @param {number | BigNumber} [root=2] The root.\n * @return {number | Complex | Array | Matrix} Returns the nth root of `a`\n */\n\n var complexErr = '' + 'Complex number not supported in function nthRoot. ' + 'Use nthRoots instead.';\n return typed(name, {\n number: _index.nthRootNumber,\n 'number, number': _index.nthRootNumber,\n BigNumber: function BigNumber(x) {\n return _bigNthRoot(x, new _BigNumber(2));\n },\n Complex: function Complex(x) {\n throw new Error(complexErr);\n },\n 'Complex, number': function ComplexNumber(x, y) {\n throw new Error(complexErr);\n },\n 'BigNumber, BigNumber': _bigNthRoot,\n 'Array | Matrix': function ArrayMatrix(x) {\n return this(x, 2);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n // density must be one (no zeros in matrix)\n if (y.density() === 1) {\n // sparse + sparse\n return algorithm06(x, y, this);\n } else {\n // throw exception\n throw new Error('Root must be non-zero');\n }\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n // density must be one (no zeros in matrix)\n if (y.density() === 1) {\n // dense + sparse\n return algorithm01(x, y, this, false);\n } else {\n // throw exception\n throw new Error('Root must be non-zero');\n }\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n // density must be one (no zeros in matrix)\n if (y.density() === 1) {\n // sparse - scalar\n return algorithm11(y, x, this, true);\n } else {\n // throw exception\n throw new Error('Root must be non-zero');\n }\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return this(matrix(x), y).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y)).valueOf();\n }\n });\n /**\n * Calculate the nth root of a for BigNumbers, solve x^root == a\n * https://rosettacode.org/wiki/Nth_root#JavaScript\n * @param {BigNumber} a\n * @param {BigNumber} root\n * @private\n */\n\n function _bigNthRoot(a, root) {\n var precision = _BigNumber.precision;\n\n var Big = _BigNumber.clone({\n precision: precision + 2\n });\n\n var zero = new _BigNumber(0);\n var one = new Big(1);\n var inv = root.isNegative();\n\n if (inv) {\n root = root.neg();\n }\n\n if (root.isZero()) {\n throw new Error('Root must be non-zero');\n }\n\n if (a.isNegative() && !root.abs().mod(2).equals(1)) {\n throw new Error('Root must be odd when a is negative.');\n } // edge cases zero and infinity\n\n\n if (a.isZero()) {\n return inv ? new Big(Infinity) : 0;\n }\n\n if (!a.isFinite()) {\n return inv ? zero : a;\n }\n\n var x = a.abs().pow(one.div(root)); // If a < 0, we require that root is an odd integer,\n // so (-1) ^ (1/root) = -1\n\n x = a.isNeg() ? x.neg() : x;\n return new _BigNumber((inv ? one.div(x) : x).toPrecision(precision));\n }\n});\nexports.createNthRoot = createNthRoot;\nvar createNthRootNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed'], function (_ref2) {\n var typed = _ref2.typed;\n return typed(name, {\n number: _index.nthRootNumber,\n 'number, number': _index.nthRootNumber\n });\n});\nexports.createNthRootNumber = createNthRootNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSign = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'sign';\nvar dependencies = ['typed', 'BigNumber', 'Fraction', 'complex'];\nvar createSign = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber,\n complex = _ref.complex,\n _Fraction = _ref.Fraction;\n\n /**\n * Compute the sign of a value. The sign of a value x is:\n *\n * - 1 when x > 0\n * - -1 when x < 0\n * - 0 when x == 0\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.sign(x)\n *\n * Examples:\n *\n * math.sign(3.5) // returns 1\n * math.sign(-4.2) // returns -1\n * math.sign(0) // returns 0\n *\n * math.sign([3, 5, -2, 0, 2]) // returns [1, 1, -1, 0, 1]\n *\n * See also:\n *\n * abs\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} x\n * The number for which to determine the sign\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix | Unit}e\n * The sign of `x`\n */\n return typed(name, {\n number: _index.signNumber,\n Complex: function Complex(x) {\n return x.im === 0 ? complex((0, _index.signNumber)(x.re)) : x.sign();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(x.cmp(0));\n },\n Fraction: function Fraction(x) {\n return new _Fraction(x.s, 1);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since sign(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n Unit: function Unit(x) {\n if (!x._isDerived() && x.units[0].unit.offset !== 0) {\n throw new TypeError('sign is ambiguous for units with offset');\n }\n\n return this(x.value);\n }\n });\n});\nexports.createSign = createSign;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSqrt = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'sqrt';\nvar dependencies = ['config', 'typed', 'Complex'];\nvar createSqrt = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n typed = _ref.typed,\n Complex = _ref.Complex;\n\n /**\n * Calculate the square root of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.sqrt(x)\n *\n * Examples:\n *\n * math.sqrt(25) // returns 5\n * math.square(5) // returns 25\n * math.sqrt(-4) // returns Complex 2i\n *\n * See also:\n *\n * square, multiply, cube, cbrt, sqrtm\n *\n * @param {number | BigNumber | Complex | Array | Matrix | Unit} x\n * Value for which to calculate the square root.\n * @return {number | BigNumber | Complex | Array | Matrix | Unit}\n * Returns the square root of `x`\n */\n return typed('sqrt', {\n number: _sqrtNumber,\n Complex: function Complex(x) {\n return x.sqrt();\n },\n BigNumber: function BigNumber(x) {\n if (!x.isNegative() || config.predictable) {\n return x.sqrt();\n } else {\n // negative value -> downgrade to number to do complex value computation\n return _sqrtNumber(x.toNumber());\n }\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since sqrt(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n Unit: function Unit(x) {\n // Someday will work for complex units when they are implemented\n return x.pow(0.5);\n }\n });\n /**\n * Calculate sqrt for a number\n * @param {number} x\n * @returns {number | Complex} Returns the square root of x\n * @private\n */\n\n function _sqrtNumber(x) {\n if (isNaN(x)) {\n return NaN;\n } else if (x >= 0 || config.predictable) {\n return Math.sqrt(x);\n } else {\n return new Complex(x, 0).sqrt();\n }\n }\n});\nexports.createSqrt = createSqrt;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSquare = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'square';\nvar dependencies = ['typed'];\nvar createSquare = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the square of a value, `x * x`.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.square(x)\n *\n * Examples:\n *\n * math.square(2) // returns number 4\n * math.square(3) // returns number 9\n * math.pow(3, 2) // returns number 9\n * math.multiply(3, 3) // returns number 9\n *\n * math.square([1, 2, 3, 4]) // returns Array [1, 4, 9, 16]\n *\n * See also:\n *\n * multiply, cube, sqrt, pow\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} x\n * Number for which to calculate the square\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix | Unit}\n * Squared value\n */\n return typed(name, {\n number: _index.squareNumber,\n Complex: function Complex(x) {\n return x.mul(x);\n },\n BigNumber: function BigNumber(x) {\n return x.times(x);\n },\n Fraction: function Fraction(x) {\n return x.mul(x);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since square(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n Unit: function Unit(x) {\n return x.pow(2);\n }\n });\n});\nexports.createSquare = createSquare;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSubtract = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../error/DimensionError.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm05.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'subtract';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'addScalar', 'unaryMinus', 'DenseMatrix'];\nvar createSubtract = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n addScalar = _ref.addScalar,\n unaryMinus = _ref.unaryMinus,\n DenseMatrix = _ref.DenseMatrix;\n // TODO: split function subtract in two: subtract and subtractScalar\n var algorithm01 = (0, _algorithm.createAlgorithm01)({\n typed: typed\n });\n var algorithm03 = (0, _algorithm2.createAlgorithm03)({\n typed: typed\n });\n var algorithm05 = (0, _algorithm3.createAlgorithm05)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm4.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm6.createAlgorithm14)({\n typed: typed\n });\n /**\n * Subtract two values, `x - y`.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.subtract(x, y)\n *\n * Examples:\n *\n * math.subtract(5.3, 2) // returns number 3.3\n *\n * const a = math.complex(2, 3)\n * const b = math.complex(4, 1)\n * math.subtract(a, b) // returns Complex -2 + 2i\n *\n * math.subtract([5, 7, 4], 4) // returns Array [1, 3, 0]\n *\n * const c = math.unit('2.1 km')\n * const d = math.unit('500m')\n * math.subtract(c, d) // returns Unit 1.6 km\n *\n * See also:\n *\n * add\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x\n * Initial value\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} y\n * Value to subtract from `x`\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix}\n * Subtraction of `x` and `y`\n */\n\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return x - y;\n },\n 'Complex, Complex': function ComplexComplex(x, y) {\n return x.sub(y);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.minus(y);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.sub(y);\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (x.value === null) {\n throw new Error('Parameter x contains a unit with undefined value');\n }\n\n if (y.value === null) {\n throw new Error('Parameter y contains a unit with undefined value');\n }\n\n if (!x.equalBase(y)) {\n throw new Error('Units do not match');\n }\n\n var res = x.clone();\n res.value = this(res.value, y.value);\n res.fixPrefix = false;\n return res;\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n checkEqualDimensions(x, y);\n return algorithm05(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n checkEqualDimensions(x, y);\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n checkEqualDimensions(x, y);\n return algorithm01(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n checkEqualDimensions(x, y);\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm10(x, unaryMinus(y), addScalar);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm10(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\n/**\n * Check whether matrix x and y have the same number of dimensions.\n * Throws a DimensionError when dimensions are not equal\n * @param {Matrix} x\n * @param {Matrix} y\n */\n\nexports.createSubtract = createSubtract;\n\nfunction checkEqualDimensions(x, y) {\n var xsize = x.size();\n var ysize = y.size();\n\n if (xsize.length !== ysize.length) {\n throw new _DimensionError.DimensionError(xsize.length, ysize.length);\n }\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createXgcd = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'xgcd';\nvar dependencies = ['typed', 'config', 'matrix', 'BigNumber'];\nvar createXgcd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the extended greatest common divisor for two values.\n * See https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm.\n *\n * Syntax:\n *\n * math.xgcd(a, b)\n *\n * Examples:\n *\n * math.xgcd(8, 12) // returns [4, -1, 1]\n * math.gcd(8, 12) // returns 4\n * math.xgcd(36163, 21199) // returns [1247, -7, 12]\n *\n * See also:\n *\n * gcd, lcm\n *\n * @param {number | BigNumber} a An integer number\n * @param {number | BigNumber} b An integer number\n * @return {Array} Returns an array containing 3 integers `[div, m, n]`\n * where `div = gcd(a, b)` and `a*m + b*n = div`\n */\n return typed(name, {\n 'number, number': function numberNumber(a, b) {\n var res = (0, _index.xgcdNumber)(a, b);\n return config.matrix === 'Array' ? res : matrix(res);\n },\n 'BigNumber, BigNumber': _xgcdBigNumber // TODO: implement support for Fraction\n\n });\n /**\n * Calculate xgcd for two BigNumbers\n * @param {BigNumber} a\n * @param {BigNumber} b\n * @return {BigNumber[]} result\n * @private\n */\n\n function _xgcdBigNumber(a, b) {\n // source: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm\n var // used to swap two variables\n t;\n var // quotient\n q;\n var // remainder\n r;\n var zero = new BigNumber(0);\n var one = new BigNumber(1);\n var x = zero;\n var lastx = one;\n var y = one;\n var lasty = zero;\n\n if (!a.isInt() || !b.isInt()) {\n throw new Error('Parameters in function xgcd must be integer numbers');\n }\n\n while (!b.isZero()) {\n q = a.div(b).floor();\n r = a.mod(b);\n t = x;\n x = lastx.minus(q.times(x));\n lastx = t;\n t = y;\n y = lasty.minus(q.times(y));\n lasty = t;\n a = b;\n b = r;\n }\n\n var res;\n\n if (a.lt(zero)) {\n res = [a.neg(), lastx.neg(), lasty.neg()];\n } else {\n res = [a, !a.isZero() ? lastx : 0, lasty];\n }\n\n return config.matrix === 'Array' ? res : matrix(res);\n }\n});\nexports.createXgcd = createXgcd;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createInvmod = void 0;\n\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'invmod';\nvar dependencies = ['typed', 'config', 'BigNumber', 'xgcd', 'equal', 'smaller', 'mod', 'add', 'isInteger'];\nvar createInvmod = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n BigNumber = _ref.BigNumber,\n xgcd = _ref.xgcd,\n equal = _ref.equal,\n smaller = _ref.smaller,\n mod = _ref.mod,\n add = _ref.add,\n isInteger = _ref.isInteger;\n\n /**\n * Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation `ax ≣ 1 (mod b)`\n * See https://en.wikipedia.org/wiki/Modular_multiplicative_inverse.\n *\n * Syntax:\n *\n * math.invmod(a, b)\n *\n * Examples:\n *\n * math.invmod(8, 12) // returns NaN\n * math.invmod(7, 13) // return 2\n * math.invmod(15151, 15122) // returns 10429\n *\n * See also:\n *\n * gcd, xgcd\n *\n * @param {number | BigNumber} a An integer number\n * @param {number | BigNumber} b An integer number\n * @return {number | BigNumber } Returns an integer number\n * where `invmod(a,b)*a ≣ 1 (mod b)`\n */\n return typed(name, {\n 'number, number': invmod,\n 'BigNumber, BigNumber': invmod\n });\n\n function invmod(a, b) {\n if (!isInteger(a) || !isInteger(b)) throw new Error('Parameters in function invmod must be integer numbers');\n a = mod(a, b);\n if (equal(b, 0)) throw new Error('Divisor must be non zero');\n var res = xgcd(a, b);\n res = res.valueOf();\n\n var _res = res,\n _res2 = (0, _slicedToArray2.default)(_res, 2),\n gcd = _res2[0],\n inv = _res2[1];\n\n if (!equal(gcd, BigNumber(1))) return NaN;\n inv = mod(inv, b);\n if (smaller(inv, BigNumber(0))) inv = add(inv, b);\n return inv;\n }\n});\nexports.createInvmod = createInvmod;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm09 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm09';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm09 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix A and invokes the callback function f(Aij, Bij).\n * Callback function invoked NZA times, number of nonzero elements in A.\n *\n *\n * ┌ f(Aij, Bij) ; A(i,j) !== 0\n * C(i,j) = ┤\n * └ 0 ; otherwise\n *\n *\n * @param {Matrix} a The SparseMatrix instance (A)\n * @param {Matrix} b The SparseMatrix instance (B)\n * @param {Function} callback The f(Aij,Bij) operation to invoke\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97620294\n */\n return function algorithm09(a, b, callback) {\n // sparse matrix arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size;\n var adt = a._datatype; // sparse matrix arrays\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr;\n var bsize = b._size;\n var bdt = b._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cvalues = avalues && bvalues ? [] : undefined;\n var cindex = [];\n var cptr = []; // workspaces\n\n var x = cvalues ? [] : undefined; // marks indicating we have a value in x for a given column\n\n var w = []; // vars\n\n var i, j, k, k0, k1; // loop columns\n\n for (j = 0; j < columns; j++) {\n // update cptr\n cptr[j] = cindex.length; // column mark\n\n var mark = j + 1; // check we need to process values\n\n if (x) {\n // loop B(:,j)\n for (k0 = bptr[j], k1 = bptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = bindex[k]; // update workspace\n\n w[i] = mark;\n x[i] = bvalues[k];\n }\n } // loop A(:,j)\n\n\n for (k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = aindex[k]; // check we need to process values\n\n if (x) {\n // b value @ i,j\n var vb = w[i] === mark ? x[i] : zero; // invoke f\n\n var vc = cf(avalues[k], vb); // check zero value\n\n if (!eq(vc, zero)) {\n // push index\n cindex.push(i); // push value\n\n cvalues.push(vc);\n }\n } else {\n // push index\n cindex.push(i);\n }\n }\n } // update cptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm09 = createAlgorithm09;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDotMultiply = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm09.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'dotMultiply';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'multiplyScalar'];\nvar createDotMultiply = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n multiplyScalar = _ref.multiplyScalar;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm09 = (0, _algorithm2.createAlgorithm09)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm3.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Multiply two matrices element wise. The function accepts both matrices and\n * scalar values.\n *\n * Syntax:\n *\n * math.dotMultiply(x, y)\n *\n * Examples:\n *\n * math.dotMultiply(2, 4) // returns 8\n *\n * a = [[9, 5], [6, 1]]\n * b = [[3, 2], [5, 2]]\n *\n * math.dotMultiply(a, b) // returns [[27, 10], [30, 2]]\n * math.multiply(a, b) // returns [[52, 28], [23, 14]]\n *\n * See also:\n *\n * multiply, divide, dotDivide\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x Left hand value\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} y Right hand value\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} Multiplication of `x` and `y`\n */\n\n return typed(name, {\n 'any, any': multiplyScalar,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm09(x, y, multiplyScalar, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, multiplyScalar, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm02(x, y, multiplyScalar, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, multiplyScalar);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, multiplyScalar, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, multiplyScalar, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm11(y, x, multiplyScalar, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, multiplyScalar, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, multiplyScalar, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, multiplyScalar, true).valueOf();\n }\n });\n});\nexports.createDotMultiply = createDotMultiply;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitAndBigNumber = bitAndBigNumber;\nexports.bitNotBigNumber = bitNotBigNumber;\nexports.bitOrBigNumber = bitOrBigNumber;\nexports.bitXor = bitXor;\nexports.bitwise = bitwise;\nexports.leftShiftBigNumber = leftShiftBigNumber;\nexports.rightArithShiftBigNumber = rightArithShiftBigNumber;\n\n/**\n * Bitwise and for Bignumbers\n *\n * Special Cases:\n * N & n = N\n * n & 0 = 0\n * n & -1 = n\n * n & n = n\n * I & I = I\n * -I & -I = -I\n * I & -I = 0\n * I & n = n\n * I & -n = I\n * -I & n = 0\n * -I & -n = -I\n *\n * @param {BigNumber} x\n * @param {BigNumber} y\n * @return {BigNumber} Result of `x` & `y`, is fully precise\n * @private\n */\nfunction bitAndBigNumber(x, y) {\n if (x.isFinite() && !x.isInteger() || y.isFinite() && !y.isInteger()) {\n throw new Error('Integers expected in function bitAnd');\n }\n\n var BigNumber = x.constructor;\n\n if (x.isNaN() || y.isNaN()) {\n return new BigNumber(NaN);\n }\n\n if (x.isZero() || y.eq(-1) || x.eq(y)) {\n return x;\n }\n\n if (y.isZero() || x.eq(-1)) {\n return y;\n }\n\n if (!x.isFinite() || !y.isFinite()) {\n if (!x.isFinite() && !y.isFinite()) {\n if (x.isNegative() === y.isNegative()) {\n return x;\n }\n\n return new BigNumber(0);\n }\n\n if (!x.isFinite()) {\n if (y.isNegative()) {\n return x;\n }\n\n if (x.isNegative()) {\n return new BigNumber(0);\n }\n\n return y;\n }\n\n if (!y.isFinite()) {\n if (x.isNegative()) {\n return y;\n }\n\n if (y.isNegative()) {\n return new BigNumber(0);\n }\n\n return x;\n }\n }\n\n return bitwise(x, y, function (a, b) {\n return a & b;\n });\n}\n/**\n * Bitwise not\n * @param {BigNumber} x\n * @return {BigNumber} Result of ~`x`, fully precise\n *\n */\n\n\nfunction bitNotBigNumber(x) {\n if (x.isFinite() && !x.isInteger()) {\n throw new Error('Integer expected in function bitNot');\n }\n\n var BigNumber = x.constructor;\n var prevPrec = BigNumber.precision;\n BigNumber.config({\n precision: 1E9\n });\n var result = x.plus(new BigNumber(1));\n result.s = -result.s || null;\n BigNumber.config({\n precision: prevPrec\n });\n return result;\n}\n/**\n * Bitwise OR for BigNumbers\n *\n * Special Cases:\n * N | n = N\n * n | 0 = n\n * n | -1 = -1\n * n | n = n\n * I | I = I\n * -I | -I = -I\n * I | -n = -1\n * I | -I = -1\n * I | n = I\n * -I | n = -I\n * -I | -n = -n\n *\n * @param {BigNumber} x\n * @param {BigNumber} y\n * @return {BigNumber} Result of `x` | `y`, fully precise\n */\n\n\nfunction bitOrBigNumber(x, y) {\n if (x.isFinite() && !x.isInteger() || y.isFinite() && !y.isInteger()) {\n throw new Error('Integers expected in function bitOr');\n }\n\n var BigNumber = x.constructor;\n\n if (x.isNaN() || y.isNaN()) {\n return new BigNumber(NaN);\n }\n\n var negOne = new BigNumber(-1);\n\n if (x.isZero() || y.eq(negOne) || x.eq(y)) {\n return y;\n }\n\n if (y.isZero() || x.eq(negOne)) {\n return x;\n }\n\n if (!x.isFinite() || !y.isFinite()) {\n if (!x.isFinite() && !x.isNegative() && y.isNegative() || x.isNegative() && !y.isNegative() && !y.isFinite()) {\n return negOne;\n }\n\n if (x.isNegative() && y.isNegative()) {\n return x.isFinite() ? x : y;\n }\n\n return x.isFinite() ? y : x;\n }\n\n return bitwise(x, y, function (a, b) {\n return a | b;\n });\n}\n/**\n * Applies bitwise function to numbers\n * @param {BigNumber} x\n * @param {BigNumber} y\n * @param {function (a, b)} func\n * @return {BigNumber}\n */\n\n\nfunction bitwise(x, y, func) {\n var BigNumber = x.constructor;\n var xBits, yBits;\n var xSign = +(x.s < 0);\n var ySign = +(y.s < 0);\n\n if (xSign) {\n xBits = decCoefficientToBinaryString(bitNotBigNumber(x));\n\n for (var i = 0; i < xBits.length; ++i) {\n xBits[i] ^= 1;\n }\n } else {\n xBits = decCoefficientToBinaryString(x);\n }\n\n if (ySign) {\n yBits = decCoefficientToBinaryString(bitNotBigNumber(y));\n\n for (var _i = 0; _i < yBits.length; ++_i) {\n yBits[_i] ^= 1;\n }\n } else {\n yBits = decCoefficientToBinaryString(y);\n }\n\n var minBits, maxBits, minSign;\n\n if (xBits.length <= yBits.length) {\n minBits = xBits;\n maxBits = yBits;\n minSign = xSign;\n } else {\n minBits = yBits;\n maxBits = xBits;\n minSign = ySign;\n }\n\n var shortLen = minBits.length;\n var longLen = maxBits.length;\n var expFuncVal = func(xSign, ySign) ^ 1;\n var outVal = new BigNumber(expFuncVal ^ 1);\n var twoPower = new BigNumber(1);\n var two = new BigNumber(2);\n var prevPrec = BigNumber.precision;\n BigNumber.config({\n precision: 1E9\n });\n\n while (shortLen > 0) {\n if (func(minBits[--shortLen], maxBits[--longLen]) === expFuncVal) {\n outVal = outVal.plus(twoPower);\n }\n\n twoPower = twoPower.times(two);\n }\n\n while (longLen > 0) {\n if (func(minSign, maxBits[--longLen]) === expFuncVal) {\n outVal = outVal.plus(twoPower);\n }\n\n twoPower = twoPower.times(two);\n }\n\n BigNumber.config({\n precision: prevPrec\n });\n\n if (expFuncVal === 0) {\n outVal.s = -outVal.s;\n }\n\n return outVal;\n}\n/* Extracted from decimal.js, and edited to specialize. */\n\n\nfunction decCoefficientToBinaryString(x) {\n // Convert to string\n var a = x.d; // array with digits\n\n var r = a[0] + '';\n\n for (var i = 1; i < a.length; ++i) {\n var s = a[i] + '';\n\n for (var z = 7 - s.length; z--;) {\n s = '0' + s;\n }\n\n r += s;\n }\n\n var j = r.length;\n\n while (r.charAt(j) === '0') {\n j--;\n }\n\n var xe = x.e;\n var str = r.slice(0, j + 1 || 1);\n var strL = str.length;\n\n if (xe > 0) {\n if (++xe > strL) {\n // Append zeros.\n xe -= strL;\n\n while (xe--) {\n str += '0';\n }\n } else if (xe < strL) {\n str = str.slice(0, xe) + '.' + str.slice(xe);\n }\n } // Convert from base 10 (decimal) to base 2\n\n\n var arr = [0];\n\n for (var _i2 = 0; _i2 < str.length;) {\n var arrL = arr.length;\n\n while (arrL--) {\n arr[arrL] *= 10;\n }\n\n arr[0] += parseInt(str.charAt(_i2++)); // convert to int\n\n for (var _j = 0; _j < arr.length; ++_j) {\n if (arr[_j] > 1) {\n if (arr[_j + 1] === null || arr[_j + 1] === undefined) {\n arr[_j + 1] = 0;\n }\n\n arr[_j + 1] += arr[_j] >> 1;\n arr[_j] &= 1;\n }\n }\n }\n\n return arr.reverse();\n}\n/**\n * Bitwise XOR for BigNumbers\n *\n * Special Cases:\n * N ^ n = N\n * n ^ 0 = n\n * n ^ n = 0\n * n ^ -1 = ~n\n * I ^ n = I\n * I ^ -n = -I\n * I ^ -I = -1\n * -I ^ n = -I\n * -I ^ -n = I\n *\n * @param {BigNumber} x\n * @param {BigNumber} y\n * @return {BigNumber} Result of `x` ^ `y`, fully precise\n *\n */\n\n\nfunction bitXor(x, y) {\n if (x.isFinite() && !x.isInteger() || y.isFinite() && !y.isInteger()) {\n throw new Error('Integers expected in function bitXor');\n }\n\n var BigNumber = x.constructor;\n\n if (x.isNaN() || y.isNaN()) {\n return new BigNumber(NaN);\n }\n\n if (x.isZero()) {\n return y;\n }\n\n if (y.isZero()) {\n return x;\n }\n\n if (x.eq(y)) {\n return new BigNumber(0);\n }\n\n var negOne = new BigNumber(-1);\n\n if (x.eq(negOne)) {\n return bitNotBigNumber(y);\n }\n\n if (y.eq(negOne)) {\n return bitNotBigNumber(x);\n }\n\n if (!x.isFinite() || !y.isFinite()) {\n if (!x.isFinite() && !y.isFinite()) {\n return negOne;\n }\n\n return new BigNumber(x.isNegative() === y.isNegative() ? Infinity : -Infinity);\n }\n\n return bitwise(x, y, function (a, b) {\n return a ^ b;\n });\n}\n/**\n * Bitwise left shift\n *\n * Special Cases:\n * n << -n = N\n * n << N = N\n * N << n = N\n * n << 0 = n\n * 0 << n = 0\n * I << I = N\n * I << n = I\n * n << I = I\n *\n * @param {BigNumber} x\n * @param {BigNumber} y\n * @return {BigNumber} Result of `x` << `y`\n *\n */\n\n\nfunction leftShiftBigNumber(x, y) {\n if (x.isFinite() && !x.isInteger() || y.isFinite() && !y.isInteger()) {\n throw new Error('Integers expected in function leftShift');\n }\n\n var BigNumber = x.constructor;\n\n if (x.isNaN() || y.isNaN() || y.isNegative() && !y.isZero()) {\n return new BigNumber(NaN);\n }\n\n if (x.isZero() || y.isZero()) {\n return x;\n }\n\n if (!x.isFinite() && !y.isFinite()) {\n return new BigNumber(NaN);\n } // Math.pow(2, y) is fully precise for y < 55, and fast\n\n\n if (y.lt(55)) {\n return x.times(Math.pow(2, y.toNumber()) + '');\n }\n\n return x.times(new BigNumber(2).pow(y));\n}\n/*\n * Special Cases:\n * n >> -n = N\n * n >> N = N\n * N >> n = N\n * I >> I = N\n * n >> 0 = n\n * I >> n = I\n * -I >> n = -I\n * -I >> I = -I\n * n >> I = I\n * -n >> I = -1\n * 0 >> n = 0\n *\n * @param {BigNumber} value\n * @param {BigNumber} value\n * @return {BigNumber} Result of `x` >> `y`\n *\n */\n\n\nfunction rightArithShiftBigNumber(x, y) {\n if (x.isFinite() && !x.isInteger() || y.isFinite() && !y.isInteger()) {\n throw new Error('Integers expected in function rightArithShift');\n }\n\n var BigNumber = x.constructor;\n\n if (x.isNaN() || y.isNaN() || y.isNegative() && !y.isZero()) {\n return new BigNumber(NaN);\n }\n\n if (x.isZero() || y.isZero()) {\n return x;\n }\n\n if (!y.isFinite()) {\n if (x.isNegative()) {\n return new BigNumber(-1);\n }\n\n if (!x.isFinite()) {\n return new BigNumber(NaN);\n }\n\n return new BigNumber(0);\n } // Math.pow(2, y) is fully precise for y < 55, and fast\n\n\n if (y.lt(55)) {\n return x.div(Math.pow(2, y.toNumber()) + '').floor();\n }\n\n return x.div(new BigNumber(2).pow(y)).floor();\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBitAnd = void 0;\n\nvar _bitwise = require(\"../../utils/bignumber/bitwise.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm06.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'bitAnd';\nvar dependencies = ['typed', 'matrix', 'equalScalar'];\nvar createBitAnd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm06 = (0, _algorithm5.createAlgorithm06)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm2.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm3.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Bitwise AND two values, `x & y`.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.bitAnd(x, y)\n *\n * Examples:\n *\n * math.bitAnd(53, 131) // returns number 1\n *\n * math.bitAnd([1, 12, 31], 42) // returns Array [0, 8, 10]\n *\n * See also:\n *\n * bitNot, bitOr, bitXor, leftShift, rightArithShift, rightLogShift\n *\n * @param {number | BigNumber | Array | Matrix} x First value to and\n * @param {number | BigNumber | Array | Matrix} y Second value to and\n * @return {number | BigNumber | Array | Matrix} AND of `x` and `y`\n */\n\n return typed(name, {\n 'number, number': _index.bitAndNumber,\n 'BigNumber, BigNumber': _bitwise.bitAndBigNumber,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm06(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm02(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm11(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createBitAnd = createBitAnd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBitNot = void 0;\n\nvar _bitwise = require(\"../../utils/bignumber/bitwise.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'bitNot';\nvar dependencies = ['typed'];\nvar createBitNot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Bitwise NOT value, `~x`.\n * For matrices, the function is evaluated element wise.\n * For units, the function is evaluated on the best prefix base.\n *\n * Syntax:\n *\n * math.bitNot(x)\n *\n * Examples:\n *\n * math.bitNot(1) // returns number -2\n *\n * math.bitNot([2, -3, 4]) // returns Array [-3, 2, 5]\n *\n * See also:\n *\n * bitAnd, bitOr, bitXor, leftShift, rightArithShift, rightLogShift\n *\n * @param {number | BigNumber | Array | Matrix} x Value to not\n * @return {number | BigNumber | Array | Matrix} NOT of `x`\n */\n return typed(name, {\n number: _index.bitNotNumber,\n BigNumber: _bitwise.bitNotBigNumber,\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createBitNot = createBitNot;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBitOr = void 0;\n\nvar _bitwise = require(\"../../utils/bignumber/bitwise.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm04.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'bitOr';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'DenseMatrix'];\nvar createBitOr = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm01 = (0, _algorithm5.createAlgorithm01)({\n typed: typed\n });\n var algorithm04 = (0, _algorithm4.createAlgorithm04)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm3.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm2.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm.createAlgorithm14)({\n typed: typed\n });\n /**\n * Bitwise OR two values, `x | y`.\n * For matrices, the function is evaluated element wise.\n * For units, the function is evaluated on the lowest print base.\n *\n * Syntax:\n *\n * math.bitOr(x, y)\n *\n * Examples:\n *\n * math.bitOr(1, 2) // returns number 3\n *\n * math.bitOr([1, 2, 3], 4) // returns Array [5, 6, 7]\n *\n * See also:\n *\n * bitAnd, bitNot, bitXor, leftShift, rightArithShift, rightLogShift\n *\n * @param {number | BigNumber | Array | Matrix} x First value to or\n * @param {number | BigNumber | Array | Matrix} y Second value to or\n * @return {number | BigNumber | Array | Matrix} OR of `x` and `y`\n */\n\n return typed(name, {\n 'number, number': _index.bitOrNumber,\n 'BigNumber, BigNumber': _bitwise.bitOrBigNumber,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm04(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm01(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm01(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm10(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm10(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createBitOr = createBitOr;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm07 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm07';\nvar dependencies = ['typed', 'DenseMatrix'];\nvar createAlgorithm07 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Iterates over SparseMatrix A and SparseMatrix B items (zero and nonzero) and invokes the callback function f(Aij, Bij).\n * Callback function invoked MxN times.\n *\n * C(i,j) = f(Aij, Bij)\n *\n * @param {Matrix} a The SparseMatrix instance (A)\n * @param {Matrix} b The SparseMatrix instance (B)\n * @param {Function} callback The f(Aij,Bij) operation to invoke\n *\n * @return {Matrix} DenseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97620294\n */\n return function algorithm07(a, b, callback) {\n // sparse matrix arrays\n var asize = a._size;\n var adt = a._datatype; // sparse matrix arrays\n\n var bsize = b._size;\n var bdt = b._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // vars\n\n\n var i, j; // result arrays\n\n var cdata = []; // initialize c\n\n for (i = 0; i < rows; i++) {\n cdata[i] = [];\n } // workspaces\n\n\n var xa = [];\n var xb = []; // marks indicating we have a value in x for a given column\n\n var wa = [];\n var wb = []; // loop columns\n\n for (j = 0; j < columns; j++) {\n // columns mark\n var mark = j + 1; // scatter the values of A(:,j) into workspace\n\n _scatter(a, j, wa, xa, mark); // scatter the values of B(:,j) into workspace\n\n\n _scatter(b, j, wb, xb, mark); // loop rows\n\n\n for (i = 0; i < rows; i++) {\n // matrix values @ i,j\n var va = wa[i] === mark ? xa[i] : zero;\n var vb = wb[i] === mark ? xb[i] : zero; // invoke callback\n\n cdata[i][j] = cf(va, vb);\n }\n } // return dense matrix\n\n\n return new DenseMatrix({\n data: cdata,\n size: [rows, columns],\n datatype: dt\n });\n };\n\n function _scatter(m, j, w, x, mark) {\n // a arrays\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // loop values in column j\n\n for (var k = ptr[j], k1 = ptr[j + 1]; k < k1; k++) {\n // row\n var i = index[k]; // update workspace\n\n w[i] = mark;\n x[i] = values[k];\n }\n }\n});\nexports.createAlgorithm07 = createAlgorithm07;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBitXor = void 0;\n\nvar _bitwise = require(\"../../utils/bignumber/bitwise.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'bitXor';\nvar dependencies = ['typed', 'matrix', 'DenseMatrix'];\nvar createBitXor = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Bitwise XOR two values, `x ^ y`.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.bitXor(x, y)\n *\n * Examples:\n *\n * math.bitXor(1, 2) // returns number 3\n *\n * math.bitXor([2, 3, 4], 4) // returns Array [6, 7, 0]\n *\n * See also:\n *\n * bitAnd, bitNot, bitOr, leftShift, rightArithShift, rightLogShift\n *\n * @param {number | BigNumber | Array | Matrix} x First value to xor\n * @param {number | BigNumber | Array | Matrix} y Second value to xor\n * @return {number | BigNumber | Array | Matrix} XOR of `x` and `y`\n */\n\n return typed(name, {\n 'number, number': _index.bitXorNumber,\n 'BigNumber, BigNumber': _bitwise.bitXor,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createBitXor = createBitXor;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createArg = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'arg';\nvar dependencies = ['typed'];\nvar createArg = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the argument of a complex value.\n * For a complex number `a + bi`, the argument is computed as `atan2(b, a)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.arg(x)\n *\n * Examples:\n *\n * const a = math.complex(2, 2)\n * math.arg(a) / math.pi // returns number 0.25\n *\n * const b = math.complex('2 + 3i')\n * math.arg(b) // returns number 0.982793723247329\n * math.atan2(3, 2) // returns number 0.982793723247329\n *\n * See also:\n *\n * re, im, conj, abs\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * A complex number or array with complex numbers\n * @return {number | BigNumber | Array | Matrix} The argument of x\n */\n return typed(name, {\n number: function number(x) {\n return Math.atan2(0, x);\n },\n BigNumber: function BigNumber(x) {\n return x.constructor.atan2(0, x);\n },\n Complex: function Complex(x) {\n return x.arg();\n },\n // TODO: implement BigNumber support for function arg\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createArg = createArg;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createConj = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'conj';\nvar dependencies = ['typed'];\nvar createConj = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the complex conjugate of a complex value.\n * If `x = a+bi`, the complex conjugate of `x` is `a - bi`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.conj(x)\n *\n * Examples:\n *\n * math.conj(math.complex('2 + 3i')) // returns Complex 2 - 3i\n * math.conj(math.complex('2 - 3i')) // returns Complex 2 + 3i\n * math.conj(math.complex('-5.2i')) // returns Complex 5.2i\n *\n * See also:\n *\n * re, im, arg, abs\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * A complex number or array with complex numbers\n * @return {number | BigNumber | Complex | Array | Matrix}\n * The complex conjugate of x\n */\n return typed(name, {\n number: function number(x) {\n return x;\n },\n BigNumber: function BigNumber(x) {\n return x;\n },\n Complex: function Complex(x) {\n return x.conjugate();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createConj = createConj;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIm = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'im';\nvar dependencies = ['typed'];\nvar createIm = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Get the imaginary part of a complex number.\n * For a complex number `a + bi`, the function returns `b`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.im(x)\n *\n * Examples:\n *\n * const a = math.complex(2, 3)\n * math.re(a) // returns number 2\n * math.im(a) // returns number 3\n *\n * math.re(math.complex('-5.2i')) // returns number -5.2\n * math.re(math.complex(2.4)) // returns number 0\n *\n * See also:\n *\n * re, conj, abs, arg\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * A complex number or array with complex numbers\n * @return {number | BigNumber | Array | Matrix} The imaginary part of x\n */\n return typed(name, {\n number: function number(x) {\n return 0;\n },\n BigNumber: function BigNumber(x) {\n return x.mul(0);\n },\n Fraction: function Fraction(x) {\n return x.mul(0);\n },\n Complex: function Complex(x) {\n return x.im;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIm = createIm;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRe = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 're';\nvar dependencies = ['typed'];\nvar createRe = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Get the real part of a complex number.\n * For a complex number `a + bi`, the function returns `a`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.re(x)\n *\n * Examples:\n *\n * const a = math.complex(2, 3)\n * math.re(a) // returns number 2\n * math.im(a) // returns number 3\n *\n * math.re(math.complex('-5.2i')) // returns number 0\n * math.re(math.complex(2.4)) // returns number 2.4\n *\n * See also:\n *\n * im, conj, abs, arg\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * A complex number or array with complex numbers\n * @return {number | BigNumber | Array | Matrix} The real part of x\n */\n return typed(name, {\n number: function number(x) {\n return x;\n },\n BigNumber: function BigNumber(x) {\n return x;\n },\n Fraction: function Fraction(x) {\n return x;\n },\n Complex: function Complex(x) {\n return x.re;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createRe = createRe;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNot = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'not';\nvar dependencies = ['typed'];\nvar createNot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Logical `not`. Flips boolean value of a given parameter.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.not(x)\n *\n * Examples:\n *\n * math.not(2) // returns false\n * math.not(0) // returns true\n * math.not(true) // returns false\n *\n * a = [2, -7, 0]\n * math.not(a) // returns [false, false, true]\n *\n * See also:\n *\n * and, or, xor\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x First value to check\n * @return {boolean | Array | Matrix}\n * Returns true when input is a zero or empty value.\n */\n return typed(name, {\n number: _index.notNumber,\n Complex: function Complex(x) {\n return x.re === 0 && x.im === 0;\n },\n BigNumber: function BigNumber(x) {\n return x.isZero() || x.isNaN();\n },\n Unit: function Unit(x) {\n return x.value !== null ? this(x.value) : true;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createNot = createNot;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createOr = void 0;\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm05.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'or';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'DenseMatrix'];\nvar createOr = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm05 = (0, _algorithm5.createAlgorithm05)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm2.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm3.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Logical `or`. Test if at least one value is defined with a nonzero/nonempty value.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.or(x, y)\n *\n * Examples:\n *\n * math.or(2, 4) // returns true\n *\n * a = [2, 5, 0]\n * b = [0, 22, 0]\n * c = 0\n *\n * math.or(a, b) // returns [true, true, false]\n * math.or(b, c) // returns [false, true, false]\n *\n * See also:\n *\n * and, not, xor\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x First value to check\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} y Second value to check\n * @return {boolean | Array | Matrix}\n * Returns true when one of the inputs is defined with a nonzero/nonempty value.\n */\n\n return typed(name, {\n 'number, number': _index.orNumber,\n 'Complex, Complex': function ComplexComplex(x, y) {\n return x.re !== 0 || x.im !== 0 || y.re !== 0 || y.im !== 0;\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return !x.isZero() && !x.isNaN() || !y.isZero() && !y.isNaN();\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n return this(x.value || 0, y.value || 0);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm05(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createOr = createOr;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createXor = void 0;\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'xor';\nvar dependencies = ['typed', 'matrix', 'DenseMatrix'];\nvar createXor = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Logical `xor`. Test whether one and only one value is defined with a nonzero/nonempty value.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.xor(x, y)\n *\n * Examples:\n *\n * math.xor(2, 4) // returns false\n *\n * a = [2, 0, 0]\n * b = [2, 7, 0]\n * c = 0\n *\n * math.xor(a, b) // returns [false, true, false]\n * math.xor(a, c) // returns [true, false, false]\n *\n * See also:\n *\n * and, not, or\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x First value to check\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} y Second value to check\n * @return {boolean | Array | Matrix}\n * Returns true when one and only one input is defined with a nonzero/nonempty value.\n */\n\n return typed(name, {\n 'number, number': _index.xorNumber,\n 'Complex, Complex': function ComplexComplex(x, y) {\n return (x.re !== 0 || x.im !== 0) !== (y.re !== 0 || y.im !== 0);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return (!x.isZero() && !x.isNaN()) !== (!y.isZero() && !y.isNaN());\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n return this(x.value || 0, y.value || 0);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createXor = createXor;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createConcat = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _IndexError = require(\"../../error/IndexError.js\");\n\nvar _DimensionError = require(\"../../error/DimensionError.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'concat';\nvar dependencies = ['typed', 'matrix', 'isInteger'];\nvar createConcat = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n isInteger = _ref.isInteger;\n\n /**\n * Concatenate two or more matrices.\n *\n * Syntax:\n *\n * math.concat(A, B, C, ...)\n * math.concat(A, B, C, ..., dim)\n *\n * Where:\n *\n * - `dim: number` is a zero-based dimension over which to concatenate the matrices.\n * By default the last dimension of the matrices.\n *\n * Examples:\n *\n * const A = [[1, 2], [5, 6]]\n * const B = [[3, 4], [7, 8]]\n *\n * math.concat(A, B) // returns [[1, 2, 3, 4], [5, 6, 7, 8]]\n * math.concat(A, B, 0) // returns [[1, 2], [5, 6], [3, 4], [7, 8]]\n * math.concat('hello', ' ', 'world') // returns 'hello world'\n *\n * See also:\n *\n * size, squeeze, subset, transpose\n *\n * @param {... Array | Matrix} args Two or more matrices\n * @return {Array | Matrix} Concatenated matrix\n */\n return typed(name, {\n // TODO: change signature to '...Array | Matrix, dim?' when supported\n '...Array | Matrix | number | BigNumber': function ArrayMatrixNumberBigNumber(args) {\n var i;\n var len = args.length;\n var dim = -1; // zero-based dimension\n\n var prevDim;\n var asMatrix = false;\n var matrices = []; // contains multi dimensional arrays\n\n for (i = 0; i < len; i++) {\n var arg = args[i]; // test whether we need to return a Matrix (if not we return an Array)\n\n if ((0, _is.isMatrix)(arg)) {\n asMatrix = true;\n }\n\n if ((0, _is.isNumber)(arg) || (0, _is.isBigNumber)(arg)) {\n if (i !== len - 1) {\n throw new Error('Dimension must be specified as last argument');\n } // last argument contains the dimension on which to concatenate\n\n\n prevDim = dim;\n dim = arg.valueOf(); // change BigNumber to number\n\n if (!isInteger(dim)) {\n throw new TypeError('Integer number expected for dimension');\n }\n\n if (dim < 0 || i > 0 && dim > prevDim) {\n // TODO: would be more clear when throwing a DimensionError here\n throw new _IndexError.IndexError(dim, prevDim + 1);\n }\n } else {\n // this is a matrix or array\n var m = (0, _object.clone)(arg).valueOf();\n var size = (0, _array.arraySize)(m);\n matrices[i] = m;\n prevDim = dim;\n dim = size.length - 1; // verify whether each of the matrices has the same number of dimensions\n\n if (i > 0 && dim !== prevDim) {\n throw new _DimensionError.DimensionError(prevDim + 1, dim + 1);\n }\n }\n }\n\n if (matrices.length === 0) {\n throw new SyntaxError('At least one matrix expected');\n }\n\n var res = matrices.shift();\n\n while (matrices.length) {\n res = _concat(res, matrices.shift(), dim, 0);\n }\n\n return asMatrix ? matrix(res) : res;\n },\n '...string': function string(args) {\n return args.join('');\n }\n });\n});\n/**\n * Recursively concatenate two matrices.\n * The contents of the matrices is not cloned.\n * @param {Array} a Multi dimensional array\n * @param {Array} b Multi dimensional array\n * @param {number} concatDim The dimension on which to concatenate (zero-based)\n * @param {number} dim The current dim (zero-based)\n * @return {Array} c The concatenated matrix\n * @private\n */\n\nexports.createConcat = createConcat;\n\nfunction _concat(a, b, concatDim, dim) {\n if (dim < concatDim) {\n // recurse into next dimension\n if (a.length !== b.length) {\n throw new _DimensionError.DimensionError(a.length, b.length);\n }\n\n var c = [];\n\n for (var i = 0; i < a.length; i++) {\n c[i] = _concat(a[i], b[i], concatDim, dim + 1);\n }\n\n return c;\n } else {\n // concatenate this dimension\n return a.concat(b);\n }\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createColumn = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar name = 'column';\nvar dependencies = ['typed', 'Index', 'matrix', 'range'];\nvar createColumn = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Index = _ref.Index,\n matrix = _ref.matrix,\n range = _ref.range;\n\n /**\n * Return a column from a Matrix.\n *\n * Syntax:\n *\n * math.column(value, index)\n *\n * Example:\n *\n * // get a column\n * const d = [[1, 2], [3, 4]]\n * math.column(d, 1) // returns [[2], [4]]\n *\n * See also:\n *\n * row\n *\n * @param {Array | Matrix } value An array or matrix\n * @param {number} column The index of the column\n * @return {Array | Matrix} The retrieved column\n */\n return typed(name, {\n 'Matrix, number': _column,\n 'Array, number': function ArrayNumber(value, column) {\n return _column(matrix((0, _object.clone)(value)), column).valueOf();\n }\n });\n /**\n * Retrieve a column of a matrix\n * @param {Matrix } value A matrix\n * @param {number} column The index of the column\n * @return {Matrix} The retrieved column\n */\n\n function _column(value, column) {\n // check dimensions\n if (value.size().length !== 2) {\n throw new Error('Only two dimensional matrix is supported');\n }\n\n (0, _array.validateIndex)(column, value.size()[1]);\n var rowRange = range(0, value.size()[0]);\n var index = new Index(rowRange, column);\n return value.subset(index);\n }\n});\nexports.createColumn = createColumn;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCount = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'count';\nvar dependencies = ['typed', 'size', 'prod'];\nvar createCount = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n prod = _ref.prod;\n\n /**\n * Count the number of elements of a matrix, array or string.\n *\n * Syntax:\n *\n * math.count(x)\n *\n * Examples:\n *\n * math.count('hello world') // returns 11\n * const A = [[1, 2, 3], [4, 5, 6]]\n * math.count(A) // returns 6\n * math.count(math.range(1,6)) // returns 5\n *\n * See also:\n *\n * size\n *\n * @param {string | Array | Matrix} x A matrix or string\n * @return {number} An integer with the elements in `x`.\n */\n return typed(name, {\n string: function string(x) {\n return x.length;\n },\n 'Matrix | Array': function MatrixArray(x) {\n return prod(size(x));\n }\n });\n});\nexports.createCount = createCount;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCross = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'cross';\nvar dependencies = ['typed', 'matrix', 'subtract', 'multiply'];\nvar createCross = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n subtract = _ref.subtract,\n multiply = _ref.multiply;\n\n /**\n * Calculate the cross product for two vectors in three dimensional space.\n * The cross product of `A = [a1, a2, a3]` and `B = [b1, b2, b3]` is defined\n * as:\n *\n * cross(A, B) = [\n * a2 * b3 - a3 * b2,\n * a3 * b1 - a1 * b3,\n * a1 * b2 - a2 * b1\n * ]\n *\n * If one of the input vectors has a dimension greater than 1, the output\n * vector will be a 1x3 (2-dimensional) matrix.\n *\n * Syntax:\n *\n * math.cross(x, y)\n *\n * Examples:\n *\n * math.cross([1, 1, 0], [0, 1, 1]) // Returns [1, -1, 1]\n * math.cross([3, -3, 1], [4, 9, 2]) // Returns [-15, -2, 39]\n * math.cross([2, 3, 4], [5, 6, 7]) // Returns [-3, 6, -3]\n * math.cross([[1, 2, 3]], [[4], [5], [6]]) // Returns [[-3, 6, -3]]\n *\n * See also:\n *\n * dot, multiply\n *\n * @param {Array | Matrix} x First vector\n * @param {Array | Matrix} y Second vector\n * @return {Array | Matrix} Returns the cross product of `x` and `y`\n */\n return typed(name, {\n 'Matrix, Matrix': function MatrixMatrix(x, y) {\n return matrix(_cross(x.toArray(), y.toArray()));\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n return matrix(_cross(x.toArray(), y));\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n return matrix(_cross(x, y.toArray()));\n },\n 'Array, Array': _cross\n });\n /**\n * Calculate the cross product for two arrays\n * @param {Array} x First vector\n * @param {Array} y Second vector\n * @returns {Array} Returns the cross product of x and y\n * @private\n */\n\n function _cross(x, y) {\n var highestDimension = Math.max((0, _array.arraySize)(x).length, (0, _array.arraySize)(y).length);\n x = (0, _array.squeeze)(x);\n y = (0, _array.squeeze)(y);\n var xSize = (0, _array.arraySize)(x);\n var ySize = (0, _array.arraySize)(y);\n\n if (xSize.length !== 1 || ySize.length !== 1 || xSize[0] !== 3 || ySize[0] !== 3) {\n throw new RangeError('Vectors with length 3 expected ' + '(Size A = [' + xSize.join(', ') + '], B = [' + ySize.join(', ') + '])');\n }\n\n var product = [subtract(multiply(x[1], y[2]), multiply(x[2], y[1])), subtract(multiply(x[2], y[0]), multiply(x[0], y[2])), subtract(multiply(x[0], y[1]), multiply(x[1], y[0]))];\n\n if (highestDimension > 1) {\n return [product];\n } else {\n return product;\n }\n }\n});\nexports.createCross = createCross;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDiag = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'diag';\nvar dependencies = ['typed', 'matrix', 'DenseMatrix', 'SparseMatrix'];\nvar createDiag = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix,\n SparseMatrix = _ref.SparseMatrix;\n\n /**\n * Create a diagonal matrix or retrieve the diagonal of a matrix\n *\n * When `x` is a vector, a matrix with vector `x` on the diagonal will be returned.\n * When `x` is a two dimensional matrix, the matrixes `k`th diagonal will be returned as vector.\n * When k is positive, the values are placed on the super diagonal.\n * When k is negative, the values are placed on the sub diagonal.\n *\n * Syntax:\n *\n * math.diag(X)\n * math.diag(X, format)\n * math.diag(X, k)\n * math.diag(X, k, format)\n *\n * Examples:\n *\n * // create a diagonal matrix\n * math.diag([1, 2, 3]) // returns [[1, 0, 0], [0, 2, 0], [0, 0, 3]]\n * math.diag([1, 2, 3], 1) // returns [[0, 1, 0, 0], [0, 0, 2, 0], [0, 0, 0, 3]]\n * math.diag([1, 2, 3], -1) // returns [[0, 0, 0], [1, 0, 0], [0, 2, 0], [0, 0, 3]]\n *\n * // retrieve the diagonal from a matrix\n * const a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\n * math.diag(a) // returns [1, 5, 9]\n *\n * See also:\n *\n * ones, zeros, identity\n *\n * @param {Matrix | Array} x A two dimensional matrix or a vector\n * @param {number | BigNumber} [k=0] The diagonal where the vector will be filled\n * in or retrieved.\n * @param {string} [format='dense'] The matrix storage format.\n *\n * @returns {Matrix | Array} Diagonal matrix from input vector, or diagonal from input matrix.\n */\n return typed(name, {\n // FIXME: simplify this huge amount of signatures as soon as typed-function supports optional arguments\n Array: function Array(x) {\n return _diag(x, 0, (0, _array.arraySize)(x), null);\n },\n 'Array, number': function ArrayNumber(x, k) {\n return _diag(x, k, (0, _array.arraySize)(x), null);\n },\n 'Array, BigNumber': function ArrayBigNumber(x, k) {\n return _diag(x, k.toNumber(), (0, _array.arraySize)(x), null);\n },\n 'Array, string': function ArrayString(x, format) {\n return _diag(x, 0, (0, _array.arraySize)(x), format);\n },\n 'Array, number, string': function ArrayNumberString(x, k, format) {\n return _diag(x, k, (0, _array.arraySize)(x), format);\n },\n 'Array, BigNumber, string': function ArrayBigNumberString(x, k, format) {\n return _diag(x, k.toNumber(), (0, _array.arraySize)(x), format);\n },\n Matrix: function Matrix(x) {\n return _diag(x, 0, x.size(), x.storage());\n },\n 'Matrix, number': function MatrixNumber(x, k) {\n return _diag(x, k, x.size(), x.storage());\n },\n 'Matrix, BigNumber': function MatrixBigNumber(x, k) {\n return _diag(x, k.toNumber(), x.size(), x.storage());\n },\n 'Matrix, string': function MatrixString(x, format) {\n return _diag(x, 0, x.size(), format);\n },\n 'Matrix, number, string': function MatrixNumberString(x, k, format) {\n return _diag(x, k, x.size(), format);\n },\n 'Matrix, BigNumber, string': function MatrixBigNumberString(x, k, format) {\n return _diag(x, k.toNumber(), x.size(), format);\n }\n });\n /**\n * Creeate diagonal matrix from a vector or vice versa\n * @param {Array | Matrix} x\n * @param {number} k\n * @param {string} format Storage format for matrix. If null,\n * an Array is returned\n * @returns {Array | Matrix}\n * @private\n */\n\n function _diag(x, k, size, format) {\n if (!(0, _number.isInteger)(k)) {\n throw new TypeError('Second parameter in function diag must be an integer');\n }\n\n var kSuper = k > 0 ? k : 0;\n var kSub = k < 0 ? -k : 0; // check dimensions\n\n switch (size.length) {\n case 1:\n return _createDiagonalMatrix(x, k, format, size[0], kSub, kSuper);\n\n case 2:\n return _getDiagonal(x, k, format, size, kSub, kSuper);\n }\n\n throw new RangeError('Matrix for function diag must be 2 dimensional');\n }\n\n function _createDiagonalMatrix(x, k, format, l, kSub, kSuper) {\n // matrix size\n var ms = [l + kSub, l + kSuper];\n\n if (format && format !== 'sparse' && format !== 'dense') {\n throw new TypeError(\"Unknown matrix type \".concat(format, \"\\\"\"));\n } // create diagonal matrix\n\n\n var m = format === 'sparse' ? SparseMatrix.diagonal(ms, x, k) : DenseMatrix.diagonal(ms, x, k); // check we need to return a matrix\n\n return format !== null ? m : m.valueOf();\n }\n\n function _getDiagonal(x, k, format, s, kSub, kSuper) {\n // check x is a Matrix\n if ((0, _is.isMatrix)(x)) {\n // get diagonal matrix\n var dm = x.diagonal(k); // check we need to return a matrix\n\n if (format !== null) {\n // check we need to change matrix format\n if (format !== dm.storage()) {\n return matrix(dm, format);\n }\n\n return dm;\n }\n\n return dm.valueOf();\n } // vector size\n\n\n var n = Math.min(s[0] - kSub, s[1] - kSuper); // diagonal values\n\n var vector = []; // loop diagonal\n\n for (var i = 0; i < n; i++) {\n vector[i] = x[i + kSub][i + kSuper];\n } // check we need to return a matrix\n\n\n return format !== null ? matrix(vector) : vector;\n }\n});\nexports.createDiag = createDiag;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lruQueue = lruQueue;\n\n// (c) 2018, Mariusz Nowak\n// SPDX-License-Identifier: ISC\n// Derived from https://github.com/medikoo/lru-queue\nfunction lruQueue(limit) {\n var size = 0;\n var base = 1;\n var queue = Object.create(null);\n var map = Object.create(null);\n var index = 0;\n\n var del = function del(id) {\n var oldIndex = map[id];\n if (!oldIndex) return;\n delete queue[oldIndex];\n delete map[id];\n --size;\n if (base !== oldIndex) return;\n\n if (!size) {\n index = 0;\n base = 1;\n return;\n }\n\n while (!hasOwnProperty.call(queue, ++base)) {\n continue;\n }\n };\n\n limit = Math.abs(limit);\n return {\n hit: function hit(id) {\n var oldIndex = map[id];\n var nuIndex = ++index;\n queue[nuIndex] = id;\n map[id] = nuIndex;\n\n if (!oldIndex) {\n ++size;\n if (size <= limit) return undefined;\n id = queue[base];\n del(id);\n return id;\n }\n\n delete queue[oldIndex];\n if (base !== oldIndex) return undefined;\n\n while (!hasOwnProperty.call(queue, ++base)) {\n continue;\n }\n\n return undefined;\n },\n delete: del,\n clear: function clear() {\n size = index = 0;\n base = 1;\n queue = Object.create(null);\n map = Object.create(null);\n }\n };\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.maxArgumentCount = maxArgumentCount;\nexports.memoize = memoize;\nexports.memoizeCompare = memoizeCompare;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _lruQueue = require(\"./lruQueue.js\");\n\n// function utils\n\n/**\n * Memoize a given function by caching the computed result.\n * The cache of a memoized function can be cleared by deleting the `cache`\n * property of the function.\n *\n * @param {function} fn The function to be memoized.\n * Must be a pure function.\n * @param {Object} [options]\n * @param {function(args: Array): string} [options.hasher]\n * A custom hash builder. Is JSON.stringify by default.\n * @param {number | undefined} [options.limit]\n * Maximum number of values that may be cached. Undefined indicates\n * unlimited (default)\n * @return {function} Returns the memoized function\n */\nfunction memoize(fn) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n hasher = _ref.hasher,\n limit = _ref.limit;\n\n limit = limit == null ? Number.POSITIVE_INFINITY : limit;\n hasher = hasher == null ? JSON.stringify : hasher;\n return function memoize() {\n if ((0, _typeof2.default)(memoize.cache) !== 'object') {\n memoize.cache = {\n values: new Map(),\n lru: (0, _lruQueue.lruQueue)(limit || Number.POSITIVE_INFINITY)\n };\n }\n\n var args = [];\n\n for (var i = 0; i < arguments.length; i++) {\n args[i] = arguments[i];\n }\n\n var hash = hasher(args);\n\n if (memoize.cache.values.has(hash)) {\n memoize.cache.lru.hit(hash);\n return memoize.cache.values.get(hash);\n }\n\n var newVal = fn.apply(fn, args);\n memoize.cache.values.set(hash, newVal);\n memoize.cache.values.delete(memoize.cache.lru.hit(hash));\n return newVal;\n };\n}\n/**\n * Memoize a given function by caching all results and the arguments,\n * and comparing against the arguments of previous results before\n * executing again.\n * This is less performant than `memoize` which calculates a hash,\n * which is very fast to compare. Use `memoizeCompare` only when it is\n * not possible to create a unique serializable hash from the function\n * arguments.\n * The isEqual function must compare two sets of arguments\n * and return true when equal (can be a deep equality check for example).\n * @param {function} fn\n * @param {function(a: *, b: *) : boolean} isEqual\n * @returns {function}\n */\n\n\nfunction memoizeCompare(fn, isEqual) {\n var memoize = function memoize() {\n var args = [];\n\n for (var i = 0; i < arguments.length; i++) {\n args[i] = arguments[i];\n }\n\n for (var c = 0; c < memoize.cache.length; c++) {\n var cached = memoize.cache[c];\n\n if (isEqual(args, cached.args)) {\n // TODO: move this cache entry to the top so recently used entries move up?\n return cached.res;\n }\n }\n\n var res = fn.apply(fn, args);\n memoize.cache.unshift({\n args: args,\n res: res\n });\n return res;\n };\n\n memoize.cache = [];\n return memoize;\n}\n/**\n * Find the maximum number of arguments expected by a typed function.\n * @param {function} fn A typed function\n * @return {number} Returns the maximum number of expected arguments.\n * Returns -1 when no signatures where found on the function.\n */\n\n\nfunction maxArgumentCount(fn) {\n return Object.keys(fn.signatures || {}).reduce(function (args, signature) {\n var count = (signature.match(/,/g) || []).length + 1;\n return Math.max(args, count);\n }, -1);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFilter = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'filter';\nvar dependencies = ['typed'];\nvar createFilter = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Filter the items in an array or one dimensional matrix.\n *\n * Syntax:\n *\n * math.filter(x, test)\n *\n * Examples:\n *\n * function isPositive (x) {\n * return x > 0\n * }\n * math.filter([6, -2, -1, 4, 3], isPositive) // returns [6, 4, 3]\n *\n * math.filter([\"23\", \"foo\", \"100\", \"55\", \"bar\"], /[0-9]+/) // returns [\"23\", \"100\", \"55\"]\n *\n * See also:\n *\n * forEach, map, sort\n *\n * @param {Matrix | Array} x A one dimensional matrix or array to filter\n * @param {Function | RegExp} test\n * A function or regular expression to test items.\n * All entries for which `test` returns true are returned.\n * When `test` is a function, it is invoked with three parameters:\n * the value of the element, the index of the element, and the\n * matrix/array being traversed. The function must return a boolean.\n * @return {Matrix | Array} Returns the filtered matrix.\n */\n return typed('filter', {\n 'Array, function': _filterCallback,\n 'Matrix, function': function MatrixFunction(x, test) {\n return x.create(_filterCallback(x.toArray(), test));\n },\n 'Array, RegExp': _array.filterRegExp,\n 'Matrix, RegExp': function MatrixRegExp(x, test) {\n return x.create((0, _array.filterRegExp)(x.toArray(), test));\n }\n });\n});\n/**\n * Filter values in a callback given a callback function\n * @param {Array} x\n * @param {Function} callback\n * @return {Array} Returns the filtered array\n * @private\n */\n\nexports.createFilter = createFilter;\n\nfunction _filterCallback(x, callback) {\n // figure out what number of arguments the callback function expects\n var args = (0, _function.maxArgumentCount)(callback);\n return (0, _array.filter)(x, function (value, index, array) {\n // invoke the callback function with the right number of arguments\n if (args === 1) {\n return callback(value);\n } else if (args === 2) {\n return callback(value, [index]);\n } else {\n // 3 or -1\n return callback(value, [index], array);\n }\n });\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFlatten = void 0;\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'flatten';\nvar dependencies = ['typed', 'matrix'];\nvar createFlatten = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n\n /**\n * Flatten a multi dimensional matrix into a single dimensional matrix.\n * It is guaranteed to always return a clone of the argument.\n *\n * Syntax:\n *\n * math.flatten(x)\n *\n * Examples:\n *\n * math.flatten([[1,2], [3,4]]) // returns [1, 2, 3, 4]\n *\n * See also:\n *\n * concat, resize, size, squeeze\n *\n * @param {Matrix | Array} x Matrix to be flattened\n * @return {Matrix | Array} Returns the flattened matrix\n */\n return typed(name, {\n Array: function Array(x) {\n return (0, _array.flatten)((0, _object.clone)(x));\n },\n Matrix: function Matrix(x) {\n var flat = (0, _array.flatten)((0, _object.clone)(x.toArray())); // TODO: return the same matrix type as x\n\n return matrix(flat);\n }\n });\n});\nexports.createFlatten = createFlatten;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createForEach = void 0;\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'forEach';\nvar dependencies = ['typed'];\nvar createForEach = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Iterate over all elements of a matrix/array, and executes the given callback function.\n *\n * Syntax:\n *\n * math.forEach(x, callback)\n *\n * Examples:\n *\n * math.forEach([1, 2, 3], function(value) {\n * console.log(value)\n * })\n * // outputs 1, 2, 3\n *\n * See also:\n *\n * filter, map, sort\n *\n * @param {Matrix | Array} x The matrix to iterate on.\n * @param {Function} callback The callback function is invoked with three\n * parameters: the value of the element, the index\n * of the element, and the Matrix/array being traversed.\n */\n return typed(name, {\n 'Array, function': _forEach,\n 'Matrix, function': function MatrixFunction(x, callback) {\n return x.forEach(callback);\n }\n });\n});\n/**\n * forEach for a multi dimensional array\n * @param {Array} array\n * @param {Function} callback\n * @private\n */\n\nexports.createForEach = createForEach;\n\nfunction _forEach(array, callback) {\n // figure out what number of arguments the callback function expects\n var args = (0, _function.maxArgumentCount)(callback);\n\n var recurse = function recurse(value, index) {\n if (Array.isArray(value)) {\n (0, _array.forEach)(value, function (child, i) {\n // we create a copy of the index array and append the new index value\n recurse(child, index.concat(i));\n });\n } else {\n // invoke the callback function with the right number of arguments\n if (args === 1) {\n callback(value);\n } else if (args === 2) {\n callback(value, index);\n } else {\n // 3 or -1\n callback(value, index, array);\n }\n }\n };\n\n recurse(array, []);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createGetMatrixDataType = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'getMatrixDataType';\nvar dependencies = ['typed'];\nvar createGetMatrixDataType = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Find the data type of all elements in a matrix or array,\n * for example 'number' if all items are a number and 'Complex' if all values\n * are complex numbers.\n * If a matrix contains more than one data type, it will return 'mixed'.\n *\n * Syntax:\n *\n * math.getMatrixDataType(x)\n *\n * Examples:\n *\n * const x = [ [1, 2, 3], [4, 5, 6] ]\n * const mixedX = [ [1, true], [2, 3] ]\n * const fractionX = [ [math.fraction(1, 3)], [math.fraction(1, 3] ]\n * const unitX = [ [math.unit('5cm')], [math.unit('5cm')] ]\n * const bigNumberX = [ [math.bignumber(1)], [math.bignumber(0)] ]\n * const sparse = math.sparse(x)\n * const dense = math.matrix(x)\n * math.getMatrixDataType(x) // returns 'number'\n * math.getMatrixDataType(sparse) // returns 'number'\n * math.getMatrixDataType(dense) // returns 'number'\n * math.getMatrixDataType(mixedX) // returns 'mixed'\n * math.getMatrixDataType(fractionX) // returns 'Fraction'\n * math.getMatrixDataType(unitX) // returns 'Unit'\n * math.getMatrixDataType(bigNumberX) // return 'BigNumber'\n *\n * See also:\n * SparseMatrix, DenseMatrix\n *\n * @param {...Matrix | Array} x The Matrix with values.\n *\n * @return {string} A string representation of the matrix type\n */\n return typed(name, {\n Array: function Array(x) {\n return (0, _array.getArrayDataType)(x, _is.typeOf);\n },\n Matrix: function Matrix(x) {\n return x.getDataType();\n }\n });\n});\nexports.createGetMatrixDataType = createGetMatrixDataType;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIdentity = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'identity';\nvar dependencies = ['typed', 'config', 'matrix', 'BigNumber', 'DenseMatrix', 'SparseMatrix'];\nvar createIdentity = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n BigNumber = _ref.BigNumber,\n DenseMatrix = _ref.DenseMatrix,\n SparseMatrix = _ref.SparseMatrix;\n\n /**\n * Create a 2-dimensional identity matrix with size m x n or n x n.\n * The matrix has ones on the diagonal and zeros elsewhere.\n *\n * Syntax:\n *\n * math.identity(n)\n * math.identity(n, format)\n * math.identity(m, n)\n * math.identity(m, n, format)\n * math.identity([m, n])\n * math.identity([m, n], format)\n *\n * Examples:\n *\n * math.identity(3) // returns [[1, 0, 0], [0, 1, 0], [0, 0, 1]]\n * math.identity(3, 2) // returns [[1, 0], [0, 1], [0, 0]]\n *\n * const A = [[1, 2, 3], [4, 5, 6]]\n * math.identity(math.size(A)) // returns [[1, 0, 0], [0, 1, 0]]\n *\n * See also:\n *\n * diag, ones, zeros, size, range\n *\n * @param {...number | Matrix | Array} size The size for the matrix\n * @param {string} [format] The Matrix storage format\n *\n * @return {Matrix | Array | number} A matrix with ones on the diagonal.\n */\n return typed(name, {\n '': function _() {\n return config.matrix === 'Matrix' ? matrix([]) : [];\n },\n string: function string(format) {\n return matrix(format);\n },\n 'number | BigNumber': function numberBigNumber(rows) {\n return _identity(rows, rows, config.matrix === 'Matrix' ? 'dense' : undefined);\n },\n 'number | BigNumber, string': function numberBigNumberString(rows, format) {\n return _identity(rows, rows, format);\n },\n 'number | BigNumber, number | BigNumber': function numberBigNumberNumberBigNumber(rows, cols) {\n return _identity(rows, cols, config.matrix === 'Matrix' ? 'dense' : undefined);\n },\n 'number | BigNumber, number | BigNumber, string': function numberBigNumberNumberBigNumberString(rows, cols, format) {\n return _identity(rows, cols, format);\n },\n Array: function Array(size) {\n return _identityVector(size);\n },\n 'Array, string': function ArrayString(size, format) {\n return _identityVector(size, format);\n },\n Matrix: function Matrix(size) {\n return _identityVector(size.valueOf(), size.storage());\n },\n 'Matrix, string': function MatrixString(size, format) {\n return _identityVector(size.valueOf(), format);\n }\n });\n\n function _identityVector(size, format) {\n switch (size.length) {\n case 0:\n return format ? matrix(format) : [];\n\n case 1:\n return _identity(size[0], size[0], format);\n\n case 2:\n return _identity(size[0], size[1], format);\n\n default:\n throw new Error('Vector containing two values expected');\n }\n }\n /**\n * Create an identity matrix\n * @param {number | BigNumber} rows\n * @param {number | BigNumber} cols\n * @param {string} [format]\n * @returns {Matrix}\n * @private\n */\n\n\n function _identity(rows, cols, format) {\n // BigNumber constructor with the right precision\n var Big = (0, _is.isBigNumber)(rows) || (0, _is.isBigNumber)(cols) ? BigNumber : null;\n if ((0, _is.isBigNumber)(rows)) rows = rows.toNumber();\n if ((0, _is.isBigNumber)(cols)) cols = cols.toNumber();\n\n if (!(0, _number.isInteger)(rows) || rows < 1) {\n throw new Error('Parameters in function identity must be positive integers');\n }\n\n if (!(0, _number.isInteger)(cols) || cols < 1) {\n throw new Error('Parameters in function identity must be positive integers');\n }\n\n var one = Big ? new BigNumber(1) : 1;\n var defaultValue = Big ? new Big(0) : 0;\n var size = [rows, cols]; // check we need to return a matrix\n\n if (format) {\n // create diagonal matrix (use optimized implementation for storage format)\n if (format === 'sparse') {\n return SparseMatrix.diagonal(size, one, 0, defaultValue);\n }\n\n if (format === 'dense') {\n return DenseMatrix.diagonal(size, one, 0, defaultValue);\n }\n\n throw new TypeError(\"Unknown matrix type \\\"\".concat(format, \"\\\"\"));\n } // create and resize array\n\n\n var res = (0, _array.resize)([], size, defaultValue); // fill in ones on the diagonal\n\n var minimum = rows < cols ? rows : cols; // fill diagonal\n\n for (var d = 0; d < minimum; d++) {\n res[d][d] = one;\n }\n\n return res;\n }\n});\nexports.createIdentity = createIdentity;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createKron = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'kron';\nvar dependencies = ['typed', 'matrix', 'multiplyScalar'];\nvar createKron = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n multiplyScalar = _ref.multiplyScalar;\n\n /**\n * Calculates the kronecker product of 2 matrices or vectors.\n *\n * NOTE: If a one dimensional vector / matrix is given, it will be\n * wrapped so its two dimensions.\n * See the examples.\n *\n * Syntax:\n *\n * math.kron(x, y)\n *\n * Examples:\n *\n * math.kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])\n * // returns [ [ 1, 2, 0, 0 ], [ 3, 4, 0, 0 ], [ 0, 0, 1, 2 ], [ 0, 0, 3, 4 ] ]\n *\n * math.kron([1,1], [2,3,4])\n * // returns [ [ 2, 3, 4, 2, 3, 4 ] ]\n *\n * See also:\n *\n * multiply, dot, cross\n *\n * @param {Array | Matrix} x First vector\n * @param {Array | Matrix} y Second vector\n * @return {Array | Matrix} Returns the kronecker product of `x` and `y`\n */\n return typed(name, {\n 'Matrix, Matrix': function MatrixMatrix(x, y) {\n return matrix(_kron(x.toArray(), y.toArray()));\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n return matrix(_kron(x.toArray(), y));\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n return matrix(_kron(x, y.toArray()));\n },\n 'Array, Array': _kron\n });\n /**\n * Calculate the kronecker product of two matrices / vectors\n * @param {Array} a First vector\n * @param {Array} b Second vector\n * @returns {Array} Returns the kronecker product of x and y\n * @private\n */\n\n function _kron(a, b) {\n // Deal with the dimensions of the matricies.\n if ((0, _array.arraySize)(a).length === 1) {\n // Wrap it in a 2D Matrix\n a = [a];\n }\n\n if ((0, _array.arraySize)(b).length === 1) {\n // Wrap it in a 2D Matrix\n b = [b];\n }\n\n if ((0, _array.arraySize)(a).length > 2 || (0, _array.arraySize)(b).length > 2) {\n throw new RangeError('Vectors with dimensions greater then 2 are not supported expected ' + '(Size x = ' + JSON.stringify(a.length) + ', y = ' + JSON.stringify(b.length) + ')');\n }\n\n var t = [];\n var r = [];\n return a.map(function (a) {\n return b.map(function (b) {\n r = [];\n t.push(r);\n return a.map(function (y) {\n return b.map(function (x) {\n return r.push(multiplyScalar(y, x));\n });\n });\n });\n }) && t;\n }\n});\nexports.createKron = createKron;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMap = void 0;\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'map';\nvar dependencies = ['typed'];\nvar createMap = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Create a new matrix or array with the results of a callback function executed on\n * each entry of a given matrix/array.\n *\n * For each entry of the input, the callback is invoked with three arguments:\n * the value of the entry, the index at which that entry occurs, and the full\n * matrix/array being traversed. Note that because the matrix/array might be\n * multidimensional, the \"index\" argument is always an array of numbers giving\n * the index in each dimension. This is true even for vectors: the \"index\"\n * argument is an array of length 1, rather than simply a number.\n *\n * Syntax:\n *\n * math.map(x, callback)\n *\n * Examples:\n *\n * math.map([1, 2, 3], function(value) {\n * return value * value\n * }) // returns [1, 4, 9]\n *\n * // The calling convention for the callback can cause subtleties:\n * math.map([1, 2, 3], math.format)\n * // throws TypeError: map attempted to call 'format(1,[0])' but argument 2 of type Array does not match expected type number or function or Object or string or boolean\n * // [This happens because `format` _can_ take a second argument,\n * // but its semantics don't match that of the 2nd argument `map` provides]\n *\n * // To avoid this error, use a function that takes exactly the\n * // desired arguments:\n * math.map([1, 2, 3], x => math.format(x)) // returns ['1', '2', '3']\n *\n * See also:\n *\n * filter, forEach, sort\n *\n * @param {Matrix | Array} x The input to iterate on.\n * @param {Function} callback\n * The function to call (as described above) on each entry of the input\n * @return {Matrix | array}\n * Transformed map of x; always has the same type and shape as x\n */\n return typed(name, {\n 'Array, function': _map,\n 'Matrix, function': function MatrixFunction(x, callback) {\n return x.map(callback);\n }\n });\n});\n/**\n * Map for a multi dimensional array\n * @param {Array} array\n * @param {Function} callback\n * @return {Array}\n * @private\n */\n\nexports.createMap = createMap;\n\nfunction _map(array, callback) {\n // figure out what number of arguments the callback function expects\n var args = (0, _function.maxArgumentCount)(callback);\n\n var recurse = function recurse(value, index) {\n if (Array.isArray(value)) {\n return value.map(function (child, i) {\n // we create a copy of the index array and append the new index value\n return recurse(child, index.concat(i));\n });\n } else {\n try {\n // invoke the callback function with the right number of arguments\n if (args === 1) {\n return callback(value);\n } else if (args === 2) {\n return callback(value, index);\n } else {\n // 3 or -1\n return callback(value, index, array);\n }\n } catch (err) {\n // But maybe the arguments still weren't right\n if (err instanceof TypeError && 'data' in err && err.data.category === 'wrongType') {\n var newmsg = \"map attempted to call '\".concat(err.data.fn, \"(\").concat(value);\n var indexString = JSON.stringify(index);\n\n if (args === 2) {\n newmsg += ',' + indexString;\n } else if (args !== 1) {\n newmsg += \",\".concat(indexString, \",\").concat(array);\n }\n\n newmsg += \")' but argument \".concat(err.data.index + 1, \" of type \");\n newmsg += \"\".concat(err.data.actual, \" does not match expected type \");\n newmsg += err.data.expected.join(' or ');\n throw new TypeError(newmsg);\n }\n\n throw err;\n }\n }\n };\n\n return recurse(array, []);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDiff = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'diff';\nvar dependencies = ['typed', 'matrix', 'subtract', 'number'];\nvar createDiff = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n subtract = _ref.subtract,\n number = _ref.number;\n\n /**\n * Create a new matrix or array of the difference between elements of the given array\n * The optional dim parameter lets you specify the dimension to evaluate the difference of\n * If no dimension parameter is passed it is assumed as dimension 0\n *\n * Dimension is zero-based in javascript and one-based in the parser and can be a number or bignumber\n * Arrays must be 'rectangular' meaning arrays like [1, 2]\n * If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays\n *\n * Syntax:\n *\n * math.diff(arr)\n * math.diff(arr, dim)\n *\n * Examples:\n *\n * const arr = [1, 2, 4, 7, 0]\n * math.diff(arr) // returns [1, 2, 3, -7] (no dimension passed so 0 is assumed)\n * math.diff(math.matrix(arr)) // returns math.matrix([1, 2, 3, -7])\n *\n * const arr = [[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [9, 8, 7, 6, 4]]\n * math.diff(arr) // returns [[0, 0, 0, 0, 0], [8, 6, 4, 2, -1]]\n * math.diff(arr, 0) // returns [[0, 0, 0, 0, 0], [8, 6, 4, 2, -1]]\n * math.diff(arr, 1) // returns [[1, 1, 1, 1], [1, 1, 1, 1], [-1, -1, -1, -2]]\n * math.diff(arr, math.bignumber(1)) // returns [[1, 1, 1, 1], [1, 1, 1, 1], [-1, -1, -1, -2]]\n *\n * math.diff(arr, 2) // throws RangeError as arr is 2 dimensional not 3\n * math.diff(arr, -1) // throws RangeError as negative dimensions are not allowed\n *\n * // These will all produce the same result\n * math.diff([[1, 2], [3, 4]])\n * math.diff([math.matrix([1, 2]), math.matrix([3, 4])])\n * math.diff([[1, 2], math.matrix([3, 4])])\n * math.diff([math.matrix([1, 2]), [3, 4]])\n * // They do not produce the same result as math.diff(math.matrix([[1, 2], [3, 4]])) as this returns a matrix\n *\n * See Also:\n *\n * sum\n * subtract\n * partitionSelect\n *\n * @param {Array | Matrix} arr An array or matrix\n * @param {number} dim Dimension\n * @return {Array | Matrix} Difference between array elements in given dimension\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(arr) {\n // No dimension specified => assume dimension 0\n if ((0, _is.isMatrix)(arr)) {\n return matrix(_diff(arr.toArray()));\n } else {\n return _diff(arr);\n }\n },\n 'Array | Matrix, number': function ArrayMatrixNumber(arr, dim) {\n if (!(0, _number.isInteger)(dim)) throw new RangeError('Dimension must be a whole number');\n\n if ((0, _is.isMatrix)(arr)) {\n return matrix(_recursive(arr.toArray(), dim));\n } else {\n return _recursive(arr, dim);\n }\n },\n 'Array | Matrix, BigNumber': function ArrayMatrixBigNumber(arr, dim) {\n return this(arr, number(dim));\n }\n });\n /**\n * Recursively find the correct dimension in the array/matrix\n * Then Apply _diff to that dimension\n *\n * @param {Array} arr The array\n * @param {number} dim Dimension\n * @return {Array} resulting array\n */\n\n function _recursive(arr, dim) {\n if ((0, _is.isMatrix)(arr)) {\n arr = arr.toArray(); // Makes sure arrays like [ matrix([0, 1]), matrix([1, 0]) ] are processed properly\n }\n\n if (!Array.isArray(arr)) {\n throw RangeError('Array/Matrix does not have that many dimensions');\n }\n\n if (dim > 0) {\n var result = [];\n arr.forEach(function (element) {\n result.push(_recursive(element, dim - 1));\n });\n return result;\n } else if (dim === 0) {\n return _diff(arr);\n } else {\n throw RangeError('Cannot have negative dimension');\n }\n }\n /**\n * Difference between elements in the array\n *\n * @param {Array} arr An array\n * @return {Array} resulting array\n */\n\n\n function _diff(arr) {\n var result = [];\n var size = arr.length;\n\n if (size < 2) {\n return arr;\n }\n\n for (var i = 1; i < size; i++) {\n result.push(_ElementDiff(arr[i - 1], arr[i]));\n }\n\n return result;\n }\n /**\n * Difference between 2 objects\n *\n * @param {Object} obj1 First object\n * @param {Object} obj2 Second object\n * @return {Array} resulting array\n */\n\n\n function _ElementDiff(obj1, obj2) {\n // Convert matrices to arrays\n if ((0, _is.isMatrix)(obj1)) obj1 = obj1.toArray();\n if ((0, _is.isMatrix)(obj2)) obj2 = obj2.toArray();\n var obj1IsArray = Array.isArray(obj1);\n var obj2IsArray = Array.isArray(obj2);\n\n if (obj1IsArray && obj2IsArray) {\n return _ArrayDiff(obj1, obj2);\n }\n\n if (!obj1IsArray && !obj2IsArray) {\n return subtract(obj2, obj1); // Difference is (second - first) NOT (first - second)\n }\n\n throw TypeError('Cannot calculate difference between 1 array and 1 non-array');\n }\n /**\n * Difference of elements in 2 arrays\n *\n * @param {Array} arr1 Array 1\n * @param {Array} arr2 Array 2\n * @return {Array} resulting array\n */\n\n\n function _ArrayDiff(arr1, arr2) {\n if (arr1.length !== arr2.length) {\n throw RangeError('Not all sub-arrays have the same length');\n }\n\n var result = [];\n var size = arr1.length;\n\n for (var i = 0; i < size; i++) {\n result.push(_ElementDiff(arr1[i], arr2[i]));\n }\n\n return result;\n }\n});\nexports.createDiff = createDiff;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createOnes = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ones';\nvar dependencies = ['typed', 'config', 'matrix', 'BigNumber'];\nvar createOnes = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n BigNumber = _ref.BigNumber;\n\n /**\n * Create a matrix filled with ones. The created matrix can have one or\n * multiple dimensions.\n *\n * Syntax:\n *\n * math.ones(m)\n * math.ones(m, format)\n * math.ones(m, n)\n * math.ones(m, n, format)\n * math.ones([m, n])\n * math.ones([m, n], format)\n * math.ones([m, n, p, ...])\n * math.ones([m, n, p, ...], format)\n *\n * Examples:\n *\n * math.ones(3) // returns [1, 1, 1]\n * math.ones(3, 2) // returns [[1, 1], [1, 1], [1, 1]]\n * math.ones(3, 2, 'dense') // returns Dense Matrix [[1, 1], [1, 1], [1, 1]]\n *\n * const A = [[1, 2, 3], [4, 5, 6]]\n * math.ones(math.size(A)) // returns [[1, 1, 1], [1, 1, 1]]\n *\n * See also:\n *\n * zeros, identity, size, range\n *\n * @param {...number | Array} size The size of each dimension of the matrix\n * @param {string} [format] The Matrix storage format\n *\n * @return {Array | Matrix | number} A matrix filled with ones\n */\n return typed('ones', {\n '': function _() {\n return config.matrix === 'Array' ? _ones([]) : _ones([], 'default');\n },\n // math.ones(m, n, p, ..., format)\n // TODO: more accurate signature '...number | BigNumber, string' as soon as typed-function supports this\n '...number | BigNumber | string': function numberBigNumberString(size) {\n var last = size[size.length - 1];\n\n if (typeof last === 'string') {\n var format = size.pop();\n return _ones(size, format);\n } else if (config.matrix === 'Array') {\n return _ones(size);\n } else {\n return _ones(size, 'default');\n }\n },\n Array: _ones,\n Matrix: function Matrix(size) {\n var format = size.storage();\n return _ones(size.valueOf(), format);\n },\n 'Array | Matrix, string': function ArrayMatrixString(size, format) {\n return _ones(size.valueOf(), format);\n }\n });\n /**\n * Create an Array or Matrix with ones\n * @param {Array} size\n * @param {string} [format='default']\n * @return {Array | Matrix}\n * @private\n */\n\n function _ones(size, format) {\n var hasBigNumbers = _normalize(size);\n\n var defaultValue = hasBigNumbers ? new BigNumber(1) : 1;\n\n _validate(size);\n\n if (format) {\n // return a matrix\n var m = matrix(format);\n\n if (size.length > 0) {\n return m.resize(size, defaultValue);\n }\n\n return m;\n } else {\n // return an Array\n var arr = [];\n\n if (size.length > 0) {\n return (0, _array.resize)(arr, size, defaultValue);\n }\n\n return arr;\n }\n } // replace BigNumbers with numbers, returns true if size contained BigNumbers\n\n\n function _normalize(size) {\n var hasBigNumbers = false;\n size.forEach(function (value, index, arr) {\n if ((0, _is.isBigNumber)(value)) {\n hasBigNumbers = true;\n arr[index] = value.toNumber();\n }\n });\n return hasBigNumbers;\n } // validate arguments\n\n\n function _validate(size) {\n size.forEach(function (value) {\n if (typeof value !== 'number' || !(0, _number.isInteger)(value) || value < 0) {\n throw new Error('Parameters in function ones must be positive integers');\n }\n });\n }\n});\nexports.createOnes = createOnes;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.noBignumber = noBignumber;\nexports.noFraction = noFraction;\nexports.noIndex = noIndex;\nexports.noMatrix = noMatrix;\nexports.noSubset = noSubset;\n\nfunction noBignumber() {\n throw new Error('No \"bignumber\" implementation available');\n}\n\nfunction noFraction() {\n throw new Error('No \"fraction\" implementation available');\n}\n\nfunction noMatrix() {\n throw new Error('No \"matrix\" implementation available');\n}\n\nfunction noIndex() {\n throw new Error('No \"index\" implementation available');\n}\n\nfunction noSubset() {\n throw new Error('No \"matrix\" implementation available');\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRange = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _noop = require(\"../../utils/noop.js\");\n\nvar name = 'range';\nvar dependencies = ['typed', 'config', '?matrix', '?bignumber', 'smaller', 'smallerEq', 'larger', 'largerEq'];\nvar createRange = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n bignumber = _ref.bignumber,\n smaller = _ref.smaller,\n smallerEq = _ref.smallerEq,\n larger = _ref.larger,\n largerEq = _ref.largerEq;\n\n /**\n * Create an array from a range.\n * By default, the range end is excluded. This can be customized by providing\n * an extra parameter `includeEnd`.\n *\n * Syntax:\n *\n * math.range(str [, includeEnd]) // Create a range from a string,\n * // where the string contains the\n * // start, optional step, and end,\n * // separated by a colon.\n * math.range(start, end [, includeEnd]) // Create a range with start and\n * // end and a step size of 1.\n * math.range(start, end, step [, includeEnd]) // Create a range with start, step,\n * // and end.\n *\n * Where:\n *\n * - `str: string`\n * A string 'start:end' or 'start:step:end'\n * - `start: {number | BigNumber}`\n * Start of the range\n * - `end: number | BigNumber`\n * End of the range, excluded by default, included when parameter includeEnd=true\n * - `step: number | BigNumber`\n * Step size. Default value is 1.\n * - `includeEnd: boolean`\n * Option to specify whether to include the end or not. False by default.\n *\n * Examples:\n *\n * math.range(2, 6) // [2, 3, 4, 5]\n * math.range(2, -3, -1) // [2, 1, 0, -1, -2]\n * math.range('2:1:6') // [2, 3, 4, 5]\n * math.range(2, 6, true) // [2, 3, 4, 5, 6]\n *\n * See also:\n *\n * ones, zeros, size, subset\n *\n * @param {*} args Parameters describing the ranges `start`, `end`, and optional `step`.\n * @return {Array | Matrix} range\n */\n return typed(name, {\n // TODO: simplify signatures when typed-function supports default values and optional arguments\n // TODO: a number or boolean should not be converted to string here\n string: _strRange,\n 'string, boolean': _strRange,\n 'number, number': function numberNumber(start, end) {\n return _out(_rangeEx(start, end, 1));\n },\n 'number, number, number': function numberNumberNumber(start, end, step) {\n return _out(_rangeEx(start, end, step));\n },\n 'number, number, boolean': function numberNumberBoolean(start, end, includeEnd) {\n return includeEnd ? _out(_rangeInc(start, end, 1)) : _out(_rangeEx(start, end, 1));\n },\n 'number, number, number, boolean': function numberNumberNumberBoolean(start, end, step, includeEnd) {\n return includeEnd ? _out(_rangeInc(start, end, step)) : _out(_rangeEx(start, end, step));\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(start, end) {\n var BigNumber = start.constructor;\n return _out(_bigRangeEx(start, end, new BigNumber(1)));\n },\n 'BigNumber, BigNumber, BigNumber': function BigNumberBigNumberBigNumber(start, end, step) {\n return _out(_bigRangeEx(start, end, step));\n },\n 'BigNumber, BigNumber, boolean': function BigNumberBigNumberBoolean(start, end, includeEnd) {\n var BigNumber = start.constructor;\n return includeEnd ? _out(_bigRangeInc(start, end, new BigNumber(1))) : _out(_bigRangeEx(start, end, new BigNumber(1)));\n },\n 'BigNumber, BigNumber, BigNumber, boolean': function BigNumberBigNumberBigNumberBoolean(start, end, step, includeEnd) {\n return includeEnd ? _out(_bigRangeInc(start, end, step)) : _out(_bigRangeEx(start, end, step));\n }\n });\n\n function _out(arr) {\n if (config.matrix === 'Matrix') {\n return matrix ? matrix(arr) : (0, _noop.noMatrix)();\n }\n\n return arr;\n }\n\n function _strRange(str, includeEnd) {\n var r = _parse(str);\n\n if (!r) {\n throw new SyntaxError('String \"' + str + '\" is no valid range');\n }\n\n var fn;\n\n if (config.number === 'BigNumber') {\n if (bignumber === undefined) {\n (0, _noop.noBignumber)();\n }\n\n fn = includeEnd ? _bigRangeInc : _bigRangeEx;\n return _out(fn(bignumber(r.start), bignumber(r.end), bignumber(r.step)));\n } else {\n fn = includeEnd ? _rangeInc : _rangeEx;\n return _out(fn(r.start, r.end, r.step));\n }\n }\n /**\n * Create a range with numbers. End is excluded\n * @param {number} start\n * @param {number} end\n * @param {number} step\n * @returns {Array} range\n * @private\n */\n\n\n function _rangeEx(start, end, step) {\n var array = [];\n var x = start;\n\n if (step > 0) {\n while (smaller(x, end)) {\n array.push(x);\n x += step;\n }\n } else if (step < 0) {\n while (larger(x, end)) {\n array.push(x);\n x += step;\n }\n }\n\n return array;\n }\n /**\n * Create a range with numbers. End is included\n * @param {number} start\n * @param {number} end\n * @param {number} step\n * @returns {Array} range\n * @private\n */\n\n\n function _rangeInc(start, end, step) {\n var array = [];\n var x = start;\n\n if (step > 0) {\n while (smallerEq(x, end)) {\n array.push(x);\n x += step;\n }\n } else if (step < 0) {\n while (largerEq(x, end)) {\n array.push(x);\n x += step;\n }\n }\n\n return array;\n }\n /**\n * Create a range with big numbers. End is excluded\n * @param {BigNumber} start\n * @param {BigNumber} end\n * @param {BigNumber} step\n * @returns {Array} range\n * @private\n */\n\n\n function _bigRangeEx(start, end, step) {\n var zero = bignumber(0);\n var array = [];\n var x = start;\n\n if (step.gt(zero)) {\n while (smaller(x, end)) {\n array.push(x);\n x = x.plus(step);\n }\n } else if (step.lt(zero)) {\n while (larger(x, end)) {\n array.push(x);\n x = x.plus(step);\n }\n }\n\n return array;\n }\n /**\n * Create a range with big numbers. End is included\n * @param {BigNumber} start\n * @param {BigNumber} end\n * @param {BigNumber} step\n * @returns {Array} range\n * @private\n */\n\n\n function _bigRangeInc(start, end, step) {\n var zero = bignumber(0);\n var array = [];\n var x = start;\n\n if (step.gt(zero)) {\n while (smallerEq(x, end)) {\n array.push(x);\n x = x.plus(step);\n }\n } else if (step.lt(zero)) {\n while (largerEq(x, end)) {\n array.push(x);\n x = x.plus(step);\n }\n }\n\n return array;\n }\n /**\n * Parse a string into a range,\n * The string contains the start, optional step, and end, separated by a colon.\n * If the string does not contain a valid range, null is returned.\n * For example str='0:2:11'.\n * @param {string} str\n * @return {{start: number, end: number, step: number} | null} range Object containing properties start, end, step\n * @private\n */\n\n\n function _parse(str) {\n var args = str.split(':'); // number\n\n var nums = args.map(function (arg) {\n // use Number and not parseFloat as Number returns NaN on invalid garbage in the string\n return Number(arg);\n });\n var invalid = nums.some(function (num) {\n return isNaN(num);\n });\n\n if (invalid) {\n return null;\n }\n\n switch (nums.length) {\n case 2:\n return {\n start: nums[0],\n end: nums[1],\n step: 1\n };\n\n case 3:\n return {\n start: nums[0],\n end: nums[2],\n step: nums[1]\n };\n\n default:\n return null;\n }\n }\n});\nexports.createRange = createRange;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createReshape = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'reshape';\nvar dependencies = ['typed', 'isInteger', 'matrix'];\nvar createReshape = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n isInteger = _ref.isInteger;\n\n /**\n * Reshape a multi dimensional array to fit the specified dimensions\n *\n * Syntax:\n *\n * math.reshape(x, sizes)\n *\n * Examples:\n *\n * math.reshape([1, 2, 3, 4, 5, 6], [2, 3])\n * // returns Array [[1, 2, 3], [4, 5, 6]]\n *\n * math.reshape([[1, 2], [3, 4]], [1, 4])\n * // returns Array [[1, 2, 3, 4]]\n *\n * math.reshape([[1, 2], [3, 4]], [4])\n * // returns Array [1, 2, 3, 4]\n *\n * const x = math.matrix([1, 2, 3, 4, 5, 6, 7, 8])\n * math.reshape(x, [2, 2, 2])\n * // returns Matrix [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]\n *\n * math.reshape([1, 2, 3, 4], [-1, 2])\n * // returns Matrix [[1, 2], [3, 4]]\n *\n * See also:\n *\n * size, squeeze, resize\n *\n * @param {Array | Matrix | *} x Matrix to be reshaped\n * @param {number[]} sizes One dimensional array with integral sizes for\n * each dimension. One -1 is allowed as wildcard,\n * which calculates this dimension automatically.\n *\n * @return {* | Array | Matrix} A reshaped clone of matrix `x`\n *\n * @throws {TypeError} If `sizes` does not contain solely integers\n * @throws {DimensionError} If the product of the new dimension sizes does\n * not equal that of the old ones\n */\n return typed(name, {\n 'Matrix, Array': function MatrixArray(x, sizes) {\n return x.reshape(sizes);\n },\n 'Array, Array': function ArrayArray(x, sizes) {\n sizes.forEach(function (size) {\n if (!isInteger(size)) {\n throw new TypeError('Invalid size for dimension: ' + size);\n }\n });\n return (0, _array.reshape)(x, sizes);\n }\n });\n});\nexports.createReshape = createReshape;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ArgumentsError = ArgumentsError;\n\n/**\n * Create a syntax error with the message:\n * 'Wrong number of arguments in function ( provided, - expected)'\n * @param {string} fn Function name\n * @param {number} count Actual argument count\n * @param {number} min Minimum required argument count\n * @param {number} [max] Maximum required argument count\n * @extends Error\n */\nfunction ArgumentsError(fn, count, min, max) {\n if (!(this instanceof ArgumentsError)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.fn = fn;\n this.count = count;\n this.min = min;\n this.max = max;\n this.message = 'Wrong number of arguments in function ' + fn + ' (' + count + ' provided, ' + min + (max !== undefined && max !== null ? '-' + max : '') + ' expected)';\n this.stack = new Error().stack;\n}\n\nArgumentsError.prototype = new Error();\nArgumentsError.prototype.constructor = Error;\nArgumentsError.prototype.name = 'ArgumentsError';\nArgumentsError.prototype.isArgumentsError = true;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createResize = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _DimensionError = require(\"../../error/DimensionError.js\");\n\nvar _ArgumentsError = require(\"../../error/ArgumentsError.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'resize';\nvar dependencies = ['config', 'matrix'];\nvar createResize = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n matrix = _ref.matrix;\n\n /**\n * Resize a matrix\n *\n * Syntax:\n *\n * math.resize(x, size)\n * math.resize(x, size, defaultValue)\n *\n * Examples:\n *\n * math.resize([1, 2, 3, 4, 5], [3]) // returns Array [1, 2, 3]\n * math.resize([1, 2, 3], [5], 0) // returns Array [1, 2, 3, 0, 0]\n * math.resize(2, [2, 3], 0) // returns Matrix [[2, 0, 0], [0, 0, 0]]\n * math.resize(\"hello\", [8], \"!\") // returns string 'hello!!!'\n *\n * See also:\n *\n * size, squeeze, subset, reshape\n *\n * @param {Array | Matrix | *} x Matrix to be resized\n * @param {Array | Matrix} size One dimensional array with numbers\n * @param {number | string} [defaultValue=0] Zero by default, except in\n * case of a string, in that case\n * defaultValue = ' '\n * @return {* | Array | Matrix} A resized clone of matrix `x`\n */\n // TODO: rework resize to a typed-function\n return function resize(x, size, defaultValue) {\n if (arguments.length !== 2 && arguments.length !== 3) {\n throw new _ArgumentsError.ArgumentsError('resize', arguments.length, 2, 3);\n }\n\n if ((0, _is.isMatrix)(size)) {\n size = size.valueOf(); // get Array\n }\n\n if ((0, _is.isBigNumber)(size[0])) {\n // convert bignumbers to numbers\n size = size.map(function (value) {\n return !(0, _is.isBigNumber)(value) ? value : value.toNumber();\n });\n } // check x is a Matrix\n\n\n if ((0, _is.isMatrix)(x)) {\n // use optimized matrix implementation, return copy\n return x.resize(size, defaultValue, true);\n }\n\n if (typeof x === 'string') {\n // resize string\n return _resizeString(x, size, defaultValue);\n } // check result should be a matrix\n\n\n var asMatrix = Array.isArray(x) ? false : config.matrix !== 'Array';\n\n if (size.length === 0) {\n // output a scalar\n while (Array.isArray(x)) {\n x = x[0];\n }\n\n return (0, _object.clone)(x);\n } else {\n // output an array/matrix\n if (!Array.isArray(x)) {\n x = [x];\n }\n\n x = (0, _object.clone)(x);\n var res = (0, _array.resize)(x, size, defaultValue);\n return asMatrix ? matrix(res) : res;\n }\n };\n /**\n * Resize a string\n * @param {string} str\n * @param {number[]} size\n * @param {string} [defaultChar=' ']\n * @private\n */\n\n function _resizeString(str, size, defaultChar) {\n if (defaultChar !== undefined) {\n if (typeof defaultChar !== 'string' || defaultChar.length !== 1) {\n throw new TypeError('Single character expected as defaultValue');\n }\n } else {\n defaultChar = ' ';\n }\n\n if (size.length !== 1) {\n throw new _DimensionError.DimensionError(size.length, 1);\n }\n\n var len = size[0];\n\n if (typeof len !== 'number' || !(0, _number.isInteger)(len)) {\n throw new TypeError('Invalid size, must contain positive integers ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n\n if (str.length > len) {\n return str.substring(0, len);\n } else if (str.length < len) {\n var res = str;\n\n for (var i = 0, ii = len - str.length; i < ii; i++) {\n res += defaultChar;\n }\n\n return res;\n } else {\n return str;\n }\n }\n});\nexports.createResize = createResize;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRotate = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar name = 'rotate';\nvar dependencies = ['typed', 'multiply', 'rotationMatrix'];\nvar createRotate = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n multiply = _ref.multiply,\n rotationMatrix = _ref.rotationMatrix;\n\n /**\n * Rotate a vector of size 1x2 counter-clockwise by a given angle\n * Rotate a vector of size 1x3 counter-clockwise by a given angle around the given axis\n *\n * Syntax:\n *\n * math.rotate(w, theta)\n * math.rotate(w, theta, v)\n *\n * Examples:\n *\n * math.rotate([11, 12], math.pi / 2) // returns matrix([-12, 11])\n * math.rotate(matrix([11, 12]), math.pi / 2) // returns matrix([-12, 11])\n *\n * math.rotate([1, 0, 0], unit('90deg'), [0, 0, 1]) // returns matrix([0, 1, 0])\n * math.rotate(matrix([1, 0, 0]), unit('90deg'), [0, 0, 1]) // returns matrix([0, 1, 0])\n *\n * math.rotate([1, 0], math.complex(1 + i)) // returns matrix([cos(1 + i) - sin(1 + i), sin(1 + i) + cos(1 + i)])\n *\n * See also:\n *\n * matrix, rotationMatrix\n *\n * @param {Array | Matrix} w Vector to rotate\n * @param {number | BigNumber | Complex | Unit} theta Rotation angle\n * @param {Array | Matrix} [v] Rotation axis\n * @return {Array | Matrix} Multiplication of the rotation matrix and w\n */\n return typed(name, {\n 'Array , number | BigNumber | Complex | Unit': function ArrayNumberBigNumberComplexUnit(w, theta) {\n _validateSize(w, 2);\n\n var matrixRes = multiply(rotationMatrix(theta), w);\n return matrixRes.toArray();\n },\n 'Matrix , number | BigNumber | Complex | Unit': function MatrixNumberBigNumberComplexUnit(w, theta) {\n _validateSize(w, 2);\n\n return multiply(rotationMatrix(theta), w);\n },\n 'Array, number | BigNumber | Complex | Unit, Array | Matrix': function ArrayNumberBigNumberComplexUnitArrayMatrix(w, theta, v) {\n _validateSize(w, 3);\n\n var matrixRes = multiply(rotationMatrix(theta, v), w);\n return matrixRes;\n },\n 'Matrix, number | BigNumber | Complex | Unit, Array | Matrix': function MatrixNumberBigNumberComplexUnitArrayMatrix(w, theta, v) {\n _validateSize(w, 3);\n\n return multiply(rotationMatrix(theta, v), w);\n }\n });\n\n function _validateSize(v, expectedSize) {\n var actualSize = Array.isArray(v) ? (0, _array.arraySize)(v) : v.size();\n\n if (actualSize.length > 2) {\n throw new RangeError(\"Vector must be of dimensions 1x\".concat(expectedSize));\n }\n\n if (actualSize.length === 2 && actualSize[1] !== 1) {\n throw new RangeError(\"Vector must be of dimensions 1x\".concat(expectedSize));\n }\n\n if (actualSize[0] !== expectedSize) {\n throw new RangeError(\"Vector must be of dimensions 1x\".concat(expectedSize));\n }\n }\n});\nexports.createRotate = createRotate;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRotationMatrix = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'rotationMatrix';\nvar dependencies = ['typed', 'config', 'multiplyScalar', 'addScalar', 'unaryMinus', 'norm', 'matrix', 'BigNumber', 'DenseMatrix', 'SparseMatrix', 'cos', 'sin'];\nvar createRotationMatrix = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n multiplyScalar = _ref.multiplyScalar,\n addScalar = _ref.addScalar,\n unaryMinus = _ref.unaryMinus,\n norm = _ref.norm,\n BigNumber = _ref.BigNumber,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix,\n SparseMatrix = _ref.SparseMatrix,\n cos = _ref.cos,\n sin = _ref.sin;\n\n /**\n * Create a 2-dimensional counter-clockwise rotation matrix (2x2) for a given angle (expressed in radians).\n * Create a 2-dimensional counter-clockwise rotation matrix (3x3) by a given angle (expressed in radians) around a given axis (1x3).\n *\n * Syntax:\n *\n * math.rotationMatrix(theta)\n * math.rotationMatrix(theta, format)\n * math.rotationMatrix(theta, [v])\n * math.rotationMatrix(theta, [v], format)\n *\n * Examples:\n *\n * math.rotationMatrix(math.pi / 2) // returns [[0, -1], [1, 0]]\n * math.rotationMatrix(math.bignumber(1)) // returns [[bignumber(cos(1)), bignumber(-sin(1))], [bignumber(sin(1)), bignumber(cos(1))]]\n * math.rotationMatrix(math.complex(1 + i)) // returns [[cos(1 + i), -sin(1 + i)], [sin(1 + i), cos(1 + i)]]\n * math.rotationMatrix(math.unit('1rad')) // returns [[cos(1), -sin(1)], [sin(1), cos(1)]]\n *\n * math.rotationMatrix(math.pi / 2, [0, 1, 0]) // returns [[0, 0, 1], [0, 1, 0], [-1, 0, 0]]\n * math.rotationMatrix(math.pi / 2, matrix([0, 1, 0])) // returns matrix([[0, 0, 1], [0, 1, 0], [-1, 0, 0]])\n *\n *\n * See also:\n *\n * matrix, cos, sin\n *\n *\n * @param {number | BigNumber | Complex | Unit} theta Rotation angle\n * @param {Array | Matrix} [v] Rotation axis\n * @param {string} [format] Result Matrix storage format\n * @return {Array | Matrix} Rotation matrix\n */\n return typed(name, {\n '': function _() {\n return config.matrix === 'Matrix' ? matrix([]) : [];\n },\n string: function string(format) {\n return matrix(format);\n },\n 'number | BigNumber | Complex | Unit': function numberBigNumberComplexUnit(theta) {\n return _rotationMatrix2x2(theta, config.matrix === 'Matrix' ? 'dense' : undefined);\n },\n 'number | BigNumber | Complex | Unit, string': function numberBigNumberComplexUnitString(theta, format) {\n return _rotationMatrix2x2(theta, format);\n },\n 'number | BigNumber | Complex | Unit, Array': function numberBigNumberComplexUnitArray(theta, v) {\n var matrixV = matrix(v);\n\n _validateVector(matrixV);\n\n return _rotationMatrix3x3(theta, matrixV, undefined);\n },\n 'number | BigNumber | Complex | Unit, Matrix': function numberBigNumberComplexUnitMatrix(theta, v) {\n _validateVector(v);\n\n var storageType = v.storage() || (config.matrix === 'Matrix' ? 'dense' : undefined);\n return _rotationMatrix3x3(theta, v, storageType);\n },\n 'number | BigNumber | Complex | Unit, Array, string': function numberBigNumberComplexUnitArrayString(theta, v, format) {\n var matrixV = matrix(v);\n\n _validateVector(matrixV);\n\n return _rotationMatrix3x3(theta, matrixV, format);\n },\n 'number | BigNumber | Complex | Unit, Matrix, string': function numberBigNumberComplexUnitMatrixString(theta, v, format) {\n _validateVector(v);\n\n return _rotationMatrix3x3(theta, v, format);\n }\n });\n /**\n * Returns 2x2 matrix of 2D rotation of angle theta\n *\n * @param {number | BigNumber | Complex | Unit} theta The rotation angle\n * @param {string} format The result Matrix storage format\n * @returns {Matrix}\n * @private\n */\n\n function _rotationMatrix2x2(theta, format) {\n var Big = (0, _is.isBigNumber)(theta);\n var minusOne = Big ? new BigNumber(-1) : -1;\n var cosTheta = cos(theta);\n var sinTheta = sin(theta);\n var data = [[cosTheta, multiplyScalar(minusOne, sinTheta)], [sinTheta, cosTheta]];\n return _convertToFormat(data, format);\n }\n\n function _validateVector(v) {\n var size = v.size();\n\n if (size.length < 1 || size[0] !== 3) {\n throw new RangeError('Vector must be of dimensions 1x3');\n }\n }\n\n function _mul(array) {\n return array.reduce(function (p, curr) {\n return multiplyScalar(p, curr);\n });\n }\n\n function _convertToFormat(data, format) {\n if (format) {\n if (format === 'sparse') {\n return new SparseMatrix(data);\n }\n\n if (format === 'dense') {\n return new DenseMatrix(data);\n }\n\n throw new TypeError(\"Unknown matrix type \\\"\".concat(format, \"\\\"\"));\n }\n\n return data;\n }\n /**\n * Returns a 3x3 matrix of rotation of angle theta around vector v\n *\n * @param {number | BigNumber | Complex | Unit} theta The rotation angle\n * @param {Matrix} v The rotation axis vector\n * @param {string} format The storage format of the resulting matrix\n * @returns {Matrix}\n * @private\n */\n\n\n function _rotationMatrix3x3(theta, v, format) {\n var normV = norm(v);\n\n if (normV === 0) {\n throw new RangeError('Rotation around zero vector');\n }\n\n var Big = (0, _is.isBigNumber)(theta) ? BigNumber : null;\n var one = Big ? new Big(1) : 1;\n var minusOne = Big ? new Big(-1) : -1;\n var vx = Big ? new Big(v.get([0]) / normV) : v.get([0]) / normV;\n var vy = Big ? new Big(v.get([1]) / normV) : v.get([1]) / normV;\n var vz = Big ? new Big(v.get([2]) / normV) : v.get([2]) / normV;\n var c = cos(theta);\n var oneMinusC = addScalar(one, unaryMinus(c));\n var s = sin(theta);\n var r11 = addScalar(c, _mul([vx, vx, oneMinusC]));\n var r12 = addScalar(_mul([vx, vy, oneMinusC]), _mul([minusOne, vz, s]));\n var r13 = addScalar(_mul([vx, vz, oneMinusC]), _mul([vy, s]));\n var r21 = addScalar(_mul([vx, vy, oneMinusC]), _mul([vz, s]));\n var r22 = addScalar(c, _mul([vy, vy, oneMinusC]));\n var r23 = addScalar(_mul([vy, vz, oneMinusC]), _mul([minusOne, vx, s]));\n var r31 = addScalar(_mul([vx, vz, oneMinusC]), _mul([minusOne, vy, s]));\n var r32 = addScalar(_mul([vy, vz, oneMinusC]), _mul([vx, s]));\n var r33 = addScalar(c, _mul([vz, vz, oneMinusC]));\n var data = [[r11, r12, r13], [r21, r22, r23], [r31, r32, r33]];\n return _convertToFormat(data, format);\n }\n});\nexports.createRotationMatrix = createRotationMatrix;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRow = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar name = 'row';\nvar dependencies = ['typed', 'Index', 'matrix', 'range'];\nvar createRow = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Index = _ref.Index,\n matrix = _ref.matrix,\n range = _ref.range;\n\n /**\n * Return a row from a Matrix.\n *\n * Syntax:\n *\n * math.row(value, index)\n *\n * Example:\n *\n * // get a row\n * const d = [[1, 2], [3, 4]]\n * math.row(d, 1) // returns [[3, 4]]\n *\n * See also:\n *\n * column\n *\n * @param {Array | Matrix } value An array or matrix\n * @param {number} row The index of the row\n * @return {Array | Matrix} The retrieved row\n */\n return typed(name, {\n 'Matrix, number': _row,\n 'Array, number': function ArrayNumber(value, row) {\n return _row(matrix((0, _object.clone)(value)), row).valueOf();\n }\n });\n /**\n * Retrieve a row of a matrix\n * @param {Matrix } value A matrix\n * @param {number} row The index of the row\n * @return {Matrix} The retrieved row\n */\n\n function _row(value, row) {\n // check dimensions\n if (value.size().length !== 2) {\n throw new Error('Only two dimensional matrix is supported');\n }\n\n (0, _array.validateIndex)(row, value.size()[0]);\n var columnRange = range(0, value.size()[1]);\n var index = new Index(row, columnRange);\n return value.subset(index);\n }\n});\nexports.createRow = createRow;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSize = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _noop = require(\"../../utils/noop.js\");\n\nvar name = 'size';\nvar dependencies = ['typed', 'config', '?matrix'];\nvar createSize = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix;\n\n /**\n * Calculate the size of a matrix or scalar.\n *\n * Syntax:\n *\n * math.size(x)\n *\n * Examples:\n *\n * math.size(2.3) // returns []\n * math.size('hello world') // returns [11]\n *\n * const A = [[1, 2, 3], [4, 5, 6]]\n * math.size(A) // returns [2, 3]\n * math.size(math.range(1,6)) // returns [5]\n *\n * See also:\n *\n * count, resize, squeeze, subset\n *\n * @param {boolean | number | Complex | Unit | string | Array | Matrix} x A matrix\n * @return {Array | Matrix} A vector with size of `x`.\n */\n return typed(name, {\n Matrix: function Matrix(x) {\n return x.create(x.size());\n },\n Array: _array.arraySize,\n string: function string(x) {\n return config.matrix === 'Array' ? [x.length] : matrix([x.length]);\n },\n 'number | Complex | BigNumber | Unit | boolean | null': function numberComplexBigNumberUnitBooleanNull(x) {\n // scalar\n return config.matrix === 'Array' ? [] : matrix ? matrix([]) : (0, _noop.noMatrix)();\n }\n });\n});\nexports.createSize = createSize;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSqueeze = void 0;\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'squeeze';\nvar dependencies = ['typed', 'matrix'];\nvar createSqueeze = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n\n /**\n * Squeeze a matrix, remove inner and outer singleton dimensions from a matrix.\n *\n * Syntax:\n *\n * math.squeeze(x)\n *\n * Examples:\n *\n * math.squeeze([3]) // returns 3\n * math.squeeze([[3]]) // returns 3\n *\n * const A = math.zeros(3, 1) // returns [[0], [0], [0]] (size 3x1)\n * math.squeeze(A) // returns [0, 0, 0] (size 3)\n *\n * const B = math.zeros(1, 3) // returns [[0, 0, 0]] (size 1x3)\n * math.squeeze(B) // returns [0, 0, 0] (size 3)\n *\n * // only inner and outer dimensions are removed\n * const C = math.zeros(2, 1, 3) // returns [[[0, 0, 0]], [[0, 0, 0]]] (size 2x1x3)\n * math.squeeze(C) // returns [[[0, 0, 0]], [[0, 0, 0]]] (size 2x1x3)\n *\n * See also:\n *\n * subset\n *\n * @param {Matrix | Array} x Matrix to be squeezed\n * @return {Matrix | Array} Squeezed matrix\n */\n return typed(name, {\n Array: function Array(x) {\n return (0, _array.squeeze)((0, _object.clone)(x));\n },\n Matrix: function Matrix(x) {\n var res = (0, _array.squeeze)(x.toArray()); // FIXME: return the same type of matrix as the input\n\n return Array.isArray(res) ? matrix(res) : res;\n },\n any: function any(x) {\n // scalar\n return (0, _object.clone)(x);\n }\n });\n});\nexports.createSqueeze = createSqueeze;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSubset = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _DimensionError = require(\"../../error/DimensionError.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'subset';\nvar dependencies = ['typed', 'matrix'];\nvar createSubset = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n\n /**\n * Get or set a subset of a matrix or string.\n *\n * Syntax:\n * math.subset(value, index) // retrieve a subset\n * math.subset(value, index, replacement [, defaultValue]) // replace a subset\n *\n * Examples:\n *\n * // get a subset\n * const d = [[1, 2], [3, 4]]\n * math.subset(d, math.index(1, 0)) // returns 3\n * math.subset(d, math.index([0, 1], 1)) // returns [[2], [4]]\n *\n * // replace a subset\n * const e = []\n * const f = math.subset(e, math.index(0, [0, 2]), [5, 6]) // f = [[5, 6]] and e = [[5, 0, 6]]\n * const g = math.subset(f, math.index(1, 1), 7, 0) // g = [[5, 6], [0, 7]]\n *\n * // get submatrix using ranges\n * const M = [\n * [1,2,3],\n * [4,5,6],\n * [7,8,9]\n * ]\n * math.subset(M, math.index(math.range(0,2), math.range(0,3))) // [[1,2,3],[4,5,6]]\n *\n * See also:\n *\n * size, resize, squeeze, index\n *\n * @param {Array | Matrix | string} matrix An array, matrix, or string\n * @param {Index} index\n * For each dimension of the target, specifies an index or a list of\n * indices to fetch or set. `subset` uses the cartesian product of\n * the indices specified in each dimension.\n * @param {*} [replacement] An array, matrix, or scalar.\n * If provided, the subset is replaced with replacement.\n * If not provided, the subset is returned\n * @param {*} [defaultValue=undefined] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * math.matrix elements will be left undefined.\n * @return {Array | Matrix | string} Either the retrieved subset or the updated matrix.\n */\n return typed(name, {\n // get subset\n 'Array, Index': function ArrayIndex(value, index) {\n var m = matrix(value);\n var subset = m.subset(index); // returns a Matrix\n\n return index.isScalar() ? subset : subset.valueOf(); // return an Array (like the input)\n },\n 'Matrix, Index': function MatrixIndex(value, index) {\n return value.subset(index);\n },\n 'Object, Index': _getObjectProperty,\n 'string, Index': _getSubstring,\n // set subset\n 'Array, Index, any': function ArrayIndexAny(value, index, replacement) {\n return matrix((0, _object.clone)(value)).subset(index, replacement, undefined).valueOf();\n },\n 'Array, Index, any, any': function ArrayIndexAnyAny(value, index, replacement, defaultValue) {\n return matrix((0, _object.clone)(value)).subset(index, replacement, defaultValue).valueOf();\n },\n 'Matrix, Index, any': function MatrixIndexAny(value, index, replacement) {\n return value.clone().subset(index, replacement);\n },\n 'Matrix, Index, any, any': function MatrixIndexAnyAny(value, index, replacement, defaultValue) {\n return value.clone().subset(index, replacement, defaultValue);\n },\n 'string, Index, string': _setSubstring,\n 'string, Index, string, string': _setSubstring,\n 'Object, Index, any': _setObjectProperty\n });\n});\n/**\n * Retrieve a subset of a string\n * @param {string} str string from which to get a substring\n * @param {Index} index An index or list of indices (character positions)\n * @returns {string} substring\n * @private\n */\n\nexports.createSubset = createSubset;\n\nfunction _getSubstring(str, index) {\n if (!(0, _is.isIndex)(index)) {\n // TODO: better error message\n throw new TypeError('Index expected');\n }\n\n if (index.size().length !== 1) {\n throw new _DimensionError.DimensionError(index.size().length, 1);\n } // validate whether the range is out of range\n\n\n var strLen = str.length;\n (0, _array.validateIndex)(index.min()[0], strLen);\n (0, _array.validateIndex)(index.max()[0], strLen);\n var range = index.dimension(0);\n var substr = '';\n range.forEach(function (v) {\n substr += str.charAt(v);\n });\n return substr;\n}\n/**\n * Replace a substring in a string\n * @param {string} str string to be replaced\n * @param {Index} index An index or list of indices (character positions)\n * @param {string} replacement Replacement string\n * @param {string} [defaultValue] Default value to be uses when resizing\n * the string. is ' ' by default\n * @returns {string} result\n * @private\n */\n\n\nfunction _setSubstring(str, index, replacement, defaultValue) {\n if (!index || index.isIndex !== true) {\n // TODO: better error message\n throw new TypeError('Index expected');\n }\n\n if (index.size().length !== 1) {\n throw new _DimensionError.DimensionError(index.size().length, 1);\n }\n\n if (defaultValue !== undefined) {\n if (typeof defaultValue !== 'string' || defaultValue.length !== 1) {\n throw new TypeError('Single character expected as defaultValue');\n }\n } else {\n defaultValue = ' ';\n }\n\n var range = index.dimension(0);\n var len = range.size()[0];\n\n if (len !== replacement.length) {\n throw new _DimensionError.DimensionError(range.size()[0], replacement.length);\n } // validate whether the range is out of range\n\n\n var strLen = str.length;\n (0, _array.validateIndex)(index.min()[0]);\n (0, _array.validateIndex)(index.max()[0]); // copy the string into an array with characters\n\n var chars = [];\n\n for (var i = 0; i < strLen; i++) {\n chars[i] = str.charAt(i);\n }\n\n range.forEach(function (v, i) {\n chars[v] = replacement.charAt(i[0]);\n }); // initialize undefined characters with a space\n\n if (chars.length > strLen) {\n for (var _i = strLen - 1, _len = chars.length; _i < _len; _i++) {\n if (!chars[_i]) {\n chars[_i] = defaultValue;\n }\n }\n }\n\n return chars.join('');\n}\n/**\n * Retrieve a property from an object\n * @param {Object} object\n * @param {Index} index\n * @return {*} Returns the value of the property\n * @private\n */\n\n\nfunction _getObjectProperty(object, index) {\n if (index.size().length !== 1) {\n throw new _DimensionError.DimensionError(index.size(), 1);\n }\n\n var key = index.dimension(0);\n\n if (typeof key !== 'string') {\n throw new TypeError('String expected as index to retrieve an object property');\n }\n\n return (0, _customs.getSafeProperty)(object, key);\n}\n/**\n * Set a property on an object\n * @param {Object} object\n * @param {Index} index\n * @param {*} replacement\n * @return {*} Returns the updated object\n * @private\n */\n\n\nfunction _setObjectProperty(object, index, replacement) {\n if (index.size().length !== 1) {\n throw new _DimensionError.DimensionError(index.size(), 1);\n }\n\n var key = index.dimension(0);\n\n if (typeof key !== 'string') {\n throw new TypeError('String expected as index to retrieve an object property');\n } // clone the object, and apply the property to the clone\n\n\n var updated = (0, _object.clone)(object);\n (0, _customs.setSafeProperty)(updated, key, replacement);\n return updated;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTranspose = void 0;\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'transpose';\nvar dependencies = ['typed', 'matrix'];\nvar createTranspose = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n\n /**\n * Transpose a matrix. All values of the matrix are reflected over its\n * main diagonal. Only applicable to two dimensional matrices containing\n * a vector (i.e. having size `[1,n]` or `[n,1]`). One dimensional\n * vectors and scalars return the input unchanged.\n *\n * Syntax:\n *\n * math.transpose(x)\n *\n * Examples:\n *\n * const A = [[1, 2, 3], [4, 5, 6]]\n * math.transpose(A) // returns [[1, 4], [2, 5], [3, 6]]\n *\n * See also:\n *\n * diag, inv, subset, squeeze\n *\n * @param {Array | Matrix} x Matrix to be transposed\n * @return {Array | Matrix} The transposed matrix\n */\n return typed('transpose', {\n Array: function Array(x) {\n // use dense matrix implementation\n return this(matrix(x)).valueOf();\n },\n Matrix: function Matrix(x) {\n // matrix size\n var size = x.size(); // result\n\n var c; // process dimensions\n\n switch (size.length) {\n case 1:\n // vector\n c = x.clone();\n break;\n\n case 2:\n {\n // rows and columns\n var rows = size[0];\n var columns = size[1]; // check columns\n\n if (columns === 0) {\n // throw exception\n throw new RangeError('Cannot transpose a 2D matrix with no columns (size: ' + (0, _string.format)(size) + ')');\n } // process storage format\n\n\n switch (x.storage()) {\n case 'dense':\n c = _denseTranspose(x, rows, columns);\n break;\n\n case 'sparse':\n c = _sparseTranspose(x, rows, columns);\n break;\n }\n }\n break;\n\n default:\n // multi dimensional\n throw new RangeError('Matrix must be a vector or two dimensional (size: ' + (0, _string.format)(this._size) + ')');\n }\n\n return c;\n },\n // scalars\n any: function any(x) {\n return (0, _object.clone)(x);\n }\n });\n\n function _denseTranspose(m, rows, columns) {\n // matrix array\n var data = m._data; // transposed matrix data\n\n var transposed = [];\n var transposedRow; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // initialize row\n transposedRow = transposed[j] = []; // loop rows\n\n for (var i = 0; i < rows; i++) {\n // set data\n transposedRow[i] = (0, _object.clone)(data[i][j]);\n }\n } // return matrix\n\n\n return m.createDenseMatrix({\n data: transposed,\n size: [columns, rows],\n datatype: m._datatype\n });\n }\n\n function _sparseTranspose(m, rows, columns) {\n // matrix arrays\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // result matrices\n\n var cvalues = values ? [] : undefined;\n var cindex = [];\n var cptr = []; // row counts\n\n var w = [];\n\n for (var x = 0; x < rows; x++) {\n w[x] = 0;\n } // vars\n\n\n var p, l, j; // loop values in matrix\n\n for (p = 0, l = index.length; p < l; p++) {\n // number of values in row\n w[index[p]]++;\n } // cumulative sum\n\n\n var sum = 0; // initialize cptr with the cummulative sum of row counts\n\n for (var i = 0; i < rows; i++) {\n // update cptr\n cptr.push(sum); // update sum\n\n sum += w[i]; // update w\n\n w[i] = cptr[i];\n } // update cptr\n\n\n cptr.push(sum); // loop columns\n\n for (j = 0; j < columns; j++) {\n // values & index in column\n for (var k0 = ptr[j], k1 = ptr[j + 1], k = k0; k < k1; k++) {\n // C values & index\n var q = w[index[k]]++; // C[j, i] = A[i, j]\n\n cindex[q] = j; // check we need to process values (pattern matrix)\n\n if (values) {\n cvalues[q] = (0, _object.clone)(values[k]);\n }\n }\n } // return matrix\n\n\n return m.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [columns, rows],\n datatype: m._datatype\n });\n }\n});\nexports.createTranspose = createTranspose;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCtranspose = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ctranspose';\nvar dependencies = ['typed', 'transpose', 'conj'];\nvar createCtranspose = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n transpose = _ref.transpose,\n conj = _ref.conj;\n\n /**\n * Transpose and complex conjugate a matrix. All values of the matrix are\n * reflected over its main diagonal and then the complex conjugate is\n * taken. This is equivalent to complex conjugation for scalars and\n * vectors.\n *\n * Syntax:\n *\n * math.ctranspose(x)\n *\n * Examples:\n *\n * const A = [[1, 2, 3], [4, 5, math.complex(6,7)]]\n * math.ctranspose(A) // returns [[1, 4], [2, 5], [3, {re:6,im:7}]]\n *\n * See also:\n *\n * transpose, diag, inv, subset, squeeze\n *\n * @param {Array | Matrix} x Matrix to be ctransposed\n * @return {Array | Matrix} The ctransposed matrix\n */\n return typed(name, {\n any: function any(x) {\n return conj(transpose(x));\n }\n });\n});\nexports.createCtranspose = createCtranspose;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createZeros = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'zeros';\nvar dependencies = ['typed', 'config', 'matrix', 'BigNumber'];\nvar createZeros = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n BigNumber = _ref.BigNumber;\n\n /**\n * Create a matrix filled with zeros. The created matrix can have one or\n * multiple dimensions.\n *\n * Syntax:\n *\n * math.zeros(m)\n * math.zeros(m, format)\n * math.zeros(m, n)\n * math.zeros(m, n, format)\n * math.zeros([m, n])\n * math.zeros([m, n], format)\n *\n * Examples:\n *\n * math.zeros(3) // returns [0, 0, 0]\n * math.zeros(3, 2) // returns [[0, 0], [0, 0], [0, 0]]\n * math.zeros(3, 'dense') // returns [0, 0, 0]\n *\n * const A = [[1, 2, 3], [4, 5, 6]]\n * math.zeros(math.size(A)) // returns [[0, 0, 0], [0, 0, 0]]\n *\n * See also:\n *\n * ones, identity, size, range\n *\n * @param {...number | Array} size The size of each dimension of the matrix\n * @param {string} [format] The Matrix storage format\n *\n * @return {Array | Matrix} A matrix filled with zeros\n */\n return typed(name, {\n '': function _() {\n return config.matrix === 'Array' ? _zeros([]) : _zeros([], 'default');\n },\n // math.zeros(m, n, p, ..., format)\n // TODO: more accurate signature '...number | BigNumber, string' as soon as typed-function supports this\n '...number | BigNumber | string': function numberBigNumberString(size) {\n var last = size[size.length - 1];\n\n if (typeof last === 'string') {\n var format = size.pop();\n return _zeros(size, format);\n } else if (config.matrix === 'Array') {\n return _zeros(size);\n } else {\n return _zeros(size, 'default');\n }\n },\n Array: _zeros,\n Matrix: function Matrix(size) {\n var format = size.storage();\n return _zeros(size.valueOf(), format);\n },\n 'Array | Matrix, string': function ArrayMatrixString(size, format) {\n return _zeros(size.valueOf(), format);\n }\n });\n /**\n * Create an Array or Matrix with zeros\n * @param {Array} size\n * @param {string} [format='default']\n * @return {Array | Matrix}\n * @private\n */\n\n function _zeros(size, format) {\n var hasBigNumbers = _normalize(size);\n\n var defaultValue = hasBigNumbers ? new BigNumber(0) : 0;\n\n _validate(size);\n\n if (format) {\n // return a matrix\n var m = matrix(format);\n\n if (size.length > 0) {\n return m.resize(size, defaultValue);\n }\n\n return m;\n } else {\n // return an Array\n var arr = [];\n\n if (size.length > 0) {\n return (0, _array.resize)(arr, size, defaultValue);\n }\n\n return arr;\n }\n } // replace BigNumbers with numbers, returns true if size contained BigNumbers\n\n\n function _normalize(size) {\n var hasBigNumbers = false;\n size.forEach(function (value, index, arr) {\n if ((0, _is.isBigNumber)(value)) {\n hasBigNumbers = true;\n arr[index] = value.toNumber();\n }\n });\n return hasBigNumbers;\n } // validate arguments\n\n\n function _validate(size) {\n size.forEach(function (value) {\n if (typeof value !== 'number' || !(0, _number.isInteger)(value) || value < 0) {\n throw new Error('Parameters in function zeros must be positive integers');\n }\n });\n }\n}); // TODO: zeros contains almost the same code as ones. Reuse this?\n\nexports.createZeros = createZeros;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFft = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'fft';\nvar dependencies = ['typed', 'matrix', 'addScalar', 'multiplyScalar', 'divideScalar', 'exp', 'tau', 'i'];\nvar createFft = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n addScalar = _ref.addScalar,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n exp = _ref.exp,\n tau = _ref.tau,\n I = _ref.i;\n\n /**\n * Calculate N-dimensional fourier transform\n *\n * Syntax:\n *\n * math.fft(arr)\n *\n * Examples:\n *\n * math.fft([[1, 0], [1, 0]]) // returns [[{re:2, im:0}, {re:2, im:0}], [{re:0, im:0}, {re:0, im:0}]]\n *\n *\n * See Also:\n *\n * ifft\n *\n * @param {Array | Matrix} arr An array or matrix\n * @return {Array | Matrix} N-dimensional fourier transformation of the array\n */\n return typed(name, {\n Array: _ndFft,\n Matrix: function Matrix(matrix) {\n return matrix.create(_ndFft(matrix.toArray()));\n }\n });\n /**\n * Perform an N-dimensional Fourier transform\n *\n * @param {Array} arr The array\n * @return {Array} resulting array\n */\n\n function _ndFft(arr) {\n var size = (0, _array.arraySize)(arr);\n if (size.length === 1) return _fft(arr, size[0]); // ndFft along dimension 1,...,N-1 then 1dFft along dimension 0\n\n return _1dFft(arr.map(function (slice) {\n return _ndFft(slice, size.slice(1));\n }), 0);\n }\n /**\n * Perform an 1-dimensional Fourier transform\n *\n * @param {Array} arr The array\n * @param {number} dim dimension of the array to perform on\n * @return {Array} resulting array\n */\n\n\n function _1dFft(arr, dim) {\n var size = (0, _array.arraySize)(arr);\n if (dim !== 0) return new Array(size[0]).fill(0).map(function (_, i) {\n return _1dFft(arr[i], dim - 1);\n });\n if (size.length === 1) return _fft(arr);\n\n function _transpose(arr) {\n // Swap first 2 dimensions\n var size = (0, _array.arraySize)(arr);\n return new Array(size[1]).fill(0).map(function (_, j) {\n return new Array(size[0]).fill(0).map(function (_, i) {\n return arr[i][j];\n });\n });\n }\n\n return _transpose(_1dFft(_transpose(arr), 1));\n }\n /**\n * Perform an 1-dimensional Fourier transform\n *\n * @param {Array} arr The array\n * @return {Array} resulting array\n */\n\n\n function _fft(arr) {\n var len = arr.length;\n if (len === 1) return [arr[0]];\n\n if (len % 2 === 0) {\n var ret = [].concat((0, _toConsumableArray2.default)(_fft(arr.filter(function (_, i) {\n return i % 2 === 0;\n }), len / 2)), (0, _toConsumableArray2.default)(_fft(arr.filter(function (_, i) {\n return i % 2 === 1;\n }), len / 2)));\n\n for (var k = 0; k < len / 2; k++) {\n var p = ret[k];\n var q = multiplyScalar(ret[k + len / 2], exp(multiplyScalar(multiplyScalar(tau, I), divideScalar(-k, len))));\n ret[k] = addScalar(p, q);\n ret[k + len / 2] = addScalar(p, multiplyScalar(-1, q));\n }\n\n return ret;\n }\n\n throw new Error('Can only calculate FFT of power-of-two size');\n }\n});\nexports.createFft = createFft;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIfft = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'ifft';\nvar dependencies = ['typed', 'fft', 'dotDivide', 'conj'];\nvar createIfft = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n fft = _ref.fft,\n dotDivide = _ref.dotDivide,\n conj = _ref.conj;\n\n /**\n * Calculate N-dimensional inverse fourier transform\n *\n * Syntax:\n *\n * math.ifft(arr)\n *\n * Examples:\n *\n * math.ifft([[2, 2], [0, 0]]) // returns [[{re:1, im:0}, {re:0, im:0}], [{re:1, im:0}, {re:0, im:0}]]\n *\n * See Also:\n *\n * fft\n *\n * @param {Array | Matrix} arr An array or matrix\n * @return {Array | Matrix} N-dimensional fourier transformation of the array\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(arr) {\n var size = (0, _is.isMatrix)(arr) ? arr.size() : (0, _array.arraySize)(arr);\n return dotDivide(conj(fft(conj(arr))), size.reduce(function (acc, curr) {\n return acc * curr;\n }, 1));\n }\n });\n});\nexports.createIfft = createIfft;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createErf = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\n/* eslint-disable no-loss-of-precision */\nvar name = 'erf';\nvar dependencies = ['typed'];\nvar createErf = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the erf function of a value using a rational Chebyshev\n * approximations for different intervals of x.\n *\n * This is a translation of W. J. Cody's Fortran implementation from 1987\n * ( https://www.netlib.org/specfun/erf ). See the AMS publication\n * \"Rational Chebyshev Approximations for the Error Function\" by W. J. Cody\n * for an explanation of this process.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.erf(x)\n *\n * Examples:\n *\n * math.erf(0.2) // returns 0.22270258921047847\n * math.erf(-0.5) // returns -0.5204998778130465\n * math.erf(4) // returns 0.9999999845827421\n *\n * @param {number | Array | Matrix} x A real number\n * @return {number | Array | Matrix} The erf of `x`\n */\n return typed('name', {\n number: function number(x) {\n var y = Math.abs(x);\n\n if (y >= MAX_NUM) {\n return (0, _number.sign)(x);\n }\n\n if (y <= THRESH) {\n return (0, _number.sign)(x) * erf1(y);\n }\n\n if (y <= 4.0) {\n return (0, _number.sign)(x) * (1 - erfc2(y));\n }\n\n return (0, _number.sign)(x) * (1 - erfc3(y));\n },\n 'Array | Matrix': function ArrayMatrix(n) {\n return (0, _collection.deepMap)(n, this);\n } // TODO: For complex numbers, use the approximation for the Faddeeva function\n // from \"More Efficient Computation of the Complex Error Function\" (AMS)\n\n });\n /**\n * Approximates the error function erf() for x <= 0.46875 using this function:\n * n\n * erf(x) = x * sum (p_j * x^(2j)) / (q_j * x^(2j))\n * j=0\n */\n\n function erf1(y) {\n var ysq = y * y;\n var xnum = P[0][4] * ysq;\n var xden = ysq;\n var i;\n\n for (i = 0; i < 3; i += 1) {\n xnum = (xnum + P[0][i]) * ysq;\n xden = (xden + Q[0][i]) * ysq;\n }\n\n return y * (xnum + P[0][3]) / (xden + Q[0][3]);\n }\n /**\n * Approximates the complement of the error function erfc() for\n * 0.46875 <= x <= 4.0 using this function:\n * n\n * erfc(x) = e^(-x^2) * sum (p_j * x^j) / (q_j * x^j)\n * j=0\n */\n\n\n function erfc2(y) {\n var xnum = P[1][8] * y;\n var xden = y;\n var i;\n\n for (i = 0; i < 7; i += 1) {\n xnum = (xnum + P[1][i]) * y;\n xden = (xden + Q[1][i]) * y;\n }\n\n var result = (xnum + P[1][7]) / (xden + Q[1][7]);\n var ysq = parseInt(y * 16) / 16;\n var del = (y - ysq) * (y + ysq);\n return Math.exp(-ysq * ysq) * Math.exp(-del) * result;\n }\n /**\n * Approximates the complement of the error function erfc() for x > 4.0 using\n * this function:\n *\n * erfc(x) = (e^(-x^2) / x) * [ 1/sqrt(pi) +\n * n\n * 1/(x^2) * sum (p_j * x^(-2j)) / (q_j * x^(-2j)) ]\n * j=0\n */\n\n\n function erfc3(y) {\n var ysq = 1 / (y * y);\n var xnum = P[2][5] * ysq;\n var xden = ysq;\n var i;\n\n for (i = 0; i < 4; i += 1) {\n xnum = (xnum + P[2][i]) * ysq;\n xden = (xden + Q[2][i]) * ysq;\n }\n\n var result = ysq * (xnum + P[2][4]) / (xden + Q[2][4]);\n result = (SQRPI - result) / y;\n ysq = parseInt(y * 16) / 16;\n var del = (y - ysq) * (y + ysq);\n return Math.exp(-ysq * ysq) * Math.exp(-del) * result;\n }\n});\n/**\n * Upper bound for the first approximation interval, 0 <= x <= THRESH\n * @constant\n */\n\nexports.createErf = createErf;\nvar THRESH = 0.46875;\n/**\n * Constant used by W. J. Cody's Fortran77 implementation to denote sqrt(pi)\n * @constant\n */\n\nvar SQRPI = 5.6418958354775628695e-1;\n/**\n * Coefficients for each term of the numerator sum (p_j) for each approximation\n * interval (see W. J. Cody's paper for more details)\n * @constant\n */\n\nvar P = [[3.16112374387056560e00, 1.13864154151050156e02, 3.77485237685302021e02, 3.20937758913846947e03, 1.85777706184603153e-1], [5.64188496988670089e-1, 8.88314979438837594e00, 6.61191906371416295e01, 2.98635138197400131e02, 8.81952221241769090e02, 1.71204761263407058e03, 2.05107837782607147e03, 1.23033935479799725e03, 2.15311535474403846e-8], [3.05326634961232344e-1, 3.60344899949804439e-1, 1.25781726111229246e-1, 1.60837851487422766e-2, 6.58749161529837803e-4, 1.63153871373020978e-2]];\n/**\n * Coefficients for each term of the denominator sum (q_j) for each approximation\n * interval (see W. J. Cody's paper for more details)\n * @constant\n */\n\nvar Q = [[2.36012909523441209e01, 2.44024637934444173e02, 1.28261652607737228e03, 2.84423683343917062e03], [1.57449261107098347e01, 1.17693950891312499e02, 5.37181101862009858e02, 1.62138957456669019e03, 3.29079923573345963e03, 4.36261909014324716e03, 3.43936767414372164e03, 1.23033935480374942e03], [2.56852019228982242e00, 1.87295284992346047e00, 5.27905102951428412e-1, 6.05183413124413191e-2, 2.33520497626869185e-3]];\n/**\n * Maximum/minimum safe numbers to input to erf() (in ES6+, this number is\n * Number.[MAX|MIN]_SAFE_INTEGER). erf() for all numbers beyond this limit will\n * return 1\n */\n\nvar MAX_NUM = Math.pow(2, 53);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMode = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'mode';\nvar dependencies = ['typed', 'isNaN', 'isNumeric'];\nvar createMode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n isNaN = _ref.isNaN,\n isNumeric = _ref.isNumeric;\n\n /**\n * Computes the mode of a set of numbers or a list with values(numbers or characters).\n * If there are more than one modes, it returns a list of those values.\n *\n * Syntax:\n *\n * math.mode(a, b, c, ...)\n * math.mode(A)\n *\n * Examples:\n *\n * math.mode(2, 1, 4, 3, 1) // returns [1]\n * math.mode([1, 2.7, 3.2, 4, 2.7]) // returns [2.7]\n * math.mode(1, 4, 6, 1, 6) // returns [1, 6]\n * math.mode('a','a','b','c') // returns [\"a\"]\n * math.mode(1, 1.5, 'abc') // returns [1, 1.5, \"abc\"]\n *\n * See also:\n *\n * median,\n * mean\n *\n * @param {... *} args A single matrix\n * @return {*} The mode of all values\n */\n return typed(name, {\n 'Array | Matrix': _mode,\n '...': function _(args) {\n return _mode(args);\n }\n });\n /**\n * Calculates the mode in an 1-dimensional array\n * @param {Array} values\n * @return {Array} mode\n * @private\n */\n\n function _mode(values) {\n values = (0, _array.flatten)(values.valueOf());\n var num = values.length;\n\n if (num === 0) {\n throw new Error('Cannot calculate mode of an empty array');\n }\n\n var count = {};\n var mode = [];\n var max = 0;\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n\n if (isNumeric(value) && isNaN(value)) {\n throw new Error('Cannot calculate mode of an array containing NaN values');\n }\n\n if (!(value in count)) {\n count[value] = 0;\n }\n\n count[value]++;\n\n if (count[value] === max) {\n mode.push(value);\n } else if (count[value] > max) {\n max = count[value];\n mode = [value];\n }\n }\n\n return mode;\n }\n});\nexports.createMode = createMode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.improveErrorMessage = improveErrorMessage;\n\nvar _is = require(\"../../../utils/is.js\");\n\n/**\n * Improve error messages for statistics functions. Errors are typically\n * thrown in an internally used function like larger, causing the error\n * not to mention the function (like max) which is actually used by the user.\n *\n * @param {Error} err\n * @param {String} fnName\n * @param {*} [value]\n * @return {Error}\n */\nfunction improveErrorMessage(err, fnName, value) {\n // TODO: add information with the index (also needs transform in expression parser)\n var details;\n\n if (String(err).indexOf('Unexpected type') !== -1) {\n details = arguments.length > 2 ? ' (type: ' + (0, _is.typeOf)(value) + ', value: ' + JSON.stringify(value) + ')' : ' (type: ' + err.data.actual + ')';\n return new TypeError('Cannot calculate ' + fnName + ', unexpected type of argument' + details);\n }\n\n if (String(err).indexOf('complex numbers') !== -1) {\n details = arguments.length > 2 ? ' (type: ' + (0, _is.typeOf)(value) + ', value: ' + JSON.stringify(value) + ')' : '';\n return new TypeError('Cannot calculate ' + fnName + ', no ordering relation is defined for complex numbers' + details);\n }\n\n return err;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createProd = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'prod';\nvar dependencies = ['typed', 'config', 'multiplyScalar', 'numeric'];\nvar createProd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n multiplyScalar = _ref.multiplyScalar,\n numeric = _ref.numeric;\n\n /**\n * Compute the product of a matrix or a list with values.\n * In case of a (multi dimensional) array or matrix, the sum of all\n * elements will be calculated.\n *\n * Syntax:\n *\n * math.prod(a, b, c, ...)\n * math.prod(A)\n *\n * Examples:\n *\n * math.multiply(2, 3) // returns 6\n * math.prod(2, 3) // returns 6\n * math.prod(2, 3, 4) // returns 24\n * math.prod([2, 3, 4]) // returns 24\n * math.prod([[2, 5], [4, 3]]) // returns 120\n *\n * See also:\n *\n * mean, median, min, max, sum, std, variance\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The product of all values\n */\n return typed(name, {\n // prod([a, b, c, d, ...])\n 'Array | Matrix': _prod,\n // prod([a, b, c, d, ...], dim)\n 'Array | Matrix, number | BigNumber': function ArrayMatrixNumberBigNumber(array, dim) {\n // TODO: implement prod(A, dim)\n throw new Error('prod(A, dim) is not yet supported'); // return reduce(arguments[0], arguments[1], math.prod)\n },\n // prod(a, b, c, d, ...)\n '...': function _(args) {\n return _prod(args);\n }\n });\n /**\n * Recursively calculate the product of an n-dimensional array\n * @param {Array} array\n * @return {number} prod\n * @private\n */\n\n function _prod(array) {\n var prod;\n (0, _collection.deepForEach)(array, function (value) {\n try {\n prod = prod === undefined ? value : multiplyScalar(prod, value);\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'prod', value);\n }\n }); // make sure returning numeric value: parse a string into a numeric value\n\n if (typeof prod === 'string') {\n prod = numeric(prod, config.number);\n }\n\n if (prod === undefined) {\n throw new Error('Cannot calculate prod of an empty array');\n }\n\n return prod;\n }\n});\nexports.createProd = createProd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFormat = void 0;\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'format';\nvar dependencies = ['typed'];\nvar createFormat = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Format a value of any type into a string.\n *\n * Syntax:\n *\n * math.format(value)\n * math.format(value, options)\n * math.format(value, precision)\n * math.format(value, callback)\n *\n * Where:\n *\n * - `value: *`\n * The value to be formatted\n * - `options: Object`\n * An object with formatting options. Available options:\n * - `notation: string`\n * Number notation. Choose from:\n * - 'fixed'\n * Always use regular number notation.\n * For example '123.40' and '14000000'\n * - 'exponential'\n * Always use exponential notation.\n * For example '1.234e+2' and '1.4e+7'\n * - 'engineering'\n * Always use engineering notation: always have exponential notation,\n * and select the exponent to be a multiple of 3.\n * For example '123.4e+0' and '14.0e+6'\n * - 'auto' (default)\n * Regular number notation for numbers having an absolute value between\n * `lower` and `upper` bounds, and uses exponential notation elsewhere.\n * Lower bound is included, upper bound is excluded.\n * For example '123.4' and '1.4e7'.\n * - 'bin', 'oct, or 'hex'\n * Format the number using binary, octal, or hexadecimal notation.\n * For example '0b1101' and '0x10fe'.\n * - `wordSize: number`\n * The word size in bits to use for formatting in binary, octal, or\n * hexadecimal notation. To be used only with 'bin', 'oct', or 'hex'\n * values for 'notation' option. When this option is defined the value\n * is formatted as a signed twos complement integer of the given word\n * size and the size suffix is appended to the output.\n * For example format(-1, {notation: 'hex', wordSize: 8}) === '0xffi8'.\n * Default value is undefined.\n * - `precision: number`\n * Limit the number of digits of the formatted value.\n * For regular numbers, must be a number between 0 and 16.\n * For bignumbers, the maximum depends on the configured precision,\n * see function `config()`.\n * In case of notations 'exponential', 'engineering', and 'auto', `precision`\n * defines the total number of significant digits returned.\n * In case of notation 'fixed', `precision` defines the number of\n * significant digits after the decimal point.\n * `precision` is undefined by default.\n * - `lowerExp: number`\n * Exponent determining the lower boundary for formatting a value with\n * an exponent when `notation='auto`. Default value is `-3`.\n * - `upperExp: number`\n * Exponent determining the upper boundary for formatting a value with\n * an exponent when `notation='auto`. Default value is `5`.\n * - `fraction: string`. Available values: 'ratio' (default) or 'decimal'.\n * For example `format(fraction(1, 3))` will output '1/3' when 'ratio' is\n * configured, and will output `0.(3)` when 'decimal' is configured.\n * - `truncate: number`. Specifies the maximum allowed length of the\n * returned string. If it would have been longer, the excess characters\n * are deleted and replaced with `'...'`.\n * - `callback: function`\n * A custom formatting function, invoked for all numeric elements in `value`,\n * for example all elements of a matrix, or the real and imaginary\n * parts of a complex number. This callback can be used to override the\n * built-in numeric notation with any type of formatting. Function `callback`\n * is called with `value` as parameter and must return a string.\n *\n * When `value` is an Object:\n *\n * - When the object contains a property `format` being a function, this function\n * is invoked as `value.format(options)` and the result is returned.\n * - When the object has its own `toString` method, this method is invoked\n * and the result is returned.\n * - In other cases the function will loop over all object properties and\n * return JSON object notation like '{\"a\": 2, \"b\": 3}'.\n *\n * When value is a function:\n *\n * - When the function has a property `syntax`, it returns this\n * syntax description.\n * - In other cases, a string `'function'` is returned.\n *\n * Examples:\n *\n * math.format(6.4) // returns '6.4'\n * math.format(1240000) // returns '1.24e6'\n * math.format(1/3) // returns '0.3333333333333333'\n * math.format(1/3, 3) // returns '0.333'\n * math.format(21385, 2) // returns '21000'\n * math.format(12e8, {notation: 'fixed'}) // returns '1200000000'\n * math.format(2.3, {notation: 'fixed', precision: 4}) // returns '2.3000'\n * math.format(52.8, {notation: 'exponential'}) // returns '5.28e+1'\n * math.format(12400,{notation: 'engineering'}) // returns '12.400e+3'\n * math.format(2000, {lowerExp: -2, upperExp: 2}) // returns '2e+3'\n *\n * function formatCurrency(value) {\n * // return currency notation with two digits:\n * return '$' + value.toFixed(2)\n *\n * // you could also use math.format inside the callback:\n * // return '$' + math.format(value, {notation: 'fixed', precision: 2})\n * }\n * math.format([2.1, 3, 0.016], formatCurrency) // returns '[$2.10, $3.00, $0.02]'\n *\n * See also:\n *\n * print\n *\n * @param {*} value Value to be stringified\n * @param {Object | Function | number} [options] Formatting options\n * @return {string} The formatted value\n */\n return typed(name, {\n any: _string.format,\n 'any, Object | function | number': _string.format\n });\n});\nexports.createFormat = createFormat;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBin = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'bin';\nvar dependencies = ['typed', 'format'];\n/**\n * Format a number as binary.\n *\n * Syntax:\n *\n * math.bin(value)\n *\n * Examples:\n *\n * //the following outputs \"0b10\"\n * math.bin(2)\n *\n * See also:\n *\n * oct\n * hex\n *\n * @param {number} value Value to be stringified\n * @param {number} wordSize Optional word size (see `format`)\n * @return {string} The formatted value\n */\n\nvar createBin = (0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n format = _ref.format;\n return typed(name, {\n 'number | BigNumber': function numberBigNumber(n) {\n return format(n, {\n notation: 'bin'\n });\n },\n 'number | BigNumber, number': function numberBigNumberNumber(n, wordSize) {\n return format(n, {\n notation: 'bin',\n wordSize: wordSize\n });\n }\n });\n});\nexports.createBin = createBin;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createOct = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'oct';\nvar dependencies = ['typed', 'format'];\n/**\n * Format a number as octal.\n *\n * Syntax:\n *\n * math.oct(value)\n *\n * Examples:\n *\n * //the following outputs \"0o70\"\n * math.oct(56)\n *\n * See also:\n *\n * bin\n * hex\n *\n * @param {number} value Value to be stringified\n * @param {number} wordSize Optional word size (see `format`)\n * @return {string} The formatted value\n */\n\nvar createOct = (0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n format = _ref.format;\n return typed(name, {\n 'number | BigNumber': function numberBigNumber(n) {\n return format(n, {\n notation: 'oct'\n });\n },\n 'number | BigNumber, number': function numberBigNumberNumber(n, wordSize) {\n return format(n, {\n notation: 'oct',\n wordSize: wordSize\n });\n }\n });\n});\nexports.createOct = createOct;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createHex = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'hex';\nvar dependencies = ['typed', 'format'];\n/**\n * Format a number as hexadecimal.\n *\n * Syntax:\n *\n * math.hex(value)\n *\n * Examples:\n *\n * //the following outputs \"0xF0\"\n * math.hex(240)\n *\n * See also:\n *\n * oct\n * bin\n *\n * @param {number} value Value to be stringified\n * @param {number} wordSize Optional word size (see `format`)\n * @return {string} The formatted value\n */\n\nvar createHex = (0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n format = _ref.format;\n return typed(name, {\n 'number | BigNumber': function numberBigNumber(n) {\n return format(n, {\n notation: 'hex'\n });\n },\n 'number | BigNumber, number': function numberBigNumberNumber(n, wordSize) {\n return format(n, {\n notation: 'hex',\n wordSize: wordSize\n });\n }\n });\n});\nexports.createHex = createHex;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createPrint = void 0;\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'print';\nvar dependencies = ['typed'];\nvar createPrint = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Interpolate values into a string template.\n *\n * Syntax:\n *\n * math.print(template, values)\n * math.print(template, values, precision)\n * math.print(template, values, options)\n *\n * Example usage:\n *\n * // the following outputs: 'Lucy is 5 years old'\n * math.print('Lucy is $age years old', {age: 5})\n *\n * // the following outputs: 'The value of pi is 3.141592654'\n * math.print('The value of pi is $pi', {pi: math.pi}, 10)\n *\n * // the following outputs: 'hello Mary! The date is 2013-03-23'\n * math.print('Hello $user.name! The date is $date', {\n * user: {\n * name: 'Mary',\n * },\n * date: new Date(2013, 2, 23).toISOString().substring(0, 10)\n * })\n *\n * // the following outputs: 'My favorite fruits are apples and bananas !'\n * math.print('My favorite fruits are $0 and $1 !', [\n * 'apples',\n * 'bananas'\n * ])\n *\n * See also:\n *\n * format\n *\n * @param {string} template A string containing variable placeholders.\n * @param {Object | Array | Matrix} values An object or array containing variables\n * which will be filled in in the template.\n * @param {number | Object} [options] Formatting options,\n * or the number of digits to format numbers.\n * See function math.format for a description\n * of all options.\n * @return {string} Interpolated string\n */\n return typed(name, {\n // note: Matrix will be converted automatically to an Array\n 'string, Object | Array': _print,\n 'string, Object | Array, number | Object': _print\n });\n});\n/**\n * Interpolate values into a string template.\n * @param {string} template\n * @param {Object} values\n * @param {number | Object} [options]\n * @returns {string} Interpolated string\n * @private\n */\n\nexports.createPrint = createPrint;\n\nfunction _print(template, values, options) {\n return template.replace(/\\$([\\w.]+)/g, function (original, key) {\n var keys = key.split('.');\n var value = values[keys.shift()];\n\n while (keys.length && value !== undefined) {\n var k = keys.shift();\n value = k ? value[k] : value + '.';\n }\n\n if (value !== undefined) {\n if (!(0, _is.isString)(value)) {\n return (0, _string.format)(value, options);\n } else {\n return value;\n }\n }\n\n return original;\n });\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTo = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'to';\nvar dependencies = ['typed', 'matrix'];\nvar createTo = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n var algorithm13 = (0, _algorithm.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm2.createAlgorithm14)({\n typed: typed\n });\n /**\n * Change the unit of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.to(x, unit)\n *\n * Examples:\n *\n * math.to(math.unit('2 inch'), 'cm') // returns Unit 5.08 cm\n * math.to(math.unit('2 inch'), math.unit(null, 'cm')) // returns Unit 5.08 cm\n * math.to(math.unit(16, 'bytes'), 'bits') // returns Unit 128 bits\n *\n * See also:\n *\n * unit\n *\n * @param {Unit | Array | Matrix} x The unit to be converted.\n * @param {Unit | Array | Matrix} unit New unit. Can be a string like \"cm\"\n * or a unit without value.\n * @return {Unit | Array | Matrix} value with changed, fixed unit.\n */\n\n return typed(name, {\n 'Unit, Unit | string': function UnitUnitString(x, unit) {\n return x.to(unit);\n },\n 'Matrix, Matrix': function MatrixMatrix(x, y) {\n // SparseMatrix does not support Units\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'Matrix, any': function MatrixAny(x, y) {\n // SparseMatrix does not support Units\n return algorithm14(x, y, this, false);\n },\n 'any, Matrix': function anyMatrix(x, y) {\n // SparseMatrix does not support Units\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createTo = createTo;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIsPrime = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'isPrime';\nvar dependencies = ['typed'];\nvar createIsPrime = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Test whether a value is prime: has no divisors other than itself and one.\n * The function supports type `number`, `bignumber`.\n *\n * The function is evaluated element-wise in case of Array or Matrix input.\n *\n * Syntax:\n *\n * math.isPrime(x)\n *\n * Examples:\n *\n * math.isPrime(3) // returns true\n * math.isPrime(-2) // returns false\n * math.isPrime(0) // returns false\n * math.isPrime(-0) // returns false\n * math.isPrime(0.5) // returns false\n * math.isPrime('2') // returns true\n * math.isPrime([2, 17, 100]) // returns [true, true, false]\n *\n * See also:\n *\n * isNumeric, isZero, isNegative, isInteger\n *\n * @param {number | BigNumber | Array | Matrix} x Value to be tested\n * @return {boolean} Returns true when `x` is larger than zero.\n * Throws an error in case of an unknown data type.\n */\n return typed(name, {\n number: function number(x) {\n if (x * 0 !== 0) {\n return false;\n }\n\n if (x <= 3) {\n return x > 1;\n }\n\n if (x % 2 === 0 || x % 3 === 0) {\n return false;\n }\n\n for (var i = 5; i * i <= x; i += 6) {\n if (x % i === 0 || x % (i + 2) === 0) {\n return false;\n }\n }\n\n return true;\n },\n BigNumber: function BigNumber(n) {\n if (n.toNumber() * 0 !== 0) {\n return false;\n }\n\n if (n.lte(3)) return n.gt(1);\n if (n.mod(2).eq(0) || n.mod(3).eq(0)) return false;\n\n if (n.lt(Math.pow(2, 32))) {\n var x = n.toNumber();\n\n for (var i = 5; i * i <= x; i += 6) {\n if (x % i === 0 || x % (i + 2) === 0) {\n return false;\n }\n }\n\n return true;\n }\n\n function modPow(base, exponent, modulus) {\n // exponent can be huge, use non-recursive variant\n var accumulator = 1;\n\n while (!exponent.eq(0)) {\n if (exponent.mod(2).eq(0)) {\n exponent = exponent.div(2);\n base = base.mul(base).mod(modulus);\n } else {\n exponent = exponent.sub(1);\n accumulator = base.mul(accumulator).mod(modulus);\n }\n }\n\n return accumulator;\n } // https://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test#Deterministic_variants\n\n\n var Decimal = n.constructor.clone({\n precision: n.toFixed(0).length * 2\n });\n n = new Decimal(n);\n var r = 0;\n var d = n.sub(1);\n\n while (d.mod(2).eq(0)) {\n d = d.div(2);\n r += 1;\n }\n\n var bases = null; // https://en.wikipedia.org/wiki/Miller–Rabin_primality_test#Testing_against_small_sets_of_bases\n\n if (n.lt('3317044064679887385961981')) {\n bases = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41].filter(function (x) {\n return x < n;\n });\n } else {\n var max = Math.min(n.toNumber() - 2, Math.floor(2 * Math.pow(n.toFixed(0).length * Math.log(10), 2)));\n bases = [];\n\n for (var _i = 2; _i <= max; _i += 1) {\n bases.push(max);\n }\n }\n\n for (var _i2 = 0; _i2 < bases.length; _i2 += 1) {\n var a = bases[_i2];\n var adn = modPow(n.sub(n).add(a), d, n);\n\n if (!adn.eq(1)) {\n for (var _i3 = 0, _x = adn; !_x.eq(n.sub(1)); _i3 += 1, _x = _x.mul(_x).mod(n)) {\n if (_i3 === r - 1) {\n return false;\n }\n }\n }\n }\n\n return true;\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createIsPrime = createIsPrime;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNumeric = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _noop = require(\"../../utils/noop.js\");\n\nvar name = 'numeric';\nvar dependencies = ['number', '?bignumber', '?fraction'];\nvar createNumeric = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var _number = _ref.number,\n bignumber = _ref.bignumber,\n fraction = _ref.fraction;\n var validInputTypes = {\n string: true,\n number: true,\n BigNumber: true,\n Fraction: true\n }; // Load the conversion functions for each output type\n\n var validOutputTypes = {\n number: function number(x) {\n return _number(x);\n },\n BigNumber: bignumber ? function (x) {\n return bignumber(x);\n } : _noop.noBignumber,\n Fraction: fraction ? function (x) {\n return fraction(x);\n } : _noop.noFraction\n };\n /**\n * Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.\n *\n * Syntax:\n *\n * math.numeric(x)\n *\n * Examples:\n *\n * math.numeric('4') // returns number 4\n * math.numeric('4', 'number') // returns number 4\n * math.numeric('4', 'BigNumber') // returns BigNumber 4\n * math.numeric('4', 'Fraction') // returns Fraction 4\n * math.numeric(4, 'Fraction') // returns Fraction 4\n * math.numeric(math.fraction(2, 5), 'number') // returns number 0.4\n *\n * See also:\n *\n * number, fraction, bignumber, string, format\n *\n * @param {string | number | BigNumber | Fraction } value\n * A numeric value or a string containing a numeric value\n * @param {string} outputType\n * Desired numeric output type.\n * Available values: 'number', 'BigNumber', or 'Fraction'\n * @return {number | BigNumber | Fraction}\n * Returns an instance of the numeric in the requested type\n */\n\n return function numeric(value, outputType) {\n var inputType = (0, _is.typeOf)(value);\n\n if (!(inputType in validInputTypes)) {\n throw new TypeError('Cannot convert ' + value + ' of type \"' + inputType + '\"; valid input types are ' + Object.keys(validInputTypes).join(', '));\n }\n\n if (!(outputType in validOutputTypes)) {\n throw new TypeError('Cannot convert ' + value + ' to type \"' + outputType + '\"; valid output types are ' + Object.keys(validOutputTypes).join(', '));\n }\n\n if (outputType === inputType) {\n return value;\n } else {\n return validOutputTypes[outputType](value);\n }\n };\n});\nexports.createNumeric = createNumeric;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDivideScalar = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'divideScalar';\nvar dependencies = ['typed', 'numeric'];\nvar createDivideScalar = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n numeric = _ref.numeric;\n\n /**\n * Divide two scalar values, `x / y`.\n * This function is meant for internal use: it is used by the public functions\n * `divide` and `inv`.\n *\n * This function does not support collections (Array or Matrix).\n *\n * @param {number | BigNumber | Fraction | Complex | Unit} x Numerator\n * @param {number | BigNumber | Fraction | Complex} y Denominator\n * @return {number | BigNumber | Fraction | Complex | Unit} Quotient, `x / y`\n * @private\n */\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return x / y;\n },\n 'Complex, Complex': function ComplexComplex(x, y) {\n return x.div(y);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.div(y);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.div(y);\n },\n 'Unit, number | Fraction | BigNumber': function UnitNumberFractionBigNumber(x, y) {\n var res = x.clone(); // TODO: move the divide function to Unit.js, it uses internals of Unit\n\n var one = numeric(1, (0, _is.typeOf)(y));\n res.value = this(res.value === null ? res._normalize(one) : res.value, y);\n return res;\n },\n 'number | Fraction | BigNumber, Unit': function numberFractionBigNumberUnit(x, y) {\n var res = y.clone();\n res = res.pow(-1); // TODO: move the divide function to Unit.js, it uses internals of Unit\n\n var one = numeric(1, (0, _is.typeOf)(x));\n res.value = this(x, y.value === null ? y._normalize(one) : y.value);\n return res;\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n return x.divide(y);\n }\n });\n});\nexports.createDivideScalar = createDivideScalar;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createPow = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'pow';\nvar dependencies = ['typed', 'config', 'identity', 'multiply', 'matrix', 'inv', 'fraction', 'number', 'Complex'];\nvar createPow = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n identity = _ref.identity,\n multiply = _ref.multiply,\n matrix = _ref.matrix,\n inv = _ref.inv,\n number = _ref.number,\n fraction = _ref.fraction,\n Complex = _ref.Complex;\n\n /**\n * Calculates the power of x to y, `x ^ y`.\n *\n * Matrix exponentiation is supported for square matrices `x` and integers `y`:\n * when `y` is nonnegative, `x` may be any square matrix; and when `y` is\n * negative, `x` must be invertible, and then this function returns\n * inv(x)^(-y).\n *\n * For cubic roots of negative numbers, the function returns the principal\n * root by default. In order to let the function return the real root,\n * math.js can be configured with `math.config({predictable: true})`.\n * To retrieve all cubic roots of a value, use `math.cbrt(x, true)`.\n *\n * Syntax:\n *\n * math.pow(x, y)\n *\n * Examples:\n *\n * math.pow(2, 3) // returns number 8\n *\n * const a = math.complex(2, 3)\n * math.pow(a, 2) // returns Complex -5 + 12i\n *\n * const b = [[1, 2], [4, 3]]\n * math.pow(b, 2) // returns Array [[9, 8], [16, 17]]\n *\n * const c = [[1, 2], [4, 3]]\n * math.pow(c, -1) // returns Array [[-0.6, 0.4], [0.8, -0.2]]\n *\n * See also:\n *\n * multiply, sqrt, cbrt, nthRoot\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x The base\n * @param {number | BigNumber | Complex} y The exponent\n * @return {number | BigNumber | Complex | Array | Matrix} The value of `x` to the power `y`\n */\n return typed(name, {\n 'number, number': _pow,\n 'Complex, Complex': function ComplexComplex(x, y) {\n return x.pow(y);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n if (y.isInteger() || x >= 0 || config.predictable) {\n return x.pow(y);\n } else {\n return new Complex(x.toNumber(), 0).pow(y.toNumber(), 0);\n }\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n var result = x.pow(y);\n\n if (result != null) {\n return result;\n }\n\n if (config.predictable) {\n throw new Error('Result of pow is non-rational and cannot be expressed as a fraction');\n } else {\n return _pow(x.valueOf(), y.valueOf());\n }\n },\n 'Array, number': _powArray,\n 'Array, BigNumber': function ArrayBigNumber(x, y) {\n return _powArray(x, y.toNumber());\n },\n 'Matrix, number': _powMatrix,\n 'Matrix, BigNumber': function MatrixBigNumber(x, y) {\n return _powMatrix(x, y.toNumber());\n },\n 'Unit, number | BigNumber': function UnitNumberBigNumber(x, y) {\n return x.pow(y);\n }\n });\n /**\n * Calculates the power of x to y, x^y, for two numbers.\n * @param {number} x\n * @param {number} y\n * @return {number | Complex} res\n * @private\n */\n\n function _pow(x, y) {\n // Alternatively could define a 'realmode' config option or something, but\n // 'predictable' will work for now\n if (config.predictable && !(0, _number.isInteger)(y) && x < 0) {\n // Check to see if y can be represented as a fraction\n try {\n var yFrac = fraction(y);\n var yNum = number(yFrac);\n\n if (y === yNum || Math.abs((y - yNum) / y) < 1e-14) {\n if (yFrac.d % 2 === 1) {\n return (yFrac.n % 2 === 0 ? 1 : -1) * Math.pow(-x, y);\n }\n }\n } catch (ex) {// fraction() throws an error if y is Infinity, etc.\n } // Unable to express y as a fraction, so continue on\n\n } // **for predictable mode** x^Infinity === NaN if x < -1\n // N.B. this behavour is different from `Math.pow` which gives\n // (-2)^Infinity === Infinity\n\n\n if (config.predictable && (x < -1 && y === Infinity || x > -1 && x < 0 && y === -Infinity)) {\n return NaN;\n }\n\n if ((0, _number.isInteger)(y) || x >= 0 || config.predictable) {\n return (0, _index.powNumber)(x, y);\n } else {\n // TODO: the following infinity checks are duplicated from powNumber. Deduplicate this somehow\n // x^Infinity === 0 if -1 < x < 1\n // A real number 0 is returned instead of complex(0)\n if (x * x < 1 && y === Infinity || x * x > 1 && y === -Infinity) {\n return 0;\n }\n\n return new Complex(x, 0).pow(y, 0);\n }\n }\n /**\n * Calculate the power of a 2d array\n * @param {Array} x must be a 2 dimensional, square matrix\n * @param {number} y a integer value (positive if `x` is not invertible)\n * @returns {Array}\n * @private\n */\n\n\n function _powArray(x, y) {\n if (!(0, _number.isInteger)(y)) {\n throw new TypeError('For A^b, b must be an integer (value is ' + y + ')');\n } // verify that A is a 2 dimensional square matrix\n\n\n var s = (0, _array.arraySize)(x);\n\n if (s.length !== 2) {\n throw new Error('For A^b, A must be 2 dimensional (A has ' + s.length + ' dimensions)');\n }\n\n if (s[0] !== s[1]) {\n throw new Error('For A^b, A must be square (size is ' + s[0] + 'x' + s[1] + ')');\n }\n\n if (y < 0) {\n try {\n return _powArray(inv(x), -y);\n } catch (error) {\n if (error.message === 'Cannot calculate inverse, determinant is zero') {\n throw new TypeError('For A^b, when A is not invertible, b must be a positive integer (value is ' + y + ')');\n }\n\n throw error;\n }\n }\n\n var res = identity(s[0]).valueOf();\n var px = x;\n\n while (y >= 1) {\n if ((y & 1) === 1) {\n res = multiply(px, res);\n }\n\n y >>= 1;\n px = multiply(px, px);\n }\n\n return res;\n }\n /**\n * Calculate the power of a 2d matrix\n * @param {Matrix} x must be a 2 dimensional, square matrix\n * @param {number} y a positive, integer value\n * @returns {Matrix}\n * @private\n */\n\n\n function _powMatrix(x, y) {\n return matrix(_powArray(x.valueOf(), y));\n }\n});\nexports.createPow = createPow;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRound = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar NO_INT = 'Number of decimals in function round must be an integer';\nvar name = 'round';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'zeros', 'BigNumber', 'DenseMatrix'];\nvar createRound = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n zeros = _ref.zeros,\n BigNumber = _ref.BigNumber,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm11 = (0, _algorithm.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm2.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm14 = (0, _algorithm3.createAlgorithm14)({\n typed: typed\n });\n /**\n * Round a value towards the nearest integer.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.round(x)\n * math.round(x, n)\n *\n * Examples:\n *\n * math.round(3.22) // returns number 3\n * math.round(3.82) // returns number 4\n * math.round(-4.2) // returns number -4\n * math.round(-4.7) // returns number -5\n * math.round(3.22, 1) // returns number 3.2\n * math.round(3.88, 1) // returns number 3.9\n * math.round(-4.21, 1) // returns number -4.2\n * math.round(-4.71, 1) // returns number -4.7\n * math.round(math.pi, 3) // returns number 3.142\n * math.round(123.45678, 2) // returns number 123.46\n *\n * const c = math.complex(3.2, -2.7)\n * math.round(c) // returns Complex 3 - 3i\n *\n * math.round([3.2, 3.8, -4.7]) // returns Array [3, 4, -5]\n *\n * See also:\n *\n * ceil, fix, floor\n *\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix} x Number to be rounded\n * @param {number | BigNumber | Array} [n=0] Number of decimals\n * @return {number | BigNumber | Fraction | Complex | Array | Matrix} Rounded value\n */\n\n return typed(name, {\n number: _index.roundNumber,\n 'number, number': _index.roundNumber,\n 'number, BigNumber': function numberBigNumber(x, n) {\n if (!n.isInteger()) {\n throw new TypeError(NO_INT);\n }\n\n return new BigNumber(x).toDecimalPlaces(n.toNumber());\n },\n Complex: function Complex(x) {\n return x.round();\n },\n 'Complex, number': function ComplexNumber(x, n) {\n if (n % 1) {\n throw new TypeError(NO_INT);\n }\n\n return x.round(n);\n },\n 'Complex, BigNumber': function ComplexBigNumber(x, n) {\n if (!n.isInteger()) {\n throw new TypeError(NO_INT);\n }\n\n var _n = n.toNumber();\n\n return x.round(_n);\n },\n BigNumber: function BigNumber(x) {\n return x.toDecimalPlaces(0);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, n) {\n if (!n.isInteger()) {\n throw new TypeError(NO_INT);\n }\n\n return x.toDecimalPlaces(n.toNumber());\n },\n Fraction: function Fraction(x) {\n return x.round();\n },\n 'Fraction, number': function FractionNumber(x, n) {\n if (n % 1) {\n throw new TypeError(NO_INT);\n }\n\n return x.round(n);\n },\n 'Fraction, BigNumber': function FractionBigNumber(x, n) {\n if (!n.isInteger()) {\n throw new TypeError(NO_INT);\n }\n\n return x.round(n.toNumber());\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since round(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'number | Complex | BigNumber | Fraction, SparseMatrix': function numberComplexBigNumberFractionSparseMatrix(x, y) {\n // check scalar is zero\n if (equalScalar(x, 0)) {\n // do not execute algorithm, result will be a zero matrix\n return zeros(y.size(), y.storage());\n }\n\n return algorithm12(y, x, this, true);\n },\n 'number | Complex | BigNumber | Fraction, DenseMatrix': function numberComplexBigNumberFractionDenseMatrix(x, y) {\n // check scalar is zero\n if (equalScalar(x, 0)) {\n // do not execute algorithm, result will be a zero matrix\n return zeros(y.size(), y.storage());\n }\n\n return algorithm14(y, x, this, true);\n },\n 'number | Complex | BigNumber | Fraction, Array': function numberComplexBigNumberFractionArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createRound = createRound;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLog = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'log';\nvar dependencies = ['config', 'typed', 'divideScalar', 'Complex'];\nvar createLog = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n divideScalar = _ref.divideScalar,\n Complex = _ref.Complex;\n\n /**\n * Calculate the logarithm of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.log(x)\n * math.log(x, base)\n *\n * Examples:\n *\n * math.log(3.5) // returns 1.252762968495368\n * math.exp(math.log(2.4)) // returns 2.4\n *\n * math.pow(10, 4) // returns 10000\n * math.log(10000, 10) // returns 4\n * math.log(10000) / math.log(10) // returns 4\n *\n * math.log(1024, 2) // returns 10\n * math.pow(2, 10) // returns 1024\n *\n * See also:\n *\n * exp, log2, log10, log1p\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * Value for which to calculate the logarithm.\n * @param {number | BigNumber | Complex} [base=e]\n * Optional base for the logarithm. If not provided, the natural\n * logarithm of `x` is calculated.\n * @return {number | BigNumber | Complex | Array | Matrix}\n * Returns the logarithm of `x`\n */\n return typed(name, {\n number: function number(x) {\n if (x >= 0 || config.predictable) {\n return (0, _index.logNumber)(x);\n } else {\n // negative value -> complex value computation\n return new Complex(x, 0).log();\n }\n },\n Complex: function Complex(x) {\n return x.log();\n },\n BigNumber: function BigNumber(x) {\n if (!x.isNegative() || config.predictable) {\n return x.ln();\n } else {\n // downgrade to number, return Complex valued result\n return new Complex(x.toNumber(), 0).log();\n }\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n },\n 'any, any': function anyAny(x, base) {\n // calculate logarithm for a specified base, log(x, base)\n return divideScalar(this(x), this(base));\n }\n });\n});\nexports.createLog = createLog;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLog1p = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar name = 'log1p';\nvar dependencies = ['typed', 'config', 'divideScalar', 'log', 'Complex'];\nvar createLog1p = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n divideScalar = _ref.divideScalar,\n log = _ref.log,\n Complex = _ref.Complex;\n\n /**\n * Calculate the logarithm of a `value+1`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.log1p(x)\n * math.log1p(x, base)\n *\n * Examples:\n *\n * math.log1p(2.5) // returns 1.252762968495368\n * math.exp(math.log1p(1.4)) // returns 2.4\n *\n * math.pow(10, 4) // returns 10000\n * math.log1p(9999, 10) // returns 4\n * math.log1p(9999) / math.log(10) // returns 4\n *\n * See also:\n *\n * exp, log, log2, log10\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * Value for which to calculate the logarithm of `x+1`.\n * @param {number | BigNumber | Complex} [base=e]\n * Optional base for the logarithm. If not provided, the natural\n * logarithm of `x+1` is calculated.\n * @return {number | BigNumber | Complex | Array | Matrix}\n * Returns the logarithm of `x+1`\n */\n return typed(name, {\n number: function number(x) {\n if (x >= -1 || config.predictable) {\n return (0, _number.log1p)(x);\n } else {\n // negative value -> complex value computation\n return _log1pComplex(new Complex(x, 0));\n }\n },\n Complex: _log1pComplex,\n BigNumber: function BigNumber(x) {\n var y = x.plus(1);\n\n if (!y.isNegative() || config.predictable) {\n return y.ln();\n } else {\n // downgrade to number, return Complex valued result\n return _log1pComplex(new Complex(x.toNumber(), 0));\n }\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n },\n 'any, any': function anyAny(x, base) {\n // calculate logarithm for a specified base, log1p(x, base)\n return divideScalar(this(x), log(base));\n }\n });\n /**\n * Calculate the natural logarithm of a complex number + 1\n * @param {Complex} x\n * @returns {Complex}\n * @private\n */\n\n function _log1pComplex(x) {\n var xRe1p = x.re + 1;\n return new Complex(Math.log(Math.sqrt(xRe1p * xRe1p + x.im * x.im)), Math.atan2(x.im, xRe1p));\n }\n});\nexports.createLog1p = createLog1p;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNthRoots = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'nthRoots';\nvar dependencies = ['config', 'typed', 'divideScalar', 'Complex'];\nvar createNthRoots = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n divideScalar = _ref.divideScalar,\n Complex = _ref.Complex;\n\n /**\n * Each function here returns a real multiple of i as a Complex value.\n * @param {number} val\n * @return {Complex} val, i*val, -val or -i*val for index 0, 1, 2, 3\n */\n // This is used to fix float artifacts for zero-valued components.\n var _calculateExactResult = [function realPos(val) {\n return new Complex(val, 0);\n }, function imagPos(val) {\n return new Complex(0, val);\n }, function realNeg(val) {\n return new Complex(-val, 0);\n }, function imagNeg(val) {\n return new Complex(0, -val);\n }];\n /**\n * Calculate the nth root of a Complex Number a using De Movire's Theorem.\n * @param {Complex} a\n * @param {number} root\n * @return {Array} array of n Complex Roots\n */\n\n function _nthComplexRoots(a, root) {\n if (root < 0) throw new Error('Root must be greater than zero');\n if (root === 0) throw new Error('Root must be non-zero');\n if (root % 1 !== 0) throw new Error('Root must be an integer');\n if (a === 0 || a.abs() === 0) return [new Complex(0, 0)];\n var aIsNumeric = typeof a === 'number';\n var offset; // determine the offset (argument of a)/(pi/2)\n\n if (aIsNumeric || a.re === 0 || a.im === 0) {\n if (aIsNumeric) {\n offset = 2 * +(a < 0); // numeric value on the real axis\n } else if (a.im === 0) {\n offset = 2 * +(a.re < 0); // complex value on the real axis\n } else {\n offset = 2 * +(a.im < 0) + 1; // complex value on the imaginary axis\n }\n }\n\n var arg = a.arg();\n var abs = a.abs();\n var roots = [];\n var r = Math.pow(abs, 1 / root);\n\n for (var k = 0; k < root; k++) {\n var halfPiFactor = (offset + 4 * k) / root;\n /**\n * If (offset + 4*k)/root is an integral multiple of pi/2\n * then we can produce a more exact result.\n */\n\n if (halfPiFactor === Math.round(halfPiFactor)) {\n roots.push(_calculateExactResult[halfPiFactor % 4](r));\n continue;\n }\n\n roots.push(new Complex({\n r: r,\n phi: (arg + 2 * Math.PI * k) / root\n }));\n }\n\n return roots;\n }\n /**\n * Calculate the nth roots of a value.\n * An nth root of a positive real number A,\n * is a positive real solution of the equation \"x^root = A\".\n * This function returns an array of complex values.\n *\n * Syntax:\n *\n * math.nthRoots(x)\n * math.nthRoots(x, root)\n *\n * Examples:\n *\n * math.nthRoots(1)\n * // returns [\n * // {re: 1, im: 0},\n * // {re: -1, im: 0}\n * // ]\n * nthRoots(1, 3)\n * // returns [\n * // { re: 1, im: 0 },\n * // { re: -0.4999999999999998, im: 0.8660254037844387 },\n * // { re: -0.5000000000000004, im: -0.8660254037844385 }\n * ]\n *\n * See also:\n *\n * nthRoot, pow, sqrt\n *\n * @param {number | BigNumber | Fraction | Complex} x Number to be rounded\n * @return {number | BigNumber | Fraction | Complex} Rounded value\n */\n\n\n return typed(name, {\n Complex: function Complex(x) {\n return _nthComplexRoots(x, 2);\n },\n 'Complex, number': _nthComplexRoots\n });\n});\nexports.createNthRoots = createNthRoots;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDotPow = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'dotPow';\nvar dependencies = ['typed', 'equalScalar', 'matrix', 'pow', 'DenseMatrix'];\nvar createDotPow = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar,\n matrix = _ref.matrix,\n pow = _ref.pow,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm11 = (0, _algorithm3.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm4.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm6.createAlgorithm14)({\n typed: typed\n });\n /**\n * Calculates the power of x to y element wise.\n *\n * Syntax:\n *\n * math.dotPow(x, y)\n *\n * Examples:\n *\n * math.dotPow(2, 3) // returns number 8\n *\n * const a = [[1, 2], [4, 3]]\n * math.dotPow(a, 2) // returns Array [[1, 4], [16, 9]]\n * math.pow(a, 2) // returns Array [[9, 8], [16, 17]]\n *\n * See also:\n *\n * pow, sqrt, multiply\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x The base\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} y The exponent\n * @return {number | BigNumber | Complex | Unit | Array | Matrix} The value of `x` to the power `y`\n */\n\n return typed(name, {\n 'any, any': pow,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, pow, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, pow, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, pow, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, pow);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createDotPow = createDotPow;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDotDivide = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm7 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'dotDivide';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'divideScalar', 'DenseMatrix'];\nvar createDotDivide = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n divideScalar = _ref.divideScalar,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm03 = (0, _algorithm2.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm3.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm11 = (0, _algorithm4.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm5.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm6.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm7.createAlgorithm14)({\n typed: typed\n });\n /**\n * Divide two matrices element wise. The function accepts both matrices and\n * scalar values.\n *\n * Syntax:\n *\n * math.dotDivide(x, y)\n *\n * Examples:\n *\n * math.dotDivide(2, 4) // returns 0.5\n *\n * a = [[9, 5], [6, 1]]\n * b = [[3, 2], [5, 2]]\n *\n * math.dotDivide(a, b) // returns [[3, 2.5], [1.2, 0.5]]\n * math.divide(a, b) // returns [[1.75, 0.75], [-1.75, 2.25]]\n *\n * See also:\n *\n * divide, multiply, dotMultiply\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x Numerator\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} y Denominator\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} Quotient, `x ./ y`\n */\n\n return typed(name, {\n 'any, any': divideScalar,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, divideScalar, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, divideScalar, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, divideScalar, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, divideScalar);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, divideScalar, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, divideScalar, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, divideScalar, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, divideScalar, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, divideScalar, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, divideScalar, true).valueOf();\n }\n });\n});\nexports.createDotDivide = createDotDivide;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSolveValidation = createSolveValidation;\n\nvar _is = require(\"../../../../utils/is.js\");\n\nvar _array = require(\"../../../../utils/array.js\");\n\nvar _string = require(\"../../../../utils/string.js\");\n\nfunction createSolveValidation(_ref) {\n var DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Validates matrix and column vector b for backward/forward substitution algorithms.\n *\n * @param {Matrix} m An N x N matrix\n * @param {Array | Matrix} b A column vector\n * @param {Boolean} copy Return a copy of vector b\n *\n * @return {DenseMatrix} Dense column vector b\n */\n return function solveValidation(m, b, copy) {\n var mSize = m.size();\n\n if (mSize.length !== 2) {\n throw new RangeError('Matrix must be two dimensional (size: ' + (0, _string.format)(mSize) + ')');\n }\n\n var rows = mSize[0];\n var columns = mSize[1];\n\n if (rows !== columns) {\n throw new RangeError('Matrix must be square (size: ' + (0, _string.format)(mSize) + ')');\n }\n\n var data = [];\n\n if ((0, _is.isMatrix)(b)) {\n var bSize = b.size();\n var bdata = b._data; // 1-dim vector\n\n if (bSize.length === 1) {\n if (bSize[0] !== rows) {\n throw new RangeError('Dimension mismatch. Matrix columns must match vector length.');\n }\n\n for (var i = 0; i < rows; i++) {\n data[i] = [bdata[i]];\n }\n\n return new DenseMatrix({\n data: data,\n size: [rows, 1],\n datatype: b._datatype\n });\n } // 2-dim column\n\n\n if (bSize.length === 2) {\n if (bSize[0] !== rows || bSize[1] !== 1) {\n throw new RangeError('Dimension mismatch. Matrix columns must match vector length.');\n }\n\n if ((0, _is.isDenseMatrix)(b)) {\n if (copy) {\n data = [];\n\n for (var _i = 0; _i < rows; _i++) {\n data[_i] = [bdata[_i][0]];\n }\n\n return new DenseMatrix({\n data: data,\n size: [rows, 1],\n datatype: b._datatype\n });\n }\n\n return b;\n }\n\n if ((0, _is.isSparseMatrix)(b)) {\n for (var _i2 = 0; _i2 < rows; _i2++) {\n data[_i2] = [0];\n }\n\n var values = b._values;\n var index = b._index;\n var ptr = b._ptr;\n\n for (var k1 = ptr[1], k = ptr[0]; k < k1; k++) {\n var _i3 = index[k];\n data[_i3][0] = values[k];\n }\n\n return new DenseMatrix({\n data: data,\n size: [rows, 1],\n datatype: b._datatype\n });\n }\n }\n\n throw new RangeError('Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.');\n }\n\n if ((0, _is.isArray)(b)) {\n var bsize = (0, _array.arraySize)(b);\n\n if (bsize.length === 1) {\n if (bsize[0] !== rows) {\n throw new RangeError('Dimension mismatch. Matrix columns must match vector length.');\n }\n\n for (var _i4 = 0; _i4 < rows; _i4++) {\n data[_i4] = [b[_i4]];\n }\n\n return new DenseMatrix({\n data: data,\n size: [rows, 1]\n });\n }\n\n if (bsize.length === 2) {\n if (bsize[0] !== rows || bsize[1] !== 1) {\n throw new RangeError('Dimension mismatch. Matrix columns must match vector length.');\n }\n\n for (var _i5 = 0; _i5 < rows; _i5++) {\n data[_i5] = [b[_i5][0]];\n }\n\n return new DenseMatrix({\n data: data,\n size: [rows, 1]\n });\n }\n\n throw new RangeError('Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.');\n }\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLsolve = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _solveValidation = require(\"./utils/solveValidation.js\");\n\nvar name = 'lsolve';\nvar dependencies = ['typed', 'matrix', 'divideScalar', 'multiplyScalar', 'subtract', 'equalScalar', 'DenseMatrix'];\nvar createLsolve = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n subtract = _ref.subtract,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var solveValidation = (0, _solveValidation.createSolveValidation)({\n DenseMatrix: DenseMatrix\n });\n /**\n * Finds one solution of a linear equation system by forwards substitution. Matrix must be a lower triangular matrix. Throws an error if there's no solution.\n *\n * `L * x = b`\n *\n * Syntax:\n *\n * math.lsolve(L, b)\n *\n * Examples:\n *\n * const a = [[-2, 3], [2, 1]]\n * const b = [11, 9]\n * const x = lsolve(a, b) // [[-5.5], [20]]\n *\n * See also:\n *\n * lsolveAll, lup, slu, usolve, lusolve\n *\n * @param {Matrix, Array} L A N x N matrix or array (L)\n * @param {Matrix, Array} b A column vector with the b values\n *\n * @return {DenseMatrix | Array} A column vector with the linear system solution (x)\n */\n\n return typed(name, {\n 'SparseMatrix, Array | Matrix': function SparseMatrixArrayMatrix(m, b) {\n return _sparseForwardSubstitution(m, b);\n },\n 'DenseMatrix, Array | Matrix': function DenseMatrixArrayMatrix(m, b) {\n return _denseForwardSubstitution(m, b);\n },\n 'Array, Array | Matrix': function ArrayArrayMatrix(a, b) {\n var m = matrix(a);\n\n var r = _denseForwardSubstitution(m, b);\n\n return r.valueOf();\n }\n });\n\n function _denseForwardSubstitution(m, b) {\n // validate matrix and vector, return copy of column vector b\n b = solveValidation(m, b, true);\n var bdata = b._data;\n var rows = m._size[0];\n var columns = m._size[1]; // result\n\n var x = [];\n var mdata = m._data; // loop columns\n\n for (var j = 0; j < columns; j++) {\n var bj = bdata[j][0] || 0;\n var xj = void 0;\n\n if (!equalScalar(bj, 0)) {\n // non-degenerate row, find solution\n var vjj = mdata[j][j];\n\n if (equalScalar(vjj, 0)) {\n throw new Error('Linear system cannot be solved since matrix is singular');\n }\n\n xj = divideScalar(bj, vjj); // loop rows\n\n for (var i = j + 1; i < rows; i++) {\n bdata[i] = [subtract(bdata[i][0] || 0, multiplyScalar(xj, mdata[i][j]))];\n }\n } else {\n // degenerate row, we can choose any value\n xj = 0;\n }\n\n x[j] = [xj];\n }\n\n return new DenseMatrix({\n data: x,\n size: [rows, 1]\n });\n }\n\n function _sparseForwardSubstitution(m, b) {\n // validate matrix and vector, return copy of column vector b\n b = solveValidation(m, b, true);\n var bdata = b._data;\n var rows = m._size[0];\n var columns = m._size[1];\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // result\n\n var x = []; // loop columns\n\n for (var j = 0; j < columns; j++) {\n var bj = bdata[j][0] || 0;\n\n if (!equalScalar(bj, 0)) {\n // non-degenerate row, find solution\n var vjj = 0; // matrix values & indices (column j)\n\n var jValues = [];\n var jIndices = []; // first and last index in the column\n\n var firstIndex = ptr[j];\n var lastIndex = ptr[j + 1]; // values in column, find value at [j, j]\n\n for (var k = firstIndex; k < lastIndex; k++) {\n var i = index[k]; // check row (rows are not sorted!)\n\n if (i === j) {\n vjj = values[k];\n } else if (i > j) {\n // store lower triangular\n jValues.push(values[k]);\n jIndices.push(i);\n }\n } // at this point we must have a value in vjj\n\n\n if (equalScalar(vjj, 0)) {\n throw new Error('Linear system cannot be solved since matrix is singular');\n }\n\n var xj = divideScalar(bj, vjj);\n\n for (var _k = 0, l = jIndices.length; _k < l; _k++) {\n var _i = jIndices[_k];\n bdata[_i] = [subtract(bdata[_i][0] || 0, multiplyScalar(xj, jValues[_k]))];\n }\n\n x[j] = [xj];\n } else {\n // degenerate row, we can choose any value\n x[j] = [0];\n }\n }\n\n return new DenseMatrix({\n data: x,\n size: [rows, 1]\n });\n }\n});\nexports.createLsolve = createLsolve;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUsolve = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _solveValidation = require(\"./utils/solveValidation.js\");\n\nvar name = 'usolve';\nvar dependencies = ['typed', 'matrix', 'divideScalar', 'multiplyScalar', 'subtract', 'equalScalar', 'DenseMatrix'];\nvar createUsolve = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n subtract = _ref.subtract,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var solveValidation = (0, _solveValidation.createSolveValidation)({\n DenseMatrix: DenseMatrix\n });\n /**\n * Finds one solution of a linear equation system by backward substitution. Matrix must be an upper triangular matrix. Throws an error if there's no solution.\n *\n * `U * x = b`\n *\n * Syntax:\n *\n * math.usolve(U, b)\n *\n * Examples:\n *\n * const a = [[-2, 3], [2, 1]]\n * const b = [11, 9]\n * const x = usolve(a, b) // [[8], [9]]\n *\n * See also:\n *\n * usolveAll, lup, slu, usolve, lusolve\n *\n * @param {Matrix, Array} U A N x N matrix or array (U)\n * @param {Matrix, Array} b A column vector with the b values\n *\n * @return {DenseMatrix | Array} A column vector with the linear system solution (x)\n */\n\n return typed(name, {\n 'SparseMatrix, Array | Matrix': function SparseMatrixArrayMatrix(m, b) {\n return _sparseBackwardSubstitution(m, b);\n },\n 'DenseMatrix, Array | Matrix': function DenseMatrixArrayMatrix(m, b) {\n return _denseBackwardSubstitution(m, b);\n },\n 'Array, Array | Matrix': function ArrayArrayMatrix(a, b) {\n var m = matrix(a);\n\n var r = _denseBackwardSubstitution(m, b);\n\n return r.valueOf();\n }\n });\n\n function _denseBackwardSubstitution(m, b) {\n // make b into a column vector\n b = solveValidation(m, b, true);\n var bdata = b._data;\n var rows = m._size[0];\n var columns = m._size[1]; // result\n\n var x = [];\n var mdata = m._data; // loop columns backwards\n\n for (var j = columns - 1; j >= 0; j--) {\n // b[j]\n var bj = bdata[j][0] || 0; // x[j]\n\n var xj = void 0;\n\n if (!equalScalar(bj, 0)) {\n // value at [j, j]\n var vjj = mdata[j][j];\n\n if (equalScalar(vjj, 0)) {\n // system cannot be solved\n throw new Error('Linear system cannot be solved since matrix is singular');\n }\n\n xj = divideScalar(bj, vjj); // loop rows\n\n for (var i = j - 1; i >= 0; i--) {\n // update copy of b\n bdata[i] = [subtract(bdata[i][0] || 0, multiplyScalar(xj, mdata[i][j]))];\n }\n } else {\n // zero value at j\n xj = 0;\n } // update x\n\n\n x[j] = [xj];\n }\n\n return new DenseMatrix({\n data: x,\n size: [rows, 1]\n });\n }\n\n function _sparseBackwardSubstitution(m, b) {\n // make b into a column vector\n b = solveValidation(m, b, true);\n var bdata = b._data;\n var rows = m._size[0];\n var columns = m._size[1];\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // result\n\n var x = []; // loop columns backwards\n\n for (var j = columns - 1; j >= 0; j--) {\n var bj = bdata[j][0] || 0;\n\n if (!equalScalar(bj, 0)) {\n // non-degenerate row, find solution\n var vjj = 0; // upper triangular matrix values & index (column j)\n\n var jValues = [];\n var jIndices = []; // first & last indeces in column\n\n var firstIndex = ptr[j];\n var lastIndex = ptr[j + 1]; // values in column, find value at [j, j], loop backwards\n\n for (var k = lastIndex - 1; k >= firstIndex; k--) {\n var i = index[k]; // check row (rows are not sorted!)\n\n if (i === j) {\n vjj = values[k];\n } else if (i < j) {\n // store upper triangular\n jValues.push(values[k]);\n jIndices.push(i);\n }\n } // at this point we must have a value in vjj\n\n\n if (equalScalar(vjj, 0)) {\n throw new Error('Linear system cannot be solved since matrix is singular');\n }\n\n var xj = divideScalar(bj, vjj);\n\n for (var _k = 0, _lastIndex = jIndices.length; _k < _lastIndex; _k++) {\n var _i = jIndices[_k];\n bdata[_i] = [subtract(bdata[_i][0], multiplyScalar(xj, jValues[_k]))];\n }\n\n x[j] = [xj];\n } else {\n // degenerate row, we can choose any value\n x[j] = [0];\n }\n }\n\n return new DenseMatrix({\n data: x,\n size: [rows, 1]\n });\n }\n});\nexports.createUsolve = createUsolve;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLsolveAll = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _solveValidation = require(\"./utils/solveValidation.js\");\n\nvar name = 'lsolveAll';\nvar dependencies = ['typed', 'matrix', 'divideScalar', 'multiplyScalar', 'subtract', 'equalScalar', 'DenseMatrix'];\nvar createLsolveAll = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n subtract = _ref.subtract,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var solveValidation = (0, _solveValidation.createSolveValidation)({\n DenseMatrix: DenseMatrix\n });\n /**\n * Finds all solutions of a linear equation system by forwards substitution. Matrix must be a lower triangular matrix.\n *\n * `L * x = b`\n *\n * Syntax:\n *\n * math.lsolveAll(L, b)\n *\n * Examples:\n *\n * const a = [[-2, 3], [2, 1]]\n * const b = [11, 9]\n * const x = lsolveAll(a, b) // [ [[-5.5], [20]] ]\n *\n * See also:\n *\n * lsolve, lup, slu, usolve, lusolve\n *\n * @param {Matrix, Array} L A N x N matrix or array (L)\n * @param {Matrix, Array} b A column vector with the b values\n *\n * @return {DenseMatrix[] | Array[]} An array of affine-independent column vectors (x) that solve the linear system\n */\n\n return typed(name, {\n 'SparseMatrix, Array | Matrix': function SparseMatrixArrayMatrix(m, b) {\n return _sparseForwardSubstitution(m, b);\n },\n 'DenseMatrix, Array | Matrix': function DenseMatrixArrayMatrix(m, b) {\n return _denseForwardSubstitution(m, b);\n },\n 'Array, Array | Matrix': function ArrayArrayMatrix(a, b) {\n var m = matrix(a);\n\n var R = _denseForwardSubstitution(m, b);\n\n return R.map(function (r) {\n return r.valueOf();\n });\n }\n });\n\n function _denseForwardSubstitution(m, b_) {\n // the algorithm is derived from\n // https://www.overleaf.com/read/csvgqdxggyjv\n // array of right-hand sides\n var B = [solveValidation(m, b_, true)._data.map(function (e) {\n return e[0];\n })];\n var M = m._data;\n var rows = m._size[0];\n var columns = m._size[1]; // loop columns\n\n for (var i = 0; i < columns; i++) {\n var L = B.length; // loop right-hand sides\n\n for (var k = 0; k < L; k++) {\n var b = B[k];\n\n if (!equalScalar(M[i][i], 0)) {\n // non-singular row\n b[i] = divideScalar(b[i], M[i][i]);\n\n for (var j = i + 1; j < columns; j++) {\n // b[j] -= b[i] * M[j,i]\n b[j] = subtract(b[j], multiplyScalar(b[i], M[j][i]));\n }\n } else if (!equalScalar(b[i], 0)) {\n // singular row, nonzero RHS\n if (k === 0) {\n // There is no valid solution\n return [];\n } else {\n // This RHS is invalid but other solutions may still exist\n B.splice(k, 1);\n k -= 1;\n L -= 1;\n }\n } else if (k === 0) {\n // singular row, RHS is zero\n var bNew = (0, _toConsumableArray2.default)(b);\n bNew[i] = 1;\n\n for (var _j = i + 1; _j < columns; _j++) {\n bNew[_j] = subtract(bNew[_j], M[_j][i]);\n }\n\n B.push(bNew);\n }\n }\n }\n\n return B.map(function (x) {\n return new DenseMatrix({\n data: x.map(function (e) {\n return [e];\n }),\n size: [rows, 1]\n });\n });\n }\n\n function _sparseForwardSubstitution(m, b_) {\n // array of right-hand sides\n var B = [solveValidation(m, b_, true)._data.map(function (e) {\n return e[0];\n })];\n var rows = m._size[0];\n var columns = m._size[1];\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // loop columns\n\n for (var i = 0; i < columns; i++) {\n var L = B.length; // loop right-hand sides\n\n for (var k = 0; k < L; k++) {\n var b = B[k]; // values & indices (column i)\n\n var iValues = [];\n var iIndices = []; // first & last indeces in column\n\n var firstIndex = ptr[i];\n var lastIndex = ptr[i + 1]; // find the value at [i, i]\n\n var Mii = 0;\n\n for (var j = firstIndex; j < lastIndex; j++) {\n var J = index[j]; // check row\n\n if (J === i) {\n Mii = values[j];\n } else if (J > i) {\n // store lower triangular\n iValues.push(values[j]);\n iIndices.push(J);\n }\n }\n\n if (!equalScalar(Mii, 0)) {\n // non-singular row\n b[i] = divideScalar(b[i], Mii);\n\n for (var _j2 = 0, _lastIndex = iIndices.length; _j2 < _lastIndex; _j2++) {\n var _J = iIndices[_j2];\n b[_J] = subtract(b[_J], multiplyScalar(b[i], iValues[_j2]));\n }\n } else if (!equalScalar(b[i], 0)) {\n // singular row, nonzero RHS\n if (k === 0) {\n // There is no valid solution\n return [];\n } else {\n // This RHS is invalid but other solutions may still exist\n B.splice(k, 1);\n k -= 1;\n L -= 1;\n }\n } else if (k === 0) {\n // singular row, RHS is zero\n var bNew = (0, _toConsumableArray2.default)(b);\n bNew[i] = 1;\n\n for (var _j3 = 0, _lastIndex2 = iIndices.length; _j3 < _lastIndex2; _j3++) {\n var _J2 = iIndices[_j3];\n bNew[_J2] = subtract(bNew[_J2], iValues[_j3]);\n }\n\n B.push(bNew);\n }\n }\n }\n\n return B.map(function (x) {\n return new DenseMatrix({\n data: x.map(function (e) {\n return [e];\n }),\n size: [rows, 1]\n });\n });\n }\n});\nexports.createLsolveAll = createLsolveAll;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUsolveAll = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _solveValidation = require(\"./utils/solveValidation.js\");\n\nvar name = 'usolveAll';\nvar dependencies = ['typed', 'matrix', 'divideScalar', 'multiplyScalar', 'subtract', 'equalScalar', 'DenseMatrix'];\nvar createUsolveAll = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n subtract = _ref.subtract,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var solveValidation = (0, _solveValidation.createSolveValidation)({\n DenseMatrix: DenseMatrix\n });\n /**\n * Finds all solutions of a linear equation system by backward substitution. Matrix must be an upper triangular matrix.\n *\n * `U * x = b`\n *\n * Syntax:\n *\n * math.usolveAll(U, b)\n *\n * Examples:\n *\n * const a = [[-2, 3], [2, 1]]\n * const b = [11, 9]\n * const x = usolveAll(a, b) // [ [[8], [9]] ]\n *\n * See also:\n *\n * usolve, lup, slu, usolve, lusolve\n *\n * @param {Matrix, Array} U A N x N matrix or array (U)\n * @param {Matrix, Array} b A column vector with the b values\n *\n * @return {DenseMatrix[] | Array[]} An array of affine-independent column vectors (x) that solve the linear system\n */\n\n return typed(name, {\n 'SparseMatrix, Array | Matrix': function SparseMatrixArrayMatrix(m, b) {\n return _sparseBackwardSubstitution(m, b);\n },\n 'DenseMatrix, Array | Matrix': function DenseMatrixArrayMatrix(m, b) {\n return _denseBackwardSubstitution(m, b);\n },\n 'Array, Array | Matrix': function ArrayArrayMatrix(a, b) {\n var m = matrix(a);\n\n var R = _denseBackwardSubstitution(m, b);\n\n return R.map(function (r) {\n return r.valueOf();\n });\n }\n });\n\n function _denseBackwardSubstitution(m, b_) {\n // the algorithm is derived from\n // https://www.overleaf.com/read/csvgqdxggyjv\n // array of right-hand sides\n var B = [solveValidation(m, b_, true)._data.map(function (e) {\n return e[0];\n })];\n var M = m._data;\n var rows = m._size[0];\n var columns = m._size[1]; // loop columns backwards\n\n for (var i = columns - 1; i >= 0; i--) {\n var L = B.length; // loop right-hand sides\n\n for (var k = 0; k < L; k++) {\n var b = B[k];\n\n if (!equalScalar(M[i][i], 0)) {\n // non-singular row\n b[i] = divideScalar(b[i], M[i][i]);\n\n for (var j = i - 1; j >= 0; j--) {\n // b[j] -= b[i] * M[j,i]\n b[j] = subtract(b[j], multiplyScalar(b[i], M[j][i]));\n }\n } else if (!equalScalar(b[i], 0)) {\n // singular row, nonzero RHS\n if (k === 0) {\n // There is no valid solution\n return [];\n } else {\n // This RHS is invalid but other solutions may still exist\n B.splice(k, 1);\n k -= 1;\n L -= 1;\n }\n } else if (k === 0) {\n // singular row, RHS is zero\n var bNew = (0, _toConsumableArray2.default)(b);\n bNew[i] = 1;\n\n for (var _j = i - 1; _j >= 0; _j--) {\n bNew[_j] = subtract(bNew[_j], M[_j][i]);\n }\n\n B.push(bNew);\n }\n }\n }\n\n return B.map(function (x) {\n return new DenseMatrix({\n data: x.map(function (e) {\n return [e];\n }),\n size: [rows, 1]\n });\n });\n }\n\n function _sparseBackwardSubstitution(m, b_) {\n // array of right-hand sides\n var B = [solveValidation(m, b_, true)._data.map(function (e) {\n return e[0];\n })];\n var rows = m._size[0];\n var columns = m._size[1];\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // loop columns backwards\n\n for (var i = columns - 1; i >= 0; i--) {\n var L = B.length; // loop right-hand sides\n\n for (var k = 0; k < L; k++) {\n var b = B[k]; // values & indices (column i)\n\n var iValues = [];\n var iIndices = []; // first & last indeces in column\n\n var firstIndex = ptr[i];\n var lastIndex = ptr[i + 1]; // find the value at [i, i]\n\n var Mii = 0;\n\n for (var j = lastIndex - 1; j >= firstIndex; j--) {\n var J = index[j]; // check row\n\n if (J === i) {\n Mii = values[j];\n } else if (J < i) {\n // store upper triangular\n iValues.push(values[j]);\n iIndices.push(J);\n }\n }\n\n if (!equalScalar(Mii, 0)) {\n // non-singular row\n b[i] = divideScalar(b[i], Mii); // loop upper triangular\n\n for (var _j2 = 0, _lastIndex = iIndices.length; _j2 < _lastIndex; _j2++) {\n var _J = iIndices[_j2];\n b[_J] = subtract(b[_J], multiplyScalar(b[i], iValues[_j2]));\n }\n } else if (!equalScalar(b[i], 0)) {\n // singular row, nonzero RHS\n if (k === 0) {\n // There is no valid solution\n return [];\n } else {\n // This RHS is invalid but other solutions may still exist\n B.splice(k, 1);\n k -= 1;\n L -= 1;\n }\n } else if (k === 0) {\n // singular row, RHS is zero\n var bNew = (0, _toConsumableArray2.default)(b);\n bNew[i] = 1; // loop upper triangular\n\n for (var _j3 = 0, _lastIndex2 = iIndices.length; _j3 < _lastIndex2; _j3++) {\n var _J2 = iIndices[_j3];\n bNew[_J2] = subtract(bNew[_J2], iValues[_j3]);\n }\n\n B.push(bNew);\n }\n }\n }\n\n return B.map(function (x) {\n return new DenseMatrix({\n data: x.map(function (e) {\n return [e];\n }),\n size: [rows, 1]\n });\n });\n }\n});\nexports.createUsolveAll = createUsolveAll;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAlgorithm08 = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _DimensionError = require(\"../../../error/DimensionError.js\");\n\nvar name = 'algorithm08';\nvar dependencies = ['typed', 'equalScalar'];\nvar createAlgorithm08 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equalScalar = _ref.equalScalar;\n\n /**\n * Iterates over SparseMatrix A and SparseMatrix B nonzero items and invokes the callback function f(Aij, Bij).\n * Callback function invoked MAX(NNZA, NNZB) times\n *\n *\n * ┌ f(Aij, Bij) ; A(i,j) !== 0 && B(i,j) !== 0\n * C(i,j) = ┤ A(i,j) ; A(i,j) !== 0\n * └ 0 ; otherwise\n *\n *\n * @param {Matrix} a The SparseMatrix instance (A)\n * @param {Matrix} b The SparseMatrix instance (B)\n * @param {Function} callback The f(Aij,Bij) operation to invoke\n *\n * @return {Matrix} SparseMatrix (C)\n *\n * see https://github.com/josdejong/mathjs/pull/346#issuecomment-97620294\n */\n return function algorithm08(a, b, callback) {\n // sparse matrix arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size;\n var adt = a._datatype; // sparse matrix arrays\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr;\n var bsize = b._size;\n var bdt = b._datatype; // validate dimensions\n\n if (asize.length !== bsize.length) {\n throw new _DimensionError.DimensionError(asize.length, bsize.length);\n } // check rows & columns\n\n\n if (asize[0] !== bsize[0] || asize[1] !== bsize[1]) {\n throw new RangeError('Dimension mismatch. Matrix A (' + asize + ') must match Matrix B (' + bsize + ')');\n } // sparse matrix cannot be a Pattern matrix\n\n\n if (!avalues || !bvalues) {\n throw new Error('Cannot perform operation on Pattern Sparse Matrices');\n } // rows & columns\n\n\n var rows = asize[0];\n var columns = asize[1]; // datatype\n\n var dt; // equal signature to use\n\n var eq = equalScalar; // zero value\n\n var zero = 0; // callback signature to use\n\n var cf = callback; // process data types\n\n if (typeof adt === 'string' && adt === bdt) {\n // datatype\n dt = adt; // find signature that matches (dt, dt)\n\n eq = typed.find(equalScalar, [dt, dt]); // convert 0 to the same datatype\n\n zero = typed.convert(0, dt); // callback\n\n cf = typed.find(callback, [dt, dt]);\n } // result arrays\n\n\n var cvalues = [];\n var cindex = [];\n var cptr = []; // workspace\n\n var x = []; // marks indicating we have a value in x for a given column\n\n var w = []; // vars\n\n var k, k0, k1, i; // loop columns\n\n for (var j = 0; j < columns; j++) {\n // update cptr\n cptr[j] = cindex.length; // columns mark\n\n var mark = j + 1; // loop values in a\n\n for (k0 = aptr[j], k1 = aptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = aindex[k]; // mark workspace\n\n w[i] = mark; // set value\n\n x[i] = avalues[k]; // add index\n\n cindex.push(i);\n } // loop values in b\n\n\n for (k0 = bptr[j], k1 = bptr[j + 1], k = k0; k < k1; k++) {\n // row\n i = bindex[k]; // check value exists in workspace\n\n if (w[i] === mark) {\n // evaluate callback\n x[i] = cf(x[i], bvalues[k]);\n }\n } // initialize first index in j\n\n\n k = cptr[j]; // loop index in j\n\n while (k < cindex.length) {\n // row\n i = cindex[k]; // value @ i\n\n var v = x[i]; // check for zero value\n\n if (!eq(v, zero)) {\n // push value\n cvalues.push(v); // increment pointer\n\n k++;\n } else {\n // remove value @ i, do not increment pointer\n cindex.splice(k, 1);\n }\n }\n } // update cptr\n\n\n cptr[columns] = cindex.length; // return sparse matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [rows, columns],\n datatype: dt\n });\n };\n});\nexports.createAlgorithm08 = createAlgorithm08;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLeftShift = void 0;\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm7 = require(\"../../type/matrix/utils/algorithm08.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar _bitwise = require(\"../../utils/bignumber/bitwise.js\");\n\nvar name = 'leftShift';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'zeros', 'DenseMatrix'];\nvar createLeftShift = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n zeros = _ref.zeros,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm01 = (0, _algorithm5.createAlgorithm01)({\n typed: typed\n });\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm08 = (0, _algorithm7.createAlgorithm08)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm6.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm11 = (0, _algorithm2.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm3.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Bitwise left logical shift of a value x by y number of bits, `x << y`.\n * For matrices, the function is evaluated element wise.\n * For units, the function is evaluated on the best prefix base.\n *\n * Syntax:\n *\n * math.leftShift(x, y)\n *\n * Examples:\n *\n * math.leftShift(1, 2) // returns number 4\n *\n * math.leftShift([1, 2, 3], 4) // returns Array [16, 32, 64]\n *\n * See also:\n *\n * leftShift, bitNot, bitOr, bitXor, rightArithShift, rightLogShift\n *\n * @param {number | BigNumber | Array | Matrix} x Value to be shifted\n * @param {number | BigNumber} y Amount of shifts\n * @return {number | BigNumber | Array | Matrix} `x` shifted left `y` times\n */\n\n return typed(name, {\n 'number, number': _index.leftShiftNumber,\n 'BigNumber, BigNumber': _bitwise.leftShiftBigNumber,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm08(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm01(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n // check scalar\n if (equalScalar(y, 0)) {\n return x.clone();\n }\n\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n // check scalar\n if (equalScalar(y, 0)) {\n return x.clone();\n }\n\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n // check scalar\n if (equalScalar(x, 0)) {\n return zeros(y.size(), y.storage());\n }\n\n return algorithm10(y, x, this, true);\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n // check scalar\n if (equalScalar(x, 0)) {\n return zeros(y.size(), y.storage());\n }\n\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return this(matrix(x), y).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y)).valueOf();\n }\n });\n});\nexports.createLeftShift = createLeftShift;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRightArithShift = void 0;\n\nvar _bitwise = require(\"../../utils/bignumber/bitwise.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm7 = require(\"../../type/matrix/utils/algorithm08.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'rightArithShift';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'zeros', 'DenseMatrix'];\nvar createRightArithShift = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n zeros = _ref.zeros,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm01 = (0, _algorithm5.createAlgorithm01)({\n typed: typed\n });\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm08 = (0, _algorithm7.createAlgorithm08)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm6.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm11 = (0, _algorithm2.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm3.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Bitwise right arithmetic shift of a value x by y number of bits, `x >> y`.\n * For matrices, the function is evaluated element wise.\n * For units, the function is evaluated on the best prefix base.\n *\n * Syntax:\n *\n * math.rightArithShift(x, y)\n *\n * Examples:\n *\n * math.rightArithShift(4, 2) // returns number 1\n *\n * math.rightArithShift([16, -32, 64], 4) // returns Array [1, -2, 3]\n *\n * See also:\n *\n * bitAnd, bitNot, bitOr, bitXor, rightArithShift, rightLogShift\n *\n * @param {number | BigNumber | Array | Matrix} x Value to be shifted\n * @param {number | BigNumber} y Amount of shifts\n * @return {number | BigNumber | Array | Matrix} `x` sign-filled shifted right `y` times\n */\n\n return typed(name, {\n 'number, number': _index.rightArithShiftNumber,\n 'BigNumber, BigNumber': _bitwise.rightArithShiftBigNumber,\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm08(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm01(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n // check scalar\n if (equalScalar(y, 0)) {\n return x.clone();\n }\n\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n // check scalar\n if (equalScalar(y, 0)) {\n return x.clone();\n }\n\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n // check scalar\n if (equalScalar(x, 0)) {\n return zeros(y.size(), y.storage());\n }\n\n return algorithm10(y, x, this, true);\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n // check scalar\n if (equalScalar(x, 0)) {\n return zeros(y.size(), y.storage());\n }\n\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return this(matrix(x), y).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y)).valueOf();\n }\n });\n});\nexports.createRightArithShift = createRightArithShift;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRightLogShift = void 0;\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm7 = require(\"../../type/matrix/utils/algorithm08.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'rightLogShift';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'zeros', 'DenseMatrix'];\nvar createRightLogShift = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n zeros = _ref.zeros,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm01 = (0, _algorithm5.createAlgorithm01)({\n typed: typed\n });\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm08 = (0, _algorithm7.createAlgorithm08)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm6.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm11 = (0, _algorithm2.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm3.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Bitwise right logical shift of value x by y number of bits, `x >>> y`.\n * For matrices, the function is evaluated element wise.\n * For units, the function is evaluated on the best prefix base.\n *\n * Syntax:\n *\n * math.rightLogShift(x, y)\n *\n * Examples:\n *\n * math.rightLogShift(4, 2) // returns number 1\n *\n * math.rightLogShift([16, -32, 64], 4) // returns Array [1, 2, 3]\n *\n * See also:\n *\n * bitAnd, bitNot, bitOr, bitXor, leftShift, rightLogShift\n *\n * @param {number | Array | Matrix} x Value to be shifted\n * @param {number} y Amount of shifts\n * @return {number | Array | Matrix} `x` zero-filled shifted right `y` times\n */\n\n return typed(name, {\n 'number, number': _index.rightLogShiftNumber,\n // 'BigNumber, BigNumber': ..., // TODO: implement BigNumber support for rightLogShift\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm08(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm01(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n // check scalar\n if (equalScalar(y, 0)) {\n return x.clone();\n }\n\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n // check scalar\n if (equalScalar(y, 0)) {\n return x.clone();\n }\n\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n // check scalar\n if (equalScalar(x, 0)) {\n return zeros(y.size(), y.storage());\n }\n\n return algorithm10(y, x, this, true);\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n // check scalar\n if (equalScalar(x, 0)) {\n return zeros(y.size(), y.storage());\n }\n\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n // use matrix implementation\n return this(matrix(x), y).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y)).valueOf();\n }\n });\n});\nexports.createRightLogShift = createRightLogShift;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAnd = void 0;\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm06.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'and';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'zeros', 'not'];\nvar createAnd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n zeros = _ref.zeros,\n not = _ref.not;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm06 = (0, _algorithm5.createAlgorithm06)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm2.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm13 = (0, _algorithm3.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Logical `and`. Test whether two values are both defined with a nonzero/nonempty value.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.and(x, y)\n *\n * Examples:\n *\n * math.and(2, 4) // returns true\n *\n * a = [2, 0, 0]\n * b = [3, 7, 0]\n * c = 0\n *\n * math.and(a, b) // returns [true, false, false]\n * math.and(a, c) // returns [false, false, false]\n *\n * See also:\n *\n * not, or, xor\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x First value to check\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} y Second value to check\n * @return {boolean | Array | Matrix}\n * Returns true when both inputs are defined with a nonzero/nonempty value.\n */\n\n return typed(name, {\n 'number, number': _index.andNumber,\n 'Complex, Complex': function ComplexComplex(x, y) {\n return (x.re !== 0 || x.im !== 0) && (y.re !== 0 || y.im !== 0);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return !x.isZero() && !y.isZero() && !x.isNaN() && !y.isNaN();\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n return this(x.value || 0, y.value || 0);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm06(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm02(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n // check scalar\n if (not(y)) {\n // return zero matrix\n return zeros(x.size(), x.storage());\n }\n\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n // check scalar\n if (not(y)) {\n // return zero matrix\n return zeros(x.size(), x.storage());\n }\n\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n // check scalar\n if (not(x)) {\n // return zero matrix\n return zeros(x.size(), x.storage());\n }\n\n return algorithm11(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n // check scalar\n if (not(x)) {\n // return zero matrix\n return zeros(x.size(), x.storage());\n }\n\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return this(matrix(x), y).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y)).valueOf();\n }\n });\n});\nexports.createAnd = createAnd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCompareNumber = exports.createCompare = void 0;\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm05.js\");\n\nvar name = 'compare';\nvar dependencies = ['typed', 'config', 'matrix', 'equalScalar', 'BigNumber', 'Fraction', 'DenseMatrix'];\nvar createCompare = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n equalScalar = _ref.equalScalar,\n matrix = _ref.matrix,\n BigNumber = _ref.BigNumber,\n Fraction = _ref.Fraction,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm05 = (0, _algorithm5.createAlgorithm05)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm2.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm3.createAlgorithm14)({\n typed: typed\n });\n /**\n * Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.\n *\n * x and y are considered equal when the relative difference between x and y\n * is smaller than the configured epsilon. The function cannot be used to\n * compare values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.compare(x, y)\n *\n * Examples:\n *\n * math.compare(6, 1) // returns 1\n * math.compare(2, 3) // returns -1\n * math.compare(7, 7) // returns 0\n * math.compare('10', '2') // returns 1\n * math.compare('1000', '1e3') // returns 0\n *\n * const a = math.unit('5 cm')\n * const b = math.unit('40 mm')\n * math.compare(a, b) // returns 1\n *\n * math.compare(2, [1, 2, 3]) // returns [1, 0, -1]\n *\n * See also:\n *\n * equal, unequal, smaller, smallerEq, larger, largerEq, compareNatural, compareText\n *\n * @param {number | BigNumber | Fraction | Unit | string | Array | Matrix} x First value to compare\n * @param {number | BigNumber | Fraction | Unit | string | Array | Matrix} y Second value to compare\n * @return {number | BigNumber | Fraction | Array | Matrix} Returns the result of the comparison:\n * 1 when x > y, -1 when x < y, and 0 when x == y.\n */\n\n return typed(name, {\n 'boolean, boolean': function booleanBoolean(x, y) {\n return x === y ? 0 : x > y ? 1 : -1;\n },\n 'number, number': function numberNumber(x, y) {\n return (0, _number.nearlyEqual)(x, y, config.epsilon) ? 0 : x > y ? 1 : -1;\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return (0, _nearlyEqual.nearlyEqual)(x, y, config.epsilon) ? new BigNumber(0) : new BigNumber(x.cmp(y));\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return new Fraction(x.compare(y));\n },\n 'Complex, Complex': function ComplexComplex() {\n throw new TypeError('No ordering relation is defined for complex numbers');\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (!x.equalBase(y)) {\n throw new Error('Cannot compare units with different base');\n }\n\n return this(x.value, y.value);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm05(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createCompare = createCompare;\nvar createCompareNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config;\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return (0, _number.nearlyEqual)(x, y, config.epsilon) ? 0 : x > y ? 1 : -1;\n }\n });\n});\nexports.createCompareNumber = createCompareNumber;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCompareNatural = void 0;\n\nvar _javascriptNaturalSort = _interopRequireDefault(require(\"javascript-natural-sort\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'compareNatural';\nvar dependencies = ['typed', 'compare'];\nvar createCompareNatural = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n compare = _ref.compare;\n var compareBooleans = compare.signatures['boolean,boolean'];\n /**\n * Compare two values of any type in a deterministic, natural way.\n *\n * For numeric values, the function works the same as `math.compare`.\n * For types of values that can't be compared mathematically,\n * the function compares in a natural way.\n *\n * For numeric values, x and y are considered equal when the relative\n * difference between x and y is smaller than the configured epsilon.\n * The function cannot be used to compare values smaller than\n * approximately 2.22e-16.\n *\n * For Complex numbers, first the real parts are compared. If equal,\n * the imaginary parts are compared.\n *\n * Strings are compared with a natural sorting algorithm, which\n * orders strings in a \"logic\" way following some heuristics.\n * This differs from the function `compare`, which converts the string\n * into a numeric value and compares that. The function `compareText`\n * on the other hand compares text lexically.\n *\n * Arrays and Matrices are compared value by value until there is an\n * unequal pair of values encountered. Objects are compared by sorted\n * keys until the keys or their values are unequal.\n *\n * Syntax:\n *\n * math.compareNatural(x, y)\n *\n * Examples:\n *\n * math.compareNatural(6, 1) // returns 1\n * math.compareNatural(2, 3) // returns -1\n * math.compareNatural(7, 7) // returns 0\n *\n * math.compareNatural('10', '2') // returns 1\n * math.compareText('10', '2') // returns -1\n * math.compare('10', '2') // returns 1\n *\n * math.compareNatural('Answer: 10', 'Answer: 2') // returns 1\n * math.compareText('Answer: 10', 'Answer: 2') // returns -1\n * math.compare('Answer: 10', 'Answer: 2')\n * // Error: Cannot convert \"Answer: 10\" to a number\n *\n * const a = math.unit('5 cm')\n * const b = math.unit('40 mm')\n * math.compareNatural(a, b) // returns 1\n *\n * const c = math.complex('2 + 3i')\n * const d = math.complex('2 + 4i')\n * math.compareNatural(c, d) // returns -1\n *\n * math.compareNatural([1, 2, 4], [1, 2, 3]) // returns 1\n * math.compareNatural([1, 2, 3], [1, 2]) // returns 1\n * math.compareNatural([1, 5], [1, 2, 3]) // returns 1\n * math.compareNatural([1, 2], [1, 2]) // returns 0\n *\n * math.compareNatural({a: 2}, {a: 4}) // returns -1\n *\n * See also:\n *\n * compare, compareText\n *\n * @param {*} x First value to compare\n * @param {*} y Second value to compare\n * @return {number} Returns the result of the comparison:\n * 1 when x > y, -1 when x < y, and 0 when x == y.\n */\n\n return typed(name, {\n 'any, any': function anyAny(x, y) {\n var typeX = (0, _is.typeOf)(x);\n var typeY = (0, _is.typeOf)(y);\n var c; // numeric types\n\n if ((typeX === 'number' || typeX === 'BigNumber' || typeX === 'Fraction') && (typeY === 'number' || typeY === 'BigNumber' || typeY === 'Fraction')) {\n c = compare(x, y);\n\n if (c.toString() !== '0') {\n // c can be number, BigNumber, or Fraction\n return c > 0 ? 1 : -1; // return a number\n } else {\n return (0, _javascriptNaturalSort.default)(typeX, typeY);\n }\n } // matrix types\n\n\n if (typeX === 'Array' || typeX === 'Matrix' || typeY === 'Array' || typeY === 'Matrix') {\n c = compareMatricesAndArrays(this, x, y);\n\n if (c !== 0) {\n return c;\n } else {\n return (0, _javascriptNaturalSort.default)(typeX, typeY);\n }\n } // in case of different types, order by name of type, i.e. 'BigNumber' < 'Complex'\n\n\n if (typeX !== typeY) {\n return (0, _javascriptNaturalSort.default)(typeX, typeY);\n }\n\n if (typeX === 'Complex') {\n return compareComplexNumbers(x, y);\n }\n\n if (typeX === 'Unit') {\n if (x.equalBase(y)) {\n return this(x.value, y.value);\n } // compare by units\n\n\n return compareArrays(this, x.formatUnits(), y.formatUnits());\n }\n\n if (typeX === 'boolean') {\n return compareBooleans(x, y);\n }\n\n if (typeX === 'string') {\n return (0, _javascriptNaturalSort.default)(x, y);\n }\n\n if (typeX === 'Object') {\n return compareObjects(this, x, y);\n }\n\n if (typeX === 'null') {\n return 0;\n }\n\n if (typeX === 'undefined') {\n return 0;\n } // this should not occur...\n\n\n throw new TypeError('Unsupported type of value \"' + typeX + '\"');\n }\n });\n /**\n * Compare mixed matrix/array types, by converting to same-shaped array.\n * This comparator is non-deterministic regarding input types.\n * @param {Array | SparseMatrix | DenseMatrix | *} x\n * @param {Array | SparseMatrix | DenseMatrix | *} y\n * @returns {number} Returns the comparison result: -1, 0, or 1\n */\n\n function compareMatricesAndArrays(compareNatural, x, y) {\n if ((0, _is.isSparseMatrix)(x) && (0, _is.isSparseMatrix)(y)) {\n return compareArrays(compareNatural, x.toJSON().values, y.toJSON().values);\n }\n\n if ((0, _is.isSparseMatrix)(x)) {\n // note: convert to array is expensive\n return compareMatricesAndArrays(compareNatural, x.toArray(), y);\n }\n\n if ((0, _is.isSparseMatrix)(y)) {\n // note: convert to array is expensive\n return compareMatricesAndArrays(compareNatural, x, y.toArray());\n } // convert DenseArray into Array\n\n\n if ((0, _is.isDenseMatrix)(x)) {\n return compareMatricesAndArrays(compareNatural, x.toJSON().data, y);\n }\n\n if ((0, _is.isDenseMatrix)(y)) {\n return compareMatricesAndArrays(compareNatural, x, y.toJSON().data);\n } // convert scalars to array\n\n\n if (!Array.isArray(x)) {\n return compareMatricesAndArrays(compareNatural, [x], y);\n }\n\n if (!Array.isArray(y)) {\n return compareMatricesAndArrays(compareNatural, x, [y]);\n }\n\n return compareArrays(compareNatural, x, y);\n }\n /**\n * Compare two Arrays\n *\n * - First, compares value by value\n * - Next, if all corresponding values are equal,\n * look at the length: longest array will be considered largest\n *\n * @param {Array} x\n * @param {Array} y\n * @returns {number} Returns the comparison result: -1, 0, or 1\n */\n\n\n function compareArrays(compareNatural, x, y) {\n // compare each value\n for (var i = 0, ii = Math.min(x.length, y.length); i < ii; i++) {\n var v = compareNatural(x[i], y[i]);\n\n if (v !== 0) {\n return v;\n }\n } // compare the size of the arrays\n\n\n if (x.length > y.length) {\n return 1;\n }\n\n if (x.length < y.length) {\n return -1;\n } // both Arrays have equal size and content\n\n\n return 0;\n }\n /**\n * Compare two objects\n *\n * - First, compare sorted property names\n * - Next, compare the property values\n *\n * @param {Object} x\n * @param {Object} y\n * @returns {number} Returns the comparison result: -1, 0, or 1\n */\n\n\n function compareObjects(compareNatural, x, y) {\n var keysX = Object.keys(x);\n var keysY = Object.keys(y); // compare keys\n\n keysX.sort(_javascriptNaturalSort.default);\n keysY.sort(_javascriptNaturalSort.default);\n var c = compareArrays(compareNatural, keysX, keysY);\n\n if (c !== 0) {\n return c;\n } // compare values\n\n\n for (var i = 0; i < keysX.length; i++) {\n var v = compareNatural(x[keysX[i]], y[keysY[i]]);\n\n if (v !== 0) {\n return v;\n }\n }\n\n return 0;\n }\n});\n/**\n * Compare two complex numbers, `x` and `y`:\n *\n * - First, compare the real values of `x` and `y`\n * - If equal, compare the imaginary values of `x` and `y`\n *\n * @params {Complex} x\n * @params {Complex} y\n * @returns {number} Returns the comparison result: -1, 0, or 1\n */\n\nexports.createCompareNatural = createCompareNatural;\n\nfunction compareComplexNumbers(x, y) {\n if (x.re > y.re) {\n return 1;\n }\n\n if (x.re < y.re) {\n return -1;\n }\n\n if (x.im > y.im) {\n return 1;\n }\n\n if (x.im < y.im) {\n return -1;\n }\n\n return 0;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCompareTextNumber = exports.createCompareText = void 0;\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar name = 'compareText';\nvar dependencies = ['typed', 'matrix'];\nvar createCompareText = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n var algorithm13 = (0, _algorithm2.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm.createAlgorithm14)({\n typed: typed\n });\n /**\n * Compare two strings lexically. Comparison is case sensitive.\n * Returns 1 when x > y, -1 when x < y, and 0 when x == y.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.compareText(x, y)\n *\n * Examples:\n *\n * math.compareText('B', 'A') // returns 1\n * math.compareText('2', '10') // returns 1\n * math.compare('2', '10') // returns -1\n * math.compareNatural('2', '10') // returns -1\n *\n * math.compareText('B', ['A', 'B', 'C']) // returns [1, 0, -1]\n *\n * See also:\n *\n * equal, equalText, compare, compareNatural\n *\n * @param {string | Array | DenseMatrix} x First string to compare\n * @param {string | Array | DenseMatrix} y Second string to compare\n * @return {number | Array | DenseMatrix} Returns the result of the comparison:\n * 1 when x > y, -1 when x < y, and 0 when x == y.\n */\n\n return typed(name, {\n 'any, any': _string.compareText,\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, _string.compareText);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, _string.compareText, false);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, _string.compareText, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, _string.compareText, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, _string.compareText, true).valueOf();\n }\n });\n});\nexports.createCompareText = createCompareText;\nvar createCompareTextNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed'], function (_ref2) {\n var typed = _ref2.typed;\n return typed(name, {\n 'any, any': _string.compareText\n });\n});\nexports.createCompareTextNumber = createCompareTextNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createEqualNumber = exports.createEqual = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'equal';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'DenseMatrix'];\nvar createEqual = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Test whether two values are equal.\n *\n * The function tests whether the relative difference between x and y is\n * smaller than the configured epsilon. The function cannot be used to\n * compare values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * In case of complex numbers, x.re must equal y.re, and x.im must equal y.im.\n *\n * Values `null` and `undefined` are compared strictly, thus `null` is only\n * equal to `null` and nothing else, and `undefined` is only equal to\n * `undefined` and nothing else. Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.equal(x, y)\n *\n * Examples:\n *\n * math.equal(2 + 2, 3) // returns false\n * math.equal(2 + 2, 4) // returns true\n *\n * const a = math.unit('50 cm')\n * const b = math.unit('5 m')\n * math.equal(a, b) // returns true\n *\n * const c = [2, 5, 1]\n * const d = [2, 7, 1]\n *\n * math.equal(c, d) // returns [true, false, true]\n * math.deepEqual(c, d) // returns false\n *\n * math.equal(\"1000\", \"1e3\") // returns true\n * math.equal(0, null) // returns false\n *\n * See also:\n *\n * unequal, smaller, smallerEq, larger, largerEq, compare, deepEqual, equalText\n *\n * @param {number | BigNumber | boolean | Complex | Unit | string | Array | Matrix} x First value to compare\n * @param {number | BigNumber | boolean | Complex | Unit | string | Array | Matrix} y Second value to compare\n * @return {boolean | Array | Matrix} Returns true when the compared values are equal, else returns false\n */\n\n return typed(name, {\n 'any, any': function anyAny(x, y) {\n // strict equality for null and undefined?\n if (x === null) {\n return y === null;\n }\n\n if (y === null) {\n return x === null;\n }\n\n if (x === undefined) {\n return y === undefined;\n }\n\n if (y === undefined) {\n return x === undefined;\n }\n\n return equalScalar(x, y);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, equalScalar);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, equalScalar, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, equalScalar, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, equalScalar);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, equalScalar, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, equalScalar, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, equalScalar, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, equalScalar, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, equalScalar, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, equalScalar, true).valueOf();\n }\n });\n});\nexports.createEqual = createEqual;\nvar createEqualNumber = (0, _factory.factory)(name, ['typed', 'equalScalar'], function (_ref2) {\n var typed = _ref2.typed,\n equalScalar = _ref2.equalScalar;\n return typed(name, {\n 'any, any': function anyAny(x, y) {\n // strict equality for null and undefined?\n if (x === null) {\n return y === null;\n }\n\n if (y === null) {\n return x === null;\n }\n\n if (x === undefined) {\n return y === undefined;\n }\n\n if (y === undefined) {\n return x === undefined;\n }\n\n return equalScalar(x, y);\n }\n });\n});\nexports.createEqualNumber = createEqualNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createEqualText = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'equalText';\nvar dependencies = ['typed', 'compareText', 'isZero'];\nvar createEqualText = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n compareText = _ref.compareText,\n isZero = _ref.isZero;\n\n /**\n * Check equality of two strings. Comparison is case sensitive.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.equalText(x, y)\n *\n * Examples:\n *\n * math.equalText('Hello', 'Hello') // returns true\n * math.equalText('a', 'A') // returns false\n * math.equal('2e3', '2000') // returns true\n * math.equalText('2e3', '2000') // returns false\n *\n * math.equalText('B', ['A', 'B', 'C']) // returns [false, true, false]\n *\n * See also:\n *\n * equal, compareText, compare, compareNatural\n *\n * @param {string | Array | DenseMatrix} x First string to compare\n * @param {string | Array | DenseMatrix} y Second string to compare\n * @return {number | Array | DenseMatrix} Returns true if the values are equal, and false if not.\n */\n return typed(name, {\n 'any, any': function anyAny(x, y) {\n return isZero(compareText(x, y));\n }\n });\n});\nexports.createEqualText = createEqualText;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSmallerNumber = exports.createSmaller = void 0;\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar name = 'smaller';\nvar dependencies = ['typed', 'config', 'matrix', 'DenseMatrix'];\nvar createSmaller = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Test whether value x is smaller than y.\n *\n * The function returns true when x is smaller than y and the relative\n * difference between x and y is smaller than the configured epsilon. The\n * function cannot be used to compare values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.smaller(x, y)\n *\n * Examples:\n *\n * math.smaller(2, 3) // returns true\n * math.smaller(5, 2 * 2) // returns false\n *\n * const a = math.unit('5 cm')\n * const b = math.unit('2 inch')\n * math.smaller(a, b) // returns true\n *\n * See also:\n *\n * equal, unequal, smallerEq, smaller, smallerEq, compare\n *\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} x First value to compare\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} y Second value to compare\n * @return {boolean | Array | Matrix} Returns true when the x is smaller than y, else returns false\n */\n\n return typed(name, {\n 'boolean, boolean': function booleanBoolean(x, y) {\n return x < y;\n },\n 'number, number': function numberNumber(x, y) {\n return x < y && !(0, _number.nearlyEqual)(x, y, config.epsilon);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.lt(y) && !(0, _nearlyEqual.nearlyEqual)(x, y, config.epsilon);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.compare(y) === -1;\n },\n 'Complex, Complex': function ComplexComplex(x, y) {\n throw new TypeError('No ordering relation is defined for complex numbers');\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (!x.equalBase(y)) {\n throw new Error('Cannot compare units with different base');\n }\n\n return this(x.value, y.value);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createSmaller = createSmaller;\nvar createSmallerNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config;\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return x < y && !(0, _number.nearlyEqual)(x, y, config.epsilon);\n }\n });\n});\nexports.createSmallerNumber = createSmallerNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSmallerEqNumber = exports.createSmallerEq = void 0;\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar name = 'smallerEq';\nvar dependencies = ['typed', 'config', 'matrix', 'DenseMatrix'];\nvar createSmallerEq = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Test whether value x is smaller or equal to y.\n *\n * The function returns true when x is smaller than y or the relative\n * difference between x and y is smaller than the configured epsilon. The\n * function cannot be used to compare values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.smallerEq(x, y)\n *\n * Examples:\n *\n * math.smaller(1 + 2, 3) // returns false\n * math.smallerEq(1 + 2, 3) // returns true\n *\n * See also:\n *\n * equal, unequal, smaller, larger, largerEq, compare\n *\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} x First value to compare\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} y Second value to compare\n * @return {boolean | Array | Matrix} Returns true when the x is smaller than y, else returns false\n */\n\n return typed(name, {\n 'boolean, boolean': function booleanBoolean(x, y) {\n return x <= y;\n },\n 'number, number': function numberNumber(x, y) {\n return x <= y || (0, _number.nearlyEqual)(x, y, config.epsilon);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.lte(y) || (0, _nearlyEqual.nearlyEqual)(x, y, config.epsilon);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.compare(y) !== 1;\n },\n 'Complex, Complex': function ComplexComplex() {\n throw new TypeError('No ordering relation is defined for complex numbers');\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (!x.equalBase(y)) {\n throw new Error('Cannot compare units with different base');\n }\n\n return this(x.value, y.value);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createSmallerEq = createSmallerEq;\nvar createSmallerEqNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config;\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return x <= y || (0, _number.nearlyEqual)(x, y, config.epsilon);\n }\n });\n});\nexports.createSmallerEqNumber = createSmallerEqNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLargerNumber = exports.createLarger = void 0;\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar name = 'larger';\nvar dependencies = ['typed', 'config', 'matrix', 'DenseMatrix'];\nvar createLarger = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Test whether value x is larger than y.\n *\n * The function returns true when x is larger than y and the relative\n * difference between x and y is larger than the configured epsilon. The\n * function cannot be used to compare values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.larger(x, y)\n *\n * Examples:\n *\n * math.larger(2, 3) // returns false\n * math.larger(5, 2 + 2) // returns true\n *\n * const a = math.unit('5 cm')\n * const b = math.unit('2 inch')\n * math.larger(a, b) // returns false\n *\n * See also:\n *\n * equal, unequal, smaller, smallerEq, largerEq, compare\n *\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} x First value to compare\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} y Second value to compare\n * @return {boolean | Array | Matrix} Returns true when the x is larger than y, else returns false\n */\n\n return typed(name, {\n 'boolean, boolean': function booleanBoolean(x, y) {\n return x > y;\n },\n 'number, number': function numberNumber(x, y) {\n return x > y && !(0, _number.nearlyEqual)(x, y, config.epsilon);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.gt(y) && !(0, _nearlyEqual.nearlyEqual)(x, y, config.epsilon);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.compare(y) === 1;\n },\n 'Complex, Complex': function ComplexComplex() {\n throw new TypeError('No ordering relation is defined for complex numbers');\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (!x.equalBase(y)) {\n throw new Error('Cannot compare units with different base');\n }\n\n return this(x.value, y.value);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createLarger = createLarger;\nvar createLargerNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config;\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return x > y && !(0, _number.nearlyEqual)(x, y, config.epsilon);\n }\n });\n});\nexports.createLargerNumber = createLargerNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLargerEqNumber = exports.createLargerEq = void 0;\n\nvar _nearlyEqual = require(\"../../utils/bignumber/nearlyEqual.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar name = 'largerEq';\nvar dependencies = ['typed', 'config', 'matrix', 'DenseMatrix'];\nvar createLargerEq = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Test whether value x is larger or equal to y.\n *\n * The function returns true when x is larger than y or the relative\n * difference between x and y is smaller than the configured epsilon. The\n * function cannot be used to compare values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.largerEq(x, y)\n *\n * Examples:\n *\n * math.larger(2, 1 + 1) // returns false\n * math.largerEq(2, 1 + 1) // returns true\n *\n * See also:\n *\n * equal, unequal, smaller, smallerEq, larger, compare\n *\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} x First value to compare\n * @param {number | BigNumber | Fraction | boolean | Unit | string | Array | Matrix} y Second value to compare\n * @return {boolean | Array | Matrix} Returns true when the x is larger or equal to y, else returns false\n */\n\n return typed(name, {\n 'boolean, boolean': function booleanBoolean(x, y) {\n return x >= y;\n },\n 'number, number': function numberNumber(x, y) {\n return x >= y || (0, _number.nearlyEqual)(x, y, config.epsilon);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(x, y) {\n return x.gte(y) || (0, _nearlyEqual.nearlyEqual)(x, y, config.epsilon);\n },\n 'Fraction, Fraction': function FractionFraction(x, y) {\n return x.compare(y) !== -1;\n },\n 'Complex, Complex': function ComplexComplex() {\n throw new TypeError('No ordering relation is defined for complex numbers');\n },\n 'Unit, Unit': function UnitUnit(x, y) {\n if (!x.equalBase(y)) {\n throw new Error('Cannot compare units with different base');\n }\n\n return this(x.value, y.value);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, this);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, this, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, this, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, this, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createLargerEq = createLargerEq;\nvar createLargerEqNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config;\n return typed(name, {\n 'number, number': function numberNumber(x, y) {\n return x >= y || (0, _number.nearlyEqual)(x, y, config.epsilon);\n }\n });\n});\nexports.createLargerEqNumber = createLargerEqNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDeepEqual = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'deepEqual';\nvar dependencies = ['typed', 'equal'];\nvar createDeepEqual = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n equal = _ref.equal;\n\n /**\n * Test element wise whether two matrices are equal.\n * The function accepts both matrices and scalar values.\n *\n * Strings are compared by their numerical value.\n *\n * Syntax:\n *\n * math.deepEqual(x, y)\n *\n * Examples:\n *\n * math.deepEqual(2, 4) // returns false\n *\n * a = [2, 5, 1]\n * b = [2, 7, 1]\n *\n * math.deepEqual(a, b) // returns false\n * math.equal(a, b) // returns [true, false, true]\n *\n * See also:\n *\n * equal, unequal\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x First matrix to compare\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} y Second matrix to compare\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix}\n * Returns true when the input matrices have the same size and each of their elements is equal.\n */\n return typed(name, {\n 'any, any': function anyAny(x, y) {\n return _deepEqual(x.valueOf(), y.valueOf());\n }\n });\n /**\n * Test whether two arrays have the same size and all elements are equal\n * @param {Array | *} x\n * @param {Array | *} y\n * @return {boolean} Returns true if both arrays are deep equal\n */\n\n function _deepEqual(x, y) {\n if (Array.isArray(x)) {\n if (Array.isArray(y)) {\n var len = x.length;\n\n if (len !== y.length) {\n return false;\n }\n\n for (var i = 0; i < len; i++) {\n if (!_deepEqual(x[i], y[i])) {\n return false;\n }\n }\n\n return true;\n } else {\n return false;\n }\n } else {\n if (Array.isArray(y)) {\n return false;\n } else {\n return equal(x, y);\n }\n }\n }\n});\nexports.createDeepEqual = createDeepEqual;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnequalNumber = exports.createUnequal = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm07.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar name = 'unequal';\nvar dependencies = ['typed', 'config', 'equalScalar', 'matrix', 'DenseMatrix'];\nvar createUnequal = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n equalScalar = _ref.equalScalar,\n matrix = _ref.matrix,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm03 = (0, _algorithm.createAlgorithm03)({\n typed: typed\n });\n var algorithm07 = (0, _algorithm2.createAlgorithm07)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm12 = (0, _algorithm3.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm5.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm4.createAlgorithm14)({\n typed: typed\n });\n /**\n * Test whether two values are unequal.\n *\n * The function tests whether the relative difference between x and y is\n * larger than the configured epsilon. The function cannot be used to compare\n * values smaller than approximately 2.22e-16.\n *\n * For matrices, the function is evaluated element wise.\n * In case of complex numbers, x.re must unequal y.re, or x.im must unequal y.im.\n * Strings are compared by their numerical value.\n *\n * Values `null` and `undefined` are compared strictly, thus `null` is unequal\n * with everything except `null`, and `undefined` is unequal with everything\n * except `undefined`.\n *\n * Syntax:\n *\n * math.unequal(x, y)\n *\n * Examples:\n *\n * math.unequal(2 + 2, 3) // returns true\n * math.unequal(2 + 2, 4) // returns false\n *\n * const a = math.unit('50 cm')\n * const b = math.unit('5 m')\n * math.unequal(a, b) // returns false\n *\n * const c = [2, 5, 1]\n * const d = [2, 7, 1]\n *\n * math.unequal(c, d) // returns [false, true, false]\n * math.deepEqual(c, d) // returns false\n *\n * math.unequal(0, null) // returns true\n * See also:\n *\n * equal, deepEqual, smaller, smallerEq, larger, largerEq, compare\n *\n * @param {number | BigNumber | Fraction | boolean | Complex | Unit | string | Array | Matrix | undefined} x First value to compare\n * @param {number | BigNumber | Fraction | boolean | Complex | Unit | string | Array | Matrix | undefined} y Second value to compare\n * @return {boolean | Array | Matrix} Returns true when the compared values are unequal, else returns false\n */\n\n return typed('unequal', {\n 'any, any': function anyAny(x, y) {\n // strict equality for null and undefined?\n if (x === null) {\n return y !== null;\n }\n\n if (y === null) {\n return x !== null;\n }\n\n if (x === undefined) {\n return y !== undefined;\n }\n\n if (y === undefined) {\n return x !== undefined;\n }\n\n return _unequal(x, y);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm07(x, y, _unequal);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm03(y, x, _unequal, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, _unequal, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, _unequal);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm12(x, y, _unequal, false);\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, _unequal, false);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm12(y, x, _unequal, true);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, _unequal, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, _unequal, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, _unequal, true).valueOf();\n }\n });\n\n function _unequal(x, y) {\n return !equalScalar(x, y);\n }\n});\nexports.createUnequal = createUnequal;\nvar createUnequalNumber = (0, _factory.factory)(name, ['typed', 'equalScalar'], function (_ref2) {\n var typed = _ref2.typed,\n equalScalar = _ref2.equalScalar;\n return typed(name, {\n 'any, any': function anyAny(x, y) {\n // strict equality for null and undefined?\n if (x === null) {\n return y !== null;\n }\n\n if (y === null) {\n return x !== null;\n }\n\n if (x === undefined) {\n return y !== undefined;\n }\n\n if (y === undefined) {\n return x !== undefined;\n }\n\n return !equalScalar(x, y);\n }\n });\n});\nexports.createUnequalNumber = createUnequalNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createPartitionSelect = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'partitionSelect';\nvar dependencies = ['typed', 'isNumeric', 'isNaN', 'compare'];\nvar createPartitionSelect = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n isNumeric = _ref.isNumeric,\n isNaN = _ref.isNaN,\n compare = _ref.compare;\n var asc = compare;\n\n var desc = function desc(a, b) {\n return -compare(a, b);\n };\n /**\n * Partition-based selection of an array or 1D matrix.\n * Will find the kth smallest value, and mutates the input array.\n * Uses Quickselect.\n *\n * Syntax:\n *\n * math.partitionSelect(x, k)\n * math.partitionSelect(x, k, compare)\n *\n * Examples:\n *\n * math.partitionSelect([5, 10, 1], 2) // returns 10\n * math.partitionSelect(['C', 'B', 'A', 'D'], 1) // returns 'B'\n *\n * function sortByLength (a, b) {\n * return a.length - b.length\n * }\n * math.partitionSelect(['Langdon', 'Tom', 'Sara'], 2, sortByLength) // returns 'Langdon'\n *\n * See also:\n *\n * sort\n *\n * @param {Matrix | Array} x A one dimensional matrix or array to sort\n * @param {Number} k The kth smallest value to be retrieved zero-based index\n * @param {Function | 'asc' | 'desc'} [compare='asc']\n * An optional comparator function. The function is called as\n * `compare(a, b)`, and must return 1 when a > b, -1 when a < b,\n * and 0 when a == b.\n * @return {*} Returns the kth lowest value.\n */\n\n\n return typed(name, {\n 'Array | Matrix, number': function ArrayMatrixNumber(x, k) {\n return _partitionSelect(x, k, asc);\n },\n 'Array | Matrix, number, string': function ArrayMatrixNumberString(x, k, compare) {\n if (compare === 'asc') {\n return _partitionSelect(x, k, asc);\n } else if (compare === 'desc') {\n return _partitionSelect(x, k, desc);\n } else {\n throw new Error('Compare string must be \"asc\" or \"desc\"');\n }\n },\n 'Array | Matrix, number, function': _partitionSelect\n });\n\n function _partitionSelect(x, k, compare) {\n if (!(0, _number.isInteger)(k) || k < 0) {\n throw new Error('k must be a non-negative integer');\n }\n\n if ((0, _is.isMatrix)(x)) {\n var size = x.size();\n\n if (size.length > 1) {\n throw new Error('Only one dimensional matrices supported');\n }\n\n return quickSelect(x.valueOf(), k, compare);\n }\n\n if (Array.isArray(x)) {\n return quickSelect(x, k, compare);\n }\n }\n /**\n * Quickselect algorithm.\n * Code adapted from:\n * https://blog.teamleadnet.com/2012/07/quick-select-algorithm-find-kth-element.html\n *\n * @param {Array} arr\n * @param {Number} k\n * @param {Function} compare\n * @private\n */\n\n\n function quickSelect(arr, k, compare) {\n if (k >= arr.length) {\n throw new Error('k out of bounds');\n } // check for NaN values since these can cause an infinite while loop\n\n\n for (var i = 0; i < arr.length; i++) {\n if (isNumeric(arr[i]) && isNaN(arr[i])) {\n return arr[i]; // return NaN\n }\n }\n\n var from = 0;\n var to = arr.length - 1; // if from == to we reached the kth element\n\n while (from < to) {\n var r = from;\n var w = to;\n var pivot = arr[Math.floor(Math.random() * (to - from + 1)) + from]; // stop if the reader and writer meets\n\n while (r < w) {\n // arr[r] >= pivot\n if (compare(arr[r], pivot) >= 0) {\n // put the large values at the end\n var tmp = arr[w];\n arr[w] = arr[r];\n arr[r] = tmp;\n --w;\n } else {\n // the value is smaller than the pivot, skip\n ++r;\n }\n } // if we stepped up (r++) we need to step one down (arr[r] > pivot)\n\n\n if (compare(arr[r], pivot) > 0) {\n --r;\n } // the r pointer is on the end of the first k elements\n\n\n if (k <= r) {\n to = r;\n } else {\n from = r + 1;\n }\n }\n\n return arr[k];\n }\n});\nexports.createPartitionSelect = createPartitionSelect;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSort = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'sort';\nvar dependencies = ['typed', 'matrix', 'compare', 'compareNatural'];\nvar createSort = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n compare = _ref.compare,\n compareNatural = _ref.compareNatural;\n var compareAsc = compare;\n\n var compareDesc = function compareDesc(a, b) {\n return -compare(a, b);\n };\n /**\n * Sort the items in a matrix.\n *\n * Syntax:\n *\n * math.sort(x)\n * math.sort(x, compare)\n *\n * Examples:\n *\n * math.sort([5, 10, 1]) // returns [1, 5, 10]\n * math.sort(['C', 'B', 'A', 'D'], math.compareNatural)\n * // returns ['A', 'B', 'C', 'D']\n *\n * function sortByLength (a, b) {\n * return a.length - b.length\n * }\n * math.sort(['Langdon', 'Tom', 'Sara'], sortByLength)\n * // returns ['Tom', 'Sara', 'Langdon']\n *\n * See also:\n *\n * filter, forEach, map, compare, compareNatural\n *\n * @param {Matrix | Array} x A one dimensional matrix or array to sort\n * @param {Function | 'asc' | 'desc' | 'natural'} [compare='asc']\n * An optional _comparator function or name. The function is called as\n * `compare(a, b)`, and must return 1 when a > b, -1 when a < b,\n * and 0 when a == b.\n * @return {Matrix | Array} Returns the sorted matrix.\n */\n\n\n return typed(name, {\n Array: function Array(x) {\n _arrayIsVector(x);\n\n return x.sort(compareAsc);\n },\n Matrix: function Matrix(x) {\n _matrixIsVector(x);\n\n return matrix(x.toArray().sort(compareAsc), x.storage());\n },\n 'Array, function': function ArrayFunction(x, _comparator) {\n _arrayIsVector(x);\n\n return x.sort(_comparator);\n },\n 'Matrix, function': function MatrixFunction(x, _comparator) {\n _matrixIsVector(x);\n\n return matrix(x.toArray().sort(_comparator), x.storage());\n },\n 'Array, string': function ArrayString(x, order) {\n _arrayIsVector(x);\n\n return x.sort(_comparator(order));\n },\n 'Matrix, string': function MatrixString(x, order) {\n _matrixIsVector(x);\n\n return matrix(x.toArray().sort(_comparator(order)), x.storage());\n }\n });\n /**\n * Get the comparator for given order ('asc', 'desc', 'natural')\n * @param {'asc' | 'desc' | 'natural'} order\n * @return {Function} Returns a _comparator function\n */\n\n function _comparator(order) {\n if (order === 'asc') {\n return compareAsc;\n } else if (order === 'desc') {\n return compareDesc;\n } else if (order === 'natural') {\n return compareNatural;\n } else {\n throw new Error('String \"asc\", \"desc\", or \"natural\" expected');\n }\n }\n /**\n * Validate whether an array is one dimensional\n * Throws an error when this is not the case\n * @param {Array} array\n * @private\n */\n\n\n function _arrayIsVector(array) {\n if ((0, _array.arraySize)(array).length !== 1) {\n throw new Error('One dimensional array expected');\n }\n }\n /**\n * Validate whether a matrix is one dimensional\n * Throws an error when this is not the case\n * @param {Matrix} matrix\n * @private\n */\n\n\n function _matrixIsVector(matrix) {\n if (matrix.size().length !== 1) {\n throw new Error('One dimensional matrix expected');\n }\n }\n});\nexports.createSort = createSort;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMax = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'max';\nvar dependencies = ['typed', 'config', 'numeric', 'larger'];\nvar createMax = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n numeric = _ref.numeric,\n larger = _ref.larger;\n\n /**\n * Compute the maximum value of a matrix or a list with values.\n * In case of a multi dimensional array, the maximum of the flattened array\n * will be calculated. When `dim` is provided, the maximum over the selected\n * dimension will be calculated. Parameter `dim` is zero-based.\n *\n * Syntax:\n *\n * math.max(a, b, c, ...)\n * math.max(A)\n * math.max(A, dim)\n *\n * Examples:\n *\n * math.max(2, 1, 4, 3) // returns 4\n * math.max([2, 1, 4, 3]) // returns 4\n *\n * // maximum over a specified dimension (zero-based)\n * math.max([[2, 5], [4, 3], [1, 7]], 0) // returns [4, 7]\n * math.max([[2, 5], [4, 3]], [1, 7], 1) // returns [5, 4, 7]\n *\n * math.max(2.7, 7.1, -4.5, 2.0, 4.1) // returns 7.1\n * math.min(2.7, 7.1, -4.5, 2.0, 4.1) // returns -4.5\n *\n * See also:\n *\n * mean, median, min, prod, std, sum, variance\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The maximum value\n */\n return typed(name, {\n // max([a, b, c, d, ...])\n 'Array | Matrix': _max,\n // max([a, b, c, d, ...], dim)\n 'Array | Matrix, number | BigNumber': function ArrayMatrixNumberBigNumber(array, dim) {\n return (0, _collection.reduce)(array, dim.valueOf(), _largest);\n },\n // max(a, b, c, d, ...)\n '...': function _(args) {\n if ((0, _collection.containsCollections)(args)) {\n throw new TypeError('Scalar values expected in function max');\n }\n\n return _max(args);\n }\n });\n /**\n * Return the largest of two values\n * @param {*} x\n * @param {*} y\n * @returns {*} Returns x when x is largest, or y when y is largest\n * @private\n */\n\n function _largest(x, y) {\n try {\n return larger(x, y) ? x : y;\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'max', y);\n }\n }\n /**\n * Recursively calculate the maximum value in an n-dimensional array\n * @param {Array} array\n * @return {number} max\n * @private\n */\n\n\n function _max(array) {\n var res;\n (0, _collection.deepForEach)(array, function (value) {\n try {\n if (isNaN(value) && typeof value === 'number') {\n res = NaN;\n } else if (res === undefined || larger(value, res)) {\n res = value;\n }\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'max', value);\n }\n });\n\n if (res === undefined) {\n throw new Error('Cannot calculate max of an empty array');\n } // make sure returning numeric value: parse a string into a numeric value\n\n\n if (typeof res === 'string') {\n res = numeric(res, config.number);\n }\n\n return res;\n }\n});\nexports.createMax = createMax;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMin = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'min';\nvar dependencies = ['typed', 'config', 'numeric', 'smaller'];\nvar createMin = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n numeric = _ref.numeric,\n smaller = _ref.smaller;\n\n /**\n * Compute the minimum value of a matrix or a list of values.\n * In case of a multi dimensional array, the minimum of the flattened array\n * will be calculated. When `dim` is provided, the minimum over the selected\n * dimension will be calculated. Parameter `dim` is zero-based.\n *\n * Syntax:\n *\n * math.min(a, b, c, ...)\n * math.min(A)\n * math.min(A, dim)\n *\n * Examples:\n *\n * math.min(2, 1, 4, 3) // returns 1\n * math.min([2, 1, 4, 3]) // returns 1\n *\n * // minimum over a specified dimension (zero-based)\n * math.min([[2, 5], [4, 3], [1, 7]], 0) // returns [1, 3]\n * math.min([[2, 5], [4, 3], [1, 7]], 1) // returns [2, 3, 1]\n *\n * math.max(2.7, 7.1, -4.5, 2.0, 4.1) // returns 7.1\n * math.min(2.7, 7.1, -4.5, 2.0, 4.1) // returns -4.5\n *\n * See also:\n *\n * mean, median, max, prod, std, sum, variance\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The minimum value\n */\n return typed(name, {\n // min([a, b, c, d, ...])\n 'Array | Matrix': _min,\n // min([a, b, c, d, ...], dim)\n 'Array | Matrix, number | BigNumber': function ArrayMatrixNumberBigNumber(array, dim) {\n return (0, _collection.reduce)(array, dim.valueOf(), _smallest);\n },\n // min(a, b, c, d, ...)\n '...': function _(args) {\n if ((0, _collection.containsCollections)(args)) {\n throw new TypeError('Scalar values expected in function min');\n }\n\n return _min(args);\n }\n });\n /**\n * Return the smallest of two values\n * @param {*} x\n * @param {*} y\n * @returns {*} Returns x when x is smallest, or y when y is smallest\n * @private\n */\n\n function _smallest(x, y) {\n try {\n return smaller(x, y) ? x : y;\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'min', y);\n }\n }\n /**\n * Recursively calculate the minimum value in an n-dimensional array\n * @param {Array} array\n * @return {number} min\n * @private\n */\n\n\n function _min(array) {\n var min;\n (0, _collection.deepForEach)(array, function (value) {\n try {\n if (isNaN(value) && typeof value === 'number') {\n min = NaN;\n } else if (min === undefined || smaller(value, min)) {\n min = value;\n }\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'min', value);\n }\n });\n\n if (min === undefined) {\n throw new Error('Cannot calculate min of an empty array');\n } // make sure returning numeric value: parse a string into a numeric value\n\n\n if (typeof min === 'string') {\n min = numeric(min, config.number);\n }\n\n return min;\n }\n});\nexports.createMin = createMin;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createImmutableDenseMatrixClass = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ImmutableDenseMatrix';\nvar dependencies = ['smaller', 'DenseMatrix'];\nvar createImmutableDenseMatrixClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var smaller = _ref.smaller,\n DenseMatrix = _ref.DenseMatrix;\n\n function ImmutableDenseMatrix(data, datatype) {\n if (!(this instanceof ImmutableDenseMatrix)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (datatype && !(0, _is.isString)(datatype)) {\n throw new Error('Invalid datatype: ' + datatype);\n }\n\n if ((0, _is.isMatrix)(data) || (0, _is.isArray)(data)) {\n // use DenseMatrix implementation\n var matrix = new DenseMatrix(data, datatype); // internal structures\n\n this._data = matrix._data;\n this._size = matrix._size;\n this._datatype = matrix._datatype;\n this._min = null;\n this._max = null;\n } else if (data && (0, _is.isArray)(data.data) && (0, _is.isArray)(data.size)) {\n // initialize fields from JSON representation\n this._data = data.data;\n this._size = data.size;\n this._datatype = data.datatype;\n this._min = typeof data.min !== 'undefined' ? data.min : null;\n this._max = typeof data.max !== 'undefined' ? data.max : null;\n } else if (data) {\n // unsupported type\n throw new TypeError('Unsupported type of data (' + (0, _is.typeOf)(data) + ')');\n } else {\n // nothing provided\n this._data = [];\n this._size = [0];\n this._datatype = datatype;\n this._min = null;\n this._max = null;\n }\n }\n\n ImmutableDenseMatrix.prototype = new DenseMatrix();\n /**\n * Attach type information\n */\n\n ImmutableDenseMatrix.prototype.type = 'ImmutableDenseMatrix';\n ImmutableDenseMatrix.prototype.isImmutableDenseMatrix = true;\n /**\n * Get a subset of the matrix, or replace a subset of the matrix.\n *\n * Usage:\n * const subset = matrix.subset(index) // retrieve subset\n * const value = matrix.subset(index, replacement) // replace subset\n *\n * @param {Index} index\n * @param {Array | ImmutableDenseMatrix | *} [replacement]\n * @param {*} [defaultValue=0] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be filled with zeros.\n */\n\n ImmutableDenseMatrix.prototype.subset = function (index) {\n switch (arguments.length) {\n case 1:\n {\n // use base implementation\n var m = DenseMatrix.prototype.subset.call(this, index); // check result is a matrix\n\n if ((0, _is.isMatrix)(m)) {\n // return immutable matrix\n return new ImmutableDenseMatrix({\n data: m._data,\n size: m._size,\n datatype: m._datatype\n });\n }\n\n return m;\n }\n // intentional fall through\n\n case 2:\n case 3:\n throw new Error('Cannot invoke set subset on an Immutable Matrix instance');\n\n default:\n throw new SyntaxError('Wrong number of arguments');\n }\n };\n /**\n * Replace a single element in the matrix.\n * @param {Number[]} index Zero-based index\n * @param {*} value\n * @param {*} [defaultValue] Default value, filled in on new entries when\n * the matrix is resized. If not provided,\n * new matrix elements will be left undefined.\n * @return {ImmutableDenseMatrix} self\n */\n\n\n ImmutableDenseMatrix.prototype.set = function () {\n throw new Error('Cannot invoke set on an Immutable Matrix instance');\n };\n /**\n * Resize the matrix to the given size. Returns a copy of the matrix when\n * `copy=true`, otherwise return the matrix itself (resize in place).\n *\n * @param {Number[]} size The new size the matrix should have.\n * @param {*} [defaultValue=0] Default value, filled in on new entries.\n * If not provided, the matrix elements will\n * be filled with zeros.\n * @param {boolean} [copy] Return a resized copy of the matrix\n *\n * @return {Matrix} The resized matrix\n */\n\n\n ImmutableDenseMatrix.prototype.resize = function () {\n throw new Error('Cannot invoke resize on an Immutable Matrix instance');\n };\n /**\n * Disallows reshaping in favor of immutability.\n *\n * @throws {Error} Operation not allowed\n */\n\n\n ImmutableDenseMatrix.prototype.reshape = function () {\n throw new Error('Cannot invoke reshape on an Immutable Matrix instance');\n };\n /**\n * Create a clone of the matrix\n * @return {ImmutableDenseMatrix} clone\n */\n\n\n ImmutableDenseMatrix.prototype.clone = function () {\n return new ImmutableDenseMatrix({\n data: (0, _object.clone)(this._data),\n size: (0, _object.clone)(this._size),\n datatype: this._datatype\n });\n };\n /**\n * Get a JSON representation of the matrix\n * @returns {Object}\n */\n\n\n ImmutableDenseMatrix.prototype.toJSON = function () {\n return {\n mathjs: 'ImmutableDenseMatrix',\n data: this._data,\n size: this._size,\n datatype: this._datatype\n };\n };\n /**\n * Generate a matrix from a JSON object\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"ImmutableDenseMatrix\", data: [], size: []}`,\n * where mathjs is optional\n * @returns {ImmutableDenseMatrix}\n */\n\n\n ImmutableDenseMatrix.fromJSON = function (json) {\n return new ImmutableDenseMatrix(json);\n };\n /**\n * Swap rows i and j in Matrix.\n *\n * @param {Number} i Matrix row index 1\n * @param {Number} j Matrix row index 2\n *\n * @return {Matrix} The matrix reference\n */\n\n\n ImmutableDenseMatrix.prototype.swapRows = function () {\n throw new Error('Cannot invoke swapRows on an Immutable Matrix instance');\n };\n /**\n * Calculate the minimum value in the set\n * @return {Number | undefined} min\n */\n\n\n ImmutableDenseMatrix.prototype.min = function () {\n // check min has been calculated before\n if (this._min === null) {\n // minimum\n var m = null; // compute min\n\n this.forEach(function (v) {\n if (m === null || smaller(v, m)) {\n m = v;\n }\n });\n this._min = m !== null ? m : undefined;\n }\n\n return this._min;\n };\n /**\n * Calculate the maximum value in the set\n * @return {Number | undefined} max\n */\n\n\n ImmutableDenseMatrix.prototype.max = function () {\n // check max has been calculated before\n if (this._max === null) {\n // maximum\n var m = null; // compute max\n\n this.forEach(function (v) {\n if (m === null || smaller(m, v)) {\n m = v;\n }\n });\n this._max = m !== null ? m : undefined;\n }\n\n return this._max;\n };\n\n return ImmutableDenseMatrix;\n}, {\n isClass: true\n});\nexports.createImmutableDenseMatrixClass = createImmutableDenseMatrixClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIndexClass = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Index';\nvar dependencies = ['ImmutableDenseMatrix'];\nvar createIndexClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var ImmutableDenseMatrix = _ref.ImmutableDenseMatrix;\n\n /**\n * Create an index. An Index can store ranges and sets for multiple dimensions.\n * Matrix.get, Matrix.set, and math.subset accept an Index as input.\n *\n * Usage:\n * const index = new Index(range1, range2, matrix1, array1, ...)\n *\n * Where each parameter can be any of:\n * A number\n * A string (containing a name of an object property)\n * An instance of Range\n * An Array with the Set values\n * A Matrix with the Set values\n *\n * The parameters start, end, and step must be integer numbers.\n *\n * @class Index\n * @Constructor Index\n * @param {...*} ranges\n */\n function Index(ranges) {\n if (!(this instanceof Index)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this._dimensions = [];\n this._isScalar = true;\n\n for (var i = 0, ii = arguments.length; i < ii; i++) {\n var arg = arguments[i];\n\n if ((0, _is.isRange)(arg)) {\n this._dimensions.push(arg);\n\n this._isScalar = false;\n } else if (Array.isArray(arg) || (0, _is.isMatrix)(arg)) {\n // create matrix\n var m = _createImmutableMatrix(arg.valueOf());\n\n this._dimensions.push(m); // size\n\n\n var size = m.size(); // scalar\n\n if (size.length !== 1 || size[0] !== 1) {\n this._isScalar = false;\n }\n } else if (typeof arg === 'number') {\n this._dimensions.push(_createImmutableMatrix([arg]));\n } else if (typeof arg === 'string') {\n // object property (arguments.count should be 1)\n this._dimensions.push(arg);\n } else {\n throw new TypeError('Dimension must be an Array, Matrix, number, string, or Range');\n } // TODO: implement support for wildcard '*'\n\n }\n }\n /**\n * Attach type information\n */\n\n\n Index.prototype.type = 'Index';\n Index.prototype.isIndex = true;\n\n function _createImmutableMatrix(arg) {\n // loop array elements\n for (var i = 0, l = arg.length; i < l; i++) {\n if (typeof arg[i] !== 'number' || !(0, _number.isInteger)(arg[i])) {\n throw new TypeError('Index parameters must be positive integer numbers');\n }\n } // create matrix\n\n\n return new ImmutableDenseMatrix(arg);\n }\n /**\n * Create a clone of the index\n * @memberof Index\n * @return {Index} clone\n */\n\n\n Index.prototype.clone = function () {\n var index = new Index();\n index._dimensions = (0, _object.clone)(this._dimensions);\n index._isScalar = this._isScalar;\n return index;\n };\n /**\n * Create an index from an array with ranges/numbers\n * @memberof Index\n * @param {Array.} ranges\n * @return {Index} index\n * @private\n */\n\n\n Index.create = function (ranges) {\n var index = new Index();\n Index.apply(index, ranges);\n return index;\n };\n /**\n * Retrieve the size of the index, the number of elements for each dimension.\n * @memberof Index\n * @returns {number[]} size\n */\n\n\n Index.prototype.size = function () {\n var size = [];\n\n for (var i = 0, ii = this._dimensions.length; i < ii; i++) {\n var d = this._dimensions[i];\n size[i] = typeof d === 'string' ? 1 : d.size()[0];\n }\n\n return size;\n };\n /**\n * Get the maximum value for each of the indexes ranges.\n * @memberof Index\n * @returns {number[]} max\n */\n\n\n Index.prototype.max = function () {\n var values = [];\n\n for (var i = 0, ii = this._dimensions.length; i < ii; i++) {\n var range = this._dimensions[i];\n values[i] = typeof range === 'string' ? range : range.max();\n }\n\n return values;\n };\n /**\n * Get the minimum value for each of the indexes ranges.\n * @memberof Index\n * @returns {number[]} min\n */\n\n\n Index.prototype.min = function () {\n var values = [];\n\n for (var i = 0, ii = this._dimensions.length; i < ii; i++) {\n var range = this._dimensions[i];\n values[i] = typeof range === 'string' ? range : range.min();\n }\n\n return values;\n };\n /**\n * Loop over each of the ranges of the index\n * @memberof Index\n * @param {Function} callback Called for each range with a Range as first\n * argument, the dimension as second, and the\n * index object as third.\n */\n\n\n Index.prototype.forEach = function (callback) {\n for (var i = 0, ii = this._dimensions.length; i < ii; i++) {\n callback(this._dimensions[i], i, this);\n }\n };\n /**\n * Retrieve the dimension for the given index\n * @memberof Index\n * @param {Number} dim Number of the dimension\n * @returns {Range | null} range\n */\n\n\n Index.prototype.dimension = function (dim) {\n return this._dimensions[dim] || null;\n };\n /**\n * Test whether this index contains an object property\n * @returns {boolean} Returns true if the index is an object property\n */\n\n\n Index.prototype.isObjectProperty = function () {\n return this._dimensions.length === 1 && typeof this._dimensions[0] === 'string';\n };\n /**\n * Returns the object property name when the Index holds a single object property,\n * else returns null\n * @returns {string | null}\n */\n\n\n Index.prototype.getObjectProperty = function () {\n return this.isObjectProperty() ? this._dimensions[0] : null;\n };\n /**\n * Test whether this index contains only a single value.\n *\n * This is the case when the index is created with only scalar values as ranges,\n * not for ranges resolving into a single value.\n * @memberof Index\n * @return {boolean} isScalar\n */\n\n\n Index.prototype.isScalar = function () {\n return this._isScalar;\n };\n /**\n * Expand the Index into an array.\n * For example new Index([0,3], [2,7]) returns [[0,1,2], [2,3,4,5,6]]\n * @memberof Index\n * @returns {Array} array\n */\n\n\n Index.prototype.toArray = function () {\n var array = [];\n\n for (var i = 0, ii = this._dimensions.length; i < ii; i++) {\n var dimension = this._dimensions[i];\n array.push(typeof dimension === 'string' ? dimension : dimension.toArray());\n }\n\n return array;\n };\n /**\n * Get the primitive value of the Index, a two dimensional array.\n * Equivalent to Index.toArray().\n * @memberof Index\n * @returns {Array} array\n */\n\n\n Index.prototype.valueOf = Index.prototype.toArray;\n /**\n * Get the string representation of the index, for example '[2:6]' or '[0:2:10, 4:7, [1,2,3]]'\n * @memberof Index\n * @returns {String} str\n */\n\n Index.prototype.toString = function () {\n var strings = [];\n\n for (var i = 0, ii = this._dimensions.length; i < ii; i++) {\n var dimension = this._dimensions[i];\n\n if (typeof dimension === 'string') {\n strings.push(JSON.stringify(dimension));\n } else {\n strings.push(dimension.toString());\n }\n }\n\n return '[' + strings.join(', ') + ']';\n };\n /**\n * Get a JSON representation of the Index\n * @memberof Index\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"Index\", \"ranges\": [{\"mathjs\": \"Range\", start: 0, end: 10, step:1}, ...]}`\n */\n\n\n Index.prototype.toJSON = function () {\n return {\n mathjs: 'Index',\n dimensions: this._dimensions\n };\n };\n /**\n * Instantiate an Index from a JSON object\n * @memberof Index\n * @param {Object} json A JSON object structured as:\n * `{\"mathjs\": \"Index\", \"dimensions\": [{\"mathjs\": \"Range\", start: 0, end: 10, step:1}, ...]}`\n * @return {Index}\n */\n\n\n Index.fromJSON = function (json) {\n return Index.create(json.dimensions);\n };\n\n return Index;\n}, {\n isClass: true\n});\nexports.createIndexClass = createIndexClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFibonacciHeapClass = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'FibonacciHeap';\nvar dependencies = ['smaller', 'larger'];\nvar createFibonacciHeapClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var smaller = _ref.smaller,\n larger = _ref.larger;\n var oneOverLogPhi = 1.0 / Math.log((1.0 + Math.sqrt(5.0)) / 2.0);\n /**\n * Fibonacci Heap implementation, used interally for Matrix math.\n * @class FibonacciHeap\n * @constructor FibonacciHeap\n */\n\n function FibonacciHeap() {\n if (!(this instanceof FibonacciHeap)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // initialize fields\n\n\n this._minimum = null;\n this._size = 0;\n }\n /**\n * Attach type information\n */\n\n\n FibonacciHeap.prototype.type = 'FibonacciHeap';\n FibonacciHeap.prototype.isFibonacciHeap = true;\n /**\n * Inserts a new data element into the heap. No heap consolidation is\n * performed at this time, the new node is simply inserted into the root\n * list of this heap. Running time: O(1) actual.\n * @memberof FibonacciHeap\n */\n\n FibonacciHeap.prototype.insert = function (key, value) {\n // create node\n var node = {\n key: key,\n value: value,\n degree: 0\n }; // check we have a node in the minimum\n\n if (this._minimum) {\n // minimum node\n var minimum = this._minimum; // update left & right of node\n\n node.left = minimum;\n node.right = minimum.right;\n minimum.right = node;\n node.right.left = node; // update minimum node in heap if needed\n\n if (smaller(key, minimum.key)) {\n // node has a smaller key, use it as minimum\n this._minimum = node;\n }\n } else {\n // set left & right\n node.left = node;\n node.right = node; // this is the first node\n\n this._minimum = node;\n } // increment number of nodes in heap\n\n\n this._size++; // return node\n\n return node;\n };\n /**\n * Returns the number of nodes in heap. Running time: O(1) actual.\n * @memberof FibonacciHeap\n */\n\n\n FibonacciHeap.prototype.size = function () {\n return this._size;\n };\n /**\n * Removes all elements from this heap.\n * @memberof FibonacciHeap\n */\n\n\n FibonacciHeap.prototype.clear = function () {\n this._minimum = null;\n this._size = 0;\n };\n /**\n * Returns true if the heap is empty, otherwise false.\n * @memberof FibonacciHeap\n */\n\n\n FibonacciHeap.prototype.isEmpty = function () {\n return this._size === 0;\n };\n /**\n * Extracts the node with minimum key from heap. Amortized running\n * time: O(log n).\n * @memberof FibonacciHeap\n */\n\n\n FibonacciHeap.prototype.extractMinimum = function () {\n // node to remove\n var node = this._minimum; // check we have a minimum\n\n if (node === null) {\n return node;\n } // current minimum\n\n\n var minimum = this._minimum; // get number of children\n\n var numberOfChildren = node.degree; // pointer to the first child\n\n var x = node.child; // for each child of node do...\n\n while (numberOfChildren > 0) {\n // store node in right side\n var tempRight = x.right; // remove x from child list\n\n x.left.right = x.right;\n x.right.left = x.left; // add x to root list of heap\n\n x.left = minimum;\n x.right = minimum.right;\n minimum.right = x;\n x.right.left = x; // set Parent[x] to null\n\n x.parent = null;\n x = tempRight;\n numberOfChildren--;\n } // remove node from root list of heap\n\n\n node.left.right = node.right;\n node.right.left = node.left; // update minimum\n\n if (node === node.right) {\n // empty\n minimum = null;\n } else {\n // update minimum\n minimum = node.right; // we need to update the pointer to the root with minimum key\n\n minimum = _findMinimumNode(minimum, this._size);\n } // decrement size of heap\n\n\n this._size--; // update minimum\n\n this._minimum = minimum; // return node\n\n return node;\n };\n /**\n * Removes a node from the heap given the reference to the node. The trees\n * in the heap will be consolidated, if necessary. This operation may fail\n * to remove the correct element if there are nodes with key value -Infinity.\n * Running time: O(log n) amortized.\n * @memberof FibonacciHeap\n */\n\n\n FibonacciHeap.prototype.remove = function (node) {\n // decrease key value\n this._minimum = _decreaseKey(this._minimum, node, -1); // remove the smallest\n\n this.extractMinimum();\n };\n /**\n * Decreases the key value for a heap node, given the new value to take on.\n * The structure of the heap may be changed and will not be consolidated.\n * Running time: O(1) amortized.\n * @memberof FibonacciHeap\n */\n\n\n function _decreaseKey(minimum, node, key) {\n // set node key\n node.key = key; // get parent node\n\n var parent = node.parent;\n\n if (parent && smaller(node.key, parent.key)) {\n // remove node from parent\n _cut(minimum, node, parent); // remove all nodes from parent to the root parent\n\n\n _cascadingCut(minimum, parent);\n } // update minimum node if needed\n\n\n if (smaller(node.key, minimum.key)) {\n minimum = node;\n } // return minimum\n\n\n return minimum;\n }\n /**\n * The reverse of the link operation: removes node from the child list of parent.\n * This method assumes that min is non-null. Running time: O(1).\n * @memberof FibonacciHeap\n */\n\n\n function _cut(minimum, node, parent) {\n // remove node from parent children and decrement Degree[parent]\n node.left.right = node.right;\n node.right.left = node.left;\n parent.degree--; // reset y.child if necessary\n\n if (parent.child === node) {\n parent.child = node.right;\n } // remove child if degree is 0\n\n\n if (parent.degree === 0) {\n parent.child = null;\n } // add node to root list of heap\n\n\n node.left = minimum;\n node.right = minimum.right;\n minimum.right = node;\n node.right.left = node; // set parent[node] to null\n\n node.parent = null; // set mark[node] to false\n\n node.mark = false;\n }\n /**\n * Performs a cascading cut operation. This cuts node from its parent and then\n * does the same for its parent, and so on up the tree.\n * Running time: O(log n); O(1) excluding the recursion.\n * @memberof FibonacciHeap\n */\n\n\n function _cascadingCut(minimum, node) {\n // store parent node\n var parent = node.parent; // if there's a parent...\n\n if (!parent) {\n return;\n } // if node is unmarked, set it marked\n\n\n if (!node.mark) {\n node.mark = true;\n } else {\n // it's marked, cut it from parent\n _cut(minimum, node, parent); // cut its parent as well\n\n\n _cascadingCut(parent);\n }\n }\n /**\n * Make the first node a child of the second one. Running time: O(1) actual.\n * @memberof FibonacciHeap\n */\n\n\n var _linkNodes = function _linkNodes(node, parent) {\n // remove node from root list of heap\n node.left.right = node.right;\n node.right.left = node.left; // make node a Child of parent\n\n node.parent = parent;\n\n if (!parent.child) {\n parent.child = node;\n node.right = node;\n node.left = node;\n } else {\n node.left = parent.child;\n node.right = parent.child.right;\n parent.child.right = node;\n node.right.left = node;\n } // increase degree[parent]\n\n\n parent.degree++; // set mark[node] false\n\n node.mark = false;\n };\n\n function _findMinimumNode(minimum, size) {\n // to find trees of the same degree efficiently we use an array of length O(log n) in which we keep a pointer to one root of each degree\n var arraySize = Math.floor(Math.log(size) * oneOverLogPhi) + 1; // create list with initial capacity\n\n var array = new Array(arraySize); // find the number of root nodes.\n\n var numRoots = 0;\n var x = minimum;\n\n if (x) {\n numRoots++;\n x = x.right;\n\n while (x !== minimum) {\n numRoots++;\n x = x.right;\n }\n } // vars\n\n\n var y; // For each node in root list do...\n\n while (numRoots > 0) {\n // access this node's degree..\n var d = x.degree; // get next node\n\n var next = x.right; // check if there is a node already in array with the same degree\n\n while (true) {\n // get node with the same degree is any\n y = array[d];\n\n if (!y) {\n break;\n } // make one node with the same degree a child of the other, do this based on the key value.\n\n\n if (larger(x.key, y.key)) {\n var temp = y;\n y = x;\n x = temp;\n } // make y a child of x\n\n\n _linkNodes(y, x); // we have handled this degree, go to next one.\n\n\n array[d] = null;\n d++;\n } // save this node for later when we might encounter another of the same degree.\n\n\n array[d] = x; // move forward through list.\n\n x = next;\n numRoots--;\n } // Set min to null (effectively losing the root list) and reconstruct the root list from the array entries in array[].\n\n\n minimum = null; // loop nodes in array\n\n for (var i = 0; i < arraySize; i++) {\n // get current node\n y = array[i];\n\n if (!y) {\n continue;\n } // check if we have a linked list\n\n\n if (minimum) {\n // First remove node from root list.\n y.left.right = y.right;\n y.right.left = y.left; // now add to root list, again.\n\n y.left = minimum;\n y.right = minimum.right;\n minimum.right = y;\n y.right.left = y; // check if this is a new min.\n\n if (smaller(y.key, minimum.key)) {\n minimum = y;\n }\n } else {\n minimum = y;\n }\n }\n\n return minimum;\n }\n\n return FibonacciHeap;\n}, {\n isClass: true\n});\nexports.createFibonacciHeapClass = createFibonacciHeapClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSpaClass = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Spa';\nvar dependencies = ['addScalar', 'equalScalar', 'FibonacciHeap'];\nvar createSpaClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var addScalar = _ref.addScalar,\n equalScalar = _ref.equalScalar,\n FibonacciHeap = _ref.FibonacciHeap;\n\n /**\n * An ordered Sparse Accumulator is a representation for a sparse vector that includes a dense array\n * of the vector elements and an ordered list of non-zero elements.\n */\n function Spa() {\n if (!(this instanceof Spa)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // allocate vector, TODO use typed arrays\n\n\n this._values = [];\n this._heap = new FibonacciHeap();\n }\n /**\n * Attach type information\n */\n\n\n Spa.prototype.type = 'Spa';\n Spa.prototype.isSpa = true;\n /**\n * Set the value for index i.\n *\n * @param {number} i The index\n * @param {number | BigNumber | Complex} The value at index i\n */\n\n Spa.prototype.set = function (i, v) {\n // check we have a value @ i\n if (!this._values[i]) {\n // insert in heap\n var node = this._heap.insert(i, v); // set the value @ i\n\n\n this._values[i] = node;\n } else {\n // update the value @ i\n this._values[i].value = v;\n }\n };\n\n Spa.prototype.get = function (i) {\n var node = this._values[i];\n\n if (node) {\n return node.value;\n }\n\n return 0;\n };\n\n Spa.prototype.accumulate = function (i, v) {\n // node @ i\n var node = this._values[i];\n\n if (!node) {\n // insert in heap\n node = this._heap.insert(i, v); // initialize value\n\n this._values[i] = node;\n } else {\n // accumulate value\n node.value = addScalar(node.value, v);\n }\n };\n\n Spa.prototype.forEach = function (from, to, callback) {\n // references\n var heap = this._heap;\n var values = this._values; // nodes\n\n var nodes = []; // node with minimum key, save it\n\n var node = heap.extractMinimum();\n\n if (node) {\n nodes.push(node);\n } // extract nodes from heap (ordered)\n\n\n while (node && node.key <= to) {\n // check it is in range\n if (node.key >= from) {\n // check value is not zero\n if (!equalScalar(node.value, 0)) {\n // invoke callback\n callback(node.key, node.value, this);\n }\n } // extract next node, save it\n\n\n node = heap.extractMinimum();\n\n if (node) {\n nodes.push(node);\n }\n } // reinsert all nodes in heap\n\n\n for (var i = 0; i < nodes.length; i++) {\n // current node\n var n = nodes[i]; // insert node in heap\n\n node = heap.insert(n.key, n.value); // update values\n\n values[node.key] = node;\n }\n };\n\n Spa.prototype.swap = function (i, j) {\n // node @ i and j\n var nodei = this._values[i];\n var nodej = this._values[j]; // check we need to insert indeces\n\n if (!nodei && nodej) {\n // insert in heap\n nodei = this._heap.insert(i, nodej.value); // remove from heap\n\n this._heap.remove(nodej); // set values\n\n\n this._values[i] = nodei;\n this._values[j] = undefined;\n } else if (nodei && !nodej) {\n // insert in heap\n nodej = this._heap.insert(j, nodei.value); // remove from heap\n\n this._heap.remove(nodei); // set values\n\n\n this._values[j] = nodej;\n this._values[i] = undefined;\n } else if (nodei && nodej) {\n // swap values\n var v = nodei.value;\n nodei.value = nodej.value;\n nodej.value = v;\n }\n };\n\n return Spa;\n}, {\n isClass: true\n});\nexports.createSpaClass = createSpaClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBigNumberTau = exports.createBigNumberPi = exports.createBigNumberPhi = exports.createBigNumberE = void 0;\n\nvar _function = require(\"../function.js\");\n\n/**\n * Calculate BigNumber e\n * @param {function} BigNumber BigNumber constructor\n * @returns {BigNumber} Returns e\n */\nvar createBigNumberE = (0, _function.memoize)(function (BigNumber) {\n return new BigNumber(1).exp();\n}, {\n hasher: hasher\n});\n/**\n * Calculate BigNumber golden ratio, phi = (1+sqrt(5))/2\n * @param {function} BigNumber BigNumber constructor\n * @returns {BigNumber} Returns phi\n */\n\nexports.createBigNumberE = createBigNumberE;\nvar createBigNumberPhi = (0, _function.memoize)(function (BigNumber) {\n return new BigNumber(1).plus(new BigNumber(5).sqrt()).div(2);\n}, {\n hasher: hasher\n});\n/**\n * Calculate BigNumber pi.\n * @param {function} BigNumber BigNumber constructor\n * @returns {BigNumber} Returns pi\n */\n\nexports.createBigNumberPhi = createBigNumberPhi;\nvar createBigNumberPi = (0, _function.memoize)(function (BigNumber) {\n return BigNumber.acos(-1);\n}, {\n hasher: hasher\n});\n/**\n * Calculate BigNumber tau, tau = 2 * pi\n * @param {function} BigNumber BigNumber constructor\n * @returns {BigNumber} Returns tau\n */\n\nexports.createBigNumberPi = createBigNumberPi;\nvar createBigNumberTau = (0, _function.memoize)(function (BigNumber) {\n return createBigNumberPi(BigNumber).times(2);\n}, {\n hasher: hasher\n});\n/**\n * Create a hash for a BigNumber constructor function. The created has is\n * the configured precision\n * @param {Array} args Supposed to contain a single entry with\n * a BigNumber constructor\n * @return {number} precision\n * @private\n */\n\nexports.createBigNumberTau = createBigNumberTau;\n\nfunction hasher(args) {\n return args[0].precision;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnitClass = void 0;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _constants = require(\"../../utils/bignumber/constants.js\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nvar name = 'Unit';\nvar dependencies = ['?on', 'config', 'addScalar', 'subtract', 'multiplyScalar', 'divideScalar', 'pow', 'abs', 'fix', 'round', 'equal', 'isNumeric', 'format', 'number', 'Complex', 'BigNumber', 'Fraction'];\nvar createUnitClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var on = _ref.on,\n config = _ref.config,\n addScalar = _ref.addScalar,\n subtract = _ref.subtract,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n pow = _ref.pow,\n abs = _ref.abs,\n fix = _ref.fix,\n round = _ref.round,\n equal = _ref.equal,\n isNumeric = _ref.isNumeric,\n format = _ref.format,\n number = _ref.number,\n Complex = _ref.Complex,\n _BigNumber = _ref.BigNumber,\n _Fraction = _ref.Fraction;\n var toNumber = number;\n /**\n * A unit can be constructed in the following ways:\n *\n * const a = new Unit(value, name)\n * const b = new Unit(null, name)\n * const c = Unit.parse(str)\n *\n * Example usage:\n *\n * const a = new Unit(5, 'cm') // 50 mm\n * const b = Unit.parse('23 kg') // 23 kg\n * const c = math.in(a, new Unit(null, 'm') // 0.05 m\n * const d = new Unit(9.81, \"m/s^2\") // 9.81 m/s^2\n *\n * @class Unit\n * @constructor Unit\n * @param {number | BigNumber | Fraction | Complex | boolean} [value] A value like 5.2\n * @param {string} [name] A unit name like \"cm\" or \"inch\", or a derived unit of the form: \"u1[^ex1] [u2[^ex2] ...] [/ u3[^ex3] [u4[^ex4]]]\", such as \"kg m^2/s^2\", where each unit appearing after the forward slash is taken to be in the denominator. \"kg m^2 s^-2\" is a synonym and is also acceptable. Any of the units can include a prefix.\n */\n\n function Unit(value, name) {\n if (!(this instanceof Unit)) {\n throw new Error('Constructor must be called with the new operator');\n }\n\n if (!(value === null || value === undefined || isNumeric(value) || (0, _is.isComplex)(value))) {\n throw new TypeError('First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined');\n }\n\n if (name !== undefined && (typeof name !== 'string' || name === '')) {\n throw new TypeError('Second parameter in Unit constructor must be a string');\n }\n\n if (name !== undefined) {\n var u = Unit.parse(name);\n this.units = u.units;\n this.dimensions = u.dimensions;\n } else {\n this.units = [{\n unit: UNIT_NONE,\n prefix: PREFIXES.NONE,\n // link to a list with supported prefixes\n power: 0\n }];\n this.dimensions = [];\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n this.dimensions[i] = 0;\n }\n }\n\n this.value = value !== undefined && value !== null ? this._normalize(value) : null;\n this.fixPrefix = false; // if true, function format will not search for the\n // best prefix but leave it as initially provided.\n // fixPrefix is set true by the method Unit.to\n // The justification behind this is that if the constructor is explicitly called,\n // the caller wishes the units to be returned exactly as he supplied.\n\n this.skipAutomaticSimplification = true;\n }\n /**\n * Attach type information\n */\n\n\n Unit.prototype.type = 'Unit';\n Unit.prototype.isUnit = true; // private variables and functions for the Unit parser\n\n var text, index, c;\n\n function skipWhitespace() {\n while (c === ' ' || c === '\\t') {\n next();\n }\n }\n\n function isDigitDot(c) {\n return c >= '0' && c <= '9' || c === '.';\n }\n\n function isDigit(c) {\n return c >= '0' && c <= '9';\n }\n\n function next() {\n index++;\n c = text.charAt(index);\n }\n\n function revert(oldIndex) {\n index = oldIndex;\n c = text.charAt(index);\n }\n\n function parseNumber() {\n var number = '';\n var oldIndex = index;\n\n if (c === '+') {\n next();\n } else if (c === '-') {\n number += c;\n next();\n }\n\n if (!isDigitDot(c)) {\n // a + or - must be followed by a digit\n revert(oldIndex);\n return null;\n } // get number, can have a single dot\n\n\n if (c === '.') {\n number += c;\n next();\n\n if (!isDigit(c)) {\n // this is no legal number, it is just a dot\n revert(oldIndex);\n return null;\n }\n } else {\n while (isDigit(c)) {\n number += c;\n next();\n }\n\n if (c === '.') {\n number += c;\n next();\n }\n }\n\n while (isDigit(c)) {\n number += c;\n next();\n } // check for exponential notation like \"2.3e-4\" or \"1.23e50\"\n\n\n if (c === 'E' || c === 'e') {\n // The grammar branches here. This could either be part of an exponent or the start of a unit that begins with the letter e, such as \"4exabytes\"\n var tentativeNumber = '';\n var tentativeIndex = index;\n tentativeNumber += c;\n next();\n\n if (c === '+' || c === '-') {\n tentativeNumber += c;\n next();\n } // Scientific notation MUST be followed by an exponent (otherwise we assume it is not scientific notation)\n\n\n if (!isDigit(c)) {\n // The e or E must belong to something else, so return the number without the e or E.\n revert(tentativeIndex);\n return number;\n } // We can now safely say that this is scientific notation.\n\n\n number = number + tentativeNumber;\n\n while (isDigit(c)) {\n number += c;\n next();\n }\n }\n\n return number;\n }\n\n function parseUnit() {\n var unitName = ''; // Alphanumeric characters only; matches [a-zA-Z0-9]\n\n while (isDigit(c) || Unit.isValidAlpha(c)) {\n unitName += c;\n next();\n } // Must begin with [a-zA-Z]\n\n\n var firstC = unitName.charAt(0);\n\n if (Unit.isValidAlpha(firstC)) {\n return unitName;\n } else {\n return null;\n }\n }\n\n function parseCharacter(toFind) {\n if (c === toFind) {\n next();\n return toFind;\n } else {\n return null;\n }\n }\n /**\n * Parse a string into a unit. The value of the unit is parsed as number,\n * BigNumber, or Fraction depending on the math.js config setting `number`.\n *\n * Throws an exception if the provided string does not contain a valid unit or\n * cannot be parsed.\n * @memberof Unit\n * @param {string} str A string like \"5.2 inch\", \"4e2 cm/s^2\"\n * @return {Unit} unit\n */\n\n\n Unit.parse = function (str, options) {\n options = options || {};\n text = str;\n index = -1;\n c = '';\n\n if (typeof text !== 'string') {\n throw new TypeError('Invalid argument in Unit.parse, string expected');\n }\n\n var unit = new Unit();\n unit.units = [];\n var powerMultiplierCurrent = 1;\n var expectingUnit = false; // A unit should follow this pattern:\n // [number] ...[ [*/] unit[^number] ]\n // unit[^number] ... [ [*/] unit[^number] ]\n // Rules:\n // number is any floating point number.\n // unit is any alphanumeric string beginning with an alpha. Units with names like e3 should be avoided because they look like the exponent of a floating point number!\n // The string may optionally begin with a number.\n // Each unit may optionally be followed by ^number.\n // Whitespace or a forward slash is recommended between consecutive units, although the following technically is parseable:\n // 2m^2kg/s^2\n // it is not good form. If a unit starts with e, then it could be confused as a floating point number:\n // 4erg\n\n next();\n skipWhitespace(); // Optional number at the start of the string\n\n var valueStr = parseNumber();\n var value = null;\n\n if (valueStr) {\n if (config.number === 'BigNumber') {\n value = new _BigNumber(valueStr);\n } else if (config.number === 'Fraction') {\n try {\n // not all numbers can be turned in Fractions, for example very small numbers not\n value = new _Fraction(valueStr);\n } catch (err) {\n value = parseFloat(valueStr);\n }\n } else {\n // number\n value = parseFloat(valueStr);\n }\n\n skipWhitespace(); // Whitespace is not required here\n // handle multiplication or division right after the value, like '1/s'\n\n if (parseCharacter('*')) {\n powerMultiplierCurrent = 1;\n expectingUnit = true;\n } else if (parseCharacter('/')) {\n powerMultiplierCurrent = -1;\n expectingUnit = true;\n }\n } // Stack to keep track of powerMultipliers applied to each parentheses group\n\n\n var powerMultiplierStack = []; // Running product of all elements in powerMultiplierStack\n\n var powerMultiplierStackProduct = 1;\n\n while (true) {\n skipWhitespace(); // Check for and consume opening parentheses, pushing powerMultiplierCurrent to the stack\n // A '(' will always appear directly before a unit.\n\n while (c === '(') {\n powerMultiplierStack.push(powerMultiplierCurrent);\n powerMultiplierStackProduct *= powerMultiplierCurrent;\n powerMultiplierCurrent = 1;\n next();\n skipWhitespace();\n } // Is there something here?\n\n\n var uStr = void 0;\n\n if (c) {\n var oldC = c;\n uStr = parseUnit();\n\n if (uStr === null) {\n throw new SyntaxError('Unexpected \"' + oldC + '\" in \"' + text + '\" at index ' + index.toString());\n }\n } else {\n // End of input.\n break;\n } // Verify the unit exists and get the prefix (if any)\n\n\n var res = _findUnit(uStr);\n\n if (res === null) {\n // Unit not found.\n throw new SyntaxError('Unit \"' + uStr + '\" not found.');\n }\n\n var power = powerMultiplierCurrent * powerMultiplierStackProduct; // Is there a \"^ number\"?\n\n skipWhitespace();\n\n if (parseCharacter('^')) {\n skipWhitespace();\n var p = parseNumber();\n\n if (p === null) {\n // No valid number found for the power!\n throw new SyntaxError('In \"' + str + '\", \"^\" must be followed by a floating-point number');\n }\n\n power *= p;\n } // Add the unit to the list\n\n\n unit.units.push({\n unit: res.unit,\n prefix: res.prefix,\n power: power\n });\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n unit.dimensions[i] += (res.unit.dimensions[i] || 0) * power;\n } // Check for and consume closing parentheses, popping from the stack.\n // A ')' will always follow a unit.\n\n\n skipWhitespace();\n\n while (c === ')') {\n if (powerMultiplierStack.length === 0) {\n throw new SyntaxError('Unmatched \")\" in \"' + text + '\" at index ' + index.toString());\n }\n\n powerMultiplierStackProduct /= powerMultiplierStack.pop();\n next();\n skipWhitespace();\n } // \"*\" and \"/\" should mean we are expecting something to come next.\n // Is there a forward slash? If so, negate powerMultiplierCurrent. The next unit or paren group is in the denominator.\n\n\n expectingUnit = false;\n\n if (parseCharacter('*')) {\n // explicit multiplication\n powerMultiplierCurrent = 1;\n expectingUnit = true;\n } else if (parseCharacter('/')) {\n // division\n powerMultiplierCurrent = -1;\n expectingUnit = true;\n } else {\n // implicit multiplication\n powerMultiplierCurrent = 1;\n } // Replace the unit into the auto unit system\n\n\n if (res.unit.base) {\n var baseDim = res.unit.base.key;\n UNIT_SYSTEMS.auto[baseDim] = {\n unit: res.unit,\n prefix: res.prefix\n };\n }\n } // Has the string been entirely consumed?\n\n\n skipWhitespace();\n\n if (c) {\n throw new SyntaxError('Could not parse: \"' + str + '\"');\n } // Is there a trailing slash?\n\n\n if (expectingUnit) {\n throw new SyntaxError('Trailing characters: \"' + str + '\"');\n } // Is the parentheses stack empty?\n\n\n if (powerMultiplierStack.length !== 0) {\n throw new SyntaxError('Unmatched \"(\" in \"' + text + '\"');\n } // Are there any units at all?\n\n\n if (unit.units.length === 0 && !options.allowNoUnits) {\n throw new SyntaxError('\"' + str + '\" contains no units');\n }\n\n unit.value = value !== undefined ? unit._normalize(value) : null;\n return unit;\n };\n /**\n * create a copy of this unit\n * @memberof Unit\n * @return {Unit} Returns a cloned version of the unit\n */\n\n\n Unit.prototype.clone = function () {\n var unit = new Unit();\n unit.fixPrefix = this.fixPrefix;\n unit.skipAutomaticSimplification = this.skipAutomaticSimplification;\n unit.value = (0, _object.clone)(this.value);\n unit.dimensions = this.dimensions.slice(0);\n unit.units = [];\n\n for (var i = 0; i < this.units.length; i++) {\n unit.units[i] = {};\n\n for (var p in this.units[i]) {\n if ((0, _object.hasOwnProperty)(this.units[i], p)) {\n unit.units[i][p] = this.units[i][p];\n }\n }\n }\n\n return unit;\n };\n /**\n * Return whether the unit is derived (such as m/s, or cm^2, but not N)\n * @memberof Unit\n * @return {boolean} True if the unit is derived\n */\n\n\n Unit.prototype._isDerived = function () {\n if (this.units.length === 0) {\n return false;\n }\n\n return this.units.length > 1 || Math.abs(this.units[0].power - 1.0) > 1e-15;\n };\n /**\n * Normalize a value, based on its currently set unit(s)\n * @memberof Unit\n * @param {number | BigNumber | Fraction | boolean} value\n * @return {number | BigNumber | Fraction | boolean} normalized value\n * @private\n */\n\n\n Unit.prototype._normalize = function (value) {\n if (value === null || value === undefined || this.units.length === 0) {\n return value;\n }\n\n var res = value;\n\n var convert = Unit._getNumberConverter((0, _is.typeOf)(value)); // convert to Fraction or BigNumber if needed\n\n\n for (var i = 0; i < this.units.length; i++) {\n var unitValue = convert(this.units[i].unit.value);\n var unitPrefixValue = convert(this.units[i].prefix.value);\n var unitPower = convert(this.units[i].power);\n res = multiplyScalar(res, pow(multiplyScalar(unitValue, unitPrefixValue), unitPower));\n }\n\n return res;\n };\n /**\n * Denormalize a value, based on its currently set unit(s)\n * @memberof Unit\n * @param {number} value\n * @param {number} [prefixValue] Optional prefix value to be used (ignored if this is a derived unit)\n * @return {number} denormalized value\n * @private\n */\n\n\n Unit.prototype._denormalize = function (value, prefixValue) {\n if (value === null || value === undefined || this.units.length === 0) {\n return value;\n }\n\n var res = value;\n\n var convert = Unit._getNumberConverter((0, _is.typeOf)(value)); // convert to Fraction or BigNumber if needed\n\n\n for (var i = 0; i < this.units.length; i++) {\n var unitValue = convert(this.units[i].unit.value);\n var unitPrefixValue = convert(this.units[i].prefix.value);\n var unitPower = convert(this.units[i].power);\n res = divideScalar(res, pow(multiplyScalar(unitValue, unitPrefixValue), unitPower));\n }\n\n return res;\n };\n /**\n * Find a unit from a string\n * @memberof Unit\n * @param {string} str A string like 'cm' or 'inch'\n * @returns {Object | null} result When found, an object with fields unit and\n * prefix is returned. Else, null is returned.\n * @private\n */\n\n\n var _findUnit = (0, _function.memoize)(function (str) {\n // First, match units names exactly. For example, a user could define 'mm' as 10^-4 m, which is silly, but then we would want 'mm' to match the user-defined unit.\n if ((0, _object.hasOwnProperty)(UNITS, str)) {\n var unit = UNITS[str];\n var prefix = unit.prefixes[''];\n return {\n unit: unit,\n prefix: prefix\n };\n }\n\n for (var _name in UNITS) {\n if ((0, _object.hasOwnProperty)(UNITS, _name)) {\n if ((0, _string.endsWith)(str, _name)) {\n var _unit = UNITS[_name];\n var prefixLen = str.length - _name.length;\n var prefixName = str.substring(0, prefixLen);\n\n var _prefix = (0, _object.hasOwnProperty)(_unit.prefixes, prefixName) ? _unit.prefixes[prefixName] : undefined;\n\n if (_prefix !== undefined) {\n // store unit, prefix, and value\n return {\n unit: _unit,\n prefix: _prefix\n };\n }\n }\n }\n }\n\n return null;\n }, {\n hasher: function hasher(args) {\n return args[0];\n },\n limit: 100\n });\n /**\n * Test if the given expression is a unit.\n * The unit can have a prefix but cannot have a value.\n * @memberof Unit\n * @param {string} name A string to be tested whether it is a value less unit.\n * The unit can have prefix, like \"cm\"\n * @return {boolean} true if the given string is a unit\n */\n\n\n Unit.isValuelessUnit = function (name) {\n return _findUnit(name) !== null;\n };\n /**\n * check if this unit has given base unit\n * If this unit is a derived unit, this will ALWAYS return false, since by definition base units are not derived.\n * @memberof Unit\n * @param {BASE_UNITS | string | undefined} base\n */\n\n\n Unit.prototype.hasBase = function (base) {\n if (typeof base === 'string') {\n base = BASE_UNITS[base];\n }\n\n if (!base) {\n return false;\n } // All dimensions must be the same\n\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n if (Math.abs((this.dimensions[i] || 0) - (base.dimensions[i] || 0)) > 1e-12) {\n return false;\n }\n }\n\n return true;\n };\n /**\n * Check if this unit has a base or bases equal to another base or bases\n * For derived units, the exponent on each base also must match\n * @memberof Unit\n * @param {Unit} other\n * @return {boolean} true if equal base\n */\n\n\n Unit.prototype.equalBase = function (other) {\n // All dimensions must be the same\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n if (Math.abs((this.dimensions[i] || 0) - (other.dimensions[i] || 0)) > 1e-12) {\n return false;\n }\n }\n\n return true;\n };\n /**\n * Check if this unit equals another unit\n * @memberof Unit\n * @param {Unit} other\n * @return {boolean} true if both units are equal\n */\n\n\n Unit.prototype.equals = function (other) {\n return this.equalBase(other) && equal(this.value, other.value);\n };\n /**\n * Multiply this unit with another one\n * @memberof Unit\n * @param {Unit} other\n * @return {Unit} product of this unit and the other unit\n */\n\n\n Unit.prototype.multiply = function (other) {\n var res = this.clone();\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n // Dimensions arrays may be of different lengths. Default to 0.\n res.dimensions[i] = (this.dimensions[i] || 0) + (other.dimensions[i] || 0);\n } // Append other's units list onto res\n\n\n for (var _i = 0; _i < other.units.length; _i++) {\n // Make a shallow copy of every unit\n var inverted = _objectSpread({}, other.units[_i]);\n\n res.units.push(inverted);\n } // If at least one operand has a value, then the result should also have a value\n\n\n if (this.value !== null || other.value !== null) {\n var valThis = this.value === null ? this._normalize(1) : this.value;\n var valOther = other.value === null ? other._normalize(1) : other.value;\n res.value = multiplyScalar(valThis, valOther);\n } else {\n res.value = null;\n }\n\n res.skipAutomaticSimplification = false;\n return getNumericIfUnitless(res);\n };\n /**\n * Divide this unit by another one\n * @memberof Unit\n * @param {Unit} other\n * @return {Unit} result of dividing this unit by the other unit\n */\n\n\n Unit.prototype.divide = function (other) {\n var res = this.clone();\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n // Dimensions arrays may be of different lengths. Default to 0.\n res.dimensions[i] = (this.dimensions[i] || 0) - (other.dimensions[i] || 0);\n } // Invert and append other's units list onto res\n\n\n for (var _i2 = 0; _i2 < other.units.length; _i2++) {\n // Make a shallow copy of every unit\n var inverted = _objectSpread(_objectSpread({}, other.units[_i2]), {}, {\n power: -other.units[_i2].power\n });\n\n res.units.push(inverted);\n } // If at least one operand has a value, the result should have a value\n\n\n if (this.value !== null || other.value !== null) {\n var valThis = this.value === null ? this._normalize(1) : this.value;\n var valOther = other.value === null ? other._normalize(1) : other.value;\n res.value = divideScalar(valThis, valOther);\n } else {\n res.value = null;\n }\n\n res.skipAutomaticSimplification = false;\n return getNumericIfUnitless(res);\n };\n /**\n * Calculate the power of a unit\n * @memberof Unit\n * @param {number | Fraction | BigNumber} p\n * @returns {Unit} The result: this^p\n */\n\n\n Unit.prototype.pow = function (p) {\n var res = this.clone();\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n // Dimensions arrays may be of different lengths. Default to 0.\n res.dimensions[i] = (this.dimensions[i] || 0) * p;\n } // Adjust the power of each unit in the list\n\n\n for (var _i3 = 0; _i3 < res.units.length; _i3++) {\n res.units[_i3].power *= p;\n }\n\n if (res.value !== null) {\n res.value = pow(res.value, p); // only allow numeric output, we don't want to return a Complex number\n // if (!isNumeric(res.value)) {\n // res.value = NaN\n // }\n // Update: Complex supported now\n } else {\n res.value = null;\n }\n\n res.skipAutomaticSimplification = false;\n return getNumericIfUnitless(res);\n };\n /**\n * Return the numeric value of this unit if it is dimensionless, has a value, and config.predictable == false; or the original unit otherwise\n * @param {Unit} unit\n * @returns {number | Fraction | BigNumber | Unit} The numeric value of the unit if conditions are met, or the original unit otherwise\n */\n\n\n function getNumericIfUnitless(unit) {\n if (unit.equalBase(BASE_UNITS.NONE) && unit.value !== null && !config.predictable) {\n return unit.value;\n } else {\n return unit;\n }\n }\n /**\n * Calculate the absolute value of a unit\n * @memberof Unit\n * @param {number | Fraction | BigNumber} x\n * @returns {Unit} The result: |x|, absolute value of x\n */\n\n\n Unit.prototype.abs = function () {\n var ret = this.clone();\n\n if (ret.value !== null) {\n if (ret._isDerived() || ret.units[0].unit.offset === 0) {\n ret.value = abs(ret.value);\n } else {\n // To give the correct, but unexpected, results for units with an offset.\n // For example, abs(-283.15 degC) = -263.15 degC !!!\n // We must take the offset into consideration here\n var convert = Unit._getNumberConverter((0, _is.typeOf)(ret.value)); // convert to Fraction or BigNumber if needed\n\n\n var unitValue = convert(ret.units[0].unit.value);\n var nominalOffset = convert(ret.units[0].unit.offset);\n var unitOffset = multiplyScalar(unitValue, nominalOffset);\n ret.value = subtract(abs(addScalar(ret.value, unitOffset)), unitOffset);\n }\n }\n\n for (var i in ret.units) {\n if (ret.units[i].unit.name === 'VA' || ret.units[i].unit.name === 'VAR') {\n ret.units[i].unit = UNITS.W;\n }\n }\n\n return ret;\n };\n /**\n * Convert the unit to a specific unit name.\n * @memberof Unit\n * @param {string | Unit} valuelessUnit A unit without value. Can have prefix, like \"cm\"\n * @returns {Unit} Returns a clone of the unit with a fixed prefix and unit.\n */\n\n\n Unit.prototype.to = function (valuelessUnit) {\n var value = this.value === null ? this._normalize(1) : this.value;\n var other;\n\n if (typeof valuelessUnit === 'string') {\n other = Unit.parse(valuelessUnit);\n } else if ((0, _is.isUnit)(valuelessUnit)) {\n other = valuelessUnit.clone();\n } else {\n throw new Error('String or Unit expected as parameter');\n }\n\n if (!this.equalBase(other)) {\n throw new Error(\"Units do not match ('\".concat(other.toString(), \"' != '\").concat(this.toString(), \"')\"));\n }\n\n if (other.value !== null) {\n throw new Error('Cannot convert to a unit with a value');\n }\n\n if (this.value === null || this._isDerived() || this.units[0].unit.offset === other.units[0].unit.offset) {\n other.value = (0, _object.clone)(value);\n } else {\n /* Need to adjust value by difference in offset to convert */\n var convert = Unit._getNumberConverter((0, _is.typeOf)(value)); // convert to Fraction or BigNumber if needed\n\n\n var thisUnitValue = convert(this.units[0].unit.value);\n var thisNominalOffset = convert(this.units[0].unit.offset);\n var thisUnitOffset = multiplyScalar(thisUnitValue, thisNominalOffset);\n var otherUnitValue = convert(other.units[0].unit.value);\n var otherNominalOffset = convert(other.units[0].unit.offset);\n var otherUnitOffset = multiplyScalar(otherUnitValue, otherNominalOffset);\n other.value = subtract(addScalar(value, thisUnitOffset), otherUnitOffset);\n }\n\n other.fixPrefix = true;\n other.skipAutomaticSimplification = true;\n return other;\n };\n /**\n * Return the value of the unit when represented with given valueless unit\n * @memberof Unit\n * @param {string | Unit} valuelessUnit For example 'cm' or 'inch'\n * @return {number} Returns the unit value as number.\n */\n // TODO: deprecate Unit.toNumber? It's always better to use toNumeric\n\n\n Unit.prototype.toNumber = function (valuelessUnit) {\n return toNumber(this.toNumeric(valuelessUnit));\n };\n /**\n * Return the value of the unit in the original numeric type\n * @memberof Unit\n * @param {string | Unit} valuelessUnit For example 'cm' or 'inch'\n * @return {number | BigNumber | Fraction} Returns the unit value\n */\n\n\n Unit.prototype.toNumeric = function (valuelessUnit) {\n var other;\n\n if (valuelessUnit) {\n // Allow getting the numeric value without converting to a different unit\n other = this.to(valuelessUnit);\n } else {\n other = this.clone();\n }\n\n if (other._isDerived() || other.units.length === 0) {\n return other._denormalize(other.value);\n } else {\n return other._denormalize(other.value, other.units[0].prefix.value);\n }\n };\n /**\n * Get a string representation of the unit.\n * @memberof Unit\n * @return {string}\n */\n\n\n Unit.prototype.toString = function () {\n return this.format();\n };\n /**\n * Get a JSON representation of the unit\n * @memberof Unit\n * @returns {Object} Returns a JSON object structured as:\n * `{\"mathjs\": \"Unit\", \"value\": 2, \"unit\": \"cm\", \"fixPrefix\": false}`\n */\n\n\n Unit.prototype.toJSON = function () {\n return {\n mathjs: 'Unit',\n value: this._denormalize(this.value),\n unit: this.formatUnits(),\n fixPrefix: this.fixPrefix\n };\n };\n /**\n * Instantiate a Unit from a JSON object\n * @memberof Unit\n * @param {Object} json A JSON object structured as:\n * `{\"mathjs\": \"Unit\", \"value\": 2, \"unit\": \"cm\", \"fixPrefix\": false}`\n * @return {Unit}\n */\n\n\n Unit.fromJSON = function (json) {\n var unit = new Unit(json.value, json.unit);\n unit.fixPrefix = json.fixPrefix || false;\n return unit;\n };\n /**\n * Returns the string representation of the unit.\n * @memberof Unit\n * @return {string}\n */\n\n\n Unit.prototype.valueOf = Unit.prototype.toString;\n /**\n * Simplify this Unit's unit list and return a new Unit with the simplified list.\n * The returned Unit will contain a list of the \"best\" units for formatting.\n */\n\n Unit.prototype.simplify = function () {\n var ret = this.clone();\n var proposedUnitList = []; // Search for a matching base\n\n var matchingBase;\n\n for (var key in currentUnitSystem) {\n if ((0, _object.hasOwnProperty)(currentUnitSystem, key)) {\n if (ret.hasBase(BASE_UNITS[key])) {\n matchingBase = key;\n break;\n }\n }\n }\n\n if (matchingBase === 'NONE') {\n ret.units = [];\n } else {\n var matchingUnit;\n\n if (matchingBase) {\n // Does the unit system have a matching unit?\n if ((0, _object.hasOwnProperty)(currentUnitSystem, matchingBase)) {\n matchingUnit = currentUnitSystem[matchingBase];\n }\n }\n\n if (matchingUnit) {\n ret.units = [{\n unit: matchingUnit.unit,\n prefix: matchingUnit.prefix,\n power: 1.0\n }];\n } else {\n // Multiple units or units with powers are formatted like this:\n // 5 (kg m^2) / (s^3 mol)\n // Build an representation from the base units of the current unit system\n var missingBaseDim = false;\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n var baseDim = BASE_DIMENSIONS[i];\n\n if (Math.abs(ret.dimensions[i] || 0) > 1e-12) {\n if ((0, _object.hasOwnProperty)(currentUnitSystem, baseDim)) {\n proposedUnitList.push({\n unit: currentUnitSystem[baseDim].unit,\n prefix: currentUnitSystem[baseDim].prefix,\n power: ret.dimensions[i] || 0\n });\n } else {\n missingBaseDim = true;\n }\n }\n } // Is the proposed unit list \"simpler\" than the existing one?\n\n\n if (proposedUnitList.length < ret.units.length && !missingBaseDim) {\n // Replace this unit list with the proposed list\n ret.units = proposedUnitList;\n }\n }\n }\n\n return ret;\n };\n /**\n * Returns a new Unit in the SI system with the same value as this one\n */\n\n\n Unit.prototype.toSI = function () {\n var ret = this.clone();\n var proposedUnitList = []; // Multiple units or units with powers are formatted like this:\n // 5 (kg m^2) / (s^3 mol)\n // Build an representation from the base units of the SI unit system\n\n for (var i = 0; i < BASE_DIMENSIONS.length; i++) {\n var baseDim = BASE_DIMENSIONS[i];\n\n if (Math.abs(ret.dimensions[i] || 0) > 1e-12) {\n if ((0, _object.hasOwnProperty)(UNIT_SYSTEMS.si, baseDim)) {\n proposedUnitList.push({\n unit: UNIT_SYSTEMS.si[baseDim].unit,\n prefix: UNIT_SYSTEMS.si[baseDim].prefix,\n power: ret.dimensions[i] || 0\n });\n } else {\n throw new Error('Cannot express custom unit ' + baseDim + ' in SI units');\n }\n }\n } // Replace this unit list with the proposed list\n\n\n ret.units = proposedUnitList;\n ret.fixPrefix = true;\n ret.skipAutomaticSimplification = true;\n return ret;\n };\n /**\n * Get a string representation of the units of this Unit, without the value. The unit list is formatted as-is without first being simplified.\n * @memberof Unit\n * @return {string}\n */\n\n\n Unit.prototype.formatUnits = function () {\n var strNum = '';\n var strDen = '';\n var nNum = 0;\n var nDen = 0;\n\n for (var i = 0; i < this.units.length; i++) {\n if (this.units[i].power > 0) {\n nNum++;\n strNum += ' ' + this.units[i].prefix.name + this.units[i].unit.name;\n\n if (Math.abs(this.units[i].power - 1.0) > 1e-15) {\n strNum += '^' + this.units[i].power;\n }\n } else if (this.units[i].power < 0) {\n nDen++;\n }\n }\n\n if (nDen > 0) {\n for (var _i4 = 0; _i4 < this.units.length; _i4++) {\n if (this.units[_i4].power < 0) {\n if (nNum > 0) {\n strDen += ' ' + this.units[_i4].prefix.name + this.units[_i4].unit.name;\n\n if (Math.abs(this.units[_i4].power + 1.0) > 1e-15) {\n strDen += '^' + -this.units[_i4].power;\n }\n } else {\n strDen += ' ' + this.units[_i4].prefix.name + this.units[_i4].unit.name;\n strDen += '^' + this.units[_i4].power;\n }\n }\n }\n } // Remove leading \" \"\n\n\n strNum = strNum.substr(1);\n strDen = strDen.substr(1); // Add parans for better copy/paste back into evaluate, for example, or for better pretty print formatting\n\n if (nNum > 1 && nDen > 0) {\n strNum = '(' + strNum + ')';\n }\n\n if (nDen > 1 && nNum > 0) {\n strDen = '(' + strDen + ')';\n }\n\n var str = strNum;\n\n if (nNum > 0 && nDen > 0) {\n str += ' / ';\n }\n\n str += strDen;\n return str;\n };\n /**\n * Get a string representation of the Unit, with optional formatting options.\n * @memberof Unit\n * @param {Object | number | Function} [options] Formatting options. See\n * lib/utils/number:format for a\n * description of the available\n * options.\n * @return {string}\n */\n\n\n Unit.prototype.format = function (options) {\n // Simplfy the unit list, unless it is valueless or was created directly in the\n // constructor or as the result of to or toSI\n var simp = this.skipAutomaticSimplification || this.value === null ? this.clone() : this.simplify(); // Apply some custom logic for handling VA and VAR. The goal is to express the value of the unit as a real value, if possible. Otherwise, use a real-valued unit instead of a complex-valued one.\n\n var isImaginary = false;\n\n if (typeof simp.value !== 'undefined' && simp.value !== null && (0, _is.isComplex)(simp.value)) {\n // TODO: Make this better, for example, use relative magnitude of re and im rather than absolute\n isImaginary = Math.abs(simp.value.re) < 1e-14;\n }\n\n for (var i in simp.units) {\n if ((0, _object.hasOwnProperty)(simp.units, i)) {\n if (simp.units[i].unit) {\n if (simp.units[i].unit.name === 'VA' && isImaginary) {\n simp.units[i].unit = UNITS.VAR;\n } else if (simp.units[i].unit.name === 'VAR' && !isImaginary) {\n simp.units[i].unit = UNITS.VA;\n }\n }\n }\n } // Now apply the best prefix\n // Units must have only one unit and not have the fixPrefix flag set\n\n\n if (simp.units.length === 1 && !simp.fixPrefix) {\n // Units must have integer powers, otherwise the prefix will change the\n // outputted value by not-an-integer-power-of-ten\n if (Math.abs(simp.units[0].power - Math.round(simp.units[0].power)) < 1e-14) {\n // Apply the best prefix\n simp.units[0].prefix = simp._bestPrefix();\n }\n }\n\n var value = simp._denormalize(simp.value);\n\n var str = simp.value !== null ? format(value, options || {}) : '';\n var unitStr = simp.formatUnits();\n\n if (simp.value && (0, _is.isComplex)(simp.value)) {\n str = '(' + str + ')'; // Surround complex values with ( ) to enable better parsing\n }\n\n if (unitStr.length > 0 && str.length > 0) {\n str += ' ';\n }\n\n str += unitStr;\n return str;\n };\n /**\n * Calculate the best prefix using current value.\n * @memberof Unit\n * @returns {Object} prefix\n * @private\n */\n\n\n Unit.prototype._bestPrefix = function () {\n if (this.units.length !== 1) {\n throw new Error('Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!');\n }\n\n if (Math.abs(this.units[0].power - Math.round(this.units[0].power)) >= 1e-14) {\n throw new Error('Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!');\n } // find the best prefix value (resulting in the value of which\n // the absolute value of the log10 is closest to zero,\n // though with a little offset of 1.2 for nicer values: you get a\n // sequence 1mm 100mm 500mm 0.6m 1m 10m 100m 500m 0.6km 1km ...\n // Note: the units value can be any numeric type, but to find the best\n // prefix it's enough to work with limited precision of a regular number\n // Update: using mathjs abs since we also allow complex numbers\n\n\n var absValue = this.value !== null ? abs(this.value) : 0;\n var absUnitValue = abs(this.units[0].unit.value);\n var bestPrefix = this.units[0].prefix;\n\n if (absValue === 0) {\n return bestPrefix;\n }\n\n var power = this.units[0].power;\n var bestDiff = Math.log(absValue / Math.pow(bestPrefix.value * absUnitValue, power)) / Math.LN10 - 1.2;\n if (bestDiff > -2.200001 && bestDiff < 1.800001) return bestPrefix; // Allow the original prefix\n\n bestDiff = Math.abs(bestDiff);\n var prefixes = this.units[0].unit.prefixes;\n\n for (var p in prefixes) {\n if ((0, _object.hasOwnProperty)(prefixes, p)) {\n var prefix = prefixes[p];\n\n if (prefix.scientific) {\n var diff = Math.abs(Math.log(absValue / Math.pow(prefix.value * absUnitValue, power)) / Math.LN10 - 1.2);\n\n if (diff < bestDiff || diff === bestDiff && prefix.name.length < bestPrefix.name.length) {\n // choose the prefix with the smallest diff, or if equal, choose the one\n // with the shortest name (can happen with SHORTLONG for example)\n bestPrefix = prefix;\n bestDiff = diff;\n }\n }\n }\n }\n\n return bestPrefix;\n };\n /**\n * Returns an array of units whose sum is equal to this unit\n * @memberof Unit\n * @param {Array} [parts] An array of strings or valueless units.\n *\n * Example:\n *\n * const u = new Unit(1, 'm')\n * u.splitUnit(['feet', 'inch'])\n * [ 3 feet, 3.3700787401575 inch ]\n *\n * @return {Array} An array of units.\n */\n\n\n Unit.prototype.splitUnit = function (parts) {\n var x = this.clone();\n var ret = [];\n\n for (var i = 0; i < parts.length; i++) {\n // Convert x to the requested unit\n x = x.to(parts[i]);\n if (i === parts.length - 1) break; // Get the numeric value of this unit\n\n var xNumeric = x.toNumeric(); // Check to see if xNumeric is nearly equal to an integer,\n // since fix can incorrectly round down if there is round-off error\n\n var xRounded = round(xNumeric);\n var xFixed = void 0;\n var isNearlyEqual = equal(xRounded, xNumeric);\n\n if (isNearlyEqual) {\n xFixed = xRounded;\n } else {\n xFixed = fix(x.toNumeric());\n }\n\n var y = new Unit(xFixed, parts[i].toString());\n ret.push(y);\n x = subtract(x, y);\n } // This little bit fixes a bug where the remainder should be 0 but is a little bit off.\n // But instead of comparing x, the remainder, with zero--we will compare the sum of\n // all the parts so far with the original value. If they are nearly equal,\n // we set the remainder to 0.\n\n\n var testSum = 0;\n\n for (var _i5 = 0; _i5 < ret.length; _i5++) {\n testSum = addScalar(testSum, ret[_i5].value);\n }\n\n if (equal(testSum, this.value)) {\n x.value = 0;\n }\n\n ret.push(x);\n return ret;\n };\n\n var PREFIXES = {\n NONE: {\n '': {\n name: '',\n value: 1,\n scientific: true\n }\n },\n SHORT: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n da: {\n name: 'da',\n value: 1e1,\n scientific: false\n },\n h: {\n name: 'h',\n value: 1e2,\n scientific: false\n },\n k: {\n name: 'k',\n value: 1e3,\n scientific: true\n },\n M: {\n name: 'M',\n value: 1e6,\n scientific: true\n },\n G: {\n name: 'G',\n value: 1e9,\n scientific: true\n },\n T: {\n name: 'T',\n value: 1e12,\n scientific: true\n },\n P: {\n name: 'P',\n value: 1e15,\n scientific: true\n },\n E: {\n name: 'E',\n value: 1e18,\n scientific: true\n },\n Z: {\n name: 'Z',\n value: 1e21,\n scientific: true\n },\n Y: {\n name: 'Y',\n value: 1e24,\n scientific: true\n },\n d: {\n name: 'd',\n value: 1e-1,\n scientific: false\n },\n c: {\n name: 'c',\n value: 1e-2,\n scientific: false\n },\n m: {\n name: 'm',\n value: 1e-3,\n scientific: true\n },\n u: {\n name: 'u',\n value: 1e-6,\n scientific: true\n },\n n: {\n name: 'n',\n value: 1e-9,\n scientific: true\n },\n p: {\n name: 'p',\n value: 1e-12,\n scientific: true\n },\n f: {\n name: 'f',\n value: 1e-15,\n scientific: true\n },\n a: {\n name: 'a',\n value: 1e-18,\n scientific: true\n },\n z: {\n name: 'z',\n value: 1e-21,\n scientific: true\n },\n y: {\n name: 'y',\n value: 1e-24,\n scientific: true\n }\n },\n LONG: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n deca: {\n name: 'deca',\n value: 1e1,\n scientific: false\n },\n hecto: {\n name: 'hecto',\n value: 1e2,\n scientific: false\n },\n kilo: {\n name: 'kilo',\n value: 1e3,\n scientific: true\n },\n mega: {\n name: 'mega',\n value: 1e6,\n scientific: true\n },\n giga: {\n name: 'giga',\n value: 1e9,\n scientific: true\n },\n tera: {\n name: 'tera',\n value: 1e12,\n scientific: true\n },\n peta: {\n name: 'peta',\n value: 1e15,\n scientific: true\n },\n exa: {\n name: 'exa',\n value: 1e18,\n scientific: true\n },\n zetta: {\n name: 'zetta',\n value: 1e21,\n scientific: true\n },\n yotta: {\n name: 'yotta',\n value: 1e24,\n scientific: true\n },\n deci: {\n name: 'deci',\n value: 1e-1,\n scientific: false\n },\n centi: {\n name: 'centi',\n value: 1e-2,\n scientific: false\n },\n milli: {\n name: 'milli',\n value: 1e-3,\n scientific: true\n },\n micro: {\n name: 'micro',\n value: 1e-6,\n scientific: true\n },\n nano: {\n name: 'nano',\n value: 1e-9,\n scientific: true\n },\n pico: {\n name: 'pico',\n value: 1e-12,\n scientific: true\n },\n femto: {\n name: 'femto',\n value: 1e-15,\n scientific: true\n },\n atto: {\n name: 'atto',\n value: 1e-18,\n scientific: true\n },\n zepto: {\n name: 'zepto',\n value: 1e-21,\n scientific: true\n },\n yocto: {\n name: 'yocto',\n value: 1e-24,\n scientific: true\n }\n },\n SQUARED: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n da: {\n name: 'da',\n value: 1e2,\n scientific: false\n },\n h: {\n name: 'h',\n value: 1e4,\n scientific: false\n },\n k: {\n name: 'k',\n value: 1e6,\n scientific: true\n },\n M: {\n name: 'M',\n value: 1e12,\n scientific: true\n },\n G: {\n name: 'G',\n value: 1e18,\n scientific: true\n },\n T: {\n name: 'T',\n value: 1e24,\n scientific: true\n },\n P: {\n name: 'P',\n value: 1e30,\n scientific: true\n },\n E: {\n name: 'E',\n value: 1e36,\n scientific: true\n },\n Z: {\n name: 'Z',\n value: 1e42,\n scientific: true\n },\n Y: {\n name: 'Y',\n value: 1e48,\n scientific: true\n },\n d: {\n name: 'd',\n value: 1e-2,\n scientific: false\n },\n c: {\n name: 'c',\n value: 1e-4,\n scientific: false\n },\n m: {\n name: 'm',\n value: 1e-6,\n scientific: true\n },\n u: {\n name: 'u',\n value: 1e-12,\n scientific: true\n },\n n: {\n name: 'n',\n value: 1e-18,\n scientific: true\n },\n p: {\n name: 'p',\n value: 1e-24,\n scientific: true\n },\n f: {\n name: 'f',\n value: 1e-30,\n scientific: true\n },\n a: {\n name: 'a',\n value: 1e-36,\n scientific: true\n },\n z: {\n name: 'z',\n value: 1e-42,\n scientific: true\n },\n y: {\n name: 'y',\n value: 1e-48,\n scientific: true\n }\n },\n CUBIC: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n da: {\n name: 'da',\n value: 1e3,\n scientific: false\n },\n h: {\n name: 'h',\n value: 1e6,\n scientific: false\n },\n k: {\n name: 'k',\n value: 1e9,\n scientific: true\n },\n M: {\n name: 'M',\n value: 1e18,\n scientific: true\n },\n G: {\n name: 'G',\n value: 1e27,\n scientific: true\n },\n T: {\n name: 'T',\n value: 1e36,\n scientific: true\n },\n P: {\n name: 'P',\n value: 1e45,\n scientific: true\n },\n E: {\n name: 'E',\n value: 1e54,\n scientific: true\n },\n Z: {\n name: 'Z',\n value: 1e63,\n scientific: true\n },\n Y: {\n name: 'Y',\n value: 1e72,\n scientific: true\n },\n d: {\n name: 'd',\n value: 1e-3,\n scientific: false\n },\n c: {\n name: 'c',\n value: 1e-6,\n scientific: false\n },\n m: {\n name: 'm',\n value: 1e-9,\n scientific: true\n },\n u: {\n name: 'u',\n value: 1e-18,\n scientific: true\n },\n n: {\n name: 'n',\n value: 1e-27,\n scientific: true\n },\n p: {\n name: 'p',\n value: 1e-36,\n scientific: true\n },\n f: {\n name: 'f',\n value: 1e-45,\n scientific: true\n },\n a: {\n name: 'a',\n value: 1e-54,\n scientific: true\n },\n z: {\n name: 'z',\n value: 1e-63,\n scientific: true\n },\n y: {\n name: 'y',\n value: 1e-72,\n scientific: true\n }\n },\n BINARY_SHORT_SI: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n k: {\n name: 'k',\n value: 1e3,\n scientific: true\n },\n M: {\n name: 'M',\n value: 1e6,\n scientific: true\n },\n G: {\n name: 'G',\n value: 1e9,\n scientific: true\n },\n T: {\n name: 'T',\n value: 1e12,\n scientific: true\n },\n P: {\n name: 'P',\n value: 1e15,\n scientific: true\n },\n E: {\n name: 'E',\n value: 1e18,\n scientific: true\n },\n Z: {\n name: 'Z',\n value: 1e21,\n scientific: true\n },\n Y: {\n name: 'Y',\n value: 1e24,\n scientific: true\n }\n },\n BINARY_SHORT_IEC: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n Ki: {\n name: 'Ki',\n value: 1024,\n scientific: true\n },\n Mi: {\n name: 'Mi',\n value: Math.pow(1024, 2),\n scientific: true\n },\n Gi: {\n name: 'Gi',\n value: Math.pow(1024, 3),\n scientific: true\n },\n Ti: {\n name: 'Ti',\n value: Math.pow(1024, 4),\n scientific: true\n },\n Pi: {\n name: 'Pi',\n value: Math.pow(1024, 5),\n scientific: true\n },\n Ei: {\n name: 'Ei',\n value: Math.pow(1024, 6),\n scientific: true\n },\n Zi: {\n name: 'Zi',\n value: Math.pow(1024, 7),\n scientific: true\n },\n Yi: {\n name: 'Yi',\n value: Math.pow(1024, 8),\n scientific: true\n }\n },\n BINARY_LONG_SI: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n kilo: {\n name: 'kilo',\n value: 1e3,\n scientific: true\n },\n mega: {\n name: 'mega',\n value: 1e6,\n scientific: true\n },\n giga: {\n name: 'giga',\n value: 1e9,\n scientific: true\n },\n tera: {\n name: 'tera',\n value: 1e12,\n scientific: true\n },\n peta: {\n name: 'peta',\n value: 1e15,\n scientific: true\n },\n exa: {\n name: 'exa',\n value: 1e18,\n scientific: true\n },\n zetta: {\n name: 'zetta',\n value: 1e21,\n scientific: true\n },\n yotta: {\n name: 'yotta',\n value: 1e24,\n scientific: true\n }\n },\n BINARY_LONG_IEC: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n kibi: {\n name: 'kibi',\n value: 1024,\n scientific: true\n },\n mebi: {\n name: 'mebi',\n value: Math.pow(1024, 2),\n scientific: true\n },\n gibi: {\n name: 'gibi',\n value: Math.pow(1024, 3),\n scientific: true\n },\n tebi: {\n name: 'tebi',\n value: Math.pow(1024, 4),\n scientific: true\n },\n pebi: {\n name: 'pebi',\n value: Math.pow(1024, 5),\n scientific: true\n },\n exi: {\n name: 'exi',\n value: Math.pow(1024, 6),\n scientific: true\n },\n zebi: {\n name: 'zebi',\n value: Math.pow(1024, 7),\n scientific: true\n },\n yobi: {\n name: 'yobi',\n value: Math.pow(1024, 8),\n scientific: true\n }\n },\n BTU: {\n '': {\n name: '',\n value: 1,\n scientific: true\n },\n MM: {\n name: 'MM',\n value: 1e6,\n scientific: true\n }\n }\n };\n PREFIXES.SHORTLONG = (0, _extends2.default)({}, PREFIXES.SHORT, PREFIXES.LONG);\n PREFIXES.BINARY_SHORT = (0, _extends2.default)({}, PREFIXES.BINARY_SHORT_SI, PREFIXES.BINARY_SHORT_IEC);\n PREFIXES.BINARY_LONG = (0, _extends2.default)({}, PREFIXES.BINARY_LONG_SI, PREFIXES.BINARY_LONG_IEC);\n /* Internally, each unit is represented by a value and a dimension array. The elements of the dimensions array have the following meaning:\n * Index Dimension\n * ----- ---------\n * 0 Length\n * 1 Mass\n * 2 Time\n * 3 Current\n * 4 Temperature\n * 5 Luminous intensity\n * 6 Amount of substance\n * 7 Angle\n * 8 Bit (digital)\n * For example, the unit \"298.15 K\" is a pure temperature and would have a value of 298.15 and a dimension array of [0, 0, 0, 0, 1, 0, 0, 0, 0]. The unit \"1 cal / (gm °C)\" can be written in terms of the 9 fundamental dimensions as [length^2] / ([time^2] * [temperature]), and would a value of (after conversion to SI) 4184.0 and a dimensions array of [2, 0, -2, 0, -1, 0, 0, 0, 0].\n *\n */\n\n var BASE_DIMENSIONS = ['MASS', 'LENGTH', 'TIME', 'CURRENT', 'TEMPERATURE', 'LUMINOUS_INTENSITY', 'AMOUNT_OF_SUBSTANCE', 'ANGLE', 'BIT'];\n var BASE_UNITS = {\n NONE: {\n dimensions: [0, 0, 0, 0, 0, 0, 0, 0, 0]\n },\n MASS: {\n dimensions: [1, 0, 0, 0, 0, 0, 0, 0, 0]\n },\n LENGTH: {\n dimensions: [0, 1, 0, 0, 0, 0, 0, 0, 0]\n },\n TIME: {\n dimensions: [0, 0, 1, 0, 0, 0, 0, 0, 0]\n },\n CURRENT: {\n dimensions: [0, 0, 0, 1, 0, 0, 0, 0, 0]\n },\n TEMPERATURE: {\n dimensions: [0, 0, 0, 0, 1, 0, 0, 0, 0]\n },\n LUMINOUS_INTENSITY: {\n dimensions: [0, 0, 0, 0, 0, 1, 0, 0, 0]\n },\n AMOUNT_OF_SUBSTANCE: {\n dimensions: [0, 0, 0, 0, 0, 0, 1, 0, 0]\n },\n FORCE: {\n dimensions: [1, 1, -2, 0, 0, 0, 0, 0, 0]\n },\n SURFACE: {\n dimensions: [0, 2, 0, 0, 0, 0, 0, 0, 0]\n },\n VOLUME: {\n dimensions: [0, 3, 0, 0, 0, 0, 0, 0, 0]\n },\n ENERGY: {\n dimensions: [1, 2, -2, 0, 0, 0, 0, 0, 0]\n },\n POWER: {\n dimensions: [1, 2, -3, 0, 0, 0, 0, 0, 0]\n },\n PRESSURE: {\n dimensions: [1, -1, -2, 0, 0, 0, 0, 0, 0]\n },\n ELECTRIC_CHARGE: {\n dimensions: [0, 0, 1, 1, 0, 0, 0, 0, 0]\n },\n ELECTRIC_CAPACITANCE: {\n dimensions: [-1, -2, 4, 2, 0, 0, 0, 0, 0]\n },\n ELECTRIC_POTENTIAL: {\n dimensions: [1, 2, -3, -1, 0, 0, 0, 0, 0]\n },\n ELECTRIC_RESISTANCE: {\n dimensions: [1, 2, -3, -2, 0, 0, 0, 0, 0]\n },\n ELECTRIC_INDUCTANCE: {\n dimensions: [1, 2, -2, -2, 0, 0, 0, 0, 0]\n },\n ELECTRIC_CONDUCTANCE: {\n dimensions: [-1, -2, 3, 2, 0, 0, 0, 0, 0]\n },\n MAGNETIC_FLUX: {\n dimensions: [1, 2, -2, -1, 0, 0, 0, 0, 0]\n },\n MAGNETIC_FLUX_DENSITY: {\n dimensions: [1, 0, -2, -1, 0, 0, 0, 0, 0]\n },\n FREQUENCY: {\n dimensions: [0, 0, -1, 0, 0, 0, 0, 0, 0]\n },\n ANGLE: {\n dimensions: [0, 0, 0, 0, 0, 0, 0, 1, 0]\n },\n BIT: {\n dimensions: [0, 0, 0, 0, 0, 0, 0, 0, 1]\n }\n };\n\n for (var key in BASE_UNITS) {\n if ((0, _object.hasOwnProperty)(BASE_UNITS, key)) {\n BASE_UNITS[key].key = key;\n }\n }\n\n var BASE_UNIT_NONE = {};\n var UNIT_NONE = {\n name: '',\n base: BASE_UNIT_NONE,\n value: 1,\n offset: 0,\n dimensions: BASE_DIMENSIONS.map(function (x) {\n return 0;\n })\n };\n var UNITS = {\n // length\n meter: {\n name: 'meter',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n inch: {\n name: 'inch',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.0254,\n offset: 0\n },\n foot: {\n name: 'foot',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.3048,\n offset: 0\n },\n yard: {\n name: 'yard',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.9144,\n offset: 0\n },\n mile: {\n name: 'mile',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 1609.344,\n offset: 0\n },\n link: {\n name: 'link',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.201168,\n offset: 0\n },\n rod: {\n name: 'rod',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 5.0292,\n offset: 0\n },\n chain: {\n name: 'chain',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 20.1168,\n offset: 0\n },\n angstrom: {\n name: 'angstrom',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 1e-10,\n offset: 0\n },\n m: {\n name: 'm',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n in: {\n name: 'in',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.0254,\n offset: 0\n },\n ft: {\n name: 'ft',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.3048,\n offset: 0\n },\n yd: {\n name: 'yd',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.9144,\n offset: 0\n },\n mi: {\n name: 'mi',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 1609.344,\n offset: 0\n },\n li: {\n name: 'li',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.201168,\n offset: 0\n },\n rd: {\n name: 'rd',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 5.029210,\n offset: 0\n },\n ch: {\n name: 'ch',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 20.1168,\n offset: 0\n },\n mil: {\n name: 'mil',\n base: BASE_UNITS.LENGTH,\n prefixes: PREFIXES.NONE,\n value: 0.0000254,\n offset: 0\n },\n // 1/1000 inch\n // Surface\n m2: {\n name: 'm2',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.SQUARED,\n value: 1,\n offset: 0\n },\n sqin: {\n name: 'sqin',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 0.00064516,\n offset: 0\n },\n // 645.16 mm2\n sqft: {\n name: 'sqft',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 0.09290304,\n offset: 0\n },\n // 0.09290304 m2\n sqyd: {\n name: 'sqyd',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 0.83612736,\n offset: 0\n },\n // 0.83612736 m2\n sqmi: {\n name: 'sqmi',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 2589988.110336,\n offset: 0\n },\n // 2.589988110336 km2\n sqrd: {\n name: 'sqrd',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 25.29295,\n offset: 0\n },\n // 25.29295 m2\n sqch: {\n name: 'sqch',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 404.6873,\n offset: 0\n },\n // 404.6873 m2\n sqmil: {\n name: 'sqmil',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 6.4516e-10,\n offset: 0\n },\n // 6.4516 * 10^-10 m2\n acre: {\n name: 'acre',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 4046.86,\n offset: 0\n },\n // 4046.86 m2\n hectare: {\n name: 'hectare',\n base: BASE_UNITS.SURFACE,\n prefixes: PREFIXES.NONE,\n value: 10000,\n offset: 0\n },\n // 10000 m2\n // Volume\n m3: {\n name: 'm3',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.CUBIC,\n value: 1,\n offset: 0\n },\n L: {\n name: 'L',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.SHORT,\n value: 0.001,\n offset: 0\n },\n // litre\n l: {\n name: 'l',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.SHORT,\n value: 0.001,\n offset: 0\n },\n // litre\n litre: {\n name: 'litre',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.LONG,\n value: 0.001,\n offset: 0\n },\n cuin: {\n name: 'cuin',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 1.6387064e-5,\n offset: 0\n },\n // 1.6387064e-5 m3\n cuft: {\n name: 'cuft',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.028316846592,\n offset: 0\n },\n // 28.316 846 592 L\n cuyd: {\n name: 'cuyd',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.764554857984,\n offset: 0\n },\n // 764.554 857 984 L\n teaspoon: {\n name: 'teaspoon',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.000005,\n offset: 0\n },\n // 5 mL\n tablespoon: {\n name: 'tablespoon',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.000015,\n offset: 0\n },\n // 15 mL\n // {name: 'cup', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.000240, offset: 0}, // 240 mL // not possible, we have already another cup\n drop: {\n name: 'drop',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 5e-8,\n offset: 0\n },\n // 0.05 mL = 5e-8 m3\n gtt: {\n name: 'gtt',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 5e-8,\n offset: 0\n },\n // 0.05 mL = 5e-8 m3\n // Liquid volume\n minim: {\n name: 'minim',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.00000006161152,\n offset: 0\n },\n // 0.06161152 mL\n fluiddram: {\n name: 'fluiddram',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0000036966911,\n offset: 0\n },\n // 3.696691 mL\n fluidounce: {\n name: 'fluidounce',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.00002957353,\n offset: 0\n },\n // 29.57353 mL\n gill: {\n name: 'gill',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0001182941,\n offset: 0\n },\n // 118.2941 mL\n cc: {\n name: 'cc',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 1e-6,\n offset: 0\n },\n // 1e-6 L\n cup: {\n name: 'cup',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0002365882,\n offset: 0\n },\n // 236.5882 mL\n pint: {\n name: 'pint',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0004731765,\n offset: 0\n },\n // 473.1765 mL\n quart: {\n name: 'quart',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0009463529,\n offset: 0\n },\n // 946.3529 mL\n gallon: {\n name: 'gallon',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.003785412,\n offset: 0\n },\n // 3.785412 L\n beerbarrel: {\n name: 'beerbarrel',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.1173478,\n offset: 0\n },\n // 117.3478 L\n oilbarrel: {\n name: 'oilbarrel',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.1589873,\n offset: 0\n },\n // 158.9873 L\n hogshead: {\n name: 'hogshead',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.2384810,\n offset: 0\n },\n // 238.4810 L\n // {name: 'min', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00000006161152, offset: 0}, // 0.06161152 mL // min is already in use as minute\n fldr: {\n name: 'fldr',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0000036966911,\n offset: 0\n },\n // 3.696691 mL\n floz: {\n name: 'floz',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.00002957353,\n offset: 0\n },\n // 29.57353 mL\n gi: {\n name: 'gi',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0001182941,\n offset: 0\n },\n // 118.2941 mL\n cp: {\n name: 'cp',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0002365882,\n offset: 0\n },\n // 236.5882 mL\n pt: {\n name: 'pt',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0004731765,\n offset: 0\n },\n // 473.1765 mL\n qt: {\n name: 'qt',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.0009463529,\n offset: 0\n },\n // 946.3529 mL\n gal: {\n name: 'gal',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.003785412,\n offset: 0\n },\n // 3.785412 L\n bbl: {\n name: 'bbl',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.1173478,\n offset: 0\n },\n // 117.3478 L\n obl: {\n name: 'obl',\n base: BASE_UNITS.VOLUME,\n prefixes: PREFIXES.NONE,\n value: 0.1589873,\n offset: 0\n },\n // 158.9873 L\n // {name: 'hogshead', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.2384810, offset: 0}, // 238.4810 L // TODO: hh?\n // Mass\n g: {\n name: 'g',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.SHORT,\n value: 0.001,\n offset: 0\n },\n gram: {\n name: 'gram',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.LONG,\n value: 0.001,\n offset: 0\n },\n ton: {\n name: 'ton',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.SHORT,\n value: 907.18474,\n offset: 0\n },\n t: {\n name: 't',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.SHORT,\n value: 1000,\n offset: 0\n },\n tonne: {\n name: 'tonne',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.LONG,\n value: 1000,\n offset: 0\n },\n grain: {\n name: 'grain',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 64.79891e-6,\n offset: 0\n },\n dram: {\n name: 'dram',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 1.7718451953125e-3,\n offset: 0\n },\n ounce: {\n name: 'ounce',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 28.349523125e-3,\n offset: 0\n },\n poundmass: {\n name: 'poundmass',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 453.59237e-3,\n offset: 0\n },\n hundredweight: {\n name: 'hundredweight',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 45.359237,\n offset: 0\n },\n stick: {\n name: 'stick',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 115e-3,\n offset: 0\n },\n stone: {\n name: 'stone',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 6.35029318,\n offset: 0\n },\n gr: {\n name: 'gr',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 64.79891e-6,\n offset: 0\n },\n dr: {\n name: 'dr',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 1.7718451953125e-3,\n offset: 0\n },\n oz: {\n name: 'oz',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 28.349523125e-3,\n offset: 0\n },\n lbm: {\n name: 'lbm',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 453.59237e-3,\n offset: 0\n },\n cwt: {\n name: 'cwt',\n base: BASE_UNITS.MASS,\n prefixes: PREFIXES.NONE,\n value: 45.359237,\n offset: 0\n },\n // Time\n s: {\n name: 's',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n min: {\n name: 'min',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 60,\n offset: 0\n },\n h: {\n name: 'h',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 3600,\n offset: 0\n },\n second: {\n name: 'second',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n sec: {\n name: 'sec',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n minute: {\n name: 'minute',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 60,\n offset: 0\n },\n hour: {\n name: 'hour',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 3600,\n offset: 0\n },\n day: {\n name: 'day',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 86400,\n offset: 0\n },\n week: {\n name: 'week',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 7 * 86400,\n offset: 0\n },\n month: {\n name: 'month',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 2629800,\n // 1/12th of Julian year\n offset: 0\n },\n year: {\n name: 'year',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 31557600,\n // Julian year\n offset: 0\n },\n decade: {\n name: 'decade',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 315576000,\n // Julian decade\n offset: 0\n },\n century: {\n name: 'century',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 3155760000,\n // Julian century\n offset: 0\n },\n millennium: {\n name: 'millennium',\n base: BASE_UNITS.TIME,\n prefixes: PREFIXES.NONE,\n value: 31557600000,\n // Julian millennium\n offset: 0\n },\n // Frequency\n hertz: {\n name: 'Hertz',\n base: BASE_UNITS.FREQUENCY,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0,\n reciprocal: true\n },\n Hz: {\n name: 'Hz',\n base: BASE_UNITS.FREQUENCY,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0,\n reciprocal: true\n },\n // Angle\n rad: {\n name: 'rad',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n radian: {\n name: 'radian',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n // deg = rad / (2*pi) * 360 = rad / 0.017453292519943295769236907684888\n deg: {\n name: 'deg',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.SHORT,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n degree: {\n name: 'degree',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.LONG,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n // grad = rad / (2*pi) * 400 = rad / 0.015707963267948966192313216916399\n grad: {\n name: 'grad',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.SHORT,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n gradian: {\n name: 'gradian',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.LONG,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n // cycle = rad / (2*pi) = rad / 6.2831853071795864769252867665793\n cycle: {\n name: 'cycle',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.NONE,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n // arcsec = rad / (3600 * (360 / 2 * pi)) = rad / 0.0000048481368110953599358991410235795\n arcsec: {\n name: 'arcsec',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.NONE,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n // arcmin = rad / (60 * (360 / 2 * pi)) = rad / 0.00029088820866572159615394846141477\n arcmin: {\n name: 'arcmin',\n base: BASE_UNITS.ANGLE,\n prefixes: PREFIXES.NONE,\n value: null,\n // will be filled in by calculateAngleValues()\n offset: 0\n },\n // Electric current\n A: {\n name: 'A',\n base: BASE_UNITS.CURRENT,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n ampere: {\n name: 'ampere',\n base: BASE_UNITS.CURRENT,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n // Temperature\n // K(C) = °C + 273.15\n // K(F) = (°F + 459.67) / 1.8\n // K(R) = °R / 1.8\n K: {\n name: 'K',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1,\n offset: 0\n },\n degC: {\n name: 'degC',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1,\n offset: 273.15\n },\n degF: {\n name: 'degF',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1 / 1.8,\n offset: 459.67\n },\n degR: {\n name: 'degR',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1 / 1.8,\n offset: 0\n },\n kelvin: {\n name: 'kelvin',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1,\n offset: 0\n },\n celsius: {\n name: 'celsius',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1,\n offset: 273.15\n },\n fahrenheit: {\n name: 'fahrenheit',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1 / 1.8,\n offset: 459.67\n },\n rankine: {\n name: 'rankine',\n base: BASE_UNITS.TEMPERATURE,\n prefixes: PREFIXES.NONE,\n value: 1 / 1.8,\n offset: 0\n },\n // amount of substance\n mol: {\n name: 'mol',\n base: BASE_UNITS.AMOUNT_OF_SUBSTANCE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n mole: {\n name: 'mole',\n base: BASE_UNITS.AMOUNT_OF_SUBSTANCE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n // luminous intensity\n cd: {\n name: 'cd',\n base: BASE_UNITS.LUMINOUS_INTENSITY,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n candela: {\n name: 'candela',\n base: BASE_UNITS.LUMINOUS_INTENSITY,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n // TODO: units STERADIAN\n // {name: 'sr', base: BASE_UNITS.STERADIAN, prefixes: PREFIXES.NONE, value: 1, offset: 0},\n // {name: 'steradian', base: BASE_UNITS.STERADIAN, prefixes: PREFIXES.NONE, value: 1, offset: 0},\n // Force\n N: {\n name: 'N',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n newton: {\n name: 'newton',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n dyn: {\n name: 'dyn',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.SHORT,\n value: 0.00001,\n offset: 0\n },\n dyne: {\n name: 'dyne',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.LONG,\n value: 0.00001,\n offset: 0\n },\n lbf: {\n name: 'lbf',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.NONE,\n value: 4.4482216152605,\n offset: 0\n },\n poundforce: {\n name: 'poundforce',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.NONE,\n value: 4.4482216152605,\n offset: 0\n },\n kip: {\n name: 'kip',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.LONG,\n value: 4448.2216,\n offset: 0\n },\n kilogramforce: {\n name: 'kilogramforce',\n base: BASE_UNITS.FORCE,\n prefixes: PREFIXES.NONE,\n value: 9.80665,\n offset: 0\n },\n // Energy\n J: {\n name: 'J',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n joule: {\n name: 'joule',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n erg: {\n name: 'erg',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.NONE,\n value: 1e-7,\n offset: 0\n },\n Wh: {\n name: 'Wh',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.SHORT,\n value: 3600,\n offset: 0\n },\n BTU: {\n name: 'BTU',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.BTU,\n value: 1055.05585262,\n offset: 0\n },\n eV: {\n name: 'eV',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.SHORT,\n value: 1.602176565e-19,\n offset: 0\n },\n electronvolt: {\n name: 'electronvolt',\n base: BASE_UNITS.ENERGY,\n prefixes: PREFIXES.LONG,\n value: 1.602176565e-19,\n offset: 0\n },\n // Power\n W: {\n name: 'W',\n base: BASE_UNITS.POWER,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n watt: {\n name: 'watt',\n base: BASE_UNITS.POWER,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n hp: {\n name: 'hp',\n base: BASE_UNITS.POWER,\n prefixes: PREFIXES.NONE,\n value: 745.6998715386,\n offset: 0\n },\n // Electrical power units\n VAR: {\n name: 'VAR',\n base: BASE_UNITS.POWER,\n prefixes: PREFIXES.SHORT,\n value: Complex.I,\n offset: 0\n },\n VA: {\n name: 'VA',\n base: BASE_UNITS.POWER,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Pressure\n Pa: {\n name: 'Pa',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n psi: {\n name: 'psi',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.NONE,\n value: 6894.75729276459,\n offset: 0\n },\n atm: {\n name: 'atm',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.NONE,\n value: 101325,\n offset: 0\n },\n bar: {\n name: 'bar',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.SHORTLONG,\n value: 100000,\n offset: 0\n },\n torr: {\n name: 'torr',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.NONE,\n value: 133.322,\n offset: 0\n },\n mmHg: {\n name: 'mmHg',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.NONE,\n value: 133.322,\n offset: 0\n },\n mmH2O: {\n name: 'mmH2O',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.NONE,\n value: 9.80665,\n offset: 0\n },\n cmH2O: {\n name: 'cmH2O',\n base: BASE_UNITS.PRESSURE,\n prefixes: PREFIXES.NONE,\n value: 98.0665,\n offset: 0\n },\n // Electric charge\n coulomb: {\n name: 'coulomb',\n base: BASE_UNITS.ELECTRIC_CHARGE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n C: {\n name: 'C',\n base: BASE_UNITS.ELECTRIC_CHARGE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Electric capacitance\n farad: {\n name: 'farad',\n base: BASE_UNITS.ELECTRIC_CAPACITANCE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n F: {\n name: 'F',\n base: BASE_UNITS.ELECTRIC_CAPACITANCE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Electric potential\n volt: {\n name: 'volt',\n base: BASE_UNITS.ELECTRIC_POTENTIAL,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n V: {\n name: 'V',\n base: BASE_UNITS.ELECTRIC_POTENTIAL,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Electric resistance\n ohm: {\n name: 'ohm',\n base: BASE_UNITS.ELECTRIC_RESISTANCE,\n prefixes: PREFIXES.SHORTLONG,\n // Both Mohm and megaohm are acceptable\n value: 1,\n offset: 0\n },\n\n /*\n * Unicode breaks in browsers if charset is not specified\n Ω: {\n name: 'Ω',\n base: BASE_UNITS.ELECTRIC_RESISTANCE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n */\n // Electric inductance\n henry: {\n name: 'henry',\n base: BASE_UNITS.ELECTRIC_INDUCTANCE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n H: {\n name: 'H',\n base: BASE_UNITS.ELECTRIC_INDUCTANCE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Electric conductance\n siemens: {\n name: 'siemens',\n base: BASE_UNITS.ELECTRIC_CONDUCTANCE,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n S: {\n name: 'S',\n base: BASE_UNITS.ELECTRIC_CONDUCTANCE,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Magnetic flux\n weber: {\n name: 'weber',\n base: BASE_UNITS.MAGNETIC_FLUX,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n Wb: {\n name: 'Wb',\n base: BASE_UNITS.MAGNETIC_FLUX,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Magnetic flux density\n tesla: {\n name: 'tesla',\n base: BASE_UNITS.MAGNETIC_FLUX_DENSITY,\n prefixes: PREFIXES.LONG,\n value: 1,\n offset: 0\n },\n T: {\n name: 'T',\n base: BASE_UNITS.MAGNETIC_FLUX_DENSITY,\n prefixes: PREFIXES.SHORT,\n value: 1,\n offset: 0\n },\n // Binary\n b: {\n name: 'b',\n base: BASE_UNITS.BIT,\n prefixes: PREFIXES.BINARY_SHORT,\n value: 1,\n offset: 0\n },\n bits: {\n name: 'bits',\n base: BASE_UNITS.BIT,\n prefixes: PREFIXES.BINARY_LONG,\n value: 1,\n offset: 0\n },\n B: {\n name: 'B',\n base: BASE_UNITS.BIT,\n prefixes: PREFIXES.BINARY_SHORT,\n value: 8,\n offset: 0\n },\n bytes: {\n name: 'bytes',\n base: BASE_UNITS.BIT,\n prefixes: PREFIXES.BINARY_LONG,\n value: 8,\n offset: 0\n }\n }; // aliases (formerly plurals)\n\n var ALIASES = {\n meters: 'meter',\n inches: 'inch',\n feet: 'foot',\n yards: 'yard',\n miles: 'mile',\n links: 'link',\n rods: 'rod',\n chains: 'chain',\n angstroms: 'angstrom',\n lt: 'l',\n litres: 'litre',\n liter: 'litre',\n liters: 'litre',\n teaspoons: 'teaspoon',\n tablespoons: 'tablespoon',\n minims: 'minim',\n fluiddrams: 'fluiddram',\n fluidounces: 'fluidounce',\n gills: 'gill',\n cups: 'cup',\n pints: 'pint',\n quarts: 'quart',\n gallons: 'gallon',\n beerbarrels: 'beerbarrel',\n oilbarrels: 'oilbarrel',\n hogsheads: 'hogshead',\n gtts: 'gtt',\n grams: 'gram',\n tons: 'ton',\n tonnes: 'tonne',\n grains: 'grain',\n drams: 'dram',\n ounces: 'ounce',\n poundmasses: 'poundmass',\n hundredweights: 'hundredweight',\n sticks: 'stick',\n lb: 'lbm',\n lbs: 'lbm',\n kips: 'kip',\n kgf: 'kilogramforce',\n acres: 'acre',\n hectares: 'hectare',\n sqfeet: 'sqft',\n sqyard: 'sqyd',\n sqmile: 'sqmi',\n sqmiles: 'sqmi',\n mmhg: 'mmHg',\n mmh2o: 'mmH2O',\n cmh2o: 'cmH2O',\n seconds: 'second',\n secs: 'second',\n minutes: 'minute',\n mins: 'minute',\n hours: 'hour',\n hr: 'hour',\n hrs: 'hour',\n days: 'day',\n weeks: 'week',\n months: 'month',\n years: 'year',\n decades: 'decade',\n centuries: 'century',\n millennia: 'millennium',\n hertz: 'hertz',\n radians: 'radian',\n degrees: 'degree',\n gradians: 'gradian',\n cycles: 'cycle',\n arcsecond: 'arcsec',\n arcseconds: 'arcsec',\n arcminute: 'arcmin',\n arcminutes: 'arcmin',\n BTUs: 'BTU',\n watts: 'watt',\n joules: 'joule',\n amperes: 'ampere',\n coulombs: 'coulomb',\n volts: 'volt',\n ohms: 'ohm',\n farads: 'farad',\n webers: 'weber',\n teslas: 'tesla',\n electronvolts: 'electronvolt',\n moles: 'mole',\n bit: 'bits',\n byte: 'bytes'\n };\n /**\n * Calculate the values for the angle units.\n * Value is calculated as number or BigNumber depending on the configuration\n * @param {{number: 'number' | 'BigNumber'}} config\n */\n\n function calculateAngleValues(config) {\n if (config.number === 'BigNumber') {\n var pi = (0, _constants.createBigNumberPi)(_BigNumber);\n UNITS.rad.value = new _BigNumber(1);\n UNITS.deg.value = pi.div(180); // 2 * pi / 360\n\n UNITS.grad.value = pi.div(200); // 2 * pi / 400\n\n UNITS.cycle.value = pi.times(2); // 2 * pi\n\n UNITS.arcsec.value = pi.div(648000); // 2 * pi / 360 / 3600\n\n UNITS.arcmin.value = pi.div(10800); // 2 * pi / 360 / 60\n } else {\n // number\n UNITS.rad.value = 1;\n UNITS.deg.value = Math.PI / 180; // 2 * pi / 360\n\n UNITS.grad.value = Math.PI / 200; // 2 * pi / 400\n\n UNITS.cycle.value = Math.PI * 2; // 2 * pi\n\n UNITS.arcsec.value = Math.PI / 648000; // 2 * pi / 360 / 3600\n\n UNITS.arcmin.value = Math.PI / 10800; // 2 * pi / 360 / 60\n } // copy to the full names of the angles\n\n\n UNITS.radian.value = UNITS.rad.value;\n UNITS.degree.value = UNITS.deg.value;\n UNITS.gradian.value = UNITS.grad.value;\n } // apply the angle values now\n\n\n calculateAngleValues(config);\n\n if (on) {\n // recalculate the values on change of configuration\n on('config', function (curr, prev) {\n if (curr.number !== prev.number) {\n calculateAngleValues(curr);\n }\n });\n }\n /**\n * A unit system is a set of dimensionally independent base units plus a set of derived units, formed by multiplication and division of the base units, that are by convention used with the unit system.\n * A user perhaps could issue a command to select a preferred unit system, or use the default (see below).\n * Auto unit system: The default unit system is updated on the fly anytime a unit is parsed. The corresponding unit in the default unit system is updated, so that answers are given in the same units the user supplies.\n */\n\n\n var UNIT_SYSTEMS = {\n si: {\n // Base units\n NONE: {\n unit: UNIT_NONE,\n prefix: PREFIXES.NONE['']\n },\n LENGTH: {\n unit: UNITS.m,\n prefix: PREFIXES.SHORT['']\n },\n MASS: {\n unit: UNITS.g,\n prefix: PREFIXES.SHORT.k\n },\n TIME: {\n unit: UNITS.s,\n prefix: PREFIXES.SHORT['']\n },\n CURRENT: {\n unit: UNITS.A,\n prefix: PREFIXES.SHORT['']\n },\n TEMPERATURE: {\n unit: UNITS.K,\n prefix: PREFIXES.SHORT['']\n },\n LUMINOUS_INTENSITY: {\n unit: UNITS.cd,\n prefix: PREFIXES.SHORT['']\n },\n AMOUNT_OF_SUBSTANCE: {\n unit: UNITS.mol,\n prefix: PREFIXES.SHORT['']\n },\n ANGLE: {\n unit: UNITS.rad,\n prefix: PREFIXES.SHORT['']\n },\n BIT: {\n unit: UNITS.bits,\n prefix: PREFIXES.SHORT['']\n },\n // Derived units\n FORCE: {\n unit: UNITS.N,\n prefix: PREFIXES.SHORT['']\n },\n ENERGY: {\n unit: UNITS.J,\n prefix: PREFIXES.SHORT['']\n },\n POWER: {\n unit: UNITS.W,\n prefix: PREFIXES.SHORT['']\n },\n PRESSURE: {\n unit: UNITS.Pa,\n prefix: PREFIXES.SHORT['']\n },\n ELECTRIC_CHARGE: {\n unit: UNITS.C,\n prefix: PREFIXES.SHORT['']\n },\n ELECTRIC_CAPACITANCE: {\n unit: UNITS.F,\n prefix: PREFIXES.SHORT['']\n },\n ELECTRIC_POTENTIAL: {\n unit: UNITS.V,\n prefix: PREFIXES.SHORT['']\n },\n ELECTRIC_RESISTANCE: {\n unit: UNITS.ohm,\n prefix: PREFIXES.SHORT['']\n },\n ELECTRIC_INDUCTANCE: {\n unit: UNITS.H,\n prefix: PREFIXES.SHORT['']\n },\n ELECTRIC_CONDUCTANCE: {\n unit: UNITS.S,\n prefix: PREFIXES.SHORT['']\n },\n MAGNETIC_FLUX: {\n unit: UNITS.Wb,\n prefix: PREFIXES.SHORT['']\n },\n MAGNETIC_FLUX_DENSITY: {\n unit: UNITS.T,\n prefix: PREFIXES.SHORT['']\n },\n FREQUENCY: {\n unit: UNITS.Hz,\n prefix: PREFIXES.SHORT['']\n }\n }\n }; // Clone to create the other unit systems\n\n UNIT_SYSTEMS.cgs = JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));\n UNIT_SYSTEMS.cgs.LENGTH = {\n unit: UNITS.m,\n prefix: PREFIXES.SHORT.c\n };\n UNIT_SYSTEMS.cgs.MASS = {\n unit: UNITS.g,\n prefix: PREFIXES.SHORT['']\n };\n UNIT_SYSTEMS.cgs.FORCE = {\n unit: UNITS.dyn,\n prefix: PREFIXES.SHORT['']\n };\n UNIT_SYSTEMS.cgs.ENERGY = {\n unit: UNITS.erg,\n prefix: PREFIXES.NONE['']\n }; // there are wholly 4 unique cgs systems for electricity and magnetism,\n // so let's not worry about it unless somebody complains\n\n UNIT_SYSTEMS.us = JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));\n UNIT_SYSTEMS.us.LENGTH = {\n unit: UNITS.ft,\n prefix: PREFIXES.NONE['']\n };\n UNIT_SYSTEMS.us.MASS = {\n unit: UNITS.lbm,\n prefix: PREFIXES.NONE['']\n };\n UNIT_SYSTEMS.us.TEMPERATURE = {\n unit: UNITS.degF,\n prefix: PREFIXES.NONE['']\n };\n UNIT_SYSTEMS.us.FORCE = {\n unit: UNITS.lbf,\n prefix: PREFIXES.NONE['']\n };\n UNIT_SYSTEMS.us.ENERGY = {\n unit: UNITS.BTU,\n prefix: PREFIXES.BTU['']\n };\n UNIT_SYSTEMS.us.POWER = {\n unit: UNITS.hp,\n prefix: PREFIXES.NONE['']\n };\n UNIT_SYSTEMS.us.PRESSURE = {\n unit: UNITS.psi,\n prefix: PREFIXES.NONE['']\n }; // Add additional unit systems here.\n // Choose a unit system to seed the auto unit system.\n\n UNIT_SYSTEMS.auto = JSON.parse(JSON.stringify(UNIT_SYSTEMS.si)); // Set the current unit system\n\n var currentUnitSystem = UNIT_SYSTEMS.auto;\n /**\n * Set a unit system for formatting derived units.\n * @param {string} [name] The name of the unit system.\n */\n\n Unit.setUnitSystem = function (name) {\n if ((0, _object.hasOwnProperty)(UNIT_SYSTEMS, name)) {\n currentUnitSystem = UNIT_SYSTEMS[name];\n } else {\n throw new Error('Unit system ' + name + ' does not exist. Choices are: ' + Object.keys(UNIT_SYSTEMS).join(', '));\n }\n };\n /**\n * Return the current unit system.\n * @return {string} The current unit system.\n */\n\n\n Unit.getUnitSystem = function () {\n for (var _key in UNIT_SYSTEMS) {\n if ((0, _object.hasOwnProperty)(UNIT_SYSTEMS, _key)) {\n if (UNIT_SYSTEMS[_key] === currentUnitSystem) {\n return _key;\n }\n }\n }\n };\n /**\n * Converters to convert from number to an other numeric type like BigNumber\n * or Fraction\n */\n\n\n Unit.typeConverters = {\n BigNumber: function BigNumber(x) {\n return new _BigNumber(x + ''); // stringify to prevent constructor error\n },\n Fraction: function Fraction(x) {\n return new _Fraction(x);\n },\n Complex: function Complex(x) {\n return x;\n },\n number: function number(x) {\n return x;\n }\n };\n /**\n * Retrieve the right convertor function corresponding with the type\n * of provided exampleValue.\n *\n * @param {string} type A string 'number', 'BigNumber', or 'Fraction'\n * In case of an unknown type,\n * @return {Function}\n */\n\n Unit._getNumberConverter = function (type) {\n if (!Unit.typeConverters[type]) {\n throw new TypeError('Unsupported type \"' + type + '\"');\n }\n\n return Unit.typeConverters[type];\n }; // Add dimensions to each built-in unit\n\n\n for (var _key2 in UNITS) {\n if ((0, _object.hasOwnProperty)(UNITS, _key2)) {\n var unit = UNITS[_key2];\n unit.dimensions = unit.base.dimensions;\n }\n } // Create aliases\n\n\n for (var _name2 in ALIASES) {\n if ((0, _object.hasOwnProperty)(ALIASES, _name2)) {\n var _unit2 = UNITS[ALIASES[_name2]];\n var alias = {};\n\n for (var _key3 in _unit2) {\n if ((0, _object.hasOwnProperty)(_unit2, _key3)) {\n alias[_key3] = _unit2[_key3];\n }\n }\n\n alias.name = _name2;\n UNITS[_name2] = alias;\n }\n }\n /**\n * Checks if a character is a valid latin letter (upper or lower case).\n * Note that this function can be overridden, for example to allow support of other alphabets.\n * @param {string} c Tested character\n */\n\n\n Unit.isValidAlpha = function isValidAlpha(c) {\n return /^[a-zA-Z]$/.test(c);\n };\n\n function assertUnitNameIsValid(name) {\n for (var i = 0; i < name.length; i++) {\n c = name.charAt(i);\n\n if (i === 0 && !Unit.isValidAlpha(c)) {\n throw new Error('Invalid unit name (must begin with alpha character): \"' + name + '\"');\n }\n\n if (i > 0 && !(Unit.isValidAlpha(c) || isDigit(c))) {\n throw new Error('Invalid unit name (only alphanumeric characters are allowed): \"' + name + '\"');\n }\n }\n }\n /**\n * Wrapper around createUnitSingle.\n * Example:\n * createUnit({\n * foo: { },\n * bar: {\n * definition: 'kg/foo',\n * aliases: ['ba', 'barr', 'bars'],\n * offset: 200\n * },\n * baz: '4 bar'\n * },\n * {\n * override: true\n * })\n * @param {object} obj Object map. Each key becomes a unit which is defined by its value.\n * @param {object} options\n */\n\n\n Unit.createUnit = function (obj, options) {\n if ((0, _typeof2.default)(obj) !== 'object') {\n throw new TypeError(\"createUnit expects first parameter to be of type 'Object'\");\n } // Remove all units and aliases we are overriding\n\n\n if (options && options.override) {\n for (var _key4 in obj) {\n if ((0, _object.hasOwnProperty)(obj, _key4)) {\n Unit.deleteUnit(_key4);\n }\n\n if (obj[_key4].aliases) {\n for (var i = 0; i < obj[_key4].aliases.length; i++) {\n Unit.deleteUnit(obj[_key4].aliases[i]);\n }\n }\n }\n } // TODO: traverse multiple times until all units have been added\n\n\n var lastUnit;\n\n for (var _key5 in obj) {\n if ((0, _object.hasOwnProperty)(obj, _key5)) {\n lastUnit = Unit.createUnitSingle(_key5, obj[_key5]);\n }\n }\n\n return lastUnit;\n };\n /**\n * Create a user-defined unit and register it with the Unit type.\n * Example:\n * createUnitSingle('knot', '0.514444444 m/s')\n * createUnitSingle('acre', new Unit(43560, 'ft^2'))\n *\n * @param {string} name The name of the new unit. Must be unique. Example: 'knot'\n * @param {string, Unit, Object} definition Definition of the unit in terms\n * of existing units. For example, '0.514444444 m / s'. Can be a Unit, a string,\n * or an Object. If an Object, may have the following properties:\n * - definition {string|Unit} The definition of this unit.\n * - prefixes {string} \"none\", \"short\", \"long\", \"binary_short\", or \"binary_long\".\n * The default is \"none\".\n * - aliases {Array} Array of strings. Example: ['knots', 'kt', 'kts']\n * - offset {Numeric} An offset to apply when converting from the unit. For\n * example, the offset for celsius is 273.15 and the offset for farhenheit\n * is 459.67. Default is 0.\n * - baseName {string} If the unit's dimension does not match that of any other\n * base unit, the name of the newly create base unit. Otherwise, this property\n * has no effect.\n *\n * @param {Object} options (optional) An object containing any of the following\n * properties:\n * - override {boolean} Whether this unit should be allowed to override existing\n * units.\n *\n * @return {Unit}\n */\n\n\n Unit.createUnitSingle = function (name, obj, options) {\n if (typeof obj === 'undefined' || obj === null) {\n obj = {};\n }\n\n if (typeof name !== 'string') {\n throw new TypeError(\"createUnitSingle expects first parameter to be of type 'string'\");\n } // Check collisions with existing units\n\n\n if ((0, _object.hasOwnProperty)(UNITS, name)) {\n throw new Error('Cannot create unit \"' + name + '\": a unit with that name already exists');\n } // TODO: Validate name for collisions with other built-in functions (like abs or cos, for example), and for acceptable variable names. For example, '42' is probably not a valid unit. Nor is '%', since it is also an operator.\n\n\n assertUnitNameIsValid(name);\n var defUnit = null; // The Unit from which the new unit will be created.\n\n var aliases = [];\n var offset = 0;\n var definition;\n var prefixes;\n var baseName;\n\n if (obj && obj.type === 'Unit') {\n defUnit = obj.clone();\n } else if (typeof obj === 'string') {\n if (obj !== '') {\n definition = obj;\n }\n } else if ((0, _typeof2.default)(obj) === 'object') {\n definition = obj.definition;\n prefixes = obj.prefixes;\n offset = obj.offset;\n baseName = obj.baseName;\n\n if (obj.aliases) {\n aliases = obj.aliases.valueOf(); // aliases could be a Matrix, so convert to Array\n }\n } else {\n throw new TypeError('Cannot create unit \"' + name + '\" from \"' + obj.toString() + '\": expecting \"string\" or \"Unit\" or \"Object\"');\n }\n\n if (aliases) {\n for (var i = 0; i < aliases.length; i++) {\n if ((0, _object.hasOwnProperty)(UNITS, aliases[i])) {\n throw new Error('Cannot create alias \"' + aliases[i] + '\": a unit with that name already exists');\n }\n }\n }\n\n if (definition && typeof definition === 'string' && !defUnit) {\n try {\n defUnit = Unit.parse(definition, {\n allowNoUnits: true\n });\n } catch (ex) {\n ex.message = 'Could not create unit \"' + name + '\" from \"' + definition + '\": ' + ex.message;\n throw ex;\n }\n } else if (definition && definition.type === 'Unit') {\n defUnit = definition.clone();\n }\n\n aliases = aliases || [];\n offset = offset || 0;\n\n if (prefixes && prefixes.toUpperCase) {\n prefixes = PREFIXES[prefixes.toUpperCase()] || PREFIXES.NONE;\n } else {\n prefixes = PREFIXES.NONE;\n } // If defUnit is null, it is because the user did not\n // specify a defintion. So create a new base dimension.\n\n\n var newUnit = {};\n\n if (!defUnit) {\n // Add a new base dimension\n baseName = baseName || name + '_STUFF'; // foo --> foo_STUFF, or the essence of foo\n\n if (BASE_DIMENSIONS.indexOf(baseName) >= 0) {\n throw new Error('Cannot create new base unit \"' + name + '\": a base unit with that name already exists (and cannot be overridden)');\n }\n\n BASE_DIMENSIONS.push(baseName); // Push 0 onto existing base units\n\n for (var b in BASE_UNITS) {\n if ((0, _object.hasOwnProperty)(BASE_UNITS, b)) {\n BASE_UNITS[b].dimensions[BASE_DIMENSIONS.length - 1] = 0;\n }\n } // Add the new base unit\n\n\n var newBaseUnit = {\n dimensions: []\n };\n\n for (var _i6 = 0; _i6 < BASE_DIMENSIONS.length; _i6++) {\n newBaseUnit.dimensions[_i6] = 0;\n }\n\n newBaseUnit.dimensions[BASE_DIMENSIONS.length - 1] = 1;\n newBaseUnit.key = baseName;\n BASE_UNITS[baseName] = newBaseUnit;\n newUnit = {\n name: name,\n value: 1,\n dimensions: BASE_UNITS[baseName].dimensions.slice(0),\n prefixes: prefixes,\n offset: offset,\n base: BASE_UNITS[baseName]\n };\n currentUnitSystem[baseName] = {\n unit: newUnit,\n prefix: PREFIXES.NONE['']\n };\n } else {\n newUnit = {\n name: name,\n value: defUnit.value,\n dimensions: defUnit.dimensions.slice(0),\n prefixes: prefixes,\n offset: offset\n }; // Create a new base if no matching base exists\n\n var anyMatch = false;\n\n for (var _i7 in BASE_UNITS) {\n if ((0, _object.hasOwnProperty)(BASE_UNITS, _i7)) {\n var match = true;\n\n for (var j = 0; j < BASE_DIMENSIONS.length; j++) {\n if (Math.abs((newUnit.dimensions[j] || 0) - (BASE_UNITS[_i7].dimensions[j] || 0)) > 1e-12) {\n match = false;\n break;\n }\n }\n\n if (match) {\n anyMatch = true;\n newUnit.base = BASE_UNITS[_i7];\n break;\n }\n }\n }\n\n if (!anyMatch) {\n baseName = baseName || name + '_STUFF'; // foo --> foo_STUFF, or the essence of foo\n // Add the new base unit\n\n var _newBaseUnit = {\n dimensions: defUnit.dimensions.slice(0)\n };\n _newBaseUnit.key = baseName;\n BASE_UNITS[baseName] = _newBaseUnit;\n currentUnitSystem[baseName] = {\n unit: newUnit,\n prefix: PREFIXES.NONE['']\n };\n newUnit.base = BASE_UNITS[baseName];\n }\n }\n\n Unit.UNITS[name] = newUnit;\n\n for (var _i8 = 0; _i8 < aliases.length; _i8++) {\n var aliasName = aliases[_i8];\n var _alias = {};\n\n for (var _key6 in newUnit) {\n if ((0, _object.hasOwnProperty)(newUnit, _key6)) {\n _alias[_key6] = newUnit[_key6];\n }\n }\n\n _alias.name = aliasName;\n Unit.UNITS[aliasName] = _alias;\n } // delete the memoization cache, since adding a new unit to the array\n // invalidates all old results\n\n\n delete _findUnit.cache;\n return new Unit(null, name);\n };\n\n Unit.deleteUnit = function (name) {\n delete Unit.UNITS[name];\n }; // expose arrays with prefixes, dimensions, units, systems\n\n\n Unit.PREFIXES = PREFIXES;\n Unit.BASE_DIMENSIONS = BASE_DIMENSIONS;\n Unit.BASE_UNITS = BASE_UNITS;\n Unit.UNIT_SYSTEMS = UNIT_SYSTEMS;\n Unit.UNITS = UNITS;\n return Unit;\n}, {\n isClass: true\n});\nexports.createUnitClass = createUnitClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnitFunction = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _collection = require(\"../../../utils/collection.js\");\n\nvar name = 'unit';\nvar dependencies = ['typed', 'Unit']; // This function is named createUnitFunction to prevent a naming conflict with createUnit\n\nvar createUnitFunction = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Unit = _ref.Unit;\n\n /**\n * Create a unit. Depending on the passed arguments, the function\n * will create and return a new math.Unit object.\n * When a matrix is provided, all elements will be converted to units.\n *\n * Syntax:\n *\n * math.unit(unit : string)\n * math.unit(value : number, unit : string)\n *\n * Examples:\n *\n * const a = math.unit(5, 'cm') // returns Unit 50 mm\n * const b = math.unit('23 kg') // returns Unit 23 kg\n * a.to('m') // returns Unit 0.05 m\n *\n * See also:\n *\n * bignumber, boolean, complex, index, matrix, number, string, createUnit\n *\n * @param {* | Array | Matrix} args A number and unit.\n * @return {Unit | Array | Matrix} The created unit\n */\n return typed(name, {\n Unit: function Unit(x) {\n return x.clone();\n },\n string: function string(x) {\n if (Unit.isValuelessUnit(x)) {\n return new Unit(null, x); // a pure unit\n }\n\n return Unit.parse(x, {\n allowNoUnits: true\n }); // a unit with value, like '5cm'\n },\n 'number | BigNumber | Fraction | Complex, string': function numberBigNumberFractionComplexString(value, unit) {\n return new Unit(value, unit);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createUnitFunction = createUnitFunction;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSparse = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'sparse';\nvar dependencies = ['typed', 'SparseMatrix'];\nvar createSparse = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n SparseMatrix = _ref.SparseMatrix;\n\n /**\n * Create a Sparse Matrix. The function creates a new `math.Matrix` object from\n * an `Array`. A Matrix has utility functions to manipulate the data in the\n * matrix, like getting the size and getting or setting values in the matrix.\n * Note that a Sparse Matrix is always 2-dimensional, so for example if\n * you create one from a plain array of _n_ numbers, you get an _n_ by 1\n * Sparse \"column vector\".\n *\n * Syntax:\n *\n * math.sparse() // creates an empty sparse matrix.\n * math.sparse(data) // creates a sparse matrix with initial data.\n * math.sparse(data, 'number') // creates a sparse matrix with initial data, number datatype.\n *\n * Examples:\n *\n * let m = math.sparse([[1, 2], [3, 4]])\n * m.size() // Array [2, 2]\n * m.resize([3, 2], 5)\n * m.valueOf() // Array [[1, 2], [3, 4], [5, 5]]\n * m.get([1, 0]) // number 3\n * let v = math.sparse([0, 0, 1])\n * v.size() // Array [3, 1]\n * v.get([2, 0]) // number 1\n *\n * See also:\n *\n * bignumber, boolean, complex, index, number, string, unit, matrix\n *\n * @param {Array | Matrix} [data] A two dimensional array\n *\n * @return {Matrix} The created matrix\n */\n return typed(name, {\n '': function _() {\n return new SparseMatrix([]);\n },\n string: function string(datatype) {\n return new SparseMatrix([], datatype);\n },\n 'Array | Matrix': function ArrayMatrix(data) {\n return new SparseMatrix(data);\n },\n 'Array | Matrix, string': function ArrayMatrixString(data, datatype) {\n return new SparseMatrix(data, datatype);\n }\n });\n});\nexports.createSparse = createSparse;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCreateUnit = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'createUnit';\nvar dependencies = ['typed', 'Unit'];\nvar createCreateUnit = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Unit = _ref.Unit;\n\n /**\n * Create a user-defined unit and register it with the Unit type.\n *\n * Syntax:\n *\n * math.createUnit({\n * baseUnit1: {\n * aliases: [string, ...]\n * prefixes: object\n * },\n * unit2: {\n * definition: string,\n * aliases: [string, ...]\n * prefixes: object,\n * offset: number\n * },\n * unit3: string // Shortcut\n * })\n *\n * // Another shortcut:\n * math.createUnit(string, unit : string, [object])\n *\n * Examples:\n *\n * math.createUnit('foo')\n * math.createUnit('knot', {definition: '0.514444444 m/s', aliases: ['knots', 'kt', 'kts']})\n * math.createUnit('mph', '1 mile/hour')\n *\n * @param {string} name The name of the new unit. Must be unique. Example: 'knot'\n * @param {string, Unit} definition Definition of the unit in terms of existing units. For example, '0.514444444 m / s'.\n * @param {Object} options (optional) An object containing any of the following properties:\n * - `prefixes {string}` \"none\", \"short\", \"long\", \"binary_short\", or \"binary_long\". The default is \"none\".\n * - `aliases {Array}` Array of strings. Example: ['knots', 'kt', 'kts']\n * - `offset {Numeric}` An offset to apply when converting from the unit. For example, the offset for celsius is 273.15. Default is 0.\n *\n * See also:\n *\n * unit\n *\n * @return {Unit} The new unit\n */\n return typed(name, {\n // General function signature. First parameter is an object where each property is the definition of a new unit. The object keys are the unit names and the values are the definitions. The values can be objects, strings, or Units. If a property is an empty object or an empty string, a new base unit is created. The second parameter is the options.\n 'Object, Object': function ObjectObject(obj, options) {\n return Unit.createUnit(obj, options);\n },\n // Same as above but without the options.\n Object: function Object(obj) {\n return Unit.createUnit(obj, {});\n },\n // Shortcut method for creating one unit.\n 'string, Unit | string | Object, Object': function stringUnitStringObjectObject(name, def, options) {\n var obj = {};\n obj[name] = def;\n return Unit.createUnit(obj, options);\n },\n // Same as above but without the options.\n 'string, Unit | string | Object': function stringUnitStringObject(name, def) {\n var obj = {};\n obj[name] = def;\n return Unit.createUnit(obj, {});\n },\n // Without a definition, creates a base unit.\n string: function string(name) {\n var obj = {};\n obj[name] = {};\n return Unit.createUnit(obj, {});\n }\n });\n});\nexports.createCreateUnit = createCreateUnit;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAcos = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'acos';\nvar dependencies = ['typed', 'config', 'Complex'];\nvar createAcos = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex;\n\n /**\n * Calculate the inverse cosine of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.acos(x)\n *\n * Examples:\n *\n * math.acos(0.5) // returns number 1.0471975511965979\n * math.acos(math.cos(1.5)) // returns number 1.5\n *\n * math.acos(2) // returns Complex 0 + 1.3169578969248166 i\n *\n * See also:\n *\n * cos, atan, asin\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} The arc cosine of x\n */\n return typed(name, {\n number: function number(x) {\n if (x >= -1 && x <= 1 || config.predictable) {\n return Math.acos(x);\n } else {\n return new Complex(x, 0).acos();\n }\n },\n Complex: function Complex(x) {\n return x.acos();\n },\n BigNumber: function BigNumber(x) {\n return x.acos();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAcos = createAcos;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAcosh = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'acosh';\nvar dependencies = ['typed', 'config', 'Complex'];\nvar createAcosh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex;\n\n /**\n * Calculate the hyperbolic arccos of a value,\n * defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.acosh(x)\n *\n * Examples:\n *\n * math.acosh(1.5) // returns 0.9624236501192069\n *\n * See also:\n *\n * cosh, asinh, atanh\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic arccosine of x\n */\n return typed(name, {\n number: function number(x) {\n if (x >= 1 || config.predictable) {\n return (0, _index.acoshNumber)(x);\n }\n\n if (x <= -1) {\n return new Complex(Math.log(Math.sqrt(x * x - 1) - x), Math.PI);\n }\n\n return new Complex(x, 0).acosh();\n },\n Complex: function Complex(x) {\n return x.acosh();\n },\n BigNumber: function BigNumber(x) {\n return x.acosh();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAcosh = createAcosh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAcot = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'acot';\nvar dependencies = ['typed', 'BigNumber'];\nvar createAcot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the inverse cotangent of a value, defined as `acot(x) = atan(1/x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.acot(x)\n *\n * Examples:\n *\n * math.acot(0.5) // returns number 0.4636476090008061\n * math.acot(math.cot(1.5)) // returns number 1.5\n *\n * math.acot(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i\n *\n * See also:\n *\n * cot, atan\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} The arc cotangent of x\n */\n return typed(name, {\n number: _index.acotNumber,\n Complex: function Complex(x) {\n return x.acot();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x).atan();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAcot = createAcot;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAcoth = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'acoth';\nvar dependencies = ['typed', 'config', 'Complex', 'BigNumber'];\nvar createAcoth = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the hyperbolic arccotangent of a value,\n * defined as `acoth(x) = atanh(1/x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.acoth(x)\n *\n * Examples:\n *\n * math.acoth(0.5) // returns 0.8047189562170503\n *\n * See also:\n *\n * acsch, asech\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic arccotangent of x\n */\n return typed(name, {\n number: function number(x) {\n if (x >= 1 || x <= -1 || config.predictable) {\n return (0, _index.acothNumber)(x);\n }\n\n return new Complex(x, 0).acoth();\n },\n Complex: function Complex(x) {\n return x.acoth();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x).atanh();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAcoth = createAcoth;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAcsc = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'acsc';\nvar dependencies = ['typed', 'config', 'Complex', 'BigNumber'];\nvar createAcsc = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the inverse cosecant of a value, defined as `acsc(x) = asin(1/x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.acsc(x)\n *\n * Examples:\n *\n * math.acsc(0.5) // returns number 0.5235987755982989\n * math.acsc(math.csc(1.5)) // returns number ~1.5\n *\n * math.acsc(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i\n *\n * See also:\n *\n * csc, asin, asec\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} The arc cosecant of x\n */\n return typed(name, {\n number: function number(x) {\n if (x <= -1 || x >= 1 || config.predictable) {\n return (0, _index.acscNumber)(x);\n }\n\n return new Complex(x, 0).acsc();\n },\n Complex: function Complex(x) {\n return x.acsc();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x).asin();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAcsc = createAcsc;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAcsch = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'acsch';\nvar dependencies = ['typed', 'BigNumber'];\nvar createAcsch = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the hyperbolic arccosecant of a value,\n * defined as `acsch(x) = asinh(1/x) = ln(1/x + sqrt(1/x^2 + 1))`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.acsch(x)\n *\n * Examples:\n *\n * math.acsch(0.5) // returns 1.4436354751788103\n *\n * See also:\n *\n * asech, acoth\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic arccosecant of x\n */\n return typed(name, {\n number: _index.acschNumber,\n Complex: function Complex(x) {\n return x.acsch();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x).asinh();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAcsch = createAcsch;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAsec = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'asec';\nvar dependencies = ['typed', 'config', 'Complex', 'BigNumber'];\nvar createAsec = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the inverse secant of a value. Defined as `asec(x) = acos(1/x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.asec(x)\n *\n * Examples:\n *\n * math.asec(0.5) // returns 1.0471975511965979\n * math.asec(math.sec(1.5)) // returns 1.5\n *\n * math.asec(2) // returns 0 + 1.3169578969248166 i\n *\n * See also:\n *\n * acos, acot, acsc\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} The arc secant of x\n */\n return typed(name, {\n number: function number(x) {\n if (x <= -1 || x >= 1 || config.predictable) {\n return (0, _index.asecNumber)(x);\n }\n\n return new Complex(x, 0).asec();\n },\n Complex: function Complex(x) {\n return x.asec();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x).acos();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAsec = createAsec;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAsech = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'asech';\nvar dependencies = ['typed', 'config', 'Complex', 'BigNumber'];\nvar createAsech = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the hyperbolic arcsecant of a value,\n * defined as `asech(x) = acosh(1/x) = ln(sqrt(1/x^2 - 1) + 1/x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.asech(x)\n *\n * Examples:\n *\n * math.asech(0.5) // returns 1.3169578969248166\n *\n * See also:\n *\n * acsch, acoth\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic arcsecant of x\n */\n return typed(name, {\n number: function number(x) {\n if (x <= 1 && x >= -1 || config.predictable) {\n var xInv = 1 / x;\n\n if (xInv > 0 || config.predictable) {\n return (0, _index.asechNumber)(x);\n }\n\n var ret = Math.sqrt(xInv * xInv - 1);\n return new Complex(Math.log(ret - xInv), Math.PI);\n }\n\n return new Complex(x, 0).asech();\n },\n Complex: function Complex(x) {\n return x.asech();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x).acosh();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createAsech = createAsech;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAsin = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'asin';\nvar dependencies = ['typed', 'config', 'Complex'];\nvar createAsin = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex;\n\n /**\n * Calculate the inverse sine of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.asin(x)\n *\n * Examples:\n *\n * math.asin(0.5) // returns number 0.5235987755982989\n * math.asin(math.sin(1.5)) // returns number ~1.5\n *\n * math.asin(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i\n *\n * See also:\n *\n * sin, atan, acos\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} The arc sine of x\n */\n return typed(name, {\n number: function number(x) {\n if (x >= -1 && x <= 1 || config.predictable) {\n return Math.asin(x);\n } else {\n return new Complex(x, 0).asin();\n }\n },\n Complex: function Complex(x) {\n return x.asin();\n },\n BigNumber: function BigNumber(x) {\n return x.asin();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since asin(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createAsin = createAsin;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAsinh = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'asinh';\nvar dependencies = ['typed'];\nvar createAsinh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the hyperbolic arcsine of a value,\n * defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.asinh(x)\n *\n * Examples:\n *\n * math.asinh(0.5) // returns 0.48121182505960347\n *\n * See also:\n *\n * acosh, atanh\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic arcsine of x\n */\n return typed('asinh', {\n number: _index.asinhNumber,\n Complex: function Complex(x) {\n return x.asinh();\n },\n BigNumber: function BigNumber(x) {\n return x.asinh();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since asinh(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createAsinh = createAsinh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAtan = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'atan';\nvar dependencies = ['typed'];\nvar createAtan = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the inverse tangent of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.atan(x)\n *\n * Examples:\n *\n * math.atan(0.5) // returns number 0.4636476090008061\n * math.atan(math.tan(1.5)) // returns number 1.5\n *\n * math.atan(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i\n *\n * See also:\n *\n * tan, asin, acos\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} The arc tangent of x\n */\n return typed('atan', {\n number: function number(x) {\n return Math.atan(x);\n },\n Complex: function Complex(x) {\n return x.atan();\n },\n BigNumber: function BigNumber(x) {\n return x.atan();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since atan(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createAtan = createAtan;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAtan2 = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm02.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm03.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm09.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm12.js\");\n\nvar _algorithm6 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm7 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'atan2';\nvar dependencies = ['typed', 'matrix', 'equalScalar', 'BigNumber', 'DenseMatrix'];\nvar createAtan2 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n equalScalar = _ref.equalScalar,\n BigNumber = _ref.BigNumber,\n DenseMatrix = _ref.DenseMatrix;\n var algorithm02 = (0, _algorithm.createAlgorithm02)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm03 = (0, _algorithm2.createAlgorithm03)({\n typed: typed\n });\n var algorithm09 = (0, _algorithm3.createAlgorithm09)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm11 = (0, _algorithm4.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm12 = (0, _algorithm5.createAlgorithm12)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm6.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm7.createAlgorithm14)({\n typed: typed\n });\n /**\n * Calculate the inverse tangent function with two arguments, y/x.\n * By providing two arguments, the right quadrant of the computed angle can be\n * determined.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.atan2(y, x)\n *\n * Examples:\n *\n * math.atan2(2, 2) / math.pi // returns number 0.25\n *\n * const angle = math.unit(60, 'deg') // returns Unit 60 deg\n * const x = math.cos(angle)\n * const y = math.sin(angle)\n *\n * math.atan(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i\n *\n * See also:\n *\n * tan, atan, sin, cos\n *\n * @param {number | Array | Matrix} y Second dimension\n * @param {number | Array | Matrix} x First dimension\n * @return {number | Array | Matrix} Four-quadrant inverse tangent\n */\n\n return typed(name, {\n 'number, number': Math.atan2,\n // Complex numbers doesn't seem to have a reasonable implementation of\n // atan2(). Even Matlab removed the support, after they only calculated\n // the atan only on base of the real part of the numbers and ignored the imaginary.\n 'BigNumber, BigNumber': function BigNumberBigNumber(y, x) {\n return BigNumber.atan2(y, x);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm09(x, y, this, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n // mind the order of y and x!\n return algorithm02(y, x, this, true);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm03(x, y, this, false);\n },\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, this);\n },\n 'Array, Array': function ArrayArray(x, y) {\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n return this(x, matrix(y));\n },\n 'SparseMatrix, number | BigNumber': function SparseMatrixNumberBigNumber(x, y) {\n return algorithm11(x, y, this, false);\n },\n 'DenseMatrix, number | BigNumber': function DenseMatrixNumberBigNumber(x, y) {\n return algorithm14(x, y, this, false);\n },\n 'number | BigNumber, SparseMatrix': function numberBigNumberSparseMatrix(x, y) {\n // mind the order of y and x\n return algorithm12(y, x, this, true);\n },\n 'number | BigNumber, DenseMatrix': function numberBigNumberDenseMatrix(x, y) {\n // mind the order of y and x\n return algorithm14(y, x, this, true);\n },\n 'Array, number | BigNumber': function ArrayNumberBigNumber(x, y) {\n return algorithm14(matrix(x), y, this, false).valueOf();\n },\n 'number | BigNumber, Array': function numberBigNumberArray(x, y) {\n return algorithm14(matrix(y), x, this, true).valueOf();\n }\n });\n});\nexports.createAtan2 = createAtan2;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAtanh = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'atanh';\nvar dependencies = ['typed', 'config', 'Complex'];\nvar createAtanh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n Complex = _ref.Complex;\n\n /**\n * Calculate the hyperbolic arctangent of a value,\n * defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.atanh(x)\n *\n * Examples:\n *\n * math.atanh(0.5) // returns 0.5493061443340549\n *\n * See also:\n *\n * acosh, asinh\n *\n * @param {number | Complex | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic arctangent of x\n */\n return typed(name, {\n number: function number(x) {\n if (x <= 1 && x >= -1 || config.predictable) {\n return (0, _index.atanhNumber)(x);\n }\n\n return new Complex(x, 0).atanh();\n },\n Complex: function Complex(x) {\n return x.atanh();\n },\n BigNumber: function BigNumber(x) {\n return x.atanh();\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since atanh(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createAtanh = createAtanh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCos = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'cos';\nvar dependencies = ['typed'];\nvar createCos = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the cosine of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.cos(x)\n *\n * Examples:\n *\n * math.cos(2) // returns number -0.4161468365471422\n * math.cos(math.pi / 4) // returns number 0.7071067811865475\n * math.cos(math.unit(180, 'deg')) // returns number -1\n * math.cos(math.unit(60, 'deg')) // returns number 0.5\n *\n * const angle = 0.2\n * math.pow(math.sin(angle), 2) + math.pow(math.cos(angle), 2) // returns number ~1\n *\n * See also:\n *\n * cos, tan\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} Cosine of x\n */\n return typed(name, {\n number: Math.cos,\n Complex: function Complex(x) {\n return x.cos();\n },\n BigNumber: function BigNumber(x) {\n return x.cos();\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function cos is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createCos = createCos;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCosh = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar name = 'cosh';\nvar dependencies = ['typed'];\nvar createCosh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the hyperbolic cosine of a value,\n * defined as `cosh(x) = 1/2 * (exp(x) + exp(-x))`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.cosh(x)\n *\n * Examples:\n *\n * math.cosh(0.5) // returns number 1.1276259652063807\n *\n * See also:\n *\n * sinh, tanh\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} Hyperbolic cosine of x\n */\n return typed(name, {\n number: _number.cosh,\n Complex: function Complex(x) {\n return x.cosh();\n },\n BigNumber: function BigNumber(x) {\n return x.cosh();\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function cosh is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createCosh = createCosh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCot = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'cot';\nvar dependencies = ['typed', 'BigNumber'];\nvar createCot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the cotangent of a value. Defined as `cot(x) = 1 / tan(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.cot(x)\n *\n * Examples:\n *\n * math.cot(2) // returns number -0.45765755436028577\n * 1 / math.tan(2) // returns number -0.45765755436028577\n *\n * See also:\n *\n * tan, sec, csc\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Cotangent of x\n */\n return typed(name, {\n number: _index.cotNumber,\n Complex: function Complex(x) {\n return x.cot();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x.tan());\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function cot is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createCot = createCot;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCoth = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'coth';\nvar dependencies = ['typed', 'BigNumber'];\nvar createCoth = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the hyperbolic cotangent of a value,\n * defined as `coth(x) = 1 / tanh(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.coth(x)\n *\n * Examples:\n *\n * // coth(x) = 1 / tanh(x)\n * math.coth(2) // returns 1.0373147207275482\n * 1 / math.tanh(2) // returns 1.0373147207275482\n *\n * See also:\n *\n * sinh, tanh, cosh\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic cotangent of x\n */\n return typed(name, {\n number: _index.cothNumber,\n Complex: function Complex(x) {\n return x.coth();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x.tanh());\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function coth is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createCoth = createCoth;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsc = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'csc';\nvar dependencies = ['typed', 'BigNumber'];\nvar createCsc = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the cosecant of a value, defined as `csc(x) = 1/sin(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.csc(x)\n *\n * Examples:\n *\n * math.csc(2) // returns number 1.099750170294617\n * 1 / math.sin(2) // returns number 1.099750170294617\n *\n * See also:\n *\n * sin, sec, cot\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Cosecant of x\n */\n return typed(name, {\n number: _index.cscNumber,\n Complex: function Complex(x) {\n return x.csc();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x.sin());\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function csc is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createCsc = createCsc;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsch = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'csch';\nvar dependencies = ['typed', 'BigNumber'];\nvar createCsch = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the hyperbolic cosecant of a value,\n * defined as `csch(x) = 1 / sinh(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.csch(x)\n *\n * Examples:\n *\n * // csch(x) = 1/ sinh(x)\n * math.csch(0.5) // returns 1.9190347513349437\n * 1 / math.sinh(0.5) // returns 1.9190347513349437\n *\n * See also:\n *\n * sinh, sech, coth\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic cosecant of x\n */\n return typed(name, {\n number: _index.cschNumber,\n Complex: function Complex(x) {\n return x.csch();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x.sinh());\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function csch is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createCsch = createCsch;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSec = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'sec';\nvar dependencies = ['typed', 'BigNumber'];\nvar createSec = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the secant of a value, defined as `sec(x) = 1/cos(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.sec(x)\n *\n * Examples:\n *\n * math.sec(2) // returns number -2.4029979617223822\n * 1 / math.cos(2) // returns number -2.4029979617223822\n *\n * See also:\n *\n * cos, csc, cot\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Secant of x\n */\n return typed(name, {\n number: _index.secNumber,\n Complex: function Complex(x) {\n return x.sec();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x.cos());\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function sec is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createSec = createSec;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSech = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'sech';\nvar dependencies = ['typed', 'BigNumber'];\nvar createSech = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n _BigNumber = _ref.BigNumber;\n\n /**\n * Calculate the hyperbolic secant of a value,\n * defined as `sech(x) = 1 / cosh(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.sech(x)\n *\n * Examples:\n *\n * // sech(x) = 1/ cosh(x)\n * math.sech(0.5) // returns 0.886818883970074\n * 1 / math.cosh(0.5) // returns 0.886818883970074\n *\n * See also:\n *\n * cosh, csch, coth\n *\n * @param {number | Complex | Unit | Array | Matrix} x Function input\n * @return {number | Complex | Array | Matrix} Hyperbolic secant of x\n */\n return typed(name, {\n number: _index.sechNumber,\n Complex: function Complex(x) {\n return x.sech();\n },\n BigNumber: function BigNumber(x) {\n return new _BigNumber(1).div(x.cosh());\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function sech is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n return (0, _collection.deepMap)(x, this);\n }\n });\n});\nexports.createSech = createSech;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSin = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'sin';\nvar dependencies = ['typed'];\nvar createSin = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the sine of a value.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.sin(x)\n *\n * Examples:\n *\n * math.sin(2) // returns number 0.9092974268256813\n * math.sin(math.pi / 4) // returns number 0.7071067811865475\n * math.sin(math.unit(90, 'deg')) // returns number 1\n * math.sin(math.unit(30, 'deg')) // returns number 0.5\n *\n * const angle = 0.2\n * math.pow(math.sin(angle), 2) + math.pow(math.cos(angle), 2) // returns number ~1\n *\n * See also:\n *\n * cos, tan\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} Sine of x\n */\n return typed(name, {\n number: Math.sin,\n Complex: function Complex(x) {\n return x.sin();\n },\n BigNumber: function BigNumber(x) {\n return x.sin();\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function sin is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since sin(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createSin = createSin;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSinh = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'sinh';\nvar dependencies = ['typed'];\nvar createSinh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the hyperbolic sine of a value,\n * defined as `sinh(x) = 1/2 * (exp(x) - exp(-x))`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.sinh(x)\n *\n * Examples:\n *\n * math.sinh(0.5) // returns number 0.5210953054937474\n *\n * See also:\n *\n * cosh, tanh\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} Hyperbolic sine of x\n */\n return typed(name, {\n number: _index.sinhNumber,\n Complex: function Complex(x) {\n return x.sinh();\n },\n BigNumber: function BigNumber(x) {\n return x.sinh();\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function sinh is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since sinh(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createSinh = createSinh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTan = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar name = 'tan';\nvar dependencies = ['typed'];\nvar createTan = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the tangent of a value. `tan(x)` is equal to `sin(x) / cos(x)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.tan(x)\n *\n * Examples:\n *\n * math.tan(0.5) // returns number 0.5463024898437905\n * math.sin(0.5) / math.cos(0.5) // returns number 0.5463024898437905\n * math.tan(math.pi / 4) // returns number 1\n * math.tan(math.unit(45, 'deg')) // returns number 1\n *\n * See also:\n *\n * atan, sin, cos\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} Tangent of x\n */\n return typed(name, {\n number: Math.tan,\n Complex: function Complex(x) {\n return x.tan();\n },\n BigNumber: function BigNumber(x) {\n return x.tan();\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function tan is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since tan(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createTan = createTan;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTanh = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar name = 'tanh';\nvar dependencies = ['typed'];\nvar createTanh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Calculate the hyperbolic tangent of a value,\n * defined as `tanh(x) = (exp(2 * x) - 1) / (exp(2 * x) + 1)`.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.tanh(x)\n *\n * Examples:\n *\n * // tanh(x) = sinh(x) / cosh(x) = 1 / coth(x)\n * math.tanh(0.5) // returns 0.46211715726000974\n * math.sinh(0.5) / math.cosh(0.5) // returns 0.46211715726000974\n * 1 / math.coth(0.5) // returns 0.46211715726000974\n *\n * See also:\n *\n * sinh, cosh, coth\n *\n * @param {number | BigNumber | Complex | Unit | Array | Matrix} x Function input\n * @return {number | BigNumber | Complex | Array | Matrix} Hyperbolic tangent of x\n */\n return typed('tanh', {\n number: _number.tanh,\n Complex: function Complex(x) {\n return x.tanh();\n },\n BigNumber: function BigNumber(x) {\n return x.tanh();\n },\n Unit: function Unit(x) {\n if (!x.hasBase(x.constructor.BASE_UNITS.ANGLE)) {\n throw new TypeError('Unit in function tanh is no angle');\n }\n\n return this(x.value);\n },\n 'Array | Matrix': function ArrayMatrix(x) {\n // deep map collection, skip zeros since tanh(0) = 0\n return (0, _collection.deepMap)(x, this, true);\n }\n });\n});\nexports.createTanh = createTanh;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetCartesian = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setCartesian';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index', 'DenseMatrix'];\nvar createSetCartesian = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Create the cartesian product of two (multi)sets.\n * Multi-dimension arrays will be converted to single-dimension arrays\n * and the values will be sorted in ascending order before the operation.\n *\n * Syntax:\n *\n * math.setCartesian(set1, set2)\n *\n * Examples:\n *\n * math.setCartesian([1, 2], [3, 4]) // returns [[1, 3], [1, 4], [2, 3], [2, 4]]\n * math.setCartesian([4, 3], [2, 1]) // returns [[3, 1], [3, 2], [4, 1], [4, 2]]\n *\n * See also:\n *\n * setUnion, setIntersect, setDifference, setPowerset\n *\n * @param {Array | Matrix} a1 A (multi)set\n * @param {Array | Matrix} a2 A (multi)set\n * @return {Array | Matrix} The cartesian product of two (multi)sets\n */\n return typed(name, {\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(a1, a2) {\n var result = [];\n\n if (subset(size(a1), new Index(0)) !== 0 && subset(size(a2), new Index(0)) !== 0) {\n // if any of them is empty, return empty\n var b1 = (0, _array.flatten)(Array.isArray(a1) ? a1 : a1.toArray()).sort(compareNatural);\n var b2 = (0, _array.flatten)(Array.isArray(a2) ? a2 : a2.toArray()).sort(compareNatural);\n result = [];\n\n for (var i = 0; i < b1.length; i++) {\n for (var j = 0; j < b2.length; j++) {\n result.push([b1[i], b2[j]]);\n }\n }\n } // return an array, if both inputs were arrays\n\n\n if (Array.isArray(a1) && Array.isArray(a2)) {\n return result;\n } // return a matrix otherwise\n\n\n return new DenseMatrix(result);\n }\n });\n});\nexports.createSetCartesian = createSetCartesian;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetDifference = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setDifference';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index', 'DenseMatrix'];\nvar createSetDifference = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Create the difference of two (multi)sets: every element of set1, that is not the element of set2.\n * Multi-dimension arrays will be converted to single-dimension arrays before the operation.\n *\n * Syntax:\n *\n * math.setDifference(set1, set2)\n *\n * Examples:\n *\n * math.setDifference([1, 2, 3, 4], [3, 4, 5, 6]) // returns [1, 2]\n * math.setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]]) // returns [1, 2]\n *\n * See also:\n *\n * setUnion, setIntersect, setSymDifference\n *\n * @param {Array | Matrix} a1 A (multi)set\n * @param {Array | Matrix} a2 A (multi)set\n * @return {Array | Matrix} The difference of two (multi)sets\n */\n return typed(name, {\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(a1, a2) {\n var result;\n\n if (subset(size(a1), new Index(0)) === 0) {\n // empty-anything=empty\n result = [];\n } else if (subset(size(a2), new Index(0)) === 0) {\n // anything-empty=anything\n return (0, _array.flatten)(a1.toArray());\n } else {\n var b1 = (0, _array.identify)((0, _array.flatten)(Array.isArray(a1) ? a1 : a1.toArray()).sort(compareNatural));\n var b2 = (0, _array.identify)((0, _array.flatten)(Array.isArray(a2) ? a2 : a2.toArray()).sort(compareNatural));\n result = [];\n var inb2;\n\n for (var i = 0; i < b1.length; i++) {\n inb2 = false;\n\n for (var j = 0; j < b2.length; j++) {\n if (compareNatural(b1[i].value, b2[j].value) === 0 && b1[i].identifier === b2[j].identifier) {\n // the identifier is always a decimal int\n inb2 = true;\n break;\n }\n }\n\n if (!inb2) {\n result.push(b1[i]);\n }\n }\n } // return an array, if both inputs were arrays\n\n\n if (Array.isArray(a1) && Array.isArray(a2)) {\n return (0, _array.generalize)(result);\n } // return a matrix otherwise\n\n\n return new DenseMatrix((0, _array.generalize)(result));\n }\n });\n});\nexports.createSetDifference = createSetDifference;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetDistinct = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setDistinct';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index', 'DenseMatrix'];\nvar createSetDistinct = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Collect the distinct elements of a multiset.\n * A multi-dimension array will be converted to a single-dimension array before the operation.\n *\n * Syntax:\n *\n * math.setDistinct(set)\n *\n * Examples:\n *\n * math.setDistinct([1, 1, 1, 2, 2, 3]) // returns [1, 2, 3]\n *\n * See also:\n *\n * setMultiplicity\n *\n * @param {Array | Matrix} a A multiset\n * @return {Array | Matrix} A set containing the distinc elements of the multiset\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(a) {\n var result;\n\n if (subset(size(a), new Index(0)) === 0) {\n // if empty, return empty\n result = [];\n } else {\n var b = (0, _array.flatten)(Array.isArray(a) ? a : a.toArray()).sort(compareNatural);\n result = [];\n result.push(b[0]);\n\n for (var i = 1; i < b.length; i++) {\n if (compareNatural(b[i], b[i - 1]) !== 0) {\n result.push(b[i]);\n }\n }\n } // return an array, if the input was an array\n\n\n if (Array.isArray(a)) {\n return result;\n } // return a matrix otherwise\n\n\n return new DenseMatrix(result);\n }\n });\n});\nexports.createSetDistinct = createSetDistinct;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetIntersect = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setIntersect';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index', 'DenseMatrix'];\nvar createSetIntersect = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index,\n DenseMatrix = _ref.DenseMatrix;\n\n /**\n * Create the intersection of two (multi)sets.\n * Multi-dimension arrays will be converted to single-dimension arrays before the operation.\n *\n * Syntax:\n *\n * math.setIntersect(set1, set2)\n *\n * Examples:\n *\n * math.setIntersect([1, 2, 3, 4], [3, 4, 5, 6]) // returns [3, 4]\n * math.setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]]) // returns [3, 4]\n *\n * See also:\n *\n * setUnion, setDifference\n *\n * @param {Array | Matrix} a1 A (multi)set\n * @param {Array | Matrix} a2 A (multi)set\n * @return {Array | Matrix} The intersection of two (multi)sets\n */\n return typed(name, {\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(a1, a2) {\n var result;\n\n if (subset(size(a1), new Index(0)) === 0 || subset(size(a2), new Index(0)) === 0) {\n // of any of them is empty, return empty\n result = [];\n } else {\n var b1 = (0, _array.identify)((0, _array.flatten)(Array.isArray(a1) ? a1 : a1.toArray()).sort(compareNatural));\n var b2 = (0, _array.identify)((0, _array.flatten)(Array.isArray(a2) ? a2 : a2.toArray()).sort(compareNatural));\n result = [];\n\n for (var i = 0; i < b1.length; i++) {\n for (var j = 0; j < b2.length; j++) {\n if (compareNatural(b1[i].value, b2[j].value) === 0 && b1[i].identifier === b2[j].identifier) {\n // the identifier is always a decimal int\n result.push(b1[i]);\n break;\n }\n }\n }\n } // return an array, if both inputs were arrays\n\n\n if (Array.isArray(a1) && Array.isArray(a2)) {\n return (0, _array.generalize)(result);\n } // return a matrix otherwise\n\n\n return new DenseMatrix((0, _array.generalize)(result));\n }\n });\n});\nexports.createSetIntersect = createSetIntersect;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetIsSubset = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setIsSubset';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index'];\nvar createSetIsSubset = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index;\n\n /**\n * Check whether a (multi)set is a subset of another (multi)set. (Every element of set1 is the element of set2.)\n * Multi-dimension arrays will be converted to single-dimension arrays before the operation.\n *\n * Syntax:\n *\n * math.setIsSubset(set1, set2)\n *\n * Examples:\n *\n * math.setIsSubset([1, 2], [3, 4, 5, 6]) // returns false\n * math.setIsSubset([3, 4], [3, 4, 5, 6]) // returns true\n *\n * See also:\n *\n * setUnion, setIntersect, setDifference\n *\n * @param {Array | Matrix} a1 A (multi)set\n * @param {Array | Matrix} a2 A (multi)set\n * @return {boolean} true | false\n */\n return typed(name, {\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(a1, a2) {\n if (subset(size(a1), new Index(0)) === 0) {\n // empty is a subset of anything\n return true;\n } else if (subset(size(a2), new Index(0)) === 0) {\n // anything is not a subset of empty\n return false;\n }\n\n var b1 = (0, _array.identify)((0, _array.flatten)(Array.isArray(a1) ? a1 : a1.toArray()).sort(compareNatural));\n var b2 = (0, _array.identify)((0, _array.flatten)(Array.isArray(a2) ? a2 : a2.toArray()).sort(compareNatural));\n var inb2;\n\n for (var i = 0; i < b1.length; i++) {\n inb2 = false;\n\n for (var j = 0; j < b2.length; j++) {\n if (compareNatural(b1[i].value, b2[j].value) === 0 && b1[i].identifier === b2[j].identifier) {\n // the identifier is always a decimal int\n inb2 = true;\n break;\n }\n }\n\n if (inb2 === false) {\n return false;\n }\n }\n\n return true;\n }\n });\n});\nexports.createSetIsSubset = createSetIsSubset;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetMultiplicity = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setMultiplicity';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index'];\nvar createSetMultiplicity = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index;\n\n /**\n * Count the multiplicity of an element in a multiset.\n * A multi-dimension array will be converted to a single-dimension array before the operation.\n *\n * Syntax:\n *\n * math.setMultiplicity(element, set)\n *\n * Examples:\n *\n * math.setMultiplicity(1, [1, 2, 2, 4]) // returns 1\n * math.setMultiplicity(2, [1, 2, 2, 4]) // returns 2\n *\n * See also:\n *\n * setDistinct, setSize\n *\n * @param {number | BigNumber | Fraction | Complex} e An element in the multiset\n * @param {Array | Matrix} a A multiset\n * @return {number} The number of how many times the multiset contains the element\n */\n return typed(name, {\n 'number | BigNumber | Fraction | Complex, Array | Matrix': function numberBigNumberFractionComplexArrayMatrix(e, a) {\n if (subset(size(a), new Index(0)) === 0) {\n // if empty, return 0\n return 0;\n }\n\n var b = (0, _array.flatten)(Array.isArray(a) ? a : a.toArray());\n var count = 0;\n\n for (var i = 0; i < b.length; i++) {\n if (compareNatural(b[i], e) === 0) {\n count++;\n }\n }\n\n return count;\n }\n });\n});\nexports.createSetMultiplicity = createSetMultiplicity;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetPowerset = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setPowerset';\nvar dependencies = ['typed', 'size', 'subset', 'compareNatural', 'Index'];\nvar createSetPowerset = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n subset = _ref.subset,\n compareNatural = _ref.compareNatural,\n Index = _ref.Index;\n\n /**\n * Create the powerset of a (multi)set. (The powerset contains very possible subsets of a (multi)set.)\n * A multi-dimension array will be converted to a single-dimension array before the operation.\n *\n * Syntax:\n *\n * math.setPowerset(set)\n *\n * Examples:\n *\n * math.setPowerset([1, 2, 3]) // returns [[], [1], [2], [3], [1, 2], [1, 3], [2, 3], [1, 2, 3]]\n *\n * See also:\n *\n * setCartesian\n *\n * @param {Array | Matrix} a A (multi)set\n * @return {Array} The powerset of the (multi)set\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(a) {\n if (subset(size(a), new Index(0)) === 0) {\n // if empty, return empty\n return [];\n }\n\n var b = (0, _array.flatten)(Array.isArray(a) ? a : a.toArray()).sort(compareNatural);\n var result = [];\n var number = 0;\n\n while (number.toString(2).length <= b.length) {\n result.push(_subset(b, number.toString(2).split('').reverse()));\n number++;\n } // can not return a matrix, because of the different size of the subarrays\n\n\n return _sort(result);\n }\n }); // create subset\n\n function _subset(array, bitarray) {\n var result = [];\n\n for (var i = 0; i < bitarray.length; i++) {\n if (bitarray[i] === '1') {\n result.push(array[i]);\n }\n }\n\n return result;\n } // sort subsests by length\n\n\n function _sort(array) {\n var temp = [];\n\n for (var i = array.length - 1; i > 0; i--) {\n for (var j = 0; j < i; j++) {\n if (array[j].length > array[j + 1].length) {\n temp = array[j];\n array[j] = array[j + 1];\n array[j + 1] = temp;\n }\n }\n }\n\n return array;\n }\n});\nexports.createSetPowerset = createSetPowerset;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetSize = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setSize';\nvar dependencies = ['typed', 'compareNatural'];\nvar createSetSize = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n compareNatural = _ref.compareNatural;\n\n /**\n * Count the number of elements of a (multi)set. When a second parameter is 'true', count only the unique values.\n * A multi-dimension array will be converted to a single-dimension array before the operation.\n *\n * Syntax:\n *\n * math.setSize(set)\n * math.setSize(set, unique)\n *\n * Examples:\n *\n * math.setSize([1, 2, 2, 4]) // returns 4\n * math.setSize([1, 2, 2, 4], true) // returns 3\n *\n * See also:\n *\n * setUnion, setIntersect, setDifference\n *\n * @param {Array | Matrix} a A multiset\n * @return {number} The number of elements of the (multi)set\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(a) {\n return Array.isArray(a) ? (0, _array.flatten)(a).length : (0, _array.flatten)(a.toArray()).length;\n },\n 'Array | Matrix, boolean': function ArrayMatrixBoolean(a, unique) {\n if (unique === false || a.length === 0) {\n return Array.isArray(a) ? (0, _array.flatten)(a).length : (0, _array.flatten)(a.toArray()).length;\n } else {\n var b = (0, _array.flatten)(Array.isArray(a) ? a : a.toArray()).sort(compareNatural);\n var count = 1;\n\n for (var i = 1; i < b.length; i++) {\n if (compareNatural(b[i], b[i - 1]) !== 0) {\n count++;\n }\n }\n\n return count;\n }\n }\n });\n});\nexports.createSetSize = createSetSize;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetSymDifference = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setSymDifference';\nvar dependencies = ['typed', 'size', 'concat', 'subset', 'setDifference', 'Index'];\nvar createSetSymDifference = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n concat = _ref.concat,\n subset = _ref.subset,\n setDifference = _ref.setDifference,\n Index = _ref.Index;\n\n /**\n * Create the symmetric difference of two (multi)sets.\n * Multi-dimension arrays will be converted to single-dimension arrays before the operation.\n *\n * Syntax:\n *\n * math.setSymDifference(set1, set2)\n *\n * Examples:\n *\n * math.setSymDifference([1, 2, 3, 4], [3, 4, 5, 6]) // returns [1, 2, 5, 6]\n * math.setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]]) // returns [1, 2, 5, 6]\n *\n * See also:\n *\n * setUnion, setIntersect, setDifference\n *\n * @param {Array | Matrix} a1 A (multi)set\n * @param {Array | Matrix} a2 A (multi)set\n * @return {Array | Matrix} The symmetric difference of two (multi)sets\n */\n return typed(name, {\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(a1, a2) {\n if (subset(size(a1), new Index(0)) === 0) {\n // if any of them is empty, return the other one\n return (0, _array.flatten)(a2);\n } else if (subset(size(a2), new Index(0)) === 0) {\n return (0, _array.flatten)(a1);\n }\n\n var b1 = (0, _array.flatten)(a1);\n var b2 = (0, _array.flatten)(a2);\n return concat(setDifference(b1, b2), setDifference(b2, b1));\n }\n });\n});\nexports.createSetSymDifference = createSetSymDifference;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSetUnion = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'setUnion';\nvar dependencies = ['typed', 'size', 'concat', 'subset', 'setIntersect', 'setSymDifference', 'Index'];\nvar createSetUnion = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n size = _ref.size,\n concat = _ref.concat,\n subset = _ref.subset,\n setIntersect = _ref.setIntersect,\n setSymDifference = _ref.setSymDifference,\n Index = _ref.Index;\n\n /**\n * Create the union of two (multi)sets.\n * Multi-dimension arrays will be converted to single-dimension arrays before the operation.\n *\n * Syntax:\n *\n * math.setUnion(set1, set2)\n *\n * Examples:\n *\n * math.setUnion([1, 2, 3, 4], [3, 4, 5, 6]) // returns [1, 2, 3, 4, 5, 6]\n * math.setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]]) // returns [1, 2, 3, 4, 5, 6]\n *\n * See also:\n *\n * setIntersect, setDifference\n *\n * @param {Array | Matrix} a1 A (multi)set\n * @param {Array | Matrix} a2 A (multi)set\n * @return {Array | Matrix} The union of two (multi)sets\n */\n return typed(name, {\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(a1, a2) {\n if (subset(size(a1), new Index(0)) === 0) {\n // if any of them is empty, return the other one\n return (0, _array.flatten)(a2);\n } else if (subset(size(a2), new Index(0)) === 0) {\n return (0, _array.flatten)(a1);\n }\n\n var b1 = (0, _array.flatten)(a1);\n var b2 = (0, _array.flatten)(a2);\n return concat(setSymDifference(b1, b2), setIntersect(b1, b2));\n }\n });\n});\nexports.createSetUnion = createSetUnion;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAdd = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm01.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm04.js\");\n\nvar _algorithm3 = require(\"../../type/matrix/utils/algorithm10.js\");\n\nvar _algorithm4 = require(\"../../type/matrix/utils/algorithm13.js\");\n\nvar _algorithm5 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'add';\nvar dependencies = ['typed', 'matrix', 'addScalar', 'equalScalar', 'DenseMatrix', 'SparseMatrix'];\nvar createAdd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n addScalar = _ref.addScalar,\n equalScalar = _ref.equalScalar,\n DenseMatrix = _ref.DenseMatrix,\n SparseMatrix = _ref.SparseMatrix;\n var algorithm01 = (0, _algorithm.createAlgorithm01)({\n typed: typed\n });\n var algorithm04 = (0, _algorithm2.createAlgorithm04)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm10 = (0, _algorithm3.createAlgorithm10)({\n typed: typed,\n DenseMatrix: DenseMatrix\n });\n var algorithm13 = (0, _algorithm4.createAlgorithm13)({\n typed: typed\n });\n var algorithm14 = (0, _algorithm5.createAlgorithm14)({\n typed: typed\n });\n /**\n * Add two or more values, `x + y`.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.add(x, y)\n * math.add(x, y, z, ...)\n *\n * Examples:\n *\n * math.add(2, 3) // returns number 5\n * math.add(2, 3, 4) // returns number 9\n *\n * const a = math.complex(2, 3)\n * const b = math.complex(-4, 1)\n * math.add(a, b) // returns Complex -2 + 4i\n *\n * math.add([1, 2, 3], 4) // returns Array [5, 6, 7]\n *\n * const c = math.unit('5 cm')\n * const d = math.unit('2.1 mm')\n * math.add(c, d) // returns Unit 52.1 mm\n *\n * math.add(\"2.3\", \"4\") // returns number 6.3\n *\n * See also:\n *\n * subtract, sum\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x First value to add\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} y Second value to add\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} Sum of `x` and `y`\n */\n\n return typed(name, (0, _object.extend)({\n // we extend the signatures of addScalar with signatures dealing with matrices\n 'DenseMatrix, DenseMatrix': function DenseMatrixDenseMatrix(x, y) {\n return algorithm13(x, y, addScalar);\n },\n 'DenseMatrix, SparseMatrix': function DenseMatrixSparseMatrix(x, y) {\n return algorithm01(x, y, addScalar, false);\n },\n 'SparseMatrix, DenseMatrix': function SparseMatrixDenseMatrix(x, y) {\n return algorithm01(y, x, addScalar, true);\n },\n 'SparseMatrix, SparseMatrix': function SparseMatrixSparseMatrix(x, y) {\n return algorithm04(x, y, addScalar);\n },\n 'Array, Array': function ArrayArray(x, y) {\n // use matrix implementation\n return this(matrix(x), matrix(y)).valueOf();\n },\n 'Array, Matrix': function ArrayMatrix(x, y) {\n // use matrix implementation\n return this(matrix(x), y);\n },\n 'Matrix, Array': function MatrixArray(x, y) {\n // use matrix implementation\n return this(x, matrix(y));\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, addScalar, false);\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm10(x, y, addScalar, false);\n },\n 'any, DenseMatrix': function anyDenseMatrix(x, y) {\n return algorithm14(y, x, addScalar, true);\n },\n 'any, SparseMatrix': function anySparseMatrix(x, y) {\n return algorithm10(y, x, addScalar, true);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, addScalar, false).valueOf();\n },\n 'any, Array': function anyArray(x, y) {\n // use matrix implementation\n return algorithm14(matrix(y), x, addScalar, true).valueOf();\n },\n 'any, any': addScalar,\n 'any, any, ...any': function anyAnyAny(x, y, rest) {\n var result = this(x, y);\n\n for (var i = 0; i < rest.length; i++) {\n result = this(result, rest[i]);\n }\n\n return result;\n }\n }, addScalar.signatures));\n});\nexports.createAdd = createAdd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createHypot = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar name = 'hypot';\nvar dependencies = ['typed', 'abs', 'addScalar', 'divideScalar', 'multiplyScalar', 'sqrt', 'smaller', 'isPositive'];\nvar createHypot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n abs = _ref.abs,\n addScalar = _ref.addScalar,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n sqrt = _ref.sqrt,\n smaller = _ref.smaller,\n isPositive = _ref.isPositive;\n\n /**\n * Calculate the hypotenusa of a list with values. The hypotenusa is defined as:\n *\n * hypot(a, b, c, ...) = sqrt(a^2 + b^2 + c^2 + ...)\n *\n * For matrix input, the hypotenusa is calculated for all values in the matrix.\n *\n * Syntax:\n *\n * math.hypot(a, b, ...)\n * math.hypot([a, b, c, ...])\n *\n * Examples:\n *\n * math.hypot(3, 4) // 5\n * math.hypot(3, 4, 5) // 7.0710678118654755\n * math.hypot([3, 4, 5]) // 7.0710678118654755\n * math.hypot(-2) // 2\n *\n * See also:\n *\n * abs, norm\n *\n * @param {... number | BigNumber | Array | Matrix} args A list with numeric values or an Array or Matrix.\n * Matrix and Array input is flattened and returns a\n * single number for the whole matrix.\n * @return {number | BigNumber} Returns the hypothenusa of the input values.\n */\n return typed(name, {\n '... number | BigNumber': _hypot,\n Array: function Array(x) {\n return this.apply(this, (0, _array.flatten)(x));\n },\n Matrix: function Matrix(x) {\n return this.apply(this, (0, _array.flatten)(x.toArray()));\n }\n });\n /**\n * Calculate the hypotenusa for an Array with values\n * @param {Array.} args\n * @return {number | BigNumber} Returns the result\n * @private\n */\n\n function _hypot(args) {\n // code based on `hypot` from es6-shim:\n // https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js#L1619-L1633\n var result = 0;\n var largest = 0;\n\n for (var i = 0; i < args.length; i++) {\n var value = abs(args[i]);\n\n if (smaller(largest, value)) {\n result = multiplyScalar(result, multiplyScalar(divideScalar(largest, value), divideScalar(largest, value)));\n result = addScalar(result, 1);\n largest = value;\n } else {\n result = addScalar(result, isPositive(value) ? multiplyScalar(divideScalar(value, largest), divideScalar(value, largest)) : value);\n }\n }\n\n return multiplyScalar(largest, sqrt(result));\n }\n});\nexports.createHypot = createHypot;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNorm = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'norm';\nvar dependencies = ['typed', 'abs', 'add', 'pow', 'conj', 'sqrt', 'multiply', 'equalScalar', 'larger', 'smaller', 'matrix', 'ctranspose', 'eigs'];\nvar createNorm = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n abs = _ref.abs,\n add = _ref.add,\n pow = _ref.pow,\n conj = _ref.conj,\n sqrt = _ref.sqrt,\n multiply = _ref.multiply,\n equalScalar = _ref.equalScalar,\n larger = _ref.larger,\n smaller = _ref.smaller,\n matrix = _ref.matrix,\n ctranspose = _ref.ctranspose,\n eigs = _ref.eigs;\n\n /**\n * Calculate the norm of a number, vector or matrix.\n *\n * The second parameter p is optional. If not provided, it defaults to 2.\n *\n * Syntax:\n *\n * math.norm(x)\n * math.norm(x, p)\n *\n * Examples:\n *\n * math.abs(-3.5) // returns 3.5\n * math.norm(-3.5) // returns 3.5\n *\n * math.norm(math.complex(3, -4)) // returns 5\n *\n * math.norm([1, 2, -3], Infinity) // returns 3\n * math.norm([1, 2, -3], -Infinity) // returns 1\n *\n * math.norm([3, 4], 2) // returns 5\n *\n * math.norm([[1, 2], [3, 4]], 1) // returns 6\n * math.norm([[1, 2], [3, 4]], 'inf') // returns 7\n * math.norm([[1, 2], [3, 4]], 'fro') // returns 5.477225575051661\n *\n * See also:\n *\n * abs, hypot\n *\n * @param {number | BigNumber | Complex | Array | Matrix} x\n * Value for which to calculate the norm\n * @param {number | BigNumber | string} [p=2]\n * Vector space.\n * Supported numbers include Infinity and -Infinity.\n * Supported strings are: 'inf', '-inf', and 'fro' (The Frobenius norm)\n * @return {number | BigNumber} the p-norm\n */\n return typed(name, {\n number: Math.abs,\n Complex: function Complex(x) {\n return x.abs();\n },\n BigNumber: function BigNumber(x) {\n // norm(x) = abs(x)\n return x.abs();\n },\n boolean: function boolean(x) {\n // norm(x) = abs(x)\n return Math.abs(x);\n },\n Array: function Array(x) {\n return _norm(matrix(x), 2);\n },\n Matrix: function Matrix(x) {\n return _norm(x, 2);\n },\n 'number | Complex | BigNumber | boolean, number | BigNumber | string': function numberComplexBigNumberBooleanNumberBigNumberString(x) {\n // ignore second parameter, TODO: remove the option of second parameter for these types\n return this(x);\n },\n 'Array, number | BigNumber | string': function ArrayNumberBigNumberString(x, p) {\n return _norm(matrix(x), p);\n },\n 'Matrix, number | BigNumber | string': function MatrixNumberBigNumberString(x, p) {\n return _norm(x, p);\n }\n });\n /**\n * Calculate the plus infinity norm for a vector\n * @param {Matrix} x\n * @returns {number} Returns the norm\n * @private\n */\n\n function _vectorNormPlusInfinity(x) {\n // norm(x, Infinity) = max(abs(x))\n var pinf = 0; // skip zeros since abs(0) === 0\n\n x.forEach(function (value) {\n var v = abs(value);\n\n if (larger(v, pinf)) {\n pinf = v;\n }\n }, true);\n return pinf;\n }\n /**\n * Calculate the minus infinity norm for a vector\n * @param {Matrix} x\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _vectorNormMinusInfinity(x) {\n // norm(x, -Infinity) = min(abs(x))\n var ninf; // skip zeros since abs(0) === 0\n\n x.forEach(function (value) {\n var v = abs(value);\n\n if (!ninf || smaller(v, ninf)) {\n ninf = v;\n }\n }, true);\n return ninf || 0;\n }\n /**\n * Calculate the norm for a vector\n * @param {Matrix} x\n * @param {number | string} p\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _vectorNorm(x, p) {\n // check p\n if (p === Number.POSITIVE_INFINITY || p === 'inf') {\n return _vectorNormPlusInfinity(x);\n }\n\n if (p === Number.NEGATIVE_INFINITY || p === '-inf') {\n return _vectorNormMinusInfinity(x);\n }\n\n if (p === 'fro') {\n return _norm(x, 2);\n }\n\n if (typeof p === 'number' && !isNaN(p)) {\n // check p != 0\n if (!equalScalar(p, 0)) {\n // norm(x, p) = sum(abs(xi) ^ p) ^ 1/p\n var n = 0; // skip zeros since abs(0) === 0\n\n x.forEach(function (value) {\n n = add(pow(abs(value), p), n);\n }, true);\n return pow(n, 1 / p);\n }\n\n return Number.POSITIVE_INFINITY;\n } // invalid parameter value\n\n\n throw new Error('Unsupported parameter value');\n }\n /**\n * Calculate the Frobenius norm for a matrix\n * @param {Matrix} x\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _matrixNormFrobenius(x) {\n // norm(x) = sqrt(sum(diag(x'x)))\n var fro = 0;\n x.forEach(function (value, index) {\n fro = add(fro, multiply(value, conj(value)));\n });\n return abs(sqrt(fro));\n }\n /**\n * Calculate the norm L1 for a matrix\n * @param {Matrix} x\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _matrixNormOne(x) {\n // norm(x) = the largest column sum\n var c = []; // result\n\n var maxc = 0; // skip zeros since abs(0) == 0\n\n x.forEach(function (value, index) {\n var j = index[1];\n var cj = add(c[j] || 0, abs(value));\n\n if (larger(cj, maxc)) {\n maxc = cj;\n }\n\n c[j] = cj;\n }, true);\n return maxc;\n }\n /**\n * Calculate the norm L2 for a matrix\n * @param {Matrix} x\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _matrixNormTwo(x) {\n // norm(x) = sqrt( max eigenvalue of A*.A)\n var sizeX = x.size();\n\n if (sizeX[0] !== sizeX[1]) {\n throw new RangeError('Invalid matrix dimensions');\n }\n\n var tx = ctranspose(x);\n var squaredX = multiply(tx, x);\n var eigenVals = eigs(squaredX).values.toArray();\n var rho = eigenVals[eigenVals.length - 1];\n return abs(sqrt(rho));\n }\n /**\n * Calculate the infinity norm for a matrix\n * @param {Matrix} x\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _matrixNormInfinity(x) {\n // norm(x) = the largest row sum\n var r = []; // result\n\n var maxr = 0; // skip zeros since abs(0) == 0\n\n x.forEach(function (value, index) {\n var i = index[0];\n var ri = add(r[i] || 0, abs(value));\n\n if (larger(ri, maxr)) {\n maxr = ri;\n }\n\n r[i] = ri;\n }, true);\n return maxr;\n }\n /**\n * Calculate the norm for a 2D Matrix (M*N)\n * @param {Matrix} x\n * @param {number | string} p\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _matrixNorm(x, p) {\n // check p\n if (p === 1) {\n return _matrixNormOne(x);\n }\n\n if (p === Number.POSITIVE_INFINITY || p === 'inf') {\n return _matrixNormInfinity(x);\n }\n\n if (p === 'fro') {\n return _matrixNormFrobenius(x);\n }\n\n if (p === 2) {\n return _matrixNormTwo(x);\n } // invalid parameter value\n\n\n throw new Error('Unsupported parameter value ' + p);\n }\n /**\n * Calculate the norm for an array\n * @param {Matrix} x\n * @param {number | string} p\n * @returns {number} Returns the norm\n * @private\n */\n\n\n function _norm(x, p) {\n // size\n var sizeX = x.size(); // check if it is a vector\n\n if (sizeX.length === 1) {\n return _vectorNorm(x, p);\n } // MxN matrix\n\n\n if (sizeX.length === 2) {\n if (sizeX[0] && sizeX[1]) {\n return _matrixNorm(x, p);\n } else {\n throw new RangeError('Invalid matrix dimensions');\n }\n }\n }\n});\nexports.createNorm = createNorm;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDot = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'dot';\nvar dependencies = ['typed', 'addScalar', 'multiplyScalar', 'conj', 'size'];\nvar createDot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n addScalar = _ref.addScalar,\n multiplyScalar = _ref.multiplyScalar,\n conj = _ref.conj,\n size = _ref.size;\n\n /**\n * Calculate the dot product of two vectors. The dot product of\n * `A = [a1, a2, ..., an]` and `B = [b1, b2, ..., bn]` is defined as:\n *\n * dot(A, B) = conj(a1) * b1 + conj(a2) * b2 + ... + conj(an) * bn\n *\n * Syntax:\n *\n * math.dot(x, y)\n *\n * Examples:\n *\n * math.dot([2, 4, 1], [2, 2, 3]) // returns number 15\n * math.multiply([2, 4, 1], [2, 2, 3]) // returns number 15\n *\n * See also:\n *\n * multiply, cross\n *\n * @param {Array | Matrix} x First vector\n * @param {Array | Matrix} y Second vector\n * @return {number} Returns the dot product of `x` and `y`\n */\n return typed(name, {\n 'Array | DenseMatrix, Array | DenseMatrix': _denseDot,\n 'SparseMatrix, SparseMatrix': _sparseDot\n });\n\n function _validateDim(x, y) {\n var xSize = _size(x);\n\n var ySize = _size(y);\n\n var xLen, yLen;\n\n if (xSize.length === 1) {\n xLen = xSize[0];\n } else if (xSize.length === 2 && xSize[1] === 1) {\n xLen = xSize[0];\n } else {\n throw new RangeError('Expected a column vector, instead got a matrix of size (' + xSize.join(', ') + ')');\n }\n\n if (ySize.length === 1) {\n yLen = ySize[0];\n } else if (ySize.length === 2 && ySize[1] === 1) {\n yLen = ySize[0];\n } else {\n throw new RangeError('Expected a column vector, instead got a matrix of size (' + ySize.join(', ') + ')');\n }\n\n if (xLen !== yLen) throw new RangeError('Vectors must have equal length (' + xLen + ' != ' + yLen + ')');\n if (xLen === 0) throw new RangeError('Cannot calculate the dot product of empty vectors');\n return xLen;\n }\n\n function _denseDot(a, b) {\n var N = _validateDim(a, b);\n\n var adata = (0, _is.isMatrix)(a) ? a._data : a;\n var adt = (0, _is.isMatrix)(a) ? a._datatype : undefined;\n var bdata = (0, _is.isMatrix)(b) ? b._data : b;\n var bdt = (0, _is.isMatrix)(b) ? b._datatype : undefined; // are these 2-dimensional column vectors? (as opposed to 1-dimensional vectors)\n\n var aIsColumn = _size(a).length === 2;\n var bIsColumn = _size(b).length === 2;\n var add = addScalar;\n var mul = multiplyScalar; // process data types\n\n if (adt && bdt && adt === bdt && typeof adt === 'string') {\n var dt = adt; // find signatures that matches (dt, dt)\n\n add = typed.find(addScalar, [dt, dt]);\n mul = typed.find(multiplyScalar, [dt, dt]);\n } // both vectors 1-dimensional\n\n\n if (!aIsColumn && !bIsColumn) {\n var c = mul(conj(adata[0]), bdata[0]);\n\n for (var i = 1; i < N; i++) {\n c = add(c, mul(conj(adata[i]), bdata[i]));\n }\n\n return c;\n } // a is 1-dim, b is column\n\n\n if (!aIsColumn && bIsColumn) {\n var _c = mul(conj(adata[0]), bdata[0][0]);\n\n for (var _i = 1; _i < N; _i++) {\n _c = add(_c, mul(conj(adata[_i]), bdata[_i][0]));\n }\n\n return _c;\n } // a is column, b is 1-dim\n\n\n if (aIsColumn && !bIsColumn) {\n var _c2 = mul(conj(adata[0][0]), bdata[0]);\n\n for (var _i2 = 1; _i2 < N; _i2++) {\n _c2 = add(_c2, mul(conj(adata[_i2][0]), bdata[_i2]));\n }\n\n return _c2;\n } // both vectors are column\n\n\n if (aIsColumn && bIsColumn) {\n var _c3 = mul(conj(adata[0][0]), bdata[0][0]);\n\n for (var _i3 = 1; _i3 < N; _i3++) {\n _c3 = add(_c3, mul(conj(adata[_i3][0]), bdata[_i3][0]));\n }\n\n return _c3;\n }\n }\n\n function _sparseDot(x, y) {\n _validateDim(x, y);\n\n var xindex = x._index;\n var xvalues = x._values;\n var yindex = y._index;\n var yvalues = y._values; // TODO optimize add & mul using datatype\n\n var c = 0;\n var add = addScalar;\n var mul = multiplyScalar;\n var i = 0;\n var j = 0;\n\n while (i < xindex.length && j < yindex.length) {\n var I = xindex[i];\n var J = yindex[j];\n\n if (I < J) {\n i++;\n continue;\n }\n\n if (I > J) {\n j++;\n continue;\n }\n\n if (I === J) {\n c = add(c, mul(xvalues[i], yvalues[j]));\n i++;\n j++;\n }\n }\n\n return c;\n } // TODO remove this once #1771 is fixed\n\n\n function _size(x) {\n return (0, _is.isMatrix)(x) ? x.size() : size(x);\n }\n});\nexports.createDot = createDot;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createTrace = void 0;\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'trace';\nvar dependencies = ['typed', 'matrix', 'add'];\nvar createTrace = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n add = _ref.add;\n\n /**\n * Calculate the trace of a matrix: the sum of the elements on the main\n * diagonal of a square matrix.\n *\n * Syntax:\n *\n * math.trace(x)\n *\n * Examples:\n *\n * math.trace([[1, 2], [3, 4]]) // returns 5\n *\n * const A = [\n * [1, 2, 3],\n * [-1, 2, 3],\n * [2, 0, 3]\n * ]\n * math.trace(A) // returns 6\n *\n * See also:\n *\n * diag\n *\n * @param {Array | Matrix} x A matrix\n *\n * @return {number} The trace of `x`\n */\n return typed('trace', {\n Array: function _arrayTrace(x) {\n // use dense matrix implementation\n return _denseTrace(matrix(x));\n },\n SparseMatrix: _sparseTrace,\n DenseMatrix: _denseTrace,\n any: _object.clone\n });\n\n function _denseTrace(m) {\n // matrix size & data\n var size = m._size;\n var data = m._data; // process dimensions\n\n switch (size.length) {\n case 1:\n // vector\n if (size[0] === 1) {\n // return data[0]\n return (0, _object.clone)(data[0]);\n }\n\n throw new RangeError('Matrix must be square (size: ' + (0, _string.format)(size) + ')');\n\n case 2:\n {\n // two dimensional\n var rows = size[0];\n var cols = size[1];\n\n if (rows === cols) {\n // calulate sum\n var sum = 0; // loop diagonal\n\n for (var i = 0; i < rows; i++) {\n sum = add(sum, data[i][i]);\n } // return trace\n\n\n return sum;\n } else {\n throw new RangeError('Matrix must be square (size: ' + (0, _string.format)(size) + ')');\n }\n }\n\n default:\n // multi dimensional\n throw new RangeError('Matrix must be two dimensional (size: ' + (0, _string.format)(size) + ')');\n }\n }\n\n function _sparseTrace(m) {\n // matrix arrays\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr;\n var size = m._size; // check dimensions\n\n var rows = size[0];\n var columns = size[1]; // matrix must be square\n\n if (rows === columns) {\n // calulate sum\n var sum = 0; // check we have data (avoid looping columns)\n\n if (values.length > 0) {\n // loop columns\n for (var j = 0; j < columns; j++) {\n // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n var k0 = ptr[j];\n var k1 = ptr[j + 1]; // loop k within [k0, k1[\n\n for (var k = k0; k < k1; k++) {\n // row index\n var i = index[k]; // check row\n\n if (i === j) {\n // accumulate value\n sum = add(sum, values[k]); // exit loop\n\n break;\n }\n\n if (i > j) {\n // exit loop, no value on the diagonal for column j\n break;\n }\n }\n }\n } // return trace\n\n\n return sum;\n }\n\n throw new RangeError('Matrix must be square (size: ' + (0, _string.format)(size) + ')');\n }\n});\nexports.createTrace = createTrace;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIndex = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _is = require(\"../../../utils/is.js\");\n\nvar name = 'index';\nvar dependencies = ['typed', 'Index'];\nvar createIndex = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Index = _ref.Index;\n\n /**\n * Create an index. An Index can store ranges having start, step, and end\n * for multiple dimensions.\n * Matrix.get, Matrix.set, and math.subset accept an Index as input.\n *\n * Syntax:\n *\n * math.index(range1, range2, ...)\n *\n * Where each range can be any of:\n *\n * - A number\n * - A string for getting/setting an object property\n * - An instance of `Range`\n * - A one-dimensional Array or a Matrix with numbers\n *\n * Indexes must be zero-based, integer numbers.\n *\n * Examples:\n *\n * const b = [1, 2, 3, 4, 5]\n * math.subset(b, math.index([1, 2, 3])) // returns [2, 3, 4]\n *\n * const a = math.matrix([[1, 2], [3, 4]])\n * a.subset(math.index(0, 1)) // returns 2\n *\n * See also:\n *\n * bignumber, boolean, complex, matrix, number, string, unit\n *\n * @param {...*} ranges Zero or more ranges or numbers.\n * @return {Index} Returns the created index\n */\n return typed(name, {\n '...number | string | BigNumber | Range | Array | Matrix': function numberStringBigNumberRangeArrayMatrix(args) {\n var ranges = args.map(function (arg) {\n if ((0, _is.isBigNumber)(arg)) {\n return arg.toNumber(); // convert BigNumber to Number\n } else if (Array.isArray(arg) || (0, _is.isMatrix)(arg)) {\n return arg.map(function (elem) {\n // convert BigNumber to Number\n return (0, _is.isBigNumber)(elem) ? elem.toNumber() : elem;\n });\n } else {\n return arg;\n }\n });\n var res = new Index();\n Index.apply(res, ranges);\n return res;\n }\n });\n});\nexports.createIndex = createIndex;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.keywords = void 0;\n// Reserved keywords not allowed to use in the parser\nvar keywords = new Set(['end']);\nexports.keywords = keywords;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createNode = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _keywords = require(\"../keywords.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _map = require(\"../../utils/map.js\");\n\nvar name = 'Node';\nvar dependencies = ['mathWithTransform'];\nvar createNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var mathWithTransform = _ref.mathWithTransform;\n\n /**\n * Node\n */\n function Node() {\n if (!(this instanceof Node)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n }\n /**\n * Evaluate the node\n * @param {Object} [scope] Scope to read/write variables\n * @return {*} Returns the result\n */\n\n\n Node.prototype.evaluate = function (scope) {\n return this.compile().evaluate(scope);\n };\n\n Node.prototype.type = 'Node';\n Node.prototype.isNode = true;\n Node.prototype.comment = '';\n /**\n * Compile the node into an optimized, evauatable JavaScript function\n * @return {{evaluate: function([Object])}} object\n * Returns an object with a function 'evaluate',\n * which can be invoked as expr.evaluate([scope: Object]),\n * where scope is an optional object with\n * variables.\n */\n\n Node.prototype.compile = function () {\n var expr = this._compile(mathWithTransform, {});\n\n var args = {};\n var context = null;\n\n function evaluate(scope) {\n var s = (0, _map.createMap)(scope);\n\n _validateScope(s);\n\n return expr(s, args, context);\n }\n\n return {\n evaluate: evaluate\n };\n };\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n\n Node.prototype._compile = function (math, argNames) {\n throw new Error('Method _compile should be implemented by type ' + this.type);\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n Node.prototype.forEach = function (callback) {\n // must be implemented by each of the Node implementations\n throw new Error('Cannot run forEach on a Node interface');\n };\n /**\n * Create a new Node having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {OperatorNode} Returns a transformed copy of the node\n */\n\n\n Node.prototype.map = function (callback) {\n // must be implemented by each of the Node implementations\n throw new Error('Cannot run map on a Node interface');\n };\n /**\n * Validate whether an object is a Node, for use with map\n * @param {Node} node\n * @returns {Node} Returns the input if it's a node, else throws an Error\n * @protected\n */\n\n\n Node.prototype._ifNode = function (node) {\n if (!(0, _is.isNode)(node)) {\n throw new TypeError('Callback function must return a Node');\n }\n\n return node;\n };\n /**\n * Recursively traverse all nodes in a node tree. Executes given callback for\n * this node and each of its child nodes.\n * @param {function(node: Node, path: string, parent: Node)} callback\n * A callback called for every node in the node tree.\n */\n\n\n Node.prototype.traverse = function (callback) {\n // execute callback for itself\n // eslint-disable-next-line\n callback(this, null, null); // recursively traverse over all childs of a node\n\n function _traverse(node, callback) {\n node.forEach(function (child, path, parent) {\n callback(child, path, parent);\n\n _traverse(child, callback);\n });\n }\n\n _traverse(this, callback);\n };\n /**\n * Recursively transform a node tree via a transform function.\n *\n * For example, to replace all nodes of type SymbolNode having name 'x' with a\n * ConstantNode with value 2:\n *\n * const res = Node.transform(function (node, path, parent) {\n * if (node && node.isSymbolNode) && (node.name === 'x')) {\n * return new ConstantNode(2)\n * }\n * else {\n * return node\n * }\n * })\n *\n * @param {function(node: Node, path: string, parent: Node) : Node} callback\n * A mapping function accepting a node, and returning\n * a replacement for the node or the original node.\n * Signature: callback(node: Node, index: string, parent: Node) : Node\n * @return {Node} Returns the original node or its replacement\n */\n\n\n Node.prototype.transform = function (callback) {\n function _transform(child, path, parent) {\n var replacement = callback(child, path, parent);\n\n if (replacement !== child) {\n // stop iterating when the node is replaced\n return replacement;\n }\n\n return child.map(_transform);\n }\n\n return _transform(this, null, null);\n };\n /**\n * Find any node in the node tree matching given filter function. For example, to\n * find all nodes of type SymbolNode having name 'x':\n *\n * const results = Node.filter(function (node) {\n * return (node && node.isSymbolNode) && (node.name === 'x')\n * })\n *\n * @param {function(node: Node, path: string, parent: Node) : Node} callback\n * A test function returning true when a node matches, and false\n * otherwise. Function signature:\n * callback(node: Node, index: string, parent: Node) : boolean\n * @return {Node[]} nodes An array with nodes matching given filter criteria\n */\n\n\n Node.prototype.filter = function (callback) {\n var nodes = [];\n this.traverse(function (node, path, parent) {\n if (callback(node, path, parent)) {\n nodes.push(node);\n }\n });\n return nodes;\n };\n /**\n * Create a shallow clone of this node\n * @return {Node}\n */\n\n\n Node.prototype.clone = function () {\n // must be implemented by each of the Node implementations\n throw new Error('Cannot clone a Node interface');\n };\n /**\n * Create a deep clone of this node\n * @return {Node}\n */\n\n\n Node.prototype.cloneDeep = function () {\n return this.map(function (node) {\n return node.cloneDeep();\n });\n };\n /**\n * Deep compare this node with another node.\n * @param {Node} other\n * @return {boolean} Returns true when both nodes are of the same type and\n * contain the same values (as do their childs)\n */\n\n\n Node.prototype.equals = function (other) {\n return other ? (0, _object.deepStrictEqual)(this, other) : false;\n };\n /**\n * Get string representation. (wrapper function)\n *\n * This function can get an object of the following form:\n * {\n * handler: //This can be a callback function of the form\n * // \"function callback(node, options)\"or\n * // a map that maps function names (used in FunctionNodes)\n * // to callbacks\n * parenthesis: \"keep\" //the parenthesis option (This is optional)\n * }\n *\n * @param {Object} [options]\n * @return {string}\n */\n\n\n Node.prototype.toString = function (options) {\n var customString = this._getCustomString(options);\n\n if (typeof customString !== 'undefined') {\n return customString;\n }\n\n return this._toString(options);\n };\n /**\n * Get a JSON representation of the node\n * Both .toJSON() and the static .fromJSON(json) should be implemented by all\n * implementations of Node\n * @returns {Object}\n */\n\n\n Node.prototype.toJSON = function () {\n throw new Error('Cannot serialize object: toJSON not implemented by ' + this.type);\n };\n /**\n * Get HTML representation. (wrapper function)\n *\n * This function can get an object of the following form:\n * {\n * handler: //This can be a callback function of the form\n * // \"function callback(node, options)\" or\n * // a map that maps function names (used in FunctionNodes)\n * // to callbacks\n * parenthesis: \"keep\" //the parenthesis option (This is optional)\n * }\n *\n * @param {Object} [options]\n * @return {string}\n */\n\n\n Node.prototype.toHTML = function (options) {\n var customString = this._getCustomString(options);\n\n if (typeof customString !== 'undefined') {\n return customString;\n }\n\n return this.toHTML(options);\n };\n /**\n * Internal function to generate the string output.\n * This has to be implemented by every Node\n *\n * @throws {Error}\n */\n\n\n Node.prototype._toString = function () {\n // must be implemented by each of the Node implementations\n throw new Error('_toString not implemented for ' + this.type);\n };\n /**\n * Get LaTeX representation. (wrapper function)\n *\n * This function can get an object of the following form:\n * {\n * handler: //This can be a callback function of the form\n * // \"function callback(node, options)\"or\n * // a map that maps function names (used in FunctionNodes)\n * // to callbacks\n * parenthesis: \"keep\" //the parenthesis option (This is optional)\n * }\n *\n * @param {Object} [options]\n * @return {string}\n */\n\n\n Node.prototype.toTex = function (options) {\n var customString = this._getCustomString(options);\n\n if (typeof customString !== 'undefined') {\n return customString;\n }\n\n return this._toTex(options);\n };\n /**\n * Internal function to generate the LaTeX output.\n * This has to be implemented by every Node\n *\n * @param {Object} [options]\n * @throws {Error}\n */\n\n\n Node.prototype._toTex = function (options) {\n // must be implemented by each of the Node implementations\n throw new Error('_toTex not implemented for ' + this.type);\n };\n /**\n * Helper used by `to...` functions.\n */\n\n\n Node.prototype._getCustomString = function (options) {\n if (options && (0, _typeof2.default)(options) === 'object') {\n switch ((0, _typeof2.default)(options.handler)) {\n case 'object':\n case 'undefined':\n return;\n\n case 'function':\n return options.handler(this, options);\n\n default:\n throw new TypeError('Object or function expected as callback');\n }\n }\n };\n /**\n * Get identifier.\n * @return {string}\n */\n\n\n Node.prototype.getIdentifier = function () {\n return this.type;\n };\n /**\n * Get the content of the current Node.\n * @return {Node} node\n **/\n\n\n Node.prototype.getContent = function () {\n return this;\n };\n /**\n * Validate the symbol names of a scope.\n * Throws an error when the scope contains an illegal symbol.\n * @param {Object} scope\n */\n\n\n function _validateScope(scope) {\n for (var _i = 0, _arr = (0, _toConsumableArray2.default)(_keywords.keywords); _i < _arr.length; _i++) {\n var symbol = _arr[_i];\n\n if (scope.has(symbol)) {\n throw new Error('Scope contains an illegal symbol, \"' + symbol + '\" is a reserved keyword');\n }\n }\n }\n\n return Node;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createNode = createNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.errorTransform = errorTransform;\n\nvar _IndexError = require(\"../../../error/IndexError.js\");\n\n/**\n * Transform zero-based indices to one-based indices in errors\n * @param {Error} err\n * @returns {Error | IndexError} Returns the transformed error\n */\nfunction errorTransform(err) {\n if (err && err.isIndexError) {\n return new _IndexError.IndexError(err.index + 1, err.min + 1, err.max !== undefined ? err.max + 1 : undefined);\n }\n\n return err;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.accessFactory = accessFactory;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _errorTransform = require(\"../../transform/utils/errorTransform.js\");\n\nvar _customs = require(\"../../../utils/customs.js\");\n\nfunction accessFactory(_ref) {\n var subset = _ref.subset;\n\n /**\n * Retrieve part of an object:\n *\n * - Retrieve a property from an object\n * - Retrieve a part of a string\n * - Retrieve a matrix subset\n *\n * @param {Object | Array | Matrix | string} object\n * @param {Index} index\n * @return {Object | Array | Matrix | string} Returns the subset\n */\n return function access(object, index) {\n try {\n if (Array.isArray(object)) {\n return subset(object, index);\n } else if (object && typeof object.subset === 'function') {\n // Matrix\n return object.subset(index);\n } else if (typeof object === 'string') {\n // TODO: move getStringSubset into a separate util file, use that\n return subset(object, index);\n } else if ((0, _typeof2.default)(object) === 'object') {\n if (!index.isObjectProperty()) {\n throw new TypeError('Cannot apply a numeric index as object property');\n }\n\n return (0, _customs.getSafeProperty)(object, index.getObjectProperty());\n } else {\n throw new TypeError('Cannot apply index: unsupported type of object');\n }\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAccessorNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _access = require(\"./utils/access.js\");\n\nvar name = 'AccessorNode';\nvar dependencies = ['subset', 'Node'];\nvar createAccessorNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var subset = _ref.subset,\n Node = _ref.Node;\n var access = (0, _access.accessFactory)({\n subset: subset\n });\n /**\n * @constructor AccessorNode\n * @extends {Node}\n * Access an object property or get a matrix subset\n *\n * @param {Node} object The object from which to retrieve\n * a property or subset.\n * @param {IndexNode} index IndexNode containing ranges\n */\n\n function AccessorNode(object, index) {\n if (!(this instanceof AccessorNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (!(0, _is.isNode)(object)) {\n throw new TypeError('Node expected for parameter \"object\"');\n }\n\n if (!(0, _is.isIndexNode)(index)) {\n throw new TypeError('IndexNode expected for parameter \"index\"');\n }\n\n this.object = object || null;\n this.index = index; // readonly property name\n\n Object.defineProperty(this, 'name', {\n get: function () {\n if (this.index) {\n return this.index.isObjectProperty() ? this.index.getObjectProperty() : '';\n } else {\n return this.object.name || '';\n }\n }.bind(this),\n set: function set() {\n throw new Error('Cannot assign a new name, name is read-only');\n }\n });\n }\n\n AccessorNode.prototype = new Node();\n AccessorNode.prototype.type = 'AccessorNode';\n AccessorNode.prototype.isAccessorNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n AccessorNode.prototype._compile = function (math, argNames) {\n var evalObject = this.object._compile(math, argNames);\n\n var evalIndex = this.index._compile(math, argNames);\n\n if (this.index.isObjectProperty()) {\n var prop = this.index.getObjectProperty();\n return function evalAccessorNode(scope, args, context) {\n // get a property from an object evaluated using the scope.\n return (0, _customs.getSafeProperty)(evalObject(scope, args, context), prop);\n };\n } else {\n return function evalAccessorNode(scope, args, context) {\n var object = evalObject(scope, args, context);\n var index = evalIndex(scope, args, object); // we pass object here instead of context\n\n return access(object, index);\n };\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n AccessorNode.prototype.forEach = function (callback) {\n callback(this.object, 'object', this);\n callback(this.index, 'index', this);\n };\n /**\n * Create a new AccessorNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {AccessorNode} Returns a transformed copy of the node\n */\n\n\n AccessorNode.prototype.map = function (callback) {\n return new AccessorNode(this._ifNode(callback(this.object, 'object', this)), this._ifNode(callback(this.index, 'index', this)));\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {AccessorNode}\n */\n\n\n AccessorNode.prototype.clone = function () {\n return new AccessorNode(this.object, this.index);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string}\n */\n\n\n AccessorNode.prototype._toString = function (options) {\n var object = this.object.toString(options);\n\n if (needParenthesis(this.object)) {\n object = '(' + object + ')';\n }\n\n return object + this.index.toString(options);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string}\n */\n\n\n AccessorNode.prototype.toHTML = function (options) {\n var object = this.object.toHTML(options);\n\n if (needParenthesis(this.object)) {\n object = '(' + object + ')';\n }\n\n return object + this.index.toHTML(options);\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string}\n */\n\n\n AccessorNode.prototype._toTex = function (options) {\n var object = this.object.toTex(options);\n\n if (needParenthesis(this.object)) {\n object = '\\\\left(\\' + object + \\'\\\\right)';\n }\n\n return object + this.index.toTex(options);\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n AccessorNode.prototype.toJSON = function () {\n return {\n mathjs: 'AccessorNode',\n object: this.object,\n index: this.index\n };\n };\n /**\n * Instantiate an AccessorNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"AccessorNode\", object: ..., index: ...}`,\n * where mathjs is optional\n * @returns {AccessorNode}\n */\n\n\n AccessorNode.fromJSON = function (json) {\n return new AccessorNode(json.object, json.index);\n };\n /**\n * Are parenthesis needed?\n * @private\n */\n\n\n function needParenthesis(node) {\n // TODO: maybe make a method on the nodes which tells whether they need parenthesis?\n return !((0, _is.isAccessorNode)(node) || (0, _is.isArrayNode)(node) || (0, _is.isConstantNode)(node) || (0, _is.isFunctionNode)(node) || (0, _is.isObjectNode)(node) || (0, _is.isParenthesisNode)(node) || (0, _is.isSymbolNode)(node));\n }\n\n return AccessorNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createAccessorNode = createAccessorNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createArrayNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ArrayNode';\nvar dependencies = ['Node'];\nvar createArrayNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * @constructor ArrayNode\n * @extends {Node}\n * Holds an 1-dimensional array with items\n * @param {Node[]} [items] 1 dimensional array with items\n */\n function ArrayNode(items) {\n if (!(this instanceof ArrayNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.items = items || []; // validate input\n\n if (!Array.isArray(this.items) || !this.items.every(_is.isNode)) {\n throw new TypeError('Array containing Nodes expected');\n }\n }\n\n ArrayNode.prototype = new Node();\n ArrayNode.prototype.type = 'ArrayNode';\n ArrayNode.prototype.isArrayNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n ArrayNode.prototype._compile = function (math, argNames) {\n var evalItems = (0, _array.map)(this.items, function (item) {\n return item._compile(math, argNames);\n });\n var asMatrix = math.config.matrix !== 'Array';\n\n if (asMatrix) {\n var matrix = math.matrix;\n return function evalArrayNode(scope, args, context) {\n return matrix((0, _array.map)(evalItems, function (evalItem) {\n return evalItem(scope, args, context);\n }));\n };\n } else {\n return function evalArrayNode(scope, args, context) {\n return (0, _array.map)(evalItems, function (evalItem) {\n return evalItem(scope, args, context);\n });\n };\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n ArrayNode.prototype.forEach = function (callback) {\n for (var i = 0; i < this.items.length; i++) {\n var node = this.items[i];\n callback(node, 'items[' + i + ']', this);\n }\n };\n /**\n * Create a new ArrayNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {ArrayNode} Returns a transformed copy of the node\n */\n\n\n ArrayNode.prototype.map = function (callback) {\n var items = [];\n\n for (var i = 0; i < this.items.length; i++) {\n items[i] = this._ifNode(callback(this.items[i], 'items[' + i + ']', this));\n }\n\n return new ArrayNode(items);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {ArrayNode}\n */\n\n\n ArrayNode.prototype.clone = function () {\n return new ArrayNode(this.items.slice(0));\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ArrayNode.prototype._toString = function (options) {\n var items = this.items.map(function (node) {\n return node.toString(options);\n });\n return '[' + items.join(', ') + ']';\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n ArrayNode.prototype.toJSON = function () {\n return {\n mathjs: 'ArrayNode',\n items: this.items\n };\n };\n /**\n * Instantiate an ArrayNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"ArrayNode\", items: [...]}`,\n * where mathjs is optional\n * @returns {ArrayNode}\n */\n\n\n ArrayNode.fromJSON = function (json) {\n return new ArrayNode(json.items);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ArrayNode.prototype.toHTML = function (options) {\n var items = this.items.map(function (node) {\n return node.toHTML(options);\n });\n return '[' + items.join(',') + ']';\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ArrayNode.prototype._toTex = function (options) {\n function itemsToTex(items, nested) {\n var mixedItems = items.some(_is.isArrayNode) && !items.every(_is.isArrayNode);\n var itemsFormRow = nested || mixedItems;\n var itemSep = itemsFormRow ? '&' : '\\\\\\\\';\n var itemsTex = items.map(function (node) {\n if (node.items) {\n return itemsToTex(node.items, !nested);\n } else {\n return node.toTex(options);\n }\n }).join(itemSep);\n return mixedItems || !itemsFormRow || itemsFormRow && !nested ? '\\\\begin{bmatrix}' + itemsTex + '\\\\end{bmatrix}' : itemsTex;\n }\n\n return itemsToTex(this.items, false);\n };\n\n return ArrayNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createArrayNode = createArrayNode;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.assignFactory = assignFactory;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _errorTransform = require(\"../../transform/utils/errorTransform.js\");\n\nvar _customs = require(\"../../../utils/customs.js\");\n\nfunction assignFactory(_ref) {\n var subset = _ref.subset,\n matrix = _ref.matrix;\n\n /**\n * Replace part of an object:\n *\n * - Assign a property to an object\n * - Replace a part of a string\n * - Replace a matrix subset\n *\n * @param {Object | Array | Matrix | string} object\n * @param {Index} index\n * @param {*} value\n * @return {Object | Array | Matrix | string} Returns the original object\n * except in case of a string\n */\n // TODO: change assign to return the value instead of the object\n return function assign(object, index, value) {\n try {\n if (Array.isArray(object)) {\n // we use matrix.subset here instead of the function subset because we must not clone the contents\n return matrix(object).subset(index, value).valueOf();\n } else if (object && typeof object.subset === 'function') {\n // Matrix\n return object.subset(index, value);\n } else if (typeof object === 'string') {\n // TODO: move setStringSubset into a separate util file, use that\n return subset(object, index, value);\n } else if ((0, _typeof2.default)(object) === 'object') {\n if (!index.isObjectProperty()) {\n throw TypeError('Cannot apply a numeric index as object property');\n }\n\n (0, _customs.setSafeProperty)(object, index.getObjectProperty(), value);\n return object;\n } else {\n throw new TypeError('Cannot apply index: unsupported type of object');\n }\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getAssociativity = getAssociativity;\nexports.getPrecedence = getPrecedence;\nexports.isAssociativeWith = isAssociativeWith;\nexports.properties = void 0;\n\nvar _object = require(\"../utils/object.js\");\n\n// list of identifiers of nodes in order of their precedence\n// also contains information about left/right associativity\n// and which other operator the operator is associative with\n// Example:\n// addition is associative with addition and subtraction, because:\n// (a+b)+c=a+(b+c)\n// (a+b)-c=a+(b-c)\n//\n// postfix operators are left associative, prefix operators\n// are right associative\n//\n// It's also possible to set the following properties:\n// latexParens: if set to false, this node doesn't need to be enclosed\n// in parentheses when using LaTeX\n// latexLeftParens: if set to false, this !OperatorNode's!\n// left argument doesn't need to be enclosed\n// in parentheses\n// latexRightParens: the same for the right argument\nvar properties = [{\n // assignment\n AssignmentNode: {},\n FunctionAssignmentNode: {}\n}, {\n // conditional expression\n ConditionalNode: {\n latexLeftParens: false,\n latexRightParens: false,\n latexParens: false // conditionals don't need parentheses in LaTeX because\n // they are 2 dimensional\n\n }\n}, {\n // logical or\n 'OperatorNode:or': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // logical xor\n 'OperatorNode:xor': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // logical and\n 'OperatorNode:and': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // bitwise or\n 'OperatorNode:bitOr': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // bitwise xor\n 'OperatorNode:bitXor': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // bitwise and\n 'OperatorNode:bitAnd': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // relational operators\n 'OperatorNode:equal': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:unequal': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:smaller': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:larger': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:smallerEq': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:largerEq': {\n associativity: 'left',\n associativeWith: []\n },\n RelationalNode: {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // bitshift operators\n 'OperatorNode:leftShift': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:rightArithShift': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:rightLogShift': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // unit conversion\n 'OperatorNode:to': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // range\n RangeNode: {}\n}, {\n // addition, subtraction\n 'OperatorNode:add': {\n associativity: 'left',\n associativeWith: ['OperatorNode:add', 'OperatorNode:subtract']\n },\n 'OperatorNode:subtract': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // multiply, divide, modulus\n 'OperatorNode:multiply': {\n associativity: 'left',\n associativeWith: ['OperatorNode:multiply', 'OperatorNode:divide', 'Operator:dotMultiply', 'Operator:dotDivide']\n },\n 'OperatorNode:divide': {\n associativity: 'left',\n associativeWith: [],\n latexLeftParens: false,\n latexRightParens: false,\n latexParens: false // fractions don't require parentheses because\n // they're 2 dimensional, so parens aren't needed\n // in LaTeX\n\n },\n 'OperatorNode:dotMultiply': {\n associativity: 'left',\n associativeWith: ['OperatorNode:multiply', 'OperatorNode:divide', 'OperatorNode:dotMultiply', 'OperatorNode:doDivide']\n },\n 'OperatorNode:dotDivide': {\n associativity: 'left',\n associativeWith: []\n },\n 'OperatorNode:mod': {\n associativity: 'left',\n associativeWith: []\n }\n}, {\n // unary prefix operators\n 'OperatorNode:unaryPlus': {\n associativity: 'right'\n },\n 'OperatorNode:unaryMinus': {\n associativity: 'right'\n },\n 'OperatorNode:bitNot': {\n associativity: 'right'\n },\n 'OperatorNode:not': {\n associativity: 'right'\n }\n}, {\n // exponentiation\n 'OperatorNode:pow': {\n associativity: 'right',\n associativeWith: [],\n latexRightParens: false // the exponent doesn't need parentheses in\n // LaTeX because it's 2 dimensional\n // (it's on top)\n\n },\n 'OperatorNode:dotPow': {\n associativity: 'right',\n associativeWith: []\n }\n}, {\n // factorial\n 'OperatorNode:factorial': {\n associativity: 'left'\n }\n}, {\n // matrix transpose\n 'OperatorNode:transpose': {\n associativity: 'left'\n }\n}];\n/**\n * Get the precedence of a Node.\n * Higher number for higher precedence, starting with 0.\n * Returns null if the precedence is undefined.\n *\n * @param {Node} _node\n * @param {string} parenthesis\n * @return {number | null}\n */\n\nexports.properties = properties;\n\nfunction getPrecedence(_node, parenthesis) {\n var node = _node;\n\n if (parenthesis !== 'keep') {\n // ParenthesisNodes are only ignored when not in 'keep' mode\n node = _node.getContent();\n }\n\n var identifier = node.getIdentifier();\n\n for (var i = 0; i < properties.length; i++) {\n if (identifier in properties[i]) {\n return i;\n }\n }\n\n return null;\n}\n/**\n * Get the associativity of an operator (left or right).\n * Returns a string containing 'left' or 'right' or null if\n * the associativity is not defined.\n *\n * @param {Node} _node\n * @param {string} parenthesis\n * @return {string|null}\n * @throws {Error}\n */\n\n\nfunction getAssociativity(_node, parenthesis) {\n var node = _node;\n\n if (parenthesis !== 'keep') {\n // ParenthesisNodes are only ignored when not in 'keep' mode\n node = _node.getContent();\n }\n\n var identifier = node.getIdentifier();\n var index = getPrecedence(node, parenthesis);\n\n if (index === null) {\n // node isn't in the list\n return null;\n }\n\n var property = properties[index][identifier];\n\n if ((0, _object.hasOwnProperty)(property, 'associativity')) {\n if (property.associativity === 'left') {\n return 'left';\n }\n\n if (property.associativity === 'right') {\n return 'right';\n } // associativity is invalid\n\n\n throw Error('\\'' + identifier + '\\' has the invalid associativity \\'' + property.associativity + '\\'.');\n } // associativity is undefined\n\n\n return null;\n}\n/**\n * Check if an operator is associative with another operator.\n * Returns either true or false or null if not defined.\n *\n * @param {Node} nodeA\n * @param {Node} nodeB\n * @param {string} parenthesis\n * @return {boolean | null}\n */\n\n\nfunction isAssociativeWith(nodeA, nodeB, parenthesis) {\n // ParenthesisNodes are only ignored when not in 'keep' mode\n var a = parenthesis !== 'keep' ? nodeA.getContent() : nodeA;\n var b = parenthesis !== 'keep' ? nodeA.getContent() : nodeB;\n var identifierA = a.getIdentifier();\n var identifierB = b.getIdentifier();\n var index = getPrecedence(a, parenthesis);\n\n if (index === null) {\n // node isn't in the list\n return null;\n }\n\n var property = properties[index][identifierA];\n\n if ((0, _object.hasOwnProperty)(property, 'associativeWith') && property.associativeWith instanceof Array) {\n for (var i = 0; i < property.associativeWith.length; i++) {\n if (property.associativeWith[i] === identifierB) {\n return true;\n }\n }\n\n return false;\n } // associativeWith is not defined\n\n\n return null;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createAssignmentNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _access = require(\"./utils/access.js\");\n\nvar _assign = require(\"./utils/assign.js\");\n\nvar _operators = require(\"../operators.js\");\n\nvar name = 'AssignmentNode';\nvar dependencies = ['subset', '?matrix', // FIXME: should not be needed at all, should be handled by subset\n'Node'];\nvar createAssignmentNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var subset = _ref.subset,\n matrix = _ref.matrix,\n Node = _ref.Node;\n var access = (0, _access.accessFactory)({\n subset: subset\n });\n var assign = (0, _assign.assignFactory)({\n subset: subset,\n matrix: matrix\n });\n /**\n * @constructor AssignmentNode\n * @extends {Node}\n *\n * Define a symbol, like `a=3.2`, update a property like `a.b=3.2`, or\n * replace a subset of a matrix like `A[2,2]=42`.\n *\n * Syntax:\n *\n * new AssignmentNode(symbol, value)\n * new AssignmentNode(object, index, value)\n *\n * Usage:\n *\n * new AssignmentNode(new SymbolNode('a'), new ConstantNode(2)) // a=2\n * new AssignmentNode(new SymbolNode('a'), new IndexNode('b'), new ConstantNode(2)) // a.b=2\n * new AssignmentNode(new SymbolNode('a'), new IndexNode(1, 2), new ConstantNode(3)) // a[1,2]=3\n *\n * @param {SymbolNode | AccessorNode} object Object on which to assign a value\n * @param {IndexNode} [index=null] Index, property name or matrix\n * index. Optional. If not provided\n * and `object` is a SymbolNode,\n * the property is assigned to the\n * global scope.\n * @param {Node} value The value to be assigned\n */\n\n function AssignmentNode(object, index, value) {\n if (!(this instanceof AssignmentNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.object = object;\n this.index = value ? index : null;\n this.value = value || index; // validate input\n\n if (!(0, _is.isSymbolNode)(object) && !(0, _is.isAccessorNode)(object)) {\n throw new TypeError('SymbolNode or AccessorNode expected as \"object\"');\n }\n\n if ((0, _is.isSymbolNode)(object) && object.name === 'end') {\n throw new Error('Cannot assign to symbol \"end\"');\n }\n\n if (this.index && !(0, _is.isIndexNode)(this.index)) {\n // index is optional\n throw new TypeError('IndexNode expected as \"index\"');\n }\n\n if (!(0, _is.isNode)(this.value)) {\n throw new TypeError('Node expected as \"value\"');\n } // readonly property name\n\n\n Object.defineProperty(this, 'name', {\n get: function () {\n if (this.index) {\n return this.index.isObjectProperty() ? this.index.getObjectProperty() : '';\n } else {\n return this.object.name || '';\n }\n }.bind(this),\n set: function set() {\n throw new Error('Cannot assign a new name, name is read-only');\n }\n });\n }\n\n AssignmentNode.prototype = new Node();\n AssignmentNode.prototype.type = 'AssignmentNode';\n AssignmentNode.prototype.isAssignmentNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n AssignmentNode.prototype._compile = function (math, argNames) {\n var evalObject = this.object._compile(math, argNames);\n\n var evalIndex = this.index ? this.index._compile(math, argNames) : null;\n\n var evalValue = this.value._compile(math, argNames);\n\n var name = this.object.name;\n\n if (!this.index) {\n // apply a variable to the scope, for example `a=2`\n if (!(0, _is.isSymbolNode)(this.object)) {\n throw new TypeError('SymbolNode expected as object');\n }\n\n return function evalAssignmentNode(scope, args, context) {\n var value = evalValue(scope, args, context);\n scope.set(name, value);\n return value;\n };\n } else if (this.index.isObjectProperty()) {\n // apply an object property for example `a.b=2`\n var prop = this.index.getObjectProperty();\n return function evalAssignmentNode(scope, args, context) {\n var object = evalObject(scope, args, context);\n var value = evalValue(scope, args, context);\n (0, _customs.setSafeProperty)(object, prop, value);\n return value;\n };\n } else if ((0, _is.isSymbolNode)(this.object)) {\n // update a matrix subset, for example `a[2]=3`\n return function evalAssignmentNode(scope, args, context) {\n var childObject = evalObject(scope, args, context);\n var value = evalValue(scope, args, context);\n var index = evalIndex(scope, args, childObject); // Important: we pass childObject instead of context\n\n scope.set(name, assign(childObject, index, value));\n return value;\n };\n } else {\n // isAccessorNode(node.object) === true\n // update a matrix subset, for example `a.b[2]=3`\n // we will not use the compile function of the AccessorNode, but compile it\n // ourselves here as we need the parent object of the AccessorNode:\n // wee need to apply the updated object to parent object\n var evalParentObject = this.object.object._compile(math, argNames);\n\n if (this.object.index.isObjectProperty()) {\n var parentProp = this.object.index.getObjectProperty();\n return function evalAssignmentNode(scope, args, context) {\n var parent = evalParentObject(scope, args, context);\n var childObject = (0, _customs.getSafeProperty)(parent, parentProp);\n var index = evalIndex(scope, args, childObject); // Important: we pass childObject instead of context\n\n var value = evalValue(scope, args, context);\n (0, _customs.setSafeProperty)(parent, parentProp, assign(childObject, index, value));\n return value;\n };\n } else {\n // if some parameters use the 'end' parameter, we need to calculate the size\n var evalParentIndex = this.object.index._compile(math, argNames);\n\n return function evalAssignmentNode(scope, args, context) {\n var parent = evalParentObject(scope, args, context);\n var parentIndex = evalParentIndex(scope, args, parent); // Important: we pass parent instead of context\n\n var childObject = access(parent, parentIndex);\n var index = evalIndex(scope, args, childObject); // Important: we pass childObject instead of context\n\n var value = evalValue(scope, args, context);\n assign(parent, parentIndex, assign(childObject, index, value));\n return value;\n };\n }\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n AssignmentNode.prototype.forEach = function (callback) {\n callback(this.object, 'object', this);\n\n if (this.index) {\n callback(this.index, 'index', this);\n }\n\n callback(this.value, 'value', this);\n };\n /**\n * Create a new AssignmentNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {AssignmentNode} Returns a transformed copy of the node\n */\n\n\n AssignmentNode.prototype.map = function (callback) {\n var object = this._ifNode(callback(this.object, 'object', this));\n\n var index = this.index ? this._ifNode(callback(this.index, 'index', this)) : null;\n\n var value = this._ifNode(callback(this.value, 'value', this));\n\n return new AssignmentNode(object, index, value);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {AssignmentNode}\n */\n\n\n AssignmentNode.prototype.clone = function () {\n return new AssignmentNode(this.object, this.index, this.value);\n };\n /*\n * Is parenthesis needed?\n * @param {node} node\n * @param {string} [parenthesis='keep']\n * @private\n */\n\n\n function needParenthesis(node, parenthesis) {\n if (!parenthesis) {\n parenthesis = 'keep';\n }\n\n var precedence = (0, _operators.getPrecedence)(node, parenthesis);\n var exprPrecedence = (0, _operators.getPrecedence)(node.value, parenthesis);\n return parenthesis === 'all' || exprPrecedence !== null && exprPrecedence <= precedence;\n }\n /**\n * Get string representation\n * @param {Object} options\n * @return {string}\n */\n\n\n AssignmentNode.prototype._toString = function (options) {\n var object = this.object.toString(options);\n var index = this.index ? this.index.toString(options) : '';\n var value = this.value.toString(options);\n\n if (needParenthesis(this, options && options.parenthesis)) {\n value = '(' + value + ')';\n }\n\n return object + index + ' = ' + value;\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n AssignmentNode.prototype.toJSON = function () {\n return {\n mathjs: 'AssignmentNode',\n object: this.object,\n index: this.index,\n value: this.value\n };\n };\n /**\n * Instantiate an AssignmentNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"AssignmentNode\", object: ..., index: ..., value: ...}`,\n * where mathjs is optional\n * @returns {AssignmentNode}\n */\n\n\n AssignmentNode.fromJSON = function (json) {\n return new AssignmentNode(json.object, json.index, json.value);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string}\n */\n\n\n AssignmentNode.prototype.toHTML = function (options) {\n var object = this.object.toHTML(options);\n var index = this.index ? this.index.toHTML(options) : '';\n var value = this.value.toHTML(options);\n\n if (needParenthesis(this, options && options.parenthesis)) {\n value = '(' + value + ')';\n }\n\n return object + index + '=' + value;\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string}\n */\n\n\n AssignmentNode.prototype._toTex = function (options) {\n var object = this.object.toTex(options);\n var index = this.index ? this.index.toTex(options) : '';\n var value = this.value.toTex(options);\n\n if (needParenthesis(this, options && options.parenthesis)) {\n value = \"\\\\left(\".concat(value, \"\\\\right)\");\n }\n\n return object + index + ':=' + value;\n };\n\n return AssignmentNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createAssignmentNode = createAssignmentNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBlockNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'BlockNode';\nvar dependencies = ['ResultSet', 'Node'];\nvar createBlockNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var ResultSet = _ref.ResultSet,\n Node = _ref.Node;\n\n /**\n * @constructor BlockNode\n * @extends {Node}\n * Holds a set with blocks\n * @param {Array.<{node: Node} | {node: Node, visible: boolean}>} blocks\n * An array with blocks, where a block is constructed as an Object\n * with properties block, which is a Node, and visible, which is\n * a boolean. The property visible is optional and is true by default\n */\n function BlockNode(blocks) {\n if (!(this instanceof BlockNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // validate input, copy blocks\n\n\n if (!Array.isArray(blocks)) throw new Error('Array expected');\n this.blocks = blocks.map(function (block) {\n var node = block && block.node;\n var visible = block && block.visible !== undefined ? block.visible : true;\n if (!(0, _is.isNode)(node)) throw new TypeError('Property \"node\" must be a Node');\n if (typeof visible !== 'boolean') throw new TypeError('Property \"visible\" must be a boolean');\n return {\n node: node,\n visible: visible\n };\n });\n }\n\n BlockNode.prototype = new Node();\n BlockNode.prototype.type = 'BlockNode';\n BlockNode.prototype.isBlockNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n BlockNode.prototype._compile = function (math, argNames) {\n var evalBlocks = (0, _array.map)(this.blocks, function (block) {\n return {\n evaluate: block.node._compile(math, argNames),\n visible: block.visible\n };\n });\n return function evalBlockNodes(scope, args, context) {\n var results = [];\n (0, _array.forEach)(evalBlocks, function evalBlockNode(block) {\n var result = block.evaluate(scope, args, context);\n\n if (block.visible) {\n results.push(result);\n }\n });\n return new ResultSet(results);\n };\n };\n /**\n * Execute a callback for each of the child blocks of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n BlockNode.prototype.forEach = function (callback) {\n for (var i = 0; i < this.blocks.length; i++) {\n callback(this.blocks[i].node, 'blocks[' + i + '].node', this);\n }\n };\n /**\n * Create a new BlockNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {BlockNode} Returns a transformed copy of the node\n */\n\n\n BlockNode.prototype.map = function (callback) {\n var blocks = [];\n\n for (var i = 0; i < this.blocks.length; i++) {\n var block = this.blocks[i];\n\n var node = this._ifNode(callback(block.node, 'blocks[' + i + '].node', this));\n\n blocks[i] = {\n node: node,\n visible: block.visible\n };\n }\n\n return new BlockNode(blocks);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {BlockNode}\n */\n\n\n BlockNode.prototype.clone = function () {\n var blocks = this.blocks.map(function (block) {\n return {\n node: block.node,\n visible: block.visible\n };\n });\n return new BlockNode(blocks);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n BlockNode.prototype._toString = function (options) {\n return this.blocks.map(function (param) {\n return param.node.toString(options) + (param.visible ? '' : ';');\n }).join('\\n');\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n BlockNode.prototype.toJSON = function () {\n return {\n mathjs: 'BlockNode',\n blocks: this.blocks\n };\n };\n /**\n * Instantiate an BlockNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"BlockNode\", blocks: [{node: ..., visible: false}, ...]}`,\n * where mathjs is optional\n * @returns {BlockNode}\n */\n\n\n BlockNode.fromJSON = function (json) {\n return new BlockNode(json.blocks);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n BlockNode.prototype.toHTML = function (options) {\n return this.blocks.map(function (param) {\n return param.node.toHTML(options) + (param.visible ? '' : ';');\n }).join('
');\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n BlockNode.prototype._toTex = function (options) {\n return this.blocks.map(function (param) {\n return param.node.toTex(options) + (param.visible ? '' : ';');\n }).join('\\\\;\\\\;\\n');\n };\n\n return BlockNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createBlockNode = createBlockNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createConditionalNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _operators = require(\"../operators.js\");\n\nvar name = 'ConditionalNode';\nvar dependencies = ['Node'];\nvar createConditionalNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * A lazy evaluating conditional operator: 'condition ? trueExpr : falseExpr'\n *\n * @param {Node} condition Condition, must result in a boolean\n * @param {Node} trueExpr Expression evaluated when condition is true\n * @param {Node} falseExpr Expression evaluated when condition is true\n *\n * @constructor ConditionalNode\n * @extends {Node}\n */\n function ConditionalNode(condition, trueExpr, falseExpr) {\n if (!(this instanceof ConditionalNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (!(0, _is.isNode)(condition)) throw new TypeError('Parameter condition must be a Node');\n if (!(0, _is.isNode)(trueExpr)) throw new TypeError('Parameter trueExpr must be a Node');\n if (!(0, _is.isNode)(falseExpr)) throw new TypeError('Parameter falseExpr must be a Node');\n this.condition = condition;\n this.trueExpr = trueExpr;\n this.falseExpr = falseExpr;\n }\n\n ConditionalNode.prototype = new Node();\n ConditionalNode.prototype.type = 'ConditionalNode';\n ConditionalNode.prototype.isConditionalNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n ConditionalNode.prototype._compile = function (math, argNames) {\n var evalCondition = this.condition._compile(math, argNames);\n\n var evalTrueExpr = this.trueExpr._compile(math, argNames);\n\n var evalFalseExpr = this.falseExpr._compile(math, argNames);\n\n return function evalConditionalNode(scope, args, context) {\n return testCondition(evalCondition(scope, args, context)) ? evalTrueExpr(scope, args, context) : evalFalseExpr(scope, args, context);\n };\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n ConditionalNode.prototype.forEach = function (callback) {\n callback(this.condition, 'condition', this);\n callback(this.trueExpr, 'trueExpr', this);\n callback(this.falseExpr, 'falseExpr', this);\n };\n /**\n * Create a new ConditionalNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {ConditionalNode} Returns a transformed copy of the node\n */\n\n\n ConditionalNode.prototype.map = function (callback) {\n return new ConditionalNode(this._ifNode(callback(this.condition, 'condition', this)), this._ifNode(callback(this.trueExpr, 'trueExpr', this)), this._ifNode(callback(this.falseExpr, 'falseExpr', this)));\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {ConditionalNode}\n */\n\n\n ConditionalNode.prototype.clone = function () {\n return new ConditionalNode(this.condition, this.trueExpr, this.falseExpr);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ConditionalNode.prototype._toString = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var precedence = (0, _operators.getPrecedence)(this, parenthesis); // Enclose Arguments in parentheses if they are an OperatorNode\n // or have lower or equal precedence\n // NOTE: enclosing all OperatorNodes in parentheses is a decision\n // purely based on aesthetics and readability\n\n var condition = this.condition.toString(options);\n var conditionPrecedence = (0, _operators.getPrecedence)(this.condition, parenthesis);\n\n if (parenthesis === 'all' || this.condition.type === 'OperatorNode' || conditionPrecedence !== null && conditionPrecedence <= precedence) {\n condition = '(' + condition + ')';\n }\n\n var trueExpr = this.trueExpr.toString(options);\n var truePrecedence = (0, _operators.getPrecedence)(this.trueExpr, parenthesis);\n\n if (parenthesis === 'all' || this.trueExpr.type === 'OperatorNode' || truePrecedence !== null && truePrecedence <= precedence) {\n trueExpr = '(' + trueExpr + ')';\n }\n\n var falseExpr = this.falseExpr.toString(options);\n var falsePrecedence = (0, _operators.getPrecedence)(this.falseExpr, parenthesis);\n\n if (parenthesis === 'all' || this.falseExpr.type === 'OperatorNode' || falsePrecedence !== null && falsePrecedence <= precedence) {\n falseExpr = '(' + falseExpr + ')';\n }\n\n return condition + ' ? ' + trueExpr + ' : ' + falseExpr;\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n ConditionalNode.prototype.toJSON = function () {\n return {\n mathjs: 'ConditionalNode',\n condition: this.condition,\n trueExpr: this.trueExpr,\n falseExpr: this.falseExpr\n };\n };\n /**\n * Instantiate an ConditionalNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"ConditionalNode\", \"condition\": ..., \"trueExpr\": ..., \"falseExpr\": ...}`,\n * where mathjs is optional\n * @returns {ConditionalNode}\n */\n\n\n ConditionalNode.fromJSON = function (json) {\n return new ConditionalNode(json.condition, json.trueExpr, json.falseExpr);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ConditionalNode.prototype.toHTML = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var precedence = (0, _operators.getPrecedence)(this, parenthesis); // Enclose Arguments in parentheses if they are an OperatorNode\n // or have lower or equal precedence\n // NOTE: enclosing all OperatorNodes in parentheses is a decision\n // purely based on aesthetics and readability\n\n var condition = this.condition.toHTML(options);\n var conditionPrecedence = (0, _operators.getPrecedence)(this.condition, parenthesis);\n\n if (parenthesis === 'all' || this.condition.type === 'OperatorNode' || conditionPrecedence !== null && conditionPrecedence <= precedence) {\n condition = '(' + condition + ')';\n }\n\n var trueExpr = this.trueExpr.toHTML(options);\n var truePrecedence = (0, _operators.getPrecedence)(this.trueExpr, parenthesis);\n\n if (parenthesis === 'all' || this.trueExpr.type === 'OperatorNode' || truePrecedence !== null && truePrecedence <= precedence) {\n trueExpr = '(' + trueExpr + ')';\n }\n\n var falseExpr = this.falseExpr.toHTML(options);\n var falsePrecedence = (0, _operators.getPrecedence)(this.falseExpr, parenthesis);\n\n if (parenthesis === 'all' || this.falseExpr.type === 'OperatorNode' || falsePrecedence !== null && falsePrecedence <= precedence) {\n falseExpr = '(' + falseExpr + ')';\n }\n\n return condition + '?' + trueExpr + ':' + falseExpr;\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ConditionalNode.prototype._toTex = function (options) {\n return '\\\\begin{cases} {' + this.trueExpr.toTex(options) + '}, &\\\\quad{\\\\text{if }\\\\;' + this.condition.toTex(options) + '}\\\\\\\\{' + this.falseExpr.toTex(options) + '}, &\\\\quad{\\\\text{otherwise}}\\\\end{cases}';\n };\n /**\n * Test whether a condition is met\n * @param {*} condition\n * @returns {boolean} true if condition is true or non-zero, else false\n */\n\n\n function testCondition(condition) {\n if (typeof condition === 'number' || typeof condition === 'boolean' || typeof condition === 'string') {\n return !!condition;\n }\n\n if (condition) {\n if ((0, _is.isBigNumber)(condition)) {\n return !condition.isZero();\n }\n\n if ((0, _is.isComplex)(condition)) {\n return !!(condition.re || condition.im);\n }\n\n if ((0, _is.isUnit)(condition)) {\n return !!condition.value;\n }\n }\n\n if (condition === null || condition === undefined) {\n return false;\n }\n\n throw new TypeError('Unsupported type of condition \"' + (0, _is.typeOf)(condition) + '\"');\n }\n\n return ConditionalNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createConditionalNode = createConditionalNode;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.defaultTemplate = void 0;\nexports.escapeLatex = escapeLatex;\nexports.latexSymbols = exports.latexOperators = exports.latexFunctions = void 0;\nexports.toSymbol = toSymbol;\n\nvar _escapeLatex = _interopRequireDefault(require(\"escape-latex\"));\n\nvar _object = require(\"./object.js\");\n\n/* eslint no-template-curly-in-string: \"off\" */\nvar latexSymbols = {\n // GREEK LETTERS\n Alpha: 'A',\n alpha: '\\\\alpha',\n Beta: 'B',\n beta: '\\\\beta',\n Gamma: '\\\\Gamma',\n gamma: '\\\\gamma',\n Delta: '\\\\Delta',\n delta: '\\\\delta',\n Epsilon: 'E',\n epsilon: '\\\\epsilon',\n varepsilon: '\\\\varepsilon',\n Zeta: 'Z',\n zeta: '\\\\zeta',\n Eta: 'H',\n eta: '\\\\eta',\n Theta: '\\\\Theta',\n theta: '\\\\theta',\n vartheta: '\\\\vartheta',\n Iota: 'I',\n iota: '\\\\iota',\n Kappa: 'K',\n kappa: '\\\\kappa',\n varkappa: '\\\\varkappa',\n Lambda: '\\\\Lambda',\n lambda: '\\\\lambda',\n Mu: 'M',\n mu: '\\\\mu',\n Nu: 'N',\n nu: '\\\\nu',\n Xi: '\\\\Xi',\n xi: '\\\\xi',\n Omicron: 'O',\n omicron: 'o',\n Pi: '\\\\Pi',\n pi: '\\\\pi',\n varpi: '\\\\varpi',\n Rho: 'P',\n rho: '\\\\rho',\n varrho: '\\\\varrho',\n Sigma: '\\\\Sigma',\n sigma: '\\\\sigma',\n varsigma: '\\\\varsigma',\n Tau: 'T',\n tau: '\\\\tau',\n Upsilon: \"\\\\Upsilon\",\n upsilon: \"\\\\upsilon\",\n Phi: '\\\\Phi',\n phi: '\\\\phi',\n varphi: '\\\\varphi',\n Chi: 'X',\n chi: '\\\\chi',\n Psi: '\\\\Psi',\n psi: '\\\\psi',\n Omega: '\\\\Omega',\n omega: '\\\\omega',\n // logic\n true: '\\\\mathrm{True}',\n false: '\\\\mathrm{False}',\n // other\n i: 'i',\n // TODO use \\i ??\n inf: '\\\\infty',\n Inf: '\\\\infty',\n infinity: '\\\\infty',\n Infinity: '\\\\infty',\n oo: '\\\\infty',\n lim: '\\\\lim',\n undefined: '\\\\mathbf{?}'\n};\nexports.latexSymbols = latexSymbols;\nvar latexOperators = {\n transpose: '^\\\\top',\n ctranspose: '^H',\n factorial: '!',\n pow: '^',\n dotPow: '.^\\\\wedge',\n // TODO find ideal solution\n unaryPlus: '+',\n unaryMinus: '-',\n bitNot: '\\\\~',\n // TODO find ideal solution\n not: '\\\\neg',\n multiply: '\\\\cdot',\n divide: '\\\\frac',\n // TODO how to handle that properly?\n dotMultiply: '.\\\\cdot',\n // TODO find ideal solution\n dotDivide: '.:',\n // TODO find ideal solution\n mod: '\\\\mod',\n add: '+',\n subtract: '-',\n to: '\\\\rightarrow',\n leftShift: '<<',\n rightArithShift: '>>',\n rightLogShift: '>>>',\n equal: '=',\n unequal: '\\\\neq',\n smaller: '<',\n larger: '>',\n smallerEq: '\\\\leq',\n largerEq: '\\\\geq',\n bitAnd: '\\\\&',\n bitXor: \"\\\\underline{|}\",\n bitOr: '|',\n and: '\\\\wedge',\n xor: '\\\\veebar',\n or: '\\\\vee'\n};\nexports.latexOperators = latexOperators;\nvar latexFunctions = {\n // arithmetic\n abs: {\n 1: '\\\\left|${args[0]}\\\\right|'\n },\n add: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.add, \"${args[1]}\\\\right)\")\n },\n cbrt: {\n 1: '\\\\sqrt[3]{${args[0]}}'\n },\n ceil: {\n 1: '\\\\left\\\\lceil${args[0]}\\\\right\\\\rceil'\n },\n cube: {\n 1: '\\\\left(${args[0]}\\\\right)^3'\n },\n divide: {\n 2: '\\\\frac{${args[0]}}{${args[1]}}'\n },\n dotDivide: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.dotDivide, \"${args[1]}\\\\right)\")\n },\n dotMultiply: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.dotMultiply, \"${args[1]}\\\\right)\")\n },\n dotPow: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.dotPow, \"${args[1]}\\\\right)\")\n },\n exp: {\n 1: '\\\\exp\\\\left(${args[0]}\\\\right)'\n },\n expm1: \"\\\\left(e\".concat(latexOperators.pow, \"{${args[0]}}-1\\\\right)\"),\n fix: {\n 1: '\\\\mathrm{${name}}\\\\left(${args[0]}\\\\right)'\n },\n floor: {\n 1: '\\\\left\\\\lfloor${args[0]}\\\\right\\\\rfloor'\n },\n gcd: '\\\\gcd\\\\left(${args}\\\\right)',\n hypot: '\\\\hypot\\\\left(${args}\\\\right)',\n log: {\n 1: '\\\\ln\\\\left(${args[0]}\\\\right)',\n 2: '\\\\log_{${args[1]}}\\\\left(${args[0]}\\\\right)'\n },\n log10: {\n 1: '\\\\log_{10}\\\\left(${args[0]}\\\\right)'\n },\n log1p: {\n 1: '\\\\ln\\\\left(${args[0]}+1\\\\right)',\n 2: '\\\\log_{${args[1]}}\\\\left(${args[0]}+1\\\\right)'\n },\n log2: '\\\\log_{2}\\\\left(${args[0]}\\\\right)',\n mod: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.mod, \"${args[1]}\\\\right)\")\n },\n multiply: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.multiply, \"${args[1]}\\\\right)\")\n },\n norm: {\n 1: '\\\\left\\\\|${args[0]}\\\\right\\\\|',\n 2: undefined // use default template\n\n },\n nthRoot: {\n 2: '\\\\sqrt[${args[1]}]{${args[0]}}'\n },\n nthRoots: {\n 2: '\\\\{y : $y^{args[1]} = {${args[0]}}\\\\}'\n },\n pow: {\n 2: \"\\\\left(${args[0]}\\\\right)\".concat(latexOperators.pow, \"{${args[1]}}\")\n },\n round: {\n 1: '\\\\left\\\\lfloor${args[0]}\\\\right\\\\rceil',\n 2: undefined // use default template\n\n },\n sign: {\n 1: '\\\\mathrm{${name}}\\\\left(${args[0]}\\\\right)'\n },\n sqrt: {\n 1: '\\\\sqrt{${args[0]}}'\n },\n square: {\n 1: '\\\\left(${args[0]}\\\\right)^2'\n },\n subtract: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.subtract, \"${args[1]}\\\\right)\")\n },\n unaryMinus: {\n 1: \"\".concat(latexOperators.unaryMinus, \"\\\\left(${args[0]}\\\\right)\")\n },\n unaryPlus: {\n 1: \"\".concat(latexOperators.unaryPlus, \"\\\\left(${args[0]}\\\\right)\")\n },\n // bitwise\n bitAnd: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.bitAnd, \"${args[1]}\\\\right)\")\n },\n bitNot: {\n 1: latexOperators.bitNot + '\\\\left(${args[0]}\\\\right)'\n },\n bitOr: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.bitOr, \"${args[1]}\\\\right)\")\n },\n bitXor: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.bitXor, \"${args[1]}\\\\right)\")\n },\n leftShift: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.leftShift, \"${args[1]}\\\\right)\")\n },\n rightArithShift: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.rightArithShift, \"${args[1]}\\\\right)\")\n },\n rightLogShift: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.rightLogShift, \"${args[1]}\\\\right)\")\n },\n // combinatorics\n bellNumbers: {\n 1: '\\\\mathrm{B}_{${args[0]}}'\n },\n catalan: {\n 1: '\\\\mathrm{C}_{${args[0]}}'\n },\n stirlingS2: {\n 2: '\\\\mathrm{S}\\\\left(${args}\\\\right)'\n },\n // complex\n arg: {\n 1: '\\\\arg\\\\left(${args[0]}\\\\right)'\n },\n conj: {\n 1: '\\\\left(${args[0]}\\\\right)^*'\n },\n im: {\n 1: '\\\\Im\\\\left\\\\lbrace${args[0]}\\\\right\\\\rbrace'\n },\n re: {\n 1: '\\\\Re\\\\left\\\\lbrace${args[0]}\\\\right\\\\rbrace'\n },\n // logical\n and: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.and, \"${args[1]}\\\\right)\")\n },\n not: {\n 1: latexOperators.not + '\\\\left(${args[0]}\\\\right)'\n },\n or: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.or, \"${args[1]}\\\\right)\")\n },\n xor: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.xor, \"${args[1]}\\\\right)\")\n },\n // matrix\n cross: {\n 2: '\\\\left(${args[0]}\\\\right)\\\\times\\\\left(${args[1]}\\\\right)'\n },\n ctranspose: {\n 1: \"\\\\left(${args[0]}\\\\right)\".concat(latexOperators.ctranspose)\n },\n det: {\n 1: '\\\\det\\\\left(${args[0]}\\\\right)'\n },\n dot: {\n 2: '\\\\left(${args[0]}\\\\cdot${args[1]}\\\\right)'\n },\n expm: {\n 1: '\\\\exp\\\\left(${args[0]}\\\\right)'\n },\n inv: {\n 1: '\\\\left(${args[0]}\\\\right)^{-1}'\n },\n pinv: {\n 1: '\\\\left(${args[0]}\\\\right)^{+}'\n },\n sqrtm: {\n 1: \"{${args[0]}}\".concat(latexOperators.pow, \"{\\\\frac{1}{2}}\")\n },\n trace: {\n 1: '\\\\mathrm{tr}\\\\left(${args[0]}\\\\right)'\n },\n transpose: {\n 1: \"\\\\left(${args[0]}\\\\right)\".concat(latexOperators.transpose)\n },\n // probability\n combinations: {\n 2: '\\\\binom{${args[0]}}{${args[1]}}'\n },\n combinationsWithRep: {\n 2: '\\\\left(\\\\!\\\\!{\\\\binom{${args[0]}}{${args[1]}}}\\\\!\\\\!\\\\right)'\n },\n factorial: {\n 1: \"\\\\left(${args[0]}\\\\right)\".concat(latexOperators.factorial)\n },\n gamma: {\n 1: '\\\\Gamma\\\\left(${args[0]}\\\\right)'\n },\n lgamma: {\n 1: '\\\\ln\\\\Gamma\\\\left(${args[0]}\\\\right)'\n },\n // relational\n equal: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.equal, \"${args[1]}\\\\right)\")\n },\n larger: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.larger, \"${args[1]}\\\\right)\")\n },\n largerEq: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.largerEq, \"${args[1]}\\\\right)\")\n },\n smaller: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.smaller, \"${args[1]}\\\\right)\")\n },\n smallerEq: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.smallerEq, \"${args[1]}\\\\right)\")\n },\n unequal: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.unequal, \"${args[1]}\\\\right)\")\n },\n // special\n erf: {\n 1: 'erf\\\\left(${args[0]}\\\\right)'\n },\n // statistics\n max: '\\\\max\\\\left(${args}\\\\right)',\n min: '\\\\min\\\\left(${args}\\\\right)',\n variance: '\\\\mathrm{Var}\\\\left(${args}\\\\right)',\n // trigonometry\n acos: {\n 1: '\\\\cos^{-1}\\\\left(${args[0]}\\\\right)'\n },\n acosh: {\n 1: '\\\\cosh^{-1}\\\\left(${args[0]}\\\\right)'\n },\n acot: {\n 1: '\\\\cot^{-1}\\\\left(${args[0]}\\\\right)'\n },\n acoth: {\n 1: '\\\\coth^{-1}\\\\left(${args[0]}\\\\right)'\n },\n acsc: {\n 1: '\\\\csc^{-1}\\\\left(${args[0]}\\\\right)'\n },\n acsch: {\n 1: '\\\\mathrm{csch}^{-1}\\\\left(${args[0]}\\\\right)'\n },\n asec: {\n 1: '\\\\sec^{-1}\\\\left(${args[0]}\\\\right)'\n },\n asech: {\n 1: '\\\\mathrm{sech}^{-1}\\\\left(${args[0]}\\\\right)'\n },\n asin: {\n 1: '\\\\sin^{-1}\\\\left(${args[0]}\\\\right)'\n },\n asinh: {\n 1: '\\\\sinh^{-1}\\\\left(${args[0]}\\\\right)'\n },\n atan: {\n 1: '\\\\tan^{-1}\\\\left(${args[0]}\\\\right)'\n },\n atan2: {\n 2: '\\\\mathrm{atan2}\\\\left(${args}\\\\right)'\n },\n atanh: {\n 1: '\\\\tanh^{-1}\\\\left(${args[0]}\\\\right)'\n },\n cos: {\n 1: '\\\\cos\\\\left(${args[0]}\\\\right)'\n },\n cosh: {\n 1: '\\\\cosh\\\\left(${args[0]}\\\\right)'\n },\n cot: {\n 1: '\\\\cot\\\\left(${args[0]}\\\\right)'\n },\n coth: {\n 1: '\\\\coth\\\\left(${args[0]}\\\\right)'\n },\n csc: {\n 1: '\\\\csc\\\\left(${args[0]}\\\\right)'\n },\n csch: {\n 1: '\\\\mathrm{csch}\\\\left(${args[0]}\\\\right)'\n },\n sec: {\n 1: '\\\\sec\\\\left(${args[0]}\\\\right)'\n },\n sech: {\n 1: '\\\\mathrm{sech}\\\\left(${args[0]}\\\\right)'\n },\n sin: {\n 1: '\\\\sin\\\\left(${args[0]}\\\\right)'\n },\n sinh: {\n 1: '\\\\sinh\\\\left(${args[0]}\\\\right)'\n },\n tan: {\n 1: '\\\\tan\\\\left(${args[0]}\\\\right)'\n },\n tanh: {\n 1: '\\\\tanh\\\\left(${args[0]}\\\\right)'\n },\n // unit\n to: {\n 2: \"\\\\left(${args[0]}\".concat(latexOperators.to, \"${args[1]}\\\\right)\")\n },\n // utils\n numeric: function numeric(node, options) {\n // Not sure if this is strictly right but should work correctly for the vast majority of use cases.\n return node.args[0].toTex();\n },\n // type\n number: {\n 0: '0',\n 1: '\\\\left(${args[0]}\\\\right)',\n 2: '\\\\left(\\\\left(${args[0]}\\\\right)${args[1]}\\\\right)'\n },\n string: {\n 0: '\\\\mathtt{\"\"}',\n 1: '\\\\mathrm{string}\\\\left(${args[0]}\\\\right)'\n },\n bignumber: {\n 0: '0',\n 1: '\\\\left(${args[0]}\\\\right)'\n },\n complex: {\n 0: '0',\n 1: '\\\\left(${args[0]}\\\\right)',\n 2: \"\\\\left(\\\\left(${args[0]}\\\\right)+\".concat(latexSymbols.i, \"\\\\cdot\\\\left(${args[1]}\\\\right)\\\\right)\")\n },\n matrix: {\n 0: '\\\\begin{bmatrix}\\\\end{bmatrix}',\n 1: '\\\\left(${args[0]}\\\\right)',\n 2: '\\\\left(${args[0]}\\\\right)'\n },\n sparse: {\n 0: '\\\\begin{bsparse}\\\\end{bsparse}',\n 1: '\\\\left(${args[0]}\\\\right)'\n },\n unit: {\n 1: '\\\\left(${args[0]}\\\\right)',\n 2: '\\\\left(\\\\left(${args[0]}\\\\right)${args[1]}\\\\right)'\n }\n};\nexports.latexFunctions = latexFunctions;\nvar defaultTemplate = '\\\\mathrm{${name}}\\\\left(${args}\\\\right)';\nexports.defaultTemplate = defaultTemplate;\nvar latexUnits = {\n deg: '^\\\\circ'\n};\n\nfunction escapeLatex(string) {\n return (0, _escapeLatex.default)(string, {\n preserveFormatting: true\n });\n} // @param {string} name\n// @param {boolean} isUnit\n\n\nfunction toSymbol(name, isUnit) {\n isUnit = typeof isUnit === 'undefined' ? false : isUnit;\n\n if (isUnit) {\n if ((0, _object.hasOwnProperty)(latexUnits, name)) {\n return latexUnits[name];\n }\n\n return '\\\\mathrm{' + escapeLatex(name) + '}';\n }\n\n if ((0, _object.hasOwnProperty)(latexSymbols, name)) {\n return latexSymbols[name];\n }\n\n return escapeLatex(name);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createConstantNode = void 0;\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _latex = require(\"../../utils/latex.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ConstantNode';\nvar dependencies = ['Node'];\nvar createConstantNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * A ConstantNode holds a constant value like a number or string.\n *\n * Usage:\n *\n * new ConstantNode(2.3)\n * new ConstantNode('hello')\n *\n * @param {*} value Value can be any type (number, BigNumber, string, ...)\n * @constructor ConstantNode\n * @extends {Node}\n */\n function ConstantNode(value) {\n if (!(this instanceof ConstantNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.value = value;\n }\n\n ConstantNode.prototype = new Node();\n ConstantNode.prototype.type = 'ConstantNode';\n ConstantNode.prototype.isConstantNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n ConstantNode.prototype._compile = function (math, argNames) {\n var value = this.value;\n return function evalConstantNode() {\n return value;\n };\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n ConstantNode.prototype.forEach = function (callback) {// nothing to do, we don't have childs\n };\n /**\n * Create a new ConstantNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node) : Node} callback\n * @returns {ConstantNode} Returns a clone of the node\n */\n\n\n ConstantNode.prototype.map = function (callback) {\n return this.clone();\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {ConstantNode}\n */\n\n\n ConstantNode.prototype.clone = function () {\n return new ConstantNode(this.value);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ConstantNode.prototype._toString = function (options) {\n return (0, _string.format)(this.value, options);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ConstantNode.prototype.toHTML = function (options) {\n var value = this._toString(options);\n\n switch ((0, _is.typeOf)(this.value)) {\n case 'number':\n case 'BigNumber':\n case 'Fraction':\n return '' + value + '';\n\n case 'string':\n return '' + value + '';\n\n case 'boolean':\n return '' + value + '';\n\n case 'null':\n return '' + value + '';\n\n case 'undefined':\n return '' + value + '';\n\n default:\n return '' + value + '';\n }\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n ConstantNode.prototype.toJSON = function () {\n return {\n mathjs: 'ConstantNode',\n value: this.value\n };\n };\n /**\n * Instantiate a ConstantNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"SymbolNode\", value: 2.3}`,\n * where mathjs is optional\n * @returns {ConstantNode}\n */\n\n\n ConstantNode.fromJSON = function (json) {\n return new ConstantNode(json.value);\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ConstantNode.prototype._toTex = function (options) {\n var value = this._toString(options);\n\n switch ((0, _is.typeOf)(this.value)) {\n case 'string':\n return '\\\\mathtt{' + (0, _latex.escapeLatex)(value) + '}';\n\n case 'number':\n case 'BigNumber':\n {\n if (!isFinite(this.value)) {\n return this.value.valueOf() < 0 ? '-\\\\infty' : '\\\\infty';\n }\n\n var index = value.toLowerCase().indexOf('e');\n\n if (index !== -1) {\n return value.substring(0, index) + '\\\\cdot10^{' + value.substring(index + 1) + '}';\n }\n }\n return value;\n\n case 'Fraction':\n return this.value.toLatex();\n\n default:\n return value;\n }\n };\n\n return ConstantNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createConstantNode = createConstantNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFunctionAssignmentNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _keywords = require(\"../keywords.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _latex = require(\"../../utils/latex.js\");\n\nvar _operators = require(\"../operators.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'FunctionAssignmentNode';\nvar dependencies = ['typed', 'Node'];\nvar createFunctionAssignmentNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Node = _ref.Node;\n\n /**\n * @constructor FunctionAssignmentNode\n * @extends {Node}\n * Function assignment\n *\n * @param {string} name Function name\n * @param {string[] | Array.<{name: string, type: string}>} params\n * Array with function parameter names, or an\n * array with objects containing the name\n * and type of the parameter\n * @param {Node} expr The function expression\n */\n function FunctionAssignmentNode(name, params, expr) {\n if (!(this instanceof FunctionAssignmentNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // validate input\n\n\n if (typeof name !== 'string') throw new TypeError('String expected for parameter \"name\"');\n if (!Array.isArray(params)) throw new TypeError('Array containing strings or objects expected for parameter \"params\"');\n if (!(0, _is.isNode)(expr)) throw new TypeError('Node expected for parameter \"expr\"');\n if (_keywords.keywords.has(name)) throw new Error('Illegal function name, \"' + name + '\" is a reserved keyword');\n this.name = name;\n this.params = params.map(function (param) {\n return param && param.name || param;\n });\n this.types = params.map(function (param) {\n return param && param.type || 'any';\n });\n this.expr = expr;\n }\n\n FunctionAssignmentNode.prototype = new Node();\n FunctionAssignmentNode.prototype.type = 'FunctionAssignmentNode';\n FunctionAssignmentNode.prototype.isFunctionAssignmentNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n FunctionAssignmentNode.prototype._compile = function (math, argNames) {\n var childArgNames = Object.create(argNames);\n (0, _array.forEach)(this.params, function (param) {\n childArgNames[param] = true;\n }); // compile the function expression with the child args\n\n var evalExpr = this.expr._compile(math, childArgNames);\n\n var name = this.name;\n var params = this.params;\n var signature = (0, _array.join)(this.types, ',');\n var syntax = name + '(' + (0, _array.join)(this.params, ', ') + ')';\n return function evalFunctionAssignmentNode(scope, args, context) {\n var signatures = {};\n\n signatures[signature] = function () {\n var childArgs = Object.create(args);\n\n for (var i = 0; i < params.length; i++) {\n childArgs[params[i]] = arguments[i];\n }\n\n return evalExpr(scope, childArgs, context);\n };\n\n var fn = typed(name, signatures);\n fn.syntax = syntax;\n scope.set(name, fn);\n return fn;\n };\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n FunctionAssignmentNode.prototype.forEach = function (callback) {\n callback(this.expr, 'expr', this);\n };\n /**\n * Create a new FunctionAssignmentNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {FunctionAssignmentNode} Returns a transformed copy of the node\n */\n\n\n FunctionAssignmentNode.prototype.map = function (callback) {\n var expr = this._ifNode(callback(this.expr, 'expr', this));\n\n return new FunctionAssignmentNode(this.name, this.params.slice(0), expr);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {FunctionAssignmentNode}\n */\n\n\n FunctionAssignmentNode.prototype.clone = function () {\n return new FunctionAssignmentNode(this.name, this.params.slice(0), this.expr);\n };\n /**\n * Is parenthesis needed?\n * @param {Node} node\n * @param {Object} parenthesis\n * @private\n */\n\n\n function needParenthesis(node, parenthesis) {\n var precedence = (0, _operators.getPrecedence)(node, parenthesis);\n var exprPrecedence = (0, _operators.getPrecedence)(node.expr, parenthesis);\n return parenthesis === 'all' || exprPrecedence !== null && exprPrecedence <= precedence;\n }\n /**\n * get string representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n FunctionAssignmentNode.prototype._toString = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var expr = this.expr.toString(options);\n\n if (needParenthesis(this, parenthesis)) {\n expr = '(' + expr + ')';\n }\n\n return this.name + '(' + this.params.join(', ') + ') = ' + expr;\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n FunctionAssignmentNode.prototype.toJSON = function () {\n var types = this.types;\n return {\n mathjs: 'FunctionAssignmentNode',\n name: this.name,\n params: this.params.map(function (param, index) {\n return {\n name: param,\n type: types[index]\n };\n }),\n expr: this.expr\n };\n };\n /**\n * Instantiate an FunctionAssignmentNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"FunctionAssignmentNode\", name: ..., params: ..., expr: ...}`,\n * where mathjs is optional\n * @returns {FunctionAssignmentNode}\n */\n\n\n FunctionAssignmentNode.fromJSON = function (json) {\n return new FunctionAssignmentNode(json.name, json.params, json.expr);\n };\n /**\n * get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n FunctionAssignmentNode.prototype.toHTML = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var params = [];\n\n for (var i = 0; i < this.params.length; i++) {\n params.push('' + (0, _string.escape)(this.params[i]) + '');\n }\n\n var expr = this.expr.toHTML(options);\n\n if (needParenthesis(this, parenthesis)) {\n expr = '(' + expr + ')';\n }\n\n return '' + (0, _string.escape)(this.name) + '' + '(' + params.join(',') + ')=' + expr;\n };\n /**\n * get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n FunctionAssignmentNode.prototype._toTex = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var expr = this.expr.toTex(options);\n\n if (needParenthesis(this, parenthesis)) {\n expr = \"\\\\left(\".concat(expr, \"\\\\right)\");\n }\n\n return '\\\\mathrm{' + this.name + '}\\\\left(' + this.params.map(_latex.toSymbol).join(',') + '\\\\right):=' + expr;\n };\n\n return FunctionAssignmentNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createFunctionAssignmentNode = createFunctionAssignmentNode;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIndexNode = void 0;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar name = 'IndexNode';\nvar dependencies = ['Node', 'size'];\nvar createIndexNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node,\n size = _ref.size;\n\n /**\n * @constructor IndexNode\n * @extends Node\n *\n * Describes a subset of a matrix or an object property.\n * Cannot be used on its own, needs to be used within an AccessorNode or\n * AssignmentNode.\n *\n * @param {Node[]} dimensions\n * @param {boolean} [dotNotation=false] Optional property describing whether\n * this index was written using dot\n * notation like `a.b`, or using bracket\n * notation like `a[\"b\"]` (default).\n * Used to stringify an IndexNode.\n */\n function IndexNode(dimensions, dotNotation) {\n if (!(this instanceof IndexNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.dimensions = dimensions;\n this.dotNotation = dotNotation || false; // validate input\n\n if (!Array.isArray(dimensions) || !dimensions.every(_is.isNode)) {\n throw new TypeError('Array containing Nodes expected for parameter \"dimensions\"');\n }\n\n if (this.dotNotation && !this.isObjectProperty()) {\n throw new Error('dotNotation only applicable for object properties');\n }\n }\n\n IndexNode.prototype = new Node();\n IndexNode.prototype.type = 'IndexNode';\n IndexNode.prototype.isIndexNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n IndexNode.prototype._compile = function (math, argNames) {\n // TODO: implement support for bignumber (currently bignumbers are silently\n // reduced to numbers when changing the value to zero-based)\n // TODO: Optimization: when the range values are ConstantNodes,\n // we can beforehand resolve the zero-based value\n // optimization for a simple object property\n var evalDimensions = (0, _array.map)(this.dimensions, function (dimension, i) {\n var needsEnd = dimension.filter(function (node) {\n return node.isSymbolNode && node.name === 'end';\n }).length > 0;\n\n if (needsEnd) {\n // SymbolNode 'end' is used inside the index,\n // like in `A[end]` or `A[end - 2]`\n var childArgNames = Object.create(argNames);\n childArgNames.end = true;\n\n var _evalDimension = dimension._compile(math, childArgNames);\n\n return function evalDimension(scope, args, context) {\n if (!(0, _is.isMatrix)(context) && !(0, _is.isArray)(context) && !(0, _is.isString)(context)) {\n throw new TypeError('Cannot resolve \"end\": ' + 'context must be a Matrix, Array, or string but is ' + (0, _is.typeOf)(context));\n }\n\n var s = size(context).valueOf();\n var childArgs = Object.create(args);\n childArgs.end = s[i];\n return _evalDimension(scope, childArgs, context);\n };\n } else {\n // SymbolNode `end` not used\n return dimension._compile(math, argNames);\n }\n });\n var index = (0, _customs.getSafeProperty)(math, 'index');\n return function evalIndexNode(scope, args, context) {\n var dimensions = (0, _array.map)(evalDimensions, function (evalDimension) {\n return evalDimension(scope, args, context);\n });\n return index.apply(void 0, (0, _toConsumableArray2.default)(dimensions));\n };\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n IndexNode.prototype.forEach = function (callback) {\n for (var i = 0; i < this.dimensions.length; i++) {\n callback(this.dimensions[i], 'dimensions[' + i + ']', this);\n }\n };\n /**\n * Create a new IndexNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {IndexNode} Returns a transformed copy of the node\n */\n\n\n IndexNode.prototype.map = function (callback) {\n var dimensions = [];\n\n for (var i = 0; i < this.dimensions.length; i++) {\n dimensions[i] = this._ifNode(callback(this.dimensions[i], 'dimensions[' + i + ']', this));\n }\n\n return new IndexNode(dimensions, this.dotNotation);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {IndexNode}\n */\n\n\n IndexNode.prototype.clone = function () {\n return new IndexNode(this.dimensions.slice(0), this.dotNotation);\n };\n /**\n * Test whether this IndexNode contains a single property name\n * @return {boolean}\n */\n\n\n IndexNode.prototype.isObjectProperty = function () {\n return this.dimensions.length === 1 && (0, _is.isConstantNode)(this.dimensions[0]) && typeof this.dimensions[0].value === 'string';\n };\n /**\n * Returns the property name if IndexNode contains a property.\n * If not, returns null.\n * @return {string | null}\n */\n\n\n IndexNode.prototype.getObjectProperty = function () {\n return this.isObjectProperty() ? this.dimensions[0].value : null;\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n IndexNode.prototype._toString = function (options) {\n // format the parameters like \"[1, 0:5]\"\n return this.dotNotation ? '.' + this.getObjectProperty() : '[' + this.dimensions.join(', ') + ']';\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n IndexNode.prototype.toJSON = function () {\n return {\n mathjs: 'IndexNode',\n dimensions: this.dimensions,\n dotNotation: this.dotNotation\n };\n };\n /**\n * Instantiate an IndexNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"IndexNode\", dimensions: [...], dotNotation: false}`,\n * where mathjs is optional\n * @returns {IndexNode}\n */\n\n\n IndexNode.fromJSON = function (json) {\n return new IndexNode(json.dimensions, json.dotNotation);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n IndexNode.prototype.toHTML = function (options) {\n // format the parameters like \"[1, 0:5]\"\n var dimensions = [];\n\n for (var i = 0; i < this.dimensions.length; i++) {\n dimensions[i] = this.dimensions[i].toHTML();\n }\n\n if (this.dotNotation) {\n return '.' + '' + (0, _string.escape)(this.getObjectProperty()) + '';\n } else {\n return '[' + dimensions.join(',') + ']';\n }\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n IndexNode.prototype._toTex = function (options) {\n var dimensions = this.dimensions.map(function (range) {\n return range.toTex(options);\n });\n return this.dotNotation ? '.' + this.getObjectProperty() + '' : '_{' + dimensions.join(',') + '}';\n };\n\n return IndexNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createIndexNode = createIndexNode;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createObjectNode = void 0;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ObjectNode';\nvar dependencies = ['Node'];\nvar createObjectNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * @constructor ObjectNode\n * @extends {Node}\n * Holds an object with keys/values\n * @param {Object.} [properties] object with key/value pairs\n */\n function ObjectNode(properties) {\n if (!(this instanceof ObjectNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n this.properties = properties || {}; // validate input\n\n if (properties) {\n if (!((0, _typeof2.default)(properties) === 'object') || !Object.keys(properties).every(function (key) {\n return (0, _is.isNode)(properties[key]);\n })) {\n throw new TypeError('Object containing Nodes expected');\n }\n }\n }\n\n ObjectNode.prototype = new Node();\n ObjectNode.prototype.type = 'ObjectNode';\n ObjectNode.prototype.isObjectNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n ObjectNode.prototype._compile = function (math, argNames) {\n var evalEntries = {};\n\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n // we stringify/parse the key here to resolve unicode characters,\n // so you cannot create a key like {\"co\\\\u006Estructor\": null}\n var stringifiedKey = (0, _string.stringify)(key);\n var parsedKey = JSON.parse(stringifiedKey);\n\n if (!(0, _customs.isSafeProperty)(this.properties, parsedKey)) {\n throw new Error('No access to property \"' + parsedKey + '\"');\n }\n\n evalEntries[parsedKey] = this.properties[key]._compile(math, argNames);\n }\n }\n\n return function evalObjectNode(scope, args, context) {\n var obj = {};\n\n for (var _key in evalEntries) {\n if ((0, _object.hasOwnProperty)(evalEntries, _key)) {\n obj[_key] = evalEntries[_key](scope, args, context);\n }\n }\n\n return obj;\n };\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n ObjectNode.prototype.forEach = function (callback) {\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n callback(this.properties[key], 'properties[' + (0, _string.stringify)(key) + ']', this);\n }\n }\n };\n /**\n * Create a new ObjectNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {ObjectNode} Returns a transformed copy of the node\n */\n\n\n ObjectNode.prototype.map = function (callback) {\n var properties = {};\n\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n properties[key] = this._ifNode(callback(this.properties[key], 'properties[' + (0, _string.stringify)(key) + ']', this));\n }\n }\n\n return new ObjectNode(properties);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {ObjectNode}\n */\n\n\n ObjectNode.prototype.clone = function () {\n var properties = {};\n\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n properties[key] = this.properties[key];\n }\n }\n\n return new ObjectNode(properties);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ObjectNode.prototype._toString = function (options) {\n var entries = [];\n\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n entries.push((0, _string.stringify)(key) + ': ' + this.properties[key].toString(options));\n }\n }\n\n return '{' + entries.join(', ') + '}';\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n ObjectNode.prototype.toJSON = function () {\n return {\n mathjs: 'ObjectNode',\n properties: this.properties\n };\n };\n /**\n * Instantiate an OperatorNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"ObjectNode\", \"properties\": {...}}`,\n * where mathjs is optional\n * @returns {ObjectNode}\n */\n\n\n ObjectNode.fromJSON = function (json) {\n return new ObjectNode(json.properties);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ObjectNode.prototype.toHTML = function (options) {\n var entries = [];\n\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n entries.push('' + (0, _string.escape)(key) + '' + ':' + this.properties[key].toHTML(options));\n }\n }\n\n return '{' + entries.join(',') + '}';\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n ObjectNode.prototype._toTex = function (options) {\n var entries = [];\n\n for (var key in this.properties) {\n if ((0, _object.hasOwnProperty)(this.properties, key)) {\n entries.push('\\\\mathbf{' + key + ':} & ' + this.properties[key].toTex(options) + '\\\\\\\\');\n }\n }\n\n return \"\\\\left\\\\{\\\\begin{array}{ll}\".concat(entries.join('\\n'), \"\\\\end{array}\\\\right\\\\}\");\n };\n\n return ObjectNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createObjectNode = createObjectNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createOperatorNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _operators = require(\"../operators.js\");\n\nvar _latex = require(\"../../utils/latex.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'OperatorNode';\nvar dependencies = ['Node'];\nvar createOperatorNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * @constructor OperatorNode\n * @extends {Node}\n * An operator with two arguments, like 2+3\n *\n * @param {string} op Operator name, for example '+'\n * @param {string} fn Function name, for example 'add'\n * @param {Node[]} args Operator arguments\n * @param {boolean} [implicit] Is this an implicit multiplication?\n * @param {boolean} [isPercentage] Is this an percentage Operation?\n */\n function OperatorNode(op, fn, args, implicit, isPercentage) {\n if (!(this instanceof OperatorNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // validate input\n\n\n if (typeof op !== 'string') {\n throw new TypeError('string expected for parameter \"op\"');\n }\n\n if (typeof fn !== 'string') {\n throw new TypeError('string expected for parameter \"fn\"');\n }\n\n if (!Array.isArray(args) || !args.every(_is.isNode)) {\n throw new TypeError('Array containing Nodes expected for parameter \"args\"');\n }\n\n this.implicit = implicit === true;\n this.isPercentage = isPercentage === true;\n this.op = op;\n this.fn = fn;\n this.args = args || [];\n }\n\n OperatorNode.prototype = new Node();\n OperatorNode.prototype.type = 'OperatorNode';\n OperatorNode.prototype.isOperatorNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n OperatorNode.prototype._compile = function (math, argNames) {\n // validate fn\n if (typeof this.fn !== 'string' || !(0, _customs.isSafeMethod)(math, this.fn)) {\n if (!math[this.fn]) {\n throw new Error('Function ' + this.fn + ' missing in provided namespace \"math\"');\n } else {\n throw new Error('No access to function \"' + this.fn + '\"');\n }\n }\n\n var fn = (0, _customs.getSafeProperty)(math, this.fn);\n var evalArgs = (0, _array.map)(this.args, function (arg) {\n return arg._compile(math, argNames);\n });\n\n if (evalArgs.length === 1) {\n var evalArg0 = evalArgs[0];\n return function evalOperatorNode(scope, args, context) {\n return fn(evalArg0(scope, args, context));\n };\n } else if (evalArgs.length === 2) {\n var _evalArg = evalArgs[0];\n var evalArg1 = evalArgs[1];\n return function evalOperatorNode(scope, args, context) {\n return fn(_evalArg(scope, args, context), evalArg1(scope, args, context));\n };\n } else {\n return function evalOperatorNode(scope, args, context) {\n return fn.apply(null, (0, _array.map)(evalArgs, function (evalArg) {\n return evalArg(scope, args, context);\n }));\n };\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n OperatorNode.prototype.forEach = function (callback) {\n for (var i = 0; i < this.args.length; i++) {\n callback(this.args[i], 'args[' + i + ']', this);\n }\n };\n /**\n * Create a new OperatorNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {OperatorNode} Returns a transformed copy of the node\n */\n\n\n OperatorNode.prototype.map = function (callback) {\n var args = [];\n\n for (var i = 0; i < this.args.length; i++) {\n args[i] = this._ifNode(callback(this.args[i], 'args[' + i + ']', this));\n }\n\n return new OperatorNode(this.op, this.fn, args, this.implicit, this.isPercentage);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {OperatorNode}\n */\n\n\n OperatorNode.prototype.clone = function () {\n return new OperatorNode(this.op, this.fn, this.args.slice(0), this.implicit, this.isPercentage);\n };\n /**\n * Check whether this is an unary OperatorNode:\n * has exactly one argument, like `-a`.\n * @return {boolean} Returns true when an unary operator node, false otherwise.\n */\n\n\n OperatorNode.prototype.isUnary = function () {\n return this.args.length === 1;\n };\n /**\n * Check whether this is a binary OperatorNode:\n * has exactly two arguments, like `a + b`.\n * @return {boolean} Returns true when a binary operator node, false otherwise.\n */\n\n\n OperatorNode.prototype.isBinary = function () {\n return this.args.length === 2;\n };\n /**\n * Calculate which parentheses are necessary. Gets an OperatorNode\n * (which is the root of the tree) and an Array of Nodes\n * (this.args) and returns an array where 'true' means that an argument\n * has to be enclosed in parentheses whereas 'false' means the opposite.\n *\n * @param {OperatorNode} root\n * @param {string} parenthesis\n * @param {Node[]} args\n * @param {boolean} latex\n * @return {boolean[]}\n * @private\n */\n\n\n function calculateNecessaryParentheses(root, parenthesis, implicit, args, latex) {\n // precedence of the root OperatorNode\n var precedence = (0, _operators.getPrecedence)(root, parenthesis);\n var associativity = (0, _operators.getAssociativity)(root, parenthesis);\n\n if (parenthesis === 'all' || args.length > 2 && root.getIdentifier() !== 'OperatorNode:add' && root.getIdentifier() !== 'OperatorNode:multiply') {\n return args.map(function (arg) {\n switch (arg.getContent().type) {\n // Nodes that don't need extra parentheses\n case 'ArrayNode':\n case 'ConstantNode':\n case 'SymbolNode':\n case 'ParenthesisNode':\n return false;\n\n default:\n return true;\n }\n });\n }\n\n var result;\n\n switch (args.length) {\n case 0:\n result = [];\n break;\n\n case 1:\n // unary operators\n {\n // precedence of the operand\n var operandPrecedence = (0, _operators.getPrecedence)(args[0], parenthesis); // handle special cases for LaTeX, where some of the parentheses aren't needed\n\n if (latex && operandPrecedence !== null) {\n var operandIdentifier;\n var rootIdentifier;\n\n if (parenthesis === 'keep') {\n operandIdentifier = args[0].getIdentifier();\n rootIdentifier = root.getIdentifier();\n } else {\n // Ignore Parenthesis Nodes when not in 'keep' mode\n operandIdentifier = args[0].getContent().getIdentifier();\n rootIdentifier = root.getContent().getIdentifier();\n }\n\n if (_operators.properties[precedence][rootIdentifier].latexLeftParens === false) {\n result = [false];\n break;\n }\n\n if (_operators.properties[operandPrecedence][operandIdentifier].latexParens === false) {\n result = [false];\n break;\n }\n }\n\n if (operandPrecedence === null) {\n // if the operand has no defined precedence, no parens are needed\n result = [false];\n break;\n }\n\n if (operandPrecedence <= precedence) {\n // if the operands precedence is lower, parens are needed\n result = [true];\n break;\n } // otherwise, no parens needed\n\n\n result = [false];\n }\n break;\n\n case 2:\n // binary operators\n {\n var lhsParens; // left hand side needs parenthesis?\n // precedence of the left hand side\n\n var lhsPrecedence = (0, _operators.getPrecedence)(args[0], parenthesis); // is the root node associative with the left hand side\n\n var assocWithLhs = (0, _operators.isAssociativeWith)(root, args[0], parenthesis);\n\n if (lhsPrecedence === null) {\n // if the left hand side has no defined precedence, no parens are needed\n // FunctionNode for example\n lhsParens = false;\n } else if (lhsPrecedence === precedence && associativity === 'right' && !assocWithLhs) {\n // In case of equal precedence, if the root node is left associative\n // parens are **never** necessary for the left hand side.\n // If it is right associative however, parens are necessary\n // if the root node isn't associative with the left hand side\n lhsParens = true;\n } else if (lhsPrecedence < precedence) {\n lhsParens = true;\n } else {\n lhsParens = false;\n }\n\n var rhsParens; // right hand side needs parenthesis?\n // precedence of the right hand side\n\n var rhsPrecedence = (0, _operators.getPrecedence)(args[1], parenthesis); // is the root node associative with the right hand side?\n\n var assocWithRhs = (0, _operators.isAssociativeWith)(root, args[1], parenthesis);\n\n if (rhsPrecedence === null) {\n // if the right hand side has no defined precedence, no parens are needed\n // FunctionNode for example\n rhsParens = false;\n } else if (rhsPrecedence === precedence && associativity === 'left' && !assocWithRhs) {\n // In case of equal precedence, if the root node is right associative\n // parens are **never** necessary for the right hand side.\n // If it is left associative however, parens are necessary\n // if the root node isn't associative with the right hand side\n rhsParens = true;\n } else if (rhsPrecedence < precedence) {\n rhsParens = true;\n } else {\n rhsParens = false;\n } // handle special cases for LaTeX, where some of the parentheses aren't needed\n\n\n if (latex) {\n var _rootIdentifier;\n\n var lhsIdentifier;\n var rhsIdentifier;\n\n if (parenthesis === 'keep') {\n _rootIdentifier = root.getIdentifier();\n lhsIdentifier = root.args[0].getIdentifier();\n rhsIdentifier = root.args[1].getIdentifier();\n } else {\n // Ignore ParenthesisNodes when not in 'keep' mode\n _rootIdentifier = root.getContent().getIdentifier();\n lhsIdentifier = root.args[0].getContent().getIdentifier();\n rhsIdentifier = root.args[1].getContent().getIdentifier();\n }\n\n if (lhsPrecedence !== null) {\n if (_operators.properties[precedence][_rootIdentifier].latexLeftParens === false) {\n lhsParens = false;\n }\n\n if (_operators.properties[lhsPrecedence][lhsIdentifier].latexParens === false) {\n lhsParens = false;\n }\n }\n\n if (rhsPrecedence !== null) {\n if (_operators.properties[precedence][_rootIdentifier].latexRightParens === false) {\n rhsParens = false;\n }\n\n if (_operators.properties[rhsPrecedence][rhsIdentifier].latexParens === false) {\n rhsParens = false;\n }\n }\n }\n\n result = [lhsParens, rhsParens];\n }\n break;\n\n default:\n if (root.getIdentifier() === 'OperatorNode:add' || root.getIdentifier() === 'OperatorNode:multiply') {\n result = args.map(function (arg) {\n var argPrecedence = (0, _operators.getPrecedence)(arg, parenthesis);\n var assocWithArg = (0, _operators.isAssociativeWith)(root, arg, parenthesis);\n var argAssociativity = (0, _operators.getAssociativity)(arg, parenthesis);\n\n if (argPrecedence === null) {\n // if the argument has no defined precedence, no parens are needed\n return false;\n } else if (precedence === argPrecedence && associativity === argAssociativity && !assocWithArg) {\n return true;\n } else if (argPrecedence < precedence) {\n return true;\n }\n\n return false;\n });\n }\n\n break;\n } // handles an edge case of 'auto' parentheses with implicit multiplication of ConstantNode\n // In that case print parentheses for ParenthesisNodes even though they normally wouldn't be\n // printed.\n\n\n if (args.length >= 2 && root.getIdentifier() === 'OperatorNode:multiply' && root.implicit && parenthesis === 'auto' && implicit === 'hide') {\n result = args.map(function (arg, index) {\n var isParenthesisNode = arg.getIdentifier() === 'ParenthesisNode';\n\n if (result[index] || isParenthesisNode) {\n // put in parenthesis?\n return true;\n }\n\n return false;\n });\n }\n\n return result;\n }\n /**\n * Get string representation.\n * @param {Object} options\n * @return {string} str\n */\n\n\n OperatorNode.prototype._toString = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var implicit = options && options.implicit ? options.implicit : 'hide';\n var args = this.args;\n var parens = calculateNecessaryParentheses(this, parenthesis, implicit, args, false);\n\n if (args.length === 1) {\n // unary operators\n var assoc = (0, _operators.getAssociativity)(this, parenthesis);\n var operand = args[0].toString(options);\n\n if (parens[0]) {\n operand = '(' + operand + ')';\n } // for example for \"not\", we want a space between operand and argument\n\n\n var opIsNamed = /[a-zA-Z]+/.test(this.op);\n\n if (assoc === 'right') {\n // prefix operator\n return this.op + (opIsNamed ? ' ' : '') + operand;\n } else if (assoc === 'left') {\n // postfix\n return operand + (opIsNamed ? ' ' : '') + this.op;\n } // fall back to postfix\n\n\n return operand + this.op;\n } else if (args.length === 2) {\n var lhs = args[0].toString(options); // left hand side\n\n var rhs = args[1].toString(options); // right hand side\n\n if (parens[0]) {\n // left hand side in parenthesis?\n lhs = '(' + lhs + ')';\n }\n\n if (parens[1]) {\n // right hand side in parenthesis?\n rhs = '(' + rhs + ')';\n }\n\n if (this.implicit && this.getIdentifier() === 'OperatorNode:multiply' && implicit === 'hide') {\n return lhs + ' ' + rhs;\n }\n\n return lhs + ' ' + this.op + ' ' + rhs;\n } else if (args.length > 2 && (this.getIdentifier() === 'OperatorNode:add' || this.getIdentifier() === 'OperatorNode:multiply')) {\n var stringifiedArgs = args.map(function (arg, index) {\n arg = arg.toString(options);\n\n if (parens[index]) {\n // put in parenthesis?\n arg = '(' + arg + ')';\n }\n\n return arg;\n });\n\n if (this.implicit && this.getIdentifier() === 'OperatorNode:multiply' && implicit === 'hide') {\n return stringifiedArgs.join(' ');\n }\n\n return stringifiedArgs.join(' ' + this.op + ' ');\n } else {\n // fallback to formatting as a function call\n return this.fn + '(' + this.args.join(', ') + ')';\n }\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n OperatorNode.prototype.toJSON = function () {\n return {\n mathjs: 'OperatorNode',\n op: this.op,\n fn: this.fn,\n args: this.args,\n implicit: this.implicit,\n isPercentage: this.isPercentage\n };\n };\n /**\n * Instantiate an OperatorNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"OperatorNode\", \"op\": \"+\", \"fn\": \"add\", \"args\": [...], \"implicit\": false, \"isPercentage\":false}`,\n * where mathjs is optional\n * @returns {OperatorNode}\n */\n\n\n OperatorNode.fromJSON = function (json) {\n return new OperatorNode(json.op, json.fn, json.args, json.implicit, json.isPercentage);\n };\n /**\n * Get HTML representation.\n * @param {Object} options\n * @return {string} str\n */\n\n\n OperatorNode.prototype.toHTML = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var implicit = options && options.implicit ? options.implicit : 'hide';\n var args = this.args;\n var parens = calculateNecessaryParentheses(this, parenthesis, implicit, args, false);\n\n if (args.length === 1) {\n // unary operators\n var assoc = (0, _operators.getAssociativity)(this, parenthesis);\n var operand = args[0].toHTML(options);\n\n if (parens[0]) {\n operand = '(' + operand + ')';\n }\n\n if (assoc === 'right') {\n // prefix operator\n return '' + (0, _string.escape)(this.op) + '' + operand;\n } else {\n // postfix when assoc === 'left' or undefined\n return operand + '' + (0, _string.escape)(this.op) + '';\n }\n } else if (args.length === 2) {\n // binary operatoes\n var lhs = args[0].toHTML(options); // left hand side\n\n var rhs = args[1].toHTML(options); // right hand side\n\n if (parens[0]) {\n // left hand side in parenthesis?\n lhs = '(' + lhs + ')';\n }\n\n if (parens[1]) {\n // right hand side in parenthesis?\n rhs = '(' + rhs + ')';\n }\n\n if (this.implicit && this.getIdentifier() === 'OperatorNode:multiply' && implicit === 'hide') {\n return lhs + '' + rhs;\n }\n\n return lhs + '' + (0, _string.escape)(this.op) + '' + rhs;\n } else {\n var stringifiedArgs = args.map(function (arg, index) {\n arg = arg.toHTML(options);\n\n if (parens[index]) {\n // put in parenthesis?\n arg = '(' + arg + ')';\n }\n\n return arg;\n });\n\n if (args.length > 2 && (this.getIdentifier() === 'OperatorNode:add' || this.getIdentifier() === 'OperatorNode:multiply')) {\n if (this.implicit && this.getIdentifier() === 'OperatorNode:multiply' && implicit === 'hide') {\n return stringifiedArgs.join('');\n }\n\n return stringifiedArgs.join('' + (0, _string.escape)(this.op) + '');\n } else {\n // fallback to formatting as a function call\n return '' + (0, _string.escape)(this.fn) + '(' + stringifiedArgs.join(',') + ')';\n }\n }\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n OperatorNode.prototype._toTex = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var implicit = options && options.implicit ? options.implicit : 'hide';\n var args = this.args;\n var parens = calculateNecessaryParentheses(this, parenthesis, implicit, args, true);\n var op = _latex.latexOperators[this.fn];\n op = typeof op === 'undefined' ? this.op : op; // fall back to using this.op\n\n if (args.length === 1) {\n // unary operators\n var assoc = (0, _operators.getAssociativity)(this, parenthesis);\n var operand = args[0].toTex(options);\n\n if (parens[0]) {\n operand = \"\\\\left(\".concat(operand, \"\\\\right)\");\n }\n\n if (assoc === 'right') {\n // prefix operator\n return op + operand;\n } else if (assoc === 'left') {\n // postfix operator\n return operand + op;\n } // fall back to postfix\n\n\n return operand + op;\n } else if (args.length === 2) {\n // binary operators\n var lhs = args[0]; // left hand side\n\n var lhsTex = lhs.toTex(options);\n\n if (parens[0]) {\n lhsTex = \"\\\\left(\".concat(lhsTex, \"\\\\right)\");\n }\n\n var rhs = args[1]; // right hand side\n\n var rhsTex = rhs.toTex(options);\n\n if (parens[1]) {\n rhsTex = \"\\\\left(\".concat(rhsTex, \"\\\\right)\");\n } // handle some exceptions (due to the way LaTeX works)\n\n\n var lhsIdentifier;\n\n if (parenthesis === 'keep') {\n lhsIdentifier = lhs.getIdentifier();\n } else {\n // Ignore ParenthesisNodes if in 'keep' mode\n lhsIdentifier = lhs.getContent().getIdentifier();\n }\n\n switch (this.getIdentifier()) {\n case 'OperatorNode:divide':\n // op contains '\\\\frac' at this point\n return op + '{' + lhsTex + '}' + '{' + rhsTex + '}';\n\n case 'OperatorNode:pow':\n lhsTex = '{' + lhsTex + '}';\n rhsTex = '{' + rhsTex + '}';\n\n switch (lhsIdentifier) {\n case 'ConditionalNode': //\n\n case 'OperatorNode:divide':\n lhsTex = \"\\\\left(\".concat(lhsTex, \"\\\\right)\");\n }\n\n break;\n\n case 'OperatorNode:multiply':\n if (this.implicit && implicit === 'hide') {\n return lhsTex + '~' + rhsTex;\n }\n\n }\n\n return lhsTex + op + rhsTex;\n } else if (args.length > 2 && (this.getIdentifier() === 'OperatorNode:add' || this.getIdentifier() === 'OperatorNode:multiply')) {\n var texifiedArgs = args.map(function (arg, index) {\n arg = arg.toTex(options);\n\n if (parens[index]) {\n arg = \"\\\\left(\".concat(arg, \"\\\\right)\");\n }\n\n return arg;\n });\n\n if (this.getIdentifier() === 'OperatorNode:multiply' && this.implicit) {\n return texifiedArgs.join('~');\n }\n\n return texifiedArgs.join(op);\n } else {\n // fall back to formatting as a function call\n // as this is a fallback, it doesn't use\n // fancy function names\n return '\\\\mathrm{' + this.fn + '}\\\\left(' + args.map(function (arg) {\n return arg.toTex(options);\n }).join(',') + '\\\\right)';\n }\n };\n /**\n * Get identifier.\n * @return {string}\n */\n\n\n OperatorNode.prototype.getIdentifier = function () {\n return this.type + ':' + this.fn;\n };\n\n return OperatorNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createOperatorNode = createOperatorNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createParenthesisNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'ParenthesisNode';\nvar dependencies = ['Node'];\nvar createParenthesisNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * @constructor ParenthesisNode\n * @extends {Node}\n * A parenthesis node describes manual parenthesis from the user input\n * @param {Node} content\n * @extends {Node}\n */\n function ParenthesisNode(content) {\n if (!(this instanceof ParenthesisNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // validate input\n\n\n if (!(0, _is.isNode)(content)) {\n throw new TypeError('Node expected for parameter \"content\"');\n }\n\n this.content = content;\n }\n\n ParenthesisNode.prototype = new Node();\n ParenthesisNode.prototype.type = 'ParenthesisNode';\n ParenthesisNode.prototype.isParenthesisNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n ParenthesisNode.prototype._compile = function (math, argNames) {\n return this.content._compile(math, argNames);\n };\n /**\n * Get the content of the current Node.\n * @return {Node} content\n * @override\n **/\n\n\n ParenthesisNode.prototype.getContent = function () {\n return this.content.getContent();\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n ParenthesisNode.prototype.forEach = function (callback) {\n callback(this.content, 'content', this);\n };\n /**\n * Create a new ParenthesisNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node) : Node} callback\n * @returns {ParenthesisNode} Returns a clone of the node\n */\n\n\n ParenthesisNode.prototype.map = function (callback) {\n var content = callback(this.content, 'content', this);\n return new ParenthesisNode(content);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {ParenthesisNode}\n */\n\n\n ParenthesisNode.prototype.clone = function () {\n return new ParenthesisNode(this.content);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ParenthesisNode.prototype._toString = function (options) {\n if (!options || options && !options.parenthesis || options && options.parenthesis === 'keep') {\n return '(' + this.content.toString(options) + ')';\n }\n\n return this.content.toString(options);\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n ParenthesisNode.prototype.toJSON = function () {\n return {\n mathjs: 'ParenthesisNode',\n content: this.content\n };\n };\n /**\n * Instantiate an ParenthesisNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"ParenthesisNode\", \"content\": ...}`,\n * where mathjs is optional\n * @returns {ParenthesisNode}\n */\n\n\n ParenthesisNode.fromJSON = function (json) {\n return new ParenthesisNode(json.content);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ParenthesisNode.prototype.toHTML = function (options) {\n if (!options || options && !options.parenthesis || options && options.parenthesis === 'keep') {\n return '(' + this.content.toHTML(options) + ')';\n }\n\n return this.content.toHTML(options);\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n ParenthesisNode.prototype._toTex = function (options) {\n if (!options || options && !options.parenthesis || options && options.parenthesis === 'keep') {\n return \"\\\\left(\".concat(this.content.toTex(options), \"\\\\right)\");\n }\n\n return this.content.toTex(options);\n };\n\n return ParenthesisNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createParenthesisNode = createParenthesisNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRangeNode = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _operators = require(\"../operators.js\");\n\nvar name = 'RangeNode';\nvar dependencies = ['Node'];\nvar createRangeNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * @constructor RangeNode\n * @extends {Node}\n * create a range\n * @param {Node} start included lower-bound\n * @param {Node} end included upper-bound\n * @param {Node} [step] optional step\n */\n function RangeNode(start, end, step) {\n if (!(this instanceof RangeNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // validate inputs\n\n\n if (!(0, _is.isNode)(start)) throw new TypeError('Node expected');\n if (!(0, _is.isNode)(end)) throw new TypeError('Node expected');\n if (step && !(0, _is.isNode)(step)) throw new TypeError('Node expected');\n if (arguments.length > 3) throw new Error('Too many arguments');\n this.start = start; // included lower-bound\n\n this.end = end; // included upper-bound\n\n this.step = step || null; // optional step\n }\n\n RangeNode.prototype = new Node();\n RangeNode.prototype.type = 'RangeNode';\n RangeNode.prototype.isRangeNode = true;\n /**\n * Check whether the RangeNode needs the `end` symbol to be defined.\n * This end is the size of the Matrix in current dimension.\n * @return {boolean}\n */\n\n RangeNode.prototype.needsEnd = function () {\n // find all `end` symbols in this RangeNode\n var endSymbols = this.filter(function (node) {\n return (0, _is.isSymbolNode)(node) && node.name === 'end';\n });\n return endSymbols.length > 0;\n };\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n\n RangeNode.prototype._compile = function (math, argNames) {\n var range = math.range;\n\n var evalStart = this.start._compile(math, argNames);\n\n var evalEnd = this.end._compile(math, argNames);\n\n if (this.step) {\n var evalStep = this.step._compile(math, argNames);\n\n return function evalRangeNode(scope, args, context) {\n return range(evalStart(scope, args, context), evalEnd(scope, args, context), evalStep(scope, args, context));\n };\n } else {\n return function evalRangeNode(scope, args, context) {\n return range(evalStart(scope, args, context), evalEnd(scope, args, context));\n };\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n RangeNode.prototype.forEach = function (callback) {\n callback(this.start, 'start', this);\n callback(this.end, 'end', this);\n\n if (this.step) {\n callback(this.step, 'step', this);\n }\n };\n /**\n * Create a new RangeNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {RangeNode} Returns a transformed copy of the node\n */\n\n\n RangeNode.prototype.map = function (callback) {\n return new RangeNode(this._ifNode(callback(this.start, 'start', this)), this._ifNode(callback(this.end, 'end', this)), this.step && this._ifNode(callback(this.step, 'step', this)));\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {RangeNode}\n */\n\n\n RangeNode.prototype.clone = function () {\n return new RangeNode(this.start, this.end, this.step && this.step);\n };\n /**\n * Calculate the necessary parentheses\n * @param {Node} node\n * @param {string} parenthesis\n * @return {Object} parentheses\n * @private\n */\n\n\n function calculateNecessaryParentheses(node, parenthesis) {\n var precedence = (0, _operators.getPrecedence)(node, parenthesis);\n var parens = {};\n var startPrecedence = (0, _operators.getPrecedence)(node.start, parenthesis);\n parens.start = startPrecedence !== null && startPrecedence <= precedence || parenthesis === 'all';\n\n if (node.step) {\n var stepPrecedence = (0, _operators.getPrecedence)(node.step, parenthesis);\n parens.step = stepPrecedence !== null && stepPrecedence <= precedence || parenthesis === 'all';\n }\n\n var endPrecedence = (0, _operators.getPrecedence)(node.end, parenthesis);\n parens.end = endPrecedence !== null && endPrecedence <= precedence || parenthesis === 'all';\n return parens;\n }\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n RangeNode.prototype._toString = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var parens = calculateNecessaryParentheses(this, parenthesis); // format string as start:step:stop\n\n var str;\n var start = this.start.toString(options);\n\n if (parens.start) {\n start = '(' + start + ')';\n }\n\n str = start;\n\n if (this.step) {\n var step = this.step.toString(options);\n\n if (parens.step) {\n step = '(' + step + ')';\n }\n\n str += ':' + step;\n }\n\n var end = this.end.toString(options);\n\n if (parens.end) {\n end = '(' + end + ')';\n }\n\n str += ':' + end;\n return str;\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n RangeNode.prototype.toJSON = function () {\n return {\n mathjs: 'RangeNode',\n start: this.start,\n end: this.end,\n step: this.step\n };\n };\n /**\n * Instantiate an RangeNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"RangeNode\", \"start\": ..., \"end\": ..., \"step\": ...}`,\n * where mathjs is optional\n * @returns {RangeNode}\n */\n\n\n RangeNode.fromJSON = function (json) {\n return new RangeNode(json.start, json.end, json.step);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n RangeNode.prototype.toHTML = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var parens = calculateNecessaryParentheses(this, parenthesis); // format string as start:step:stop\n\n var str;\n var start = this.start.toHTML(options);\n\n if (parens.start) {\n start = '(' + start + ')';\n }\n\n str = start;\n\n if (this.step) {\n var step = this.step.toHTML(options);\n\n if (parens.step) {\n step = '(' + step + ')';\n }\n\n str += ':' + step;\n }\n\n var end = this.end.toHTML(options);\n\n if (parens.end) {\n end = '(' + end + ')';\n }\n\n str += ':' + end;\n return str;\n };\n /**\n * Get LaTeX representation\n * @params {Object} options\n * @return {string} str\n */\n\n\n RangeNode.prototype._toTex = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var parens = calculateNecessaryParentheses(this, parenthesis);\n var str = this.start.toTex(options);\n\n if (parens.start) {\n str = \"\\\\left(\".concat(str, \"\\\\right)\");\n }\n\n if (this.step) {\n var step = this.step.toTex(options);\n\n if (parens.step) {\n step = \"\\\\left(\".concat(step, \"\\\\right)\");\n }\n\n str += ':' + step;\n }\n\n var end = this.end.toTex(options);\n\n if (parens.end) {\n end = \"\\\\left(\".concat(end, \"\\\\right)\");\n }\n\n str += ':' + end;\n return str;\n };\n\n return RangeNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createRangeNode = createRangeNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRelationalNode = void 0;\n\nvar _operators = require(\"../operators.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _latex = require(\"../../utils/latex.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'RelationalNode';\nvar dependencies = ['Node'];\nvar createRelationalNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Node = _ref.Node;\n\n /**\n * A node representing a chained conditional expression, such as 'x > y > z'\n *\n * @param {String[]} conditionals An array of conditional operators used to compare the parameters\n * @param {Node[]} params The parameters that will be compared\n *\n * @constructor RelationalNode\n * @extends {Node}\n */\n function RelationalNode(conditionals, params) {\n if (!(this instanceof RelationalNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (!Array.isArray(conditionals)) throw new TypeError('Parameter conditionals must be an array');\n if (!Array.isArray(params)) throw new TypeError('Parameter params must be an array');\n if (conditionals.length !== params.length - 1) throw new TypeError('Parameter params must contain exactly one more element than parameter conditionals');\n this.conditionals = conditionals;\n this.params = params;\n }\n\n RelationalNode.prototype = new Node();\n RelationalNode.prototype.type = 'RelationalNode';\n RelationalNode.prototype.isRelationalNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n RelationalNode.prototype._compile = function (math, argNames) {\n var self = this;\n var compiled = this.params.map(function (p) {\n return p._compile(math, argNames);\n });\n return function evalRelationalNode(scope, args, context) {\n var evalLhs;\n var evalRhs = compiled[0](scope, args, context);\n\n for (var i = 0; i < self.conditionals.length; i++) {\n evalLhs = evalRhs;\n evalRhs = compiled[i + 1](scope, args, context);\n var condFn = (0, _customs.getSafeProperty)(math, self.conditionals[i]);\n\n if (!condFn(evalLhs, evalRhs)) {\n return false;\n }\n }\n\n return true;\n };\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n RelationalNode.prototype.forEach = function (callback) {\n var _this = this;\n\n this.params.forEach(function (n, i) {\n return callback(n, 'params[' + i + ']', _this);\n }, this);\n };\n /**\n * Create a new RelationalNode having its childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {RelationalNode} Returns a transformed copy of the node\n */\n\n\n RelationalNode.prototype.map = function (callback) {\n var _this2 = this;\n\n return new RelationalNode(this.conditionals.slice(), this.params.map(function (n, i) {\n return _this2._ifNode(callback(n, 'params[' + i + ']', _this2));\n }, this));\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {RelationalNode}\n */\n\n\n RelationalNode.prototype.clone = function () {\n return new RelationalNode(this.conditionals, this.params);\n };\n /**\n * Get string representation.\n * @param {Object} options\n * @return {string} str\n */\n\n\n RelationalNode.prototype._toString = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var precedence = (0, _operators.getPrecedence)(this, parenthesis);\n var paramStrings = this.params.map(function (p, index) {\n var paramPrecedence = (0, _operators.getPrecedence)(p, parenthesis);\n return parenthesis === 'all' || paramPrecedence !== null && paramPrecedence <= precedence ? '(' + p.toString(options) + ')' : p.toString(options);\n });\n var operatorMap = {\n equal: '==',\n unequal: '!=',\n smaller: '<',\n larger: '>',\n smallerEq: '<=',\n largerEq: '>='\n };\n var ret = paramStrings[0];\n\n for (var i = 0; i < this.conditionals.length; i++) {\n ret += ' ' + operatorMap[this.conditionals[i]] + ' ' + paramStrings[i + 1];\n }\n\n return ret;\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n RelationalNode.prototype.toJSON = function () {\n return {\n mathjs: 'RelationalNode',\n conditionals: this.conditionals,\n params: this.params\n };\n };\n /**\n * Instantiate a RelationalNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"RelationalNode\", \"condition\": ..., \"trueExpr\": ..., \"falseExpr\": ...}`,\n * where mathjs is optional\n * @returns {RelationalNode}\n */\n\n\n RelationalNode.fromJSON = function (json) {\n return new RelationalNode(json.conditionals, json.params);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n RelationalNode.prototype.toHTML = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var precedence = (0, _operators.getPrecedence)(this, parenthesis);\n var paramStrings = this.params.map(function (p, index) {\n var paramPrecedence = (0, _operators.getPrecedence)(p, parenthesis);\n return parenthesis === 'all' || paramPrecedence !== null && paramPrecedence <= precedence ? '(' + p.toHTML(options) + ')' : p.toHTML(options);\n });\n var operatorMap = {\n equal: '==',\n unequal: '!=',\n smaller: '<',\n larger: '>',\n smallerEq: '<=',\n largerEq: '>='\n };\n var ret = paramStrings[0];\n\n for (var i = 0; i < this.conditionals.length; i++) {\n ret += '' + (0, _string.escape)(operatorMap[this.conditionals[i]]) + '' + paramStrings[i + 1];\n }\n\n return ret;\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n RelationalNode.prototype._toTex = function (options) {\n var parenthesis = options && options.parenthesis ? options.parenthesis : 'keep';\n var precedence = (0, _operators.getPrecedence)(this, parenthesis);\n var paramStrings = this.params.map(function (p, index) {\n var paramPrecedence = (0, _operators.getPrecedence)(p, parenthesis);\n return parenthesis === 'all' || paramPrecedence !== null && paramPrecedence <= precedence ? '\\\\left(' + p.toTex(options) + '\\right)' : p.toTex(options);\n });\n var ret = paramStrings[0];\n\n for (var i = 0; i < this.conditionals.length; i++) {\n ret += _latex.latexOperators[this.conditionals[i]] + paramStrings[i + 1];\n }\n\n return ret;\n };\n\n return RelationalNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createRelationalNode = createRelationalNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSymbolNode = void 0;\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _latex = require(\"../../utils/latex.js\");\n\nvar name = 'SymbolNode';\nvar dependencies = ['math', '?Unit', 'Node'];\nvar createSymbolNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var math = _ref.math,\n Unit = _ref.Unit,\n Node = _ref.Node;\n\n /**\n * Check whether some name is a valueless unit like \"inch\".\n * @param {string} name\n * @return {boolean}\n */\n function isValuelessUnit(name) {\n return Unit ? Unit.isValuelessUnit(name) : false;\n }\n /**\n * @constructor SymbolNode\n * @extends {Node}\n * A symbol node can hold and resolve a symbol\n * @param {string} name\n * @extends {Node}\n */\n\n\n function SymbolNode(name) {\n if (!(this instanceof SymbolNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n } // validate input\n\n\n if (typeof name !== 'string') throw new TypeError('String expected for parameter \"name\"');\n this.name = name;\n }\n\n SymbolNode.prototype = new Node();\n SymbolNode.prototype.type = 'SymbolNode';\n SymbolNode.prototype.isSymbolNode = true;\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n SymbolNode.prototype._compile = function (math, argNames) {\n var name = this.name;\n\n if (argNames[name] === true) {\n // this is a FunctionAssignment argument\n // (like an x when inside the expression of a function assignment `f(x) = ...`)\n return function (scope, args, context) {\n return args[name];\n };\n } else if (name in math) {\n return function (scope, args, context) {\n return scope.has(name) ? scope.get(name) : (0, _customs.getSafeProperty)(math, name);\n };\n } else {\n var isUnit = isValuelessUnit(name);\n return function (scope, args, context) {\n return scope.has(name) ? scope.get(name) : isUnit ? new Unit(null, name) : SymbolNode.onUndefinedSymbol(name);\n };\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n SymbolNode.prototype.forEach = function (callback) {// nothing to do, we don't have childs\n };\n /**\n * Create a new SymbolNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node) : Node} callback\n * @returns {SymbolNode} Returns a clone of the node\n */\n\n\n SymbolNode.prototype.map = function (callback) {\n return this.clone();\n };\n /**\n * Throws an error 'Undefined symbol {name}'\n * @param {string} name\n */\n\n\n SymbolNode.onUndefinedSymbol = function (name) {\n throw new Error('Undefined symbol ' + name);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {SymbolNode}\n */\n\n\n SymbolNode.prototype.clone = function () {\n return new SymbolNode(this.name);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n SymbolNode.prototype._toString = function (options) {\n return this.name;\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n SymbolNode.prototype.toHTML = function (options) {\n var name = (0, _string.escape)(this.name);\n\n if (name === 'true' || name === 'false') {\n return '' + name + '';\n } else if (name === 'i') {\n return '' + name + '';\n } else if (name === 'Infinity') {\n return '' + name + '';\n } else if (name === 'NaN') {\n return '' + name + '';\n } else if (name === 'null') {\n return '' + name + '';\n } else if (name === 'undefined') {\n return '' + name + '';\n }\n\n return '' + name + '';\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n SymbolNode.prototype.toJSON = function () {\n return {\n mathjs: 'SymbolNode',\n name: this.name\n };\n };\n /**\n * Instantiate a SymbolNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"SymbolNode\", name: \"x\"}`,\n * where mathjs is optional\n * @returns {SymbolNode}\n */\n\n\n SymbolNode.fromJSON = function (json) {\n return new SymbolNode(json.name);\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n\n SymbolNode.prototype._toTex = function (options) {\n var isUnit = false;\n\n if (typeof math[this.name] === 'undefined' && isValuelessUnit(this.name)) {\n isUnit = true;\n }\n\n var symbol = (0, _latex.toSymbol)(this.name, isUnit);\n\n if (symbol[0] === '\\\\') {\n // no space needed if the symbol starts with '\\'\n return symbol;\n } // the space prevents symbols from breaking stuff like '\\cdot' if it's written right before the symbol\n\n\n return ' ' + symbol;\n };\n\n return SymbolNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createSymbolNode = createSymbolNode;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSubScope = createSubScope;\n\nvar _map = require(\"./map.js\");\n\n/**\n * Create a new scope which can access the parent scope,\n * but does not affect it when written. This is suitable for variable definitions\n * within a block node, or function definition.\n *\n * If parent scope has a createSubScope method, it delegates to that. Otherwise,\n * creates an empty map, and copies the parent scope to it, adding in\n * the remaining `args`.\n *\n * @param {Map} parentScope\n * @param {...any} args\n * @returns {Map}\n */\nfunction createSubScope(parentScope) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n if (typeof parentScope.createSubScope === 'function') {\n return _map.assign.apply(void 0, [parentScope.createSubScope()].concat(args));\n }\n\n return _map.assign.apply(void 0, [(0, _map.createEmptyMap)(), parentScope].concat(args));\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFunctionNode = void 0;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _scope = require(\"../../utils/scope.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _latex = require(\"../../utils/latex.js\");\n\nvar name = 'FunctionNode';\nvar dependencies = ['math', 'Node', 'SymbolNode'];\nvar createFunctionNode = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var math = _ref.math,\n Node = _ref.Node,\n SymbolNode = _ref.SymbolNode;\n\n /**\n * @constructor FunctionNode\n * @extends {./Node}\n * invoke a list with arguments on a node\n * @param {./Node | string} fn Node resolving with a function on which to invoke\n * the arguments, typically a SymboNode or AccessorNode\n * @param {./Node[]} args\n */\n function FunctionNode(fn, args) {\n if (!(this instanceof FunctionNode)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (typeof fn === 'string') {\n fn = new SymbolNode(fn);\n } // validate input\n\n\n if (!(0, _is.isNode)(fn)) throw new TypeError('Node expected as parameter \"fn\"');\n\n if (!Array.isArray(args) || !args.every(_is.isNode)) {\n throw new TypeError('Array containing Nodes expected for parameter \"args\"');\n }\n\n this.fn = fn;\n this.args = args || []; // readonly property name\n\n Object.defineProperty(this, 'name', {\n get: function () {\n return this.fn.name || '';\n }.bind(this),\n set: function set() {\n throw new Error('Cannot assign a new name, name is read-only');\n }\n });\n }\n\n FunctionNode.prototype = new Node();\n FunctionNode.prototype.type = 'FunctionNode';\n FunctionNode.prototype.isFunctionNode = true;\n /* format to fixed length */\n\n var strin = function strin(entity) {\n return (0, _string.format)(entity, {\n truncate: 78\n });\n };\n /**\n * Compile a node into a JavaScript function.\n * This basically pre-calculates as much as possible and only leaves open\n * calculations which depend on a dynamic scope with variables.\n * @param {Object} math Math.js namespace with functions and constants.\n * @param {Object} argNames An object with argument names as key and `true`\n * as value. Used in the SymbolNode to optimize\n * for arguments from user assigned functions\n * (see FunctionAssignmentNode) or special symbols\n * like `end` (see IndexNode).\n * @return {function} Returns a function which can be called like:\n * evalNode(scope: Object, args: Object, context: *)\n */\n\n\n FunctionNode.prototype._compile = function (math, argNames) {\n if (!(this instanceof FunctionNode)) {\n throw new TypeError('No valid FunctionNode');\n } // compile arguments\n\n\n var evalArgs = this.args.map(function (arg) {\n return arg._compile(math, argNames);\n });\n\n if ((0, _is.isSymbolNode)(this.fn)) {\n var _name = this.fn.name;\n\n if (!argNames[_name]) {\n // we can statically determine whether the function has an rawArgs property\n var fn = _name in math ? (0, _customs.getSafeProperty)(math, _name) : undefined;\n var isRaw = typeof fn === 'function' && fn.rawArgs === true;\n\n var resolveFn = function resolveFn(scope) {\n var value;\n\n if (scope.has(_name)) {\n value = scope.get(_name);\n } else if (_name in math) {\n value = (0, _customs.getSafeProperty)(math, _name);\n } else {\n return FunctionNode.onUndefinedFunction(_name);\n }\n\n if (typeof value === 'function') {\n return value;\n }\n\n throw new TypeError(\"'\".concat(_name, \"' is not a function; its value is:\\n \").concat(strin(value)));\n };\n\n if (isRaw) {\n // pass unevaluated parameters (nodes) to the function\n // \"raw\" evaluation\n var rawArgs = this.args;\n return function evalFunctionNode(scope, args, context) {\n var fn = resolveFn(scope);\n return fn(rawArgs, math, (0, _scope.createSubScope)(scope, args), scope);\n };\n } else {\n // \"regular\" evaluation\n switch (evalArgs.length) {\n case 0:\n return function evalFunctionNode(scope, args, context) {\n var fn = resolveFn(scope);\n return fn();\n };\n\n case 1:\n return function evalFunctionNode(scope, args, context) {\n var fn = resolveFn(scope);\n var evalArg0 = evalArgs[0];\n return fn(evalArg0(scope, args, context));\n };\n\n case 2:\n return function evalFunctionNode(scope, args, context) {\n var fn = resolveFn(scope);\n var evalArg0 = evalArgs[0];\n var evalArg1 = evalArgs[1];\n return fn(evalArg0(scope, args, context), evalArg1(scope, args, context));\n };\n\n default:\n return function evalFunctionNode(scope, args, context) {\n var fn = resolveFn(scope);\n var values = evalArgs.map(function (evalArg) {\n return evalArg(scope, args, context);\n });\n return fn.apply(void 0, (0, _toConsumableArray2.default)(values));\n };\n }\n }\n } else {\n // the function symbol is an argName\n var _rawArgs = this.args;\n return function evalFunctionNode(scope, args, context) {\n var fn = args[_name];\n\n if (typeof fn !== 'function') {\n throw new TypeError(\"Argument '\".concat(_name, \"' was not a function; received: \").concat(strin(fn)));\n }\n\n if (fn.rawArgs) {\n return fn(_rawArgs, math, (0, _scope.createSubScope)(scope, args), scope); // \"raw\" evaluation\n } else {\n var values = evalArgs.map(function (evalArg) {\n return evalArg(scope, args, context);\n });\n return fn.apply(fn, values);\n }\n };\n }\n } else if ((0, _is.isAccessorNode)(this.fn) && (0, _is.isIndexNode)(this.fn.index) && this.fn.index.isObjectProperty()) {\n // execute the function with the right context: the object of the AccessorNode\n var evalObject = this.fn.object._compile(math, argNames);\n\n var prop = this.fn.index.getObjectProperty();\n var _rawArgs2 = this.args;\n return function evalFunctionNode(scope, args, context) {\n var object = evalObject(scope, args, context);\n (0, _customs.validateSafeMethod)(object, prop);\n var isRaw = object[prop] && object[prop].rawArgs;\n\n if (isRaw) {\n return object[prop](_rawArgs2, math, (0, _scope.createSubScope)(scope, args), scope); // \"raw\" evaluation\n } else {\n // \"regular\" evaluation\n var values = evalArgs.map(function (evalArg) {\n return evalArg(scope, args, context);\n });\n return object[prop].apply(object, values);\n }\n };\n } else {\n // node.fn.isAccessorNode && !node.fn.index.isObjectProperty()\n // we have to dynamically determine whether the function has a rawArgs property\n var fnExpr = this.fn.toString();\n\n var evalFn = this.fn._compile(math, argNames);\n\n var _rawArgs3 = this.args;\n return function evalFunctionNode(scope, args, context) {\n var fn = evalFn(scope, args, context);\n\n if (typeof fn !== 'function') {\n throw new TypeError(\"Expression '\".concat(fnExpr, \"' did not evaluate to a function; value is:\") + \"\\n \".concat(strin(fn)));\n }\n\n if (fn.rawArgs) {\n return fn(_rawArgs3, math, (0, _scope.createSubScope)(scope, args), scope); // \"raw\" evaluation\n } else {\n // \"regular\" evaluation\n var values = evalArgs.map(function (evalArg) {\n return evalArg(scope, args, context);\n });\n return fn.apply(fn, values);\n }\n };\n }\n };\n /**\n * Execute a callback for each of the child nodes of this node\n * @param {function(child: Node, path: string, parent: Node)} callback\n */\n\n\n FunctionNode.prototype.forEach = function (callback) {\n callback(this.fn, 'fn', this);\n\n for (var i = 0; i < this.args.length; i++) {\n callback(this.args[i], 'args[' + i + ']', this);\n }\n };\n /**\n * Create a new FunctionNode having it's childs be the results of calling\n * the provided callback function for each of the childs of the original node.\n * @param {function(child: Node, path: string, parent: Node): Node} callback\n * @returns {FunctionNode} Returns a transformed copy of the node\n */\n\n\n FunctionNode.prototype.map = function (callback) {\n var fn = this._ifNode(callback(this.fn, 'fn', this));\n\n var args = [];\n\n for (var i = 0; i < this.args.length; i++) {\n args[i] = this._ifNode(callback(this.args[i], 'args[' + i + ']', this));\n }\n\n return new FunctionNode(fn, args);\n };\n /**\n * Create a clone of this node, a shallow copy\n * @return {FunctionNode}\n */\n\n\n FunctionNode.prototype.clone = function () {\n return new FunctionNode(this.fn, this.args.slice(0));\n };\n /**\n * Throws an error 'Undefined function {name}'\n * @param {string} name\n */\n\n\n FunctionNode.onUndefinedFunction = function (name) {\n throw new Error('Undefined function ' + name);\n }; // backup Node's toString function\n // @private\n\n\n var nodeToString = FunctionNode.prototype.toString;\n /**\n * Get string representation. (wrapper function)\n * This overrides parts of Node's toString function.\n * If callback is an object containing callbacks, it\n * calls the correct callback for the current node,\n * otherwise it falls back to calling Node's toString\n * function.\n *\n * @param {Object} options\n * @return {string} str\n * @override\n */\n\n FunctionNode.prototype.toString = function (options) {\n var customString;\n var name = this.fn.toString(options);\n\n if (options && (0, _typeof2.default)(options.handler) === 'object' && (0, _object.hasOwnProperty)(options.handler, name)) {\n // callback is a map of callback functions\n customString = options.handler[name](this, options);\n }\n\n if (typeof customString !== 'undefined') {\n return customString;\n } // fall back to Node's toString\n\n\n return nodeToString.call(this, options);\n };\n /**\n * Get string representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n FunctionNode.prototype._toString = function (options) {\n var args = this.args.map(function (arg) {\n return arg.toString(options);\n });\n var fn = (0, _is.isFunctionAssignmentNode)(this.fn) ? '(' + this.fn.toString(options) + ')' : this.fn.toString(options); // format the arguments like \"add(2, 4.2)\"\n\n return fn + '(' + args.join(', ') + ')';\n };\n /**\n * Get a JSON representation of the node\n * @returns {Object}\n */\n\n\n FunctionNode.prototype.toJSON = function () {\n return {\n mathjs: 'FunctionNode',\n fn: this.fn,\n args: this.args\n };\n };\n /**\n * Instantiate an AssignmentNode from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"FunctionNode\", fn: ..., args: ...}`,\n * where mathjs is optional\n * @returns {FunctionNode}\n */\n\n\n FunctionNode.fromJSON = function (json) {\n return new FunctionNode(json.fn, json.args);\n };\n /**\n * Get HTML representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n FunctionNode.prototype.toHTML = function (options) {\n var args = this.args.map(function (arg) {\n return arg.toHTML(options);\n }); // format the arguments like \"add(2, 4.2)\"\n\n return '' + (0, _string.escape)(this.fn) + '(' + args.join(',') + ')';\n };\n /*\n * Expand a LaTeX template\n *\n * @param {string} template\n * @param {Node} node\n * @param {Object} options\n * @private\n **/\n\n\n function expandTemplate(template, node, options) {\n var latex = ''; // Match everything of the form ${identifier} or ${identifier[2]} or $$\n // while submatching identifier and 2 (in the second case)\n\n var regex = /\\$(?:\\{([a-z_][a-z_0-9]*)(?:\\[([0-9]+)\\])?\\}|\\$)/gi;\n var inputPos = 0; // position in the input string\n\n var match;\n\n while ((match = regex.exec(template)) !== null) {\n // go through all matches\n // add everything in front of the match to the LaTeX string\n latex += template.substring(inputPos, match.index);\n inputPos = match.index;\n\n if (match[0] === '$$') {\n // escaped dollar sign\n latex += '$';\n inputPos++;\n } else {\n // template parameter\n inputPos += match[0].length;\n var property = node[match[1]];\n\n if (!property) {\n throw new ReferenceError('Template: Property ' + match[1] + ' does not exist.');\n }\n\n if (match[2] === undefined) {\n // no square brackets\n switch ((0, _typeof2.default)(property)) {\n case 'string':\n latex += property;\n break;\n\n case 'object':\n if ((0, _is.isNode)(property)) {\n latex += property.toTex(options);\n } else if (Array.isArray(property)) {\n // make array of Nodes into comma separated list\n latex += property.map(function (arg, index) {\n if ((0, _is.isNode)(arg)) {\n return arg.toTex(options);\n }\n\n throw new TypeError('Template: ' + match[1] + '[' + index + '] is not a Node.');\n }).join(',');\n } else {\n throw new TypeError('Template: ' + match[1] + ' has to be a Node, String or array of Nodes');\n }\n\n break;\n\n default:\n throw new TypeError('Template: ' + match[1] + ' has to be a Node, String or array of Nodes');\n }\n } else {\n // with square brackets\n if ((0, _is.isNode)(property[match[2]] && property[match[2]])) {\n latex += property[match[2]].toTex(options);\n } else {\n throw new TypeError('Template: ' + match[1] + '[' + match[2] + '] is not a Node.');\n }\n }\n }\n }\n\n latex += template.slice(inputPos); // append rest of the template\n\n return latex;\n } // backup Node's toTex function\n // @private\n\n\n var nodeToTex = FunctionNode.prototype.toTex;\n /**\n * Get LaTeX representation. (wrapper function)\n * This overrides parts of Node's toTex function.\n * If callback is an object containing callbacks, it\n * calls the correct callback for the current node,\n * otherwise it falls back to calling Node's toTex\n * function.\n *\n * @param {Object} options\n * @return {string}\n */\n\n FunctionNode.prototype.toTex = function (options) {\n var customTex;\n\n if (options && (0, _typeof2.default)(options.handler) === 'object' && (0, _object.hasOwnProperty)(options.handler, this.name)) {\n // callback is a map of callback functions\n customTex = options.handler[this.name](this, options);\n }\n\n if (typeof customTex !== 'undefined') {\n return customTex;\n } // fall back to Node's toTex\n\n\n return nodeToTex.call(this, options);\n };\n /**\n * Get LaTeX representation\n * @param {Object} options\n * @return {string} str\n */\n\n\n FunctionNode.prototype._toTex = function (options) {\n var args = this.args.map(function (arg) {\n // get LaTeX of the arguments\n return arg.toTex(options);\n });\n var latexConverter;\n\n if (_latex.latexFunctions[this.name]) {\n latexConverter = _latex.latexFunctions[this.name];\n } // toTex property on the function itself\n\n\n if (math[this.name] && (typeof math[this.name].toTex === 'function' || (0, _typeof2.default)(math[this.name].toTex) === 'object' || typeof math[this.name].toTex === 'string')) {\n // .toTex is a callback function\n latexConverter = math[this.name].toTex;\n }\n\n var customToTex;\n\n switch ((0, _typeof2.default)(latexConverter)) {\n case 'function':\n // a callback function\n customToTex = latexConverter(this, options);\n break;\n\n case 'string':\n // a template string\n customToTex = expandTemplate(latexConverter, this, options);\n break;\n\n case 'object':\n // an object with different \"converters\" for different numbers of arguments\n switch ((0, _typeof2.default)(latexConverter[args.length])) {\n case 'function':\n customToTex = latexConverter[args.length](this, options);\n break;\n\n case 'string':\n customToTex = expandTemplate(latexConverter[args.length], this, options);\n break;\n }\n\n }\n\n if (typeof customToTex !== 'undefined') {\n return customToTex;\n }\n\n return expandTemplate(_latex.defaultTemplate, this, options);\n };\n /**\n * Get identifier.\n * @return {string}\n */\n\n\n FunctionNode.prototype.getIdentifier = function () {\n return this.type + ':' + this.name;\n };\n\n return FunctionNode;\n}, {\n isClass: true,\n isNode: true\n});\nexports.createFunctionNode = createFunctionNode;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createParse = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar _is = require(\"../utils/is.js\");\n\nvar _collection = require(\"../utils/collection.js\");\n\nvar _object = require(\"../utils/object.js\");\n\nvar name = 'parse';\nvar dependencies = ['typed', 'numeric', 'config', 'AccessorNode', 'ArrayNode', 'AssignmentNode', 'BlockNode', 'ConditionalNode', 'ConstantNode', 'FunctionAssignmentNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'ParenthesisNode', 'RangeNode', 'RelationalNode', 'SymbolNode'];\nvar createParse = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n numeric = _ref.numeric,\n config = _ref.config,\n AccessorNode = _ref.AccessorNode,\n ArrayNode = _ref.ArrayNode,\n AssignmentNode = _ref.AssignmentNode,\n BlockNode = _ref.BlockNode,\n ConditionalNode = _ref.ConditionalNode,\n ConstantNode = _ref.ConstantNode,\n FunctionAssignmentNode = _ref.FunctionAssignmentNode,\n FunctionNode = _ref.FunctionNode,\n IndexNode = _ref.IndexNode,\n ObjectNode = _ref.ObjectNode,\n OperatorNode = _ref.OperatorNode,\n ParenthesisNode = _ref.ParenthesisNode,\n RangeNode = _ref.RangeNode,\n RelationalNode = _ref.RelationalNode,\n SymbolNode = _ref.SymbolNode;\n\n /**\n * Parse an expression. Returns a node tree, which can be evaluated by\n * invoking node.evaluate().\n *\n * Note the evaluating arbitrary expressions may involve security risks,\n * see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.\n *\n * Syntax:\n *\n * math.parse(expr)\n * math.parse(expr, options)\n * math.parse([expr1, expr2, expr3, ...])\n * math.parse([expr1, expr2, expr3, ...], options)\n *\n * Example:\n *\n * const node1 = math.parse('sqrt(3^2 + 4^2)')\n * node1.compile().evaluate() // 5\n *\n * let scope = {a:3, b:4}\n * const node2 = math.parse('a * b') // 12\n * const code2 = node2.compile()\n * code2.evaluate(scope) // 12\n * scope.a = 5\n * code2.evaluate(scope) // 20\n *\n * const nodes = math.parse(['a = 3', 'b = 4', 'a * b'])\n * nodes[2].compile().evaluate() // 12\n *\n * See also:\n *\n * evaluate, compile\n *\n * @param {string | string[] | Matrix} expr Expression to be parsed\n * @param {{nodes: Object}} [options] Available options:\n * - `nodes` a set of custom nodes\n * @return {Node | Node[]} node\n * @throws {Error}\n */\n var parse = typed(name, {\n string: function string(expression) {\n return parseStart(expression, {});\n },\n 'Array | Matrix': function ArrayMatrix(expressions) {\n return parseMultiple(expressions, {});\n },\n 'string, Object': function stringObject(expression, options) {\n var extraNodes = options.nodes !== undefined ? options.nodes : {};\n return parseStart(expression, extraNodes);\n },\n 'Array | Matrix, Object': parseMultiple\n });\n\n function parseMultiple(expressions) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var extraNodes = options.nodes !== undefined ? options.nodes : {}; // parse an array or matrix with expressions\n\n return (0, _collection.deepMap)(expressions, function (elem) {\n if (typeof elem !== 'string') throw new TypeError('String expected');\n return parseStart(elem, extraNodes);\n });\n } // token types enumeration\n\n\n var TOKENTYPE = {\n NULL: 0,\n DELIMITER: 1,\n NUMBER: 2,\n SYMBOL: 3,\n UNKNOWN: 4\n }; // map with all delimiters\n\n var DELIMITERS = {\n ',': true,\n '(': true,\n ')': true,\n '[': true,\n ']': true,\n '{': true,\n '}': true,\n '\"': true,\n '\\'': true,\n ';': true,\n '+': true,\n '-': true,\n '*': true,\n '.*': true,\n '/': true,\n './': true,\n '%': true,\n '^': true,\n '.^': true,\n '~': true,\n '!': true,\n '&': true,\n '|': true,\n '^|': true,\n '=': true,\n ':': true,\n '?': true,\n '==': true,\n '!=': true,\n '<': true,\n '>': true,\n '<=': true,\n '>=': true,\n '<<': true,\n '>>': true,\n '>>>': true\n }; // map with all named delimiters\n\n var NAMED_DELIMITERS = {\n mod: true,\n to: true,\n in: true,\n and: true,\n xor: true,\n or: true,\n not: true\n };\n var CONSTANTS = {\n true: true,\n false: false,\n null: null,\n undefined: undefined\n };\n var NUMERIC_CONSTANTS = ['NaN', 'Infinity'];\n\n function initialState() {\n return {\n extraNodes: {},\n // current extra nodes, must be careful not to mutate\n expression: '',\n // current expression\n comment: '',\n // last parsed comment\n index: 0,\n // current index in expr\n token: '',\n // current token\n tokenType: TOKENTYPE.NULL,\n // type of the token\n nestingLevel: 0,\n // level of nesting inside parameters, used to ignore newline characters\n conditionalLevel: null // when a conditional is being parsed, the level of the conditional is stored here\n\n };\n }\n /**\n * View upto `length` characters of the expression starting at the current character.\n *\n * @param {Object} state\n * @param {number} [length=1] Number of characters to view\n * @returns {string}\n * @private\n */\n\n\n function currentString(state, length) {\n return state.expression.substr(state.index, length);\n }\n /**\n * View the current character. Returns '' if end of expression is reached.\n *\n * @param {Object} state\n * @returns {string}\n * @private\n */\n\n\n function currentCharacter(state) {\n return currentString(state, 1);\n }\n /**\n * Get the next character from the expression.\n * The character is stored into the char c. If the end of the expression is\n * reached, the function puts an empty string in c.\n * @private\n */\n\n\n function next(state) {\n state.index++;\n }\n /**\n * Preview the previous character from the expression.\n * @return {string} cNext\n * @private\n */\n\n\n function prevCharacter(state) {\n return state.expression.charAt(state.index - 1);\n }\n /**\n * Preview the next character from the expression.\n * @return {string} cNext\n * @private\n */\n\n\n function nextCharacter(state) {\n return state.expression.charAt(state.index + 1);\n }\n /**\n * Get next token in the current string expr.\n * The token and token type are available as token and tokenType\n * @private\n */\n\n\n function getToken(state) {\n state.tokenType = TOKENTYPE.NULL;\n state.token = '';\n state.comment = ''; // skip over ignored characters:\n\n while (true) {\n // comments:\n if (currentCharacter(state) === '#') {\n while (currentCharacter(state) !== '\\n' && currentCharacter(state) !== '') {\n state.comment += currentCharacter(state);\n next(state);\n }\n } // whitespace: space, tab, and newline when inside parameters\n\n\n if (parse.isWhitespace(currentCharacter(state), state.nestingLevel)) {\n next(state);\n } else {\n break;\n }\n } // check for end of expression\n\n\n if (currentCharacter(state) === '') {\n // token is still empty\n state.tokenType = TOKENTYPE.DELIMITER;\n return;\n } // check for new line character\n\n\n if (currentCharacter(state) === '\\n' && !state.nestingLevel) {\n state.tokenType = TOKENTYPE.DELIMITER;\n state.token = currentCharacter(state);\n next(state);\n return;\n }\n\n var c1 = currentCharacter(state);\n var c2 = currentString(state, 2);\n var c3 = currentString(state, 3);\n\n if (c3.length === 3 && DELIMITERS[c3]) {\n state.tokenType = TOKENTYPE.DELIMITER;\n state.token = c3;\n next(state);\n next(state);\n next(state);\n return;\n } // check for delimiters consisting of 2 characters\n\n\n if (c2.length === 2 && DELIMITERS[c2]) {\n state.tokenType = TOKENTYPE.DELIMITER;\n state.token = c2;\n next(state);\n next(state);\n return;\n } // check for delimiters consisting of 1 character\n\n\n if (DELIMITERS[c1]) {\n state.tokenType = TOKENTYPE.DELIMITER;\n state.token = c1;\n next(state);\n return;\n } // check for a number\n\n\n if (parse.isDigitDot(c1)) {\n state.tokenType = TOKENTYPE.NUMBER; // check for binary, octal, or hex\n\n var _c = currentString(state, 2);\n\n if (_c === '0b' || _c === '0o' || _c === '0x') {\n state.token += currentCharacter(state);\n next(state);\n state.token += currentCharacter(state);\n next(state);\n\n while (parse.isHexDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n\n if (currentCharacter(state) === '.') {\n // this number has a radix point\n state.token += '.';\n next(state); // get the digits after the radix\n\n while (parse.isHexDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n } else if (currentCharacter(state) === 'i') {\n // this number has a word size suffix\n state.token += 'i';\n next(state); // get the word size\n\n while (parse.isDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n }\n\n return;\n } // get number, can have a single dot\n\n\n if (currentCharacter(state) === '.') {\n state.token += currentCharacter(state);\n next(state);\n\n if (!parse.isDigit(currentCharacter(state))) {\n // this is no number, it is just a dot (can be dot notation)\n state.tokenType = TOKENTYPE.DELIMITER;\n return;\n }\n } else {\n while (parse.isDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n\n if (parse.isDecimalMark(currentCharacter(state), nextCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n }\n\n while (parse.isDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n } // check for exponential notation like \"2.3e-4\", \"1.23e50\" or \"2e+4\"\n\n\n if (currentCharacter(state) === 'E' || currentCharacter(state) === 'e') {\n if (parse.isDigit(nextCharacter(state)) || nextCharacter(state) === '-' || nextCharacter(state) === '+') {\n state.token += currentCharacter(state);\n next(state);\n\n if (currentCharacter(state) === '+' || currentCharacter(state) === '-') {\n state.token += currentCharacter(state);\n next(state);\n } // Scientific notation MUST be followed by an exponent\n\n\n if (!parse.isDigit(currentCharacter(state))) {\n throw createSyntaxError(state, 'Digit expected, got \"' + currentCharacter(state) + '\"');\n }\n\n while (parse.isDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n\n if (parse.isDecimalMark(currentCharacter(state), nextCharacter(state))) {\n throw createSyntaxError(state, 'Digit expected, got \"' + currentCharacter(state) + '\"');\n }\n } else if (nextCharacter(state) === '.') {\n next(state);\n throw createSyntaxError(state, 'Digit expected, got \"' + currentCharacter(state) + '\"');\n }\n }\n\n return;\n } // check for variables, functions, named operators\n\n\n if (parse.isAlpha(currentCharacter(state), prevCharacter(state), nextCharacter(state))) {\n while (parse.isAlpha(currentCharacter(state), prevCharacter(state), nextCharacter(state)) || parse.isDigit(currentCharacter(state))) {\n state.token += currentCharacter(state);\n next(state);\n }\n\n if ((0, _object.hasOwnProperty)(NAMED_DELIMITERS, state.token)) {\n state.tokenType = TOKENTYPE.DELIMITER;\n } else {\n state.tokenType = TOKENTYPE.SYMBOL;\n }\n\n return;\n } // something unknown is found, wrong characters -> a syntax error\n\n\n state.tokenType = TOKENTYPE.UNKNOWN;\n\n while (currentCharacter(state) !== '') {\n state.token += currentCharacter(state);\n next(state);\n }\n\n throw createSyntaxError(state, 'Syntax error in part \"' + state.token + '\"');\n }\n /**\n * Get next token and skip newline tokens\n */\n\n\n function getTokenSkipNewline(state) {\n do {\n getToken(state);\n } while (state.token === '\\n'); // eslint-disable-line no-unmodified-loop-condition\n\n }\n /**\n * Open parameters.\n * New line characters will be ignored until closeParams(state) is called\n */\n\n\n function openParams(state) {\n state.nestingLevel++;\n }\n /**\n * Close parameters.\n * New line characters will no longer be ignored\n */\n\n\n function closeParams(state) {\n state.nestingLevel--;\n }\n /**\n * Checks whether the current character `c` is a valid alpha character:\n *\n * - A latin letter (upper or lower case) Ascii: a-z, A-Z\n * - An underscore Ascii: _\n * - A dollar sign Ascii: $\n * - A latin letter with accents Unicode: \\u00C0 - \\u02AF\n * - A greek letter Unicode: \\u0370 - \\u03FF\n * - A mathematical alphanumeric symbol Unicode: \\u{1D400} - \\u{1D7FF} excluding invalid code points\n *\n * The previous and next characters are needed to determine whether\n * this character is part of a unicode surrogate pair.\n *\n * @param {string} c Current character in the expression\n * @param {string} cPrev Previous character\n * @param {string} cNext Next character\n * @return {boolean}\n */\n\n\n parse.isAlpha = function isAlpha(c, cPrev, cNext) {\n return parse.isValidLatinOrGreek(c) || parse.isValidMathSymbol(c, cNext) || parse.isValidMathSymbol(cPrev, c);\n };\n /**\n * Test whether a character is a valid latin, greek, or letter-like character\n * @param {string} c\n * @return {boolean}\n */\n\n\n parse.isValidLatinOrGreek = function isValidLatinOrGreek(c) {\n return /^[a-zA-Z_$\\u00C0-\\u02AF\\u0370-\\u03FF\\u2100-\\u214F]$/.test(c);\n };\n /**\n * Test whether two given 16 bit characters form a surrogate pair of a\n * unicode math symbol.\n *\n * https://unicode-table.com/en/\n * https://www.wikiwand.com/en/Mathematical_operators_and_symbols_in_Unicode\n *\n * Note: In ES6 will be unicode aware:\n * https://stackoverflow.com/questions/280712/javascript-unicode-regexes\n * https://mathiasbynens.be/notes/es6-unicode-regex\n *\n * @param {string} high\n * @param {string} low\n * @return {boolean}\n */\n\n\n parse.isValidMathSymbol = function isValidMathSymbol(high, low) {\n return /^[\\uD835]$/.test(high) && /^[\\uDC00-\\uDFFF]$/.test(low) && /^[^\\uDC55\\uDC9D\\uDCA0\\uDCA1\\uDCA3\\uDCA4\\uDCA7\\uDCA8\\uDCAD\\uDCBA\\uDCBC\\uDCC4\\uDD06\\uDD0B\\uDD0C\\uDD15\\uDD1D\\uDD3A\\uDD3F\\uDD45\\uDD47-\\uDD49\\uDD51\\uDEA6\\uDEA7\\uDFCC\\uDFCD]$/.test(low);\n };\n /**\n * Check whether given character c is a white space character: space, tab, or enter\n * @param {string} c\n * @param {number} nestingLevel\n * @return {boolean}\n */\n\n\n parse.isWhitespace = function isWhitespace(c, nestingLevel) {\n // TODO: also take '\\r' carriage return as newline? Or does that give problems on mac?\n return c === ' ' || c === '\\t' || c === '\\n' && nestingLevel > 0;\n };\n /**\n * Test whether the character c is a decimal mark (dot).\n * This is the case when it's not the start of a delimiter '.*', './', or '.^'\n * @param {string} c\n * @param {string} cNext\n * @return {boolean}\n */\n\n\n parse.isDecimalMark = function isDecimalMark(c, cNext) {\n return c === '.' && cNext !== '/' && cNext !== '*' && cNext !== '^';\n };\n /**\n * checks if the given char c is a digit or dot\n * @param {string} c a string with one character\n * @return {boolean}\n */\n\n\n parse.isDigitDot = function isDigitDot(c) {\n return c >= '0' && c <= '9' || c === '.';\n };\n /**\n * checks if the given char c is a digit\n * @param {string} c a string with one character\n * @return {boolean}\n */\n\n\n parse.isDigit = function isDigit(c) {\n return c >= '0' && c <= '9';\n };\n /**\n * checks if the given char c is a hex digit\n * @param {string} c a string with one character\n * @return {boolean}\n */\n\n\n parse.isHexDigit = function isHexDigit(c) {\n return c >= '0' && c <= '9' || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F';\n };\n /**\n * Start of the parse levels below, in order of precedence\n * @return {Node} node\n * @private\n */\n\n\n function parseStart(expression, extraNodes) {\n var state = initialState();\n (0, _extends2.default)(state, {\n expression: expression,\n extraNodes: extraNodes\n });\n getToken(state);\n var node = parseBlock(state); // check for garbage at the end of the expression\n // an expression ends with a empty character '' and tokenType DELIMITER\n\n if (state.token !== '') {\n if (state.tokenType === TOKENTYPE.DELIMITER) {\n // user entered a not existing operator like \"//\"\n // TODO: give hints for aliases, for example with \"<>\" give as hint \" did you mean !== ?\"\n throw createError(state, 'Unexpected operator ' + state.token);\n } else {\n throw createSyntaxError(state, 'Unexpected part \"' + state.token + '\"');\n }\n }\n\n return node;\n }\n /**\n * Parse a block with expressions. Expressions can be separated by a newline\n * character '\\n', or by a semicolon ';'. In case of a semicolon, no output\n * of the preceding line is returned.\n * @return {Node} node\n * @private\n */\n\n\n function parseBlock(state) {\n var node;\n var blocks = [];\n var visible;\n\n if (state.token !== '' && state.token !== '\\n' && state.token !== ';') {\n node = parseAssignment(state);\n node.comment = state.comment;\n } // TODO: simplify this loop\n\n\n while (state.token === '\\n' || state.token === ';') {\n // eslint-disable-line no-unmodified-loop-condition\n if (blocks.length === 0 && node) {\n visible = state.token !== ';';\n blocks.push({\n node: node,\n visible: visible\n });\n }\n\n getToken(state);\n\n if (state.token !== '\\n' && state.token !== ';' && state.token !== '') {\n node = parseAssignment(state);\n node.comment = state.comment;\n visible = state.token !== ';';\n blocks.push({\n node: node,\n visible: visible\n });\n }\n }\n\n if (blocks.length > 0) {\n return new BlockNode(blocks);\n } else {\n if (!node) {\n node = new ConstantNode(undefined);\n node.comment = state.comment;\n }\n\n return node;\n }\n }\n /**\n * Assignment of a function or variable,\n * - can be a variable like 'a=2.3'\n * - or a updating an existing variable like 'matrix(2,3:5)=[6,7,8]'\n * - defining a function like 'f(x) = x^2'\n * @return {Node} node\n * @private\n */\n\n\n function parseAssignment(state) {\n var name, args, value, valid;\n var node = parseConditional(state);\n\n if (state.token === '=') {\n if ((0, _is.isSymbolNode)(node)) {\n // parse a variable assignment like 'a = 2/3'\n name = node.name;\n getTokenSkipNewline(state);\n value = parseAssignment(state);\n return new AssignmentNode(new SymbolNode(name), value);\n } else if ((0, _is.isAccessorNode)(node)) {\n // parse a matrix subset assignment like 'A[1,2] = 4'\n getTokenSkipNewline(state);\n value = parseAssignment(state);\n return new AssignmentNode(node.object, node.index, value);\n } else if ((0, _is.isFunctionNode)(node) && (0, _is.isSymbolNode)(node.fn)) {\n // parse function assignment like 'f(x) = x^2'\n valid = true;\n args = [];\n name = node.name;\n node.args.forEach(function (arg, index) {\n if ((0, _is.isSymbolNode)(arg)) {\n args[index] = arg.name;\n } else {\n valid = false;\n }\n });\n\n if (valid) {\n getTokenSkipNewline(state);\n value = parseAssignment(state);\n return new FunctionAssignmentNode(name, args, value);\n }\n }\n\n throw createSyntaxError(state, 'Invalid left hand side of assignment operator =');\n }\n\n return node;\n }\n /**\n * conditional operation\n *\n * condition ? truePart : falsePart\n *\n * Note: conditional operator is right-associative\n *\n * @return {Node} node\n * @private\n */\n\n\n function parseConditional(state) {\n var node = parseLogicalOr(state);\n\n while (state.token === '?') {\n // eslint-disable-line no-unmodified-loop-condition\n // set a conditional level, the range operator will be ignored as long\n // as conditionalLevel === state.nestingLevel.\n var prev = state.conditionalLevel;\n state.conditionalLevel = state.nestingLevel;\n getTokenSkipNewline(state);\n var condition = node;\n var trueExpr = parseAssignment(state);\n if (state.token !== ':') throw createSyntaxError(state, 'False part of conditional expression expected');\n state.conditionalLevel = null;\n getTokenSkipNewline(state);\n var falseExpr = parseAssignment(state); // Note: check for conditional operator again, right associativity\n\n node = new ConditionalNode(condition, trueExpr, falseExpr); // restore the previous conditional level\n\n state.conditionalLevel = prev;\n }\n\n return node;\n }\n /**\n * logical or, 'x or y'\n * @return {Node} node\n * @private\n */\n\n\n function parseLogicalOr(state) {\n var node = parseLogicalXor(state);\n\n while (state.token === 'or') {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n node = new OperatorNode('or', 'or', [node, parseLogicalXor(state)]);\n }\n\n return node;\n }\n /**\n * logical exclusive or, 'x xor y'\n * @return {Node} node\n * @private\n */\n\n\n function parseLogicalXor(state) {\n var node = parseLogicalAnd(state);\n\n while (state.token === 'xor') {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n node = new OperatorNode('xor', 'xor', [node, parseLogicalAnd(state)]);\n }\n\n return node;\n }\n /**\n * logical and, 'x and y'\n * @return {Node} node\n * @private\n */\n\n\n function parseLogicalAnd(state) {\n var node = parseBitwiseOr(state);\n\n while (state.token === 'and') {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n node = new OperatorNode('and', 'and', [node, parseBitwiseOr(state)]);\n }\n\n return node;\n }\n /**\n * bitwise or, 'x | y'\n * @return {Node} node\n * @private\n */\n\n\n function parseBitwiseOr(state) {\n var node = parseBitwiseXor(state);\n\n while (state.token === '|') {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n node = new OperatorNode('|', 'bitOr', [node, parseBitwiseXor(state)]);\n }\n\n return node;\n }\n /**\n * bitwise exclusive or (xor), 'x ^| y'\n * @return {Node} node\n * @private\n */\n\n\n function parseBitwiseXor(state) {\n var node = parseBitwiseAnd(state);\n\n while (state.token === '^|') {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n node = new OperatorNode('^|', 'bitXor', [node, parseBitwiseAnd(state)]);\n }\n\n return node;\n }\n /**\n * bitwise and, 'x & y'\n * @return {Node} node\n * @private\n */\n\n\n function parseBitwiseAnd(state) {\n var node = parseRelational(state);\n\n while (state.token === '&') {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n node = new OperatorNode('&', 'bitAnd', [node, parseRelational(state)]);\n }\n\n return node;\n }\n /**\n * Parse a chained conditional, like 'a > b >= c'\n * @return {Node} node\n */\n\n\n function parseRelational(state) {\n var params = [parseShift(state)];\n var conditionals = [];\n var operators = {\n '==': 'equal',\n '!=': 'unequal',\n '<': 'smaller',\n '>': 'larger',\n '<=': 'smallerEq',\n '>=': 'largerEq'\n };\n\n while ((0, _object.hasOwnProperty)(operators, state.token)) {\n // eslint-disable-line no-unmodified-loop-condition\n var cond = {\n name: state.token,\n fn: operators[state.token]\n };\n conditionals.push(cond);\n getTokenSkipNewline(state);\n params.push(parseShift(state));\n }\n\n if (params.length === 1) {\n return params[0];\n } else if (params.length === 2) {\n return new OperatorNode(conditionals[0].name, conditionals[0].fn, params);\n } else {\n return new RelationalNode(conditionals.map(function (c) {\n return c.fn;\n }), params);\n }\n }\n /**\n * Bitwise left shift, bitwise right arithmetic shift, bitwise right logical shift\n * @return {Node} node\n * @private\n */\n\n\n function parseShift(state) {\n var node, name, fn, params;\n node = parseConversion(state);\n var operators = {\n '<<': 'leftShift',\n '>>': 'rightArithShift',\n '>>>': 'rightLogShift'\n };\n\n while ((0, _object.hasOwnProperty)(operators, state.token)) {\n name = state.token;\n fn = operators[name];\n getTokenSkipNewline(state);\n params = [node, parseConversion(state)];\n node = new OperatorNode(name, fn, params);\n }\n\n return node;\n }\n /**\n * conversion operators 'to' and 'in'\n * @return {Node} node\n * @private\n */\n\n\n function parseConversion(state) {\n var node, name, fn, params;\n node = parseRange(state);\n var operators = {\n to: 'to',\n in: 'to' // alias of 'to'\n\n };\n\n while ((0, _object.hasOwnProperty)(operators, state.token)) {\n name = state.token;\n fn = operators[name];\n getTokenSkipNewline(state);\n\n if (name === 'in' && state.token === '') {\n // end of expression -> this is the unit 'in' ('inch')\n node = new OperatorNode('*', 'multiply', [node, new SymbolNode('in')], true);\n } else {\n // operator 'a to b' or 'a in b'\n params = [node, parseRange(state)];\n node = new OperatorNode(name, fn, params);\n }\n }\n\n return node;\n }\n /**\n * parse range, \"start:end\", \"start:step:end\", \":\", \"start:\", \":end\", etc\n * @return {Node} node\n * @private\n */\n\n\n function parseRange(state) {\n var node;\n var params = [];\n\n if (state.token === ':') {\n // implicit start=1 (one-based)\n node = new ConstantNode(1);\n } else {\n // explicit start\n node = parseAddSubtract(state);\n }\n\n if (state.token === ':' && state.conditionalLevel !== state.nestingLevel) {\n // we ignore the range operator when a conditional operator is being processed on the same level\n params.push(node); // parse step and end\n\n while (state.token === ':' && params.length < 3) {\n // eslint-disable-line no-unmodified-loop-condition\n getTokenSkipNewline(state);\n\n if (state.token === ')' || state.token === ']' || state.token === ',' || state.token === '') {\n // implicit end\n params.push(new SymbolNode('end'));\n } else {\n // explicit end\n params.push(parseAddSubtract(state));\n }\n }\n\n if (params.length === 3) {\n // params = [start, step, end]\n node = new RangeNode(params[0], params[2], params[1]); // start, end, step\n } else {\n // length === 2\n // params = [start, end]\n node = new RangeNode(params[0], params[1]); // start, end\n }\n }\n\n return node;\n }\n /**\n * add or subtract\n * @return {Node} node\n * @private\n */\n\n\n function parseAddSubtract(state) {\n var node, name, fn, params;\n node = parseMultiplyDivide(state);\n var operators = {\n '+': 'add',\n '-': 'subtract'\n };\n\n while ((0, _object.hasOwnProperty)(operators, state.token)) {\n name = state.token;\n fn = operators[name];\n getTokenSkipNewline(state);\n var rightNode = parseMultiplyDivide(state);\n\n if (rightNode.isPercentage) {\n params = [node, new OperatorNode('*', 'multiply', [node, rightNode])];\n } else {\n params = [node, rightNode];\n }\n\n node = new OperatorNode(name, fn, params);\n }\n\n return node;\n }\n /**\n * multiply, divide, modulus\n * @return {Node} node\n * @private\n */\n\n\n function parseMultiplyDivide(state) {\n var node, last, name, fn;\n node = parseImplicitMultiplication(state);\n last = node;\n var operators = {\n '*': 'multiply',\n '.*': 'dotMultiply',\n '/': 'divide',\n './': 'dotDivide'\n };\n\n while (true) {\n if ((0, _object.hasOwnProperty)(operators, state.token)) {\n // explicit operators\n name = state.token;\n fn = operators[name];\n getTokenSkipNewline(state);\n last = parseImplicitMultiplication(state);\n node = new OperatorNode(name, fn, [node, last]);\n } else {\n break;\n }\n }\n\n return node;\n }\n /**\n * implicit multiplication\n * @return {Node} node\n * @private\n */\n\n\n function parseImplicitMultiplication(state) {\n var node, last;\n node = parseRule2(state);\n last = node;\n\n while (true) {\n if (state.tokenType === TOKENTYPE.SYMBOL || state.token === 'in' && (0, _is.isConstantNode)(node) || state.tokenType === TOKENTYPE.NUMBER && !(0, _is.isConstantNode)(last) && (!(0, _is.isOperatorNode)(last) || last.op === '!') || state.token === '(') {\n // parse implicit multiplication\n //\n // symbol: implicit multiplication like '2a', '(2+3)a', 'a b'\n // number: implicit multiplication like '(2+3)2'\n // parenthesis: implicit multiplication like '2(3+4)', '(3+4)(1+2)'\n last = parseRule2(state);\n node = new OperatorNode('*', 'multiply', [node, last], true\n /* implicit */\n );\n } else {\n break;\n }\n }\n\n return node;\n }\n /**\n * Infamous \"rule 2\" as described in https://github.com/josdejong/mathjs/issues/792#issuecomment-361065370\n * Explicit division gets higher precedence than implicit multiplication\n * when the division matches this pattern: [number] / [number] [symbol]\n * @return {Node} node\n * @private\n */\n\n\n function parseRule2(state) {\n var node = parsePercentage(state);\n var last = node;\n var tokenStates = [];\n\n while (true) {\n // Match the \"number /\" part of the pattern \"number / number symbol\"\n if (state.token === '/' && (0, _is.isConstantNode)(last)) {\n // Look ahead to see if the next token is a number\n tokenStates.push((0, _extends2.default)({}, state));\n getTokenSkipNewline(state); // Match the \"number / number\" part of the pattern\n\n if (state.tokenType === TOKENTYPE.NUMBER) {\n // Look ahead again\n tokenStates.push((0, _extends2.default)({}, state));\n getTokenSkipNewline(state); // Match the \"symbol\" part of the pattern, or a left parenthesis\n\n if (state.tokenType === TOKENTYPE.SYMBOL || state.token === '(') {\n // We've matched the pattern \"number / number symbol\".\n // Rewind once and build the \"number / number\" node; the symbol will be consumed later\n (0, _extends2.default)(state, tokenStates.pop());\n tokenStates.pop();\n last = parsePercentage(state);\n node = new OperatorNode('/', 'divide', [node, last]);\n } else {\n // Not a match, so rewind\n tokenStates.pop();\n (0, _extends2.default)(state, tokenStates.pop());\n break;\n }\n } else {\n // Not a match, so rewind\n (0, _extends2.default)(state, tokenStates.pop());\n break;\n }\n } else {\n break;\n }\n }\n\n return node;\n }\n /**\n * percentage or mod\n * @return {Node} node\n * @private\n */\n\n\n function parsePercentage(state) {\n var node, name, fn, params;\n node = parseUnary(state);\n var operators = {\n '%': 'mod',\n mod: 'mod'\n };\n\n while ((0, _object.hasOwnProperty)(operators, state.token)) {\n name = state.token;\n fn = operators[name];\n getTokenSkipNewline(state);\n\n if (name === '%' && state.tokenType === TOKENTYPE.DELIMITER && state.token !== '(') {\n // If the expression contains only %, then treat that as /100\n node = new OperatorNode('/', 'divide', [node, new ConstantNode(100)], false, true);\n } else {\n params = [node, parseUnary(state)];\n node = new OperatorNode(name, fn, params);\n }\n }\n\n return node;\n }\n /**\n * Unary plus and minus, and logical and bitwise not\n * @return {Node} node\n * @private\n */\n\n\n function parseUnary(state) {\n var name, params, fn;\n var operators = {\n '-': 'unaryMinus',\n '+': 'unaryPlus',\n '~': 'bitNot',\n not: 'not'\n };\n\n if ((0, _object.hasOwnProperty)(operators, state.token)) {\n fn = operators[state.token];\n name = state.token;\n getTokenSkipNewline(state);\n params = [parseUnary(state)];\n return new OperatorNode(name, fn, params);\n }\n\n return parsePow(state);\n }\n /**\n * power\n * Note: power operator is right associative\n * @return {Node} node\n * @private\n */\n\n\n function parsePow(state) {\n var node, name, fn, params;\n node = parseLeftHandOperators(state);\n\n if (state.token === '^' || state.token === '.^') {\n name = state.token;\n fn = name === '^' ? 'pow' : 'dotPow';\n getTokenSkipNewline(state);\n params = [node, parseUnary(state)]; // Go back to unary, we can have '2^-3'\n\n node = new OperatorNode(name, fn, params);\n }\n\n return node;\n }\n /**\n * Left hand operators: factorial x!, ctranspose x'\n * @return {Node} node\n * @private\n */\n\n\n function parseLeftHandOperators(state) {\n var node, name, fn, params;\n node = parseCustomNodes(state);\n var operators = {\n '!': 'factorial',\n '\\'': 'ctranspose'\n };\n\n while ((0, _object.hasOwnProperty)(operators, state.token)) {\n name = state.token;\n fn = operators[name];\n getToken(state);\n params = [node];\n node = new OperatorNode(name, fn, params);\n node = parseAccessors(state, node);\n }\n\n return node;\n }\n /**\n * Parse a custom node handler. A node handler can be used to process\n * nodes in a custom way, for example for handling a plot.\n *\n * A handler must be passed as second argument of the parse function.\n * - must extend math.Node\n * - must contain a function _compile(defs: Object) : string\n * - must contain a function find(filter: Object) : Node[]\n * - must contain a function toString() : string\n * - the constructor is called with a single argument containing all parameters\n *\n * For example:\n *\n * nodes = {\n * 'plot': PlotHandler\n * }\n *\n * The constructor of the handler is called as:\n *\n * node = new PlotHandler(params)\n *\n * The handler will be invoked when evaluating an expression like:\n *\n * node = math.parse('plot(sin(x), x)', nodes)\n *\n * @return {Node} node\n * @private\n */\n\n\n function parseCustomNodes(state) {\n var params = [];\n\n if (state.tokenType === TOKENTYPE.SYMBOL && (0, _object.hasOwnProperty)(state.extraNodes, state.token)) {\n var CustomNode = state.extraNodes[state.token];\n getToken(state); // parse parameters\n\n if (state.token === '(') {\n params = [];\n openParams(state);\n getToken(state);\n\n if (state.token !== ')') {\n params.push(parseAssignment(state)); // parse a list with parameters\n\n while (state.token === ',') {\n // eslint-disable-line no-unmodified-loop-condition\n getToken(state);\n params.push(parseAssignment(state));\n }\n }\n\n if (state.token !== ')') {\n throw createSyntaxError(state, 'Parenthesis ) expected');\n }\n\n closeParams(state);\n getToken(state);\n } // create a new custom node\n // noinspection JSValidateTypes\n\n\n return new CustomNode(params);\n }\n\n return parseSymbol(state);\n }\n /**\n * parse symbols: functions, variables, constants, units\n * @return {Node} node\n * @private\n */\n\n\n function parseSymbol(state) {\n var node, name;\n\n if (state.tokenType === TOKENTYPE.SYMBOL || state.tokenType === TOKENTYPE.DELIMITER && state.token in NAMED_DELIMITERS) {\n name = state.token;\n getToken(state);\n\n if ((0, _object.hasOwnProperty)(CONSTANTS, name)) {\n // true, false, null, ...\n node = new ConstantNode(CONSTANTS[name]);\n } else if (NUMERIC_CONSTANTS.indexOf(name) !== -1) {\n // NaN, Infinity\n node = new ConstantNode(numeric(name, 'number'));\n } else {\n node = new SymbolNode(name);\n } // parse function parameters and matrix index\n\n\n node = parseAccessors(state, node);\n return node;\n }\n\n return parseDoubleQuotesString(state);\n }\n /**\n * parse accessors:\n * - function invocation in round brackets (...), for example sqrt(2)\n * - index enclosed in square brackets [...], for example A[2,3]\n * - dot notation for properties, like foo.bar\n * @param {Object} state\n * @param {Node} node Node on which to apply the parameters. If there\n * are no parameters in the expression, the node\n * itself is returned\n * @param {string[]} [types] Filter the types of notations\n * can be ['(', '[', '.']\n * @return {Node} node\n * @private\n */\n\n\n function parseAccessors(state, node, types) {\n var params;\n\n while ((state.token === '(' || state.token === '[' || state.token === '.') && (!types || types.indexOf(state.token) !== -1)) {\n // eslint-disable-line no-unmodified-loop-condition\n params = [];\n\n if (state.token === '(') {\n if ((0, _is.isSymbolNode)(node) || (0, _is.isAccessorNode)(node)) {\n // function invocation like fn(2, 3) or obj.fn(2, 3)\n openParams(state);\n getToken(state);\n\n if (state.token !== ')') {\n params.push(parseAssignment(state)); // parse a list with parameters\n\n while (state.token === ',') {\n // eslint-disable-line no-unmodified-loop-condition\n getToken(state);\n params.push(parseAssignment(state));\n }\n }\n\n if (state.token !== ')') {\n throw createSyntaxError(state, 'Parenthesis ) expected');\n }\n\n closeParams(state);\n getToken(state);\n node = new FunctionNode(node, params);\n } else {\n // implicit multiplication like (2+3)(4+5) or sqrt(2)(1+2)\n // don't parse it here but let it be handled by parseImplicitMultiplication\n // with correct precedence\n return node;\n }\n } else if (state.token === '[') {\n // index notation like variable[2, 3]\n openParams(state);\n getToken(state);\n\n if (state.token !== ']') {\n params.push(parseAssignment(state)); // parse a list with parameters\n\n while (state.token === ',') {\n // eslint-disable-line no-unmodified-loop-condition\n getToken(state);\n params.push(parseAssignment(state));\n }\n }\n\n if (state.token !== ']') {\n throw createSyntaxError(state, 'Parenthesis ] expected');\n }\n\n closeParams(state);\n getToken(state);\n node = new AccessorNode(node, new IndexNode(params));\n } else {\n // dot notation like variable.prop\n getToken(state);\n\n if (state.tokenType !== TOKENTYPE.SYMBOL) {\n throw createSyntaxError(state, 'Property name expected after dot');\n }\n\n params.push(new ConstantNode(state.token));\n getToken(state);\n var dotNotation = true;\n node = new AccessorNode(node, new IndexNode(params, dotNotation));\n }\n }\n\n return node;\n }\n /**\n * Parse a double quotes string.\n * @return {Node} node\n * @private\n */\n\n\n function parseDoubleQuotesString(state) {\n var node, str;\n\n if (state.token === '\"') {\n str = parseDoubleQuotesStringToken(state); // create constant\n\n node = new ConstantNode(str); // parse index parameters\n\n node = parseAccessors(state, node);\n return node;\n }\n\n return parseSingleQuotesString(state);\n }\n /**\n * Parse a string surrounded by double quotes \"...\"\n * @return {string}\n */\n\n\n function parseDoubleQuotesStringToken(state) {\n var str = '';\n\n while (currentCharacter(state) !== '' && currentCharacter(state) !== '\"') {\n if (currentCharacter(state) === '\\\\') {\n // escape character, immediately process the next\n // character to prevent stopping at a next '\\\"'\n str += currentCharacter(state);\n next(state);\n }\n\n str += currentCharacter(state);\n next(state);\n }\n\n getToken(state);\n\n if (state.token !== '\"') {\n throw createSyntaxError(state, 'End of string \" expected');\n }\n\n getToken(state);\n return JSON.parse('\"' + str + '\"'); // unescape escaped characters\n }\n /**\n * Parse a single quotes string.\n * @return {Node} node\n * @private\n */\n\n\n function parseSingleQuotesString(state) {\n var node, str;\n\n if (state.token === '\\'') {\n str = parseSingleQuotesStringToken(state); // create constant\n\n node = new ConstantNode(str); // parse index parameters\n\n node = parseAccessors(state, node);\n return node;\n }\n\n return parseMatrix(state);\n }\n /**\n * Parse a string surrounded by single quotes '...'\n * @return {string}\n */\n\n\n function parseSingleQuotesStringToken(state) {\n var str = '';\n\n while (currentCharacter(state) !== '' && currentCharacter(state) !== '\\'') {\n if (currentCharacter(state) === '\\\\') {\n // escape character, immediately process the next\n // character to prevent stopping at a next '\\''\n str += currentCharacter(state);\n next(state);\n }\n\n str += currentCharacter(state);\n next(state);\n }\n\n getToken(state);\n\n if (state.token !== '\\'') {\n throw createSyntaxError(state, 'End of string \\' expected');\n }\n\n getToken(state);\n return JSON.parse('\"' + str + '\"'); // unescape escaped characters\n }\n /**\n * parse the matrix\n * @return {Node} node\n * @private\n */\n\n\n function parseMatrix(state) {\n var array, params, rows, cols;\n\n if (state.token === '[') {\n // matrix [...]\n openParams(state);\n getToken(state);\n\n if (state.token !== ']') {\n // this is a non-empty matrix\n var row = parseRow(state);\n\n if (state.token === ';') {\n // 2 dimensional array\n rows = 1;\n params = [row]; // the rows of the matrix are separated by dot-comma's\n\n while (state.token === ';') {\n // eslint-disable-line no-unmodified-loop-condition\n getToken(state);\n params[rows] = parseRow(state);\n rows++;\n }\n\n if (state.token !== ']') {\n throw createSyntaxError(state, 'End of matrix ] expected');\n }\n\n closeParams(state);\n getToken(state); // check if the number of columns matches in all rows\n\n cols = params[0].items.length;\n\n for (var r = 1; r < rows; r++) {\n if (params[r].items.length !== cols) {\n throw createError(state, 'Column dimensions mismatch ' + '(' + params[r].items.length + ' !== ' + cols + ')');\n }\n }\n\n array = new ArrayNode(params);\n } else {\n // 1 dimensional vector\n if (state.token !== ']') {\n throw createSyntaxError(state, 'End of matrix ] expected');\n }\n\n closeParams(state);\n getToken(state);\n array = row;\n }\n } else {\n // this is an empty matrix \"[ ]\"\n closeParams(state);\n getToken(state);\n array = new ArrayNode([]);\n }\n\n return parseAccessors(state, array);\n }\n\n return parseObject(state);\n }\n /**\n * Parse a single comma-separated row from a matrix, like 'a, b, c'\n * @return {ArrayNode} node\n */\n\n\n function parseRow(state) {\n var params = [parseAssignment(state)];\n var len = 1;\n\n while (state.token === ',') {\n // eslint-disable-line no-unmodified-loop-condition\n getToken(state); // parse expression\n\n params[len] = parseAssignment(state);\n len++;\n }\n\n return new ArrayNode(params);\n }\n /**\n * parse an object, enclosed in angle brackets{...}, for example {value: 2}\n * @return {Node} node\n * @private\n */\n\n\n function parseObject(state) {\n if (state.token === '{') {\n openParams(state);\n var key;\n var properties = {};\n\n do {\n getToken(state);\n\n if (state.token !== '}') {\n // parse key\n if (state.token === '\"') {\n key = parseDoubleQuotesStringToken(state);\n } else if (state.token === '\\'') {\n key = parseSingleQuotesStringToken(state);\n } else if (state.tokenType === TOKENTYPE.SYMBOL || state.tokenType === TOKENTYPE.DELIMITER && state.token in NAMED_DELIMITERS) {\n key = state.token;\n getToken(state);\n } else {\n throw createSyntaxError(state, 'Symbol or string expected as object key');\n } // parse key/value separator\n\n\n if (state.token !== ':') {\n throw createSyntaxError(state, 'Colon : expected after object key');\n }\n\n getToken(state); // parse key\n\n properties[key] = parseAssignment(state);\n }\n } while (state.token === ','); // eslint-disable-line no-unmodified-loop-condition\n\n\n if (state.token !== '}') {\n throw createSyntaxError(state, 'Comma , or bracket } expected after object value');\n }\n\n closeParams(state);\n getToken(state);\n var node = new ObjectNode(properties); // parse index parameters\n\n node = parseAccessors(state, node);\n return node;\n }\n\n return parseNumber(state);\n }\n /**\n * parse a number\n * @return {Node} node\n * @private\n */\n\n\n function parseNumber(state) {\n var numberStr;\n\n if (state.tokenType === TOKENTYPE.NUMBER) {\n // this is a number\n numberStr = state.token;\n getToken(state);\n return new ConstantNode(numeric(numberStr, config.number));\n }\n\n return parseParentheses(state);\n }\n /**\n * parentheses\n * @return {Node} node\n * @private\n */\n\n\n function parseParentheses(state) {\n var node; // check if it is a parenthesized expression\n\n if (state.token === '(') {\n // parentheses (...)\n openParams(state);\n getToken(state);\n node = parseAssignment(state); // start again\n\n if (state.token !== ')') {\n throw createSyntaxError(state, 'Parenthesis ) expected');\n }\n\n closeParams(state);\n getToken(state);\n node = new ParenthesisNode(node);\n node = parseAccessors(state, node);\n return node;\n }\n\n return parseEnd(state);\n }\n /**\n * Evaluated when the expression is not yet ended but expected to end\n * @return {Node} res\n * @private\n */\n\n\n function parseEnd(state) {\n if (state.token === '') {\n // syntax error or unexpected end of expression\n throw createSyntaxError(state, 'Unexpected end of expression');\n } else {\n throw createSyntaxError(state, 'Value expected');\n }\n }\n /**\n * Shortcut for getting the current row value (one based)\n * Returns the line of the currently handled expression\n * @private\n */\n\n /* TODO: implement keeping track on the row number\n function row () {\n return null\n }\n */\n\n /**\n * Shortcut for getting the current col value (one based)\n * Returns the column (position) where the last state.token starts\n * @private\n */\n\n\n function col(state) {\n return state.index - state.token.length + 1;\n }\n /**\n * Create an error\n * @param {Object} state\n * @param {string} message\n * @return {SyntaxError} instantiated error\n * @private\n */\n\n\n function createSyntaxError(state, message) {\n var c = col(state);\n var error = new SyntaxError(message + ' (char ' + c + ')');\n error.char = c;\n return error;\n }\n /**\n * Create an error\n * @param {Object} state\n * @param {string} message\n * @return {Error} instantiated error\n * @private\n */\n\n\n function createError(state, message) {\n var c = col(state);\n var error = new SyntaxError(message + ' (char ' + c + ')');\n error.char = c;\n return error;\n }\n\n return parse;\n});\nexports.createParse = createParse;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCompile = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'compile';\nvar dependencies = ['typed', 'parse'];\nvar createCompile = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n parse = _ref.parse;\n\n /**\n * Parse and compile an expression.\n * Returns a an object with a function `evaluate([scope])` to evaluate the\n * compiled expression.\n *\n * Syntax:\n *\n * math.compile(expr) // returns one node\n * math.compile([expr1, expr2, expr3, ...]) // returns an array with nodes\n *\n * Examples:\n *\n * const code1 = math.compile('sqrt(3^2 + 4^2)')\n * code1.evaluate() // 5\n *\n * let scope = {a: 3, b: 4}\n * const code2 = math.compile('a * b') // 12\n * code2.evaluate(scope) // 12\n * scope.a = 5\n * code2.evaluate(scope) // 20\n *\n * const nodes = math.compile(['a = 3', 'b = 4', 'a * b'])\n * nodes[2].evaluate() // 12\n *\n * See also:\n *\n * parse, evaluate\n *\n * @param {string | string[] | Array | Matrix} expr\n * The expression to be compiled\n * @return {{evaluate: Function} | Array.<{evaluate: Function}>} code\n * An object with the compiled expression\n * @throws {Error}\n */\n return typed(name, {\n string: function string(expr) {\n return parse(expr).compile();\n },\n 'Array | Matrix': function ArrayMatrix(expr) {\n return (0, _collection.deepMap)(expr, function (entry) {\n return parse(entry).compile();\n });\n }\n });\n});\nexports.createCompile = createCompile;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createEvaluate = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _map = require(\"../../utils/map.js\");\n\nvar name = 'evaluate';\nvar dependencies = ['typed', 'parse'];\nvar createEvaluate = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n parse = _ref.parse;\n\n /**\n * Evaluate an expression.\n *\n * Note the evaluating arbitrary expressions may involve security risks,\n * see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.\n *\n * Syntax:\n *\n * math.evaluate(expr)\n * math.evaluate(expr, scope)\n * math.evaluate([expr1, expr2, expr3, ...])\n * math.evaluate([expr1, expr2, expr3, ...], scope)\n *\n * Example:\n *\n * math.evaluate('(2+3)/4') // 1.25\n * math.evaluate('sqrt(3^2 + 4^2)') // 5\n * math.evaluate('sqrt(-4)') // 2i\n * math.evaluate(['a=3', 'b=4', 'a*b']) // [3, 4, 12]\n *\n * let scope = {a:3, b:4}\n * math.evaluate('a * b', scope) // 12\n *\n * See also:\n *\n * parse, compile\n *\n * @param {string | string[] | Matrix} expr The expression to be evaluated\n * @param {Object} [scope] Scope to read/write variables\n * @return {*} The result of the expression\n * @throws {Error}\n */\n return typed(name, {\n string: function string(expr) {\n var scope = (0, _map.createEmptyMap)();\n return parse(expr).compile().evaluate(scope);\n },\n 'string, Map | Object': function stringMapObject(expr, scope) {\n return parse(expr).compile().evaluate(scope);\n },\n 'Array | Matrix': function ArrayMatrix(expr) {\n var scope = (0, _map.createEmptyMap)();\n return (0, _collection.deepMap)(expr, function (entry) {\n return parse(entry).compile().evaluate(scope);\n });\n },\n 'Array | Matrix, Map | Object': function ArrayMatrixMapObject(expr, scope) {\n return (0, _collection.deepMap)(expr, function (entry) {\n return parse(entry).compile().evaluate(scope);\n });\n }\n });\n});\nexports.createEvaluate = createEvaluate;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createParserClass = void 0;\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar _map = require(\"../utils/map.js\");\n\nvar name = 'Parser';\nvar dependencies = ['evaluate'];\nvar createParserClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var evaluate = _ref.evaluate;\n\n /**\n * @constructor Parser\n * Parser contains methods to evaluate or parse expressions, and has a number\n * of convenience methods to get, set, and remove variables from memory. Parser\n * keeps a scope containing variables in memory, which is used for all\n * evaluations.\n *\n * Methods:\n * const result = parser.evaluate(expr) // evaluate an expression\n * const value = parser.get(name) // retrieve a variable from the parser\n * const values = parser.getAll() // retrieve all defined variables\n * parser.set(name, value) // set a variable in the parser\n * parser.remove(name) // clear a variable from the\n * // parsers scope\n * parser.clear() // clear the parsers scope\n *\n * Example usage:\n * const parser = new Parser()\n * // Note: there is a convenience method which can be used instead:\n * // const parser = new math.parser()\n *\n * // evaluate expressions\n * parser.evaluate('sqrt(3^2 + 4^2)') // 5\n * parser.evaluate('sqrt(-4)') // 2i\n * parser.evaluate('2 inch in cm') // 5.08 cm\n * parser.evaluate('cos(45 deg)') // 0.7071067811865476\n *\n * // define variables and functions\n * parser.evaluate('x = 7 / 2') // 3.5\n * parser.evaluate('x + 3') // 6.5\n * parser.evaluate('f(x, y) = x^y') // f(x, y)\n * parser.evaluate('f(2, 3)') // 8\n *\n * // get and set variables and functions\n * const x = parser.get('x') // 7\n * const f = parser.get('f') // function\n * const g = f(3, 2) // 9\n * parser.set('h', 500)\n * const i = parser.evaluate('h / 2') // 250\n * parser.set('hello', function (name) {\n * return 'hello, ' + name + '!'\n * })\n * parser.evaluate('hello(\"user\")') // \"hello, user!\"\n *\n * // clear defined functions and variables\n * parser.clear()\n *\n */\n function Parser() {\n if (!(this instanceof Parser)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n Object.defineProperty(this, 'scope', {\n value: (0, _map.createEmptyMap)(),\n writable: false\n });\n }\n /**\n * Attach type information\n */\n\n\n Parser.prototype.type = 'Parser';\n Parser.prototype.isParser = true;\n /**\n * Parse and evaluate the given expression\n * @param {string | string[]} expr A string containing an expression,\n * for example \"2+3\", or a list with expressions\n * @return {*} result The result, or undefined when the expression was empty\n * @throws {Error}\n */\n\n Parser.prototype.evaluate = function (expr) {\n // TODO: validate arguments\n return evaluate(expr, this.scope);\n };\n /**\n * Get a variable (a function or variable) by name from the parsers scope.\n * Returns undefined when not found\n * @param {string} name\n * @return {* | undefined} value\n */\n\n\n Parser.prototype.get = function (name) {\n // TODO: validate arguments\n if (this.scope.has(name)) {\n return this.scope.get(name);\n }\n };\n /**\n * Get a map with all defined variables\n * @return {Object} values\n */\n\n\n Parser.prototype.getAll = function () {\n return (0, _map.toObject)(this.scope);\n };\n /**\n * Get a map with all defined variables\n * @return {Map} values\n */\n\n\n Parser.prototype.getAllAsMap = function () {\n return this.scope;\n };\n /**\n * Set a symbol (a function or variable) by name from the parsers scope.\n * @param {string} name\n * @param {* | undefined} value\n */\n\n\n Parser.prototype.set = function (name, value) {\n this.scope.set(name, value);\n return value;\n };\n /**\n * Remove a variable from the parsers scope\n * @param {string} name\n */\n\n\n Parser.prototype.remove = function (name) {\n this.scope.delete(name);\n };\n /**\n * Clear the scope with variables and functions\n */\n\n\n Parser.prototype.clear = function () {\n this.scope.clear();\n };\n\n return Parser;\n}, {\n isClass: true\n});\nexports.createParserClass = createParserClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createParser = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'parser';\nvar dependencies = ['typed', 'Parser'];\nvar createParser = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Parser = _ref.Parser;\n\n /**\n * Create a parser. The function creates a new `math.Parser` object.\n *\n * Syntax:\n *\n * math.parser()\n *\n * Examples:\n *\n * const parser = new math.parser()\n *\n * // evaluate expressions\n * const a = parser.evaluate('sqrt(3^2 + 4^2)') // 5\n * const b = parser.evaluate('sqrt(-4)') // 2i\n * const c = parser.evaluate('2 inch in cm') // 5.08 cm\n * const d = parser.evaluate('cos(45 deg)') // 0.7071067811865476\n *\n * // define variables and functions\n * parser.evaluate('x = 7 / 2') // 3.5\n * parser.evaluate('x + 3') // 6.5\n * parser.evaluate('f(x, y) = x^y') // f(x, y)\n * parser.evaluate('f(2, 3)') // 8\n *\n * // get and set variables and functions\n * const x = parser.get('x') // 7\n * const f = parser.get('f') // function\n * const g = f(3, 2) // 9\n * parser.set('h', 500)\n * const i = parser.evaluate('h / 2') // 250\n * parser.set('hello', function (name) {\n * return 'hello, ' + name + '!'\n * })\n * parser.evaluate('hello(\"user\")') // \"hello, user!\"\n *\n * // clear defined functions and variables\n * parser.clear()\n *\n * See also:\n *\n * evaluate, compile, parse\n *\n * @return {Parser} Parser\n */\n return typed(name, {\n '': function _() {\n return new Parser();\n }\n });\n});\nexports.createParser = createParser;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLup = void 0;\n\nvar _object = require(\"../../../utils/object.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'lup';\nvar dependencies = ['typed', 'matrix', 'abs', 'addScalar', 'divideScalar', 'multiplyScalar', 'subtract', 'larger', 'equalScalar', 'unaryMinus', 'DenseMatrix', 'SparseMatrix', 'Spa'];\nvar createLup = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n abs = _ref.abs,\n addScalar = _ref.addScalar,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n subtract = _ref.subtract,\n larger = _ref.larger,\n equalScalar = _ref.equalScalar,\n unaryMinus = _ref.unaryMinus,\n DenseMatrix = _ref.DenseMatrix,\n SparseMatrix = _ref.SparseMatrix,\n Spa = _ref.Spa;\n\n /**\n * Calculate the Matrix LU decomposition with partial pivoting. Matrix `A` is decomposed in two matrices (`L`, `U`) and a\n * row permutation vector `p` where `A[p,:] = L * U`\n *\n * Syntax:\n *\n * math.lup(A)\n *\n * Example:\n *\n * const m = [[2, 1], [1, 4]]\n * const r = math.lup(m)\n * // r = {\n * // L: [[1, 0], [0.5, 1]],\n * // U: [[2, 1], [0, 3.5]],\n * // P: [0, 1]\n * // }\n *\n * See also:\n *\n * slu, lsolve, lusolve, usolve\n *\n * @param {Matrix | Array} A A two dimensional matrix or array for which to get the LUP decomposition.\n *\n * @return {{L: Array | Matrix, U: Array | Matrix, P: Array.}} The lower triangular matrix, the upper triangular matrix and the permutation matrix.\n */\n return typed(name, {\n DenseMatrix: function DenseMatrix(m) {\n return _denseLUP(m);\n },\n SparseMatrix: function SparseMatrix(m) {\n return _sparseLUP(m);\n },\n Array: function Array(a) {\n // create dense matrix from array\n var m = matrix(a); // lup, use matrix implementation\n\n var r = _denseLUP(m); // result\n\n\n return {\n L: r.L.valueOf(),\n U: r.U.valueOf(),\n p: r.p\n };\n }\n });\n\n function _denseLUP(m) {\n // rows & columns\n var rows = m._size[0];\n var columns = m._size[1]; // minimum rows and columns\n\n var n = Math.min(rows, columns); // matrix array, clone original data\n\n var data = (0, _object.clone)(m._data); // l matrix arrays\n\n var ldata = [];\n var lsize = [rows, n]; // u matrix arrays\n\n var udata = [];\n var usize = [n, columns]; // vars\n\n var i, j, k; // permutation vector\n\n var p = [];\n\n for (i = 0; i < rows; i++) {\n p[i] = i;\n } // loop columns\n\n\n for (j = 0; j < columns; j++) {\n // skip first column in upper triangular matrix\n if (j > 0) {\n // loop rows\n for (i = 0; i < rows; i++) {\n // min i,j\n var min = Math.min(i, j); // v[i, j]\n\n var s = 0; // loop up to min\n\n for (k = 0; k < min; k++) {\n // s = l[i, k] - data[k, j]\n s = addScalar(s, multiplyScalar(data[i][k], data[k][j]));\n }\n\n data[i][j] = subtract(data[i][j], s);\n }\n } // row with larger value in cvector, row >= j\n\n\n var pi = j;\n var pabsv = 0;\n var vjj = 0; // loop rows\n\n for (i = j; i < rows; i++) {\n // data @ i, j\n var v = data[i][j]; // absolute value\n\n var absv = abs(v); // value is greater than pivote value\n\n if (larger(absv, pabsv)) {\n // store row\n pi = i; // update max value\n\n pabsv = absv; // value @ [j, j]\n\n vjj = v;\n }\n } // swap rows (j <-> pi)\n\n\n if (j !== pi) {\n // swap values j <-> pi in p\n p[j] = [p[pi], p[pi] = p[j]][0]; // swap j <-> pi in data\n\n DenseMatrix._swapRows(j, pi, data);\n } // check column is in lower triangular matrix\n\n\n if (j < rows) {\n // loop rows (lower triangular matrix)\n for (i = j + 1; i < rows; i++) {\n // value @ i, j\n var vij = data[i][j];\n\n if (!equalScalar(vij, 0)) {\n // update data\n data[i][j] = divideScalar(data[i][j], vjj);\n }\n }\n }\n } // loop columns\n\n\n for (j = 0; j < columns; j++) {\n // loop rows\n for (i = 0; i < rows; i++) {\n // initialize row in arrays\n if (j === 0) {\n // check row exists in upper triangular matrix\n if (i < columns) {\n // U\n udata[i] = [];\n } // L\n\n\n ldata[i] = [];\n } // check we are in the upper triangular matrix\n\n\n if (i < j) {\n // check row exists in upper triangular matrix\n if (i < columns) {\n // U\n udata[i][j] = data[i][j];\n } // check column exists in lower triangular matrix\n\n\n if (j < rows) {\n // L\n ldata[i][j] = 0;\n }\n\n continue;\n } // diagonal value\n\n\n if (i === j) {\n // check row exists in upper triangular matrix\n if (i < columns) {\n // U\n udata[i][j] = data[i][j];\n } // check column exists in lower triangular matrix\n\n\n if (j < rows) {\n // L\n ldata[i][j] = 1;\n }\n\n continue;\n } // check row exists in upper triangular matrix\n\n\n if (i < columns) {\n // U\n udata[i][j] = 0;\n } // check column exists in lower triangular matrix\n\n\n if (j < rows) {\n // L\n ldata[i][j] = data[i][j];\n }\n }\n } // l matrix\n\n\n var l = new DenseMatrix({\n data: ldata,\n size: lsize\n }); // u matrix\n\n var u = new DenseMatrix({\n data: udata,\n size: usize\n }); // p vector\n\n var pv = [];\n\n for (i = 0, n = p.length; i < n; i++) {\n pv[p[i]] = i;\n } // return matrices\n\n\n return {\n L: l,\n U: u,\n p: pv,\n toString: function toString() {\n return 'L: ' + this.L.toString() + '\\nU: ' + this.U.toString() + '\\nP: ' + this.p;\n }\n };\n }\n\n function _sparseLUP(m) {\n // rows & columns\n var rows = m._size[0];\n var columns = m._size[1]; // minimum rows and columns\n\n var n = Math.min(rows, columns); // matrix arrays (will not be modified, thanks to permutation vector)\n\n var values = m._values;\n var index = m._index;\n var ptr = m._ptr; // l matrix arrays\n\n var lvalues = [];\n var lindex = [];\n var lptr = [];\n var lsize = [rows, n]; // u matrix arrays\n\n var uvalues = [];\n var uindex = [];\n var uptr = [];\n var usize = [n, columns]; // vars\n\n var i, j, k; // permutation vectors, (current index -> original index) and (original index -> current index)\n\n var pvCo = [];\n var pvOc = [];\n\n for (i = 0; i < rows; i++) {\n pvCo[i] = i;\n pvOc[i] = i;\n } // swap indices in permutation vectors (condition x < y)!\n\n\n var swapIndeces = function swapIndeces(x, y) {\n // find pv indeces getting data from x and y\n var kx = pvOc[x];\n var ky = pvOc[y]; // update permutation vector current -> original\n\n pvCo[kx] = y;\n pvCo[ky] = x; // update permutation vector original -> current\n\n pvOc[x] = ky;\n pvOc[y] = kx;\n }; // loop columns\n\n\n var _loop = function _loop() {\n // sparse accumulator\n var spa = new Spa(); // check lower triangular matrix has a value @ column j\n\n if (j < rows) {\n // update ptr\n lptr.push(lvalues.length); // first value in j column for lower triangular matrix\n\n lvalues.push(1);\n lindex.push(j);\n } // update ptr\n\n\n uptr.push(uvalues.length); // k0 <= k < k1 where k0 = _ptr[j] && k1 = _ptr[j+1]\n\n var k0 = ptr[j];\n var k1 = ptr[j + 1]; // copy column j into sparse accumulator\n\n for (k = k0; k < k1; k++) {\n // row\n i = index[k]; // copy column values into sparse accumulator (use permutation vector)\n\n spa.set(pvCo[i], values[k]);\n } // skip first column in upper triangular matrix\n\n\n if (j > 0) {\n // loop rows in column j (above diagonal)\n spa.forEach(0, j - 1, function (k, vkj) {\n // loop rows in column k (L)\n SparseMatrix._forEachRow(k, lvalues, lindex, lptr, function (i, vik) {\n // check row is below k\n if (i > k) {\n // update spa value\n spa.accumulate(i, unaryMinus(multiplyScalar(vik, vkj)));\n }\n });\n });\n } // row with larger value in spa, row >= j\n\n\n var pi = j;\n var vjj = spa.get(j);\n var pabsv = abs(vjj); // loop values in spa (order by row, below diagonal)\n\n spa.forEach(j + 1, rows - 1, function (x, v) {\n // absolute value\n var absv = abs(v); // value is greater than pivote value\n\n if (larger(absv, pabsv)) {\n // store row\n pi = x; // update max value\n\n pabsv = absv; // value @ [j, j]\n\n vjj = v;\n }\n }); // swap rows (j <-> pi)\n\n if (j !== pi) {\n // swap values j <-> pi in L\n SparseMatrix._swapRows(j, pi, lsize[1], lvalues, lindex, lptr); // swap values j <-> pi in U\n\n\n SparseMatrix._swapRows(j, pi, usize[1], uvalues, uindex, uptr); // swap values in spa\n\n\n spa.swap(j, pi); // update permutation vector (swap values @ j, pi)\n\n swapIndeces(j, pi);\n } // loop values in spa (order by row)\n\n\n spa.forEach(0, rows - 1, function (x, v) {\n // check we are above diagonal\n if (x <= j) {\n // update upper triangular matrix\n uvalues.push(v);\n uindex.push(x);\n } else {\n // update value\n v = divideScalar(v, vjj); // check value is non zero\n\n if (!equalScalar(v, 0)) {\n // update lower triangular matrix\n lvalues.push(v);\n lindex.push(x);\n }\n }\n });\n };\n\n for (j = 0; j < columns; j++) {\n _loop();\n } // update ptrs\n\n\n uptr.push(uvalues.length);\n lptr.push(lvalues.length); // return matrices\n\n return {\n L: new SparseMatrix({\n values: lvalues,\n index: lindex,\n ptr: lptr,\n size: lsize\n }),\n U: new SparseMatrix({\n values: uvalues,\n index: uindex,\n ptr: uptr,\n size: usize\n }),\n p: pvCo,\n toString: function toString() {\n return 'L: ' + this.L.toString() + '\\nU: ' + this.U.toString() + '\\nP: ' + this.p;\n }\n };\n }\n});\nexports.createLup = createLup;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createQr = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'qr';\nvar dependencies = ['typed', 'matrix', 'zeros', 'identity', 'isZero', 'equal', 'sign', 'sqrt', 'conj', 'unaryMinus', 'addScalar', 'divideScalar', 'multiplyScalar', 'subtract', 'complex'];\nvar createQr = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n zeros = _ref.zeros,\n identity = _ref.identity,\n isZero = _ref.isZero,\n equal = _ref.equal,\n sign = _ref.sign,\n sqrt = _ref.sqrt,\n conj = _ref.conj,\n unaryMinus = _ref.unaryMinus,\n addScalar = _ref.addScalar,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n subtract = _ref.subtract,\n complex = _ref.complex;\n\n /**\n * Calculate the Matrix QR decomposition. Matrix `A` is decomposed in\n * two matrices (`Q`, `R`) where `Q` is an\n * orthogonal matrix and `R` is an upper triangular matrix.\n *\n * Syntax:\n *\n * math.qr(A)\n *\n * Example:\n *\n * const m = [\n * [1, -1, 4],\n * [1, 4, -2],\n * [1, 4, 2],\n * [1, -1, 0]\n * ]\n * const result = math.qr(m)\n * // r = {\n * // Q: [\n * // [0.5, -0.5, 0.5],\n * // [0.5, 0.5, -0.5],\n * // [0.5, 0.5, 0.5],\n * // [0.5, -0.5, -0.5],\n * // ],\n * // R: [\n * // [2, 3, 2],\n * // [0, 5, -2],\n * // [0, 0, 4],\n * // [0, 0, 0]\n * // ]\n * // }\n *\n * See also:\n *\n * lup, lusolve\n *\n * @param {Matrix | Array} A A two dimensional matrix or array\n * for which to get the QR decomposition.\n *\n * @return {{Q: Array | Matrix, R: Array | Matrix}} Q: the orthogonal\n * matrix and R: the upper triangular matrix\n */\n return (0, _extends2.default)(typed(name, {\n DenseMatrix: function DenseMatrix(m) {\n return _denseQR(m);\n },\n SparseMatrix: function SparseMatrix(m) {\n return _sparseQR(m);\n },\n Array: function Array(a) {\n // create dense matrix from array\n var m = matrix(a); // lup, use matrix implementation\n\n var r = _denseQR(m); // result\n\n\n return {\n Q: r.Q.valueOf(),\n R: r.R.valueOf()\n };\n }\n }), {\n _denseQRimpl: _denseQRimpl\n });\n\n function _denseQRimpl(m) {\n // rows & columns (m x n)\n var rows = m._size[0]; // m\n\n var cols = m._size[1]; // n\n\n var Q = identity([rows], 'dense');\n var Qdata = Q._data;\n var R = m.clone();\n var Rdata = R._data; // vars\n\n var i, j, k;\n var w = zeros([rows], '');\n\n for (k = 0; k < Math.min(cols, rows); ++k) {\n /*\n * **k-th Household matrix**\n *\n * The matrix I - 2*v*transpose(v)\n * x = first column of A\n * x1 = first element of x\n * alpha = x1 / |x1| * |x|\n * e1 = tranpose([1, 0, 0, ...])\n * u = x - alpha * e1\n * v = u / |u|\n *\n * Household matrix = I - 2 * v * tranpose(v)\n *\n * * Initially Q = I and R = A.\n * * Household matrix is a reflection in a plane normal to v which\n * will zero out all but the top right element in R.\n * * Appplying reflection to both Q and R will not change product.\n * * Repeat this process on the (1,1) minor to get R as an upper\n * triangular matrix.\n * * Reflections leave the magnitude of the columns of Q unchanged\n * so Q remains othoganal.\n *\n */\n var pivot = Rdata[k][k];\n var sgn = unaryMinus(equal(pivot, 0) ? 1 : sign(pivot));\n var conjSgn = conj(sgn);\n var alphaSquared = 0;\n\n for (i = k; i < rows; i++) {\n alphaSquared = addScalar(alphaSquared, multiplyScalar(Rdata[i][k], conj(Rdata[i][k])));\n }\n\n var alpha = multiplyScalar(sgn, sqrt(alphaSquared));\n\n if (!isZero(alpha)) {\n // first element in vector u\n var u1 = subtract(pivot, alpha); // w = v * u1 / |u| (only elements k to (rows-1) are used)\n\n w[k] = 1;\n\n for (i = k + 1; i < rows; i++) {\n w[i] = divideScalar(Rdata[i][k], u1);\n } // tau = - conj(u1 / alpha)\n\n\n var tau = unaryMinus(conj(divideScalar(u1, alpha)));\n var s = void 0;\n /*\n * tau and w have been choosen so that\n *\n * 2 * v * tranpose(v) = tau * w * tranpose(w)\n */\n\n /*\n * -- calculate R = R - tau * w * tranpose(w) * R --\n * Only do calculation with rows k to (rows-1)\n * Additionally columns 0 to (k-1) will not be changed by this\n * multiplication so do not bother recalculating them\n */\n\n for (j = k; j < cols; j++) {\n s = 0.0; // calculate jth element of [tranpose(w) * R]\n\n for (i = k; i < rows; i++) {\n s = addScalar(s, multiplyScalar(conj(w[i]), Rdata[i][j]));\n } // calculate the jth element of [tau * transpose(w) * R]\n\n\n s = multiplyScalar(s, tau);\n\n for (i = k; i < rows; i++) {\n Rdata[i][j] = multiplyScalar(subtract(Rdata[i][j], multiplyScalar(w[i], s)), conjSgn);\n }\n }\n /*\n * -- calculate Q = Q - tau * Q * w * transpose(w) --\n * Q is a square matrix (rows x rows)\n * Only do calculation with columns k to (rows-1)\n * Additionally rows 0 to (k-1) will not be changed by this\n * multiplication so do not bother recalculating them\n */\n\n\n for (i = 0; i < rows; i++) {\n s = 0.0; // calculate ith element of [Q * w]\n\n for (j = k; j < rows; j++) {\n s = addScalar(s, multiplyScalar(Qdata[i][j], w[j]));\n } // calculate the ith element of [tau * Q * w]\n\n\n s = multiplyScalar(s, tau);\n\n for (j = k; j < rows; ++j) {\n Qdata[i][j] = divideScalar(subtract(Qdata[i][j], multiplyScalar(s, conj(w[j]))), conjSgn);\n }\n }\n }\n } // return matrices\n\n\n return {\n Q: Q,\n R: R,\n toString: function toString() {\n return 'Q: ' + this.Q.toString() + '\\nR: ' + this.R.toString();\n }\n };\n }\n\n function _denseQR(m) {\n var ret = _denseQRimpl(m);\n\n var Rdata = ret.R._data;\n\n if (m._data.length > 0) {\n var zero = Rdata[0][0].type === 'Complex' ? complex(0) : 0;\n\n for (var i = 0; i < Rdata.length; ++i) {\n for (var j = 0; j < i && j < (Rdata[0] || []).length; ++j) {\n Rdata[i][j] = zero;\n }\n }\n }\n\n return ret;\n }\n\n function _sparseQR(m) {\n throw new Error('qr not implemented for sparse matrices yet');\n }\n});\nexports.createQr = createQr;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csPermute = csPermute;\n\n/**\n * Permutes a sparse matrix C = P * A * Q\n *\n * @param {SparseMatrix} a The Matrix A\n * @param {Array} pinv The row permutation vector\n * @param {Array} q The column permutation vector\n * @param {boolean} values Create a pattern matrix (false), values and pattern otherwise\n *\n * @return {Matrix} C = P * A * Q, null on error\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csPermute(a, pinv, q, values) {\n // a arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size;\n var adt = a._datatype; // rows & columns\n\n var m = asize[0];\n var n = asize[1]; // c arrays\n\n var cvalues = values && a._values ? [] : null;\n var cindex = []; // (aptr[n])\n\n var cptr = []; // (n + 1)\n // initialize vars\n\n var nz = 0; // loop columns\n\n for (var k = 0; k < n; k++) {\n // column k of C is column q[k] of A\n cptr[k] = nz; // apply column permutation\n\n var j = q ? q[k] : k; // loop values in column j of A\n\n for (var t0 = aptr[j], t1 = aptr[j + 1], t = t0; t < t1; t++) {\n // row i of A is row pinv[i] of C\n var r = pinv ? pinv[aindex[t]] : aindex[t]; // index\n\n cindex[nz] = r; // check we need to populate values\n\n if (cvalues) {\n cvalues[nz] = avalues[t];\n } // increment number of nonzero elements\n\n\n nz++;\n }\n } // finalize the last column of C\n\n\n cptr[n] = nz; // return C matrix\n\n return a.createSparseMatrix({\n values: cvalues,\n index: cindex,\n ptr: cptr,\n size: [m, n],\n datatype: adt\n });\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csTdfs = csTdfs;\n\n/**\n * Depth-first search and postorder of a tree rooted at node j\n *\n * @param {Number} j The tree node\n * @param {Number} k\n * @param {Array} w The workspace array\n * @param {Number} head The index offset within the workspace for the head array\n * @param {Number} next The index offset within the workspace for the next array\n * @param {Array} post The post ordering array\n * @param {Number} stack The index offset within the workspace for the stack array\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csTdfs(j, k, w, head, next, post, stack) {\n // variables\n var top = 0; // place j on the stack\n\n w[stack] = j; // while (stack is not empty)\n\n while (top >= 0) {\n // p = top of stack\n var p = w[stack + top]; // i = youngest child of p\n\n var i = w[head + p];\n\n if (i === -1) {\n // p has no unordered children left\n top--; // node p is the kth postordered node\n\n post[k++] = p;\n } else {\n // remove i from children of p\n w[head + p] = w[next + i]; // increment top\n\n ++top; // start dfs on child node i\n\n w[stack + top] = i;\n }\n }\n\n return k;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csPost = csPost;\n\nvar _csTdfs = require(\"./csTdfs.js\");\n\n/**\n * Post order a tree of forest\n *\n * @param {Array} parent The tree or forest\n * @param {Number} n Number of columns\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csPost(parent, n) {\n // check inputs\n if (!parent) {\n return null;\n } // vars\n\n\n var k = 0;\n var j; // allocate result\n\n var post = []; // (n)\n // workspace, head: first n entries, next: next n entries, stack: last n entries\n\n var w = []; // (3 * n)\n\n var head = 0;\n var next = n;\n var stack = 2 * n; // initialize workspace\n\n for (j = 0; j < n; j++) {\n // empty linked lists\n w[head + j] = -1;\n } // traverse nodes in reverse order\n\n\n for (j = n - 1; j >= 0; j--) {\n // check j is a root\n if (parent[j] === -1) {\n continue;\n } // add j to list of its parent\n\n\n w[next + j] = w[head + parent[j]];\n w[head + parent[j]] = j;\n } // loop nodes\n\n\n for (j = 0; j < n; j++) {\n // skip j if it is not a root\n if (parent[j] !== -1) {\n continue;\n } // depth-first search\n\n\n k = (0, _csTdfs.csTdfs)(j, k, w, head, next, post, stack);\n }\n\n return post;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csEtree = csEtree;\n\n/**\n * Computes the elimination tree of Matrix A (using triu(A)) or the\n * elimination tree of A'A without forming A'A.\n *\n * @param {Matrix} a The A Matrix\n * @param {boolean} ata A value of true the function computes the etree of A'A\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csEtree(a, ata) {\n // check inputs\n if (!a) {\n return null;\n } // a arrays\n\n\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size; // rows & columns\n\n var m = asize[0];\n var n = asize[1]; // allocate result\n\n var parent = []; // (n)\n // allocate workspace\n\n var w = []; // (n + (ata ? m : 0))\n\n var ancestor = 0; // first n entries in w\n\n var prev = n; // last m entries (ata = true)\n\n var i, inext; // check we are calculating A'A\n\n if (ata) {\n // initialize workspace\n for (i = 0; i < m; i++) {\n w[prev + i] = -1;\n }\n } // loop columns\n\n\n for (var k = 0; k < n; k++) {\n // node k has no parent yet\n parent[k] = -1; // nor does k have an ancestor\n\n w[ancestor + k] = -1; // values in column k\n\n for (var p0 = aptr[k], p1 = aptr[k + 1], p = p0; p < p1; p++) {\n // row\n var r = aindex[p]; // node\n\n i = ata ? w[prev + r] : r; // traverse from i to k\n\n for (; i !== -1 && i < k; i = inext) {\n // inext = ancestor of i\n inext = w[ancestor + i]; // path compression\n\n w[ancestor + i] = k; // check no anc., parent is k\n\n if (inext === -1) {\n parent[i] = k;\n }\n }\n\n if (ata) {\n w[prev + r] = k;\n }\n }\n }\n\n return parent;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csFkeep = csFkeep;\n\n/**\n * Keeps entries in the matrix when the callback function returns true, removes the entry otherwise\n *\n * @param {Matrix} a The sparse matrix\n * @param {function} callback The callback function, function will be invoked with the following args:\n * - The entry row\n * - The entry column\n * - The entry value\n * - The state parameter\n * @param {any} other The state\n *\n * @return The number of nonzero elements in the matrix\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csFkeep(a, callback, other) {\n // a arrays\n var avalues = a._values;\n var aindex = a._index;\n var aptr = a._ptr;\n var asize = a._size; // columns\n\n var n = asize[1]; // nonzero items\n\n var nz = 0; // loop columns\n\n for (var j = 0; j < n; j++) {\n // get current location of col j\n var p = aptr[j]; // record new location of col j\n\n aptr[j] = nz;\n\n for (; p < aptr[j + 1]; p++) {\n // check we need to keep this item\n if (callback(aindex[p], j, avalues ? avalues[p] : 1, other)) {\n // keep A(i,j)\n aindex[nz] = aindex[p]; // check we need to process values (pattern only)\n\n if (avalues) {\n avalues[nz] = avalues[p];\n } // increment nonzero items\n\n\n nz++;\n }\n }\n } // finalize A\n\n\n aptr[n] = nz; // trim arrays\n\n aindex.splice(nz, aindex.length - nz); // check we need to process values (pattern only)\n\n if (avalues) {\n avalues.splice(nz, avalues.length - nz);\n } // return number of nonzero items\n\n\n return nz;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csFlip = csFlip;\n\n/**\n * This function \"flips\" its input about the integer -1.\n *\n * @param {Number} i The value to flip\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csFlip(i) {\n // flip the value\n return -i - 2;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsAmd = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _csFkeep = require(\"./csFkeep.js\");\n\nvar _csFlip = require(\"./csFlip.js\");\n\nvar _csTdfs = require(\"./csTdfs.js\");\n\nvar name = 'csAmd';\nvar dependencies = ['add', 'multiply', 'transpose'];\nvar createCsAmd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var add = _ref.add,\n multiply = _ref.multiply,\n transpose = _ref.transpose;\n\n /**\n * Approximate minimum degree ordering. The minimum degree algorithm is a widely used\n * heuristic for finding a permutation P so that P*A*P' has fewer nonzeros in its factorization\n * than A. It is a gready method that selects the sparsest pivot row and column during the course\n * of a right looking sparse Cholesky factorization.\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n *\n * @param {Number} order 0: Natural, 1: Cholesky, 2: LU, 3: QR\n * @param {Matrix} m Sparse Matrix\n */\n return function csAmd(order, a) {\n // check input parameters\n if (!a || order <= 0 || order > 3) {\n return null;\n } // a matrix arrays\n\n\n var asize = a._size; // rows and columns\n\n var m = asize[0];\n var n = asize[1]; // initialize vars\n\n var lemax = 0; // dense threshold\n\n var dense = Math.max(16, 10 * Math.sqrt(n));\n dense = Math.min(n - 2, dense); // create target matrix C\n\n var cm = _createTargetMatrix(order, a, m, n, dense); // drop diagonal entries\n\n\n (0, _csFkeep.csFkeep)(cm, _diag, null); // C matrix arrays\n\n var cindex = cm._index;\n var cptr = cm._ptr; // number of nonzero elements in C\n\n var cnz = cptr[n]; // allocate result (n+1)\n\n var P = []; // create workspace (8 * (n + 1))\n\n var W = [];\n var len = 0; // first n + 1 entries\n\n var nv = n + 1; // next n + 1 entries\n\n var next = 2 * (n + 1); // next n + 1 entries\n\n var head = 3 * (n + 1); // next n + 1 entries\n\n var elen = 4 * (n + 1); // next n + 1 entries\n\n var degree = 5 * (n + 1); // next n + 1 entries\n\n var w = 6 * (n + 1); // next n + 1 entries\n\n var hhead = 7 * (n + 1); // last n + 1 entries\n // use P as workspace for last\n\n var last = P; // initialize quotient graph\n\n var mark = _initializeQuotientGraph(n, cptr, W, len, head, last, next, hhead, nv, w, elen, degree); // initialize degree lists\n\n\n var nel = _initializeDegreeLists(n, cptr, W, degree, elen, w, dense, nv, head, last, next); // minimum degree node\n\n\n var mindeg = 0; // vars\n\n var i, j, k, k1, k2, e, pj, ln, nvi, pk, eln, p1, p2, pn, h, d; // while (selecting pivots) do\n\n while (nel < n) {\n // select node of minimum approximate degree. amd() is now ready to start eliminating the graph. It first\n // finds a node k of minimum degree and removes it from its degree list. The variable nel keeps track of thow\n // many nodes have been eliminated.\n for (k = -1; mindeg < n && (k = W[head + mindeg]) === -1; mindeg++) {\n ;\n }\n\n if (W[next + k] !== -1) {\n last[W[next + k]] = -1;\n } // remove k from degree list\n\n\n W[head + mindeg] = W[next + k]; // elenk = |Ek|\n\n var elenk = W[elen + k]; // # of nodes k represents\n\n var nvk = W[nv + k]; // W[nv + k] nodes of A eliminated\n\n nel += nvk; // Construct a new element. The new element Lk is constructed in place if |Ek| = 0. nv[i] is\n // negated for all nodes i in Lk to flag them as members of this set. Each node i is removed from the\n // degree lists. All elements e in Ek are absorved into element k.\n\n var dk = 0; // flag k as in Lk\n\n W[nv + k] = -nvk;\n var p = cptr[k]; // do in place if W[elen + k] === 0\n\n var pk1 = elenk === 0 ? p : cnz;\n var pk2 = pk1;\n\n for (k1 = 1; k1 <= elenk + 1; k1++) {\n if (k1 > elenk) {\n // search the nodes in k\n e = k; // list of nodes starts at cindex[pj]\n\n pj = p; // length of list of nodes in k\n\n ln = W[len + k] - elenk;\n } else {\n // search the nodes in e\n e = cindex[p++];\n pj = cptr[e]; // length of list of nodes in e\n\n ln = W[len + e];\n }\n\n for (k2 = 1; k2 <= ln; k2++) {\n i = cindex[pj++]; // check node i dead, or seen\n\n if ((nvi = W[nv + i]) <= 0) {\n continue;\n } // W[degree + Lk] += size of node i\n\n\n dk += nvi; // negate W[nv + i] to denote i in Lk\n\n W[nv + i] = -nvi; // place i in Lk\n\n cindex[pk2++] = i;\n\n if (W[next + i] !== -1) {\n last[W[next + i]] = last[i];\n } // check we need to remove i from degree list\n\n\n if (last[i] !== -1) {\n W[next + last[i]] = W[next + i];\n } else {\n W[head + W[degree + i]] = W[next + i];\n }\n }\n\n if (e !== k) {\n // absorb e into k\n cptr[e] = (0, _csFlip.csFlip)(k); // e is now a dead element\n\n W[w + e] = 0;\n }\n } // cindex[cnz...nzmax] is free\n\n\n if (elenk !== 0) {\n cnz = pk2;\n } // external degree of k - |Lk\\i|\n\n\n W[degree + k] = dk; // element k is in cindex[pk1..pk2-1]\n\n cptr[k] = pk1;\n W[len + k] = pk2 - pk1; // k is now an element\n\n W[elen + k] = -2; // Find set differences. The scan1 function now computes the set differences |Le \\ Lk| for all elements e. At the start of the\n // scan, no entry in the w array is greater than or equal to mark.\n // clear w if necessary\n\n mark = _wclear(mark, lemax, W, w, n); // scan 1: find |Le\\Lk|\n\n for (pk = pk1; pk < pk2; pk++) {\n i = cindex[pk]; // check if W[elen + i] empty, skip it\n\n if ((eln = W[elen + i]) <= 0) {\n continue;\n } // W[nv + i] was negated\n\n\n nvi = -W[nv + i];\n var wnvi = mark - nvi; // scan Ei\n\n for (p = cptr[i], p1 = cptr[i] + eln - 1; p <= p1; p++) {\n e = cindex[p];\n\n if (W[w + e] >= mark) {\n // decrement |Le\\Lk|\n W[w + e] -= nvi;\n } else if (W[w + e] !== 0) {\n // ensure e is a live element, 1st time e seen in scan 1\n W[w + e] = W[degree + e] + wnvi;\n }\n }\n } // degree update\n // The second pass computes the approximate degree di, prunes the sets Ei and Ai, and computes a hash\n // function h(i) for all nodes in Lk.\n // scan2: degree update\n\n\n for (pk = pk1; pk < pk2; pk++) {\n // consider node i in Lk\n i = cindex[pk];\n p1 = cptr[i];\n p2 = p1 + W[elen + i] - 1;\n pn = p1; // scan Ei\n\n for (h = 0, d = 0, p = p1; p <= p2; p++) {\n e = cindex[p]; // check e is an unabsorbed element\n\n if (W[w + e] !== 0) {\n // dext = |Le\\Lk|\n var dext = W[w + e] - mark;\n\n if (dext > 0) {\n // sum up the set differences\n d += dext; // keep e in Ei\n\n cindex[pn++] = e; // compute the hash of node i\n\n h += e;\n } else {\n // aggressive absorb. e->k\n cptr[e] = (0, _csFlip.csFlip)(k); // e is a dead element\n\n W[w + e] = 0;\n }\n }\n } // W[elen + i] = |Ei|\n\n\n W[elen + i] = pn - p1 + 1;\n var p3 = pn;\n var p4 = p1 + W[len + i]; // prune edges in Ai\n\n for (p = p2 + 1; p < p4; p++) {\n j = cindex[p]; // check node j dead or in Lk\n\n var nvj = W[nv + j];\n\n if (nvj <= 0) {\n continue;\n } // degree(i) += |j|\n\n\n d += nvj; // place j in node list of i\n\n cindex[pn++] = j; // compute hash for node i\n\n h += j;\n } // check for mass elimination\n\n\n if (d === 0) {\n // absorb i into k\n cptr[i] = (0, _csFlip.csFlip)(k);\n nvi = -W[nv + i]; // |Lk| -= |i|\n\n dk -= nvi; // |k| += W[nv + i]\n\n nvk += nvi;\n nel += nvi;\n W[nv + i] = 0; // node i is dead\n\n W[elen + i] = -1;\n } else {\n // update degree(i)\n W[degree + i] = Math.min(W[degree + i], d); // move first node to end\n\n cindex[pn] = cindex[p3]; // move 1st el. to end of Ei\n\n cindex[p3] = cindex[p1]; // add k as 1st element in of Ei\n\n cindex[p1] = k; // new len of adj. list of node i\n\n W[len + i] = pn - p1 + 1; // finalize hash of i\n\n h = (h < 0 ? -h : h) % n; // place i in hash bucket\n\n W[next + i] = W[hhead + h];\n W[hhead + h] = i; // save hash of i in last[i]\n\n last[i] = h;\n }\n } // finalize |Lk|\n\n\n W[degree + k] = dk;\n lemax = Math.max(lemax, dk); // clear w\n\n mark = _wclear(mark + lemax, lemax, W, w, n); // Supernode detection. Supernode detection relies on the hash function h(i) computed for each node i.\n // If two nodes have identical adjacency lists, their hash functions wil be identical.\n\n for (pk = pk1; pk < pk2; pk++) {\n i = cindex[pk]; // check i is dead, skip it\n\n if (W[nv + i] >= 0) {\n continue;\n } // scan hash bucket of node i\n\n\n h = last[i];\n i = W[hhead + h]; // hash bucket will be empty\n\n W[hhead + h] = -1;\n\n for (; i !== -1 && W[next + i] !== -1; i = W[next + i], mark++) {\n ln = W[len + i];\n eln = W[elen + i];\n\n for (p = cptr[i] + 1; p <= cptr[i] + ln - 1; p++) {\n W[w + cindex[p]] = mark;\n }\n\n var jlast = i; // compare i with all j\n\n for (j = W[next + i]; j !== -1;) {\n var ok = W[len + j] === ln && W[elen + j] === eln;\n\n for (p = cptr[j] + 1; ok && p <= cptr[j] + ln - 1; p++) {\n // compare i and j\n if (W[w + cindex[p]] !== mark) {\n ok = 0;\n }\n } // check i and j are identical\n\n\n if (ok) {\n // absorb j into i\n cptr[j] = (0, _csFlip.csFlip)(i);\n W[nv + i] += W[nv + j];\n W[nv + j] = 0; // node j is dead\n\n W[elen + j] = -1; // delete j from hash bucket\n\n j = W[next + j];\n W[next + jlast] = j;\n } else {\n // j and i are different\n jlast = j;\n j = W[next + j];\n }\n }\n }\n } // Finalize new element. The elimination of node k is nearly complete. All nodes i in Lk are scanned one last time.\n // Node i is removed from Lk if it is dead. The flagged status of nv[i] is cleared.\n\n\n for (p = pk1, pk = pk1; pk < pk2; pk++) {\n i = cindex[pk]; // check i is dead, skip it\n\n if ((nvi = -W[nv + i]) <= 0) {\n continue;\n } // restore W[nv + i]\n\n\n W[nv + i] = nvi; // compute external degree(i)\n\n d = W[degree + i] + dk - nvi;\n d = Math.min(d, n - nel - nvi);\n\n if (W[head + d] !== -1) {\n last[W[head + d]] = i;\n } // put i back in degree list\n\n\n W[next + i] = W[head + d];\n last[i] = -1;\n W[head + d] = i; // find new minimum degree\n\n mindeg = Math.min(mindeg, d);\n W[degree + i] = d; // place i in Lk\n\n cindex[p++] = i;\n } // # nodes absorbed into k\n\n\n W[nv + k] = nvk; // length of adj list of element k\n\n if ((W[len + k] = p - pk1) === 0) {\n // k is a root of the tree\n cptr[k] = -1; // k is now a dead element\n\n W[w + k] = 0;\n }\n\n if (elenk !== 0) {\n // free unused space in Lk\n cnz = p;\n }\n } // Postordering. The elimination is complete, but no permutation has been computed. All that is left\n // of the graph is the assembly tree (ptr) and a set of dead nodes and elements (i is a dead node if\n // nv[i] is zero and a dead element if nv[i] > 0). It is from this information only that the final permutation\n // is computed. The tree is restored by unflipping all of ptr.\n // fix assembly tree\n\n\n for (i = 0; i < n; i++) {\n cptr[i] = (0, _csFlip.csFlip)(cptr[i]);\n }\n\n for (j = 0; j <= n; j++) {\n W[head + j] = -1;\n } // place unordered nodes in lists\n\n\n for (j = n; j >= 0; j--) {\n // skip if j is an element\n if (W[nv + j] > 0) {\n continue;\n } // place j in list of its parent\n\n\n W[next + j] = W[head + cptr[j]];\n W[head + cptr[j]] = j;\n } // place elements in lists\n\n\n for (e = n; e >= 0; e--) {\n // skip unless e is an element\n if (W[nv + e] <= 0) {\n continue;\n }\n\n if (cptr[e] !== -1) {\n // place e in list of its parent\n W[next + e] = W[head + cptr[e]];\n W[head + cptr[e]] = e;\n }\n } // postorder the assembly tree\n\n\n for (k = 0, i = 0; i <= n; i++) {\n if (cptr[i] === -1) {\n k = (0, _csTdfs.csTdfs)(i, k, W, head, next, P, w);\n }\n } // remove last item in array\n\n\n P.splice(P.length - 1, 1); // return P\n\n return P;\n };\n /**\n * Creates the matrix that will be used by the approximate minimum degree ordering algorithm. The function accepts the matrix M as input and returns a permutation\n * vector P. The amd algorithm operates on a symmetrix matrix, so one of three symmetric matrices is formed.\n *\n * Order: 0\n * A natural ordering P=null matrix is returned.\n *\n * Order: 1\n * Matrix must be square. This is appropriate for a Cholesky or LU factorization.\n * P = M + M'\n *\n * Order: 2\n * Dense columns from M' are dropped, M recreated from M'. This is appropriatefor LU factorization of unsymmetric matrices.\n * P = M' * M\n *\n * Order: 3\n * This is best used for QR factorization or LU factorization is matrix M has no dense rows. A dense row is a row with more than 10*sqr(columns) entries.\n * P = M' * M\n */\n\n function _createTargetMatrix(order, a, m, n, dense) {\n // compute A'\n var at = transpose(a); // check order = 1, matrix must be square\n\n if (order === 1 && n === m) {\n // C = A + A'\n return add(a, at);\n } // check order = 2, drop dense columns from M'\n\n\n if (order === 2) {\n // transpose arrays\n var tindex = at._index;\n var tptr = at._ptr; // new column index\n\n var p2 = 0; // loop A' columns (rows)\n\n for (var j = 0; j < m; j++) {\n // column j of AT starts here\n var p = tptr[j]; // new column j starts here\n\n tptr[j] = p2; // skip dense col j\n\n if (tptr[j + 1] - p > dense) {\n continue;\n } // map rows in column j of A\n\n\n for (var p1 = tptr[j + 1]; p < p1; p++) {\n tindex[p2++] = tindex[p];\n }\n } // finalize AT\n\n\n tptr[m] = p2; // recreate A from new transpose matrix\n\n a = transpose(at); // use A' * A\n\n return multiply(at, a);\n } // use A' * A, square or rectangular matrix\n\n\n return multiply(at, a);\n }\n /**\n * Initialize quotient graph. There are four kind of nodes and elements that must be represented:\n *\n * - A live node is a node i (or a supernode) that has not been selected as a pivot nad has not been merged into another supernode.\n * - A dead node i is one that has been removed from the graph, having been absorved into r = flip(ptr[i]).\n * - A live element e is one that is in the graph, having been formed when node e was selected as the pivot.\n * - A dead element e is one that has benn absorved into a subsequent element s = flip(ptr[e]).\n */\n\n\n function _initializeQuotientGraph(n, cptr, W, len, head, last, next, hhead, nv, w, elen, degree) {\n // Initialize quotient graph\n for (var k = 0; k < n; k++) {\n W[len + k] = cptr[k + 1] - cptr[k];\n }\n\n W[len + n] = 0; // initialize workspace\n\n for (var i = 0; i <= n; i++) {\n // degree list i is empty\n W[head + i] = -1;\n last[i] = -1;\n W[next + i] = -1; // hash list i is empty\n\n W[hhead + i] = -1; // node i is just one node\n\n W[nv + i] = 1; // node i is alive\n\n W[w + i] = 1; // Ek of node i is empty\n\n W[elen + i] = 0; // degree of node i\n\n W[degree + i] = W[len + i];\n } // clear w\n\n\n var mark = _wclear(0, 0, W, w, n); // n is a dead element\n\n\n W[elen + n] = -2; // n is a root of assembly tree\n\n cptr[n] = -1; // n is a dead element\n\n W[w + n] = 0; // return mark\n\n return mark;\n }\n /**\n * Initialize degree lists. Each node is placed in its degree lists. Nodes of zero degree are eliminated immediately. Nodes with\n * degree >= dense are alsol eliminated and merged into a placeholder node n, a dead element. Thes nodes will appera last in the\n * output permutation p.\n */\n\n\n function _initializeDegreeLists(n, cptr, W, degree, elen, w, dense, nv, head, last, next) {\n // result\n var nel = 0; // loop columns\n\n for (var i = 0; i < n; i++) {\n // degree @ i\n var d = W[degree + i]; // check node i is empty\n\n if (d === 0) {\n // element i is dead\n W[elen + i] = -2;\n nel++; // i is a root of assembly tree\n\n cptr[i] = -1;\n W[w + i] = 0;\n } else if (d > dense) {\n // absorb i into element n\n W[nv + i] = 0; // node i is dead\n\n W[elen + i] = -1;\n nel++;\n cptr[i] = (0, _csFlip.csFlip)(n);\n W[nv + n]++;\n } else {\n var h = W[head + d];\n\n if (h !== -1) {\n last[h] = i;\n } // put node i in degree list d\n\n\n W[next + i] = W[head + d];\n W[head + d] = i;\n }\n }\n\n return nel;\n }\n\n function _wclear(mark, lemax, W, w, n) {\n if (mark < 2 || mark + lemax < 0) {\n for (var k = 0; k < n; k++) {\n if (W[w + k] !== 0) {\n W[w + k] = 1;\n }\n }\n\n mark = 2;\n } // at this point, W [0..n-1] < mark holds\n\n\n return mark;\n }\n\n function _diag(i, j) {\n return i !== j;\n }\n});\nexports.createCsAmd = createCsAmd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csLeaf = csLeaf;\n\n/**\n * This function determines if j is a leaf of the ith row subtree.\n * Consider A(i,j), node j in ith row subtree and return lca(jprev,j)\n *\n * @param {Number} i The ith row subtree\n * @param {Number} j The node to test\n * @param {Array} w The workspace array\n * @param {Number} first The index offset within the workspace for the first array\n * @param {Number} maxfirst The index offset within the workspace for the maxfirst array\n * @param {Number} prevleaf The index offset within the workspace for the prevleaf array\n * @param {Number} ancestor The index offset within the workspace for the ancestor array\n *\n * @return {Object}\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csLeaf(i, j, w, first, maxfirst, prevleaf, ancestor) {\n var s, sparent; // our result\n\n var jleaf = 0;\n var q; // check j is a leaf\n\n if (i <= j || w[first + j] <= w[maxfirst + i]) {\n return -1;\n } // update max first[j] seen so far\n\n\n w[maxfirst + i] = w[first + j]; // jprev = previous leaf of ith subtree\n\n var jprev = w[prevleaf + i];\n w[prevleaf + i] = j; // check j is first or subsequent leaf\n\n if (jprev === -1) {\n // 1st leaf, q = root of ith subtree\n jleaf = 1;\n q = i;\n } else {\n // update jleaf\n jleaf = 2; // q = least common ancester (jprev,j)\n\n for (q = jprev; q !== w[ancestor + q]; q = w[ancestor + q]) {\n ;\n }\n\n for (s = jprev; s !== q; s = sparent) {\n // path compression\n sparent = w[ancestor + s];\n w[ancestor + s] = q;\n }\n }\n\n return {\n jleaf: jleaf,\n q: q\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsCounts = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _csLeaf = require(\"./csLeaf.js\");\n\nvar name = 'csCounts';\nvar dependencies = ['transpose'];\nvar createCsCounts = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var transpose = _ref.transpose;\n\n /**\n * Computes the column counts using the upper triangular part of A.\n * It transposes A internally, none of the input parameters are modified.\n *\n * @param {Matrix} a The sparse matrix A\n *\n * @param {Matrix} ata Count the columns of A'A instead\n *\n * @return An array of size n of the column counts or null on error\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\n return function (a, parent, post, ata) {\n // check inputs\n if (!a || !parent || !post) {\n return null;\n } // a matrix arrays\n\n\n var asize = a._size; // rows and columns\n\n var m = asize[0];\n var n = asize[1]; // variables\n\n var i, j, k, J, p, p0, p1; // workspace size\n\n var s = 4 * n + (ata ? n + m + 1 : 0); // allocate workspace\n\n var w = []; // (s)\n\n var ancestor = 0; // first n entries\n\n var maxfirst = n; // next n entries\n\n var prevleaf = 2 * n; // next n entries\n\n var first = 3 * n; // next n entries\n\n var head = 4 * n; // next n + 1 entries (used when ata is true)\n\n var next = 5 * n + 1; // last entries in workspace\n // clear workspace w[0..s-1]\n\n for (k = 0; k < s; k++) {\n w[k] = -1;\n } // allocate result\n\n\n var colcount = []; // (n)\n // AT = A'\n\n var at = transpose(a); // at arrays\n\n var tindex = at._index;\n var tptr = at._ptr; // find w[first + j]\n\n for (k = 0; k < n; k++) {\n j = post[k]; // colcount[j]=1 if j is a leaf\n\n colcount[j] = w[first + j] === -1 ? 1 : 0;\n\n for (; j !== -1 && w[first + j] === -1; j = parent[j]) {\n w[first + j] = k;\n }\n } // initialize ata if needed\n\n\n if (ata) {\n // invert post\n for (k = 0; k < n; k++) {\n w[post[k]] = k;\n } // loop rows (columns in AT)\n\n\n for (i = 0; i < m; i++) {\n // values in column i of AT\n for (k = n, p0 = tptr[i], p1 = tptr[i + 1], p = p0; p < p1; p++) {\n k = Math.min(k, w[tindex[p]]);\n } // place row i in linked list k\n\n\n w[next + i] = w[head + k];\n w[head + k] = i;\n }\n } // each node in its own set\n\n\n for (i = 0; i < n; i++) {\n w[ancestor + i] = i;\n }\n\n for (k = 0; k < n; k++) {\n // j is the kth node in postordered etree\n j = post[k]; // check j is not a root\n\n if (parent[j] !== -1) {\n colcount[parent[j]]--;\n } // J=j for LL'=A case\n\n\n for (J = ata ? w[head + k] : j; J !== -1; J = ata ? w[next + J] : -1) {\n for (p = tptr[J]; p < tptr[J + 1]; p++) {\n i = tindex[p];\n var r = (0, _csLeaf.csLeaf)(i, j, w, first, maxfirst, prevleaf, ancestor); // check A(i,j) is in skeleton\n\n if (r.jleaf >= 1) {\n colcount[j]++;\n } // check account for overlap in q\n\n\n if (r.jleaf === 2) {\n colcount[r.q]--;\n }\n }\n }\n\n if (parent[j] !== -1) {\n w[ancestor + j] = parent[j];\n }\n } // sum up colcount's of each child\n\n\n for (j = 0; j < n; j++) {\n if (parent[j] !== -1) {\n colcount[parent[j]] += colcount[j];\n }\n }\n\n return colcount;\n };\n});\nexports.createCsCounts = createCsCounts;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsSqr = void 0;\n\nvar _csPermute = require(\"./csPermute.js\");\n\nvar _csPost = require(\"./csPost.js\");\n\nvar _csEtree = require(\"./csEtree.js\");\n\nvar _csAmd = require(\"./csAmd.js\");\n\nvar _csCounts = require(\"./csCounts.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'csSqr';\nvar dependencies = ['add', 'multiply', 'transpose'];\nvar createCsSqr = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var add = _ref.add,\n multiply = _ref.multiply,\n transpose = _ref.transpose;\n var csAmd = (0, _csAmd.createCsAmd)({\n add: add,\n multiply: multiply,\n transpose: transpose\n });\n var csCounts = (0, _csCounts.createCsCounts)({\n transpose: transpose\n });\n /**\n * Symbolic ordering and analysis for QR and LU decompositions.\n *\n * @param {Number} order The ordering strategy (see csAmd for more details)\n * @param {Matrix} a The A matrix\n * @param {boolean} qr Symbolic ordering and analysis for QR decomposition (true) or\n * symbolic ordering and analysis for LU decomposition (false)\n *\n * @return {Object} The Symbolic ordering and analysis for matrix A\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\n\n return function csSqr(order, a, qr) {\n // a arrays\n var aptr = a._ptr;\n var asize = a._size; // columns\n\n var n = asize[1]; // vars\n\n var k; // symbolic analysis result\n\n var s = {}; // fill-reducing ordering\n\n s.q = csAmd(order, a); // validate results\n\n if (order && !s.q) {\n return null;\n } // QR symbolic analysis\n\n\n if (qr) {\n // apply permutations if needed\n var c = order ? (0, _csPermute.csPermute)(a, null, s.q, 0) : a; // etree of C'*C, where C=A(:,q)\n\n s.parent = (0, _csEtree.csEtree)(c, 1); // post order elimination tree\n\n var post = (0, _csPost.csPost)(s.parent, n); // col counts chol(C'*C)\n\n s.cp = csCounts(c, s.parent, post, 1); // check we have everything needed to calculate number of nonzero elements\n\n if (c && s.parent && s.cp && _vcount(c, s)) {\n // calculate number of nonzero elements\n for (s.unz = 0, k = 0; k < n; k++) {\n s.unz += s.cp[k];\n }\n }\n } else {\n // for LU factorization only, guess nnz(L) and nnz(U)\n s.unz = 4 * aptr[n] + n;\n s.lnz = s.unz;\n } // return result S\n\n\n return s;\n };\n /**\n * Compute nnz(V) = s.lnz, s.pinv, s.leftmost, s.m2 from A and s.parent\n */\n\n function _vcount(a, s) {\n // a arrays\n var aptr = a._ptr;\n var aindex = a._index;\n var asize = a._size; // rows & columns\n\n var m = asize[0];\n var n = asize[1]; // initialize s arrays\n\n s.pinv = []; // (m + n)\n\n s.leftmost = []; // (m)\n // vars\n\n var parent = s.parent;\n var pinv = s.pinv;\n var leftmost = s.leftmost; // workspace, next: first m entries, head: next n entries, tail: next n entries, nque: next n entries\n\n var w = []; // (m + 3 * n)\n\n var next = 0;\n var head = m;\n var tail = m + n;\n var nque = m + 2 * n; // vars\n\n var i, k, p, p0, p1; // initialize w\n\n for (k = 0; k < n; k++) {\n // queue k is empty\n w[head + k] = -1;\n w[tail + k] = -1;\n w[nque + k] = 0;\n } // initialize row arrays\n\n\n for (i = 0; i < m; i++) {\n leftmost[i] = -1;\n } // loop columns backwards\n\n\n for (k = n - 1; k >= 0; k--) {\n // values & index for column k\n for (p0 = aptr[k], p1 = aptr[k + 1], p = p0; p < p1; p++) {\n // leftmost[i] = min(find(A(i,:)))\n leftmost[aindex[p]] = k;\n }\n } // scan rows in reverse order\n\n\n for (i = m - 1; i >= 0; i--) {\n // row i is not yet ordered\n pinv[i] = -1;\n k = leftmost[i]; // check row i is empty\n\n if (k === -1) {\n continue;\n } // first row in queue k\n\n\n if (w[nque + k]++ === 0) {\n w[tail + k] = i;\n } // put i at head of queue k\n\n\n w[next + i] = w[head + k];\n w[head + k] = i;\n }\n\n s.lnz = 0;\n s.m2 = m; // find row permutation and nnz(V)\n\n for (k = 0; k < n; k++) {\n // remove row i from queue k\n i = w[head + k]; // count V(k,k) as nonzero\n\n s.lnz++; // add a fictitious row\n\n if (i < 0) {\n i = s.m2++;\n } // associate row i with V(:,k)\n\n\n pinv[i] = k; // skip if V(k+1:m,k) is empty\n\n if (--nque[k] <= 0) {\n continue;\n } // nque[k] is nnz (V(k+1:m,k))\n\n\n s.lnz += w[nque + k]; // move all rows to parent of k\n\n var pa = parent[k];\n\n if (pa !== -1) {\n if (w[nque + pa] === 0) {\n w[tail + pa] = w[tail + k];\n }\n\n w[next + w[tail + k]] = w[head + pa];\n w[head + pa] = w[next + i];\n w[nque + pa] += w[nque + k];\n }\n }\n\n for (i = 0; i < m; i++) {\n if (pinv[i] < 0) {\n pinv[i] = k++;\n }\n }\n\n return true;\n }\n});\nexports.createCsSqr = createCsSqr;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csMarked = csMarked;\n\n/**\n * Checks if the node at w[j] is marked\n *\n * @param {Array} w The array\n * @param {Number} j The array index\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csMarked(w, j) {\n // check node is marked\n return w[j] < 0;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csMark = csMark;\n\nvar _csFlip = require(\"./csFlip.js\");\n\n/**\n * Marks the node at w[j]\n *\n * @param {Array} w The array\n * @param {Number} j The array index\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csMark(w, j) {\n // mark w[j]\n w[j] = (0, _csFlip.csFlip)(w[j]);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csUnflip = csUnflip;\n\nvar _csFlip = require(\"./csFlip.js\");\n\n/**\n * Flips the value if it is negative of returns the same value otherwise.\n *\n * @param {Number} i The value to flip\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csUnflip(i) {\n // flip the value if it is negative\n return i < 0 ? (0, _csFlip.csFlip)(i) : i;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csDfs = csDfs;\n\nvar _csMarked = require(\"./csMarked.js\");\n\nvar _csMark = require(\"./csMark.js\");\n\nvar _csUnflip = require(\"./csUnflip.js\");\n\n/**\n * Depth-first search computes the nonzero pattern xi of the directed graph G (Matrix) starting\n * at nodes in B (see csReach()).\n *\n * @param {Number} j The starting node for the DFS algorithm\n * @param {Matrix} g The G matrix to search, ptr array modified, then restored\n * @param {Number} top Start index in stack xi[top..n-1]\n * @param {Number} k The kth column in B\n * @param {Array} xi The nonzero pattern xi[top] .. xi[n - 1], an array of size = 2 * n\n * The first n entries is the nonzero pattern, the last n entries is the stack\n * @param {Array} pinv The inverse row permutation vector, must be null for L * x = b\n *\n * @return {Number} New value of top\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csDfs(j, g, top, xi, pinv) {\n // g arrays\n var index = g._index;\n var ptr = g._ptr;\n var size = g._size; // columns\n\n var n = size[1]; // vars\n\n var i, p, p2; // initialize head\n\n var head = 0; // initialize the recursion stack\n\n xi[0] = j; // loop\n\n while (head >= 0) {\n // get j from the top of the recursion stack\n j = xi[head]; // apply permutation vector\n\n var jnew = pinv ? pinv[j] : j; // check node j is marked\n\n if (!(0, _csMarked.csMarked)(ptr, j)) {\n // mark node j as visited\n (0, _csMark.csMark)(ptr, j); // update stack (last n entries in xi)\n\n xi[n + head] = jnew < 0 ? 0 : (0, _csUnflip.csUnflip)(ptr[jnew]);\n } // node j done if no unvisited neighbors\n\n\n var done = 1; // examine all neighbors of j, stack (last n entries in xi)\n\n for (p = xi[n + head], p2 = jnew < 0 ? 0 : (0, _csUnflip.csUnflip)(ptr[jnew + 1]); p < p2; p++) {\n // consider neighbor node i\n i = index[p]; // check we have visited node i, skip it\n\n if ((0, _csMarked.csMarked)(ptr, i)) {\n continue;\n } // pause depth-first search of node j, update stack (last n entries in xi)\n\n\n xi[n + head] = p; // start dfs at node i\n\n xi[++head] = i; // node j is not done\n\n done = 0; // break, to start dfs(i)\n\n break;\n } // check depth-first search at node j is done\n\n\n if (done) {\n // remove j from the recursion stack\n head--; // and place in the output stack\n\n xi[--top] = j;\n }\n }\n\n return top;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csReach = csReach;\n\nvar _csMarked = require(\"./csMarked.js\");\n\nvar _csMark = require(\"./csMark.js\");\n\nvar _csDfs = require(\"./csDfs.js\");\n\n/**\n * The csReach function computes X = Reach(B), where B is the nonzero pattern of the n-by-1\n * sparse column of vector b. The function returns the set of nodes reachable from any node in B. The\n * nonzero pattern xi of the solution x to the sparse linear system Lx=b is given by X=Reach(B).\n *\n * @param {Matrix} g The G matrix\n * @param {Matrix} b The B matrix\n * @param {Number} k The kth column in B\n * @param {Array} xi The nonzero pattern xi[top] .. xi[n - 1], an array of size = 2 * n\n * The first n entries is the nonzero pattern, the last n entries is the stack\n * @param {Array} pinv The inverse row permutation vector\n *\n * @return {Number} The index for the nonzero pattern\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\nfunction csReach(g, b, k, xi, pinv) {\n // g arrays\n var gptr = g._ptr;\n var gsize = g._size; // b arrays\n\n var bindex = b._index;\n var bptr = b._ptr; // columns\n\n var n = gsize[1]; // vars\n\n var p, p0, p1; // initialize top\n\n var top = n; // loop column indeces in B\n\n for (p0 = bptr[k], p1 = bptr[k + 1], p = p0; p < p1; p++) {\n // node i\n var i = bindex[p]; // check node i is marked\n\n if (!(0, _csMarked.csMarked)(gptr, i)) {\n // start a dfs at unmarked node i\n top = (0, _csDfs.csDfs)(i, g, top, xi, pinv);\n }\n } // loop columns from top -> n - 1\n\n\n for (p = top; p < n; p++) {\n // restore G\n (0, _csMark.csMark)(gptr, xi[p]);\n }\n\n return top;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsSpsolve = void 0;\n\nvar _csReach = require(\"./csReach.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'csSpsolve';\nvar dependencies = ['divideScalar', 'multiply', 'subtract'];\nvar createCsSpsolve = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var divideScalar = _ref.divideScalar,\n multiply = _ref.multiply,\n subtract = _ref.subtract;\n\n /**\n * The function csSpsolve() computes the solution to G * x = bk, where bk is the\n * kth column of B. When lo is true, the function assumes G = L is lower triangular with the\n * diagonal entry as the first entry in each column. When lo is true, the function assumes G = U\n * is upper triangular with the diagonal entry as the last entry in each column.\n *\n * @param {Matrix} g The G matrix\n * @param {Matrix} b The B matrix\n * @param {Number} k The kth column in B\n * @param {Array} xi The nonzero pattern xi[top] .. xi[n - 1], an array of size = 2 * n\n * The first n entries is the nonzero pattern, the last n entries is the stack\n * @param {Array} x The soluton to the linear system G * x = b\n * @param {Array} pinv The inverse row permutation vector, must be null for L * x = b\n * @param {boolean} lo The lower (true) upper triangular (false) flag\n *\n * @return {Number} The index for the nonzero pattern\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\n return function csSpsolve(g, b, k, xi, x, pinv, lo) {\n // g arrays\n var gvalues = g._values;\n var gindex = g._index;\n var gptr = g._ptr;\n var gsize = g._size; // columns\n\n var n = gsize[1]; // b arrays\n\n var bvalues = b._values;\n var bindex = b._index;\n var bptr = b._ptr; // vars\n\n var p, p0, p1, q; // xi[top..n-1] = csReach(B(:,k))\n\n var top = (0, _csReach.csReach)(g, b, k, xi, pinv); // clear x\n\n for (p = top; p < n; p++) {\n x[xi[p]] = 0;\n } // scatter b\n\n\n for (p0 = bptr[k], p1 = bptr[k + 1], p = p0; p < p1; p++) {\n x[bindex[p]] = bvalues[p];\n } // loop columns\n\n\n for (var px = top; px < n; px++) {\n // x array index for px\n var j = xi[px]; // apply permutation vector (U x = b), j maps to column J of G\n\n var J = pinv ? pinv[j] : j; // check column J is empty\n\n if (J < 0) {\n continue;\n } // column value indeces in G, p0 <= p < p1\n\n\n p0 = gptr[J];\n p1 = gptr[J + 1]; // x(j) /= G(j,j)\n\n x[j] = divideScalar(x[j], gvalues[lo ? p0 : p1 - 1]); // first entry L(j,j)\n\n p = lo ? p0 + 1 : p0;\n q = lo ? p1 : p1 - 1; // loop\n\n for (; p < q; p++) {\n // row\n var i = gindex[p]; // x(i) -= G(i,j) * x(j)\n\n x[i] = subtract(x[i], multiply(gvalues[p], x[j]));\n }\n } // return top of stack\n\n\n return top;\n };\n});\nexports.createCsSpsolve = createCsSpsolve;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCsLu = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _csSpsolve = require(\"./csSpsolve.js\");\n\nvar name = 'csLu';\nvar dependencies = ['abs', 'divideScalar', 'multiply', 'subtract', 'larger', 'largerEq', 'SparseMatrix'];\nvar createCsLu = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var abs = _ref.abs,\n divideScalar = _ref.divideScalar,\n multiply = _ref.multiply,\n subtract = _ref.subtract,\n larger = _ref.larger,\n largerEq = _ref.largerEq,\n SparseMatrix = _ref.SparseMatrix;\n var csSpsolve = (0, _csSpsolve.createCsSpsolve)({\n divideScalar: divideScalar,\n multiply: multiply,\n subtract: subtract\n });\n /**\n * Computes the numeric LU factorization of the sparse matrix A. Implements a Left-looking LU factorization\n * algorithm that computes L and U one column at a tume. At the kth step, it access columns 1 to k-1 of L\n * and column k of A. Given the fill-reducing column ordering q (see parameter s) computes L, U and pinv so\n * L * U = A(p, q), where p is the inverse of pinv.\n *\n * @param {Matrix} m The A Matrix to factorize\n * @param {Object} s The symbolic analysis from csSqr(). Provides the fill-reducing\n * column ordering q\n * @param {Number} tol Partial pivoting threshold (1 for partial pivoting)\n *\n * @return {Number} The numeric LU factorization of A or null\n *\n * Reference: http://faculty.cse.tamu.edu/davis/publications.html\n */\n\n return function csLu(m, s, tol) {\n // validate input\n if (!m) {\n return null;\n } // m arrays\n\n\n var size = m._size; // columns\n\n var n = size[1]; // symbolic analysis result\n\n var q;\n var lnz = 100;\n var unz = 100; // update symbolic analysis parameters\n\n if (s) {\n q = s.q;\n lnz = s.lnz || lnz;\n unz = s.unz || unz;\n } // L arrays\n\n\n var lvalues = []; // (lnz)\n\n var lindex = []; // (lnz)\n\n var lptr = []; // (n + 1)\n // L\n\n var L = new SparseMatrix({\n values: lvalues,\n index: lindex,\n ptr: lptr,\n size: [n, n]\n }); // U arrays\n\n var uvalues = []; // (unz)\n\n var uindex = []; // (unz)\n\n var uptr = []; // (n + 1)\n // U\n\n var U = new SparseMatrix({\n values: uvalues,\n index: uindex,\n ptr: uptr,\n size: [n, n]\n }); // inverse of permutation vector\n\n var pinv = []; // (n)\n // vars\n\n var i, p; // allocate arrays\n\n var x = []; // (n)\n\n var xi = []; // (2 * n)\n // initialize variables\n\n for (i = 0; i < n; i++) {\n // clear workspace\n x[i] = 0; // no rows pivotal yet\n\n pinv[i] = -1; // no cols of L yet\n\n lptr[i + 1] = 0;\n } // reset number of nonzero elements in L and U\n\n\n lnz = 0;\n unz = 0; // compute L(:,k) and U(:,k)\n\n for (var k = 0; k < n; k++) {\n // update ptr\n lptr[k] = lnz;\n uptr[k] = unz; // apply column permutations if needed\n\n var col = q ? q[k] : k; // solve triangular system, x = L\\A(:,col)\n\n var top = csSpsolve(L, m, col, xi, x, pinv, 1); // find pivot\n\n var ipiv = -1;\n var a = -1; // loop xi[] from top -> n\n\n for (p = top; p < n; p++) {\n // x[i] is nonzero\n i = xi[p]; // check row i is not yet pivotal\n\n if (pinv[i] < 0) {\n // absolute value of x[i]\n var xabs = abs(x[i]); // check absoulte value is greater than pivot value\n\n if (larger(xabs, a)) {\n // largest pivot candidate so far\n a = xabs;\n ipiv = i;\n }\n } else {\n // x(i) is the entry U(pinv[i],k)\n uindex[unz] = pinv[i];\n uvalues[unz++] = x[i];\n }\n } // validate we found a valid pivot\n\n\n if (ipiv === -1 || a <= 0) {\n return null;\n } // update actual pivot column, give preference to diagonal value\n\n\n if (pinv[col] < 0 && largerEq(abs(x[col]), multiply(a, tol))) {\n ipiv = col;\n } // the chosen pivot\n\n\n var pivot = x[ipiv]; // last entry in U(:,k) is U(k,k)\n\n uindex[unz] = k;\n uvalues[unz++] = pivot; // ipiv is the kth pivot row\n\n pinv[ipiv] = k; // first entry in L(:,k) is L(k,k) = 1\n\n lindex[lnz] = ipiv;\n lvalues[lnz++] = 1; // L(k+1:n,k) = x / pivot\n\n for (p = top; p < n; p++) {\n // row\n i = xi[p]; // check x(i) is an entry in L(:,k)\n\n if (pinv[i] < 0) {\n // save unpermuted row in L\n lindex[lnz] = i; // scale pivot column\n\n lvalues[lnz++] = divideScalar(x[i], pivot);\n } // x[0..n-1] = 0 for next k\n\n\n x[i] = 0;\n }\n } // update ptr\n\n\n lptr[n] = lnz;\n uptr[n] = unz; // fix row indices of L for final pinv\n\n for (p = 0; p < lnz; p++) {\n lindex[p] = pinv[lindex[p]];\n } // trim arrays\n\n\n lvalues.splice(lnz, lvalues.length - lnz);\n lindex.splice(lnz, lindex.length - lnz);\n uvalues.splice(unz, uvalues.length - unz);\n uindex.splice(unz, uindex.length - unz); // return LU factor\n\n return {\n L: L,\n U: U,\n pinv: pinv\n };\n };\n});\nexports.createCsLu = createCsLu;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSlu = void 0;\n\nvar _number = require(\"../../../utils/number.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _csSqr = require(\"../sparse/csSqr.js\");\n\nvar _csLu = require(\"../sparse/csLu.js\");\n\nvar name = 'slu';\nvar dependencies = ['typed', 'abs', 'add', 'multiply', 'transpose', 'divideScalar', 'subtract', 'larger', 'largerEq', 'SparseMatrix'];\nvar createSlu = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n abs = _ref.abs,\n add = _ref.add,\n multiply = _ref.multiply,\n transpose = _ref.transpose,\n divideScalar = _ref.divideScalar,\n subtract = _ref.subtract,\n larger = _ref.larger,\n largerEq = _ref.largerEq,\n SparseMatrix = _ref.SparseMatrix;\n var csSqr = (0, _csSqr.createCsSqr)({\n add: add,\n multiply: multiply,\n transpose: transpose\n });\n var csLu = (0, _csLu.createCsLu)({\n abs: abs,\n divideScalar: divideScalar,\n multiply: multiply,\n subtract: subtract,\n larger: larger,\n largerEq: largerEq,\n SparseMatrix: SparseMatrix\n });\n /**\n * Calculate the Sparse Matrix LU decomposition with full pivoting. Sparse Matrix `A` is decomposed in two matrices (`L`, `U`) and two permutation vectors (`pinv`, `q`) where\n *\n * `P * A * Q = L * U`\n *\n * Syntax:\n *\n * math.slu(A, order, threshold)\n *\n * Examples:\n *\n * const A = math.sparse([[4,3], [6, 3]])\n * math.slu(A, 1, 0.001)\n * // returns:\n * // {\n * // L: [[1, 0], [1.5, 1]]\n * // U: [[4, 3], [0, -1.5]]\n * // p: [0, 1]\n * // q: [0, 1]\n * // }\n *\n * See also:\n *\n * lup, lsolve, usolve, lusolve\n *\n * @param {SparseMatrix} A A two dimensional sparse matrix for which to get the LU decomposition.\n * @param {Number} order The Symbolic Ordering and Analysis order:\n * 0 - Natural ordering, no permutation vector q is returned\n * 1 - Matrix must be square, symbolic ordering and analisis is performed on M = A + A'\n * 2 - Symbolic ordering and analisis is performed on M = A' * A. Dense columns from A' are dropped, A recreated from A'.\n * This is appropriatefor LU factorization of unsymmetric matrices.\n * 3 - Symbolic ordering and analisis is performed on M = A' * A. This is best used for LU factorization is matrix M has no dense rows.\n * A dense row is a row with more than 10*sqr(columns) entries.\n * @param {Number} threshold Partial pivoting threshold (1 for partial pivoting)\n *\n * @return {Object} The lower triangular matrix, the upper triangular matrix and the permutation vectors.\n */\n\n return typed(name, {\n 'SparseMatrix, number, number': function SparseMatrixNumberNumber(a, order, threshold) {\n // verify order\n if (!(0, _number.isInteger)(order) || order < 0 || order > 3) {\n throw new Error('Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]');\n } // verify threshold\n\n\n if (threshold < 0 || threshold > 1) {\n throw new Error('Partial pivoting threshold must be a number from 0 to 1');\n } // perform symbolic ordering and analysis\n\n\n var s = csSqr(order, a, false); // perform lu decomposition\n\n var f = csLu(a, s, threshold); // return decomposition\n\n return {\n L: f.L,\n U: f.U,\n p: f.pinv,\n q: s.q,\n toString: function toString() {\n return 'L: ' + this.L.toString() + '\\nU: ' + this.U.toString() + '\\np: ' + this.p.toString() + (this.q ? '\\nq: ' + this.q.toString() : '') + '\\n';\n }\n };\n }\n });\n});\nexports.createSlu = createSlu;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.csIpvec = csIpvec;\n\n/**\n * Permutes a vector; x = P'b. In MATLAB notation, x(p)=b.\n *\n * @param {Array} p The permutation vector of length n. null value denotes identity\n * @param {Array} b The input vector\n *\n * @return {Array} The output vector x = P'b\n */\nfunction csIpvec(p, b) {\n // vars\n var k;\n var n = b.length;\n var x = []; // check permutation vector was provided, p = null denotes identity\n\n if (p) {\n // loop vector\n for (k = 0; k < n; k++) {\n // apply permutation\n x[p[k]] = b[k];\n }\n } else {\n // loop vector\n for (k = 0; k < n; k++) {\n // x[i] = b[i]\n x[k] = b[k];\n }\n }\n\n return x;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLusolve = void 0;\n\nvar _is = require(\"../../../utils/is.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _solveValidation = require(\"./utils/solveValidation.js\");\n\nvar _csIpvec = require(\"../sparse/csIpvec.js\");\n\nvar name = 'lusolve';\nvar dependencies = ['typed', 'matrix', 'lup', 'slu', 'usolve', 'lsolve', 'DenseMatrix'];\nvar createLusolve = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n lup = _ref.lup,\n slu = _ref.slu,\n usolve = _ref.usolve,\n lsolve = _ref.lsolve,\n DenseMatrix = _ref.DenseMatrix;\n var solveValidation = (0, _solveValidation.createSolveValidation)({\n DenseMatrix: DenseMatrix\n });\n /**\n * Solves the linear system `A * x = b` where `A` is an [n x n] matrix and `b` is a [n] column vector.\n *\n * Syntax:\n *\n * math.lusolve(A, b) // returns column vector with the solution to the linear system A * x = b\n * math.lusolve(lup, b) // returns column vector with the solution to the linear system A * x = b, lup = math.lup(A)\n *\n * Examples:\n *\n * const m = [[1, 0, 0, 0], [0, 2, 0, 0], [0, 0, 3, 0], [0, 0, 0, 4]]\n *\n * const x = math.lusolve(m, [-1, -1, -1, -1]) // x = [[-1], [-0.5], [-1/3], [-0.25]]\n *\n * const f = math.lup(m)\n * const x1 = math.lusolve(f, [-1, -1, -1, -1]) // x1 = [[-1], [-0.5], [-1/3], [-0.25]]\n * const x2 = math.lusolve(f, [1, 2, 1, -1]) // x2 = [[1], [1], [1/3], [-0.25]]\n *\n * const a = [[-2, 3], [2, 1]]\n * const b = [11, 9]\n * const x = math.lusolve(a, b) // [[2], [5]]\n *\n * See also:\n *\n * lup, slu, lsolve, usolve\n *\n * @param {Matrix | Array | Object} A Invertible Matrix or the Matrix LU decomposition\n * @param {Matrix | Array} b Column Vector\n * @param {number} [order] The Symbolic Ordering and Analysis order, see slu for details. Matrix must be a SparseMatrix\n * @param {Number} [threshold] Partial pivoting threshold (1 for partial pivoting), see slu for details. Matrix must be a SparseMatrix.\n *\n * @return {DenseMatrix | Array} Column vector with the solution to the linear system A * x = b\n */\n\n return typed(name, {\n 'Array, Array | Matrix': function ArrayArrayMatrix(a, b) {\n a = matrix(a);\n var d = lup(a);\n\n var x = _lusolve(d.L, d.U, d.p, null, b);\n\n return x.valueOf();\n },\n 'DenseMatrix, Array | Matrix': function DenseMatrixArrayMatrix(a, b) {\n var d = lup(a);\n return _lusolve(d.L, d.U, d.p, null, b);\n },\n 'SparseMatrix, Array | Matrix': function SparseMatrixArrayMatrix(a, b) {\n var d = lup(a);\n return _lusolve(d.L, d.U, d.p, null, b);\n },\n 'SparseMatrix, Array | Matrix, number, number': function SparseMatrixArrayMatrixNumberNumber(a, b, order, threshold) {\n var d = slu(a, order, threshold);\n return _lusolve(d.L, d.U, d.p, d.q, b);\n },\n 'Object, Array | Matrix': function ObjectArrayMatrix(d, b) {\n return _lusolve(d.L, d.U, d.p, d.q, b);\n }\n });\n\n function _toMatrix(a) {\n if ((0, _is.isMatrix)(a)) {\n return a;\n }\n\n if ((0, _is.isArray)(a)) {\n return matrix(a);\n }\n\n throw new TypeError('Invalid Matrix LU decomposition');\n }\n\n function _lusolve(l, u, p, q, b) {\n // verify decomposition\n l = _toMatrix(l);\n u = _toMatrix(u); // apply row permutations if needed (b is a DenseMatrix)\n\n if (p) {\n b = solveValidation(l, b, true);\n b._data = (0, _csIpvec.csIpvec)(p, b._data);\n } // use forward substitution to resolve L * y = b\n\n\n var y = lsolve(l, b); // use backward substitution to resolve U * x = y\n\n var x = usolve(u, y); // apply column permutations if needed (x is a DenseMatrix)\n\n if (q) {\n x._data = (0, _csIpvec.csIpvec)(q, x._data);\n }\n\n return x;\n }\n});\nexports.createLusolve = createLusolve;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createHelpClass = void 0;\n\nvar _is = require(\"../utils/is.js\");\n\nvar _object = require(\"../utils/object.js\");\n\nvar _string = require(\"../utils/string.js\");\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar name = 'Help';\nvar dependencies = ['parse'];\nvar createHelpClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var parse = _ref.parse;\n\n /**\n * Documentation object\n * @param {Object} doc Object containing properties:\n * {string} name\n * {string} category\n * {string} description\n * {string[]} syntax\n * {string[]} examples\n * {string[]} seealso\n * @constructor\n */\n function Help(doc) {\n if (!(this instanceof Help)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if (!doc) throw new Error('Argument \"doc\" missing');\n this.doc = doc;\n }\n /**\n * Attach type information\n */\n\n\n Help.prototype.type = 'Help';\n Help.prototype.isHelp = true;\n /**\n * Generate a string representation of the Help object\n * @return {string} Returns a string\n * @private\n */\n\n Help.prototype.toString = function () {\n var doc = this.doc || {};\n var desc = '\\n';\n\n if (doc.name) {\n desc += 'Name: ' + doc.name + '\\n\\n';\n }\n\n if (doc.category) {\n desc += 'Category: ' + doc.category + '\\n\\n';\n }\n\n if (doc.description) {\n desc += 'Description:\\n ' + doc.description + '\\n\\n';\n }\n\n if (doc.syntax) {\n desc += 'Syntax:\\n ' + doc.syntax.join('\\n ') + '\\n\\n';\n }\n\n if (doc.examples) {\n desc += 'Examples:\\n';\n var scope = {};\n\n for (var i = 0; i < doc.examples.length; i++) {\n var expr = doc.examples[i];\n desc += ' ' + expr + '\\n';\n var res = void 0;\n\n try {\n // note: res can be undefined when `expr` is an empty string\n res = parse(expr).compile().evaluate(scope);\n } catch (e) {\n res = e;\n }\n\n if (res !== undefined && !(0, _is.isHelp)(res)) {\n desc += ' ' + (0, _string.format)(res, {\n precision: 14\n }) + '\\n';\n }\n }\n\n desc += '\\n';\n }\n\n if (doc.mayThrow && doc.mayThrow.length) {\n desc += 'Throws: ' + doc.mayThrow.join(', ') + '\\n\\n';\n }\n\n if (doc.seealso && doc.seealso.length) {\n desc += 'See also: ' + doc.seealso.join(', ') + '\\n';\n }\n\n return desc;\n };\n /**\n * Export the help object to JSON\n */\n\n\n Help.prototype.toJSON = function () {\n var obj = (0, _object.clone)(this.doc);\n obj.mathjs = 'Help';\n return obj;\n };\n /**\n * Instantiate a Help object from a JSON object\n * @param {Object} json\n * @returns {Help} Returns a new Help object\n */\n\n\n Help.fromJSON = function (json) {\n var doc = {};\n Object.keys(json).filter(function (prop) {\n return prop !== 'mathjs';\n }).forEach(function (prop) {\n doc[prop] = json[prop];\n });\n return new Help(doc);\n };\n /**\n * Returns a string representation of the Help object\n */\n\n\n Help.prototype.valueOf = Help.prototype.toString;\n return Help;\n}, {\n isClass: true\n});\nexports.createHelpClass = createHelpClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createChainClass = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'Chain';\nvar dependencies = ['?on', 'math'];\nvar createChainClass = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var on = _ref.on,\n math = _ref.math;\n\n /**\n * @constructor Chain\n * Wrap any value in a chain, allowing to perform chained operations on\n * the value.\n *\n * All methods available in the math.js library can be called upon the chain,\n * and then will be evaluated with the value itself as first argument.\n * The chain can be closed by executing chain.done(), which will return\n * the final value.\n *\n * The Chain has a number of special functions:\n * - done() Finalize the chained operation and return the\n * chain's value.\n * - valueOf() The same as done()\n * - toString() Returns a string representation of the chain's value.\n *\n * @param {*} [value]\n */\n function Chain(value) {\n if (!(this instanceof Chain)) {\n throw new SyntaxError('Constructor must be called with the new operator');\n }\n\n if ((0, _is.isChain)(value)) {\n this.value = value.value;\n } else {\n this.value = value;\n }\n }\n /**\n * Attach type information\n */\n\n\n Chain.prototype.type = 'Chain';\n Chain.prototype.isChain = true;\n /**\n * Close the chain. Returns the final value.\n * Does the same as method valueOf()\n * @returns {*} value\n */\n\n Chain.prototype.done = function () {\n return this.value;\n };\n /**\n * Close the chain. Returns the final value.\n * Does the same as method done()\n * @returns {*} value\n */\n\n\n Chain.prototype.valueOf = function () {\n return this.value;\n };\n /**\n * Get a string representation of the value in the chain\n * @returns {string}\n */\n\n\n Chain.prototype.toString = function () {\n return (0, _string.format)(this.value);\n };\n /**\n * Get a JSON representation of the chain\n * @returns {Object}\n */\n\n\n Chain.prototype.toJSON = function () {\n return {\n mathjs: 'Chain',\n value: this.value\n };\n };\n /**\n * Instantiate a Chain from its JSON representation\n * @param {Object} json An object structured like\n * `{\"mathjs\": \"Chain\", value: ...}`,\n * where mathjs is optional\n * @returns {Chain}\n */\n\n\n Chain.fromJSON = function (json) {\n return new Chain(json.value);\n };\n /**\n * Create a proxy method for the chain\n * @param {string} name\n * @param {Function} fn The function to be proxied\n * If fn is no function, it is silently ignored.\n * @private\n */\n\n\n function createProxy(name, fn) {\n if (typeof fn === 'function') {\n Chain.prototype[name] = chainify(fn);\n }\n }\n /**\n * Create a proxy method for the chain\n * @param {string} name\n * @param {function} resolver The function resolving with the\n * function to be proxied\n * @private\n */\n\n\n function createLazyProxy(name, resolver) {\n (0, _object.lazy)(Chain.prototype, name, function outerResolver() {\n var fn = resolver();\n\n if (typeof fn === 'function') {\n return chainify(fn);\n }\n\n return undefined; // if not a function, ignore\n });\n }\n /**\n * Make a function chainable\n * @param {function} fn\n * @return {Function} chain function\n * @private\n */\n\n\n function chainify(fn) {\n return function () {\n var args = [this.value]; // `this` will be the context of a Chain instance\n\n for (var i = 0; i < arguments.length; i++) {\n args[i + 1] = arguments[i];\n }\n\n return new Chain(fn.apply(fn, args));\n };\n }\n /**\n * Create a proxy for a single method, or an object with multiple methods.\n * Example usage:\n *\n * Chain.createProxy('add', function add (x, y) {...})\n * Chain.createProxy({\n * add: function add (x, y) {...},\n * subtract: function subtract (x, y) {...}\n * }\n *\n * @param {string | Object} arg0 A name (string), or an object with\n * functions\n * @param {*} [arg1] A function, when arg0 is a name\n */\n\n\n Chain.createProxy = function (arg0, arg1) {\n if (typeof arg0 === 'string') {\n // createProxy(name, value)\n createProxy(arg0, arg1);\n } else {\n var _loop = function _loop(_name) {\n if ((0, _object.hasOwnProperty)(arg0, _name) && excludedNames[_name] === undefined) {\n createLazyProxy(_name, function () {\n return arg0[_name];\n });\n }\n };\n\n // createProxy(values)\n for (var _name in arg0) {\n _loop(_name);\n }\n }\n };\n\n var excludedNames = {\n expression: true,\n docs: true,\n type: true,\n classes: true,\n json: true,\n error: true,\n isChain: true // conflicts with the property isChain of a Chain instance\n\n }; // create proxy for everything that is in math.js\n\n Chain.createProxy(math); // register on the import event, automatically add a proxy for every imported function.\n\n if (on) {\n on('import', function (name, resolver, path) {\n if (!path) {\n // an imported function (not a data type or something special)\n createLazyProxy(name, resolver);\n }\n });\n }\n\n return Chain;\n}, {\n isClass: true\n});\nexports.createChainClass = createChainClass;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.eDocs = void 0;\nvar eDocs = {\n name: 'e',\n category: 'Constants',\n syntax: ['e'],\n description: 'Euler\\'s number, the base of the natural logarithm. Approximately equal to 2.71828',\n examples: ['e', 'e ^ 2', 'exp(2)', 'log(e)'],\n seealso: ['exp']\n};\nexports.eDocs = eDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.falseDocs = void 0;\nvar falseDocs = {\n name: 'false',\n category: 'Constants',\n syntax: ['false'],\n description: 'Boolean value false',\n examples: ['false'],\n seealso: ['true']\n};\nexports.falseDocs = falseDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.iDocs = void 0;\nvar iDocs = {\n name: 'i',\n category: 'Constants',\n syntax: ['i'],\n description: 'Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.',\n examples: ['i', 'i * i', 'sqrt(-1)'],\n seealso: []\n};\nexports.iDocs = iDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.InfinityDocs = void 0;\nvar InfinityDocs = {\n name: 'Infinity',\n category: 'Constants',\n syntax: ['Infinity'],\n description: 'Infinity, a number which is larger than the maximum number that can be handled by a floating point number.',\n examples: ['Infinity', '1 / 0'],\n seealso: []\n};\nexports.InfinityDocs = InfinityDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LN10Docs = void 0;\nvar LN10Docs = {\n name: 'LN10',\n category: 'Constants',\n syntax: ['LN10'],\n description: 'Returns the natural logarithm of 10, approximately equal to 2.302',\n examples: ['LN10', 'log(10)'],\n seealso: []\n};\nexports.LN10Docs = LN10Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LN2Docs = void 0;\nvar LN2Docs = {\n name: 'LN2',\n category: 'Constants',\n syntax: ['LN2'],\n description: 'Returns the natural logarithm of 2, approximately equal to 0.693',\n examples: ['LN2', 'log(2)'],\n seealso: []\n};\nexports.LN2Docs = LN2Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LOG10EDocs = void 0;\nvar LOG10EDocs = {\n name: 'LOG10E',\n category: 'Constants',\n syntax: ['LOG10E'],\n description: 'Returns the base-10 logarithm of E, approximately equal to 0.434',\n examples: ['LOG10E', 'log(e, 10)'],\n seealso: []\n};\nexports.LOG10EDocs = LOG10EDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LOG2EDocs = void 0;\nvar LOG2EDocs = {\n name: 'LOG2E',\n category: 'Constants',\n syntax: ['LOG2E'],\n description: 'Returns the base-2 logarithm of E, approximately equal to 1.442',\n examples: ['LOG2E', 'log(e, 2)'],\n seealso: []\n};\nexports.LOG2EDocs = LOG2EDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NaNDocs = void 0;\nvar NaNDocs = {\n name: 'NaN',\n category: 'Constants',\n syntax: ['NaN'],\n description: 'Not a number',\n examples: ['NaN', '0 / 0'],\n seealso: []\n};\nexports.NaNDocs = NaNDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nullDocs = void 0;\nvar nullDocs = {\n name: 'null',\n category: 'Constants',\n syntax: ['null'],\n description: 'Value null',\n examples: ['null'],\n seealso: ['true', 'false']\n};\nexports.nullDocs = nullDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.phiDocs = void 0;\nvar phiDocs = {\n name: 'phi',\n category: 'Constants',\n syntax: ['phi'],\n description: 'Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...',\n examples: ['phi'],\n seealso: []\n};\nexports.phiDocs = phiDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.piDocs = void 0;\nvar piDocs = {\n name: 'pi',\n category: 'Constants',\n syntax: ['pi'],\n description: 'The number pi is a mathematical constant that is the ratio of a circle\\'s circumference to its diameter, and is approximately equal to 3.14159',\n examples: ['pi', 'sin(pi/2)'],\n seealso: ['tau']\n};\nexports.piDocs = piDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SQRT12Docs = void 0;\nvar SQRT12Docs = {\n name: 'SQRT1_2',\n category: 'Constants',\n syntax: ['SQRT1_2'],\n description: 'Returns the square root of 1/2, approximately equal to 0.707',\n examples: ['SQRT1_2', 'sqrt(1/2)'],\n seealso: []\n};\nexports.SQRT12Docs = SQRT12Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SQRT2Docs = void 0;\nvar SQRT2Docs = {\n name: 'SQRT2',\n category: 'Constants',\n syntax: ['SQRT2'],\n description: 'Returns the square root of 2, approximately equal to 1.414',\n examples: ['SQRT2', 'sqrt(2)'],\n seealso: []\n};\nexports.SQRT2Docs = SQRT2Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tauDocs = void 0;\nvar tauDocs = {\n name: 'tau',\n category: 'Constants',\n syntax: ['tau'],\n description: 'Tau is the ratio constant of a circle\\'s circumference to radius, equal to 2 * pi, approximately 6.2832.',\n examples: ['tau', '2 * pi'],\n seealso: ['pi']\n};\nexports.tauDocs = tauDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.trueDocs = void 0;\nvar trueDocs = {\n name: 'true',\n category: 'Constants',\n syntax: ['true'],\n description: 'Boolean value true',\n examples: ['true'],\n seealso: ['false']\n};\nexports.trueDocs = trueDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.versionDocs = void 0;\nvar versionDocs = {\n name: 'version',\n category: 'Constants',\n syntax: ['version'],\n description: 'A string with the version number of math.js',\n examples: ['version'],\n seealso: []\n};\nexports.versionDocs = versionDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bignumberDocs = void 0;\nvar bignumberDocs = {\n name: 'bignumber',\n category: 'Construction',\n syntax: ['bignumber(x)'],\n description: 'Create a big number from a number or string.',\n examples: ['0.1 + 0.2', 'bignumber(0.1) + bignumber(0.2)', 'bignumber(\"7.2\")', 'bignumber(\"7.2e500\")', 'bignumber([0.1, 0.2, 0.3])'],\n seealso: ['boolean', 'complex', 'fraction', 'index', 'matrix', 'string', 'unit']\n};\nexports.bignumberDocs = bignumberDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.booleanDocs = void 0;\nvar booleanDocs = {\n name: 'boolean',\n category: 'Construction',\n syntax: ['x', 'boolean(x)'],\n description: 'Convert a string or number into a boolean.',\n examples: ['boolean(0)', 'boolean(1)', 'boolean(3)', 'boolean(\"true\")', 'boolean(\"false\")', 'boolean([1, 0, 1, 1])'],\n seealso: ['bignumber', 'complex', 'index', 'matrix', 'number', 'string', 'unit']\n};\nexports.booleanDocs = booleanDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.complexDocs = void 0;\nvar complexDocs = {\n name: 'complex',\n category: 'Construction',\n syntax: ['complex()', 'complex(re, im)', 'complex(string)'],\n description: 'Create a complex number.',\n examples: ['complex()', 'complex(2, 3)', 'complex(\"7 - 2i\")'],\n seealso: ['bignumber', 'boolean', 'index', 'matrix', 'number', 'string', 'unit']\n};\nexports.complexDocs = complexDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnitDocs = void 0;\nvar createUnitDocs = {\n name: 'createUnit',\n category: 'Construction',\n syntax: ['createUnit(definitions)', 'createUnit(name, definition)'],\n description: 'Create a user-defined unit and register it with the Unit type.',\n examples: ['createUnit(\"foo\")', 'createUnit(\"knot\", {definition: \"0.514444444 m/s\", aliases: [\"knots\", \"kt\", \"kts\"]})', 'createUnit(\"mph\", \"1 mile/hour\")'],\n seealso: ['unit', 'splitUnit']\n};\nexports.createUnitDocs = createUnitDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fractionDocs = void 0;\nvar fractionDocs = {\n name: 'fraction',\n category: 'Construction',\n syntax: ['fraction(num)', 'fraction(matrix)', 'fraction(num,den)', 'fraction({n: num, d: den})'],\n description: 'Create a fraction from a number or from integer numerator and denominator.',\n examples: ['fraction(0.125)', 'fraction(1, 3) + fraction(2, 5)', 'fraction({n: 333, d: 53})', 'fraction([sqrt(9), sqrt(10), sqrt(11)])'],\n seealso: ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit']\n};\nexports.fractionDocs = fractionDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.indexDocs = void 0;\nvar indexDocs = {\n name: 'index',\n category: 'Construction',\n syntax: ['[start]', '[start:end]', '[start:step:end]', '[start1, start 2, ...]', '[start1:end1, start2:end2, ...]', '[start1:step1:end1, start2:step2:end2, ...]'],\n description: 'Create an index to get or replace a subset of a matrix',\n examples: ['[]', '[1, 2, 3]', 'A = [1, 2, 3; 4, 5, 6]', 'A[1, :]', 'A[1, 2] = 50', 'A[0:2, 0:2] = ones(2, 2)'],\n seealso: ['bignumber', 'boolean', 'complex', 'matrix,', 'number', 'range', 'string', 'unit']\n};\nexports.indexDocs = indexDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixDocs = void 0;\nvar matrixDocs = {\n name: 'matrix',\n category: 'Construction',\n syntax: ['[]', '[a1, b1, ...; a2, b2, ...]', 'matrix()', 'matrix(\"dense\")', 'matrix([...])'],\n description: 'Create a matrix.',\n examples: ['[]', '[1, 2, 3]', '[1, 2, 3; 4, 5, 6]', 'matrix()', 'matrix([3, 4])', 'matrix([3, 4; 5, 6], \"sparse\")', 'matrix([3, 4; 5, 6], \"sparse\", \"number\")'],\n seealso: ['bignumber', 'boolean', 'complex', 'index', 'number', 'string', 'unit', 'sparse']\n};\nexports.matrixDocs = matrixDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.numberDocs = void 0;\nvar numberDocs = {\n name: 'number',\n category: 'Construction',\n syntax: ['x', 'number(x)', 'number(unit, valuelessUnit)'],\n description: 'Create a number or convert a string or boolean into a number.',\n examples: ['2', '2e3', '4.05', 'number(2)', 'number(\"7.2\")', 'number(true)', 'number([true, false, true, true])', 'number(unit(\"52cm\"), \"m\")'],\n seealso: ['bignumber', 'boolean', 'complex', 'fraction', 'index', 'matrix', 'string', 'unit']\n};\nexports.numberDocs = numberDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sparseDocs = void 0;\nvar sparseDocs = {\n name: 'sparse',\n category: 'Construction',\n syntax: ['sparse()', 'sparse([a1, b1, ...; a1, b2, ...])', 'sparse([a1, b1, ...; a1, b2, ...], \"number\")'],\n description: 'Create a sparse matrix.',\n examples: ['sparse()', 'sparse([3, 4; 5, 6])', 'sparse([3, 0; 5, 0], \"number\")'],\n seealso: ['bignumber', 'boolean', 'complex', 'index', 'number', 'string', 'unit', 'matrix']\n};\nexports.sparseDocs = sparseDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.splitUnitDocs = void 0;\nvar splitUnitDocs = {\n name: 'splitUnit',\n category: 'Construction',\n syntax: ['splitUnit(unit: Unit, parts: Unit[])'],\n description: 'Split a unit in an array of units whose sum is equal to the original unit.',\n examples: ['splitUnit(1 m, [\"feet\", \"inch\"])'],\n seealso: ['unit', 'createUnit']\n};\nexports.splitUnitDocs = splitUnitDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stringDocs = void 0;\nvar stringDocs = {\n name: 'string',\n category: 'Construction',\n syntax: ['\"text\"', 'string(x)'],\n description: 'Create a string or convert a value to a string',\n examples: ['\"Hello World!\"', 'string(4.2)', 'string(3 + 2i)'],\n seealso: ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'unit']\n};\nexports.stringDocs = stringDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unitDocs = void 0;\nvar unitDocs = {\n name: 'unit',\n category: 'Construction',\n syntax: ['value unit', 'unit(value, unit)', 'unit(string)'],\n description: 'Create a unit.',\n examples: ['5.5 mm', '3 inch', 'unit(7.1, \"kilogram\")', 'unit(\"23 deg\")'],\n seealso: ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'number', 'string']\n};\nexports.unitDocs = unitDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.configDocs = void 0;\nvar configDocs = {\n name: 'config',\n category: 'Core',\n syntax: ['config()', 'config(options)'],\n description: 'Get configuration or change configuration.',\n examples: ['config()', '1/3 + 1/4', 'config({number: \"Fraction\"})', '1/3 + 1/4'],\n seealso: []\n};\nexports.configDocs = configDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.importDocs = void 0;\nvar importDocs = {\n name: 'import',\n category: 'Core',\n syntax: ['import(functions)', 'import(functions, options)'],\n description: 'Import functions or constants from an object.',\n examples: ['import({myFn: f(x)=x^2, myConstant: 32 })', 'myFn(2)', 'myConstant'],\n seealso: []\n};\nexports.importDocs = importDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typedDocs = void 0;\nvar typedDocs = {\n name: 'typed',\n category: 'Core',\n syntax: ['typed(signatures)', 'typed(name, signatures)'],\n description: 'Create a typed function.',\n examples: ['double = typed({ \"number\": f(x)=x+x })', 'double(2)', 'double(\"hello\")'],\n seealso: []\n};\nexports.typedDocs = typedDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.derivativeDocs = void 0;\nvar derivativeDocs = {\n name: 'derivative',\n category: 'Algebra',\n syntax: ['derivative(expr, variable)', 'derivative(expr, variable, {simplify: boolean})'],\n description: 'Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.',\n examples: ['derivative(\"2x^3\", \"x\")', 'derivative(\"2x^3\", \"x\", {simplify: false})', 'derivative(\"2x^2 + 3x + 4\", \"x\")', 'derivative(\"sin(2x)\", \"x\")', 'f = parse(\"x^2 + x\")', 'x = parse(\"x\")', 'df = derivative(f, x)', 'df.evaluate({x: 3})'],\n seealso: ['simplify', 'parse', 'evaluate']\n};\nexports.derivativeDocs = derivativeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.leafCountDocs = void 0;\nvar leafCountDocs = {\n name: 'leafCount',\n category: 'Algebra',\n syntax: ['leafCount(expr)'],\n description: 'Computes the number of leaves in the parse tree of the given expression',\n examples: ['leafCount(\"e^(i*pi)-1\")', 'leafCount(parse(\"{a: 22/7, b: 10^(1/2)}\"))'],\n seealso: ['simplify']\n};\nexports.leafCountDocs = leafCountDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lsolveDocs = void 0;\nvar lsolveDocs = {\n name: 'lsolve',\n category: 'Algebra',\n syntax: ['x=lsolve(L, b)'],\n description: 'Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.',\n examples: ['a = [-2, 3; 2, 1]', 'b = [11, 9]', 'x = lsolve(a, b)'],\n seealso: ['lsolveAll', 'lup', 'lusolve', 'usolve', 'matrix', 'sparse']\n};\nexports.lsolveDocs = lsolveDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lsolveAllDocs = void 0;\nvar lsolveAllDocs = {\n name: 'lsolveAll',\n category: 'Algebra',\n syntax: ['x=lsolveAll(L, b)'],\n description: 'Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.',\n examples: ['a = [-2, 3; 2, 1]', 'b = [11, 9]', 'x = lsolve(a, b)'],\n seealso: ['lsolve', 'lup', 'lusolve', 'usolve', 'matrix', 'sparse']\n};\nexports.lsolveAllDocs = lsolveAllDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lupDocs = void 0;\nvar lupDocs = {\n name: 'lup',\n category: 'Algebra',\n syntax: ['lup(m)'],\n description: 'Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U',\n examples: ['lup([[2, 1], [1, 4]])', 'lup(matrix([[2, 1], [1, 4]]))', 'lup(sparse([[2, 1], [1, 4]]))'],\n seealso: ['lusolve', 'lsolve', 'usolve', 'matrix', 'sparse', 'slu', 'qr']\n};\nexports.lupDocs = lupDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lusolveDocs = void 0;\nvar lusolveDocs = {\n name: 'lusolve',\n category: 'Algebra',\n syntax: ['x=lusolve(A, b)', 'x=lusolve(lu, b)'],\n description: 'Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.',\n examples: ['a = [-2, 3; 2, 1]', 'b = [11, 9]', 'x = lusolve(a, b)'],\n seealso: ['lup', 'slu', 'lsolve', 'usolve', 'matrix', 'sparse']\n};\nexports.lusolveDocs = lusolveDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.qrDocs = void 0;\nvar qrDocs = {\n name: 'qr',\n category: 'Algebra',\n syntax: ['qr(A)'],\n description: 'Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.',\n examples: ['qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])'],\n seealso: ['lup', 'slu', 'matrix']\n};\nexports.qrDocs = qrDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rationalizeDocs = void 0;\nvar rationalizeDocs = {\n name: 'rationalize',\n category: 'Algebra',\n syntax: ['rationalize(expr)', 'rationalize(expr, scope)', 'rationalize(expr, scope, detailed)'],\n description: 'Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.',\n examples: ['rationalize(\"2x/y - y/(x+1)\")', 'rationalize(\"2x/y - y/(x+1)\", true)'],\n seealso: ['simplify']\n};\nexports.rationalizeDocs = rationalizeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resolveDocs = void 0;\nvar resolveDocs = {\n name: 'resolve',\n category: 'Algebra',\n syntax: ['resolve(node, scope)'],\n description: 'Recursively substitute variables in an expression tree.',\n 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\") })'],\n seealso: ['simplify', 'evaluate'],\n mayThrow: ['ReferenceError']\n};\nexports.resolveDocs = resolveDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.simplifyDocs = void 0;\nvar simplifyDocs = {\n name: 'simplify',\n category: 'Algebra',\n syntax: ['simplify(expr)', 'simplify(expr, rules)'],\n description: 'Simplify an expression tree.',\n examples: ['simplify(\"3 + 2 / 4\")', 'simplify(\"2x + x\")', 'f = parse(\"x * (x + 2 + x)\")', 'simplified = simplify(f)', 'simplified.evaluate({x: 2})'],\n seealso: ['simplifyCore', 'derivative', 'evaluate', 'parse', 'rationalize', 'resolve']\n};\nexports.simplifyDocs = simplifyDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.simplifyCoreDocs = void 0;\nvar simplifyCoreDocs = {\n name: 'simplifyCore',\n category: 'Algebra',\n syntax: ['simplifyCore(node)'],\n description: 'Perform simple one-pass simplifications on an expression tree.',\n examples: ['simplifyCore(parse(\"0*x\"))', 'simplifyCore(parse(\"(x+0)*2\"))'],\n seealso: ['simplify', 'evaluate']\n};\nexports.simplifyCoreDocs = simplifyCoreDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sluDocs = void 0;\nvar sluDocs = {\n name: 'slu',\n category: 'Algebra',\n syntax: ['slu(A, order, threshold)'],\n description: 'Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U',\n examples: ['slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)'],\n seealso: ['lusolve', 'lsolve', 'usolve', 'matrix', 'sparse', 'lup', 'qr']\n};\nexports.sluDocs = sluDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.symbolicEqualDocs = void 0;\nvar symbolicEqualDocs = {\n name: 'symbolicEqual',\n category: 'Algebra',\n syntax: ['symbolicEqual(expr1, expr2)', 'symbolicEqual(expr1, expr2, options)'],\n description: 'Returns true if the difference of the expressions simplifies to 0',\n examples: ['symbolicEqual(\"x*y\",\"y*x\")', 'symbolicEqual(\"abs(x^2)\", \"x^2\")', 'symbolicEqual(\"abs(x)\", \"x\", {context: {abs: {trivial: true}}})'],\n seealso: ['simplify', 'evaluate']\n};\nexports.symbolicEqualDocs = symbolicEqualDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.usolveDocs = void 0;\nvar usolveDocs = {\n name: 'usolve',\n category: 'Algebra',\n syntax: ['x=usolve(U, b)'],\n description: 'Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.',\n examples: ['x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])'],\n seealso: ['usolveAll', 'lup', 'lusolve', 'lsolve', 'matrix', 'sparse']\n};\nexports.usolveDocs = usolveDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.usolveAllDocs = void 0;\nvar usolveAllDocs = {\n name: 'usolveAll',\n category: 'Algebra',\n syntax: ['x=usolve(U, b)'],\n description: 'Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.',\n examples: ['x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])'],\n seealso: ['usolve', 'lup', 'lusolve', 'lsolve', 'matrix', 'sparse']\n};\nexports.usolveAllDocs = usolveAllDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.absDocs = void 0;\nvar absDocs = {\n name: 'abs',\n category: 'Arithmetic',\n syntax: ['abs(x)'],\n description: 'Compute the absolute value.',\n examples: ['abs(3.5)', 'abs(-4.2)'],\n seealso: ['sign']\n};\nexports.absDocs = absDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.addDocs = void 0;\nvar addDocs = {\n name: 'add',\n category: 'Operators',\n syntax: ['x + y', 'add(x, y)'],\n description: 'Add two values.',\n examples: ['a = 2.1 + 3.6', 'a - 3.6', '3 + 2i', '3 cm + 2 inch', '\"2.3\" + \"4\"'],\n seealso: ['subtract']\n};\nexports.addDocs = addDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cbrtDocs = void 0;\nvar cbrtDocs = {\n name: 'cbrt',\n category: 'Arithmetic',\n syntax: ['cbrt(x)', 'cbrt(x, allRoots)'],\n description: 'Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned',\n examples: ['cbrt(64)', 'cube(4)', 'cbrt(-8)', 'cbrt(2 + 3i)', 'cbrt(8i)', 'cbrt(8i, true)', 'cbrt(27 m^3)'],\n seealso: ['square', 'sqrt', 'cube', 'multiply']\n};\nexports.cbrtDocs = cbrtDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ceilDocs = void 0;\nvar ceilDocs = {\n name: 'ceil',\n category: 'Arithmetic',\n syntax: ['ceil(x)'],\n description: 'Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.',\n examples: ['ceil(3.2)', 'ceil(3.8)', 'ceil(-4.2)'],\n seealso: ['floor', 'fix', 'round']\n};\nexports.ceilDocs = ceilDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cubeDocs = void 0;\nvar cubeDocs = {\n name: 'cube',\n category: 'Arithmetic',\n syntax: ['cube(x)'],\n description: 'Compute the cube of a value. The cube of x is x * x * x.',\n examples: ['cube(2)', '2^3', '2 * 2 * 2'],\n seealso: ['multiply', 'square', 'pow']\n};\nexports.cubeDocs = cubeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.divideDocs = void 0;\nvar divideDocs = {\n name: 'divide',\n category: 'Operators',\n syntax: ['x / y', 'divide(x, y)'],\n description: 'Divide two values.',\n examples: ['a = 2 / 3', 'a * 3', '4.5 / 2', '3 + 4 / 2', '(3 + 4) / 2', '18 km / 4.5'],\n seealso: ['multiply']\n};\nexports.divideDocs = divideDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotDivideDocs = void 0;\nvar dotDivideDocs = {\n name: 'dotDivide',\n category: 'Operators',\n syntax: ['x ./ y', 'dotDivide(x, y)'],\n description: 'Divide two values element wise.',\n examples: ['a = [1, 2, 3; 4, 5, 6]', 'b = [2, 1, 1; 3, 2, 5]', 'a ./ b'],\n seealso: ['multiply', 'dotMultiply', 'divide']\n};\nexports.dotDivideDocs = dotDivideDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotMultiplyDocs = void 0;\nvar dotMultiplyDocs = {\n name: 'dotMultiply',\n category: 'Operators',\n syntax: ['x .* y', 'dotMultiply(x, y)'],\n description: 'Multiply two values element wise.',\n examples: ['a = [1, 2, 3; 4, 5, 6]', 'b = [2, 1, 1; 3, 2, 5]', 'a .* b'],\n seealso: ['multiply', 'divide', 'dotDivide']\n};\nexports.dotMultiplyDocs = dotMultiplyDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotPowDocs = void 0;\nvar dotPowDocs = {\n name: 'dotPow',\n category: 'Operators',\n syntax: ['x .^ y', 'dotPow(x, y)'],\n description: 'Calculates the power of x to y element wise.',\n examples: ['a = [1, 2, 3; 4, 5, 6]', 'a .^ 2'],\n seealso: ['pow']\n};\nexports.dotPowDocs = dotPowDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.expDocs = void 0;\nvar expDocs = {\n name: 'exp',\n category: 'Arithmetic',\n syntax: ['exp(x)'],\n description: 'Calculate the exponent of a value.',\n examples: ['exp(1.3)', 'e ^ 1.3', 'log(exp(1.3))', 'x = 2.4', '(exp(i*x) == cos(x) + i*sin(x)) # Euler\\'s formula'],\n seealso: ['expm', 'expm1', 'pow', 'log']\n};\nexports.expDocs = expDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.expmDocs = void 0;\nvar expmDocs = {\n name: 'expm',\n category: 'Arithmetic',\n syntax: ['exp(x)'],\n description: 'Compute the matrix exponential, expm(A) = e^A. ' + 'The matrix must be square. ' + 'Not to be confused with exp(a), which performs element-wise exponentiation.',\n examples: ['expm([[0,2],[0,0]])'],\n seealso: ['exp']\n};\nexports.expmDocs = expmDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.expm1Docs = void 0;\nvar expm1Docs = {\n name: 'expm1',\n category: 'Arithmetic',\n syntax: ['expm1(x)'],\n description: 'Calculate the value of subtracting 1 from the exponential value.',\n examples: ['expm1(2)', 'pow(e, 2) - 1', 'log(expm1(2) + 1)'],\n seealso: ['exp', 'pow', 'log']\n};\nexports.expm1Docs = expm1Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fixDocs = void 0;\nvar fixDocs = {\n name: 'fix',\n category: 'Arithmetic',\n syntax: ['fix(x)'],\n description: 'Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.',\n examples: ['fix(3.2)', 'fix(3.8)', 'fix(-4.2)', 'fix(-4.8)'],\n seealso: ['ceil', 'floor', 'round']\n};\nexports.fixDocs = fixDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.floorDocs = void 0;\nvar floorDocs = {\n name: 'floor',\n category: 'Arithmetic',\n syntax: ['floor(x)'],\n description: 'Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.',\n examples: ['floor(3.2)', 'floor(3.8)', 'floor(-4.2)'],\n seealso: ['ceil', 'fix', 'round']\n};\nexports.floorDocs = floorDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gcdDocs = void 0;\nvar gcdDocs = {\n name: 'gcd',\n category: 'Arithmetic',\n syntax: ['gcd(a, b)', 'gcd(a, b, c, ...)'],\n description: 'Compute the greatest common divisor.',\n examples: ['gcd(8, 12)', 'gcd(-4, 6)', 'gcd(25, 15, -10)'],\n seealso: ['lcm', 'xgcd']\n};\nexports.gcdDocs = gcdDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hypotDocs = void 0;\nvar hypotDocs = {\n name: 'hypot',\n category: 'Arithmetic',\n syntax: ['hypot(a, b, c, ...)', 'hypot([a, b, c, ...])'],\n description: 'Calculate the hypotenusa of a list with values. ',\n examples: ['hypot(3, 4)', 'sqrt(3^2 + 4^2)', 'hypot(-2)', 'hypot([3, 4, 5])'],\n seealso: ['abs', 'norm']\n};\nexports.hypotDocs = hypotDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.invmodDocs = void 0;\nvar invmodDocs = {\n name: 'invmod',\n category: 'Arithmetic',\n syntax: ['invmod(a, b)'],\n description: 'Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)',\n examples: ['invmod(8, 12)=NaN', 'invmod(7, 13)=2', 'math.invmod(15151, 15122)=10429'],\n seealso: ['gcd', 'xgcd']\n};\nexports.invmodDocs = invmodDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lcmDocs = void 0;\nvar lcmDocs = {\n name: 'lcm',\n category: 'Arithmetic',\n syntax: ['lcm(x, y)'],\n description: 'Compute the least common multiple.',\n examples: ['lcm(4, 6)', 'lcm(6, 21)', 'lcm(6, 21, 5)'],\n seealso: ['gcd']\n};\nexports.lcmDocs = lcmDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.logDocs = void 0;\nvar logDocs = {\n name: 'log',\n category: 'Arithmetic',\n syntax: ['log(x)', 'log(x, base)'],\n description: 'Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).',\n examples: ['log(3.5)', 'a = log(2.4)', 'exp(a)', '10 ^ 4', 'log(10000, 10)', 'log(10000) / log(10)', 'b = log(1024, 2)', '2 ^ b'],\n seealso: ['exp', 'log1p', 'log2', 'log10']\n};\nexports.logDocs = logDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log10Docs = void 0;\nvar log10Docs = {\n name: 'log10',\n category: 'Arithmetic',\n syntax: ['log10(x)'],\n description: 'Compute the 10-base logarithm of a value.',\n examples: ['log10(0.00001)', 'log10(10000)', '10 ^ 4', 'log(10000) / log(10)', 'log(10000, 10)'],\n seealso: ['exp', 'log']\n};\nexports.log10Docs = log10Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log1pDocs = void 0;\nvar log1pDocs = {\n name: 'log1p',\n category: 'Arithmetic',\n syntax: ['log1p(x)', 'log1p(x, base)'],\n description: 'Calculate the logarithm of a `value+1`',\n examples: ['log1p(2.5)', 'exp(log1p(1.4))', 'pow(10, 4)', 'log1p(9999, 10)', 'log1p(9999) / log(10)'],\n seealso: ['exp', 'log', 'log2', 'log10']\n};\nexports.log1pDocs = log1pDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log2Docs = void 0;\nvar log2Docs = {\n name: 'log2',\n category: 'Arithmetic',\n syntax: ['log2(x)'],\n description: 'Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.',\n examples: ['log2(0.03125)', 'log2(16)', 'log2(16) / log2(2)', 'pow(2, 4)'],\n seealso: ['exp', 'log1p', 'log', 'log10']\n};\nexports.log2Docs = log2Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.modDocs = void 0;\nvar modDocs = {\n name: 'mod',\n category: 'Operators',\n syntax: ['x % y', 'x mod y', 'mod(x, y)'],\n description: 'Calculates the modulus, the remainder of an integer division.',\n examples: ['7 % 3', '11 % 2', '10 mod 4', 'isOdd(x) = x % 2', 'isOdd(2)', 'isOdd(3)'],\n seealso: ['divide']\n};\nexports.modDocs = modDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.multiplyDocs = void 0;\nvar multiplyDocs = {\n name: 'multiply',\n category: 'Operators',\n syntax: ['x * y', 'multiply(x, y)'],\n description: 'multiply two values.',\n examples: ['a = 2.1 * 3.4', 'a / 3.4', '2 * 3 + 4', '2 * (3 + 4)', '3 * 2.1 km'],\n seealso: ['divide']\n};\nexports.multiplyDocs = multiplyDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.normDocs = void 0;\nvar normDocs = {\n name: 'norm',\n category: 'Arithmetic',\n syntax: ['norm(x)', 'norm(x, p)'],\n description: 'Calculate the norm of a number, vector or matrix.',\n examples: ['abs(-3.5)', 'norm(-3.5)', 'norm(3 - 4i)', 'norm([1, 2, -3], Infinity)', 'norm([1, 2, -3], -Infinity)', 'norm([3, 4], 2)', 'norm([[1, 2], [3, 4]], 1)', 'norm([[1, 2], [3, 4]], \"inf\")', 'norm([[1, 2], [3, 4]], \"fro\")']\n};\nexports.normDocs = normDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nthRootDocs = void 0;\nvar nthRootDocs = {\n name: 'nthRoot',\n category: 'Arithmetic',\n syntax: ['nthRoot(a)', 'nthRoot(a, root)'],\n description: 'Calculate the nth root of a value. ' + 'The principal nth root of a positive real number A, ' + 'is the positive real solution of the equation \"x^root = A\".',\n examples: ['4 ^ 3', 'nthRoot(64, 3)', 'nthRoot(9, 2)', 'sqrt(9)'],\n seealso: ['nthRoots', 'pow', 'sqrt']\n};\nexports.nthRootDocs = nthRootDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nthRootsDocs = void 0;\nvar nthRootsDocs = {\n name: 'nthRoots',\n category: 'Arithmetic',\n syntax: ['nthRoots(A)', 'nthRoots(A, root)'],\n description: '' + 'Calculate the nth roots of a value. ' + 'An nth root of a positive real number A, ' + 'is a positive real solution of the equation \"x^root = A\". ' + 'This function returns an array of complex values.',\n examples: ['nthRoots(1)', 'nthRoots(1, 3)'],\n seealso: ['sqrt', 'pow', 'nthRoot']\n};\nexports.nthRootsDocs = nthRootsDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.powDocs = void 0;\nvar powDocs = {\n name: 'pow',\n category: 'Operators',\n syntax: ['x ^ y', 'pow(x, y)'],\n description: 'Calculates the power of x to y, x^y.',\n examples: ['2^3', '2*2*2', '1 + e ^ (pi * i)', 'math.pow([[1, 2], [4, 3]], 2)', 'math.pow([[1, 2], [4, 3]], -1)'],\n seealso: ['multiply', 'nthRoot', 'nthRoots', 'sqrt']\n};\nexports.powDocs = powDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.roundDocs = void 0;\nvar roundDocs = {\n name: 'round',\n category: 'Arithmetic',\n syntax: ['round(x)', 'round(x, n)'],\n description: 'round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.',\n examples: ['round(3.2)', 'round(3.8)', 'round(-4.2)', 'round(-4.8)', 'round(pi, 3)', 'round(123.45678, 2)'],\n seealso: ['ceil', 'floor', 'fix']\n};\nexports.roundDocs = roundDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.signDocs = void 0;\nvar signDocs = {\n name: 'sign',\n category: 'Arithmetic',\n syntax: ['sign(x)'],\n description: 'Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.',\n examples: ['sign(3.5)', 'sign(-4.2)', 'sign(0)'],\n seealso: ['abs']\n};\nexports.signDocs = signDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sqrtDocs = void 0;\nvar sqrtDocs = {\n name: 'sqrt',\n category: 'Arithmetic',\n syntax: ['sqrt(x)'],\n description: 'Compute the square root value. If x = y * y, then y is the square root of x.',\n examples: ['sqrt(25)', '5 * 5', 'sqrt(-1)'],\n seealso: ['square', 'sqrtm', 'multiply', 'nthRoot', 'nthRoots', 'pow']\n};\nexports.sqrtDocs = sqrtDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sqrtmDocs = void 0;\nvar sqrtmDocs = {\n name: 'sqrtm',\n category: 'Arithmetic',\n syntax: ['sqrtm(x)'],\n description: 'Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.',\n examples: ['sqrtm([[1, 2], [3, 4]])'],\n seealso: ['sqrt', 'abs', 'square', 'multiply']\n};\nexports.sqrtmDocs = sqrtmDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.squareDocs = void 0;\nvar squareDocs = {\n name: 'square',\n category: 'Arithmetic',\n syntax: ['square(x)'],\n description: 'Compute the square of a value. The square of x is x * x.',\n examples: ['square(3)', 'sqrt(9)', '3^2', '3 * 3'],\n seealso: ['multiply', 'pow', 'sqrt', 'cube']\n};\nexports.squareDocs = squareDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.subtractDocs = void 0;\nvar subtractDocs = {\n name: 'subtract',\n category: 'Operators',\n syntax: ['x - y', 'subtract(x, y)'],\n description: 'subtract two values.',\n examples: ['a = 5.3 - 2', 'a + 2', '2/3 - 1/6', '2 * 3 - 3', '2.1 km - 500m'],\n seealso: ['add']\n};\nexports.subtractDocs = subtractDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unaryMinusDocs = void 0;\nvar unaryMinusDocs = {\n name: 'unaryMinus',\n category: 'Operators',\n syntax: ['-x', 'unaryMinus(x)'],\n description: 'Inverse the sign of a value. Converts booleans and strings to numbers.',\n examples: ['-4.5', '-(-5.6)', '-\"22\"'],\n seealso: ['add', 'subtract', 'unaryPlus']\n};\nexports.unaryMinusDocs = unaryMinusDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unaryPlusDocs = void 0;\nvar unaryPlusDocs = {\n name: 'unaryPlus',\n category: 'Operators',\n syntax: ['+x', 'unaryPlus(x)'],\n description: 'Converts booleans and strings to numbers.',\n examples: ['+true', '+\"2\"'],\n seealso: ['add', 'subtract', 'unaryMinus']\n};\nexports.unaryPlusDocs = unaryPlusDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.xgcdDocs = void 0;\nvar xgcdDocs = {\n name: 'xgcd',\n category: 'Arithmetic',\n syntax: ['xgcd(a, b)'],\n description: 'Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.',\n examples: ['xgcd(8, 12)', 'gcd(8, 12)', 'xgcd(36163, 21199)'],\n seealso: ['gcd', 'lcm']\n};\nexports.xgcdDocs = xgcdDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitAndDocs = void 0;\nvar bitAndDocs = {\n name: 'bitAnd',\n category: 'Bitwise',\n syntax: ['x & y', 'bitAnd(x, y)'],\n description: 'Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0',\n examples: ['5 & 3', 'bitAnd(53, 131)', '[1, 12, 31] & 42'],\n seealso: ['bitNot', 'bitOr', 'bitXor', 'leftShift', 'rightArithShift', 'rightLogShift']\n};\nexports.bitAndDocs = bitAndDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitNotDocs = void 0;\nvar bitNotDocs = {\n name: 'bitNot',\n category: 'Bitwise',\n syntax: ['~x', 'bitNot(x)'],\n description: 'Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.',\n examples: ['~1', '~2', 'bitNot([2, -3, 4])'],\n seealso: ['bitAnd', 'bitOr', 'bitXor', 'leftShift', 'rightArithShift', 'rightLogShift']\n};\nexports.bitNotDocs = bitNotDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitOrDocs = void 0;\nvar bitOrDocs = {\n name: 'bitOr',\n category: 'Bitwise',\n syntax: ['x | y', 'bitOr(x, y)'],\n description: 'Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.',\n examples: ['5 | 3', 'bitOr([1, 2, 3], 4)'],\n seealso: ['bitAnd', 'bitNot', 'bitXor', 'leftShift', 'rightArithShift', 'rightLogShift']\n};\nexports.bitOrDocs = bitOrDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitXorDocs = void 0;\nvar bitXorDocs = {\n name: 'bitXor',\n category: 'Bitwise',\n syntax: ['bitXor(x, y)'],\n description: 'Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.',\n examples: ['bitOr(1, 2)', 'bitXor([2, 3, 4], 4)'],\n seealso: ['bitAnd', 'bitNot', 'bitOr', 'leftShift', 'rightArithShift', 'rightLogShift']\n};\nexports.bitXorDocs = bitXorDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.leftShiftDocs = void 0;\nvar leftShiftDocs = {\n name: 'leftShift',\n category: 'Bitwise',\n syntax: ['x << y', 'leftShift(x, y)'],\n description: 'Bitwise left logical shift of a value x by y number of bits.',\n examples: ['4 << 1', '8 >> 1'],\n seealso: ['bitAnd', 'bitNot', 'bitOr', 'bitXor', 'rightArithShift', 'rightLogShift']\n};\nexports.leftShiftDocs = leftShiftDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rightArithShiftDocs = void 0;\nvar rightArithShiftDocs = {\n name: 'rightArithShift',\n category: 'Bitwise',\n syntax: ['x >> y', 'rightArithShift(x, y)'],\n description: 'Bitwise right arithmetic shift of a value x by y number of bits.',\n examples: ['8 >> 1', '4 << 1', '-12 >> 2'],\n seealso: ['bitAnd', 'bitNot', 'bitOr', 'bitXor', 'leftShift', 'rightLogShift']\n};\nexports.rightArithShiftDocs = rightArithShiftDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rightLogShiftDocs = void 0;\nvar rightLogShiftDocs = {\n name: 'rightLogShift',\n category: 'Bitwise',\n syntax: ['x >>> y', 'rightLogShift(x, y)'],\n description: 'Bitwise right logical shift of a value x by y number of bits.',\n examples: ['8 >>> 1', '4 << 1', '-12 >>> 2'],\n seealso: ['bitAnd', 'bitNot', 'bitOr', 'bitXor', 'leftShift', 'rightArithShift']\n};\nexports.rightLogShiftDocs = rightLogShiftDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bellNumbersDocs = void 0;\nvar bellNumbersDocs = {\n name: 'bellNumbers',\n category: 'Combinatorics',\n syntax: ['bellNumbers(n)'],\n description: 'The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.',\n examples: ['bellNumbers(3)', 'bellNumbers(8)'],\n seealso: ['stirlingS2']\n};\nexports.bellNumbersDocs = bellNumbersDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.catalanDocs = void 0;\nvar catalanDocs = {\n name: 'catalan',\n category: 'Combinatorics',\n syntax: ['catalan(n)'],\n description: 'The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.',\n examples: ['catalan(3)', 'catalan(8)'],\n seealso: ['bellNumbers']\n};\nexports.catalanDocs = catalanDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compositionDocs = void 0;\nvar compositionDocs = {\n name: 'composition',\n category: 'Combinatorics',\n syntax: ['composition(n, k)'],\n description: 'The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.',\n examples: ['composition(5, 3)'],\n seealso: ['combinations']\n};\nexports.compositionDocs = compositionDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stirlingS2Docs = void 0;\nvar stirlingS2Docs = {\n name: 'stirlingS2',\n category: 'Combinatorics',\n syntax: ['stirlingS2(n, k)'],\n description: 'he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.',\n examples: ['stirlingS2(5, 3)'],\n seealso: ['bellNumbers']\n};\nexports.stirlingS2Docs = stirlingS2Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.argDocs = void 0;\nvar argDocs = {\n name: 'arg',\n category: 'Complex',\n syntax: ['arg(x)'],\n description: 'Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).',\n examples: ['arg(2 + 2i)', 'atan2(3, 2)', 'arg(2 + 3i)'],\n seealso: ['re', 'im', 'conj', 'abs']\n};\nexports.argDocs = argDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.conjDocs = void 0;\nvar conjDocs = {\n name: 'conj',\n category: 'Complex',\n syntax: ['conj(x)'],\n description: 'Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.',\n examples: ['conj(2 + 3i)', 'conj(2 - 3i)', 'conj(-5.2i)'],\n seealso: ['re', 'im', 'abs', 'arg']\n};\nexports.conjDocs = conjDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.imDocs = void 0;\nvar imDocs = {\n name: 'im',\n category: 'Complex',\n syntax: ['im(x)'],\n description: 'Get the imaginary part of a complex number.',\n examples: ['im(2 + 3i)', 're(2 + 3i)', 'im(-5.2i)', 'im(2.4)'],\n seealso: ['re', 'conj', 'abs', 'arg']\n};\nexports.imDocs = imDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.reDocs = void 0;\nvar reDocs = {\n name: 're',\n category: 'Complex',\n syntax: ['re(x)'],\n description: 'Get the real part of a complex number.',\n examples: ['re(2 + 3i)', 'im(2 + 3i)', 're(-5.2i)', 're(2.4)'],\n seealso: ['im', 'conj', 'abs', 'arg']\n};\nexports.reDocs = reDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.evaluateDocs = void 0;\nvar evaluateDocs = {\n name: 'evaluate',\n category: 'Expression',\n syntax: ['evaluate(expression)', 'evaluate([expr1, expr2, expr3, ...])'],\n description: 'Evaluate an expression or an array with expressions.',\n examples: ['evaluate(\"2 + 3\")', 'evaluate(\"sqrt(\" + 4 + \")\")'],\n seealso: []\n};\nexports.evaluateDocs = evaluateDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.helpDocs = void 0;\nvar helpDocs = {\n name: 'help',\n category: 'Expression',\n syntax: ['help(object)', 'help(string)'],\n description: 'Display documentation on a function or data type.',\n examples: ['help(sqrt)', 'help(\"complex\")'],\n seealso: []\n};\nexports.helpDocs = helpDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.distanceDocs = void 0;\nvar distanceDocs = {\n name: 'distance',\n category: 'Geometry',\n syntax: ['distance([x1, y1], [x2, y2])', 'distance([[x1, y1], [x2, y2]])'],\n description: 'Calculates the Euclidean distance between two points.',\n examples: ['distance([0,0], [4,4])', 'distance([[0,0], [4,4]])'],\n seealso: []\n};\nexports.distanceDocs = distanceDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.intersectDocs = void 0;\nvar intersectDocs = {\n name: 'intersect',\n category: 'Geometry',\n syntax: ['intersect(expr1, expr2, expr3, expr4)', 'intersect(expr1, expr2, expr3)'],\n description: 'Computes the intersection point of lines and/or planes.',\n examples: ['intersect([0, 0], [10, 10], [10, 0], [0, 10])', 'intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])'],\n seealso: []\n};\nexports.intersectDocs = intersectDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.andDocs = void 0;\nvar andDocs = {\n name: 'and',\n category: 'Logical',\n syntax: ['x and y', 'and(x, y)'],\n description: 'Logical and. Test whether two values are both defined with a nonzero/nonempty value.',\n examples: ['true and false', 'true and true', '2 and 4'],\n seealso: ['not', 'or', 'xor']\n};\nexports.andDocs = andDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.notDocs = void 0;\nvar notDocs = {\n name: 'not',\n category: 'Logical',\n syntax: ['not x', 'not(x)'],\n description: 'Logical not. Flips the boolean value of given argument.',\n examples: ['not true', 'not false', 'not 2', 'not 0'],\n seealso: ['and', 'or', 'xor']\n};\nexports.notDocs = notDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.orDocs = void 0;\nvar orDocs = {\n name: 'or',\n category: 'Logical',\n syntax: ['x or y', 'or(x, y)'],\n description: 'Logical or. Test if at least one value is defined with a nonzero/nonempty value.',\n examples: ['true or false', 'false or false', '0 or 4'],\n seealso: ['not', 'and', 'xor']\n};\nexports.orDocs = orDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.xorDocs = void 0;\nvar xorDocs = {\n name: 'xor',\n category: 'Logical',\n syntax: ['x xor y', 'xor(x, y)'],\n description: 'Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.',\n examples: ['true xor false', 'false xor false', 'true xor true', '0 xor 4'],\n seealso: ['not', 'and', 'or']\n};\nexports.xorDocs = xorDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.columnDocs = void 0;\nvar columnDocs = {\n name: 'column',\n category: 'Matrix',\n syntax: ['column(x, index)'],\n description: 'Return a column from a matrix or array.',\n examples: ['A = [[1, 2], [3, 4]]', 'column(A, 1)', 'column(A, 2)'],\n seealso: ['row', 'matrixFromColumns']\n};\nexports.columnDocs = columnDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.concatDocs = void 0;\nvar concatDocs = {\n name: 'concat',\n category: 'Matrix',\n syntax: ['concat(A, B, C, ...)', 'concat(A, B, C, ..., dim)'],\n description: 'Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.',\n examples: ['A = [1, 2; 5, 6]', 'B = [3, 4; 7, 8]', 'concat(A, B)', 'concat(A, B, 1)', 'concat(A, B, 2)'],\n seealso: ['det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.concatDocs = concatDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.countDocs = void 0;\nvar countDocs = {\n name: 'count',\n category: 'Matrix',\n syntax: ['count(x)'],\n description: 'Count the number of elements of a matrix, array or string.',\n examples: ['a = [1, 2; 3, 4; 5, 6]', 'count(a)', 'size(a)', 'count(\"hello world\")'],\n seealso: ['size']\n};\nexports.countDocs = countDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.crossDocs = void 0;\nvar crossDocs = {\n name: 'cross',\n category: 'Matrix',\n syntax: ['cross(A, B)'],\n description: 'Calculate the cross product for two vectors in three dimensional space.',\n examples: ['cross([1, 1, 0], [0, 1, 1])', 'cross([3, -3, 1], [4, 9, 2])', 'cross([2, 3, 4], [5, 6, 7])'],\n seealso: ['multiply', 'dot']\n};\nexports.crossDocs = crossDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ctransposeDocs = void 0;\nvar ctransposeDocs = {\n name: 'ctranspose',\n category: 'Matrix',\n syntax: ['x\\'', 'ctranspose(x)'],\n description: 'Complex Conjugate and Transpose a matrix',\n examples: ['a = [1, 2, 3; 4, 5, 6]', 'a\\'', 'ctranspose(a)'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'zeros']\n};\nexports.ctransposeDocs = ctransposeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.detDocs = void 0;\nvar detDocs = {\n name: 'det',\n category: 'Matrix',\n syntax: ['det(x)'],\n description: 'Calculate the determinant of a matrix',\n examples: ['det([1, 2; 3, 4])', 'det([-2, 2, 3; -1, 1, 3; 2, 0, -1])'],\n seealso: ['concat', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.detDocs = detDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diagDocs = void 0;\nvar diagDocs = {\n name: 'diag',\n category: 'Matrix',\n syntax: ['diag(x)', 'diag(x, k)'],\n description: 'Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.',\n examples: ['diag(1:3)', 'diag(1:3, 1)', 'a = [1, 2, 3; 4, 5, 6; 7, 8, 9]', 'diag(a)'],\n seealso: ['concat', 'det', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.diagDocs = diagDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffDocs = void 0;\nvar diffDocs = {\n name: 'diff',\n category: 'Matrix',\n syntax: ['diff(arr)', 'diff(arr, dim)'],\n description: ['Create a new matrix or array with the difference of the passed matrix or array.', 'Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference', 'If no dimension parameter is passed it is assumed as dimension 0', 'Dimension is zero-based in javascript and one-based in the parser', 'Arrays must be \\'rectangular\\' meaning arrays like [1, 2]', 'If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays'],\n examples: ['diff([1, 2, 4, 7, 0])', 'diff([1, 2, 4, 7, 0], 0)', 'diff(matrix([1, 2, 4, 7, 0]))', 'diff([[1, 2], [3, 4]])', 'diff([[1, 2], [3, 4]], 0)', 'diff([[1, 2], [3, 4]], 1)', 'diff([[1, 2], [3, 4]], bignumber(1))', 'diff(matrix([[1, 2], [3, 4]]), 1)', 'diff([[1, 2], matrix([3, 4])], 1)'],\n seealso: ['subtract', 'partitionSelect']\n};\nexports.diffDocs = diffDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotDocs = void 0;\nvar dotDocs = {\n name: 'dot',\n category: 'Matrix',\n syntax: ['dot(A, B)', 'A * B'],\n description: 'Calculate the dot product of two vectors. ' + 'The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] ' + 'is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn',\n examples: ['dot([2, 4, 1], [2, 2, 3])', '[2, 4, 1] * [2, 2, 3]'],\n seealso: ['multiply', 'cross']\n};\nexports.dotDocs = dotDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.eigsDocs = void 0;\nvar eigsDocs = {\n name: 'eigs',\n category: 'Matrix',\n syntax: ['eigs(x)'],\n description: 'Calculate the eigenvalues and eigenvectors of a real symmetric matrix',\n examples: ['eigs([[5, 2.3], [2.3, 1]])'],\n seealso: ['inv']\n};\nexports.eigsDocs = eigsDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.filterDocs = void 0;\nvar filterDocs = {\n name: 'filter',\n category: 'Matrix',\n syntax: ['filter(x, test)'],\n description: 'Filter items in a matrix.',\n examples: ['isPositive(x) = x > 0', 'filter([6, -2, -1, 4, 3], isPositive)', 'filter([6, -2, 0, 1, 0], x != 0)'],\n seealso: ['sort', 'map', 'forEach']\n};\nexports.filterDocs = filterDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.flattenDocs = void 0;\nvar flattenDocs = {\n name: 'flatten',\n category: 'Matrix',\n syntax: ['flatten(x)'],\n description: 'Flatten a multi dimensional matrix into a single dimensional matrix.',\n examples: ['a = [1, 2, 3; 4, 5, 6]', 'size(a)', 'b = flatten(a)', 'size(b)'],\n seealso: ['concat', 'resize', 'size', 'squeeze']\n};\nexports.flattenDocs = flattenDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.forEachDocs = void 0;\nvar forEachDocs = {\n name: 'forEach',\n category: 'Matrix',\n syntax: ['forEach(x, callback)'],\n description: 'Iterates over all elements of a matrix/array, and executes the given callback function.',\n examples: ['numberOfPets = {}', 'addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;', 'forEach([\"Dog\",\"Cat\",\"Cat\"], addPet)', 'numberOfPets'],\n seealso: ['map', 'sort', 'filter']\n};\nexports.forEachDocs = forEachDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getMatrixDataTypeDocs = void 0;\nvar getMatrixDataTypeDocs = {\n name: 'getMatrixDataType',\n category: 'Matrix',\n syntax: ['getMatrixDataType(x)'],\n description: 'Find the data type of all elements in a matrix or array, ' + 'for example \"number\" if all items are a number ' + 'and \"Complex\" if all values are complex numbers. ' + 'If a matrix contains more than one data type, it will return \"mixed\".',\n examples: ['getMatrixDataType([1, 2, 3])', 'getMatrixDataType([[5 cm], [2 inch]])', 'getMatrixDataType([1, \"text\"])', 'getMatrixDataType([1, bignumber(4)])'],\n seealso: ['matrix', 'sparse', 'typeOf']\n};\nexports.getMatrixDataTypeDocs = getMatrixDataTypeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.identityDocs = void 0;\nvar identityDocs = {\n name: 'identity',\n category: 'Matrix',\n syntax: ['identity(n)', 'identity(m, n)', 'identity([m, n])'],\n description: 'Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.',\n examples: ['identity(3)', 'identity(3, 5)', 'a = [1, 2, 3; 4, 5, 6]', 'identity(size(a))'],\n seealso: ['concat', 'det', 'diag', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.identityDocs = identityDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.invDocs = void 0;\nvar invDocs = {\n name: 'inv',\n category: 'Matrix',\n syntax: ['inv(x)'],\n description: 'Calculate the inverse of a matrix',\n examples: ['inv([1, 2; 3, 4])', 'inv(4)', '1 / 4'],\n seealso: ['concat', 'det', 'diag', 'identity', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.invDocs = invDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pinvDocs = void 0;\nvar pinvDocs = {\n name: 'pinv',\n category: 'Matrix',\n syntax: ['pinv(x)'],\n description: 'Calculate the Moore–Penrose inverse of a matrix',\n examples: ['pinv([1, 2; 3, 4])', 'pinv([[1, 0], [0, 1], [0, 1]])', 'pinv(4)'],\n seealso: ['inv']\n};\nexports.pinvDocs = pinvDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.kronDocs = void 0;\nvar kronDocs = {\n name: 'kron',\n category: 'Matrix',\n syntax: ['kron(x, y)'],\n description: 'Calculates the kronecker product of 2 matrices or vectors.',\n examples: ['kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])', 'kron([1,1], [2,3,4])'],\n seealso: ['multiply', 'dot', 'cross']\n};\nexports.kronDocs = kronDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mapDocs = void 0;\nvar mapDocs = {\n name: 'map',\n category: 'Matrix',\n syntax: ['map(x, callback)'],\n description: 'Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.',\n examples: ['map([1, 2, 3], square)'],\n seealso: ['filter', 'forEach']\n};\nexports.mapDocs = mapDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixFromColumnsDocs = void 0;\nvar matrixFromColumnsDocs = {\n name: 'matrixFromColumns',\n category: 'Matrix',\n syntax: ['math.matrixFromColumns(...arr)', 'math.matrixFromColumns(row1, row2)', 'math.matrixFromColumns(row1, row2, row3)'],\n description: 'Create a dense matrix from vectors as individual columns.',\n examples: ['matrixFromColumns([1, 2, 3], [[4],[5],[6]])'],\n seealso: ['matrix', 'matrixFromRows', 'matrixFromFunction', 'zeros']\n};\nexports.matrixFromColumnsDocs = matrixFromColumnsDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixFromFunctionDocs = void 0;\nvar matrixFromFunctionDocs = {\n name: 'matrixFromFunction',\n category: 'Matrix',\n syntax: ['math.matrixFromFunction(size, fn)', 'math.matrixFromFunction(size, fn, format)', 'math.matrixFromFunction(size, fn, format, datatype)', 'math.matrixFromFunction(size, format, fn)', 'math.matrixFromFunction(size, format, datatype, fn)'],\n description: 'Create a matrix by evaluating a generating function at each index.',\n examples: ['f(I) = I[1] - I[2]', 'matrixFromFunction([3,3], f)', 'g(I) = I[1] - I[2] == 1 ? 4 : 0', 'matrixFromFunction([100, 100], \"sparse\", g)', 'matrixFromFunction([5], random)'],\n seealso: ['matrix', 'matrixFromRows', 'matrixFromColumns', 'zeros']\n};\nexports.matrixFromFunctionDocs = matrixFromFunctionDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixFromRowsDocs = void 0;\nvar matrixFromRowsDocs = {\n name: 'matrixFromRows',\n category: 'Matrix',\n syntax: ['math.matrixFromRows(...arr)', 'math.matrixFromRows(row1, row2)', 'math.matrixFromRows(row1, row2, row3)'],\n description: 'Create a dense matrix from vectors as individual rows.',\n examples: ['matrixFromRows([1, 2, 3], [[4],[5],[6]])'],\n seealso: ['matrix', 'matrixFromColumns', 'matrixFromFunction', 'zeros']\n};\nexports.matrixFromRowsDocs = matrixFromRowsDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.onesDocs = void 0;\nvar onesDocs = {\n name: 'ones',\n category: 'Matrix',\n syntax: ['ones(m)', 'ones(m, n)', 'ones(m, n, p, ...)', 'ones([m])', 'ones([m, n])', 'ones([m, n, p, ...])'],\n description: 'Create a matrix containing ones.',\n examples: ['ones(3)', 'ones(3, 5)', 'ones([2,3]) * 4.5', 'a = [1, 2, 3; 4, 5, 6]', 'ones(size(a))'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.onesDocs = onesDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.partitionSelectDocs = void 0;\nvar partitionSelectDocs = {\n name: 'partitionSelect',\n category: 'Matrix',\n syntax: ['partitionSelect(x, k)', 'partitionSelect(x, k, compare)'],\n description: 'Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.',\n examples: ['partitionSelect([5, 10, 1], 2)', 'partitionSelect([\"C\", \"B\", \"A\", \"D\"], 1)'],\n seealso: ['sort']\n};\nexports.partitionSelectDocs = partitionSelectDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rangeDocs = void 0;\nvar rangeDocs = {\n name: 'range',\n category: 'Type',\n syntax: ['start:end', 'start:step:end', 'range(start, end)', 'range(start, end, step)', 'range(string)'],\n description: 'Create a range. Lower bound of the range is included, upper bound is excluded.',\n examples: ['1:5', '3:-1:-3', 'range(3, 7)', 'range(0, 12, 2)', 'range(\"4:10\")', 'a = [1, 2, 3, 4; 5, 6, 7, 8]', 'a[1:2, 1:2]'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'size', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.rangeDocs = rangeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.reshapeDocs = void 0;\nvar reshapeDocs = {\n name: 'reshape',\n category: 'Matrix',\n syntax: ['reshape(x, sizes)'],\n description: 'Reshape a multi dimensional array to fit the specified dimensions.',\n examples: ['reshape([1, 2, 3, 4, 5, 6], [2, 3])', 'reshape([[1, 2], [3, 4]], [1, 4])', 'reshape([[1, 2], [3, 4]], [4])'],\n seealso: ['size', 'squeeze', 'resize']\n};\nexports.reshapeDocs = reshapeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resizeDocs = void 0;\nvar resizeDocs = {\n name: 'resize',\n category: 'Matrix',\n syntax: ['resize(x, size)', 'resize(x, size, defaultValue)'],\n description: 'Resize a matrix.',\n examples: ['resize([1,2,3,4,5], [3])', 'resize([1,2,3], [5])', 'resize([1,2,3], [5], -1)', 'resize(2, [2, 3])', 'resize(\"hello\", [8], \"!\")'],\n seealso: ['size', 'subset', 'squeeze', 'reshape']\n};\nexports.resizeDocs = resizeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rotateDocs = void 0;\nvar rotateDocs = {\n name: 'rotate',\n category: 'Matrix',\n syntax: ['rotate(w, theta)', 'rotate(w, theta, v)'],\n description: 'Returns a 2-D rotation matrix (2x2) for a given angle (in radians). ' + 'Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.',\n examples: ['rotate([1, 0], math.pi / 2)', 'rotate(matrix([1, 0]), unit(\"35deg\"))', 'rotate([1, 0, 0], unit(\"90deg\"), [0, 0, 1])', 'rotate(matrix([1, 0, 0]), unit(\"90deg\"), matrix([0, 0, 1]))'],\n seealso: ['matrix', 'rotationMatrix']\n};\nexports.rotateDocs = rotateDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rotationMatrixDocs = void 0;\nvar rotationMatrixDocs = {\n name: 'rotationMatrix',\n category: 'Matrix',\n syntax: ['rotationMatrix(theta)', 'rotationMatrix(theta, v)', 'rotationMatrix(theta, v, format)'],\n description: 'Returns a 2-D rotation matrix (2x2) for a given angle (in radians). ' + 'Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.',\n examples: ['rotationMatrix(pi / 2)', 'rotationMatrix(unit(\"45deg\"), [0, 0, 1])', 'rotationMatrix(1, matrix([0, 0, 1]), \"sparse\")'],\n seealso: ['cos', 'sin']\n};\nexports.rotationMatrixDocs = rotationMatrixDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rowDocs = void 0;\nvar rowDocs = {\n name: 'row',\n category: 'Matrix',\n syntax: ['row(x, index)'],\n description: 'Return a row from a matrix or array.',\n examples: ['A = [[1, 2], [3, 4]]', 'row(A, 1)', 'row(A, 2)'],\n seealso: ['column', 'matrixFromRows']\n};\nexports.rowDocs = rowDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sizeDocs = void 0;\nvar sizeDocs = {\n name: 'size',\n category: 'Matrix',\n syntax: ['size(x)'],\n description: 'Calculate the size of a matrix.',\n examples: ['size(2.3)', 'size(\"hello world\")', 'a = [1, 2; 3, 4; 5, 6]', 'size(a)', 'size(1:6)'],\n seealso: ['concat', 'count', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'squeeze', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.sizeDocs = sizeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sortDocs = void 0;\nvar sortDocs = {\n name: 'sort',\n category: 'Matrix',\n syntax: ['sort(x)', 'sort(x, compare)'],\n description: 'Sort the items in a matrix. Compare can be a string \"asc\", \"desc\", \"natural\", or a custom sort function.',\n examples: ['sort([5, 10, 1])', 'sort([\"C\", \"B\", \"A\", \"D\"])', 'sortByLength(a, b) = size(a)[1] - size(b)[1]', 'sort([\"Langdon\", \"Tom\", \"Sara\"], sortByLength)', 'sort([\"10\", \"1\", \"2\"], \"natural\")'],\n seealso: ['map', 'filter', 'forEach']\n};\nexports.sortDocs = sortDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.squeezeDocs = void 0;\nvar squeezeDocs = {\n name: 'squeeze',\n category: 'Matrix',\n syntax: ['squeeze(x)'],\n description: 'Remove inner and outer singleton dimensions from a matrix.',\n examples: ['a = zeros(3,2,1)', 'size(squeeze(a))', 'b = zeros(1,1,3)', 'size(squeeze(b))'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'subset', 'trace', 'transpose', 'zeros']\n};\nexports.squeezeDocs = squeezeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.subsetDocs = void 0;\nvar subsetDocs = {\n name: 'subset',\n category: 'Matrix',\n syntax: ['value(index)', 'value(index) = replacement', 'subset(value, [index])', 'subset(value, [index], replacement)'],\n 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.',\n 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'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'trace', 'transpose', 'zeros']\n};\nexports.subsetDocs = subsetDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.traceDocs = void 0;\nvar traceDocs = {\n name: 'trace',\n category: 'Matrix',\n syntax: ['trace(A)'],\n description: 'Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.',\n examples: ['A = [1, 2, 3; -1, 2, 3; 2, 0, 3]', 'trace(A)'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'transpose', 'zeros']\n};\nexports.traceDocs = traceDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.transposeDocs = void 0;\nvar transposeDocs = {\n name: 'transpose',\n category: 'Matrix',\n syntax: ['x\\'', 'transpose(x)'],\n description: 'Transpose a matrix',\n examples: ['a = [1, 2, 3; 4, 5, 6]', 'a\\'', 'transpose(a)'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'zeros']\n};\nexports.transposeDocs = transposeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.zerosDocs = void 0;\nvar zerosDocs = {\n name: 'zeros',\n category: 'Matrix',\n syntax: ['zeros(m)', 'zeros(m, n)', 'zeros(m, n, p, ...)', 'zeros([m])', 'zeros([m, n])', 'zeros([m, n, p, ...])'],\n description: 'Create a matrix containing zeros.',\n examples: ['zeros(3)', 'zeros(3, 5)', 'a = [1, 2, 3; 4, 5, 6]', 'zeros(size(a))'],\n seealso: ['concat', 'det', 'diag', 'identity', 'inv', 'ones', 'range', 'size', 'squeeze', 'subset', 'trace', 'transpose']\n};\nexports.zerosDocs = zerosDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fftDocs = void 0;\nvar fftDocs = {\n name: 'fft',\n category: 'Matrix',\n syntax: ['fft(x)'],\n description: 'Calculate N-dimensional fourier transform',\n examples: ['fft([[1, 0], [1, 0]])'],\n seealso: ['ifft']\n};\nexports.fftDocs = fftDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ifftDocs = void 0;\nvar ifftDocs = {\n name: 'ifft',\n category: 'Matrix',\n syntax: ['ifft(x)'],\n description: 'Calculate N-dimensional inverse fourier transform',\n examples: ['ifft([[2, 2], [0, 0]])'],\n seealso: ['fft']\n};\nexports.ifftDocs = ifftDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.combinationsDocs = void 0;\nvar combinationsDocs = {\n name: 'combinations',\n category: 'Probability',\n syntax: ['combinations(n, k)'],\n description: 'Compute the number of combinations of n items taken k at a time',\n examples: ['combinations(7, 5)'],\n seealso: ['combinationsWithRep', 'permutations', 'factorial']\n};\nexports.combinationsDocs = combinationsDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.combinationsWithRepDocs = void 0;\nvar combinationsWithRepDocs = {\n name: 'combinationsWithRep',\n category: 'Probability',\n syntax: ['combinationsWithRep(n, k)'],\n description: 'Compute the number of combinations of n items taken k at a time with replacements.',\n examples: ['combinationsWithRep(7, 5)'],\n seealso: ['combinations', 'permutations', 'factorial']\n};\nexports.combinationsWithRepDocs = combinationsWithRepDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.factorialDocs = void 0;\nvar factorialDocs = {\n name: 'factorial',\n category: 'Probability',\n syntax: ['n!', 'factorial(n)'],\n description: 'Compute the factorial of a value',\n examples: ['5!', '5 * 4 * 3 * 2 * 1', '3!'],\n seealso: ['combinations', 'combinationsWithRep', 'permutations', 'gamma']\n};\nexports.factorialDocs = factorialDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gammaDocs = void 0;\nvar gammaDocs = {\n name: 'gamma',\n category: 'Probability',\n syntax: ['gamma(n)'],\n description: 'Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.',\n examples: ['gamma(4)', '3!', 'gamma(1/2)', 'sqrt(pi)'],\n seealso: ['factorial']\n};\nexports.gammaDocs = gammaDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lgammaDocs = void 0;\nvar lgammaDocs = {\n name: 'lgamma',\n category: 'Probability',\n syntax: ['lgamma(n)'],\n description: 'Logarithm of the gamma function for real, positive numbers and complex numbers, ' + 'using Lanczos approximation for numbers and Stirling series for complex numbers.',\n examples: ['lgamma(4)', 'lgamma(1/2)', 'lgamma(math.i)', 'lgamma(complex(1.1, 2))'],\n seealso: ['gamma']\n};\nexports.lgammaDocs = lgammaDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.kldivergenceDocs = void 0;\nvar kldivergenceDocs = {\n name: 'kldivergence',\n category: 'Probability',\n syntax: ['kldivergence(x, y)'],\n description: 'Calculate the Kullback-Leibler (KL) divergence between two distributions.',\n examples: ['kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])'],\n seealso: []\n};\nexports.kldivergenceDocs = kldivergenceDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.multinomialDocs = void 0;\nvar multinomialDocs = {\n name: 'multinomial',\n category: 'Probability',\n syntax: ['multinomial(A)'],\n description: 'Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.',\n examples: ['multinomial([1, 2, 1])'],\n seealso: ['combinations', 'factorial']\n};\nexports.multinomialDocs = multinomialDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.permutationsDocs = void 0;\nvar permutationsDocs = {\n name: 'permutations',\n category: 'Probability',\n syntax: ['permutations(n)', 'permutations(n, k)'],\n description: 'Compute the number of permutations of n items taken k at a time',\n examples: ['permutations(5)', 'permutations(5, 3)'],\n seealso: ['combinations', 'combinationsWithRep', 'factorial']\n};\nexports.permutationsDocs = permutationsDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pickRandomDocs = void 0;\nvar pickRandomDocs = {\n name: 'pickRandom',\n category: 'Probability',\n syntax: ['pickRandom(array)', 'pickRandom(array, number)', 'pickRandom(array, weights)', 'pickRandom(array, number, weights)', 'pickRandom(array, weights, number)'],\n description: 'Pick a random entry from a given array.',\n examples: ['pickRandom(0:10)', 'pickRandom([1, 3, 1, 6])', 'pickRandom([1, 3, 1, 6], 2)', 'pickRandom([1, 3, 1, 6], [2, 3, 2, 1])', 'pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])', 'pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)'],\n seealso: ['random', 'randomInt']\n};\nexports.pickRandomDocs = pickRandomDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.randomDocs = void 0;\nvar randomDocs = {\n name: 'random',\n category: 'Probability',\n syntax: ['random()', 'random(max)', 'random(min, max)', 'random(size)', 'random(size, max)', 'random(size, min, max)'],\n description: 'Return a random number.',\n examples: ['random()', 'random(10, 20)', 'random([2, 3])'],\n seealso: ['pickRandom', 'randomInt']\n};\nexports.randomDocs = randomDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.randomIntDocs = void 0;\nvar randomIntDocs = {\n name: 'randomInt',\n category: 'Probability',\n syntax: ['randomInt(max)', 'randomInt(min, max)', 'randomInt(size)', 'randomInt(size, max)', 'randomInt(size, min, max)'],\n description: 'Return a random integer number',\n examples: ['randomInt(10, 20)', 'randomInt([2, 3], 10)'],\n seealso: ['pickRandom', 'random']\n};\nexports.randomIntDocs = randomIntDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareDocs = void 0;\nvar compareDocs = {\n name: 'compare',\n category: 'Relational',\n syntax: ['compare(x, y)'],\n description: 'Compare two values. ' + 'Returns 1 when x > y, -1 when x < y, and 0 when x == y.',\n examples: ['compare(2, 3)', 'compare(3, 2)', 'compare(2, 2)', 'compare(5cm, 40mm)', 'compare(2, [1, 2, 3])'],\n seealso: ['equal', 'unequal', 'smaller', 'smallerEq', 'largerEq', 'compareNatural', 'compareText']\n};\nexports.compareDocs = compareDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareNaturalDocs = void 0;\nvar compareNaturalDocs = {\n name: 'compareNatural',\n category: 'Relational',\n syntax: ['compareNatural(x, y)'],\n description: 'Compare two values of any type in a deterministic, natural way. ' + 'Returns 1 when x > y, -1 when x < y, and 0 when x == y.',\n examples: ['compareNatural(2, 3)', 'compareNatural(3, 2)', 'compareNatural(2, 2)', 'compareNatural(5cm, 40mm)', 'compareNatural(\"2\", \"10\")', 'compareNatural(2 + 3i, 2 + 4i)', 'compareNatural([1, 2, 4], [1, 2, 3])', 'compareNatural([1, 5], [1, 2, 3])', 'compareNatural([1, 2], [1, 2])', 'compareNatural({a: 2}, {a: 4})'],\n seealso: ['equal', 'unequal', 'smaller', 'smallerEq', 'largerEq', 'compare', 'compareText']\n};\nexports.compareNaturalDocs = compareNaturalDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareTextDocs = void 0;\nvar compareTextDocs = {\n name: 'compareText',\n category: 'Relational',\n syntax: ['compareText(x, y)'],\n description: 'Compare two strings lexically. Comparison is case sensitive. ' + 'Returns 1 when x > y, -1 when x < y, and 0 when x == y.',\n examples: ['compareText(\"B\", \"A\")', 'compareText(\"A\", \"B\")', 'compareText(\"A\", \"A\")', 'compareText(\"2\", \"10\")', 'compare(\"2\", \"10\")', 'compare(2, 10)', 'compareNatural(\"2\", \"10\")', 'compareText(\"B\", [\"A\", \"B\", \"C\"])'],\n seealso: ['compare', 'compareNatural']\n};\nexports.compareTextDocs = compareTextDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.deepEqualDocs = void 0;\nvar deepEqualDocs = {\n name: 'deepEqual',\n category: 'Relational',\n syntax: ['deepEqual(x, y)'],\n description: 'Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.',\n examples: ['deepEqual([1,3,4], [1,3,4])', 'deepEqual([1,3,4], [1,3])'],\n seealso: ['equal', 'unequal', 'smaller', 'larger', 'smallerEq', 'largerEq', 'compare']\n};\nexports.deepEqualDocs = deepEqualDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.equalDocs = void 0;\nvar equalDocs = {\n name: 'equal',\n category: 'Relational',\n syntax: ['x == y', 'equal(x, y)'],\n description: 'Check equality of two values. Returns true if the values are equal, and false if not.',\n examples: ['2+2 == 3', '2+2 == 4', 'a = 3.2', 'b = 6-2.8', 'a == b', '50cm == 0.5m'],\n seealso: ['unequal', 'smaller', 'larger', 'smallerEq', 'largerEq', 'compare', 'deepEqual', 'equalText']\n};\nexports.equalDocs = equalDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.equalTextDocs = void 0;\nvar equalTextDocs = {\n name: 'equalText',\n category: 'Relational',\n syntax: ['equalText(x, y)'],\n description: 'Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.',\n examples: ['equalText(\"Hello\", \"Hello\")', 'equalText(\"a\", \"A\")', 'equal(\"2e3\", \"2000\")', 'equalText(\"2e3\", \"2000\")', 'equalText(\"B\", [\"A\", \"B\", \"C\"])'],\n seealso: ['compare', 'compareNatural', 'compareText', 'equal']\n};\nexports.equalTextDocs = equalTextDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.largerDocs = void 0;\nvar largerDocs = {\n name: 'larger',\n category: 'Relational',\n syntax: ['x > y', 'larger(x, y)'],\n description: 'Check if value x is larger than y. Returns true if x is larger than y, and false if not.',\n examples: ['2 > 3', '5 > 2*2', 'a = 3.3', 'b = 6-2.8', '(a > b)', '(b < a)', '5 cm > 2 inch'],\n seealso: ['equal', 'unequal', 'smaller', 'smallerEq', 'largerEq', 'compare']\n};\nexports.largerDocs = largerDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.largerEqDocs = void 0;\nvar largerEqDocs = {\n name: 'largerEq',\n category: 'Relational',\n syntax: ['x >= y', 'largerEq(x, y)'],\n description: 'Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.',\n examples: ['2 >= 1+1', '2 > 1+1', 'a = 3.2', 'b = 6-2.8', '(a >= b)'],\n seealso: ['equal', 'unequal', 'smallerEq', 'smaller', 'compare']\n};\nexports.largerEqDocs = largerEqDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.smallerDocs = void 0;\nvar smallerDocs = {\n name: 'smaller',\n category: 'Relational',\n syntax: ['x < y', 'smaller(x, y)'],\n description: 'Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.',\n examples: ['2 < 3', '5 < 2*2', 'a = 3.3', 'b = 6-2.8', '(a < b)', '5 cm < 2 inch'],\n seealso: ['equal', 'unequal', 'larger', 'smallerEq', 'largerEq', 'compare']\n};\nexports.smallerDocs = smallerDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.smallerEqDocs = void 0;\nvar smallerEqDocs = {\n name: 'smallerEq',\n category: 'Relational',\n syntax: ['x <= y', 'smallerEq(x, y)'],\n description: 'Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.',\n examples: ['2 <= 1+1', '2 < 1+1', 'a = 3.2', 'b = 6-2.8', '(a <= b)'],\n seealso: ['equal', 'unequal', 'larger', 'smaller', 'largerEq', 'compare']\n};\nexports.smallerEqDocs = smallerEqDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unequalDocs = void 0;\nvar unequalDocs = {\n name: 'unequal',\n category: 'Relational',\n syntax: ['x != y', 'unequal(x, y)'],\n description: 'Check unequality of two values. Returns true if the values are unequal, and false if they are equal.',\n examples: ['2+2 != 3', '2+2 != 4', 'a = 3.2', 'b = 6-2.8', 'a != b', '50cm != 0.5m', '5 cm != 2 inch'],\n seealso: ['equal', 'smaller', 'larger', 'smallerEq', 'largerEq', 'compare', 'deepEqual']\n};\nexports.unequalDocs = unequalDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setCartesianDocs = void 0;\nvar setCartesianDocs = {\n name: 'setCartesian',\n category: 'Set',\n syntax: ['setCartesian(set1, set2)'],\n description: 'Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.',\n examples: ['setCartesian([1, 2], [3, 4])'],\n seealso: ['setUnion', 'setIntersect', 'setDifference', 'setPowerset']\n};\nexports.setCartesianDocs = setCartesianDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setDifferenceDocs = void 0;\nvar setDifferenceDocs = {\n name: 'setDifference',\n category: 'Set',\n syntax: ['setDifference(set1, set2)'],\n description: 'Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',\n examples: ['setDifference([1, 2, 3, 4], [3, 4, 5, 6])', 'setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],\n seealso: ['setUnion', 'setIntersect', 'setSymDifference']\n};\nexports.setDifferenceDocs = setDifferenceDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setDistinctDocs = void 0;\nvar setDistinctDocs = {\n name: 'setDistinct',\n category: 'Set',\n syntax: ['setDistinct(set)'],\n description: 'Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.',\n examples: ['setDistinct([1, 1, 1, 2, 2, 3])'],\n seealso: ['setMultiplicity']\n};\nexports.setDistinctDocs = setDistinctDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setIntersectDocs = void 0;\nvar setIntersectDocs = {\n name: 'setIntersect',\n category: 'Set',\n syntax: ['setIntersect(set1, set2)'],\n description: 'Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',\n examples: ['setIntersect([1, 2, 3, 4], [3, 4, 5, 6])', 'setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],\n seealso: ['setUnion', 'setDifference']\n};\nexports.setIntersectDocs = setIntersectDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setIsSubsetDocs = void 0;\nvar setIsSubsetDocs = {\n name: 'setIsSubset',\n category: 'Set',\n syntax: ['setIsSubset(set1, set2)'],\n description: 'Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',\n examples: ['setIsSubset([1, 2], [3, 4, 5, 6])', 'setIsSubset([3, 4], [3, 4, 5, 6])'],\n seealso: ['setUnion', 'setIntersect', 'setDifference']\n};\nexports.setIsSubsetDocs = setIsSubsetDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setMultiplicityDocs = void 0;\nvar setMultiplicityDocs = {\n name: 'setMultiplicity',\n category: 'Set',\n syntax: ['setMultiplicity(element, set)'],\n description: 'Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.',\n examples: ['setMultiplicity(1, [1, 2, 2, 4])', 'setMultiplicity(2, [1, 2, 2, 4])'],\n seealso: ['setDistinct', 'setSize']\n};\nexports.setMultiplicityDocs = setMultiplicityDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setPowersetDocs = void 0;\nvar setPowersetDocs = {\n name: 'setPowerset',\n category: 'Set',\n syntax: ['setPowerset(set)'],\n description: 'Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.',\n examples: ['setPowerset([1, 2, 3])'],\n seealso: ['setCartesian']\n};\nexports.setPowersetDocs = setPowersetDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setSizeDocs = void 0;\nvar setSizeDocs = {\n name: 'setSize',\n category: 'Set',\n syntax: ['setSize(set)', 'setSize(set, unique)'],\n description: 'Count the number of elements of a (multi)set. When the second parameter \"unique\" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',\n examples: ['setSize([1, 2, 2, 4])', 'setSize([1, 2, 2, 4], true)'],\n seealso: ['setUnion', 'setIntersect', 'setDifference']\n};\nexports.setSizeDocs = setSizeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setSymDifferenceDocs = void 0;\nvar setSymDifferenceDocs = {\n name: 'setSymDifference',\n category: 'Set',\n syntax: ['setSymDifference(set1, set2)'],\n description: 'Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',\n examples: ['setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])', 'setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],\n seealso: ['setUnion', 'setIntersect', 'setDifference']\n};\nexports.setSymDifferenceDocs = setSymDifferenceDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setUnionDocs = void 0;\nvar setUnionDocs = {\n name: 'setUnion',\n category: 'Set',\n syntax: ['setUnion(set1, set2)'],\n description: 'Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.',\n examples: ['setUnion([1, 2, 3, 4], [3, 4, 5, 6])', 'setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])'],\n seealso: ['setIntersect', 'setDifference']\n};\nexports.setUnionDocs = setUnionDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.erfDocs = void 0;\nvar erfDocs = {\n name: 'erf',\n category: 'Special',\n syntax: ['erf(x)'],\n description: 'Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x',\n examples: ['erf(0.2)', 'erf(-0.5)', 'erf(4)'],\n seealso: []\n};\nexports.erfDocs = erfDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.madDocs = void 0;\nvar madDocs = {\n name: 'mad',\n category: 'Statistics',\n syntax: ['mad(a, b, c, ...)', 'mad(A)'],\n description: 'Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.',\n examples: ['mad(10, 20, 30)', 'mad([1, 2, 3])'],\n seealso: ['mean', 'median', 'std', 'abs']\n};\nexports.madDocs = madDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.maxDocs = void 0;\nvar maxDocs = {\n name: 'max',\n category: 'Statistics',\n syntax: ['max(a, b, c, ...)', 'max(A)', 'max(A, dim)'],\n description: 'Compute the maximum value of a list of values.',\n examples: ['max(2, 3, 4, 1)', 'max([2, 3, 4, 1])', 'max([2, 5; 4, 3])', 'max([2, 5; 4, 3], 1)', 'max([2, 5; 4, 3], 2)', 'max(2.7, 7.1, -4.5, 2.0, 4.1)', 'min(2.7, 7.1, -4.5, 2.0, 4.1)'],\n seealso: ['mean', 'median', 'min', 'prod', 'std', 'sum', 'variance']\n};\nexports.maxDocs = maxDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.meanDocs = void 0;\nvar meanDocs = {\n name: 'mean',\n category: 'Statistics',\n syntax: ['mean(a, b, c, ...)', 'mean(A)', 'mean(A, dim)'],\n description: 'Compute the arithmetic mean of a list of values.',\n examples: ['mean(2, 3, 4, 1)', 'mean([2, 3, 4, 1])', 'mean([2, 5; 4, 3])', 'mean([2, 5; 4, 3], 1)', 'mean([2, 5; 4, 3], 2)', 'mean([1.0, 2.7, 3.2, 4.0])'],\n seealso: ['max', 'median', 'min', 'prod', 'std', 'sum', 'variance']\n};\nexports.meanDocs = meanDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.medianDocs = void 0;\nvar medianDocs = {\n name: 'median',\n category: 'Statistics',\n syntax: ['median(a, b, c, ...)', 'median(A)'],\n description: 'Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.',\n examples: ['median(5, 2, 7)', 'median([3, -1, 5, 7])'],\n seealso: ['max', 'mean', 'min', 'prod', 'std', 'sum', 'variance', 'quantileSeq']\n};\nexports.medianDocs = medianDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.minDocs = void 0;\nvar minDocs = {\n name: 'min',\n category: 'Statistics',\n syntax: ['min(a, b, c, ...)', 'min(A)', 'min(A, dim)'],\n description: 'Compute the minimum value of a list of values.',\n examples: ['min(2, 3, 4, 1)', 'min([2, 3, 4, 1])', 'min([2, 5; 4, 3])', 'min([2, 5; 4, 3], 1)', 'min([2, 5; 4, 3], 2)', 'min(2.7, 7.1, -4.5, 2.0, 4.1)', 'max(2.7, 7.1, -4.5, 2.0, 4.1)'],\n seealso: ['max', 'mean', 'median', 'prod', 'std', 'sum', 'variance']\n};\nexports.minDocs = minDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.modeDocs = void 0;\nvar modeDocs = {\n name: 'mode',\n category: 'Statistics',\n syntax: ['mode(a, b, c, ...)', 'mode(A)', 'mode(A, a, b, B, c, ...)'],\n description: 'Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.',\n examples: ['mode(2, 1, 4, 3, 1)', 'mode([1, 2.7, 3.2, 4, 2.7])', 'mode(1, 4, 6, 1, 6)'],\n seealso: ['max', 'mean', 'min', 'median', 'prod', 'std', 'sum', 'variance']\n};\nexports.modeDocs = modeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.prodDocs = void 0;\nvar prodDocs = {\n name: 'prod',\n category: 'Statistics',\n syntax: ['prod(a, b, c, ...)', 'prod(A)'],\n description: 'Compute the product of all values.',\n examples: ['prod(2, 3, 4)', 'prod([2, 3, 4])', 'prod([2, 5; 4, 3])'],\n seealso: ['max', 'mean', 'min', 'median', 'min', 'std', 'sum', 'variance']\n};\nexports.prodDocs = prodDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.quantileSeqDocs = void 0;\nvar quantileSeqDocs = {\n name: 'quantileSeq',\n category: 'Statistics',\n syntax: ['quantileSeq(A, prob[, sorted])', 'quantileSeq(A, [prob1, prob2, ...][, sorted])', 'quantileSeq(A, N[, sorted])'],\n description: 'Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \\n\\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.',\n examples: ['quantileSeq([3, -1, 5, 7], 0.5)', 'quantileSeq([3, -1, 5, 7], [1/3, 2/3])', 'quantileSeq([3, -1, 5, 7], 2)', 'quantileSeq([-1, 3, 5, 7], 0.5, true)'],\n seealso: ['mean', 'median', 'min', 'max', 'prod', 'std', 'sum', 'variance']\n};\nexports.quantileSeqDocs = quantileSeqDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stdDocs = void 0;\nvar stdDocs = {\n name: 'std',\n category: 'Statistics',\n syntax: ['std(a, b, c, ...)', 'std(A)', 'std(A, normalization)'],\n description: 'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be \"unbiased\" (default), \"uncorrected\", or \"biased\".',\n examples: ['std(2, 4, 6)', 'std([2, 4, 6, 8])', 'std([2, 4, 6, 8], \"uncorrected\")', 'std([2, 4, 6, 8], \"biased\")', 'std([1, 2, 3; 4, 5, 6])'],\n seealso: ['max', 'mean', 'min', 'median', 'prod', 'sum', 'variance']\n};\nexports.stdDocs = stdDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cumSumDocs = void 0;\nvar cumSumDocs = {\n name: 'cumsum',\n category: 'Statistics',\n syntax: ['cumsum(a, b, c, ...)', 'cumsum(A)'],\n description: 'Compute the cumulative sum of all values.',\n examples: ['cumsum(2, 3, 4, 1)', 'cumsum([2, 3, 4, 1])', 'cumsum([1, 2; 3, 4])', 'cumsum([1, 2; 3, 4], 1)', 'cumsum([1, 2; 3, 4], 2)'],\n seealso: ['max', 'mean', 'median', 'min', 'prod', 'std', 'sum', 'variance']\n};\nexports.cumSumDocs = cumSumDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sumDocs = void 0;\nvar sumDocs = {\n name: 'sum',\n category: 'Statistics',\n syntax: ['sum(a, b, c, ...)', 'sum(A)'],\n description: 'Compute the sum of all values.',\n examples: ['sum(2, 3, 4, 1)', 'sum([2, 3, 4, 1])', 'sum([2, 5; 4, 3])'],\n seealso: ['max', 'mean', 'median', 'min', 'prod', 'std', 'sum', 'variance']\n};\nexports.sumDocs = sumDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.varianceDocs = void 0;\nvar varianceDocs = {\n name: 'variance',\n category: 'Statistics',\n syntax: ['variance(a, b, c, ...)', 'variance(A)', 'variance(A, normalization)'],\n description: 'Compute the variance of all values. Optional parameter normalization can be \"unbiased\" (default), \"uncorrected\", or \"biased\".',\n examples: ['variance(2, 4, 6)', 'variance([2, 4, 6, 8])', 'variance([2, 4, 6, 8], \"uncorrected\")', 'variance([2, 4, 6, 8], \"biased\")', 'variance([1, 2, 3; 4, 5, 6])'],\n seealso: ['max', 'mean', 'min', 'median', 'min', 'prod', 'std', 'sum']\n};\nexports.varianceDocs = varianceDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acosDocs = void 0;\nvar acosDocs = {\n name: 'acos',\n category: 'Trigonometry',\n syntax: ['acos(x)'],\n description: 'Compute the inverse cosine of a value in radians.',\n examples: ['acos(0.5)', 'acos(cos(2.3))'],\n seealso: ['cos', 'atan', 'asin']\n};\nexports.acosDocs = acosDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acoshDocs = void 0;\nvar acoshDocs = {\n name: 'acosh',\n category: 'Trigonometry',\n syntax: ['acosh(x)'],\n description: 'Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.',\n examples: ['acosh(1.5)'],\n seealso: ['cosh', 'asinh', 'atanh']\n};\nexports.acoshDocs = acoshDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acotDocs = void 0;\nvar acotDocs = {\n name: 'acot',\n category: 'Trigonometry',\n syntax: ['acot(x)'],\n description: 'Calculate the inverse cotangent of a value.',\n examples: ['acot(0.5)', 'acot(cot(0.5))', 'acot(2)'],\n seealso: ['cot', 'atan']\n};\nexports.acotDocs = acotDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acothDocs = void 0;\nvar acothDocs = {\n name: 'acoth',\n category: 'Trigonometry',\n syntax: ['acoth(x)'],\n description: 'Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.',\n examples: ['acoth(2)', 'acoth(0.5)'],\n seealso: ['acsch', 'asech']\n};\nexports.acothDocs = acothDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acscDocs = void 0;\nvar acscDocs = {\n name: 'acsc',\n category: 'Trigonometry',\n syntax: ['acsc(x)'],\n description: 'Calculate the inverse cotangent of a value.',\n examples: ['acsc(2)', 'acsc(csc(0.5))', 'acsc(0.5)'],\n seealso: ['csc', 'asin', 'asec']\n};\nexports.acscDocs = acscDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acschDocs = void 0;\nvar acschDocs = {\n name: 'acsch',\n category: 'Trigonometry',\n syntax: ['acsch(x)'],\n description: 'Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.',\n examples: ['acsch(0.5)'],\n seealso: ['asech', 'acoth']\n};\nexports.acschDocs = acschDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asecDocs = void 0;\nvar asecDocs = {\n name: 'asec',\n category: 'Trigonometry',\n syntax: ['asec(x)'],\n description: 'Calculate the inverse secant of a value.',\n examples: ['asec(0.5)', 'asec(sec(0.5))', 'asec(2)'],\n seealso: ['acos', 'acot', 'acsc']\n};\nexports.asecDocs = asecDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asechDocs = void 0;\nvar asechDocs = {\n name: 'asech',\n category: 'Trigonometry',\n syntax: ['asech(x)'],\n description: 'Calculate the inverse secant of a value.',\n examples: ['asech(0.5)'],\n seealso: ['acsch', 'acoth']\n};\nexports.asechDocs = asechDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asinDocs = void 0;\nvar asinDocs = {\n name: 'asin',\n category: 'Trigonometry',\n syntax: ['asin(x)'],\n description: 'Compute the inverse sine of a value in radians.',\n examples: ['asin(0.5)', 'asin(sin(0.5))'],\n seealso: ['sin', 'acos', 'atan']\n};\nexports.asinDocs = asinDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asinhDocs = void 0;\nvar asinhDocs = {\n name: 'asinh',\n category: 'Trigonometry',\n syntax: ['asinh(x)'],\n description: 'Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.',\n examples: ['asinh(0.5)'],\n seealso: ['acosh', 'atanh']\n};\nexports.asinhDocs = asinhDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atanDocs = void 0;\nvar atanDocs = {\n name: 'atan',\n category: 'Trigonometry',\n syntax: ['atan(x)'],\n description: 'Compute the inverse tangent of a value in radians.',\n examples: ['atan(0.5)', 'atan(tan(0.5))'],\n seealso: ['tan', 'acos', 'asin']\n};\nexports.atanDocs = atanDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atan2Docs = void 0;\nvar atan2Docs = {\n name: 'atan2',\n category: 'Trigonometry',\n syntax: ['atan2(y, x)'],\n description: 'Computes the principal value of the arc tangent of y/x in radians.',\n examples: ['atan2(2, 2) / pi', 'angle = 60 deg in rad', 'x = cos(angle)', 'y = sin(angle)', 'atan2(y, x)'],\n seealso: ['sin', 'cos', 'tan']\n};\nexports.atan2Docs = atan2Docs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atanhDocs = void 0;\nvar atanhDocs = {\n name: 'atanh',\n category: 'Trigonometry',\n syntax: ['atanh(x)'],\n description: 'Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.',\n examples: ['atanh(0.5)'],\n seealso: ['acosh', 'asinh']\n};\nexports.atanhDocs = atanhDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cosDocs = void 0;\nvar cosDocs = {\n name: 'cos',\n category: 'Trigonometry',\n syntax: ['cos(x)'],\n description: 'Compute the cosine of x in radians.',\n examples: ['cos(2)', 'cos(pi / 4) ^ 2', 'cos(180 deg)', 'cos(60 deg)', 'sin(0.2)^2 + cos(0.2)^2'],\n seealso: ['acos', 'sin', 'tan']\n};\nexports.cosDocs = cosDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.coshDocs = void 0;\nvar coshDocs = {\n name: 'cosh',\n category: 'Trigonometry',\n syntax: ['cosh(x)'],\n description: 'Compute the hyperbolic cosine of x in radians.',\n examples: ['cosh(0.5)'],\n seealso: ['sinh', 'tanh', 'coth']\n};\nexports.coshDocs = coshDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cotDocs = void 0;\nvar cotDocs = {\n name: 'cot',\n category: 'Trigonometry',\n syntax: ['cot(x)'],\n description: 'Compute the cotangent of x in radians. Defined as 1/tan(x)',\n examples: ['cot(2)', '1 / tan(2)'],\n seealso: ['sec', 'csc', 'tan']\n};\nexports.cotDocs = cotDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cothDocs = void 0;\nvar cothDocs = {\n name: 'coth',\n category: 'Trigonometry',\n syntax: ['coth(x)'],\n description: 'Compute the hyperbolic cotangent of x in radians.',\n examples: ['coth(2)', '1 / tanh(2)'],\n seealso: ['sech', 'csch', 'tanh']\n};\nexports.cothDocs = cothDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cscDocs = void 0;\nvar cscDocs = {\n name: 'csc',\n category: 'Trigonometry',\n syntax: ['csc(x)'],\n description: 'Compute the cosecant of x in radians. Defined as 1/sin(x)',\n examples: ['csc(2)', '1 / sin(2)'],\n seealso: ['sec', 'cot', 'sin']\n};\nexports.cscDocs = cscDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cschDocs = void 0;\nvar cschDocs = {\n name: 'csch',\n category: 'Trigonometry',\n syntax: ['csch(x)'],\n description: 'Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)',\n examples: ['csch(2)', '1 / sinh(2)'],\n seealso: ['sech', 'coth', 'sinh']\n};\nexports.cschDocs = cschDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.secDocs = void 0;\nvar secDocs = {\n name: 'sec',\n category: 'Trigonometry',\n syntax: ['sec(x)'],\n description: 'Compute the secant of x in radians. Defined as 1/cos(x)',\n examples: ['sec(2)', '1 / cos(2)'],\n seealso: ['cot', 'csc', 'cos']\n};\nexports.secDocs = secDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sechDocs = void 0;\nvar sechDocs = {\n name: 'sech',\n category: 'Trigonometry',\n syntax: ['sech(x)'],\n description: 'Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)',\n examples: ['sech(2)', '1 / cosh(2)'],\n seealso: ['coth', 'csch', 'cosh']\n};\nexports.sechDocs = sechDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sinDocs = void 0;\nvar sinDocs = {\n name: 'sin',\n category: 'Trigonometry',\n syntax: ['sin(x)'],\n description: 'Compute the sine of x in radians.',\n examples: ['sin(2)', 'sin(pi / 4) ^ 2', 'sin(90 deg)', 'sin(30 deg)', 'sin(0.2)^2 + cos(0.2)^2'],\n seealso: ['asin', 'cos', 'tan']\n};\nexports.sinDocs = sinDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sinhDocs = void 0;\nvar sinhDocs = {\n name: 'sinh',\n category: 'Trigonometry',\n syntax: ['sinh(x)'],\n description: 'Compute the hyperbolic sine of x in radians.',\n examples: ['sinh(0.5)'],\n seealso: ['cosh', 'tanh']\n};\nexports.sinhDocs = sinhDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tanDocs = void 0;\nvar tanDocs = {\n name: 'tan',\n category: 'Trigonometry',\n syntax: ['tan(x)'],\n description: 'Compute the tangent of x in radians.',\n examples: ['tan(0.5)', 'sin(0.5) / cos(0.5)', 'tan(pi / 4)', 'tan(45 deg)'],\n seealso: ['atan', 'sin', 'cos']\n};\nexports.tanDocs = tanDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tanhDocs = void 0;\nvar tanhDocs = {\n name: 'tanh',\n category: 'Trigonometry',\n syntax: ['tanh(x)'],\n description: 'Compute the hyperbolic tangent of x in radians.',\n examples: ['tanh(0.5)', 'sinh(0.5) / cosh(0.5)'],\n seealso: ['sinh', 'cosh']\n};\nexports.tanhDocs = tanhDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.toDocs = void 0;\nvar toDocs = {\n name: 'to',\n category: 'Units',\n syntax: ['x to unit', 'to(x, unit)'],\n description: 'Change the unit of a value.',\n examples: ['5 inch to cm', '3.2kg to g', '16 bytes in bits'],\n seealso: []\n};\nexports.toDocs = toDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.binDocs = void 0;\nvar binDocs = {\n name: 'bin',\n category: 'Utils',\n syntax: ['bin(value)'],\n description: 'Format a number as binary',\n examples: ['bin(2)'],\n seealso: ['oct', 'hex']\n};\nexports.binDocs = binDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cloneDocs = void 0;\nvar cloneDocs = {\n name: 'clone',\n category: 'Utils',\n syntax: ['clone(x)'],\n description: 'Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices',\n examples: ['clone(3.5)', 'clone(2 - 4i)', 'clone(45 deg)', 'clone([1, 2; 3, 4])', 'clone(\"hello world\")'],\n seealso: []\n};\nexports.cloneDocs = cloneDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.formatDocs = void 0;\nvar formatDocs = {\n name: 'format',\n category: 'Utils',\n syntax: ['format(value)', 'format(value, precision)'],\n description: 'Format a value of any type as string.',\n examples: ['format(2.3)', 'format(3 - 4i)', 'format([])', 'format(pi, 3)'],\n seealso: ['print']\n};\nexports.formatDocs = formatDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hasNumericValueDocs = void 0;\nvar hasNumericValueDocs = {\n name: 'hasNumericValue',\n category: 'Utils',\n syntax: ['hasNumericValue(x)'],\n description: 'Test whether a value is an numeric value. ' + 'In case of a string, true is returned if the string contains a numeric value.',\n examples: ['hasNumericValue(2)', 'hasNumericValue(\"2\")', 'isNumeric(\"2\")', 'hasNumericValue(0)', 'hasNumericValue(bignumber(500))', 'hasNumericValue(fraction(0.125))', 'hasNumericValue(2 + 3i)', 'hasNumericValue([2.3, \"foo\", false])'],\n seealso: ['isInteger', 'isZero', 'isNegative', 'isPositive', 'isNaN', 'isNumeric']\n};\nexports.hasNumericValueDocs = hasNumericValueDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hexDocs = void 0;\nvar hexDocs = {\n name: 'hex',\n category: 'Utils',\n syntax: ['hex(value)'],\n description: 'Format a number as hexadecimal',\n examples: ['hex(240)'],\n seealso: ['bin', 'oct']\n};\nexports.hexDocs = hexDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isIntegerDocs = void 0;\nvar isIntegerDocs = {\n name: 'isInteger',\n category: 'Utils',\n syntax: ['isInteger(x)'],\n description: 'Test whether a value is an integer number.',\n examples: ['isInteger(2)', 'isInteger(3.5)', 'isInteger([3, 0.5, -2])'],\n seealso: ['isNegative', 'isNumeric', 'isPositive', 'isZero']\n};\nexports.isIntegerDocs = isIntegerDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNaNDocs = void 0;\nvar isNaNDocs = {\n name: 'isNaN',\n category: 'Utils',\n syntax: ['isNaN(x)'],\n description: 'Test whether a value is NaN (not a number)',\n examples: ['isNaN(2)', 'isNaN(0 / 0)', 'isNaN(NaN)', 'isNaN(Infinity)'],\n seealso: ['isNegative', 'isNumeric', 'isPositive', 'isZero']\n};\nexports.isNaNDocs = isNaNDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNegativeDocs = void 0;\nvar isNegativeDocs = {\n name: 'isNegative',\n category: 'Utils',\n syntax: ['isNegative(x)'],\n description: 'Test whether a value is negative: smaller than zero.',\n examples: ['isNegative(2)', 'isNegative(0)', 'isNegative(-4)', 'isNegative([3, 0.5, -2])'],\n seealso: ['isInteger', 'isNumeric', 'isPositive', 'isZero']\n};\nexports.isNegativeDocs = isNegativeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNumericDocs = void 0;\nvar isNumericDocs = {\n name: 'isNumeric',\n category: 'Utils',\n syntax: ['isNumeric(x)'],\n description: 'Test whether a value is a numeric value. ' + 'Returns true when the input is a number, BigNumber, Fraction, or boolean.',\n examples: ['isNumeric(2)', 'isNumeric(\"2\")', 'hasNumericValue(\"2\")', 'isNumeric(0)', 'isNumeric(bignumber(500))', 'isNumeric(fraction(0.125))', 'isNumeric(2 + 3i)', 'isNumeric([2.3, \"foo\", false])'],\n seealso: ['isInteger', 'isZero', 'isNegative', 'isPositive', 'isNaN', 'hasNumericValue']\n};\nexports.isNumericDocs = isNumericDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isPositiveDocs = void 0;\nvar isPositiveDocs = {\n name: 'isPositive',\n category: 'Utils',\n syntax: ['isPositive(x)'],\n description: 'Test whether a value is positive: larger than zero.',\n examples: ['isPositive(2)', 'isPositive(0)', 'isPositive(-4)', 'isPositive([3, 0.5, -2])'],\n seealso: ['isInteger', 'isNumeric', 'isNegative', 'isZero']\n};\nexports.isPositiveDocs = isPositiveDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isPrimeDocs = void 0;\nvar isPrimeDocs = {\n name: 'isPrime',\n category: 'Utils',\n syntax: ['isPrime(x)'],\n description: 'Test whether a value is prime: has no divisors other than itself and one.',\n examples: ['isPrime(3)', 'isPrime(-2)', 'isPrime([2, 17, 100])'],\n seealso: ['isInteger', 'isNumeric', 'isNegative', 'isZero']\n};\nexports.isPrimeDocs = isPrimeDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isZeroDocs = void 0;\nvar isZeroDocs = {\n name: 'isZero',\n category: 'Utils',\n syntax: ['isZero(x)'],\n description: 'Test whether a value is zero.',\n examples: ['isZero(2)', 'isZero(0)', 'isZero(-4)', 'isZero([3, 0, -2, 0])'],\n seealso: ['isInteger', 'isNumeric', 'isNegative', 'isPositive']\n};\nexports.isZeroDocs = isZeroDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.numericDocs = void 0;\nvar numericDocs = {\n name: 'numeric',\n category: 'Utils',\n syntax: ['numeric(x)'],\n description: 'Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.',\n examples: ['numeric(\"4\")', 'numeric(\"4\", \"number\")', 'numeric(\"4\", \"BigNumber\")', 'numeric(\"4\", \"Fraction)', 'numeric(4, \"Fraction\")', 'numeric(fraction(2, 5), \"number)'],\n seealso: ['number', 'fraction', 'bignumber', 'string', 'format']\n};\nexports.numericDocs = numericDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.octDocs = void 0;\nvar octDocs = {\n name: 'oct',\n category: 'Utils',\n syntax: ['oct(value)'],\n description: 'Format a number as octal',\n examples: ['oct(56)'],\n seealso: ['bin', 'hex']\n};\nexports.octDocs = octDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.printDocs = void 0;\nvar printDocs = {\n name: 'print',\n category: 'Utils',\n syntax: ['print(template, values)', 'print(template, values, precision)'],\n description: 'Interpolate values into a string template.',\n examples: ['print(\"Lucy is $age years old\", {age: 5})', 'print(\"The value of pi is $pi\", {pi: pi}, 3)', 'print(\"Hello, $user.name!\", {user: {name: \"John\"}})', 'print(\"Values: $0, $1, $2\", [6, 9, 4])'],\n seealso: ['format']\n};\nexports.printDocs = printDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typeOfDocs = void 0;\nvar typeOfDocs = {\n name: 'typeOf',\n category: 'Utils',\n syntax: ['typeOf(x)'],\n description: 'Get the type of a variable.',\n examples: ['typeOf(3.5)', 'typeOf(2 - 4i)', 'typeOf(45 deg)', 'typeOf(\"hello world\")'],\n seealso: ['getMatrixDataType']\n};\nexports.typeOfDocs = typeOfDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.embeddedDocs = void 0;\n\nvar _e = require(\"./constants/e.js\");\n\nvar _false = require(\"./constants/false.js\");\n\nvar _i = require(\"./constants/i.js\");\n\nvar _Infinity = require(\"./constants/Infinity.js\");\n\nvar _LN = require(\"./constants/LN10.js\");\n\nvar _LN2 = require(\"./constants/LN2.js\");\n\nvar _LOG10E = require(\"./constants/LOG10E.js\");\n\nvar _LOG2E = require(\"./constants/LOG2E.js\");\n\nvar _NaN = require(\"./constants/NaN.js\");\n\nvar _null = require(\"./constants/null.js\");\n\nvar _phi = require(\"./constants/phi.js\");\n\nvar _pi = require(\"./constants/pi.js\");\n\nvar _SQRT1_ = require(\"./constants/SQRT1_2.js\");\n\nvar _SQRT = require(\"./constants/SQRT2.js\");\n\nvar _tau = require(\"./constants/tau.js\");\n\nvar _true = require(\"./constants/true.js\");\n\nvar _version = require(\"./constants/version.js\");\n\nvar _bignumber = require(\"./construction/bignumber.js\");\n\nvar _boolean = require(\"./construction/boolean.js\");\n\nvar _complex = require(\"./construction/complex.js\");\n\nvar _createUnit = require(\"./construction/createUnit.js\");\n\nvar _fraction = require(\"./construction/fraction.js\");\n\nvar _index = require(\"./construction/index.js\");\n\nvar _matrix = require(\"./construction/matrix.js\");\n\nvar _number = require(\"./construction/number.js\");\n\nvar _sparse = require(\"./construction/sparse.js\");\n\nvar _splitUnit = require(\"./construction/splitUnit.js\");\n\nvar _string = require(\"./construction/string.js\");\n\nvar _unit = require(\"./construction/unit.js\");\n\nvar _config = require(\"./core/config.js\");\n\nvar _import = require(\"./core/import.js\");\n\nvar _typed = require(\"./core/typed.js\");\n\nvar _derivative = require(\"./function/algebra/derivative.js\");\n\nvar _leafCount = require(\"./function/algebra/leafCount.js\");\n\nvar _lsolve = require(\"./function/algebra/lsolve.js\");\n\nvar _lsolveAll = require(\"./function/algebra/lsolveAll.js\");\n\nvar _lup = require(\"./function/algebra/lup.js\");\n\nvar _lusolve = require(\"./function/algebra/lusolve.js\");\n\nvar _qr = require(\"./function/algebra/qr.js\");\n\nvar _rationalize = require(\"./function/algebra/rationalize.js\");\n\nvar _resolve = require(\"./function/algebra/resolve.js\");\n\nvar _simplify = require(\"./function/algebra/simplify.js\");\n\nvar _simplifyCore = require(\"./function/algebra/simplifyCore.js\");\n\nvar _slu = require(\"./function/algebra/slu.js\");\n\nvar _symbolicEqual = require(\"./function/algebra/symbolicEqual.js\");\n\nvar _usolve = require(\"./function/algebra/usolve.js\");\n\nvar _usolveAll = require(\"./function/algebra/usolveAll.js\");\n\nvar _abs = require(\"./function/arithmetic/abs.js\");\n\nvar _add = require(\"./function/arithmetic/add.js\");\n\nvar _cbrt = require(\"./function/arithmetic/cbrt.js\");\n\nvar _ceil = require(\"./function/arithmetic/ceil.js\");\n\nvar _cube = require(\"./function/arithmetic/cube.js\");\n\nvar _divide = require(\"./function/arithmetic/divide.js\");\n\nvar _dotDivide = require(\"./function/arithmetic/dotDivide.js\");\n\nvar _dotMultiply = require(\"./function/arithmetic/dotMultiply.js\");\n\nvar _dotPow = require(\"./function/arithmetic/dotPow.js\");\n\nvar _exp = require(\"./function/arithmetic/exp.js\");\n\nvar _expm = require(\"./function/arithmetic/expm.js\");\n\nvar _expm2 = require(\"./function/arithmetic/expm1.js\");\n\nvar _fix = require(\"./function/arithmetic/fix.js\");\n\nvar _floor = require(\"./function/arithmetic/floor.js\");\n\nvar _gcd = require(\"./function/arithmetic/gcd.js\");\n\nvar _hypot = require(\"./function/arithmetic/hypot.js\");\n\nvar _invmod = require(\"./function/arithmetic/invmod.js\");\n\nvar _lcm = require(\"./function/arithmetic/lcm.js\");\n\nvar _log = require(\"./function/arithmetic/log.js\");\n\nvar _log2 = require(\"./function/arithmetic/log10.js\");\n\nvar _log1p = require(\"./function/arithmetic/log1p.js\");\n\nvar _log3 = require(\"./function/arithmetic/log2.js\");\n\nvar _mod = require(\"./function/arithmetic/mod.js\");\n\nvar _multiply = require(\"./function/arithmetic/multiply.js\");\n\nvar _norm = require(\"./function/arithmetic/norm.js\");\n\nvar _nthRoot = require(\"./function/arithmetic/nthRoot.js\");\n\nvar _nthRoots = require(\"./function/arithmetic/nthRoots.js\");\n\nvar _pow = require(\"./function/arithmetic/pow.js\");\n\nvar _round = require(\"./function/arithmetic/round.js\");\n\nvar _sign = require(\"./function/arithmetic/sign.js\");\n\nvar _sqrt = require(\"./function/arithmetic/sqrt.js\");\n\nvar _sqrtm = require(\"./function/arithmetic/sqrtm.js\");\n\nvar _square = require(\"./function/arithmetic/square.js\");\n\nvar _subtract = require(\"./function/arithmetic/subtract.js\");\n\nvar _unaryMinus = require(\"./function/arithmetic/unaryMinus.js\");\n\nvar _unaryPlus = require(\"./function/arithmetic/unaryPlus.js\");\n\nvar _xgcd = require(\"./function/arithmetic/xgcd.js\");\n\nvar _bitAnd = require(\"./function/bitwise/bitAnd.js\");\n\nvar _bitNot = require(\"./function/bitwise/bitNot.js\");\n\nvar _bitOr = require(\"./function/bitwise/bitOr.js\");\n\nvar _bitXor = require(\"./function/bitwise/bitXor.js\");\n\nvar _leftShift = require(\"./function/bitwise/leftShift.js\");\n\nvar _rightArithShift = require(\"./function/bitwise/rightArithShift.js\");\n\nvar _rightLogShift = require(\"./function/bitwise/rightLogShift.js\");\n\nvar _bellNumbers = require(\"./function/combinatorics/bellNumbers.js\");\n\nvar _catalan = require(\"./function/combinatorics/catalan.js\");\n\nvar _composition = require(\"./function/combinatorics/composition.js\");\n\nvar _stirlingS = require(\"./function/combinatorics/stirlingS2.js\");\n\nvar _arg = require(\"./function/complex/arg.js\");\n\nvar _conj = require(\"./function/complex/conj.js\");\n\nvar _im = require(\"./function/complex/im.js\");\n\nvar _re = require(\"./function/complex/re.js\");\n\nvar _evaluate = require(\"./function/expression/evaluate.js\");\n\nvar _help = require(\"./function/expression/help.js\");\n\nvar _distance = require(\"./function/geometry/distance.js\");\n\nvar _intersect = require(\"./function/geometry/intersect.js\");\n\nvar _and = require(\"./function/logical/and.js\");\n\nvar _not = require(\"./function/logical/not.js\");\n\nvar _or = require(\"./function/logical/or.js\");\n\nvar _xor = require(\"./function/logical/xor.js\");\n\nvar _column = require(\"./function/matrix/column.js\");\n\nvar _concat = require(\"./function/matrix/concat.js\");\n\nvar _count = require(\"./function/matrix/count.js\");\n\nvar _cross = require(\"./function/matrix/cross.js\");\n\nvar _ctranspose = require(\"./function/matrix/ctranspose.js\");\n\nvar _det = require(\"./function/matrix/det.js\");\n\nvar _diag = require(\"./function/matrix/diag.js\");\n\nvar _diff = require(\"./function/matrix/diff.js\");\n\nvar _dot = require(\"./function/matrix/dot.js\");\n\nvar _eigs = require(\"./function/matrix/eigs.js\");\n\nvar _filter = require(\"./function/matrix/filter.js\");\n\nvar _flatten = require(\"./function/matrix/flatten.js\");\n\nvar _forEach = require(\"./function/matrix/forEach.js\");\n\nvar _getMatrixDataType = require(\"./function/matrix/getMatrixDataType.js\");\n\nvar _identity = require(\"./function/matrix/identity.js\");\n\nvar _inv = require(\"./function/matrix/inv.js\");\n\nvar _pinv = require(\"./function/matrix/pinv.js\");\n\nvar _kron = require(\"./function/matrix/kron.js\");\n\nvar _map = require(\"./function/matrix/map.js\");\n\nvar _matrixFromColumns = require(\"./function/matrix/matrixFromColumns.js\");\n\nvar _matrixFromFunction = require(\"./function/matrix/matrixFromFunction.js\");\n\nvar _matrixFromRows = require(\"./function/matrix/matrixFromRows.js\");\n\nvar _ones = require(\"./function/matrix/ones.js\");\n\nvar _partitionSelect = require(\"./function/matrix/partitionSelect.js\");\n\nvar _range = require(\"./function/matrix/range.js\");\n\nvar _reshape = require(\"./function/matrix/reshape.js\");\n\nvar _resize = require(\"./function/matrix/resize.js\");\n\nvar _rotate = require(\"./function/matrix/rotate.js\");\n\nvar _rotationMatrix = require(\"./function/matrix/rotationMatrix.js\");\n\nvar _row = require(\"./function/matrix/row.js\");\n\nvar _size = require(\"./function/matrix/size.js\");\n\nvar _sort = require(\"./function/matrix/sort.js\");\n\nvar _squeeze = require(\"./function/matrix/squeeze.js\");\n\nvar _subset = require(\"./function/matrix/subset.js\");\n\nvar _trace = require(\"./function/matrix/trace.js\");\n\nvar _transpose = require(\"./function/matrix/transpose.js\");\n\nvar _zeros = require(\"./function/matrix/zeros.js\");\n\nvar _fft = require(\"./function/matrix/fft.js\");\n\nvar _ifft = require(\"./function/matrix/ifft.js\");\n\nvar _combinations = require(\"./function/probability/combinations.js\");\n\nvar _combinationsWithRep = require(\"./function/probability/combinationsWithRep.js\");\n\nvar _factorial = require(\"./function/probability/factorial.js\");\n\nvar _gamma = require(\"./function/probability/gamma.js\");\n\nvar _lgamma = require(\"./function/probability/lgamma.js\");\n\nvar _kldivergence = require(\"./function/probability/kldivergence.js\");\n\nvar _multinomial = require(\"./function/probability/multinomial.js\");\n\nvar _permutations = require(\"./function/probability/permutations.js\");\n\nvar _pickRandom = require(\"./function/probability/pickRandom.js\");\n\nvar _random = require(\"./function/probability/random.js\");\n\nvar _randomInt = require(\"./function/probability/randomInt.js\");\n\nvar _compare = require(\"./function/relational/compare.js\");\n\nvar _compareNatural = require(\"./function/relational/compareNatural.js\");\n\nvar _compareText = require(\"./function/relational/compareText.js\");\n\nvar _deepEqual = require(\"./function/relational/deepEqual.js\");\n\nvar _equal = require(\"./function/relational/equal.js\");\n\nvar _equalText = require(\"./function/relational/equalText.js\");\n\nvar _larger = require(\"./function/relational/larger.js\");\n\nvar _largerEq = require(\"./function/relational/largerEq.js\");\n\nvar _smaller = require(\"./function/relational/smaller.js\");\n\nvar _smallerEq = require(\"./function/relational/smallerEq.js\");\n\nvar _unequal = require(\"./function/relational/unequal.js\");\n\nvar _setCartesian = require(\"./function/set/setCartesian.js\");\n\nvar _setDifference = require(\"./function/set/setDifference.js\");\n\nvar _setDistinct = require(\"./function/set/setDistinct.js\");\n\nvar _setIntersect = require(\"./function/set/setIntersect.js\");\n\nvar _setIsSubset = require(\"./function/set/setIsSubset.js\");\n\nvar _setMultiplicity = require(\"./function/set/setMultiplicity.js\");\n\nvar _setPowerset = require(\"./function/set/setPowerset.js\");\n\nvar _setSize = require(\"./function/set/setSize.js\");\n\nvar _setSymDifference = require(\"./function/set/setSymDifference.js\");\n\nvar _setUnion = require(\"./function/set/setUnion.js\");\n\nvar _erf = require(\"./function/special/erf.js\");\n\nvar _mad = require(\"./function/statistics/mad.js\");\n\nvar _max = require(\"./function/statistics/max.js\");\n\nvar _mean = require(\"./function/statistics/mean.js\");\n\nvar _median = require(\"./function/statistics/median.js\");\n\nvar _min = require(\"./function/statistics/min.js\");\n\nvar _mode = require(\"./function/statistics/mode.js\");\n\nvar _prod = require(\"./function/statistics/prod.js\");\n\nvar _quantileSeq = require(\"./function/statistics/quantileSeq.js\");\n\nvar _std = require(\"./function/statistics/std.js\");\n\nvar _cumsum = require(\"./function/statistics/cumsum.js\");\n\nvar _sum = require(\"./function/statistics/sum.js\");\n\nvar _variance = require(\"./function/statistics/variance.js\");\n\nvar _acos = require(\"./function/trigonometry/acos.js\");\n\nvar _acosh = require(\"./function/trigonometry/acosh.js\");\n\nvar _acot = require(\"./function/trigonometry/acot.js\");\n\nvar _acoth = require(\"./function/trigonometry/acoth.js\");\n\nvar _acsc = require(\"./function/trigonometry/acsc.js\");\n\nvar _acsch = require(\"./function/trigonometry/acsch.js\");\n\nvar _asec = require(\"./function/trigonometry/asec.js\");\n\nvar _asech = require(\"./function/trigonometry/asech.js\");\n\nvar _asin = require(\"./function/trigonometry/asin.js\");\n\nvar _asinh = require(\"./function/trigonometry/asinh.js\");\n\nvar _atan = require(\"./function/trigonometry/atan.js\");\n\nvar _atan2 = require(\"./function/trigonometry/atan2.js\");\n\nvar _atanh = require(\"./function/trigonometry/atanh.js\");\n\nvar _cos = require(\"./function/trigonometry/cos.js\");\n\nvar _cosh = require(\"./function/trigonometry/cosh.js\");\n\nvar _cot = require(\"./function/trigonometry/cot.js\");\n\nvar _coth = require(\"./function/trigonometry/coth.js\");\n\nvar _csc = require(\"./function/trigonometry/csc.js\");\n\nvar _csch = require(\"./function/trigonometry/csch.js\");\n\nvar _sec = require(\"./function/trigonometry/sec.js\");\n\nvar _sech = require(\"./function/trigonometry/sech.js\");\n\nvar _sin = require(\"./function/trigonometry/sin.js\");\n\nvar _sinh = require(\"./function/trigonometry/sinh.js\");\n\nvar _tan = require(\"./function/trigonometry/tan.js\");\n\nvar _tanh = require(\"./function/trigonometry/tanh.js\");\n\nvar _to = require(\"./function/units/to.js\");\n\nvar _bin = require(\"./function/utils/bin.js\");\n\nvar _clone = require(\"./function/utils/clone.js\");\n\nvar _format = require(\"./function/utils/format.js\");\n\nvar _hasNumericValue = require(\"./function/utils/hasNumericValue.js\");\n\nvar _hex = require(\"./function/utils/hex.js\");\n\nvar _isInteger = require(\"./function/utils/isInteger.js\");\n\nvar _isNaN = require(\"./function/utils/isNaN.js\");\n\nvar _isNegative = require(\"./function/utils/isNegative.js\");\n\nvar _isNumeric = require(\"./function/utils/isNumeric.js\");\n\nvar _isPositive = require(\"./function/utils/isPositive.js\");\n\nvar _isPrime = require(\"./function/utils/isPrime.js\");\n\nvar _isZero = require(\"./function/utils/isZero.js\");\n\nvar _numeric = require(\"./function/utils/numeric.js\");\n\nvar _oct = require(\"./function/utils/oct.js\");\n\nvar _print = require(\"./function/utils/print.js\");\n\nvar _typeOf = require(\"./function/utils/typeOf.js\");\n\nvar embeddedDocs = {\n // construction functions\n bignumber: _bignumber.bignumberDocs,\n boolean: _boolean.booleanDocs,\n complex: _complex.complexDocs,\n createUnit: _createUnit.createUnitDocs,\n fraction: _fraction.fractionDocs,\n index: _index.indexDocs,\n matrix: _matrix.matrixDocs,\n number: _number.numberDocs,\n sparse: _sparse.sparseDocs,\n splitUnit: _splitUnit.splitUnitDocs,\n string: _string.stringDocs,\n unit: _unit.unitDocs,\n // constants\n e: _e.eDocs,\n E: _e.eDocs,\n false: _false.falseDocs,\n i: _i.iDocs,\n Infinity: _Infinity.InfinityDocs,\n LN2: _LN2.LN2Docs,\n LN10: _LN.LN10Docs,\n LOG2E: _LOG2E.LOG2EDocs,\n LOG10E: _LOG10E.LOG10EDocs,\n NaN: _NaN.NaNDocs,\n null: _null.nullDocs,\n pi: _pi.piDocs,\n PI: _pi.piDocs,\n phi: _phi.phiDocs,\n SQRT1_2: _SQRT1_.SQRT12Docs,\n SQRT2: _SQRT.SQRT2Docs,\n tau: _tau.tauDocs,\n true: _true.trueDocs,\n version: _version.versionDocs,\n // physical constants\n // TODO: more detailed docs for physical constants\n speedOfLight: {\n description: 'Speed of light in vacuum',\n examples: ['speedOfLight']\n },\n gravitationConstant: {\n description: 'Newtonian constant of gravitation',\n examples: ['gravitationConstant']\n },\n planckConstant: {\n description: 'Planck constant',\n examples: ['planckConstant']\n },\n reducedPlanckConstant: {\n description: 'Reduced Planck constant',\n examples: ['reducedPlanckConstant']\n },\n magneticConstant: {\n description: 'Magnetic constant (vacuum permeability)',\n examples: ['magneticConstant']\n },\n electricConstant: {\n description: 'Electric constant (vacuum permeability)',\n examples: ['electricConstant']\n },\n vacuumImpedance: {\n description: 'Characteristic impedance of vacuum',\n examples: ['vacuumImpedance']\n },\n coulomb: {\n description: 'Coulomb\\'s constant',\n examples: ['coulomb']\n },\n elementaryCharge: {\n description: 'Elementary charge',\n examples: ['elementaryCharge']\n },\n bohrMagneton: {\n description: 'Borh magneton',\n examples: ['bohrMagneton']\n },\n conductanceQuantum: {\n description: 'Conductance quantum',\n examples: ['conductanceQuantum']\n },\n inverseConductanceQuantum: {\n description: 'Inverse conductance quantum',\n examples: ['inverseConductanceQuantum']\n },\n // josephson: {description: 'Josephson constant', examples: ['josephson']},\n magneticFluxQuantum: {\n description: 'Magnetic flux quantum',\n examples: ['magneticFluxQuantum']\n },\n nuclearMagneton: {\n description: 'Nuclear magneton',\n examples: ['nuclearMagneton']\n },\n klitzing: {\n description: 'Von Klitzing constant',\n examples: ['klitzing']\n },\n bohrRadius: {\n description: 'Borh radius',\n examples: ['bohrRadius']\n },\n classicalElectronRadius: {\n description: 'Classical electron radius',\n examples: ['classicalElectronRadius']\n },\n electronMass: {\n description: 'Electron mass',\n examples: ['electronMass']\n },\n fermiCoupling: {\n description: 'Fermi coupling constant',\n examples: ['fermiCoupling']\n },\n fineStructure: {\n description: 'Fine-structure constant',\n examples: ['fineStructure']\n },\n hartreeEnergy: {\n description: 'Hartree energy',\n examples: ['hartreeEnergy']\n },\n protonMass: {\n description: 'Proton mass',\n examples: ['protonMass']\n },\n deuteronMass: {\n description: 'Deuteron Mass',\n examples: ['deuteronMass']\n },\n neutronMass: {\n description: 'Neutron mass',\n examples: ['neutronMass']\n },\n quantumOfCirculation: {\n description: 'Quantum of circulation',\n examples: ['quantumOfCirculation']\n },\n rydberg: {\n description: 'Rydberg constant',\n examples: ['rydberg']\n },\n thomsonCrossSection: {\n description: 'Thomson cross section',\n examples: ['thomsonCrossSection']\n },\n weakMixingAngle: {\n description: 'Weak mixing angle',\n examples: ['weakMixingAngle']\n },\n efimovFactor: {\n description: 'Efimov factor',\n examples: ['efimovFactor']\n },\n atomicMass: {\n description: 'Atomic mass constant',\n examples: ['atomicMass']\n },\n avogadro: {\n description: 'Avogadro\\'s number',\n examples: ['avogadro']\n },\n boltzmann: {\n description: 'Boltzmann constant',\n examples: ['boltzmann']\n },\n faraday: {\n description: 'Faraday constant',\n examples: ['faraday']\n },\n firstRadiation: {\n description: 'First radiation constant',\n examples: ['firstRadiation']\n },\n loschmidt: {\n description: 'Loschmidt constant at T=273.15 K and p=101.325 kPa',\n examples: ['loschmidt']\n },\n gasConstant: {\n description: 'Gas constant',\n examples: ['gasConstant']\n },\n molarPlanckConstant: {\n description: 'Molar Planck constant',\n examples: ['molarPlanckConstant']\n },\n molarVolume: {\n description: 'Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa',\n examples: ['molarVolume']\n },\n sackurTetrode: {\n description: 'Sackur-Tetrode constant at T=1 K and p=101.325 kPa',\n examples: ['sackurTetrode']\n },\n secondRadiation: {\n description: 'Second radiation constant',\n examples: ['secondRadiation']\n },\n stefanBoltzmann: {\n description: 'Stefan-Boltzmann constant',\n examples: ['stefanBoltzmann']\n },\n wienDisplacement: {\n description: 'Wien displacement law constant',\n examples: ['wienDisplacement']\n },\n // spectralRadiance: {description: 'First radiation constant for spectral radiance', examples: ['spectralRadiance']},\n molarMass: {\n description: 'Molar mass constant',\n examples: ['molarMass']\n },\n molarMassC12: {\n description: 'Molar mass constant of carbon-12',\n examples: ['molarMassC12']\n },\n gravity: {\n description: 'Standard acceleration of gravity (standard acceleration of free-fall on Earth)',\n examples: ['gravity']\n },\n planckLength: {\n description: 'Planck length',\n examples: ['planckLength']\n },\n planckMass: {\n description: 'Planck mass',\n examples: ['planckMass']\n },\n planckTime: {\n description: 'Planck time',\n examples: ['planckTime']\n },\n planckCharge: {\n description: 'Planck charge',\n examples: ['planckCharge']\n },\n planckTemperature: {\n description: 'Planck temperature',\n examples: ['planckTemperature']\n },\n // functions - algebra\n derivative: _derivative.derivativeDocs,\n lsolve: _lsolve.lsolveDocs,\n lsolveAll: _lsolveAll.lsolveAllDocs,\n lup: _lup.lupDocs,\n lusolve: _lusolve.lusolveDocs,\n leafCount: _leafCount.leafCountDocs,\n resolve: _resolve.resolveDocs,\n simplify: _simplify.simplifyDocs,\n simplifyCore: _simplifyCore.simplifyCoreDocs,\n symbolicEqual: _symbolicEqual.symbolicEqualDocs,\n rationalize: _rationalize.rationalizeDocs,\n slu: _slu.sluDocs,\n usolve: _usolve.usolveDocs,\n usolveAll: _usolveAll.usolveAllDocs,\n qr: _qr.qrDocs,\n // functions - arithmetic\n abs: _abs.absDocs,\n add: _add.addDocs,\n cbrt: _cbrt.cbrtDocs,\n ceil: _ceil.ceilDocs,\n cube: _cube.cubeDocs,\n divide: _divide.divideDocs,\n dotDivide: _dotDivide.dotDivideDocs,\n dotMultiply: _dotMultiply.dotMultiplyDocs,\n dotPow: _dotPow.dotPowDocs,\n exp: _exp.expDocs,\n expm: _expm.expmDocs,\n expm1: _expm2.expm1Docs,\n fix: _fix.fixDocs,\n floor: _floor.floorDocs,\n gcd: _gcd.gcdDocs,\n hypot: _hypot.hypotDocs,\n lcm: _lcm.lcmDocs,\n log: _log.logDocs,\n log2: _log3.log2Docs,\n log1p: _log1p.log1pDocs,\n log10: _log2.log10Docs,\n mod: _mod.modDocs,\n multiply: _multiply.multiplyDocs,\n norm: _norm.normDocs,\n nthRoot: _nthRoot.nthRootDocs,\n nthRoots: _nthRoots.nthRootsDocs,\n pow: _pow.powDocs,\n round: _round.roundDocs,\n sign: _sign.signDocs,\n sqrt: _sqrt.sqrtDocs,\n sqrtm: _sqrtm.sqrtmDocs,\n square: _square.squareDocs,\n subtract: _subtract.subtractDocs,\n unaryMinus: _unaryMinus.unaryMinusDocs,\n unaryPlus: _unaryPlus.unaryPlusDocs,\n xgcd: _xgcd.xgcdDocs,\n invmod: _invmod.invmodDocs,\n // functions - bitwise\n bitAnd: _bitAnd.bitAndDocs,\n bitNot: _bitNot.bitNotDocs,\n bitOr: _bitOr.bitOrDocs,\n bitXor: _bitXor.bitXorDocs,\n leftShift: _leftShift.leftShiftDocs,\n rightArithShift: _rightArithShift.rightArithShiftDocs,\n rightLogShift: _rightLogShift.rightLogShiftDocs,\n // functions - combinatorics\n bellNumbers: _bellNumbers.bellNumbersDocs,\n catalan: _catalan.catalanDocs,\n composition: _composition.compositionDocs,\n stirlingS2: _stirlingS.stirlingS2Docs,\n // functions - core\n config: _config.configDocs,\n import: _import.importDocs,\n typed: _typed.typedDocs,\n // functions - complex\n arg: _arg.argDocs,\n conj: _conj.conjDocs,\n re: _re.reDocs,\n im: _im.imDocs,\n // functions - expression\n evaluate: _evaluate.evaluateDocs,\n help: _help.helpDocs,\n // functions - geometry\n distance: _distance.distanceDocs,\n intersect: _intersect.intersectDocs,\n // functions - logical\n and: _and.andDocs,\n not: _not.notDocs,\n or: _or.orDocs,\n xor: _xor.xorDocs,\n // functions - matrix\n concat: _concat.concatDocs,\n count: _count.countDocs,\n cross: _cross.crossDocs,\n column: _column.columnDocs,\n ctranspose: _ctranspose.ctransposeDocs,\n det: _det.detDocs,\n diag: _diag.diagDocs,\n diff: _diff.diffDocs,\n dot: _dot.dotDocs,\n getMatrixDataType: _getMatrixDataType.getMatrixDataTypeDocs,\n identity: _identity.identityDocs,\n filter: _filter.filterDocs,\n flatten: _flatten.flattenDocs,\n forEach: _forEach.forEachDocs,\n inv: _inv.invDocs,\n pinv: _pinv.pinvDocs,\n eigs: _eigs.eigsDocs,\n kron: _kron.kronDocs,\n matrixFromFunction: _matrixFromFunction.matrixFromFunctionDocs,\n matrixFromRows: _matrixFromRows.matrixFromRowsDocs,\n matrixFromColumns: _matrixFromColumns.matrixFromColumnsDocs,\n map: _map.mapDocs,\n ones: _ones.onesDocs,\n partitionSelect: _partitionSelect.partitionSelectDocs,\n range: _range.rangeDocs,\n resize: _resize.resizeDocs,\n reshape: _reshape.reshapeDocs,\n rotate: _rotate.rotateDocs,\n rotationMatrix: _rotationMatrix.rotationMatrixDocs,\n row: _row.rowDocs,\n size: _size.sizeDocs,\n sort: _sort.sortDocs,\n squeeze: _squeeze.squeezeDocs,\n subset: _subset.subsetDocs,\n trace: _trace.traceDocs,\n transpose: _transpose.transposeDocs,\n zeros: _zeros.zerosDocs,\n fft: _fft.fftDocs,\n ifft: _ifft.ifftDocs,\n // functions - probability\n combinations: _combinations.combinationsDocs,\n combinationsWithRep: _combinationsWithRep.combinationsWithRepDocs,\n // distribution: distributionDocs,\n factorial: _factorial.factorialDocs,\n gamma: _gamma.gammaDocs,\n kldivergence: _kldivergence.kldivergenceDocs,\n lgamma: _lgamma.lgammaDocs,\n multinomial: _multinomial.multinomialDocs,\n permutations: _permutations.permutationsDocs,\n pickRandom: _pickRandom.pickRandomDocs,\n random: _random.randomDocs,\n randomInt: _randomInt.randomIntDocs,\n // functions - relational\n compare: _compare.compareDocs,\n compareNatural: _compareNatural.compareNaturalDocs,\n compareText: _compareText.compareTextDocs,\n deepEqual: _deepEqual.deepEqualDocs,\n equal: _equal.equalDocs,\n equalText: _equalText.equalTextDocs,\n larger: _larger.largerDocs,\n largerEq: _largerEq.largerEqDocs,\n smaller: _smaller.smallerDocs,\n smallerEq: _smallerEq.smallerEqDocs,\n unequal: _unequal.unequalDocs,\n // functions - set\n setCartesian: _setCartesian.setCartesianDocs,\n setDifference: _setDifference.setDifferenceDocs,\n setDistinct: _setDistinct.setDistinctDocs,\n setIntersect: _setIntersect.setIntersectDocs,\n setIsSubset: _setIsSubset.setIsSubsetDocs,\n setMultiplicity: _setMultiplicity.setMultiplicityDocs,\n setPowerset: _setPowerset.setPowersetDocs,\n setSize: _setSize.setSizeDocs,\n setSymDifference: _setSymDifference.setSymDifferenceDocs,\n setUnion: _setUnion.setUnionDocs,\n // functions - special\n erf: _erf.erfDocs,\n // functions - statistics\n cumsum: _cumsum.cumSumDocs,\n mad: _mad.madDocs,\n max: _max.maxDocs,\n mean: _mean.meanDocs,\n median: _median.medianDocs,\n min: _min.minDocs,\n mode: _mode.modeDocs,\n prod: _prod.prodDocs,\n quantileSeq: _quantileSeq.quantileSeqDocs,\n std: _std.stdDocs,\n sum: _sum.sumDocs,\n variance: _variance.varianceDocs,\n // functions - trigonometry\n acos: _acos.acosDocs,\n acosh: _acosh.acoshDocs,\n acot: _acot.acotDocs,\n acoth: _acoth.acothDocs,\n acsc: _acsc.acscDocs,\n acsch: _acsch.acschDocs,\n asec: _asec.asecDocs,\n asech: _asech.asechDocs,\n asin: _asin.asinDocs,\n asinh: _asinh.asinhDocs,\n atan: _atan.atanDocs,\n atanh: _atanh.atanhDocs,\n atan2: _atan2.atan2Docs,\n cos: _cos.cosDocs,\n cosh: _cosh.coshDocs,\n cot: _cot.cotDocs,\n coth: _coth.cothDocs,\n csc: _csc.cscDocs,\n csch: _csch.cschDocs,\n sec: _sec.secDocs,\n sech: _sech.sechDocs,\n sin: _sin.sinDocs,\n sinh: _sinh.sinhDocs,\n tan: _tan.tanDocs,\n tanh: _tanh.tanhDocs,\n // functions - units\n to: _to.toDocs,\n // functions - utils\n clone: _clone.cloneDocs,\n format: _format.formatDocs,\n bin: _bin.binDocs,\n oct: _oct.octDocs,\n hex: _hex.hexDocs,\n isNaN: _isNaN.isNaNDocs,\n isInteger: _isInteger.isIntegerDocs,\n isNegative: _isNegative.isNegativeDocs,\n isNumeric: _isNumeric.isNumericDocs,\n hasNumericValue: _hasNumericValue.hasNumericValueDocs,\n isPositive: _isPositive.isPositiveDocs,\n isPrime: _isPrime.isPrimeDocs,\n isZero: _isZero.isZeroDocs,\n print: _print.printDocs,\n typeOf: _typeOf.typeOfDocs,\n numeric: _numeric.numericDocs\n};\nexports.embeddedDocs = embeddedDocs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createHelp = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _customs = require(\"../../utils/customs.js\");\n\nvar _embeddedDocs = require(\"../embeddedDocs/embeddedDocs.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar name = 'help';\nvar dependencies = ['typed', 'mathWithTransform', 'Help'];\nvar createHelp = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n mathWithTransform = _ref.mathWithTransform,\n Help = _ref.Help;\n\n /**\n * Retrieve help on a function or data type.\n * Help files are retrieved from the embedded documentation in math.docs.\n *\n * Syntax:\n *\n * math.help(search)\n *\n * Examples:\n *\n * console.log(math.help('sin').toString())\n * console.log(math.help(math.add).toString())\n * console.log(math.help(math.add).toJSON())\n *\n * @param {Function | string | Object} search A function or function name\n * for which to get help\n * @return {Help} A help object\n */\n return typed(name, {\n any: function any(search) {\n var prop;\n var searchName = search;\n\n if (typeof search !== 'string') {\n for (prop in mathWithTransform) {\n // search in functions and constants\n if ((0, _object.hasOwnProperty)(mathWithTransform, prop) && search === mathWithTransform[prop]) {\n searchName = prop;\n break;\n }\n }\n /* TODO: implement help for data types\n if (!text) {\n // search data type\n for (prop in math.type) {\n if (hasOwnProperty(math, prop)) {\n if (search === math.type[prop]) {\n text = prop\n break\n }\n }\n }\n }\n */\n\n }\n\n var doc = (0, _customs.getSafeProperty)(_embeddedDocs.embeddedDocs, searchName);\n\n if (!doc) {\n var searchText = typeof searchName === 'function' ? searchName.name : searchName;\n throw new Error('No documentation found on \"' + searchText + '\"');\n }\n\n return new Help(doc);\n }\n });\n});\nexports.createHelp = createHelp;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createChain = void 0;\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar name = 'chain';\nvar dependencies = ['typed', 'Chain'];\nvar createChain = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Chain = _ref.Chain;\n\n /**\n * Wrap any value in a chain, allowing to perform chained operations on\n * the value.\n *\n * All methods available in the math.js library can be called upon the chain,\n * and then will be evaluated with the value itself as first argument.\n * The chain can be closed by executing `chain.done()`, which returns\n * the final value.\n *\n * The chain has a number of special functions:\n *\n * - `done()` Finalize the chain and return the chain's value.\n * - `valueOf()` The same as `done()`\n * - `toString()` Executes `math.format()` onto the chain's value, returning\n * a string representation of the value.\n *\n * Syntax:\n *\n * math.chain(value)\n *\n * Examples:\n *\n * math.chain(3)\n * .add(4)\n * .subtract(2)\n * .done() // 5\n *\n * math.chain( [[1, 2], [3, 4]] )\n * .subset(math.index(0, 0), 8)\n * .multiply(3)\n * .done() // [[24, 6], [9, 12]]\n *\n * @param {*} [value] A value of any type on which to start a chained operation.\n * @return {math.Chain} The created chain\n */\n return typed(name, {\n '': function _() {\n return new Chain();\n },\n any: function any(value) {\n return new Chain(value);\n }\n });\n});\nexports.createChain = createChain;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDet = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'det';\nvar dependencies = ['typed', 'matrix', 'subtract', 'multiply', 'divideScalar', 'isZero', 'unaryMinus'];\nvar createDet = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n subtract = _ref.subtract,\n multiply = _ref.multiply,\n divideScalar = _ref.divideScalar,\n isZero = _ref.isZero,\n unaryMinus = _ref.unaryMinus;\n\n /**\n * Calculate the determinant of a matrix.\n *\n * Syntax:\n *\n * math.det(x)\n *\n * Examples:\n *\n * math.det([[1, 2], [3, 4]]) // returns -2\n *\n * const A = [\n * [-2, 2, 3],\n * [-1, 1, 3],\n * [2, 0, -1]\n * ]\n * math.det(A) // returns 6\n *\n * See also:\n *\n * inv\n *\n * @param {Array | Matrix} x A matrix\n * @return {number} The determinant of `x`\n */\n return typed(name, {\n any: function any(x) {\n return (0, _object.clone)(x);\n },\n 'Array | Matrix': function det(x) {\n var size;\n\n if ((0, _is.isMatrix)(x)) {\n size = x.size();\n } else if (Array.isArray(x)) {\n x = matrix(x);\n size = x.size();\n } else {\n // a scalar\n size = [];\n }\n\n switch (size.length) {\n case 0:\n // scalar\n return (0, _object.clone)(x);\n\n case 1:\n // vector\n if (size[0] === 1) {\n return (0, _object.clone)(x.valueOf()[0]);\n } else {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n\n case 2:\n {\n // two dimensional array\n var rows = size[0];\n var cols = size[1];\n\n if (rows === cols) {\n return _det(x.clone().valueOf(), rows, cols);\n } else {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n }\n\n default:\n // multi dimensional array\n throw new RangeError('Matrix must be two dimensional ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n }\n });\n /**\n * Calculate the determinant of a matrix\n * @param {Array[]} matrix A square, two dimensional matrix\n * @param {number} rows Number of rows of the matrix (zero-based)\n * @param {number} cols Number of columns of the matrix (zero-based)\n * @returns {number} det\n * @private\n */\n\n function _det(matrix, rows, cols) {\n if (rows === 1) {\n // this is a 1 x 1 matrix\n return (0, _object.clone)(matrix[0][0]);\n } else if (rows === 2) {\n // this is a 2 x 2 matrix\n // the determinant of [a11,a12;a21,a22] is det = a11*a22-a21*a12\n return subtract(multiply(matrix[0][0], matrix[1][1]), multiply(matrix[1][0], matrix[0][1]));\n } else {\n // Bareiss algorithm\n // this algorithm have same complexity as LUP decomposition (O(n^3))\n // but it preserve precision of floating point more relative to the LUP decomposition\n var negated = false;\n var rowIndices = new Array(rows).fill(0).map(function (_, i) {\n return i;\n }); // matrix index of row i\n\n for (var k = 0; k < rows; k++) {\n var k_ = rowIndices[k];\n\n if (isZero(matrix[k_][k])) {\n var _k = void 0;\n\n for (_k = k + 1; _k < rows; _k++) {\n if (!isZero(matrix[rowIndices[_k]][k])) {\n k_ = rowIndices[_k];\n rowIndices[_k] = rowIndices[k];\n rowIndices[k] = k_;\n negated = !negated;\n break;\n }\n }\n\n if (_k === rows) return matrix[k_][k]; // some zero of the type\n }\n\n var piv = matrix[k_][k];\n var piv_ = k === 0 ? 1 : matrix[rowIndices[k - 1]][k - 1];\n\n for (var i = k + 1; i < rows; i++) {\n var i_ = rowIndices[i];\n\n for (var j = k + 1; j < rows; j++) {\n matrix[i_][j] = divideScalar(subtract(multiply(matrix[i_][j], piv), multiply(matrix[i_][k], matrix[k_][j])), piv_);\n }\n }\n }\n\n var det = matrix[rowIndices[rows - 1]][rows - 1];\n return negated ? unaryMinus(det) : det;\n }\n }\n});\nexports.createDet = createDet;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createInv = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar name = 'inv';\nvar dependencies = ['typed', 'matrix', 'divideScalar', 'addScalar', 'multiply', 'unaryMinus', 'det', 'identity', 'abs'];\nvar createInv = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n divideScalar = _ref.divideScalar,\n addScalar = _ref.addScalar,\n multiply = _ref.multiply,\n unaryMinus = _ref.unaryMinus,\n det = _ref.det,\n identity = _ref.identity,\n abs = _ref.abs;\n\n /**\n * Calculate the inverse of a square matrix.\n *\n * Syntax:\n *\n * math.inv(x)\n *\n * Examples:\n *\n * math.inv([[1, 2], [3, 4]]) // returns [[-2, 1], [1.5, -0.5]]\n * math.inv(4) // returns 0.25\n * 1 / 4 // returns 0.25\n *\n * See also:\n *\n * det, transpose\n *\n * @param {number | Complex | Array | Matrix} x Matrix to be inversed\n * @return {number | Complex | Array | Matrix} The inverse of `x`.\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(x) {\n var size = (0, _is.isMatrix)(x) ? x.size() : (0, _array.arraySize)(x);\n\n switch (size.length) {\n case 1:\n // vector\n if (size[0] === 1) {\n if ((0, _is.isMatrix)(x)) {\n return matrix([divideScalar(1, x.valueOf()[0])]);\n } else {\n return [divideScalar(1, x[0])];\n }\n } else {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n\n case 2:\n // two dimensional array\n {\n var rows = size[0];\n var cols = size[1];\n\n if (rows === cols) {\n if ((0, _is.isMatrix)(x)) {\n return matrix(_inv(x.valueOf(), rows, cols), x.storage());\n } else {\n // return an Array\n return _inv(x, rows, cols);\n }\n } else {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n }\n\n default:\n // multi dimensional array\n throw new RangeError('Matrix must be two dimensional ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n },\n any: function any(x) {\n // scalar\n return divideScalar(1, x); // FIXME: create a BigNumber one when configured for bignumbers\n }\n });\n /**\n * Calculate the inverse of a square matrix\n * @param {Array[]} mat A square matrix\n * @param {number} rows Number of rows\n * @param {number} cols Number of columns, must equal rows\n * @return {Array[]} inv Inverse matrix\n * @private\n */\n\n function _inv(mat, rows, cols) {\n var r, s, f, value, temp;\n\n if (rows === 1) {\n // this is a 1 x 1 matrix\n value = mat[0][0];\n\n if (value === 0) {\n throw Error('Cannot calculate inverse, determinant is zero');\n }\n\n return [[divideScalar(1, value)]];\n } else if (rows === 2) {\n // this is a 2 x 2 matrix\n var d = det(mat);\n\n if (d === 0) {\n throw Error('Cannot calculate inverse, determinant is zero');\n }\n\n return [[divideScalar(mat[1][1], d), divideScalar(unaryMinus(mat[0][1]), d)], [divideScalar(unaryMinus(mat[1][0]), d), divideScalar(mat[0][0], d)]];\n } else {\n // this is a matrix of 3 x 3 or larger\n // calculate inverse using gauss-jordan elimination\n // https://en.wikipedia.org/wiki/Gaussian_elimination\n // http://mathworld.wolfram.com/MatrixInverse.html\n // http://math.uww.edu/~mcfarlat/inverse.htm\n // make a copy of the matrix (only the arrays, not of the elements)\n var A = mat.concat();\n\n for (r = 0; r < rows; r++) {\n A[r] = A[r].concat();\n } // create an identity matrix which in the end will contain the\n // matrix inverse\n\n\n var B = identity(rows).valueOf(); // loop over all columns, and perform row reductions\n\n for (var c = 0; c < cols; c++) {\n // Pivoting: Swap row c with row r, where row r contains the largest element A[r][c]\n var ABig = abs(A[c][c]);\n var rBig = c;\n r = c + 1;\n\n while (r < rows) {\n if (abs(A[r][c]) > ABig) {\n ABig = abs(A[r][c]);\n rBig = r;\n }\n\n r++;\n }\n\n if (ABig === 0) {\n throw Error('Cannot calculate inverse, determinant is zero');\n }\n\n r = rBig;\n\n if (r !== c) {\n temp = A[c];\n A[c] = A[r];\n A[r] = temp;\n temp = B[c];\n B[c] = B[r];\n B[r] = temp;\n } // eliminate non-zero values on the other rows at column c\n\n\n var Ac = A[c];\n var Bc = B[c];\n\n for (r = 0; r < rows; r++) {\n var Ar = A[r];\n var Br = B[r];\n\n if (r !== c) {\n // eliminate value at column c and row r\n if (Ar[c] !== 0) {\n f = divideScalar(unaryMinus(Ar[c]), Ac[c]); // add (f * row c) to row r to eliminate the value\n // at column c\n\n for (s = c; s < cols; s++) {\n Ar[s] = addScalar(Ar[s], multiply(f, Ac[s]));\n }\n\n for (s = 0; s < cols; s++) {\n Br[s] = addScalar(Br[s], multiply(f, Bc[s]));\n }\n }\n } else {\n // normalize value at Acc to 1,\n // divide each value on row r with the value at Acc\n f = Ac[c];\n\n for (s = c; s < cols; s++) {\n Ar[s] = divideScalar(Ar[s], f);\n }\n\n for (s = 0; s < cols; s++) {\n Br[s] = divideScalar(Br[s], f);\n }\n }\n }\n }\n\n return B;\n }\n }\n});\nexports.createInv = createInv;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createPinv = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar name = 'pinv';\nvar dependencies = ['typed', 'matrix', 'inv', 'deepEqual', 'equal', 'dotDivide', 'dot', 'ctranspose', 'divideScalar', 'multiply', 'add', 'Complex'];\nvar createPinv = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n inv = _ref.inv,\n deepEqual = _ref.deepEqual,\n equal = _ref.equal,\n dotDivide = _ref.dotDivide,\n dot = _ref.dot,\n ctranspose = _ref.ctranspose,\n divideScalar = _ref.divideScalar,\n multiply = _ref.multiply,\n add = _ref.add,\n Complex = _ref.Complex;\n\n /**\n * Calculate the Moore–Penrose inverse of a matrix.\n *\n * Syntax:\n *\n * math.pinv(x)\n *\n * Examples:\n *\n * math.pinv([[1, 2], [3, 4]]) // returns [[-2, 1], [1.5, -0.5]]\n * math.pinv([[1, 0], [0, 1], [0, 1]]) // returns [[1, 0, 0], [0, 0.5, 0.5]]\n * math.pinv(4) // returns 0.25\n *\n * See also:\n *\n * inv\n *\n * @param {number | Complex | Array | Matrix} x Matrix to be inversed\n * @return {number | Complex | Array | Matrix} The inverse of `x`.\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(x) {\n var size = (0, _is.isMatrix)(x) ? x.size() : (0, _array.arraySize)(x);\n\n switch (size.length) {\n case 1:\n // vector\n if (_isZeros(x)) return ctranspose(x); // null vector\n\n if (size[0] === 1) {\n return inv(x); // invertible matrix\n } else {\n return dotDivide(ctranspose(x), dot(x, x));\n }\n\n case 2:\n // two dimensional array\n {\n if (_isZeros(x)) return ctranspose(x); // zero matrixx\n\n var rows = size[0];\n var cols = size[1];\n\n if (rows === cols) {\n try {\n return inv(x); // invertible matrix\n } catch (err) {\n if (err instanceof Error && err.message.match(/Cannot calculate inverse, determinant is zero/)) {// Expected\n } else {\n throw err;\n }\n }\n }\n\n if ((0, _is.isMatrix)(x)) {\n return matrix(_pinv(x.valueOf(), rows, cols), x.storage());\n } else {\n // return an Array\n return _pinv(x, rows, cols);\n }\n }\n\n default:\n // multi dimensional array\n throw new RangeError('Matrix must be two dimensional ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n },\n any: function any(x) {\n // scalar\n if (equal(x, 0)) return (0, _object.clone)(x); // zero\n\n return divideScalar(1, x);\n }\n });\n /**\n * Calculate the Moore–Penrose inverse of a matrix\n * @param {Array[]} mat A matrix\n * @param {number} rows Number of rows\n * @param {number} cols Number of columns\n * @return {Array[]} pinv Pseudoinverse matrix\n * @private\n */\n\n function _pinv(mat, rows, cols) {\n var _rankFact2 = _rankFact(mat, rows, cols),\n C = _rankFact2.C,\n F = _rankFact2.F; // TODO: Use SVD instead (may improve precision)\n\n\n var Cpinv = multiply(inv(multiply(ctranspose(C), C)), ctranspose(C));\n var Fpinv = multiply(ctranspose(F), inv(multiply(F, ctranspose(F))));\n return multiply(Fpinv, Cpinv);\n }\n /**\n * Calculate the reduced row echelon form of a matrix\n *\n * Modified from https://rosettacode.org/wiki/Reduced_row_echelon_form\n *\n * @param {Array[]} mat A matrix\n * @param {number} rows Number of rows\n * @param {number} cols Number of columns\n * @return {Array[]} Reduced row echelon form\n * @private\n */\n\n\n function _rref(mat, rows, cols) {\n var M = (0, _object.clone)(mat);\n var lead = 0;\n\n for (var r = 0; r < rows; r++) {\n if (cols <= lead) {\n return M;\n }\n\n var i = r;\n\n while (_isZero(M[i][lead])) {\n i++;\n\n if (rows === i) {\n i = r;\n lead++;\n\n if (cols === lead) {\n return M;\n }\n }\n }\n\n var _ref2 = [M[r], M[i]];\n M[i] = _ref2[0];\n M[r] = _ref2[1];\n var val = M[r][lead];\n\n for (var j = 0; j < cols; j++) {\n M[r][j] = dotDivide(M[r][j], val);\n }\n\n for (var _i = 0; _i < rows; _i++) {\n if (_i === r) continue;\n val = M[_i][lead];\n\n for (var _j = 0; _j < cols; _j++) {\n M[_i][_j] = add(M[_i][_j], multiply(-1, multiply(val, M[r][_j])));\n }\n }\n\n lead++;\n }\n\n return M;\n }\n /**\n * Calculate the rank factorization of a matrix\n *\n * @param {Array[]} mat A matrix (M)\n * @param {number} rows Number of rows\n * @param {number} cols Number of columns\n * @return {{C: Array, F: Array}} rank factorization where M = C F\n * @private\n */\n\n\n function _rankFact(mat, rows, cols) {\n var rref = _rref(mat, rows, cols);\n\n var C = mat.map(function (_, i) {\n return _.filter(function (_, j) {\n return j < rows && !_isZero(dot(rref[j], rref[j]));\n });\n });\n var F = rref.filter(function (_, i) {\n return !_isZero(dot(rref[i], rref[i]));\n });\n return {\n C: C,\n F: F\n };\n }\n\n function _isZero(x) {\n return equal(add(x, Complex(1, 1)), add(0, Complex(1, 1)));\n }\n\n function _isZeros(arr) {\n return deepEqual(add(arr, Complex(1, 1)), add(multiply(arr, 0), Complex(1, 1)));\n }\n});\nexports.createPinv = createPinv;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createComplexEigs = createComplexEigs;\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));\n\nvar _object = require(\"../../../utils/object.js\");\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction createComplexEigs(_ref) {\n var addScalar = _ref.addScalar,\n subtract = _ref.subtract,\n flatten = _ref.flatten,\n multiply = _ref.multiply,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n sqrt = _ref.sqrt,\n abs = _ref.abs,\n bignumber = _ref.bignumber,\n diag = _ref.diag,\n inv = _ref.inv,\n qr = _ref.qr,\n usolve = _ref.usolve,\n usolveAll = _ref.usolveAll,\n equal = _ref.equal,\n complex = _ref.complex,\n larger = _ref.larger,\n smaller = _ref.smaller,\n matrixFromColumns = _ref.matrixFromColumns,\n dot = _ref.dot;\n\n /**\n * @param {number[][]} arr the matrix to find eigenvalues of\n * @param {number} N size of the matrix\n * @param {number|BigNumber} prec precision, anything lower will be considered zero\n * @param {'number'|'BigNumber'|'Complex'} type\n * @param {boolean} findVectors should we find eigenvectors?\n *\n * @returns {{ values: number[], vectors: number[][] }}\n */\n function complexEigs(arr, N, prec, type, findVectors) {\n if (findVectors === undefined) {\n findVectors = true;\n } // TODO check if any row/col are zero except the diagonal\n // make sure corresponding rows and columns have similar magnitude\n // important because of numerical stability\n // MODIFIES arr by side effect!\n\n\n var R = balance(arr, N, prec, type, findVectors); // R is the row transformation matrix\n // arr = A' = R A R⁻¹, A is the original matrix\n // (if findVectors is false, R is undefined)\n // (And so to return to original matrix: A = R⁻¹ arr R)\n // TODO if magnitudes of elements vary over many orders,\n // move greatest elements to the top left corner\n // using similarity transformations, reduce the matrix\n // to Hessenberg form (upper triangular plus one subdiagonal row)\n // updates the transformation matrix R with new row operationsq\n // MODIFIES arr by side effect!\n\n reduceToHessenberg(arr, N, prec, type, findVectors, R); // still true that original A = R⁻¹ arr R)\n // find eigenvalues\n\n var _iterateUntilTriangul = iterateUntilTriangular(arr, N, prec, type, findVectors),\n values = _iterateUntilTriangul.values,\n C = _iterateUntilTriangul.C; // values is the list of eigenvalues, C is the column\n // transformation matrix that transforms arr, the hessenberg\n // matrix, to upper triangular\n // (So U = C⁻¹ arr C and the relationship between current arr\n // and original A is unchanged.)\n\n\n var vectors;\n\n if (findVectors) {\n vectors = findEigenvectors(arr, N, C, R, values, prec, type);\n vectors = matrixFromColumns.apply(void 0, (0, _toConsumableArray2.default)(vectors));\n }\n\n return {\n values: values,\n vectors: vectors\n };\n }\n /**\n * @param {number[][]} arr\n * @param {number} N\n * @param {number} prec\n * @param {'number'|'BigNumber'|'Complex'} type\n * @returns {number[][]}\n */\n\n\n function balance(arr, N, prec, type, findVectors) {\n var big = type === 'BigNumber';\n var cplx = type === 'Complex';\n var realzero = big ? bignumber(0) : 0;\n var one = big ? bignumber(1) : cplx ? complex(1) : 1;\n var realone = big ? bignumber(1) : 1; // base of the floating-point arithmetic\n\n var radix = big ? bignumber(10) : 2;\n var radixSq = multiplyScalar(radix, radix); // the diagonal transformation matrix R\n\n var Rdiag;\n\n if (findVectors) {\n Rdiag = Array(N).fill(one);\n } // this isn't the only time we loop thru the matrix...\n\n\n var last = false;\n\n while (!last) {\n // ...haha I'm joking! unless...\n last = true;\n\n for (var i = 0; i < N; i++) {\n // compute the taxicab norm of i-th column and row\n // TODO optimize for complex numbers\n var colNorm = realzero;\n var rowNorm = realzero;\n\n for (var j = 0; j < N; j++) {\n if (i === j) continue;\n var c = abs(arr[i][j]); // should be real\n\n colNorm = addScalar(colNorm, c);\n rowNorm = addScalar(rowNorm, c);\n }\n\n if (!equal(colNorm, 0) && !equal(rowNorm, 0)) {\n // find integer power closest to balancing the matrix\n // (we want to scale only by integer powers of radix,\n // so that we don't lose any precision due to round-off)\n var f = realone;\n var _c = colNorm;\n var rowDivRadix = divideScalar(rowNorm, radix);\n var rowMulRadix = multiplyScalar(rowNorm, radix);\n\n while (smaller(_c, rowDivRadix)) {\n _c = multiplyScalar(_c, radixSq);\n f = multiplyScalar(f, radix);\n }\n\n while (larger(_c, rowMulRadix)) {\n _c = divideScalar(_c, radixSq);\n f = divideScalar(f, radix);\n } // check whether balancing is needed\n // condition = (c + rowNorm) / f < 0.95 * (colNorm + rowNorm)\n\n\n var condition = smaller(divideScalar(addScalar(_c, rowNorm), f), multiplyScalar(addScalar(colNorm, rowNorm), 0.95)); // apply balancing similarity transformation\n\n if (condition) {\n // we should loop once again to check whether\n // another rebalancing is needed\n last = false;\n var g = divideScalar(1, f);\n\n for (var _j = 0; _j < N; _j++) {\n if (i === _j) {\n continue;\n }\n\n arr[i][_j] = multiplyScalar(arr[i][_j], f);\n arr[_j][i] = multiplyScalar(arr[_j][i], g);\n } // keep track of transformations\n\n\n if (findVectors) {\n Rdiag[i] = multiplyScalar(Rdiag[i], f);\n }\n }\n }\n }\n } // return the diagonal row transformation matrix\n\n\n return diag(Rdiag);\n }\n /**\n * @param {number[][]} arr\n * @param {number} N\n * @param {number} prec\n * @param {'number'|'BigNumber'|'Complex'} type\n * @param {boolean} findVectors\n * @param {number[][]} R the row transformation matrix that will be modified\n */\n\n\n function reduceToHessenberg(arr, N, prec, type, findVectors, R) {\n var big = type === 'BigNumber';\n var cplx = type === 'Complex';\n var zero = big ? bignumber(0) : cplx ? complex(0) : 0;\n\n if (big) {\n prec = bignumber(prec);\n }\n\n for (var i = 0; i < N - 2; i++) {\n // Find the largest subdiag element in the i-th col\n var maxIndex = 0;\n var max = zero;\n\n for (var j = i + 1; j < N; j++) {\n var el = arr[j][i];\n\n if (smaller(abs(max), abs(el))) {\n max = el;\n maxIndex = j;\n }\n } // This col is pivoted, no need to do anything\n\n\n if (smaller(abs(max), prec)) {\n continue;\n }\n\n if (maxIndex !== i + 1) {\n // Interchange maxIndex-th and (i+1)-th row\n var tmp1 = arr[maxIndex];\n arr[maxIndex] = arr[i + 1];\n arr[i + 1] = tmp1; // Interchange maxIndex-th and (i+1)-th column\n\n for (var _j2 = 0; _j2 < N; _j2++) {\n var tmp2 = arr[_j2][maxIndex];\n arr[_j2][maxIndex] = arr[_j2][i + 1];\n arr[_j2][i + 1] = tmp2;\n } // keep track of transformations\n\n\n if (findVectors) {\n var tmp3 = R[maxIndex];\n R[maxIndex] = R[i + 1];\n R[i + 1] = tmp3;\n }\n } // Reduce following rows and columns\n\n\n for (var _j3 = i + 2; _j3 < N; _j3++) {\n var n = divideScalar(arr[_j3][i], max);\n\n if (n === 0) {\n continue;\n } // from j-th row subtract n-times (i+1)th row\n\n\n for (var k = 0; k < N; k++) {\n arr[_j3][k] = subtract(arr[_j3][k], multiplyScalar(n, arr[i + 1][k]));\n } // to (i+1)th column add n-times j-th column\n\n\n for (var _k = 0; _k < N; _k++) {\n arr[_k][i + 1] = addScalar(arr[_k][i + 1], multiplyScalar(n, arr[_k][_j3]));\n } // keep track of transformations\n\n\n if (findVectors) {\n for (var _k2 = 0; _k2 < N; _k2++) {\n R[_j3][_k2] = subtract(R[_j3][_k2], multiplyScalar(n, R[i + 1][_k2]));\n }\n }\n }\n }\n\n return R;\n }\n /**\n * @returns {{values: values, C: Matrix}}\n * @see Press, Wiliams: Numerical recipes in Fortran 77\n * @see https://en.wikipedia.org/wiki/QR_algorithm\n */\n\n\n function iterateUntilTriangular(A, N, prec, type, findVectors) {\n var big = type === 'BigNumber';\n var cplx = type === 'Complex';\n var one = big ? bignumber(1) : cplx ? complex(1) : 1;\n\n if (big) {\n prec = bignumber(prec);\n } // The Francis Algorithm\n // The core idea of this algorithm is that doing successive\n // A' = Q⁺AQ transformations will eventually converge to block-\n // upper-triangular with diagonal blocks either 1x1 or 2x2.\n // The Q here is the one from the QR decomposition, A = QR.\n // Since the eigenvalues of a block-upper-triangular matrix are\n // the eigenvalues of its diagonal blocks and we know how to find\n // eigenvalues of a 2x2 matrix, we know the eigenvalues of A.\n\n\n var arr = (0, _object.clone)(A); // the list of converged eigenvalues\n\n var lambdas = []; // size of arr, which will get smaller as eigenvalues converge\n\n var n = N; // the diagonal of the block-diagonal matrix that turns\n // converged 2x2 matrices into upper triangular matrices\n\n var Sdiag = []; // N×N matrix describing the overall transformation done during the QR algorithm\n\n var Qtotal = findVectors ? diag(Array(N).fill(one)) : undefined; // n×n matrix describing the QR transformations done since last convergence\n\n var Qpartial = findVectors ? diag(Array(n).fill(one)) : undefined; // last eigenvalue converged before this many steps\n\n var lastConvergenceBefore = 0;\n\n while (lastConvergenceBefore <= 100) {\n lastConvergenceBefore += 1; // TODO if the convergence is slow, do something clever\n // Perform the factorization\n\n var k = 0; // TODO set close to an eigenvalue\n\n for (var i = 0; i < n; i++) {\n arr[i][i] = subtract(arr[i][i], k);\n } // TODO do an implicit QR transformation\n\n\n var _qr = qr(arr),\n Q = _qr.Q,\n R = _qr.R;\n\n arr = multiply(R, Q);\n\n for (var _i = 0; _i < n; _i++) {\n arr[_i][_i] = addScalar(arr[_i][_i], k);\n } // keep track of transformations\n\n\n if (findVectors) {\n Qpartial = multiply(Qpartial, Q);\n } // The rightmost diagonal element converged to an eigenvalue\n\n\n if (n === 1 || smaller(abs(arr[n - 1][n - 2]), prec)) {\n lastConvergenceBefore = 0;\n lambdas.push(arr[n - 1][n - 1]); // keep track of transformations\n\n if (findVectors) {\n Sdiag.unshift([[1]]);\n inflateMatrix(Qpartial, N);\n Qtotal = multiply(Qtotal, Qpartial);\n\n if (n > 1) {\n Qpartial = diag(Array(n - 1).fill(one));\n }\n } // reduce the matrix size\n\n\n n -= 1;\n arr.pop();\n\n for (var _i2 = 0; _i2 < n; _i2++) {\n arr[_i2].pop();\n } // The rightmost diagonal 2x2 block converged\n\n } else if (n === 2 || smaller(abs(arr[n - 2][n - 3]), prec)) {\n lastConvergenceBefore = 0;\n var ll = eigenvalues2x2(arr[n - 2][n - 2], arr[n - 2][n - 1], arr[n - 1][n - 2], arr[n - 1][n - 1]);\n lambdas.push.apply(lambdas, (0, _toConsumableArray2.default)(ll)); // keep track of transformations\n\n if (findVectors) {\n Sdiag.unshift(jordanBase2x2(arr[n - 2][n - 2], arr[n - 2][n - 1], arr[n - 1][n - 2], arr[n - 1][n - 1], ll[0], ll[1], prec, type));\n inflateMatrix(Qpartial, N);\n Qtotal = multiply(Qtotal, Qpartial);\n\n if (n > 2) {\n Qpartial = diag(Array(n - 2).fill(one));\n }\n } // reduce the matrix size\n\n\n n -= 2;\n arr.pop();\n arr.pop();\n\n for (var _i3 = 0; _i3 < n; _i3++) {\n arr[_i3].pop();\n\n arr[_i3].pop();\n }\n }\n\n if (n === 0) {\n break;\n }\n } // standard sorting\n\n\n lambdas.sort(function (a, b) {\n return +subtract(abs(a), abs(b));\n }); // the algorithm didn't converge\n\n if (lastConvergenceBefore > 100) {\n var err = Error('The eigenvalues failed to converge. Only found these eigenvalues: ' + lambdas.join(', '));\n err.values = lambdas;\n err.vectors = [];\n throw err;\n } // combine the overall QR transformation Qtotal with the subsequent\n // transformation S that turns the diagonal 2x2 blocks to upper triangular\n\n\n var C = findVectors ? multiply(Qtotal, blockDiag(Sdiag, N)) : undefined;\n return {\n values: lambdas,\n C: C\n };\n }\n /**\n * @param {Matrix} A hessenberg-form matrix\n * @param {number} N size of A\n * @param {Matrix} C column transformation matrix that turns A into upper triangular\n * @param {Matrix} R similarity that turns original matrix into A\n * @param {number[]} values array of eigenvalues of A\n * @param {'number'|'BigNumber'|'Complex'} type\n * @returns {number[][]} eigenvalues\n */\n\n\n function findEigenvectors(A, N, C, R, values, prec, type) {\n var Cinv = inv(C);\n var U = multiply(Cinv, A, C);\n var big = type === 'BigNumber';\n var cplx = type === 'Complex';\n var zero = big ? bignumber(0) : cplx ? complex(0) : 0;\n var one = big ? bignumber(1) : cplx ? complex(1) : 1; // turn values into a kind of \"multiset\"\n // this way it is easier to find eigenvectors\n\n var uniqueValues = [];\n var multiplicities = [];\n\n var _iterator = _createForOfIteratorHelper(values),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var λ = _step.value;\n\n var _i4 = indexOf(uniqueValues, λ, equal);\n\n if (_i4 === -1) {\n uniqueValues.push(λ);\n multiplicities.push(1);\n } else {\n multiplicities[_i4] += 1;\n }\n } // find eigenvectors by solving U − λE = 0\n // TODO replace with an iterative eigenvector algorithm\n // (this one might fail for imprecise eigenvalues)\n\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n var vectors = [];\n var len = uniqueValues.length;\n var b = Array(N).fill(zero);\n var E = diag(Array(N).fill(one)); // eigenvalues for which usolve failed (due to numerical error)\n\n var failedLambdas = [];\n\n var _loop = function _loop(i) {\n var λ = uniqueValues[i];\n var S = subtract(U, multiply(λ, E)); // the characteristic matrix\n\n var solutions = usolveAll(S, b);\n solutions.shift(); // ignore the null vector\n // looks like we missed something, try inverse iteration\n\n while (solutions.length < multiplicities[i]) {\n var approxVec = inverseIterate(S, N, solutions, prec, type);\n\n if (approxVec == null) {\n // no more vectors were found\n failedLambdas.push(λ);\n break;\n }\n\n solutions.push(approxVec);\n } // Transform back into original array coordinates\n\n\n var correction = multiply(inv(R), C);\n solutions = solutions.map(function (v) {\n return multiply(correction, v);\n });\n vectors.push.apply(vectors, (0, _toConsumableArray2.default)(solutions.map(function (v) {\n return flatten(v);\n })));\n };\n\n for (var i = 0; i < len; i++) {\n _loop(i);\n }\n\n if (failedLambdas.length !== 0) {\n var err = new Error('Failed to find eigenvectors for the following eigenvalues: ' + failedLambdas.join(', '));\n err.values = values;\n err.vectors = vectors;\n throw err;\n }\n\n return vectors;\n }\n /**\n * Compute the eigenvalues of an 2x2 matrix\n * @return {[number,number]}\n */\n\n\n function eigenvalues2x2(a, b, c, d) {\n // λ± = ½ trA ± ½ √( tr²A - 4 detA )\n var trA = addScalar(a, d);\n var detA = subtract(multiplyScalar(a, d), multiplyScalar(b, c));\n var x = multiplyScalar(trA, 0.5);\n var y = multiplyScalar(sqrt(subtract(multiplyScalar(trA, trA), multiplyScalar(4, detA))), 0.5);\n return [addScalar(x, y), subtract(x, y)];\n }\n /**\n * For an 2x2 matrix compute the transformation matrix S,\n * so that SAS⁻¹ is an upper triangular matrix\n * @return {[[number,number],[number,number]]}\n * @see https://math.berkeley.edu/~ogus/old/Math_54-05/webfoils/jordan.pdf\n * @see http://people.math.harvard.edu/~knill/teaching/math21b2004/exhibits/2dmatrices/index.html\n */\n\n\n function jordanBase2x2(a, b, c, d, l1, l2, prec, type) {\n var big = type === 'BigNumber';\n var cplx = type === 'Complex';\n var zero = big ? bignumber(0) : cplx ? complex(0) : 0;\n var one = big ? bignumber(1) : cplx ? complex(1) : 1; // matrix is already upper triangular\n // return an identity matrix\n\n if (smaller(abs(c), prec)) {\n return [[one, zero], [zero, one]];\n } // matrix is diagonalizable\n // return its eigenvectors as columns\n\n\n if (larger(abs(subtract(l1, l2)), prec)) {\n return [[subtract(l1, d), subtract(l2, d)], [c, c]];\n } // matrix is not diagonalizable\n // compute off-diagonal elements of N = A - λI\n // N₁₂ = 0 ⇒ S = ( N⃗₁, I⃗₁ )\n // N₁₂ ≠ 0 ⇒ S = ( N⃗₂, I⃗₂ )\n\n\n var na = subtract(a, l1);\n var nb = subtract(b, l1);\n var nc = subtract(c, l1);\n var nd = subtract(d, l1);\n\n if (smaller(abs(nb), prec)) {\n return [[na, one], [nc, zero]];\n } else {\n return [[nb, zero], [nd, one]];\n }\n }\n /**\n * Enlarge the matrix from n×n to N×N, setting the new\n * elements to 1 on diagonal and 0 elsewhere\n */\n\n\n function inflateMatrix(arr, N) {\n // add columns\n for (var i = 0; i < arr.length; i++) {\n var _arr$i;\n\n (_arr$i = arr[i]).push.apply(_arr$i, (0, _toConsumableArray2.default)(Array(N - arr[i].length).fill(0)));\n } // add rows\n\n\n for (var _i5 = arr.length; _i5 < N; _i5++) {\n arr.push(Array(N).fill(0));\n arr[_i5][_i5] = 1;\n }\n\n return arr;\n }\n /**\n * Create a block-diagonal matrix with the given square matrices on the diagonal\n * @param {Matrix[] | number[][][]} arr array of matrices to be placed on the diagonal\n * @param {number} N the size of the resulting matrix\n */\n\n\n function blockDiag(arr, N) {\n var M = [];\n\n for (var i = 0; i < N; i++) {\n M[i] = Array(N).fill(0);\n }\n\n var I = 0;\n\n var _iterator2 = _createForOfIteratorHelper(arr),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var sub = _step2.value;\n var n = sub.length;\n\n for (var _i6 = 0; _i6 < n; _i6++) {\n for (var j = 0; j < n; j++) {\n M[I + _i6][I + j] = sub[_i6][j];\n }\n }\n\n I += n;\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return M;\n }\n /**\n * Finds the index of an element in an array using a custom equality function\n * @template T\n * @param {Array} arr array in which to search\n * @param {T} el the element to find\n * @param {function(T, T): boolean} fn the equality function, first argument is an element of `arr`, the second is always `el`\n * @returns {number} the index of `el`, or -1 when it's not in `arr`\n */\n\n\n function indexOf(arr, el, fn) {\n for (var i = 0; i < arr.length; i++) {\n if (fn(arr[i], el)) {\n return i;\n }\n }\n\n return -1;\n }\n /**\n * Provided a near-singular upper-triangular matrix A and a list of vectors,\n * finds an eigenvector of A with the smallest eigenvalue, which is orthogonal\n * to each vector in the list\n * @template T\n * @param {T[][]} A near-singular square matrix\n * @param {number} N dimension\n * @param {T[][]} orthog list of vectors\n * @param {number} prec epsilon\n * @param {'number'|'BigNumber'|'Complex'} type\n * @return {T[] | null} eigenvector\n *\n * @see Numerical Recipes for Fortran 77 – 11.7 Eigenvalues or Eigenvectors by Inverse Iteration\n */\n\n\n function inverseIterate(A, N, orthog, prec, type) {\n var largeNum = type === 'BigNumber' ? bignumber(1000) : 1000;\n var b; // the vector\n // you better choose a random vector before I count to five\n\n var i = 0;\n\n while (true) {\n b = randomOrthogonalVector(N, orthog, type);\n b = usolve(A, b);\n\n if (larger(norm(b), largeNum)) {\n break;\n }\n\n if (++i >= 5) {\n return null;\n }\n } // you better converge before I count to ten\n\n\n i = 0;\n\n while (true) {\n var c = usolve(A, b);\n\n if (smaller(norm(orthogonalComplement(b, [c])), prec)) {\n break;\n }\n\n if (++i >= 10) {\n return null;\n }\n\n b = normalize(c);\n }\n\n return b;\n }\n /**\n * Generates a random unit vector of dimension N, orthogonal to each vector in the list\n * @template T\n * @param {number} N dimension\n * @param {T[][]} orthog list of vectors\n * @param {'number'|'BigNumber'|'Complex'} type\n * @returns {T[]} random vector\n */\n\n\n function randomOrthogonalVector(N, orthog, type) {\n var big = type === 'BigNumber';\n var cplx = type === 'Complex'; // generate random vector with the correct type\n\n var v = Array(N).fill(0).map(function (_) {\n return 2 * Math.random() - 1;\n });\n\n if (big) {\n v = v.map(function (n) {\n return bignumber(n);\n });\n }\n\n if (cplx) {\n v = v.map(function (n) {\n return complex(n);\n });\n } // project to orthogonal complement\n\n\n v = orthogonalComplement(v, orthog); // normalize\n\n return normalize(v, type);\n }\n /**\n * Project vector v to the orthogonal complement of an array of vectors\n */\n\n\n function orthogonalComplement(v, orthog) {\n var _iterator3 = _createForOfIteratorHelper(orthog),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var w = _step3.value;\n // v := v − (w, v)/∥w∥² w\n v = subtract(v, multiply(divideScalar(dot(w, v), dot(w, w)), w));\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n return v;\n }\n /**\n * Calculate the norm of a vector.\n * We can't use math.norm because factory can't handle circular dependency.\n * Seriously, I'm really fed up with factory.\n */\n\n\n function norm(v) {\n return abs(sqrt(dot(v, v)));\n }\n /**\n * Normalize a vector\n * @template T\n * @param {T[]} v\n * @param {'number'|'BigNumber'|'Complex'} type\n * @returns {T[]} normalized vec\n */\n\n\n function normalize(v, type) {\n var big = type === 'BigNumber';\n var cplx = type === 'Complex';\n var one = big ? bignumber(1) : cplx ? complex(1) : 1;\n return multiply(divideScalar(one, norm(v)), v);\n }\n\n return complexEigs;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRealSymmetric = createRealSymmetric;\n\nvar _object = require(\"../../../utils/object.js\");\n\nfunction createRealSymmetric(_ref) {\n var config = _ref.config,\n addScalar = _ref.addScalar,\n subtract = _ref.subtract,\n abs = _ref.abs,\n atan = _ref.atan,\n cos = _ref.cos,\n sin = _ref.sin,\n multiplyScalar = _ref.multiplyScalar,\n inv = _ref.inv,\n bignumber = _ref.bignumber,\n multiply = _ref.multiply,\n add = _ref.add;\n\n /**\n * @param {number[] | BigNumber[]} arr\n * @param {number} N\n * @param {number} prec\n * @param {'number' | 'BigNumber'} type\n */\n function main(arr, N) {\n var prec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : config.epsilon;\n var type = arguments.length > 3 ? arguments[3] : undefined;\n\n if (type === 'number') {\n return diag(arr, prec);\n }\n\n if (type === 'BigNumber') {\n return diagBig(arr, prec);\n }\n\n throw TypeError('Unsupported data type: ' + type);\n } // diagonalization implementation for number (efficient)\n\n\n function diag(x, precision) {\n var N = x.length;\n var e0 = Math.abs(precision / N);\n var psi;\n var Sij = new Array(N); // Sij is Identity Matrix\n\n for (var i = 0; i < N; i++) {\n Sij[i] = createArray(N, 0);\n Sij[i][i] = 1.0;\n } // initial error\n\n\n var Vab = getAij(x);\n\n while (Math.abs(Vab[1]) >= Math.abs(e0)) {\n var _i = Vab[0][0];\n var j = Vab[0][1];\n psi = getTheta(x[_i][_i], x[j][j], x[_i][j]);\n x = x1(x, psi, _i, j);\n Sij = Sij1(Sij, psi, _i, j);\n Vab = getAij(x);\n }\n\n var Ei = createArray(N, 0); // eigenvalues\n\n for (var _i2 = 0; _i2 < N; _i2++) {\n Ei[_i2] = x[_i2][_i2];\n }\n\n return sorting((0, _object.clone)(Ei), (0, _object.clone)(Sij));\n } // diagonalization implementation for bigNumber\n\n\n function diagBig(x, precision) {\n var N = x.length;\n var e0 = abs(precision / N);\n var psi;\n var Sij = new Array(N); // Sij is Identity Matrix\n\n for (var i = 0; i < N; i++) {\n Sij[i] = createArray(N, 0);\n Sij[i][i] = 1.0;\n } // initial error\n\n\n var Vab = getAijBig(x);\n\n while (abs(Vab[1]) >= abs(e0)) {\n var _i3 = Vab[0][0];\n var j = Vab[0][1];\n psi = getThetaBig(x[_i3][_i3], x[j][j], x[_i3][j]);\n x = x1Big(x, psi, _i3, j);\n Sij = Sij1Big(Sij, psi, _i3, j);\n Vab = getAijBig(x);\n }\n\n var Ei = createArray(N, 0); // eigenvalues\n\n for (var _i4 = 0; _i4 < N; _i4++) {\n Ei[_i4] = x[_i4][_i4];\n } // return [clone(Ei), clone(Sij)]\n\n\n return sorting((0, _object.clone)(Ei), (0, _object.clone)(Sij));\n } // get angle\n\n\n function getTheta(aii, ajj, aij) {\n var denom = ajj - aii;\n\n if (Math.abs(denom) <= config.epsilon) {\n return Math.PI / 4.0;\n } else {\n return 0.5 * Math.atan(2.0 * aij / (ajj - aii));\n }\n } // get angle\n\n\n function getThetaBig(aii, ajj, aij) {\n var denom = subtract(ajj, aii);\n\n if (abs(denom) <= config.epsilon) {\n return bignumber(-1).acos().div(4);\n } else {\n return multiplyScalar(0.5, atan(multiply(2.0, aij, inv(denom))));\n }\n } // update eigvec\n\n\n function Sij1(Sij, theta, i, j) {\n var N = Sij.length;\n var c = Math.cos(theta);\n var s = Math.sin(theta);\n var Ski = createArray(N, 0);\n var Skj = createArray(N, 0);\n\n for (var k = 0; k < N; k++) {\n Ski[k] = c * Sij[k][i] - s * Sij[k][j];\n Skj[k] = s * Sij[k][i] + c * Sij[k][j];\n }\n\n for (var _k = 0; _k < N; _k++) {\n Sij[_k][i] = Ski[_k];\n Sij[_k][j] = Skj[_k];\n }\n\n return Sij;\n } // update eigvec for overlap\n\n\n function Sij1Big(Sij, theta, i, j) {\n var N = Sij.length;\n var c = cos(theta);\n var s = sin(theta);\n var Ski = createArray(N, bignumber(0));\n var Skj = createArray(N, bignumber(0));\n\n for (var k = 0; k < N; k++) {\n Ski[k] = subtract(multiplyScalar(c, Sij[k][i]), multiplyScalar(s, Sij[k][j]));\n Skj[k] = addScalar(multiplyScalar(s, Sij[k][i]), multiplyScalar(c, Sij[k][j]));\n }\n\n for (var _k2 = 0; _k2 < N; _k2++) {\n Sij[_k2][i] = Ski[_k2];\n Sij[_k2][j] = Skj[_k2];\n }\n\n return Sij;\n } // update matrix\n\n\n function x1Big(Hij, theta, i, j) {\n var N = Hij.length;\n var c = bignumber(cos(theta));\n var s = bignumber(sin(theta));\n var c2 = multiplyScalar(c, c);\n var s2 = multiplyScalar(s, s);\n var Aki = createArray(N, bignumber(0));\n var Akj = createArray(N, bignumber(0)); // 2cs Hij\n\n var csHij = multiply(bignumber(2), c, s, Hij[i][j]); // Aii\n\n var Aii = addScalar(subtract(multiplyScalar(c2, Hij[i][i]), csHij), multiplyScalar(s2, Hij[j][j]));\n var Ajj = add(multiplyScalar(s2, Hij[i][i]), csHij, multiplyScalar(c2, Hij[j][j])); // 0 to i\n\n for (var k = 0; k < N; k++) {\n Aki[k] = subtract(multiplyScalar(c, Hij[i][k]), multiplyScalar(s, Hij[j][k]));\n Akj[k] = addScalar(multiplyScalar(s, Hij[i][k]), multiplyScalar(c, Hij[j][k]));\n } // Modify Hij\n\n\n Hij[i][i] = Aii;\n Hij[j][j] = Ajj;\n Hij[i][j] = bignumber(0);\n Hij[j][i] = bignumber(0); // 0 to i\n\n for (var _k3 = 0; _k3 < N; _k3++) {\n if (_k3 !== i && _k3 !== j) {\n Hij[i][_k3] = Aki[_k3];\n Hij[_k3][i] = Aki[_k3];\n Hij[j][_k3] = Akj[_k3];\n Hij[_k3][j] = Akj[_k3];\n }\n }\n\n return Hij;\n } // update matrix\n\n\n function x1(Hij, theta, i, j) {\n var N = Hij.length;\n var c = Math.cos(theta);\n var s = Math.sin(theta);\n var c2 = c * c;\n var s2 = s * s;\n var Aki = createArray(N, 0);\n var Akj = createArray(N, 0); // Aii\n\n var Aii = c2 * Hij[i][i] - 2 * c * s * Hij[i][j] + s2 * Hij[j][j];\n var Ajj = s2 * Hij[i][i] + 2 * c * s * Hij[i][j] + c2 * Hij[j][j]; // 0 to i\n\n for (var k = 0; k < N; k++) {\n Aki[k] = c * Hij[i][k] - s * Hij[j][k];\n Akj[k] = s * Hij[i][k] + c * Hij[j][k];\n } // Modify Hij\n\n\n Hij[i][i] = Aii;\n Hij[j][j] = Ajj;\n Hij[i][j] = 0;\n Hij[j][i] = 0; // 0 to i\n\n for (var _k4 = 0; _k4 < N; _k4++) {\n if (_k4 !== i && _k4 !== j) {\n Hij[i][_k4] = Aki[_k4];\n Hij[_k4][i] = Aki[_k4];\n Hij[j][_k4] = Akj[_k4];\n Hij[_k4][j] = Akj[_k4];\n }\n }\n\n return Hij;\n } // get max off-diagonal value from Upper Diagonal\n\n\n function getAij(Mij) {\n var N = Mij.length;\n var maxMij = 0;\n var maxIJ = [0, 1];\n\n for (var i = 0; i < N; i++) {\n for (var j = i + 1; j < N; j++) {\n if (Math.abs(maxMij) < Math.abs(Mij[i][j])) {\n maxMij = Math.abs(Mij[i][j]);\n maxIJ = [i, j];\n }\n }\n }\n\n return [maxIJ, maxMij];\n } // get max off-diagonal value from Upper Diagonal\n\n\n function getAijBig(Mij) {\n var N = Mij.length;\n var maxMij = 0;\n var maxIJ = [0, 1];\n\n for (var i = 0; i < N; i++) {\n for (var j = i + 1; j < N; j++) {\n if (abs(maxMij) < abs(Mij[i][j])) {\n maxMij = abs(Mij[i][j]);\n maxIJ = [i, j];\n }\n }\n }\n\n return [maxIJ, maxMij];\n } // sort results\n\n\n function sorting(E, S) {\n var N = E.length;\n var values = Array(N);\n var vectors = Array(N);\n\n for (var k = 0; k < N; k++) {\n vectors[k] = Array(N);\n }\n\n for (var i = 0; i < N; i++) {\n var minID = 0;\n var minE = E[0];\n\n for (var j = 0; j < E.length; j++) {\n if (abs(E[j]) < abs(minE)) {\n minID = j;\n minE = E[minID];\n }\n }\n\n values[i] = E.splice(minID, 1)[0];\n\n for (var _k5 = 0; _k5 < N; _k5++) {\n vectors[_k5][i] = S[_k5][minID];\n\n S[_k5].splice(minID, 1);\n }\n }\n\n return {\n values: values,\n vectors: vectors\n };\n }\n /**\n * Create an array of a certain size and fill all items with an initial value\n * @param {number} size\n * @param {number} value\n * @return {number[]}\n */\n\n\n function createArray(size, value) {\n // TODO: as soon as all browsers support Array.fill, use that instead (IE doesn't support it)\n var array = new Array(size);\n\n for (var i = 0; i < size; i++) {\n array[i] = value;\n }\n\n return array;\n }\n\n return main;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createEigs = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _complexEigs = require(\"./eigs/complexEigs.js\");\n\nvar _realSymetric = require(\"./eigs/realSymetric.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'eigs'; // The absolute state of math.js's dependency system:\n\nvar dependencies = ['config', 'typed', 'matrix', 'addScalar', 'equal', 'subtract', 'abs', 'atan', 'cos', 'sin', 'multiplyScalar', 'divideScalar', 'inv', 'bignumber', 'multiply', 'add', 'larger', 'column', 'flatten', 'number', 'complex', 'sqrt', 'diag', 'qr', 'usolve', 'usolveAll', 'im', 're', 'smaller', 'matrixFromColumns', 'dot'];\nvar createEigs = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n typed = _ref.typed,\n matrix = _ref.matrix,\n addScalar = _ref.addScalar,\n subtract = _ref.subtract,\n equal = _ref.equal,\n abs = _ref.abs,\n atan = _ref.atan,\n cos = _ref.cos,\n sin = _ref.sin,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n inv = _ref.inv,\n bignumber = _ref.bignumber,\n multiply = _ref.multiply,\n add = _ref.add,\n larger = _ref.larger,\n column = _ref.column,\n flatten = _ref.flatten,\n number = _ref.number,\n complex = _ref.complex,\n sqrt = _ref.sqrt,\n diag = _ref.diag,\n qr = _ref.qr,\n usolve = _ref.usolve,\n usolveAll = _ref.usolveAll,\n im = _ref.im,\n re = _ref.re,\n smaller = _ref.smaller,\n matrixFromColumns = _ref.matrixFromColumns,\n dot = _ref.dot;\n var doRealSymetric = (0, _realSymetric.createRealSymmetric)({\n config: config,\n addScalar: addScalar,\n subtract: subtract,\n column: column,\n flatten: flatten,\n equal: equal,\n abs: abs,\n atan: atan,\n cos: cos,\n sin: sin,\n multiplyScalar: multiplyScalar,\n inv: inv,\n bignumber: bignumber,\n complex: complex,\n multiply: multiply,\n add: add\n });\n var doComplexEigs = (0, _complexEigs.createComplexEigs)({\n config: config,\n addScalar: addScalar,\n subtract: subtract,\n multiply: multiply,\n multiplyScalar: multiplyScalar,\n flatten: flatten,\n divideScalar: divideScalar,\n sqrt: sqrt,\n abs: abs,\n bignumber: bignumber,\n diag: diag,\n qr: qr,\n inv: inv,\n usolve: usolve,\n usolveAll: usolveAll,\n equal: equal,\n complex: complex,\n larger: larger,\n smaller: smaller,\n matrixFromColumns: matrixFromColumns,\n dot: dot\n });\n /**\n * Compute eigenvalues and eigenvectors of a matrix. The eigenvalues are sorted by their absolute value, ascending.\n * An eigenvalue with multiplicity k will be listed k times. The eigenvectors are returned as columns of a matrix –\n * the eigenvector that belongs to the j-th eigenvalue in the list (eg. `values[j]`) is the j-th column (eg. `column(vectors, j)`).\n * If the algorithm fails to converge, it will throw an error – in that case, however, you may still find useful information\n * in `err.values` and `err.vectors`.\n *\n * Syntax:\n *\n * math.eigs(x, [prec])\n *\n * Examples:\n *\n * const { eigs, multiply, column, transpose } = math\n * const H = [[5, 2.3], [2.3, 1]]\n * const ans = eigs(H) // returns {values: [E1,E2...sorted], vectors: [v1,v2.... corresponding vectors as columns]}\n * const E = ans.values\n * const U = ans.vectors\n * multiply(H, column(U, 0)) // returns multiply(E[0], column(U, 0))\n * const UTxHxU = multiply(transpose(U), H, U) // diagonalizes H\n * E[0] == UTxHxU[0][0] // returns true\n *\n * See also:\n *\n * inv\n *\n * @param {Array | Matrix} x Matrix to be diagonalized\n *\n * @param {number | BigNumber} [prec] Precision, default value: 1e-15\n * @return {{values: Array|Matrix, vectors: Array|Matrix}} Object containing an array of eigenvalues and a matrix with eigenvectors as columns.\n *\n */\n\n return typed('eigs', {\n Array: function Array(x) {\n var mat = matrix(x);\n return computeValuesAndVectors(mat);\n },\n 'Array, number|BigNumber': function ArrayNumberBigNumber(x, prec) {\n var mat = matrix(x);\n return computeValuesAndVectors(mat, prec);\n },\n Matrix: function Matrix(mat) {\n var _computeValuesAndVect = computeValuesAndVectors(mat),\n values = _computeValuesAndVect.values,\n vectors = _computeValuesAndVect.vectors;\n\n return {\n values: matrix(values),\n vectors: matrix(vectors)\n };\n },\n 'Matrix, number|BigNumber': function MatrixNumberBigNumber(mat, prec) {\n var _computeValuesAndVect2 = computeValuesAndVectors(mat, prec),\n values = _computeValuesAndVect2.values,\n vectors = _computeValuesAndVect2.vectors;\n\n return {\n values: matrix(values),\n vectors: matrix(vectors)\n };\n }\n });\n\n function computeValuesAndVectors(mat, prec) {\n if (prec === undefined) {\n prec = config.epsilon;\n }\n\n var size = mat.size();\n\n if (size.length !== 2 || size[0] !== size[1]) {\n throw new RangeError('Matrix must be square (size: ' + (0, _string.format)(size) + ')');\n }\n\n var arr = mat.toArray();\n var N = size[0];\n\n if (isReal(arr, N, prec)) {\n coerceReal(arr, N);\n\n if (isSymmetric(arr, N, prec)) {\n var _type = coerceTypes(mat, arr, N);\n\n return doRealSymetric(arr, N, prec, _type);\n }\n }\n\n var type = coerceTypes(mat, arr, N);\n return doComplexEigs(arr, N, prec, type);\n }\n /** @return {boolean} */\n\n\n function isSymmetric(arr, N, prec) {\n for (var i = 0; i < N; i++) {\n for (var j = i; j < N; j++) {\n // TODO proper comparison of bignum and frac\n if (larger(bignumber(abs(subtract(arr[i][j], arr[j][i]))), prec)) {\n return false;\n }\n }\n }\n\n return true;\n }\n /** @return {boolean} */\n\n\n function isReal(arr, N, prec) {\n for (var i = 0; i < N; i++) {\n for (var j = 0; j < N; j++) {\n // TODO proper comparison of bignum and frac\n if (larger(bignumber(abs(im(arr[i][j]))), prec)) {\n return false;\n }\n }\n }\n\n return true;\n }\n\n function coerceReal(arr, N) {\n for (var i = 0; i < N; i++) {\n for (var j = 0; j < N; j++) {\n arr[i][j] = re(arr[i][j]);\n }\n }\n }\n /** @return {'number' | 'BigNumber' | 'Complex'} */\n\n\n function coerceTypes(mat, arr, N) {\n /** @type {string} */\n var type = mat.datatype();\n\n if (type === 'number' || type === 'BigNumber' || type === 'Complex') {\n return type;\n }\n\n var hasNumber = false;\n var hasBig = false;\n var hasComplex = false;\n\n for (var i = 0; i < N; i++) {\n for (var j = 0; j < N; j++) {\n var el = arr[i][j];\n\n if ((0, _is.isNumber)(el) || (0, _is.isFraction)(el)) {\n hasNumber = true;\n } else if ((0, _is.isBigNumber)(el)) {\n hasBig = true;\n } else if ((0, _is.isComplex)(el)) {\n hasComplex = true;\n } else {\n throw TypeError('Unsupported type in Matrix: ' + (0, _is.typeOf)(el));\n }\n }\n }\n\n if (hasBig && hasComplex) {\n console.warn('Complex BigNumbers not supported, this operation will lose precission.');\n }\n\n if (hasComplex) {\n for (var _i = 0; _i < N; _i++) {\n for (var _j = 0; _j < N; _j++) {\n arr[_i][_j] = complex(arr[_i][_j]);\n }\n }\n\n return 'Complex';\n }\n\n if (hasBig) {\n for (var _i2 = 0; _i2 < N; _i2++) {\n for (var _j2 = 0; _j2 < N; _j2++) {\n arr[_i2][_j2] = bignumber(arr[_i2][_j2]);\n }\n }\n\n return 'BigNumber';\n }\n\n if (hasNumber) {\n for (var _i3 = 0; _i3 < N; _i3++) {\n for (var _j3 = 0; _j3 < N; _j3++) {\n arr[_i3][_j3] = number(arr[_i3][_j3]);\n }\n }\n\n return 'number';\n } else {\n throw TypeError('Matrix contains unsupported types only.');\n }\n }\n});\nexports.createEigs = createEigs;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createExpm = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'expm';\nvar dependencies = ['typed', 'abs', 'add', 'identity', 'inv', 'multiply'];\nvar createExpm = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n abs = _ref.abs,\n add = _ref.add,\n identity = _ref.identity,\n inv = _ref.inv,\n multiply = _ref.multiply;\n\n /**\n * Compute the matrix exponential, expm(A) = e^A. The matrix must be square.\n * Not to be confused with exp(a), which performs element-wise\n * exponentiation.\n *\n * The exponential is calculated using the Padé approximant with scaling and\n * squaring; see \"Nineteen Dubious Ways to Compute the Exponential of a\n * Matrix,\" by Moler and Van Loan.\n *\n * Syntax:\n *\n * math.expm(x)\n *\n * Examples:\n *\n * const A = [[0,2],[0,0]]\n * math.expm(A) // returns [[1,2],[0,1]]\n *\n * See also:\n *\n * exp\n *\n * @param {Matrix} x A square Matrix\n * @return {Matrix} The exponential of x\n */\n return typed(name, {\n Matrix: function Matrix(A) {\n // Check matrix size\n var size = A.size();\n\n if (size.length !== 2 || size[0] !== size[1]) {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n\n var n = size[0]; // Desired accuracy of the approximant (The actual accuracy\n // will be affected by round-off error)\n\n var eps = 1e-15; // The Padé approximant is not so accurate when the values of A\n // are \"large\", so scale A by powers of two. Then compute the\n // exponential, and square the result repeatedly according to\n // the identity e^A = (e^(A/m))^m\n // Compute infinity-norm of A, ||A||, to see how \"big\" it is\n\n var infNorm = infinityNorm(A); // Find the optimal scaling factor and number of terms in the\n // Padé approximant to reach the desired accuracy\n\n var params = findParams(infNorm, eps);\n var q = params.q;\n var j = params.j; // The Pade approximation to e^A is:\n // Rqq(A) = Dqq(A) ^ -1 * Nqq(A)\n // where\n // Nqq(A) = sum(i=0, q, (2q-i)!p! / [ (2q)!i!(q-i)! ] A^i\n // Dqq(A) = sum(i=0, q, (2q-i)!q! / [ (2q)!i!(q-i)! ] (-A)^i\n // Scale A by 1 / 2^j\n\n var Apos = multiply(A, Math.pow(2, -j)); // The i=0 term is just the identity matrix\n\n var N = identity(n);\n var D = identity(n); // Initialization (i=0)\n\n var factor = 1; // Initialization (i=1)\n\n var AposToI = Apos; // Cloning not necessary\n\n var alternate = -1;\n\n for (var i = 1; i <= q; i++) {\n if (i > 1) {\n AposToI = multiply(AposToI, Apos);\n alternate = -alternate;\n }\n\n factor = factor * (q - i + 1) / ((2 * q - i + 1) * i);\n N = add(N, multiply(factor, AposToI));\n D = add(D, multiply(factor * alternate, AposToI));\n }\n\n var R = multiply(inv(D), N); // Square j times\n\n for (var _i = 0; _i < j; _i++) {\n R = multiply(R, R);\n }\n\n return (0, _is.isSparseMatrix)(A) ? A.createSparseMatrix(R) : R;\n }\n });\n\n function infinityNorm(A) {\n var n = A.size()[0];\n var infNorm = 0;\n\n for (var i = 0; i < n; i++) {\n var rowSum = 0;\n\n for (var j = 0; j < n; j++) {\n rowSum += abs(A.get([i, j]));\n }\n\n infNorm = Math.max(rowSum, infNorm);\n }\n\n return infNorm;\n }\n /**\n * Find the best parameters for the Pade approximant given\n * the matrix norm and desired accuracy. Returns the first acceptable\n * combination in order of increasing computational load.\n */\n\n\n function findParams(infNorm, eps) {\n var maxSearchSize = 30;\n\n for (var k = 0; k < maxSearchSize; k++) {\n for (var q = 0; q <= k; q++) {\n var j = k - q;\n\n if (errorEstimate(infNorm, q, j) < eps) {\n return {\n q: q,\n j: j\n };\n }\n }\n }\n\n throw new Error('Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)');\n }\n /**\n * Returns the estimated error of the Pade approximant for the given\n * parameters.\n */\n\n\n function errorEstimate(infNorm, q, j) {\n var qfac = 1;\n\n for (var i = 2; i <= q; i++) {\n qfac *= i;\n }\n\n var twoqfac = qfac;\n\n for (var _i2 = q + 1; _i2 <= 2 * q; _i2++) {\n twoqfac *= _i2;\n }\n\n var twoqp1fac = twoqfac * (2 * q + 1);\n return 8.0 * Math.pow(infNorm / Math.pow(2, j), 2 * q) * qfac * qfac / (twoqfac * twoqp1fac);\n }\n});\nexports.createExpm = createExpm;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSqrtm = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _string = require(\"../../utils/string.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'sqrtm';\nvar dependencies = ['typed', 'abs', 'add', 'multiply', 'sqrt', 'subtract', 'inv', 'size', 'max', 'identity'];\nvar createSqrtm = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n abs = _ref.abs,\n add = _ref.add,\n multiply = _ref.multiply,\n sqrt = _ref.sqrt,\n subtract = _ref.subtract,\n inv = _ref.inv,\n size = _ref.size,\n max = _ref.max,\n identity = _ref.identity;\n var _maxIterations = 1e3;\n var _tolerance = 1e-6;\n /**\n * Calculate the principal square root matrix using the Denman–Beavers iterative method\n *\n * https://en.wikipedia.org/wiki/Square_root_of_a_matrix#By_Denman–Beavers_iteration\n *\n * @param {Array | Matrix} A The square matrix `A`\n * @return {Array | Matrix} The principal square root of matrix `A`\n * @private\n */\n\n function _denmanBeavers(A) {\n var error;\n var iterations = 0;\n var Y = A;\n var Z = identity(size(A));\n\n do {\n var Yk = Y;\n Y = multiply(0.5, add(Yk, inv(Z)));\n Z = multiply(0.5, add(Z, inv(Yk)));\n error = max(abs(subtract(Y, Yk)));\n\n if (error > _tolerance && ++iterations > _maxIterations) {\n throw new Error('computing square root of matrix: iterative method could not converge');\n }\n } while (error > _tolerance);\n\n return Y;\n }\n /**\n * Calculate the principal square root of a square matrix.\n * The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.\n *\n * https://en.wikipedia.org/wiki/Square_root_of_a_matrix\n *\n * Syntax:\n *\n * X = math.sqrtm(A)\n *\n * Examples:\n *\n * math.sqrtm([[1, 2], [3, 4]]) // returns [[-2, 1], [1.5, -0.5]]\n *\n * See also:\n *\n * sqrt, pow\n *\n * @param {Array | Matrix} A The square matrix `A`\n * @return {Array | Matrix} The principal square root of matrix `A`\n */\n\n\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(A) {\n var size = (0, _is.isMatrix)(A) ? A.size() : (0, _array.arraySize)(A);\n\n switch (size.length) {\n case 1:\n // Single element Array | Matrix\n if (size[0] === 1) {\n return sqrt(A);\n } else {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n\n case 2:\n {\n // Two-dimensional Array | Matrix\n var rows = size[0];\n var cols = size[1];\n\n if (rows === cols) {\n return _denmanBeavers(A);\n } else {\n throw new RangeError('Matrix must be square ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n }\n\n default:\n // Multi dimensional array\n throw new RangeError('Matrix must be at most two dimensional ' + '(size: ' + (0, _string.format)(size) + ')');\n }\n }\n });\n});\nexports.createSqrtm = createSqrtm;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDivide = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _algorithm = require(\"../../type/matrix/utils/algorithm11.js\");\n\nvar _algorithm2 = require(\"../../type/matrix/utils/algorithm14.js\");\n\nvar name = 'divide';\nvar dependencies = ['typed', 'matrix', 'multiply', 'equalScalar', 'divideScalar', 'inv'];\nvar createDivide = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n multiply = _ref.multiply,\n equalScalar = _ref.equalScalar,\n divideScalar = _ref.divideScalar,\n inv = _ref.inv;\n var algorithm11 = (0, _algorithm.createAlgorithm11)({\n typed: typed,\n equalScalar: equalScalar\n });\n var algorithm14 = (0, _algorithm2.createAlgorithm14)({\n typed: typed\n });\n /**\n * Divide two values, `x / y`.\n * To divide matrices, `x` is multiplied with the inverse of `y`: `x * inv(y)`.\n *\n * Syntax:\n *\n * math.divide(x, y)\n *\n * Examples:\n *\n * math.divide(2, 3) // returns number 0.6666666666666666\n *\n * const a = math.complex(5, 14)\n * const b = math.complex(4, 1)\n * math.divide(a, b) // returns Complex 2 + 3i\n *\n * const c = [[7, -6], [13, -4]]\n * const d = [[1, 2], [4, 3]]\n * math.divide(c, d) // returns Array [[-9, 4], [-11, 6]]\n *\n * const e = math.unit('18 km')\n * math.divide(e, 4.5) // returns Unit 4 km\n *\n * See also:\n *\n * multiply\n *\n * @param {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} x Numerator\n * @param {number | BigNumber | Fraction | Complex | Array | Matrix} y Denominator\n * @return {number | BigNumber | Fraction | Complex | Unit | Array | Matrix} Quotient, `x / y`\n */\n\n return typed('divide', (0, _object.extend)({\n // we extend the signatures of divideScalar with signatures dealing with matrices\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(x, y) {\n // TODO: implement matrix right division using pseudo inverse\n // https://www.mathworks.nl/help/matlab/ref/mrdivide.html\n // https://www.gnu.org/software/octave/doc/interpreter/Arithmetic-Ops.html\n // https://stackoverflow.com/questions/12263932/how-does-gnu-octave-matrix-division-work-getting-unexpected-behaviour\n return multiply(x, inv(y));\n },\n 'DenseMatrix, any': function DenseMatrixAny(x, y) {\n return algorithm14(x, y, divideScalar, false);\n },\n 'SparseMatrix, any': function SparseMatrixAny(x, y) {\n return algorithm11(x, y, divideScalar, false);\n },\n 'Array, any': function ArrayAny(x, y) {\n // use matrix implementation\n return algorithm14(matrix(x), y, divideScalar, false).valueOf();\n },\n 'any, Array | Matrix': function anyArrayMatrix(x, y) {\n return multiply(x, inv(y));\n }\n }, divideScalar.signatures));\n});\nexports.createDivide = createDivide;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDistance = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'distance';\nvar dependencies = ['typed', 'addScalar', 'subtract', 'divideScalar', 'multiplyScalar', 'unaryMinus', 'sqrt', 'abs'];\nvar createDistance = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n addScalar = _ref.addScalar,\n subtract = _ref.subtract,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n unaryMinus = _ref.unaryMinus,\n sqrt = _ref.sqrt,\n abs = _ref.abs;\n\n /**\n * Calculates:\n * The eucledian distance between two points in N-dimensional spaces.\n * Distance between point and a line in 2 and 3 dimensional spaces.\n * Pairwise distance between a set of 2D or 3D points\n * NOTE:\n * When substituting coefficients of a line(a, b and c), use ax + by + c = 0 instead of ax + by = c\n * For parametric equation of a 3D line, x0, y0, z0, a, b, c are from: (x−x0, y−y0, z−z0) = t(a, b, c)\n *\n * Syntax:\n * math.distance([x1, y1], [x2, y2])\n *- math.distance({pointOneX: 4, pointOneY: 5}, {pointTwoX: 2, pointTwoY: 7})\n * math.distance([x1, y1, z1], [x2, y2, z2])\n * math.distance({pointOneX: 4, pointOneY: 5, pointOneZ: 8}, {pointTwoX: 2, pointTwoY: 7, pointTwoZ: 9})\n * math.distance([x1, y1, ... , N1], [x2, y2, ... , N2])\n * math.distance([[A], [B], [C]...])\n * math.distance([x1, y1], [LinePtX1, LinePtY1], [LinePtX2, LinePtY2])\n * math.distance({pointX: 1, pointY: 4}, {lineOnePtX: 6, lineOnePtY: 3}, {lineTwoPtX: 2, lineTwoPtY: 8})\n * math.distance([x1, y1, z1], [LinePtX1, LinePtY1, LinePtZ1], [LinePtX2, LinePtY2, LinePtZ2])\n * math.distance({pointX: 1, pointY: 4, pointZ: 7}, {lineOnePtX: 6, lineOnePtY: 3, lineOnePtZ: 4}, {lineTwoPtX: 2, lineTwoPtY: 8, lineTwoPtZ: 5})\n * math.distance([x1, y1], [xCoeffLine, yCoeffLine, constant])\n * math.distance({pointX: 10, pointY: 10}, {xCoeffLine: 8, yCoeffLine: 1, constant: 3})\n * math.distance([x1, y1, z1], [x0, y0, z0, a-tCoeff, b-tCoeff, c-tCoeff]) point and parametric equation of 3D line\n * math.distance([x, y, z], [x0, y0, z0, a, b, c])\n * math.distance({pointX: 2, pointY: 5, pointZ: 9}, {x0: 4, y0: 6, z0: 3, a: 4, b: 2, c: 0})\n *\n * Examples:\n * math.distance([0,0], [4,4]) // Returns 5.6569\n * math.distance(\n * {pointOneX: 0, pointOneY: 0},\n * {pointTwoX: 10, pointTwoY: 10}) // Returns 14.142135623730951\n * math.distance([1, 0, 1], [4, -2, 2]) // Returns 3.74166\n * math.distance(\n * {pointOneX: 4, pointOneY: 5, pointOneZ: 8},\n * {pointTwoX: 2, pointTwoY: 7, pointTwoZ: 9}) // Returns 3\n * math.distance([1, 0, 1, 0], [0, -1, 0, -1]) // Returns 2\n * math.distance([[1, 2], [1, 2], [1, 3]]) // Returns [0, 1, 1]\n * math.distance([[1,2,4], [1,2,6], [8,1,3]]) // Returns [2, 7.14142842854285, 7.681145747868608]\n * math.distance([10, 10], [8, 1, 3]) // Returns 11.535230316796387\n * math.distance([10, 10], [2, 3], [-8, 0]) // Returns 8.759953130362847\n * math.distance(\n * {pointX: 1, pointY: 4},\n * {lineOnePtX: 6, lineOnePtY: 3},\n * {lineTwoPtX: 2, lineTwoPtY: 8}) // Returns 2.720549372624744\n * math.distance([2, 3, 1], [1, 1, 2, 5, 0, 1]) // Returns 2.3204774044612857\n * math.distance(\n * {pointX: 2, pointY: 3, pointZ: 1},\n * {x0: 1, y0: 1, z0: 2, a: 5, b: 0, c: 1} // Returns 2.3204774044612857\n *\n * @param {Array | Matrix | Object} x Co-ordinates of first point\n * @param {Array | Matrix | Object} y Co-ordinates of second point\n * @return {Number | BigNumber} Returns the distance from two/three points\n */\n return typed(name, {\n 'Array, Array, Array': function ArrayArrayArray(x, y, z) {\n // Point to Line 2D (x=Point, y=LinePoint1, z=LinePoint2)\n if (x.length === 2 && y.length === 2 && z.length === 2) {\n if (!_2d(x)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for first argument');\n }\n\n if (!_2d(y)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for second argument');\n }\n\n if (!_2d(z)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for third argument');\n }\n\n var m = divideScalar(subtract(z[1], z[0]), subtract(y[1], y[0]));\n var xCoeff = multiplyScalar(multiplyScalar(m, m), y[0]);\n var yCoeff = unaryMinus(multiplyScalar(m, y[0]));\n var constant = x[1];\n return _distancePointLine2D(x[0], x[1], xCoeff, yCoeff, constant);\n } else {\n throw new TypeError('Invalid Arguments: Try again');\n }\n },\n 'Object, Object, Object': function ObjectObjectObject(x, y, z) {\n if (Object.keys(x).length === 2 && Object.keys(y).length === 2 && Object.keys(z).length === 2) {\n if (!_2d(x)) {\n throw new TypeError('Values of pointX and pointY should be numbers or BigNumbers');\n }\n\n if (!_2d(y)) {\n throw new TypeError('Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers');\n }\n\n if (!_2d(z)) {\n throw new TypeError('Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers');\n }\n\n if ('pointX' in x && 'pointY' in x && 'lineOnePtX' in y && 'lineOnePtY' in y && 'lineTwoPtX' in z && 'lineTwoPtY' in z) {\n var m = divideScalar(subtract(z.lineTwoPtY, z.lineTwoPtX), subtract(y.lineOnePtY, y.lineOnePtX));\n var xCoeff = multiplyScalar(multiplyScalar(m, m), y.lineOnePtX);\n var yCoeff = unaryMinus(multiplyScalar(m, y.lineOnePtX));\n var constant = x.pointX;\n return _distancePointLine2D(x.pointX, x.pointY, xCoeff, yCoeff, constant);\n } else {\n throw new TypeError('Key names do not match');\n }\n } else {\n throw new TypeError('Invalid Arguments: Try again');\n }\n },\n 'Array, Array': function ArrayArray(x, y) {\n // Point to Line 2D (x=[pointX, pointY], y=[x-coeff, y-coeff, const])\n if (x.length === 2 && y.length === 3) {\n if (!_2d(x)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for first argument');\n }\n\n if (!_3d(y)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for second argument');\n }\n\n return _distancePointLine2D(x[0], x[1], y[0], y[1], y[2]);\n } else if (x.length === 3 && y.length === 6) {\n // Point to Line 3D\n if (!_3d(x)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for first argument');\n }\n\n if (!_parametricLine(y)) {\n throw new TypeError('Array with 6 numbers or BigNumbers expected for second argument');\n }\n\n return _distancePointLine3D(x[0], x[1], x[2], y[0], y[1], y[2], y[3], y[4], y[5]);\n } else if (x.length === y.length && x.length > 0) {\n // Point to Point N-dimensions\n if (!_containsOnlyNumbers(x)) {\n throw new TypeError('All values of an array should be numbers or BigNumbers');\n }\n\n if (!_containsOnlyNumbers(y)) {\n throw new TypeError('All values of an array should be numbers or BigNumbers');\n }\n\n return _euclideanDistance(x, y);\n } else {\n throw new TypeError('Invalid Arguments: Try again');\n }\n },\n 'Object, Object': function ObjectObject(x, y) {\n if (Object.keys(x).length === 2 && Object.keys(y).length === 3) {\n if (!_2d(x)) {\n throw new TypeError('Values of pointX and pointY should be numbers or BigNumbers');\n }\n\n if (!_3d(y)) {\n throw new TypeError('Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers');\n }\n\n if ('pointX' in x && 'pointY' in x && 'xCoeffLine' in y && 'yCoeffLine' in y && 'constant' in y) {\n return _distancePointLine2D(x.pointX, x.pointY, y.xCoeffLine, y.yCoeffLine, y.constant);\n } else {\n throw new TypeError('Key names do not match');\n }\n } else if (Object.keys(x).length === 3 && Object.keys(y).length === 6) {\n // Point to Line 3D\n if (!_3d(x)) {\n throw new TypeError('Values of pointX, pointY and pointZ should be numbers or BigNumbers');\n }\n\n if (!_parametricLine(y)) {\n throw new TypeError('Values of x0, y0, z0, a, b and c should be numbers or BigNumbers');\n }\n\n if ('pointX' in x && 'pointY' in x && 'x0' in y && 'y0' in y && 'z0' in y && 'a' in y && 'b' in y && 'c' in y) {\n return _distancePointLine3D(x.pointX, x.pointY, x.pointZ, y.x0, y.y0, y.z0, y.a, y.b, y.c);\n } else {\n throw new TypeError('Key names do not match');\n }\n } else if (Object.keys(x).length === 2 && Object.keys(y).length === 2) {\n // Point to Point 2D\n if (!_2d(x)) {\n throw new TypeError('Values of pointOneX and pointOneY should be numbers or BigNumbers');\n }\n\n if (!_2d(y)) {\n throw new TypeError('Values of pointTwoX and pointTwoY should be numbers or BigNumbers');\n }\n\n if ('pointOneX' in x && 'pointOneY' in x && 'pointTwoX' in y && 'pointTwoY' in y) {\n return _euclideanDistance([x.pointOneX, x.pointOneY], [y.pointTwoX, y.pointTwoY]);\n } else {\n throw new TypeError('Key names do not match');\n }\n } else if (Object.keys(x).length === 3 && Object.keys(y).length === 3) {\n // Point to Point 3D\n if (!_3d(x)) {\n throw new TypeError('Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers');\n }\n\n if (!_3d(y)) {\n throw new TypeError('Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers');\n }\n\n if ('pointOneX' in x && 'pointOneY' in x && 'pointOneZ' in x && 'pointTwoX' in y && 'pointTwoY' in y && 'pointTwoZ' in y) {\n return _euclideanDistance([x.pointOneX, x.pointOneY, x.pointOneZ], [y.pointTwoX, y.pointTwoY, y.pointTwoZ]);\n } else {\n throw new TypeError('Key names do not match');\n }\n } else {\n throw new TypeError('Invalid Arguments: Try again');\n }\n },\n Array: function Array(arr) {\n if (!_pairwise(arr)) {\n throw new TypeError('Incorrect array format entered for pairwise distance calculation');\n }\n\n return _distancePairwise(arr);\n }\n });\n\n function _isNumber(a) {\n // distance supports numbers and bignumbers\n return typeof a === 'number' || (0, _is.isBigNumber)(a);\n }\n\n function _2d(a) {\n // checks if the number of arguments are correct in count and are valid (should be numbers)\n if (a.constructor !== Array) {\n a = _objectToArray(a);\n }\n\n return _isNumber(a[0]) && _isNumber(a[1]);\n }\n\n function _3d(a) {\n // checks if the number of arguments are correct in count and are valid (should be numbers)\n if (a.constructor !== Array) {\n a = _objectToArray(a);\n }\n\n return _isNumber(a[0]) && _isNumber(a[1]) && _isNumber(a[2]);\n }\n\n function _containsOnlyNumbers(a) {\n // checks if the number of arguments are correct in count and are valid (should be numbers)\n if (!Array.isArray(a)) {\n a = _objectToArray(a);\n }\n\n return a.every(_isNumber);\n }\n\n function _parametricLine(a) {\n if (a.constructor !== Array) {\n a = _objectToArray(a);\n }\n\n return _isNumber(a[0]) && _isNumber(a[1]) && _isNumber(a[2]) && _isNumber(a[3]) && _isNumber(a[4]) && _isNumber(a[5]);\n }\n\n function _objectToArray(o) {\n var keys = Object.keys(o);\n var a = [];\n\n for (var i = 0; i < keys.length; i++) {\n a.push(o[keys[i]]);\n }\n\n return a;\n }\n\n function _pairwise(a) {\n // checks for valid arguments passed to _distancePairwise(Array)\n if (a[0].length === 2 && _isNumber(a[0][0]) && _isNumber(a[0][1])) {\n if (a.some(function (aI) {\n return aI.length !== 2 || !_isNumber(aI[0]) || !_isNumber(aI[1]);\n })) {\n return false;\n }\n } else if (a[0].length === 3 && _isNumber(a[0][0]) && _isNumber(a[0][1]) && _isNumber(a[0][2])) {\n if (a.some(function (aI) {\n return aI.length !== 3 || !_isNumber(aI[0]) || !_isNumber(aI[1]) || !_isNumber(aI[2]);\n })) {\n return false;\n }\n } else {\n return false;\n }\n\n return true;\n }\n\n function _distancePointLine2D(x, y, a, b, c) {\n var num = abs(addScalar(addScalar(multiplyScalar(a, x), multiplyScalar(b, y)), c));\n var den = sqrt(addScalar(multiplyScalar(a, a), multiplyScalar(b, b)));\n return divideScalar(num, den);\n }\n\n function _distancePointLine3D(x, y, z, x0, y0, z0, a, b, c) {\n var num = [subtract(multiplyScalar(subtract(y0, y), c), multiplyScalar(subtract(z0, z), b)), subtract(multiplyScalar(subtract(z0, z), a), multiplyScalar(subtract(x0, x), c)), subtract(multiplyScalar(subtract(x0, x), b), multiplyScalar(subtract(y0, y), a))];\n num = sqrt(addScalar(addScalar(multiplyScalar(num[0], num[0]), multiplyScalar(num[1], num[1])), multiplyScalar(num[2], num[2])));\n var den = sqrt(addScalar(addScalar(multiplyScalar(a, a), multiplyScalar(b, b)), multiplyScalar(c, c)));\n return divideScalar(num, den);\n }\n\n function _euclideanDistance(x, y) {\n var vectorSize = x.length;\n var result = 0;\n var diff = 0;\n\n for (var i = 0; i < vectorSize; i++) {\n diff = subtract(x[i], y[i]);\n result = addScalar(multiplyScalar(diff, diff), result);\n }\n\n return sqrt(result);\n }\n\n function _distancePairwise(a) {\n var result = [];\n var pointA = [];\n var pointB = [];\n\n for (var i = 0; i < a.length - 1; i++) {\n for (var j = i + 1; j < a.length; j++) {\n if (a[0].length === 2) {\n pointA = [a[i][0], a[i][1]];\n pointB = [a[j][0], a[j][1]];\n } else if (a[0].length === 3) {\n pointA = [a[i][0], a[i][1], a[i][2]];\n pointB = [a[j][0], a[j][1], a[j][2]];\n }\n\n result.push(_euclideanDistance(pointA, pointB));\n }\n }\n\n return result;\n }\n});\nexports.createDistance = createDistance;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIntersect = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'intersect';\nvar dependencies = ['typed', 'config', 'abs', 'add', 'addScalar', 'matrix', 'multiply', 'multiplyScalar', 'divideScalar', 'subtract', 'smaller', 'equalScalar', 'flatten', 'isZero', 'isNumeric'];\nvar createIntersect = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n abs = _ref.abs,\n add = _ref.add,\n addScalar = _ref.addScalar,\n matrix = _ref.matrix,\n multiply = _ref.multiply,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n subtract = _ref.subtract,\n smaller = _ref.smaller,\n equalScalar = _ref.equalScalar,\n flatten = _ref.flatten,\n isZero = _ref.isZero,\n isNumeric = _ref.isNumeric;\n\n /**\n * Calculates the point of intersection of two lines in two or three dimensions\n * and of a line and a plane in three dimensions. The inputs are in the form of\n * arrays or 1 dimensional matrices. The line intersection functions return null\n * if the lines do not meet.\n *\n * Note: Fill the plane coefficients as `x + y + z = c` and not as `x + y + z + c = 0`.\n *\n * Syntax:\n *\n * math.intersect(endPoint1Line1, endPoint2Line1, endPoint1Line2, endPoint2Line2)\n * math.intersect(endPoint1, endPoint2, planeCoefficients)\n *\n * Examples:\n *\n * math.intersect([0, 0], [10, 10], [10, 0], [0, 10]) // Returns [5, 5]\n * math.intersect([0, 0, 0], [10, 10, 0], [10, 0, 0], [0, 10, 0]) // Returns [5, 5, 0]\n * math.intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6]) // Returns [7, -4, 3]\n *\n * @param {Array | Matrix} w Co-ordinates of first end-point of first line\n * @param {Array | Matrix} x Co-ordinates of second end-point of first line\n * @param {Array | Matrix} y Co-ordinates of first end-point of second line\n * OR Co-efficients of the plane's equation\n * @param {Array | Matrix} z Co-ordinates of second end-point of second line\n * OR undefined if the calculation is for line and plane\n * @return {Array} Returns the point of intersection of lines/lines-planes\n */\n return typed('intersect', {\n 'Array, Array, Array': _AAA,\n 'Array, Array, Array, Array': _AAAA,\n 'Matrix, Matrix, Matrix': function MatrixMatrixMatrix(x, y, plane) {\n var arr = _AAA(x.valueOf(), y.valueOf(), plane.valueOf());\n\n return arr === null ? null : matrix(arr);\n },\n 'Matrix, Matrix, Matrix, Matrix': function MatrixMatrixMatrixMatrix(w, x, y, z) {\n // TODO: output matrix type should match input matrix type\n var arr = _AAAA(w.valueOf(), x.valueOf(), y.valueOf(), z.valueOf());\n\n return arr === null ? null : matrix(arr);\n }\n });\n\n function _AAA(x, y, plane) {\n x = _coerceArr(x);\n y = _coerceArr(y);\n plane = _coerceArr(plane);\n\n if (!_3d(x)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for first argument');\n }\n\n if (!_3d(y)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for second argument');\n }\n\n if (!_4d(plane)) {\n throw new TypeError('Array with 4 numbers expected as third argument');\n }\n\n return _intersectLinePlane(x[0], x[1], x[2], y[0], y[1], y[2], plane[0], plane[1], plane[2], plane[3]);\n }\n\n function _AAAA(w, x, y, z) {\n w = _coerceArr(w);\n x = _coerceArr(x);\n y = _coerceArr(y);\n z = _coerceArr(z);\n\n if (w.length === 2) {\n if (!_2d(w)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for first argument');\n }\n\n if (!_2d(x)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for second argument');\n }\n\n if (!_2d(y)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for third argument');\n }\n\n if (!_2d(z)) {\n throw new TypeError('Array with 2 numbers or BigNumbers expected for fourth argument');\n }\n\n return _intersect2d(w, x, y, z);\n } else if (w.length === 3) {\n if (!_3d(w)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for first argument');\n }\n\n if (!_3d(x)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for second argument');\n }\n\n if (!_3d(y)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for third argument');\n }\n\n if (!_3d(z)) {\n throw new TypeError('Array with 3 numbers or BigNumbers expected for fourth argument');\n }\n\n return _intersect3d(w[0], w[1], w[2], x[0], x[1], x[2], y[0], y[1], y[2], z[0], z[1], z[2]);\n } else {\n throw new TypeError('Arrays with two or thee dimensional points expected');\n }\n }\n /** Coerce row and column 2-dim arrays to 1-dim array */\n\n\n function _coerceArr(arr) {\n // row matrix\n if (arr.length === 1) return arr[0]; // column matrix\n\n if (arr.length > 1 && Array.isArray(arr[0])) {\n if (arr.every(function (el) {\n return Array.isArray(el) && el.length === 1;\n })) return flatten(arr);\n }\n\n return arr;\n }\n\n function _2d(x) {\n return x.length === 2 && isNumeric(x[0]) && isNumeric(x[1]);\n }\n\n function _3d(x) {\n return x.length === 3 && isNumeric(x[0]) && isNumeric(x[1]) && isNumeric(x[2]);\n }\n\n function _4d(x) {\n return x.length === 4 && isNumeric(x[0]) && isNumeric(x[1]) && isNumeric(x[2]) && isNumeric(x[3]);\n }\n\n function _intersect2d(p1a, p1b, p2a, p2b) {\n var o1 = p1a;\n var o2 = p2a;\n var d1 = subtract(o1, p1b);\n var d2 = subtract(o2, p2b);\n var det = subtract(multiplyScalar(d1[0], d2[1]), multiplyScalar(d2[0], d1[1]));\n if (isZero(det)) return null;\n\n if (smaller(abs(det), config.epsilon)) {\n return null;\n }\n\n var d20o11 = multiplyScalar(d2[0], o1[1]);\n var d21o10 = multiplyScalar(d2[1], o1[0]);\n var d20o21 = multiplyScalar(d2[0], o2[1]);\n var d21o20 = multiplyScalar(d2[1], o2[0]);\n var t = divideScalar(addScalar(subtract(subtract(d20o11, d21o10), d20o21), d21o20), det);\n return add(multiply(d1, t), o1);\n }\n\n function _intersect3dHelper(a, b, c, d, e, f, g, h, i, j, k, l) {\n // (a - b)*(c - d) + (e - f)*(g - h) + (i - j)*(k - l)\n var add1 = multiplyScalar(subtract(a, b), subtract(c, d));\n var add2 = multiplyScalar(subtract(e, f), subtract(g, h));\n var add3 = multiplyScalar(subtract(i, j), subtract(k, l));\n return addScalar(addScalar(add1, add2), add3);\n }\n\n function _intersect3d(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4) {\n var d1343 = _intersect3dHelper(x1, x3, x4, x3, y1, y3, y4, y3, z1, z3, z4, z3);\n\n var d4321 = _intersect3dHelper(x4, x3, x2, x1, y4, y3, y2, y1, z4, z3, z2, z1);\n\n var d1321 = _intersect3dHelper(x1, x3, x2, x1, y1, y3, y2, y1, z1, z3, z2, z1);\n\n var d4343 = _intersect3dHelper(x4, x3, x4, x3, y4, y3, y4, y3, z4, z3, z4, z3);\n\n var d2121 = _intersect3dHelper(x2, x1, x2, x1, y2, y1, y2, y1, z2, z1, z2, z1);\n\n var numerator = subtract(multiplyScalar(d1343, d4321), multiplyScalar(d1321, d4343));\n var denominator = subtract(multiplyScalar(d2121, d4343), multiplyScalar(d4321, d4321));\n if (isZero(denominator)) return null;\n var ta = divideScalar(numerator, denominator);\n var tb = divideScalar(addScalar(d1343, multiplyScalar(ta, d4321)), d4343);\n var pax = addScalar(x1, multiplyScalar(ta, subtract(x2, x1)));\n var pay = addScalar(y1, multiplyScalar(ta, subtract(y2, y1)));\n var paz = addScalar(z1, multiplyScalar(ta, subtract(z2, z1)));\n var pbx = addScalar(x3, multiplyScalar(tb, subtract(x4, x3)));\n var pby = addScalar(y3, multiplyScalar(tb, subtract(y4, y3)));\n var pbz = addScalar(z3, multiplyScalar(tb, subtract(z4, z3)));\n\n if (equalScalar(pax, pbx) && equalScalar(pay, pby) && equalScalar(paz, pbz)) {\n return [pax, pay, paz];\n } else {\n return null;\n }\n }\n\n function _intersectLinePlane(x1, y1, z1, x2, y2, z2, x, y, z, c) {\n var x1x = multiplyScalar(x1, x);\n var x2x = multiplyScalar(x2, x);\n var y1y = multiplyScalar(y1, y);\n var y2y = multiplyScalar(y2, y);\n var z1z = multiplyScalar(z1, z);\n var z2z = multiplyScalar(z2, z);\n var numerator = subtract(subtract(subtract(c, x1x), y1y), z1z);\n var denominator = subtract(subtract(subtract(addScalar(addScalar(x2x, y2y), z2z), x1x), y1y), z1z);\n var t = divideScalar(numerator, denominator);\n var px = addScalar(x1, multiplyScalar(t, subtract(x2, x1)));\n var py = addScalar(y1, multiplyScalar(t, subtract(y2, y1)));\n var pz = addScalar(z1, multiplyScalar(t, subtract(z2, z1)));\n return [px, py, pz]; // TODO: Add cases when line is parallel to the plane:\n // (a) no intersection,\n // (b) line contained in plane\n }\n});\nexports.createIntersect = createIntersect;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSum = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'sum';\nvar dependencies = ['typed', 'config', 'add', 'numeric'];\nvar createSum = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n add = _ref.add,\n numeric = _ref.numeric;\n\n /**\n * Compute the sum of a matrix or a list with values.\n * In case of a (multi dimensional) array or matrix, the sum of all\n * elements will be calculated.\n *\n * Syntax:\n *\n * math.sum(a, b, c, ...)\n * math.sum(A)\n *\n * Examples:\n *\n * math.sum(2, 1, 4, 3) // returns 10\n * math.sum([2, 1, 4, 3]) // returns 10\n * math.sum([[2, 5], [4, 3], [1, 7]]) // returns 22\n *\n * See also:\n *\n * mean, median, min, max, prod, std, variance, cumsum\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The sum of all values\n */\n return typed(name, {\n // sum([a, b, c, d, ...])\n 'Array | Matrix': _sum,\n // sum([a, b, c, d, ...], dim)\n 'Array | Matrix, number | BigNumber': _nsumDim,\n // sum(a, b, c, d, ...)\n '...': function _(args) {\n if ((0, _collection.containsCollections)(args)) {\n throw new TypeError('Scalar values expected in function sum');\n }\n\n return _sum(args);\n }\n });\n /**\n * Recursively calculate the sum of an n-dimensional array\n * @param {Array | Matrix} array\n * @return {number} sum\n * @private\n */\n\n function _sum(array) {\n var sum;\n (0, _collection.deepForEach)(array, function (value) {\n try {\n sum = sum === undefined ? value : add(sum, value);\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'sum', value);\n }\n }); // make sure returning numeric value: parse a string into a numeric value\n\n if (sum === undefined) {\n sum = numeric(0, config.number);\n }\n\n if (typeof sum === 'string') {\n sum = numeric(sum, config.number);\n }\n\n return sum;\n }\n\n function _nsumDim(array, dim) {\n try {\n var sum = (0, _collection.reduce)(array, dim, add);\n return sum;\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'sum');\n }\n }\n});\nexports.createSum = createSum;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCumSum = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _switch2 = require(\"../../utils/switch.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _IndexError = require(\"../../error/IndexError.js\");\n\nvar name = 'cumsum';\nvar dependencies = ['typed', 'add', 'unaryPlus'];\nvar createCumSum = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n unaryPlus = _ref.unaryPlus;\n\n /**\n * Compute the cumulative sum of a matrix or a list with values.\n * In case of a (multi dimensional) array or matrix, the cumulative sums\n * along a specified dimension (defaulting to the first) will be calculated.\n *\n * Syntax:\n *\n * math.cumsum(a, b, c, ...)\n * math.cumsum(A)\n *\n * Examples:\n *\n * math.cumsum(2, 1, 4, 3) // returns [2, 3, 7, 10]\n * math.cumsum([2, 1, 4, 3]) // returns [2, 3, 7, 10]\n * math.cumsum([[1, 2], [3, 4]]) // returns [[1, 2], [4, 6]]\n * math.cumsum([[1, 2], [3, 4]], 0) // returns [[1, 2], [4, 6]]\n * math.cumsum([[1, 2], [3, 4]], 1) // returns [[1, 3], [3, 7]]\n * math.cumsum([[2, 5], [4, 3], [1, 7]]) // returns [[2, 5], [6, 8], [7, 15]]\n *\n * See also:\n *\n * mean, median, min, max, prod, std, variance, sum\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The cumulative sum of all values\n */\n return typed(name, {\n // sum([a, b, c, d, ...])\n Array: _cumsum,\n Matrix: function Matrix(matrix) {\n return matrix.create(_cumsum(matrix.valueOf()));\n },\n // sum([a, b, c, d, ...], dim)\n 'Array, number | BigNumber': _ncumSumDim,\n 'Matrix, number | BigNumber': function MatrixNumberBigNumber(matrix, dim) {\n return matrix.create(_ncumSumDim(matrix.valueOf(), dim));\n },\n // cumsum(a, b, c, d, ...)\n '...': function _(args) {\n if ((0, _collection.containsCollections)(args)) {\n throw new TypeError('All values expected to be scalar in function cumsum');\n }\n\n return _cumsum(args);\n }\n });\n /**\n * Recursively calculate the cumulative sum of an n-dimensional array\n * @param {Array} array\n * @return {number} cumsum\n * @private\n */\n\n function _cumsum(array) {\n try {\n return _cumsummap(array);\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, name);\n }\n }\n\n function _cumsummap(array) {\n if (array.length === 0) {\n return [];\n }\n\n var sums = [unaryPlus(array[0])]; // unaryPlus converts to number if need be\n\n for (var i = 1; i < array.length; ++i) {\n // Must use add below and not addScalar for the case of summing a\n // 2+-dimensional array along the 0th dimension (the row vectors,\n // or higher-d analogues, are literally added to each other).\n sums.push(add(sums[i - 1], array[i]));\n }\n\n return sums;\n }\n\n function _ncumSumDim(array, dim) {\n var size = (0, _array.arraySize)(array);\n\n if (dim < 0 || dim >= size.length) {\n // TODO: would be more clear when throwing a DimensionError here\n throw new _IndexError.IndexError(dim, size.length);\n }\n\n try {\n return _cumsumDimensional(array, dim);\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, name);\n }\n }\n /* Possible TODO: Refactor _reduce in collection.js to be able to work here as well */\n\n\n function _cumsumDimensional(mat, dim) {\n var i, ret, tran;\n\n if (dim <= 0) {\n var initialValue = mat[0][0];\n\n if (!Array.isArray(initialValue)) {\n return _cumsummap(mat);\n } else {\n tran = (0, _switch2._switch)(mat);\n ret = [];\n\n for (i = 0; i < tran.length; i++) {\n ret[i] = _cumsumDimensional(tran[i], dim - 1);\n }\n\n return ret;\n }\n } else {\n ret = [];\n\n for (i = 0; i < mat.length; i++) {\n ret[i] = _cumsumDimensional(mat[i], dim - 1);\n }\n\n return ret;\n }\n }\n});\nexports.createCumSum = createCumSum;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMean = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'mean';\nvar dependencies = ['typed', 'add', 'divide'];\nvar createMean = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n divide = _ref.divide;\n\n /**\n * Compute the mean value of matrix or a list with values.\n * In case of a multi dimensional array, the mean of the flattened array\n * will be calculated. When `dim` is provided, the maximum over the selected\n * dimension will be calculated. Parameter `dim` is zero-based.\n *\n * Syntax:\n *\n * math.mean(a, b, c, ...)\n * math.mean(A)\n * math.mean(A, dim)\n *\n * Examples:\n *\n * math.mean(2, 1, 4, 3) // returns 2.5\n * math.mean([1, 2.7, 3.2, 4]) // returns 2.725\n *\n * math.mean([[2, 5], [6, 3], [1, 7]], 0) // returns [3, 5]\n * math.mean([[2, 5], [6, 3], [1, 7]], 1) // returns [3.5, 4.5, 4]\n *\n * See also:\n *\n * median, min, max, sum, prod, std, variance\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The mean of all values\n */\n return typed(name, {\n // mean([a, b, c, d, ...])\n 'Array | Matrix': _mean,\n // mean([a, b, c, d, ...], dim)\n 'Array | Matrix, number | BigNumber': _nmeanDim,\n // mean(a, b, c, d, ...)\n '...': function _(args) {\n if ((0, _collection.containsCollections)(args)) {\n throw new TypeError('Scalar values expected in function mean');\n }\n\n return _mean(args);\n }\n });\n /**\n * Calculate the mean value in an n-dimensional array, returning a\n * n-1 dimensional array\n * @param {Array} array\n * @param {number} dim\n * @return {number} mean\n * @private\n */\n\n function _nmeanDim(array, dim) {\n try {\n var sum = (0, _collection.reduce)(array, dim, add);\n var s = Array.isArray(array) ? (0, _array.arraySize)(array) : array.size();\n return divide(sum, s[dim]);\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'mean');\n }\n }\n /**\n * Recursively calculate the mean value in an n-dimensional array\n * @param {Array} array\n * @return {number} mean\n * @private\n */\n\n\n function _mean(array) {\n var sum;\n var num = 0;\n (0, _collection.deepForEach)(array, function (value) {\n try {\n sum = sum === undefined ? value : add(sum, value);\n num++;\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'mean', value);\n }\n });\n\n if (num === 0) {\n throw new Error('Cannot calculate the mean of an empty array');\n }\n\n return divide(sum, num);\n }\n});\nexports.createMean = createMean;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMedian = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'median';\nvar dependencies = ['typed', 'add', 'divide', 'compare', 'partitionSelect'];\nvar createMedian = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n divide = _ref.divide,\n compare = _ref.compare,\n partitionSelect = _ref.partitionSelect;\n\n /**\n * Recursively calculate the median of an n-dimensional array\n * @param {Array} array\n * @return {Number} median\n * @private\n */\n function _median(array) {\n try {\n array = (0, _array.flatten)(array.valueOf());\n var num = array.length;\n\n if (num === 0) {\n throw new Error('Cannot calculate median of an empty array');\n }\n\n if (num % 2 === 0) {\n // even: return the average of the two middle values\n var mid = num / 2 - 1;\n var right = partitionSelect(array, mid + 1); // array now partitioned at mid + 1, take max of left part\n\n var left = array[mid];\n\n for (var i = 0; i < mid; ++i) {\n if (compare(array[i], left) > 0) {\n left = array[i];\n }\n }\n\n return middle2(left, right);\n } else {\n // odd: return the middle value\n var m = partitionSelect(array, (num - 1) / 2);\n return middle(m);\n }\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'median');\n }\n } // helper function to type check the middle value of the array\n\n\n var middle = typed({\n 'number | BigNumber | Complex | Unit': function numberBigNumberComplexUnit(value) {\n return value;\n }\n }); // helper function to type check the two middle value of the array\n\n var middle2 = typed({\n 'number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit': function numberBigNumberComplexUnitNumberBigNumberComplexUnit(left, right) {\n return divide(add(left, right), 2);\n }\n });\n /**\n * Compute the median of a matrix or a list with values. The values are\n * sorted and the middle value is returned. In case of an even number of\n * values, the average of the two middle values is returned.\n * Supported types of values are: Number, BigNumber, Unit\n *\n * In case of a (multi dimensional) array or matrix, the median of all\n * elements will be calculated.\n *\n * Syntax:\n *\n * math.median(a, b, c, ...)\n * math.median(A)\n *\n * Examples:\n *\n * math.median(5, 2, 7) // returns 5\n * math.median([3, -1, 5, 7]) // returns 4\n *\n * See also:\n *\n * mean, min, max, sum, prod, std, variance, quantileSeq\n *\n * @param {... *} args A single matrix or or multiple scalar values\n * @return {*} The median\n */\n\n return typed(name, {\n // median([a, b, c, d, ...])\n 'Array | Matrix': _median,\n // median([a, b, c, d, ...], dim)\n 'Array | Matrix, number | BigNumber': function ArrayMatrixNumberBigNumber(array, dim) {\n // TODO: implement median(A, dim)\n throw new Error('median(A, dim) is not yet supported'); // return reduce(arguments[0], arguments[1], ...)\n },\n // median(a, b, c, d, ...)\n '...': function _(args) {\n if ((0, _collection.containsCollections)(args)) {\n throw new TypeError('Scalar values expected in function median');\n }\n\n return _median(args);\n }\n });\n});\nexports.createMedian = createMedian;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMad = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar name = 'mad';\nvar dependencies = ['typed', 'abs', 'map', 'median', 'subtract'];\nvar createMad = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n abs = _ref.abs,\n map = _ref.map,\n median = _ref.median,\n subtract = _ref.subtract;\n\n /**\n * Compute the median absolute deviation of a matrix or a list with values.\n * The median absolute deviation is defined as the median of the absolute\n * deviations from the median.\n *\n * Syntax:\n *\n * math.mad(a, b, c, ...)\n * math.mad(A)\n *\n * Examples:\n *\n * math.mad(10, 20, 30) // returns 10\n * math.mad([1, 2, 3]) // returns 1\n * math.mad([[1, 2, 3], [4, 5, 6]]) // returns 1.5\n *\n * See also:\n *\n * median, mean, std, abs\n *\n * @param {Array | Matrix} array\n * A single matrix or multiple scalar values.\n * @return {*} The median absolute deviation.\n */\n return typed(name, {\n // mad([a, b, c, d, ...])\n 'Array | Matrix': _mad,\n // mad(a, b, c, d, ...)\n '...': function _(args) {\n return _mad(args);\n }\n });\n\n function _mad(array) {\n array = (0, _array.flatten)(array.valueOf());\n\n if (array.length === 0) {\n throw new Error('Cannot calculate median absolute deviation (mad) of an empty array');\n }\n\n try {\n var med = median(array);\n return median(map(array, function (value) {\n return abs(subtract(value, med));\n }));\n } catch (err) {\n if (err instanceof TypeError && err.message.indexOf('median') !== -1) {\n throw new TypeError(err.message.replace('median', 'mad'));\n } else {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'mad');\n }\n }\n }\n});\nexports.createMad = createMad;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createVariance = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _improveErrorMessage = require(\"./utils/improveErrorMessage.js\");\n\nvar DEFAULT_NORMALIZATION = 'unbiased';\nvar name = 'variance';\nvar dependencies = ['typed', 'add', 'subtract', 'multiply', 'divide', 'apply', 'isNaN'];\nvar createVariance = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n subtract = _ref.subtract,\n multiply = _ref.multiply,\n divide = _ref.divide,\n apply = _ref.apply,\n isNaN = _ref.isNaN;\n\n /**\n * Compute the variance of a matrix or a list with values.\n * In case of a (multi dimensional) array or matrix, the variance over all\n * elements will be calculated.\n *\n * Additionally, it is possible to compute the variance along the rows\n * or columns of a matrix by specifying the dimension as the second argument.\n *\n * Optionally, the type of normalization can be specified as the final\n * parameter. The parameter `normalization` can be one of the following values:\n *\n * - 'unbiased' (default) The sum of squared errors is divided by (n - 1)\n * - 'uncorrected' The sum of squared errors is divided by n\n * - 'biased' The sum of squared errors is divided by (n + 1)\n *\n *\n * Note that older browser may not like the variable name `var`. In that\n * case, the function can be called as `math['var'](...)` instead of\n * `math.var(...)`.\n *\n * Syntax:\n *\n * math.variance(a, b, c, ...)\n * math.variance(A)\n * math.variance(A, normalization)\n * math.variance(A, dimension)\n * math.variance(A, dimension, normalization)\n *\n * Examples:\n *\n * math.variance(2, 4, 6) // returns 4\n * math.variance([2, 4, 6, 8]) // returns 6.666666666666667\n * math.variance([2, 4, 6, 8], 'uncorrected') // returns 5\n * math.variance([2, 4, 6, 8], 'biased') // returns 4\n *\n * math.variance([[1, 2, 3], [4, 5, 6]]) // returns 3.5\n * math.variance([[1, 2, 3], [4, 6, 8]], 0) // returns [4.5, 8, 12.5]\n * math.variance([[1, 2, 3], [4, 6, 8]], 1) // returns [1, 4]\n * math.variance([[1, 2, 3], [4, 6, 8]], 1, 'biased') // returns [0.5, 2]\n *\n * See also:\n *\n * mean, median, max, min, prod, std, sum\n *\n * @param {Array | Matrix} array\n * A single matrix or or multiple scalar values\n * @param {string} [normalization='unbiased']\n * Determines how to normalize the variance.\n * Choose 'unbiased' (default), 'uncorrected', or 'biased'.\n * @param dimension {number | BigNumber}\n * Determines the axis to compute the variance for a matrix\n * @return {*} The variance\n */\n return typed(name, {\n // variance([a, b, c, d, ...])\n 'Array | Matrix': function ArrayMatrix(array) {\n return _var(array, DEFAULT_NORMALIZATION);\n },\n // variance([a, b, c, d, ...], normalization)\n 'Array | Matrix, string': _var,\n // variance([a, b, c, c, ...], dim)\n 'Array | Matrix, number | BigNumber': function ArrayMatrixNumberBigNumber(array, dim) {\n return _varDim(array, dim, DEFAULT_NORMALIZATION);\n },\n // variance([a, b, c, c, ...], dim, normalization)\n 'Array | Matrix, number | BigNumber, string': _varDim,\n // variance(a, b, c, d, ...)\n '...': function _(args) {\n return _var(args, DEFAULT_NORMALIZATION);\n }\n });\n /**\n * Recursively calculate the variance of an n-dimensional array\n * @param {Array} array\n * @param {string} normalization\n * Determines how to normalize the variance:\n * - 'unbiased' The sum of squared errors is divided by (n - 1)\n * - 'uncorrected' The sum of squared errors is divided by n\n * - 'biased' The sum of squared errors is divided by (n + 1)\n * @return {number | BigNumber} variance\n * @private\n */\n\n function _var(array, normalization) {\n var sum;\n var num = 0;\n\n if (array.length === 0) {\n throw new SyntaxError('Function variance requires one or more parameters (0 provided)');\n } // calculate the mean and number of elements\n\n\n (0, _collection.deepForEach)(array, function (value) {\n try {\n sum = sum === undefined ? value : add(sum, value);\n num++;\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'variance', value);\n }\n });\n if (num === 0) throw new Error('Cannot calculate variance of an empty array');\n var mean = divide(sum, num); // calculate the variance\n\n sum = undefined;\n (0, _collection.deepForEach)(array, function (value) {\n var diff = subtract(value, mean);\n sum = sum === undefined ? multiply(diff, diff) : add(sum, multiply(diff, diff));\n });\n\n if (isNaN(sum)) {\n return sum;\n }\n\n switch (normalization) {\n case 'uncorrected':\n return divide(sum, num);\n\n case 'biased':\n return divide(sum, num + 1);\n\n case 'unbiased':\n {\n var zero = (0, _is.isBigNumber)(sum) ? sum.mul(0) : 0;\n return num === 1 ? zero : divide(sum, num - 1);\n }\n\n default:\n throw new Error('Unknown normalization \"' + normalization + '\". ' + 'Choose \"unbiased\" (default), \"uncorrected\", or \"biased\".');\n }\n }\n\n function _varDim(array, dim, normalization) {\n try {\n if (array.length === 0) {\n throw new SyntaxError('Function variance requires one or more parameters (0 provided)');\n }\n\n return apply(array, dim, function (x) {\n return _var(x, normalization);\n });\n } catch (err) {\n throw (0, _improveErrorMessage.improveErrorMessage)(err, 'variance');\n }\n }\n});\nexports.createVariance = createVariance;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createQuantileSeq = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'quantileSeq';\nvar dependencies = ['typed', 'add', 'multiply', 'partitionSelect', 'compare'];\nvar createQuantileSeq = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n multiply = _ref.multiply,\n partitionSelect = _ref.partitionSelect,\n compare = _ref.compare;\n\n /**\n * Compute the prob order quantile of a matrix or a list with values.\n * The sequence is sorted and the middle value is returned.\n * Supported types of sequence values are: Number, BigNumber, Unit\n * Supported types of probability are: Number, BigNumber\n *\n * In case of a (multi dimensional) array or matrix, the prob order quantile\n * of all elements will be calculated.\n *\n * Syntax:\n *\n * math.quantileSeq(A, prob[, sorted])\n * math.quantileSeq(A, [prob1, prob2, ...][, sorted])\n * math.quantileSeq(A, N[, sorted])\n *\n * Examples:\n *\n * math.quantileSeq([3, -1, 5, 7], 0.5) // returns 4\n * math.quantileSeq([3, -1, 5, 7], [1/3, 2/3]) // returns [3, 5]\n * math.quantileSeq([3, -1, 5, 7], 2) // returns [3, 5]\n * math.quantileSeq([-1, 3, 5, 7], 0.5, true) // returns 4\n *\n * See also:\n *\n * median, mean, min, max, sum, prod, std, variance\n *\n * @param {Array, Matrix} data A single matrix or Array\n * @param {Number, BigNumber, Array} probOrN prob is the order of the quantile, while N is\n * the amount of evenly distributed steps of\n * probabilities; only one of these options can\n * be provided\n * @param {Boolean} sorted=false is data sorted in ascending order\n * @return {Number, BigNumber, Unit, Array} Quantile(s)\n */\n function quantileSeq(data, probOrN, sorted) {\n var probArr, dataArr, one;\n\n if (arguments.length < 2 || arguments.length > 3) {\n throw new SyntaxError('Function quantileSeq requires two or three parameters');\n }\n\n if ((0, _is.isCollection)(data)) {\n sorted = sorted || false;\n\n if (typeof sorted === 'boolean') {\n dataArr = data.valueOf();\n\n if ((0, _is.isNumber)(probOrN)) {\n if (probOrN < 0) {\n throw new Error('N/prob must be non-negative');\n }\n\n if (probOrN <= 1) {\n // quantileSeq([a, b, c, d, ...], prob[,sorted])\n return _quantileSeq(dataArr, probOrN, sorted);\n }\n\n if (probOrN > 1) {\n // quantileSeq([a, b, c, d, ...], N[,sorted])\n if (!(0, _number.isInteger)(probOrN)) {\n throw new Error('N must be a positive integer');\n }\n\n var nPlusOne = probOrN + 1;\n probArr = new Array(probOrN);\n\n for (var i = 0; i < probOrN;) {\n probArr[i] = _quantileSeq(dataArr, ++i / nPlusOne, sorted);\n }\n\n return probArr;\n }\n }\n\n if ((0, _is.isBigNumber)(probOrN)) {\n var BigNumber = probOrN.constructor;\n\n if (probOrN.isNegative()) {\n throw new Error('N/prob must be non-negative');\n }\n\n one = new BigNumber(1);\n\n if (probOrN.lte(one)) {\n // quantileSeq([a, b, c, d, ...], prob[,sorted])\n return new BigNumber(_quantileSeq(dataArr, probOrN, sorted));\n }\n\n if (probOrN.gt(one)) {\n // quantileSeq([a, b, c, d, ...], N[,sorted])\n if (!probOrN.isInteger()) {\n throw new Error('N must be a positive integer');\n } // largest possible Array length is 2^32-1\n // 2^32 < 10^15, thus safe conversion guaranteed\n\n\n var intN = probOrN.toNumber();\n\n if (intN > 4294967295) {\n throw new Error('N must be less than or equal to 2^32-1, as that is the maximum length of an Array');\n }\n\n var _nPlusOne = new BigNumber(intN + 1);\n\n probArr = new Array(intN);\n\n for (var _i = 0; _i < intN;) {\n probArr[_i] = new BigNumber(_quantileSeq(dataArr, new BigNumber(++_i).div(_nPlusOne), sorted));\n }\n\n return probArr;\n }\n }\n\n if (Array.isArray(probOrN)) {\n // quantileSeq([a, b, c, d, ...], [prob1, prob2, ...][,sorted])\n probArr = new Array(probOrN.length);\n\n for (var _i2 = 0; _i2 < probArr.length; ++_i2) {\n var currProb = probOrN[_i2];\n\n if ((0, _is.isNumber)(currProb)) {\n if (currProb < 0 || currProb > 1) {\n throw new Error('Probability must be between 0 and 1, inclusive');\n }\n } else if ((0, _is.isBigNumber)(currProb)) {\n one = new currProb.constructor(1);\n\n if (currProb.isNegative() || currProb.gt(one)) {\n throw new Error('Probability must be between 0 and 1, inclusive');\n }\n } else {\n throw new TypeError('Unexpected type of argument in function quantileSeq'); // FIXME: becomes redundant when converted to typed-function\n }\n\n probArr[_i2] = _quantileSeq(dataArr, currProb, sorted);\n }\n\n return probArr;\n }\n\n throw new TypeError('Unexpected type of argument in function quantileSeq'); // FIXME: becomes redundant when converted to typed-function\n }\n\n throw new TypeError('Unexpected type of argument in function quantileSeq'); // FIXME: becomes redundant when converted to typed-function\n }\n\n throw new TypeError('Unexpected type of argument in function quantileSeq'); // FIXME: becomes redundant when converted to typed-function\n }\n /**\n * Calculate the prob order quantile of an n-dimensional array.\n *\n * @param {Array} array\n * @param {Number, BigNumber} prob\n * @param {Boolean} sorted\n * @return {Number, BigNumber, Unit} prob order quantile\n * @private\n */\n\n\n function _quantileSeq(array, prob, sorted) {\n var flat = (0, _array.flatten)(array);\n var len = flat.length;\n\n if (len === 0) {\n throw new Error('Cannot calculate quantile of an empty sequence');\n }\n\n if ((0, _is.isNumber)(prob)) {\n var _index = prob * (len - 1);\n\n var _fracPart = _index % 1;\n\n if (_fracPart === 0) {\n var value = sorted ? flat[_index] : partitionSelect(flat, _index);\n validate(value);\n return value;\n }\n\n var _integerPart = Math.floor(_index);\n\n var _left;\n\n var _right;\n\n if (sorted) {\n _left = flat[_integerPart];\n _right = flat[_integerPart + 1];\n } else {\n _right = partitionSelect(flat, _integerPart + 1); // max of partition is kth largest\n\n _left = flat[_integerPart];\n\n for (var i = 0; i < _integerPart; ++i) {\n if (compare(flat[i], _left) > 0) {\n _left = flat[i];\n }\n }\n }\n\n validate(_left);\n validate(_right); // Q(prob) = (1-f)*A[floor(index)] + f*A[floor(index)+1]\n\n return add(multiply(_left, 1 - _fracPart), multiply(_right, _fracPart));\n } // If prob is a BigNumber\n\n\n var index = prob.times(len - 1);\n\n if (index.isInteger()) {\n index = index.toNumber();\n\n var _value = sorted ? flat[index] : partitionSelect(flat, index);\n\n validate(_value);\n return _value;\n }\n\n var integerPart = index.floor();\n var fracPart = index.minus(integerPart);\n var integerPartNumber = integerPart.toNumber();\n var left;\n var right;\n\n if (sorted) {\n left = flat[integerPartNumber];\n right = flat[integerPartNumber + 1];\n } else {\n right = partitionSelect(flat, integerPartNumber + 1); // max of partition is kth largest\n\n left = flat[integerPartNumber];\n\n for (var _i3 = 0; _i3 < integerPartNumber; ++_i3) {\n if (compare(flat[_i3], left) > 0) {\n left = flat[_i3];\n }\n }\n }\n\n validate(left);\n validate(right); // Q(prob) = (1-f)*A[floor(index)] + f*A[floor(index)+1]\n\n var one = new fracPart.constructor(1);\n return add(multiply(left, one.minus(fracPart)), multiply(right, fracPart));\n }\n /**\n * Check if array value types are valid, throw error otherwise.\n * @param {number | BigNumber | Unit} x\n * @param {number | BigNumber | Unit} x\n * @private\n */\n\n\n var validate = typed({\n 'number | BigNumber | Unit': function numberBigNumberUnit(x) {\n return x;\n }\n });\n return quantileSeq;\n});\nexports.createQuantileSeq = createQuantileSeq;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createStd = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'std';\nvar dependencies = ['typed', 'sqrt', 'variance'];\nvar createStd = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n sqrt = _ref.sqrt,\n variance = _ref.variance;\n\n /**\n * Compute the standard deviation of a matrix or a list with values.\n * The standard deviations is defined as the square root of the variance:\n * `std(A) = sqrt(variance(A))`.\n * In case of a (multi dimensional) array or matrix, the standard deviation\n * over all elements will be calculated by default, unless an axis is specified\n * in which case the standard deviation will be computed along that axis.\n *\n * Additionally, it is possible to compute the standard deviation along the rows\n * or columns of a matrix by specifying the dimension as the second argument.\n *\n * Optionally, the type of normalization can be specified as the final\n * parameter. The parameter `normalization` can be one of the following values:\n *\n * - 'unbiased' (default) The sum of squared errors is divided by (n - 1)\n * - 'uncorrected' The sum of squared errors is divided by n\n * - 'biased' The sum of squared errors is divided by (n + 1)\n *\n *\n * Syntax:\n *\n * math.std(a, b, c, ...)\n * math.std(A)\n * math.std(A, normalization)\n * math.std(A, dimension)\n * math.std(A, dimension, normalization)\n *\n * Examples:\n *\n * math.std(2, 4, 6) // returns 2\n * math.std([2, 4, 6, 8]) // returns 2.581988897471611\n * math.std([2, 4, 6, 8], 'uncorrected') // returns 2.23606797749979\n * math.std([2, 4, 6, 8], 'biased') // returns 2\n *\n * math.std([[1, 2, 3], [4, 5, 6]]) // returns 1.8708286933869707\n * math.std([[1, 2, 3], [4, 6, 8]], 0) // returns [2.1213203435596424, 2.8284271247461903, 3.5355339059327378]\n * math.std([[1, 2, 3], [4, 6, 8]], 1) // returns [1, 2]\n * math.std([[1, 2, 3], [4, 6, 8]], 1, 'biased') // returns [0.7071067811865476, 1.4142135623730951]\n *\n * See also:\n *\n * mean, median, max, min, prod, sum, variance\n *\n * @param {Array | Matrix} array\n * A single matrix or or multiple scalar values\n * @param {string} [normalization='unbiased']\n * Determines how to normalize the variance.\n * Choose 'unbiased' (default), 'uncorrected', or 'biased'.\n * @param dimension {number | BigNumber}\n * Determines the axis to compute the standard deviation for a matrix\n * @return {*} The standard deviation\n */\n return typed(name, {\n // std([a, b, c, d, ...])\n 'Array | Matrix': _std,\n // std([a, b, c, d, ...], normalization)\n 'Array | Matrix, string': _std,\n // std([a, b, c, c, ...], dim)\n 'Array | Matrix, number | BigNumber': _std,\n // std([a, b, c, c, ...], dim, normalization)\n 'Array | Matrix, number | BigNumber, string': _std,\n // std(a, b, c, d, ...)\n '...': function _(args) {\n return _std(args);\n }\n });\n\n function _std(array, normalization) {\n if (array.length === 0) {\n throw new SyntaxError('Function std requires one or more parameters (0 provided)');\n }\n\n try {\n return sqrt(variance.apply(null, arguments));\n } catch (err) {\n if (err instanceof TypeError && err.message.indexOf(' variance') !== -1) {\n throw new TypeError(err.message.replace(' variance', ' std'));\n } else {\n throw err;\n }\n }\n }\n});\nexports.createStd = createStd;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCombinations = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _combinations = require(\"../../plain/number/combinations.js\");\n\nvar name = 'combinations';\nvar dependencies = ['typed'];\nvar createCombinations = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the number of ways of picking `k` unordered outcomes from `n`\n * possibilities.\n *\n * Combinations only takes integer arguments.\n * The following condition must be enforced: k <= n.\n *\n * Syntax:\n *\n * math.combinations(n, k)\n *\n * Examples:\n *\n * math.combinations(7, 5) // returns 21\n *\n * See also:\n *\n * combinationsWithRep, permutations, factorial\n *\n * @param {number | BigNumber} n Total number of objects in the set\n * @param {number | BigNumber} k Number of objects in the subset\n * @return {number | BigNumber} Number of possible combinations.\n */\n return typed(name, {\n 'number, number': _combinations.combinationsNumber,\n 'BigNumber, BigNumber': function BigNumberBigNumber(n, k) {\n var BigNumber = n.constructor;\n var result, i;\n var nMinusk = n.minus(k);\n var one = new BigNumber(1);\n\n if (!isPositiveInteger(n) || !isPositiveInteger(k)) {\n throw new TypeError('Positive integer value expected in function combinations');\n }\n\n if (k.gt(n)) {\n throw new TypeError('k must be less than n in function combinations');\n }\n\n result = one;\n\n if (k.lt(nMinusk)) {\n for (i = one; i.lte(nMinusk); i = i.plus(one)) {\n result = result.times(k.plus(i)).dividedBy(i);\n }\n } else {\n for (i = one; i.lte(k); i = i.plus(one)) {\n result = result.times(nMinusk.plus(i)).dividedBy(i);\n }\n }\n\n return result;\n } // TODO: implement support for collection in combinations\n\n });\n});\n/**\n * Test whether BigNumber n is a positive integer\n * @param {BigNumber} n\n * @returns {boolean} isPositiveInteger\n */\n\nexports.createCombinations = createCombinations;\n\nfunction isPositiveInteger(n) {\n return n.isInteger() && n.gte(0);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCombinationsWithRep = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _product = require(\"../../utils/product.js\");\n\nvar name = 'combinationsWithRep';\nvar dependencies = ['typed'];\nvar createCombinationsWithRep = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Compute the number of ways of picking `k` unordered outcomes from `n`\n * possibilities, allowing individual outcomes to be repeated more than once.\n *\n * CombinationsWithRep only takes integer arguments.\n * The following condition must be enforced: k <= n + k -1.\n *\n * Syntax:\n *\n * math.combinationsWithRep(n, k)\n *\n * Examples:\n *\n * math.combinationsWithRep(7, 5) // returns 462\n *\n * See also:\n *\n * combinations, permutations, factorial\n *\n * @param {number | BigNumber} n Total number of objects in the set\n * @param {number | BigNumber} k Number of objects in the subset\n * @return {number | BigNumber} Number of possible combinations with replacement.\n */\n return typed(name, {\n 'number, number': function numberNumber(n, k) {\n if (!(0, _number.isInteger)(n) || n < 0) {\n throw new TypeError('Positive integer value expected in function combinationsWithRep');\n }\n\n if (!(0, _number.isInteger)(k) || k < 0) {\n throw new TypeError('Positive integer value expected in function combinationsWithRep');\n }\n\n if (n < 1) {\n throw new TypeError('k must be less than or equal to n + k - 1');\n }\n\n if (k < n - 1) {\n var _prodrange = (0, _product.product)(n, n + k - 1);\n\n return _prodrange / (0, _product.product)(1, k);\n }\n\n var prodrange = (0, _product.product)(k + 1, n + k - 1);\n return prodrange / (0, _product.product)(1, n - 1);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(n, k) {\n var BigNumber = n.constructor;\n var result, i;\n var one = new BigNumber(1);\n var nMinusOne = n.minus(one);\n\n if (!isPositiveInteger(n) || !isPositiveInteger(k)) {\n throw new TypeError('Positive integer value expected in function combinationsWithRep');\n }\n\n if (n.lt(one)) {\n throw new TypeError('k must be less than or equal to n + k - 1 in function combinationsWithRep');\n }\n\n result = one;\n\n if (k.lt(nMinusOne)) {\n for (i = one; i.lte(nMinusOne); i = i.plus(one)) {\n result = result.times(k.plus(i)).dividedBy(i);\n }\n } else {\n for (i = one; i.lte(k); i = i.plus(one)) {\n result = result.times(nMinusOne.plus(i)).dividedBy(i);\n }\n }\n\n return result;\n }\n });\n});\n/**\n * Test whether BigNumber n is a positive integer\n * @param {BigNumber} n\n * @returns {boolean} isPositiveInteger\n */\n\nexports.createCombinationsWithRep = createCombinationsWithRep;\n\nfunction isPositiveInteger(n) {\n return n.isInteger() && n.gte(0);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createGamma = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'gamma';\nvar dependencies = ['typed', 'config', 'multiplyScalar', 'pow', 'BigNumber', 'Complex'];\nvar createGamma = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n multiplyScalar = _ref.multiplyScalar,\n pow = _ref.pow,\n _BigNumber = _ref.BigNumber,\n _Complex = _ref.Complex;\n\n /**\n * Compute the gamma function of a value using Lanczos approximation for\n * small values, and an extended Stirling approximation for large values.\n *\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.gamma(n)\n *\n * Examples:\n *\n * math.gamma(5) // returns 24\n * math.gamma(-0.5) // returns -3.5449077018110335\n * math.gamma(math.i) // returns -0.15494982830180973 - 0.49801566811835596i\n *\n * See also:\n *\n * combinations, factorial, permutations\n *\n * @param {number | Array | Matrix} n A real or complex number\n * @return {number | Array | Matrix} The gamma of `n`\n */\n return typed(name, {\n number: _index.gammaNumber,\n Complex: function Complex(n) {\n if (n.im === 0) {\n return this(n.re);\n } // Lanczos approximation doesn't work well with real part lower than 0.5\n // So reflection formula is required\n\n\n if (n.re < 0.5) {\n // Euler's reflection formula\n // gamma(1-z) * gamma(z) = PI / sin(PI * z)\n // real part of Z should not be integer [sin(PI) == 0 -> 1/0 - undefined]\n // thanks to imperfect sin implementation sin(PI * n) != 0\n // we can safely use it anyway\n var _t = new _Complex(1 - n.re, -n.im);\n\n var r = new _Complex(Math.PI * n.re, Math.PI * n.im);\n return new _Complex(Math.PI).div(r.sin()).div(this(_t));\n } // Lanczos approximation\n // z -= 1\n\n\n n = new _Complex(n.re - 1, n.im); // x = gammaPval[0]\n\n var x = new _Complex(_index.gammaP[0], 0); // for (i, gammaPval) in enumerate(gammaP):\n\n for (var i = 1; i < _index.gammaP.length; ++i) {\n // x += gammaPval / (z + i)\n var gammaPval = new _Complex(_index.gammaP[i], 0);\n x = x.add(gammaPval.div(n.add(i)));\n } // t = z + gammaG + 0.5\n\n\n var t = new _Complex(n.re + _index.gammaG + 0.5, n.im); // y = sqrt(2 * pi) * t ** (z + 0.5) * exp(-t) * x\n\n var twoPiSqrt = Math.sqrt(2 * Math.PI);\n var tpow = t.pow(n.add(0.5));\n var expt = t.neg().exp(); // y = [x] * [sqrt(2 * pi)] * [t ** (z + 0.5)] * [exp(-t)]\n\n return x.mul(twoPiSqrt).mul(tpow).mul(expt);\n },\n BigNumber: function BigNumber(n) {\n if (n.isInteger()) {\n return n.isNegative() || n.isZero() ? new _BigNumber(Infinity) : bigFactorial(n.minus(1));\n }\n\n if (!n.isFinite()) {\n return new _BigNumber(n.isNegative() ? NaN : Infinity);\n }\n\n throw new Error('Integer BigNumber expected');\n },\n 'Array | Matrix': function ArrayMatrix(n) {\n return (0, _collection.deepMap)(n, this);\n }\n });\n /**\n * Calculate factorial for a BigNumber\n * @param {BigNumber} n\n * @returns {BigNumber} Returns the factorial of n\n */\n\n function bigFactorial(n) {\n if (n < 8) {\n return new _BigNumber([1, 1, 2, 6, 24, 120, 720, 5040][n]);\n }\n\n var precision = config.precision + (Math.log(n.toNumber()) | 0);\n\n var Big = _BigNumber.clone({\n precision: precision\n });\n\n if (n % 2 === 1) {\n return n.times(bigFactorial(new _BigNumber(n - 1)));\n }\n\n var p = n;\n var prod = new Big(n);\n var sum = n.toNumber();\n\n while (p > 2) {\n p -= 2;\n sum += p;\n prod = prod.times(sum);\n }\n\n return new _BigNumber(prod.toPrecision(_BigNumber.precision));\n }\n});\nexports.createGamma = createGamma;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLgamma = void 0;\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _number = require(\"../../utils/number.js\");\n\n/* eslint-disable no-loss-of-precision */\n// References\n// ----------\n// [1] Hare, \"Computing the Principal Branch of log-Gamma\", Journal of Algorithms, 1997.\n// [2] https://math.stackexchange.com/questions/1338753/how-do-i-calculate-values-for-gamma-function-with-complex-arguments\nvar name = 'lgamma';\nvar dependencies = ['Complex', 'typed'];\nvar createLgamma = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var _Complex = _ref.Complex,\n typed = _ref.typed;\n // Stirling series is non-convergent, we need to use the recurrence `lgamma(z) = lgamma(z+1) - log z` to get\n // sufficient accuracy.\n //\n // These two values are copied from Scipy implementation:\n // https://github.com/scipy/scipy/blob/v1.8.0/scipy/special/_loggamma.pxd#L37\n var SMALL_RE = 7;\n var SMALL_IM = 7;\n /**\n * The coefficients are B[2*n]/(2*n*(2*n - 1)) where B[2*n] is the (2*n)th Bernoulli number. See (1.1) in [1].\n *\n * If you cannot access the paper, can also get these values from the formula in [2].\n *\n * 1 / 12 = 0.00833333333333333333333333333333\n * 1 / 360 = 0.00277777777777777777777777777778\n * ...\n * 3617 / 133400 = 0.02955065359477124183006535947712\n */\n\n var coeffs = [-2.955065359477124183e-2, 6.4102564102564102564e-3, -1.9175269175269175269e-3, 8.4175084175084175084e-4, -5.952380952380952381e-4, 7.9365079365079365079e-4, -2.7777777777777777778e-3, 8.3333333333333333333e-2];\n /**\n * Logarithm of the gamma function for real, positive numbers and complex numbers,\n * using Lanczos approximation for numbers and Stirling series for complex numbers.\n *\n * Syntax:\n *\n * math.lgamma(n)\n *\n * Examples:\n *\n * math.lgamma(5) // returns 3.178053830347945\n * math.lgamma(0) // returns Infinity\n * math.lgamma(-0.5) // returns NaN\n * math.lgamma(math.i) // returns -0.6509231993018536 - 1.8724366472624294i\n *\n * See also:\n *\n * gamma\n *\n * @param {number | Complex} n A real or complex number\n * @return {number | Complex} The log gamma of `n`\n */\n\n return typed(name, {\n number: _index.lgammaNumber,\n Complex: function Complex(n) {\n var TWOPI = 6.2831853071795864769252842; // 2*pi\n\n var LOGPI = 1.1447298858494001741434262; // log(pi)\n\n var REFLECTION = 0.1;\n\n if (n.isNaN()) {\n return new _Complex(NaN, NaN);\n } else if (n.im === 0) {\n return new _Complex((0, _index.lgammaNumber)(n.re), 0);\n } else if (n.re >= SMALL_RE || Math.abs(n.im) >= SMALL_IM) {\n return lgammaStirling(n);\n } else if (n.re <= REFLECTION) {\n // Reflection formula. see Proposition 3.1 in [1]\n var tmp = (0, _number.copysign)(TWOPI, n.im) * Math.floor(0.5 * n.re + 0.25); // TODO: `complex.js sin` doesn't have extremely high precision, so this value `a` may lose a little precision,\n // causing the computation results to be less accurate than the lgamma of real numbers\n\n var a = n.mul(Math.PI).sin().log();\n var b = this(new _Complex(1 - n.re, -n.im));\n return new _Complex(LOGPI, tmp).sub(a).sub(b);\n } else if (n.im >= 0) {\n return lgammaRecurrence(n);\n } else {\n return lgammaRecurrence(n.conjugate()).conjugate();\n }\n },\n BigNumber: function BigNumber() {\n throw new Error(\"mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber\");\n }\n });\n\n function lgammaStirling(z) {\n // formula ref in [2]\n // computation ref:\n // https://github.com/scipy/scipy/blob/v1.8.0/scipy/special/_loggamma.pxd#L101\n // left part\n // x (log(x) - 1) + 1/2 (log(2PI) - log(x))\n // => (x - 0.5) * log(x) - x + log(2PI) / 2\n var leftPart = z.sub(0.5).mul(z.log()).sub(z).add(_index.lnSqrt2PI); // right part\n\n var rz = new _Complex(1, 0).div(z);\n var rzz = rz.div(z);\n var a = coeffs[0];\n var b = coeffs[1];\n var r = 2 * rzz.re;\n var s = rzz.re * rzz.re + rzz.im * rzz.im;\n\n for (var i = 2; i < 8; i++) {\n var tmp = b;\n b = -s * a + coeffs[i];\n a = r * a + tmp;\n }\n\n var rightPart = rz.mul(rzz.mul(a).add(b)); // plus left and right\n\n return leftPart.add(rightPart);\n }\n\n function lgammaRecurrence(z) {\n // computation ref:\n // https://github.com/scipy/scipy/blob/v1.8.0/scipy/special/_loggamma.pxd#L78\n var signflips = 0;\n var sb = 0;\n var shiftprod = z;\n z = z.add(1);\n\n while (z.re <= SMALL_RE) {\n shiftprod = shiftprod.mul(z);\n var nsb = shiftprod.im < 0 ? 1 : 0;\n if (nsb !== 0 && sb === 0) signflips++;\n sb = nsb;\n z = z.add(1);\n }\n\n return lgammaStirling(z).sub(shiftprod.log()).sub(new _Complex(0, signflips * 2 * Math.PI * 1));\n }\n});\nexports.createLgamma = createLgamma;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFactorial = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'factorial';\nvar dependencies = ['typed', 'gamma'];\nvar createFactorial = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n gamma = _ref.gamma;\n\n /**\n * Compute the factorial of a value\n *\n * Factorial only supports an integer value as argument.\n * For matrices, the function is evaluated element wise.\n *\n * Syntax:\n *\n * math.factorial(n)\n *\n * Examples:\n *\n * math.factorial(5) // returns 120\n * math.factorial(3) // returns 6\n *\n * See also:\n *\n * combinations, combinationsWithRep, gamma, permutations\n *\n * @param {number | BigNumber | Array | Matrix} n An integer number\n * @return {number | BigNumber | Array | Matrix} The factorial of `n`\n */\n return typed(name, {\n number: function number(n) {\n if (n < 0) {\n throw new Error('Value must be non-negative');\n }\n\n return gamma(n + 1);\n },\n BigNumber: function BigNumber(n) {\n if (n.isNegative()) {\n throw new Error('Value must be non-negative');\n }\n\n return gamma(n.plus(1));\n },\n 'Array | Matrix': function ArrayMatrix(n) {\n return (0, _collection.deepMap)(n, this);\n }\n });\n});\nexports.createFactorial = createFactorial;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createKldivergence = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'kldivergence';\nvar dependencies = ['typed', 'matrix', 'divide', 'sum', 'multiply', 'dotDivide', 'log', 'isNumeric'];\nvar createKldivergence = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n divide = _ref.divide,\n sum = _ref.sum,\n multiply = _ref.multiply,\n dotDivide = _ref.dotDivide,\n log = _ref.log,\n isNumeric = _ref.isNumeric;\n\n /**\n * Calculate the Kullback-Leibler (KL) divergence between two distributions\n *\n * Syntax:\n *\n * math.kldivergence(x, y)\n *\n * Examples:\n *\n * math.kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5]) //returns 0.24376698773121153\n *\n *\n * @param {Array | Matrix} q First vector\n * @param {Array | Matrix} p Second vector\n * @return {number} Returns distance between q and p\n */\n return typed(name, {\n 'Array, Array': function ArrayArray(q, p) {\n return _kldiv(matrix(q), matrix(p));\n },\n 'Matrix, Array': function MatrixArray(q, p) {\n return _kldiv(q, matrix(p));\n },\n 'Array, Matrix': function ArrayMatrix(q, p) {\n return _kldiv(matrix(q), p);\n },\n 'Matrix, Matrix': function MatrixMatrix(q, p) {\n return _kldiv(q, p);\n }\n });\n\n function _kldiv(q, p) {\n var plength = p.size().length;\n var qlength = q.size().length;\n\n if (plength > 1) {\n throw new Error('first object must be one dimensional');\n }\n\n if (qlength > 1) {\n throw new Error('second object must be one dimensional');\n }\n\n if (plength !== qlength) {\n throw new Error('Length of two vectors must be equal');\n } // Before calculation, apply normalization\n\n\n var sumq = sum(q);\n\n if (sumq === 0) {\n throw new Error('Sum of elements in first object must be non zero');\n }\n\n var sump = sum(p);\n\n if (sump === 0) {\n throw new Error('Sum of elements in second object must be non zero');\n }\n\n var qnorm = divide(q, sum(q));\n var pnorm = divide(p, sum(p));\n var result = sum(multiply(qnorm, log(dotDivide(qnorm, pnorm))));\n\n if (isNumeric(result)) {\n return result;\n } else {\n return Number.NaN;\n }\n }\n});\nexports.createKldivergence = createKldivergence;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMultinomial = void 0;\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'multinomial';\nvar dependencies = ['typed', 'add', 'divide', 'multiply', 'factorial', 'isInteger', 'isPositive'];\nvar createMultinomial = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n divide = _ref.divide,\n multiply = _ref.multiply,\n factorial = _ref.factorial,\n isInteger = _ref.isInteger,\n isPositive = _ref.isPositive;\n\n /**\n * Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities.\n *\n * multinomial takes one array of integers as an argument.\n * The following condition must be enforced: every ai <= 0\n *\n * Syntax:\n *\n * math.multinomial(a) // a is an array type\n *\n * Examples:\n *\n * math.multinomial([1,2,1]) // returns 12\n *\n * See also:\n *\n * combinations, factorial\n *\n * @param {number[] | BigNumber[]} a Integer numbers of objects in the subset\n * @return {Number | BigNumber} Multinomial coefficient.\n */\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(a) {\n var sum = 0;\n var denom = 1;\n (0, _collection.deepForEach)(a, function (ai) {\n if (!isInteger(ai) || !isPositive(ai)) {\n throw new TypeError('Positive integer value expected in function multinomial');\n }\n\n sum = add(sum, ai);\n denom = multiply(denom, factorial(ai));\n });\n return divide(factorial(sum), denom);\n }\n });\n});\nexports.createMultinomial = createMultinomial;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createPermutations = void 0;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _product = require(\"../../utils/product.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'permutations';\nvar dependencies = ['typed', 'factorial'];\nvar createPermutations = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n factorial = _ref.factorial;\n\n /**\n * Compute the number of ways of obtaining an ordered subset of `k` elements\n * from a set of `n` elements.\n *\n * Permutations only takes integer arguments.\n * The following condition must be enforced: k <= n.\n *\n * Syntax:\n *\n * math.permutations(n)\n * math.permutations(n, k)\n *\n * Examples:\n *\n * math.permutations(5) // 120\n * math.permutations(5, 3) // 60\n *\n * See also:\n *\n * combinations, combinationsWithRep, factorial\n *\n * @param {number | BigNumber} n The number of objects in total\n * @param {number | BigNumber} [k] The number of objects in the subset\n * @return {number | BigNumber} The number of permutations\n */\n return typed(name, {\n 'number | BigNumber': factorial,\n 'number, number': function numberNumber(n, k) {\n if (!(0, _number.isInteger)(n) || n < 0) {\n throw new TypeError('Positive integer value expected in function permutations');\n }\n\n if (!(0, _number.isInteger)(k) || k < 0) {\n throw new TypeError('Positive integer value expected in function permutations');\n }\n\n if (k > n) {\n throw new TypeError('second argument k must be less than or equal to first argument n');\n } // Permute n objects, k at a time\n\n\n return (0, _product.product)(n - k + 1, n);\n },\n 'BigNumber, BigNumber': function BigNumberBigNumber(n, k) {\n var result, i;\n\n if (!isPositiveInteger(n) || !isPositiveInteger(k)) {\n throw new TypeError('Positive integer value expected in function permutations');\n }\n\n if (k.gt(n)) {\n throw new TypeError('second argument k must be less than or equal to first argument n');\n }\n\n var one = n.mul(0).add(1);\n result = one;\n\n for (i = n.minus(k).plus(1); i.lte(n); i = i.plus(1)) {\n result = result.times(i);\n }\n\n return result;\n } // TODO: implement support for collection in permutations\n\n });\n});\n/**\n * Test whether BigNumber n is a positive integer\n * @param {BigNumber} n\n * @returns {boolean} isPositiveInteger\n */\n\nexports.createPermutations = createPermutations;\n\nfunction isPositiveInteger(n) {\n return n.isInteger() && n.gte(0);\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRng = createRng;\n\nvar _seedrandom = _interopRequireDefault(require(\"seedrandom\"));\n\nvar singletonRandom = /* #__PURE__ */(0, _seedrandom.default)(Date.now());\n\nfunction createRng(randomSeed) {\n var random; // create a new random generator with given seed\n\n function setSeed(seed) {\n random = seed === null ? singletonRandom : (0, _seedrandom.default)(String(seed));\n } // initialize a seeded pseudo random number generator with config's random seed\n\n\n setSeed(randomSeed); // wrapper function so the rng can be updated via generator\n\n function rng() {\n return random();\n }\n\n return rng;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createPickRandom = void 0;\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _seededRNG = require(\"./util/seededRNG.js\");\n\nvar name = 'pickRandom';\nvar dependencies = ['typed', 'config', '?on'];\nvar createPickRandom = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n on = _ref.on;\n // seeded pseudo random number generator\n var rng = (0, _seededRNG.createRng)(config.randomSeed);\n\n if (on) {\n on('config', function (curr, prev) {\n if (curr.randomSeed !== prev.randomSeed) {\n rng = (0, _seededRNG.createRng)(curr.randomSeed);\n }\n });\n }\n /**\n * Random pick one or more values from a one dimensional array.\n * Array elements are picked using a random function with uniform or weighted distribution.\n *\n * Syntax:\n *\n * math.pickRandom(array)\n * math.pickRandom(array, number)\n * math.pickRandom(array, weights)\n * math.pickRandom(array, number, weights)\n * math.pickRandom(array, weights, number)\n * math.pickRandom(array, { weights, number, elementWise })\n *\n * Examples:\n *\n * math.pickRandom([3, 6, 12, 2]) // returns one of the values in the array\n * math.pickRandom([3, 6, 12, 2], 2) // returns an array of two of the values in the array\n * math.pickRandom([3, 6, 12, 2], { number: 2 }) // returns an array of two of the values in the array\n * math.pickRandom([3, 6, 12, 2], [1, 3, 2, 1]) // returns one of the values in the array with weighted distribution\n * math.pickRandom([3, 6, 12, 2], 2, [1, 3, 2, 1]) // returns an array of two of the values in the array with weighted distribution\n * math.pickRandom([3, 6, 12, 2], [1, 3, 2, 1], 2) // returns an array of two of the values in the array with weighted distribution\n *\n * math.pickRandom([{x: 1.0, y: 2.0}, {x: 1.1, y: 2.0}], { elementWise: false })\n * // returns one of the items in the array\n *\n * See also:\n *\n * random, randomInt\n *\n * @param {Array | Matrix} array A one dimensional array\n * @param {Int} number An int or float\n * @param {Array | Matrix} weights An array of ints or floats\n * @return {number | Array} Returns a single random value from array when number is 1 or undefined.\n * Returns an array with the configured number of elements when number is > 1.\n */\n\n\n return typed(name, {\n 'Array | Matrix': function ArrayMatrix(possibles) {\n return _pickRandom(possibles, {});\n },\n 'Array | Matrix, Object': function ArrayMatrixObject(possibles, options) {\n return _pickRandom(possibles, options);\n },\n 'Array | Matrix, number': function ArrayMatrixNumber(possibles, number) {\n return _pickRandom(possibles, {\n number: number\n });\n },\n 'Array | Matrix, Array | Matrix': function ArrayMatrixArrayMatrix(possibles, weights) {\n return _pickRandom(possibles, {\n weights: weights\n });\n },\n 'Array | Matrix, Array | Matrix, number': function ArrayMatrixArrayMatrixNumber(possibles, weights, number) {\n return _pickRandom(possibles, {\n number: number,\n weights: weights\n });\n },\n 'Array | Matrix, number, Array | Matrix': function ArrayMatrixNumberArrayMatrix(possibles, number, weights) {\n return _pickRandom(possibles, {\n number: number,\n weights: weights\n });\n }\n });\n /**\n * @param {Array | Matrix} possibles\n * @param {{\n * number?: number,\n * weights?: Array | Matrix,\n * elementWise: boolean\n * }} options\n * @returns {number | Array}\n * @private\n */\n\n function _pickRandom(possibles, _ref2) {\n var number = _ref2.number,\n weights = _ref2.weights,\n _ref2$elementWise = _ref2.elementWise,\n elementWise = _ref2$elementWise === void 0 ? true : _ref2$elementWise;\n var single = typeof number === 'undefined';\n\n if (single) {\n number = 1;\n }\n\n var createMatrix = (0, _is.isMatrix)(possibles) ? possibles.create : (0, _is.isMatrix)(weights) ? weights.create : null;\n possibles = possibles.valueOf(); // get Array\n\n if (weights) {\n weights = weights.valueOf(); // get Array\n }\n\n if (elementWise === true) {\n possibles = (0, _array.flatten)(possibles);\n weights = (0, _array.flatten)(weights);\n }\n\n var totalWeights = 0;\n\n if (typeof weights !== 'undefined') {\n if (weights.length !== possibles.length) {\n throw new Error('Weights must have the same length as possibles');\n }\n\n for (var i = 0, len = weights.length; i < len; i++) {\n if (!(0, _is.isNumber)(weights[i]) || weights[i] < 0) {\n throw new Error('Weights must be an array of positive numbers');\n }\n\n totalWeights += weights[i];\n }\n }\n\n var length = possibles.length;\n var result = [];\n var pick;\n\n while (result.length < number) {\n if (typeof weights === 'undefined') {\n pick = possibles[Math.floor(rng() * length)];\n } else {\n var randKey = rng() * totalWeights;\n\n for (var _i = 0, _len = possibles.length; _i < _len; _i++) {\n randKey -= weights[_i];\n\n if (randKey < 0) {\n pick = possibles[_i];\n break;\n }\n }\n }\n\n result.push(pick);\n }\n\n return single ? result[0] : createMatrix ? createMatrix(result) : result;\n }\n});\nexports.createPickRandom = createPickRandom;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.randomMatrix = randomMatrix;\n\n/**\n * This is a util function for generating a random matrix recursively.\n * @param {number[]} size\n * @param {function} random\n * @returns {Array}\n */\nfunction randomMatrix(size, random) {\n var data = [];\n size = size.slice(0);\n\n if (size.length > 1) {\n for (var i = 0, length = size.shift(); i < length; i++) {\n data.push(randomMatrix(size, random));\n }\n } else {\n for (var _i = 0, _length = size.shift(); _i < _length; _i++) {\n data.push(random());\n }\n }\n\n return data;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRandomNumber = exports.createRandom = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _seededRNG = require(\"./util/seededRNG.js\");\n\nvar _randomMatrix2 = require(\"./util/randomMatrix.js\");\n\nvar name = 'random';\nvar dependencies = ['typed', 'config', '?on'];\nvar createRandom = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n on = _ref.on;\n // seeded pseudo random number generator\n var rng = (0, _seededRNG.createRng)(config.randomSeed);\n\n if (on) {\n on('config', function (curr, prev) {\n if (curr.randomSeed !== prev.randomSeed) {\n rng = (0, _seededRNG.createRng)(curr.randomSeed);\n }\n });\n }\n /**\n * Return a random number larger or equal to `min` and smaller than `max`\n * using a uniform distribution.\n *\n * Syntax:\n *\n * math.random() // generate a random number between 0 and 1\n * math.random(max) // generate a random number between 0 and max\n * math.random(min, max) // generate a random number between min and max\n * math.random(size) // generate a matrix with random numbers between 0 and 1\n * math.random(size, max) // generate a matrix with random numbers between 0 and max\n * math.random(size, min, max) // generate a matrix with random numbers between min and max\n *\n * Examples:\n *\n * math.random() // returns a random number between 0 and 1\n * math.random(100) // returns a random number between 0 and 100\n * math.random(30, 40) // returns a random number between 30 and 40\n * math.random([2, 3]) // returns a 2x3 matrix with random numbers between 0 and 1\n *\n * See also:\n *\n * randomInt, pickRandom\n *\n * @param {Array | Matrix} [size] If provided, an array or matrix with given\n * size and filled with random values is returned\n * @param {number} [min] Minimum boundary for the random value, included\n * @param {number} [max] Maximum boundary for the random value, excluded\n * @return {number | Array | Matrix} A random number\n */\n\n\n return typed(name, {\n '': function _() {\n return _random(0, 1);\n },\n number: function number(max) {\n return _random(0, max);\n },\n 'number, number': function numberNumber(min, max) {\n return _random(min, max);\n },\n 'Array | Matrix': function ArrayMatrix(size) {\n return _randomMatrix(size, 0, 1);\n },\n 'Array | Matrix, number': function ArrayMatrixNumber(size, max) {\n return _randomMatrix(size, 0, max);\n },\n 'Array | Matrix, number, number': function ArrayMatrixNumberNumber(size, min, max) {\n return _randomMatrix(size, min, max);\n }\n });\n\n function _randomMatrix(size, min, max) {\n var res = (0, _randomMatrix2.randomMatrix)(size.valueOf(), function () {\n return _random(min, max);\n });\n return (0, _is.isMatrix)(size) ? size.create(res) : res;\n }\n\n function _random(min, max) {\n return min + rng() * (max - min);\n }\n}); // number only implementation of random, no matrix support\n// TODO: there is quite some duplicate code in both createRandom and createRandomNumber, can we improve that?\n\nexports.createRandom = createRandom;\nvar createRandomNumber = /* #__PURE__ */(0, _factory.factory)(name, ['typed', 'config', '?on'], function (_ref2) {\n var typed = _ref2.typed,\n config = _ref2.config,\n on = _ref2.on,\n matrix = _ref2.matrix;\n // seeded pseudo random number generator1\n var rng = (0, _seededRNG.createRng)(config.randomSeed);\n\n if (on) {\n on('config', function (curr, prev) {\n if (curr.randomSeed !== prev.randomSeed) {\n rng = (0, _seededRNG.createRng)(curr.randomSeed);\n }\n });\n }\n\n return typed(name, {\n '': function _() {\n return _random(0, 1);\n },\n number: function number(max) {\n return _random(0, max);\n },\n 'number, number': function numberNumber(min, max) {\n return _random(min, max);\n }\n });\n\n function _random(min, max) {\n return min + rng() * (max - min);\n }\n});\nexports.createRandomNumber = createRandomNumber;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRandomInt = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _randomMatrix = require(\"./util/randomMatrix.js\");\n\nvar _seededRNG = require(\"./util/seededRNG.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'randomInt';\nvar dependencies = ['typed', 'config', '?on'];\nvar createRandomInt = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n on = _ref.on;\n // seeded pseudo random number generator\n var rng = (0, _seededRNG.createRng)(config.randomSeed);\n\n if (on) {\n on('config', function (curr, prev) {\n if (curr.randomSeed !== prev.randomSeed) {\n rng = (0, _seededRNG.createRng)(curr.randomSeed);\n }\n });\n }\n /**\n * Return a random integer number larger or equal to `min` and smaller than `max`\n * using a uniform distribution.\n *\n * Syntax:\n *\n * math.randomInt() // generate a random integer between 0 and 1\n * math.randomInt(max) // generate a random integer between 0 and max\n * math.randomInt(min, max) // generate a random integer between min and max\n * math.randomInt(size) // generate a matrix with random integer between 0 and 1\n * math.randomInt(size, max) // generate a matrix with random integer between 0 and max\n * math.randomInt(size, min, max) // generate a matrix with random integer between min and max\n *\n * Examples:\n *\n * math.randomInt(100) // returns a random integer between 0 and 100\n * math.randomInt(30, 40) // returns a random integer between 30 and 40\n * math.randomInt([2, 3]) // returns a 2x3 matrix with random integers between 0 and 1\n *\n * See also:\n *\n * random, pickRandom\n *\n * @param {Array | Matrix} [size] If provided, an array or matrix with given\n * size and filled with random values is returned\n * @param {number} [min] Minimum boundary for the random value, included\n * @param {number} [max] Maximum boundary for the random value, excluded\n * @return {number | Array | Matrix} A random integer value\n */\n\n\n return typed(name, {\n '': function _() {\n return _randomInt(0, 1);\n },\n number: function number(max) {\n return _randomInt(0, max);\n },\n 'number, number': function numberNumber(min, max) {\n return _randomInt(min, max);\n },\n 'Array | Matrix': function ArrayMatrix(size) {\n return _randomIntMatrix(size, 0, 1);\n },\n 'Array | Matrix, number': function ArrayMatrixNumber(size, max) {\n return _randomIntMatrix(size, 0, max);\n },\n 'Array | Matrix, number, number': function ArrayMatrixNumberNumber(size, min, max) {\n return _randomIntMatrix(size, min, max);\n }\n });\n\n function _randomIntMatrix(size, min, max) {\n var res = (0, _randomMatrix.randomMatrix)(size.valueOf(), function () {\n return _randomInt(min, max);\n });\n return (0, _is.isMatrix)(size) ? size.create(res) : res;\n }\n\n function _randomInt(min, max) {\n return Math.floor(min + rng() * (max - min));\n }\n});\nexports.createRandomInt = createRandomInt;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createStirlingS2 = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'stirlingS2';\nvar dependencies = ['typed', 'addScalar', 'subtract', 'multiplyScalar', 'divideScalar', 'pow', 'factorial', 'combinations', 'isNegative', 'isInteger', 'number', '?bignumber', 'larger'];\nvar createStirlingS2 = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n addScalar = _ref.addScalar,\n subtract = _ref.subtract,\n multiplyScalar = _ref.multiplyScalar,\n divideScalar = _ref.divideScalar,\n pow = _ref.pow,\n factorial = _ref.factorial,\n combinations = _ref.combinations,\n isNegative = _ref.isNegative,\n isInteger = _ref.isInteger,\n number = _ref.number,\n bignumber = _ref.bignumber,\n larger = _ref.larger;\n var smallCache = [];\n var bigCache = [];\n /**\n * The Stirling numbers of the second kind, counts the number of ways to partition\n * a set of n labelled objects into k nonempty unlabelled subsets.\n * stirlingS2 only takes integer arguments.\n * The following condition must be enforced: k <= n.\n *\n * If n = k or k = 1 <= n, then s(n,k) = 1\n * If k = 0 < n, then s(n,k) = 0\n *\n * Note that if either n or k is supplied as a BigNumber, the result will be\n * as well.\n *\n * Syntax:\n *\n * math.stirlingS2(n, k)\n *\n * Examples:\n *\n * math.stirlingS2(5, 3) //returns 25\n *\n * See also:\n *\n * bellNumbers\n *\n * @param {Number | BigNumber} n Total number of objects in the set\n * @param {Number | BigNumber} k Number of objects in the subset\n * @return {Number | BigNumber} S(n,k)\n */\n\n return typed(name, {\n 'number | BigNumber, number | BigNumber': function numberBigNumberNumberBigNumber(n, k) {\n if (!isInteger(n) || isNegative(n) || !isInteger(k) || isNegative(k)) {\n throw new TypeError('Non-negative integer value expected in function stirlingS2');\n } else if (larger(k, n)) {\n throw new TypeError('k must be less than or equal to n in function stirlingS2');\n }\n\n var big = !((0, _is.isNumber)(n) && (0, _is.isNumber)(k));\n var cache = big ? bigCache : smallCache;\n var make = big ? bignumber : number;\n var nn = number(n);\n var nk = number(k);\n /* See if we already have the value: */\n\n if (cache[nn] && cache[nn].length > nk) {\n return cache[nn][nk];\n }\n /* Fill the cache */\n\n\n for (var m = 0; m <= nn; ++m) {\n if (!cache[m]) {\n cache[m] = [m === 0 ? make(1) : make(0)];\n }\n\n if (m === 0) continue;\n var row = cache[m];\n var prev = cache[m - 1];\n\n for (var i = row.length; i <= m && i <= nk; ++i) {\n if (i === m) {\n row[i] = 1;\n } else {\n row[i] = addScalar(multiplyScalar(make(i), prev[i]), prev[i - 1]);\n }\n }\n }\n\n return cache[nn][nk];\n }\n });\n});\nexports.createStirlingS2 = createStirlingS2;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createBellNumbers = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'bellNumbers';\nvar dependencies = ['typed', 'addScalar', 'isNegative', 'isInteger', 'stirlingS2'];\nvar createBellNumbers = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n addScalar = _ref.addScalar,\n isNegative = _ref.isNegative,\n isInteger = _ref.isInteger,\n stirlingS2 = _ref.stirlingS2;\n\n /**\n * The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S.\n * bellNumbers only takes integer arguments.\n * The following condition must be enforced: n >= 0\n *\n * Syntax:\n *\n * math.bellNumbers(n)\n *\n * Examples:\n *\n * math.bellNumbers(3) // returns 5\n * math.bellNumbers(8) // returns 4140\n *\n * See also:\n *\n * stirlingS2\n *\n * @param {Number | BigNumber} n Total number of objects in the set\n * @return {Number | BigNumber} B(n)\n */\n return typed(name, {\n 'number | BigNumber': function numberBigNumber(n) {\n if (!isInteger(n) || isNegative(n)) {\n throw new TypeError('Non-negative integer value expected in function bellNumbers');\n } // Sum (k=0, n) S(n,k).\n\n\n var result = 0;\n\n for (var i = 0; i <= n; i++) {\n result = addScalar(result, stirlingS2(n, i));\n }\n\n return result;\n }\n });\n});\nexports.createBellNumbers = createBellNumbers;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCatalan = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'catalan';\nvar dependencies = ['typed', 'addScalar', 'divideScalar', 'multiplyScalar', 'combinations', 'isNegative', 'isInteger'];\nvar createCatalan = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n addScalar = _ref.addScalar,\n divideScalar = _ref.divideScalar,\n multiplyScalar = _ref.multiplyScalar,\n combinations = _ref.combinations,\n isNegative = _ref.isNegative,\n isInteger = _ref.isInteger;\n\n /**\n * The Catalan Numbers enumerate combinatorial structures of many different types.\n * catalan only takes integer arguments.\n * The following condition must be enforced: n >= 0\n *\n * Syntax:\n *\n * math.catalan(n)\n *\n * Examples:\n *\n * math.catalan(3) // returns 5\n * math.catalan(8) // returns 1430\n *\n * See also:\n *\n * bellNumbers\n *\n * @param {Number | BigNumber} n nth Catalan number\n * @return {Number | BigNumber} Cn(n)\n */\n return typed(name, {\n 'number | BigNumber': function numberBigNumber(n) {\n if (!isInteger(n) || isNegative(n)) {\n throw new TypeError('Non-negative integer value expected in function catalan');\n }\n\n return divideScalar(combinations(multiplyScalar(n, 2), n), addScalar(n, 1));\n }\n });\n});\nexports.createCatalan = createCatalan;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createComposition = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'composition';\nvar dependencies = ['typed', 'addScalar', 'combinations', 'isNegative', 'isPositive', 'isInteger', 'larger'];\nvar createComposition = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n addScalar = _ref.addScalar,\n combinations = _ref.combinations,\n isPositive = _ref.isPositive,\n isNegative = _ref.isNegative,\n isInteger = _ref.isInteger,\n larger = _ref.larger;\n\n /**\n * The composition counts of n into k parts.\n *\n * composition only takes integer arguments.\n * The following condition must be enforced: k <= n.\n *\n * Syntax:\n *\n * math.composition(n, k)\n *\n * Examples:\n *\n * math.composition(5, 3) // returns 6\n *\n * See also:\n *\n * combinations\n *\n * @param {Number | BigNumber} n Total number of objects in the set\n * @param {Number | BigNumber} k Number of objects in the subset\n * @return {Number | BigNumber} Returns the composition counts of n into k parts.\n */\n return typed(name, {\n 'number | BigNumber, number | BigNumber': function numberBigNumberNumberBigNumber(n, k) {\n if (!isInteger(n) || !isPositive(n) || !isInteger(k) || !isPositive(k)) {\n throw new TypeError('Positive integer value expected in function composition');\n } else if (larger(k, n)) {\n throw new TypeError('k must be less than or equal to n in function composition');\n }\n\n return combinations(addScalar(n, -1), addScalar(k, -1));\n }\n });\n});\nexports.createComposition = createComposition;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createLeafCount = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'leafCount';\nvar dependencies = ['parse', 'typed'];\nvar createLeafCount = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var parse = _ref.parse,\n typed = _ref.typed;\n\n // This does the real work, but we don't have to recurse through\n // a typed call if we separate it out\n function countLeaves(node) {\n var count = 0;\n node.forEach(function (n) {\n count += countLeaves(n);\n });\n return count || 1;\n }\n /**\n * Gives the number of \"leaf nodes\" in the parse tree of the given expression\n * A leaf node is one that has no subexpressions, essentially either a\n * symbol or a constant. Note that `5!` has just one leaf, the '5'; the\n * unary factorial operator does not add a leaf. On the other hand,\n * function symbols do add leaves, so `sin(x)/cos(x)` has four leaves.\n *\n * The `simplify()` function should generally not increase the `leafCount()`\n * of an expression, although currently there is no guarantee that it never\n * does so. In many cases, `simplify()` reduces the leaf count.\n *\n * Syntax:\n *\n * leafCount(expr)\n *\n * Examples:\n *\n * math.leafCount('x') // 1\n * math.leafCount(math.parse('a*d-b*c')) // 4\n * math.leafCount('[a,b;c,d][0,1]') // 6\n *\n * See also:\n *\n * simplify\n *\n * @param {Node|string} expr The expression to count the leaves of\n *\n * @return {number} The number of leaves of `expr`\n *\n */\n\n\n return typed(name, {\n string: function string(expr) {\n return this(parse(expr));\n },\n Node: function Node(expr) {\n return countLeaves(expr);\n }\n });\n});\nexports.createLeafCount = createLeafCount;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUtil = void 0;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _is = require(\"../../../utils/is.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _object = require(\"../../../utils/object.js\");\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nvar name = 'simplifyUtil';\nvar dependencies = ['FunctionNode', 'OperatorNode', 'SymbolNode'];\nvar createUtil = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var FunctionNode = _ref.FunctionNode,\n OperatorNode = _ref.OperatorNode,\n SymbolNode = _ref.SymbolNode;\n // TODO commutative/associative properties rely on the arguments\n // e.g. multiply is not commutative for matrices\n // The properties should be calculated from an argument to simplify, or possibly something in math.config\n // the other option is for typed() to specify a return type so that we can evaluate the type of arguments\n\n /* So that properties of an operator fit on one line: */\n var T = true;\n var F = false;\n var defaultName = 'defaultF';\n var defaultContext = {\n /* */\n add: {\n trivial: T,\n total: T,\n commutative: T,\n associative: T\n },\n\n /**/\n unaryPlus: {\n trivial: T,\n total: T,\n commutative: T,\n associative: T\n },\n\n /* */\n subtract: {\n trivial: F,\n total: T,\n commutative: F,\n associative: F\n },\n\n /* */\n multiply: {\n trivial: T,\n total: T,\n commutative: T,\n associative: T\n },\n\n /* */\n divide: {\n trivial: F,\n total: T,\n commutative: F,\n associative: F\n },\n\n /* */\n paren: {\n trivial: T,\n total: T,\n commutative: T,\n associative: F\n },\n\n /* */\n defaultF: {\n trivial: F,\n total: T,\n commutative: F,\n associative: F\n }\n };\n var realContext = {\n divide: {\n total: F\n },\n log: {\n total: F\n }\n };\n var positiveContext = {\n subtract: {\n total: F\n },\n abs: {\n trivial: T\n },\n log: {\n total: T\n }\n };\n\n function hasProperty(nodeOrName, property) {\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultContext;\n var name = defaultName;\n\n if (typeof nodeOrName === 'string') {\n name = nodeOrName;\n } else if ((0, _is.isOperatorNode)(nodeOrName)) {\n name = nodeOrName.fn.toString();\n } else if ((0, _is.isFunctionNode)(nodeOrName)) {\n name = nodeOrName.name;\n } else if ((0, _is.isParenthesisNode)(nodeOrName)) {\n name = 'paren';\n }\n\n if ((0, _object.hasOwnProperty)(context, name)) {\n var properties = context[name];\n\n if ((0, _object.hasOwnProperty)(properties, property)) {\n return properties[property];\n }\n\n if ((0, _object.hasOwnProperty)(defaultContext, name)) {\n return defaultContext[name][property];\n }\n }\n\n if ((0, _object.hasOwnProperty)(context, defaultName)) {\n var _properties = context[defaultName];\n\n if ((0, _object.hasOwnProperty)(_properties, property)) {\n return _properties[property];\n }\n\n return defaultContext[defaultName][property];\n }\n /* name not found in context and context has no global default */\n\n /* So use default context. */\n\n\n if ((0, _object.hasOwnProperty)(defaultContext, name)) {\n var _properties2 = defaultContext[name];\n\n if ((0, _object.hasOwnProperty)(_properties2, property)) {\n return _properties2[property];\n }\n }\n\n return defaultContext[defaultName][property];\n }\n\n function isCommutative(node) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultContext;\n return hasProperty(node, 'commutative', context);\n }\n\n function isAssociative(node) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultContext;\n return hasProperty(node, 'associative', context);\n }\n /**\n * Merge the given contexts, with primary overriding secondary\n * wherever they might conflict\n */\n\n\n function mergeContext(primary, secondary) {\n var merged = _objectSpread({}, primary);\n\n for (var prop in secondary) {\n if ((0, _object.hasOwnProperty)(primary, prop)) {\n merged[prop] = _objectSpread(_objectSpread({}, secondary[prop]), primary[prop]);\n } else {\n merged[prop] = secondary[prop];\n }\n }\n\n return merged;\n }\n /**\n * Flatten all associative operators in an expression tree.\n * Assumes parentheses have already been removed.\n */\n\n\n function flatten(node, context) {\n if (!node.args || node.args.length === 0) {\n return node;\n }\n\n node.args = allChildren(node, context);\n\n for (var i = 0; i < node.args.length; i++) {\n flatten(node.args[i], context);\n }\n }\n /**\n * Get the children of a node as if it has been flattened.\n * TODO implement for FunctionNodes\n */\n\n\n function allChildren(node, context) {\n var op;\n var children = [];\n\n var findChildren = function findChildren(node) {\n for (var i = 0; i < node.args.length; i++) {\n var child = node.args[i];\n\n if ((0, _is.isOperatorNode)(child) && op === child.op) {\n findChildren(child);\n } else {\n children.push(child);\n }\n }\n };\n\n if (isAssociative(node, context)) {\n op = node.op;\n findChildren(node);\n return children;\n } else {\n return node.args;\n }\n }\n /**\n * Unflatten all flattened operators to a right-heavy binary tree.\n */\n\n\n function unflattenr(node, context) {\n if (!node.args || node.args.length === 0) {\n return;\n }\n\n var makeNode = createMakeNodeFunction(node);\n var l = node.args.length;\n\n for (var i = 0; i < l; i++) {\n unflattenr(node.args[i], context);\n }\n\n if (l > 2 && isAssociative(node, context)) {\n var curnode = node.args.pop();\n\n while (node.args.length > 0) {\n curnode = makeNode([node.args.pop(), curnode]);\n }\n\n node.args = curnode.args;\n }\n }\n /**\n * Unflatten all flattened operators to a left-heavy binary tree.\n */\n\n\n function unflattenl(node, context) {\n if (!node.args || node.args.length === 0) {\n return;\n }\n\n var makeNode = createMakeNodeFunction(node);\n var l = node.args.length;\n\n for (var i = 0; i < l; i++) {\n unflattenl(node.args[i], context);\n }\n\n if (l > 2 && isAssociative(node, context)) {\n var curnode = node.args.shift();\n\n while (node.args.length > 0) {\n curnode = makeNode([curnode, node.args.shift()]);\n }\n\n node.args = curnode.args;\n }\n }\n\n function createMakeNodeFunction(node) {\n if ((0, _is.isOperatorNode)(node)) {\n return function (args) {\n try {\n return new OperatorNode(node.op, node.fn, args, node.implicit);\n } catch (err) {\n console.error(err);\n return [];\n }\n };\n } else {\n return function (args) {\n return new FunctionNode(new SymbolNode(node.name), args);\n };\n }\n }\n\n return {\n createMakeNodeFunction: createMakeNodeFunction,\n hasProperty: hasProperty,\n isCommutative: isCommutative,\n isAssociative: isAssociative,\n mergeContext: mergeContext,\n flatten: flatten,\n allChildren: allChildren,\n unflattenr: unflattenr,\n unflattenl: unflattenl,\n defaultContext: defaultContext,\n realContext: realContext,\n positiveContext: positiveContext\n };\n});\nexports.createUtil = createUtil;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSimplifyConstant = void 0;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"../../../utils/is.js\");\n\nvar _factory = require(\"../../../utils/factory.js\");\n\nvar _util = require(\"./util.js\");\n\nvar _noop = require(\"../../../utils/noop.js\");\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar name = 'simplifyConstant';\nvar dependencies = ['typed', 'config', 'mathWithTransform', 'matrix', '?fraction', '?bignumber', 'AccessorNode', 'ArrayNode', 'ConstantNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'SymbolNode'];\nvar createSimplifyConstant = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n mathWithTransform = _ref.mathWithTransform,\n matrix = _ref.matrix,\n fraction = _ref.fraction,\n bignumber = _ref.bignumber,\n AccessorNode = _ref.AccessorNode,\n ArrayNode = _ref.ArrayNode,\n ConstantNode = _ref.ConstantNode,\n FunctionNode = _ref.FunctionNode,\n IndexNode = _ref.IndexNode,\n ObjectNode = _ref.ObjectNode,\n OperatorNode = _ref.OperatorNode,\n SymbolNode = _ref.SymbolNode;\n\n var _createUtil = (0, _util.createUtil)({\n FunctionNode: FunctionNode,\n OperatorNode: OperatorNode,\n SymbolNode: SymbolNode\n }),\n isCommutative = _createUtil.isCommutative,\n isAssociative = _createUtil.isAssociative,\n allChildren = _createUtil.allChildren,\n createMakeNodeFunction = _createUtil.createMakeNodeFunction;\n\n function simplifyConstant(expr, options) {\n return _ensureNode(foldFraction(expr, options));\n }\n\n function _removeFractions(thing) {\n if ((0, _is.isFraction)(thing)) {\n return thing.valueOf();\n }\n\n if (thing instanceof Array) {\n return thing.map(_removeFractions);\n }\n\n if ((0, _is.isMatrix)(thing)) {\n return matrix(_removeFractions(thing.valueOf()));\n }\n\n return thing;\n }\n\n function _eval(fnname, args, options) {\n try {\n return mathWithTransform[fnname].apply(null, args);\n } catch (ignore) {\n // sometimes the implicit type conversion causes the evaluation to fail, so we'll try again after removing Fractions\n args = args.map(_removeFractions);\n return _toNumber(mathWithTransform[fnname].apply(null, args), options);\n }\n }\n\n var _toNode = typed({\n Fraction: _fractionToNode,\n number: function number(n) {\n if (n < 0) {\n return unaryMinusNode(new ConstantNode(-n));\n }\n\n return new ConstantNode(n);\n },\n BigNumber: function BigNumber(n) {\n if (n < 0) {\n return unaryMinusNode(new ConstantNode(-n));\n }\n\n return new ConstantNode(n); // old parameters: (n.toString(), 'number')\n },\n Complex: function Complex(s) {\n throw new Error('Cannot convert Complex number to Node');\n },\n string: function string(s) {\n return new ConstantNode(s);\n },\n Matrix: function Matrix(m) {\n return new ArrayNode(m.valueOf().map(function (e) {\n return _toNode(e);\n }));\n }\n });\n\n function _ensureNode(thing) {\n if ((0, _is.isNode)(thing)) {\n return thing;\n }\n\n return _toNode(thing);\n } // convert a number to a fraction only if it can be expressed exactly,\n // and when both numerator and denominator are small enough\n\n\n function _exactFraction(n, options) {\n var exactFractions = options && options.exactFractions !== false;\n\n if (exactFractions && isFinite(n) && fraction) {\n var f = fraction(n);\n var fractionsLimit = options && typeof options.fractionsLimit === 'number' ? options.fractionsLimit : Infinity; // no limit by default\n\n if (f.valueOf() === n && f.n < fractionsLimit && f.d < fractionsLimit) {\n return f;\n }\n }\n\n return n;\n } // Convert numbers to a preferred number type in preference order: Fraction, number, Complex\n // BigNumbers are left alone\n\n\n var _toNumber = typed({\n 'string, Object': function stringObject(s, options) {\n if (config.number === 'BigNumber') {\n if (bignumber === undefined) {\n (0, _noop.noBignumber)();\n }\n\n return bignumber(s);\n } else if (config.number === 'Fraction') {\n if (fraction === undefined) {\n (0, _noop.noFraction)();\n }\n\n return fraction(s);\n } else {\n var n = parseFloat(s);\n return _exactFraction(n, options);\n }\n },\n 'Fraction, Object': function FractionObject(s, options) {\n return s;\n },\n // we don't need options here\n 'BigNumber, Object': function BigNumberObject(s, options) {\n return s;\n },\n // we don't need options here\n 'number, Object': function numberObject(s, options) {\n return _exactFraction(s, options);\n },\n 'Complex, Object': function ComplexObject(s, options) {\n if (s.im !== 0) {\n return s;\n }\n\n return _exactFraction(s.re, options);\n },\n 'Matrix, Object': function MatrixObject(s, options) {\n return matrix(_exactFraction(s.valueOf()));\n },\n 'Array, Object': function ArrayObject(s, options) {\n return s.map(_exactFraction);\n }\n });\n\n function unaryMinusNode(n) {\n return new OperatorNode('-', 'unaryMinus', [n]);\n }\n\n function _fractionToNode(f) {\n var n;\n var vn = f.s * f.n;\n\n if (vn < 0) {\n n = new OperatorNode('-', 'unaryMinus', [new ConstantNode(-vn)]);\n } else {\n n = new ConstantNode(vn);\n }\n\n if (f.d === 1) {\n return n;\n }\n\n return new OperatorNode('/', 'divide', [n, new ConstantNode(f.d)]);\n }\n /* Handles constant indexing of ArrayNodes, matrices, and ObjectNodes */\n\n\n function _foldAccessor(obj, index, options) {\n if (!(0, _is.isIndexNode)(index)) {\n // don't know what to do with that...\n return new AccessorNode(_ensureNode(obj), _ensureNode(index));\n }\n\n if ((0, _is.isArrayNode)(obj) || (0, _is.isMatrix)(obj)) {\n var remainingDims = Array.from(index.dimensions);\n /* We will resolve constant indices one at a time, looking\n * just in the first or second dimensions because (a) arrays\n * of more than two dimensions are likely rare, and (b) pulling\n * out the third or higher dimension would be pretty intricate.\n * The price is that we miss simplifying [..3d array][x,y,1]\n */\n\n while (remainingDims.length > 0) {\n if ((0, _is.isConstantNode)(remainingDims[0]) && typeof remainingDims[0].value !== 'string') {\n var first = _toNumber(remainingDims.shift().value, options);\n\n if ((0, _is.isArrayNode)(obj)) {\n obj = obj.items[first - 1];\n } else {\n // matrix\n obj = obj.valueOf()[first - 1];\n\n if (obj instanceof Array) {\n obj = matrix(obj);\n }\n }\n } else if (remainingDims.length > 1 && (0, _is.isConstantNode)(remainingDims[1]) && typeof remainingDims[1].value !== 'string') {\n var second = _toNumber(remainingDims[1].value, options);\n\n var tryItems = [];\n var fromItems = (0, _is.isArrayNode)(obj) ? obj.items : obj.valueOf();\n\n var _iterator = _createForOfIteratorHelper(fromItems),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n\n if ((0, _is.isArrayNode)(item)) {\n tryItems.push(item.items[second - 1]);\n } else if ((0, _is.isMatrix)(obj)) {\n tryItems.push(item[second - 1]);\n } else {\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n if (tryItems.length === fromItems.length) {\n if ((0, _is.isArrayNode)(obj)) {\n obj = new ArrayNode(tryItems);\n } else {\n // matrix\n obj = matrix(tryItems);\n }\n\n remainingDims.splice(1, 1);\n } else {\n // extracting slice along 2nd dimension failed, give up\n break;\n }\n } else {\n // neither 1st or 2nd dimension is constant, give up\n break;\n }\n }\n\n if (remainingDims.length === index.dimensions.length) {\n /* No successful constant indexing */\n return new AccessorNode(_ensureNode(obj), index);\n }\n\n if (remainingDims.length > 0) {\n /* Indexed some but not all dimensions */\n index = new IndexNode(remainingDims);\n return new AccessorNode(_ensureNode(obj), index);\n }\n /* All dimensions were constant, access completely resolved */\n\n\n return obj;\n }\n\n if ((0, _is.isObjectNode)(obj) && index.dimensions.length === 1 && (0, _is.isConstantNode)(index.dimensions[0])) {\n var key = index.dimensions[0].value;\n\n if (key in obj.properties) {\n return obj.properties[key];\n }\n\n return new ConstantNode(); // undefined\n }\n /* Don't know how to index this sort of obj, at least not with this index */\n\n\n return new AccessorNode(_ensureNode(obj), index);\n }\n /*\n * Create a binary tree from a list of Fractions and Nodes.\n * Tries to fold Fractions by evaluating them until the first Node in the list is hit, so\n * `args` should be sorted to have the Fractions at the start (if the operator is commutative).\n * @param args - list of Fractions and Nodes\n * @param fn - evaluator for the binary operation evaluator that accepts two Fractions\n * @param makeNode - creates a binary OperatorNode/FunctionNode from a list of child Nodes\n * if args.length is 1, returns args[0]\n * @return - Either a Node representing a binary expression or Fraction\n */\n\n\n function foldOp(fn, args, makeNode, options) {\n return args.reduce(function (a, b) {\n if (!(0, _is.isNode)(a) && !(0, _is.isNode)(b)) {\n try {\n return _eval(fn, [a, b], options);\n } catch (ignoreandcontinue) {}\n\n a = _toNode(a);\n b = _toNode(b);\n } else if (!(0, _is.isNode)(a)) {\n a = _toNode(a);\n } else if (!(0, _is.isNode)(b)) {\n b = _toNode(b);\n }\n\n return makeNode([a, b]);\n });\n } // destroys the original node and returns a folded one\n\n\n function foldFraction(node, options) {\n switch (node.type) {\n case 'SymbolNode':\n return node;\n\n case 'ConstantNode':\n switch ((0, _typeof2.default)(node.value)) {\n case 'number':\n return _toNumber(node.value, options);\n\n case 'string':\n return node.value;\n\n default:\n if (!isNaN(node.value)) return _toNumber(node.value, options);\n }\n\n return node;\n\n case 'FunctionNode':\n if (mathWithTransform[node.name] && mathWithTransform[node.name].rawArgs) {\n return node;\n }\n\n {\n // Process operators as OperatorNode\n var operatorFunctions = ['add', 'multiply'];\n\n if (operatorFunctions.indexOf(node.name) === -1) {\n var args = node.args.map(function (arg) {\n return foldFraction(arg, options);\n }); // If all args are numbers\n\n if (!args.some(_is.isNode)) {\n try {\n return _eval(node.name, args, options);\n } catch (ignoreandcontinue) {}\n } // Size of a matrix does not depend on entries\n\n\n if (node.name === 'size' && args.length === 1 && (0, _is.isArrayNode)(args[0])) {\n var sz = [];\n var section = args[0];\n\n while ((0, _is.isArrayNode)(section)) {\n sz.push(section.items.length);\n section = section.items[0];\n }\n\n return matrix(sz);\n } // Convert all args to nodes and construct a symbolic function call\n\n\n return new FunctionNode(node.name, args.map(_ensureNode));\n } else {// treat as operator\n }\n }\n\n /* falls through */\n\n case 'OperatorNode':\n {\n var fn = node.fn.toString();\n\n var _args;\n\n var res;\n var makeNode = createMakeNodeFunction(node);\n\n if ((0, _is.isOperatorNode)(node) && node.isUnary()) {\n _args = [foldFraction(node.args[0], options)];\n\n if (!(0, _is.isNode)(_args[0])) {\n res = _eval(fn, _args, options);\n } else {\n res = makeNode(_args);\n }\n } else if (isAssociative(node, options.context)) {\n _args = allChildren(node, options.context);\n _args = _args.map(function (arg) {\n return foldFraction(arg, options);\n });\n\n if (isCommutative(fn, options.context)) {\n // commutative binary operator\n var consts = [];\n var vars = [];\n\n for (var i = 0; i < _args.length; i++) {\n if (!(0, _is.isNode)(_args[i])) {\n consts.push(_args[i]);\n } else {\n vars.push(_args[i]);\n }\n }\n\n if (consts.length > 1) {\n res = foldOp(fn, consts, makeNode, options);\n vars.unshift(res);\n res = foldOp(fn, vars, makeNode, options);\n } else {\n // we won't change the children order since it's not neccessary\n res = foldOp(fn, _args, makeNode, options);\n }\n } else {\n // non-commutative binary operator\n res = foldOp(fn, _args, makeNode, options);\n }\n } else {\n // non-associative binary operator\n _args = node.args.map(function (arg) {\n return foldFraction(arg, options);\n });\n res = foldOp(fn, _args, makeNode, options);\n }\n\n return res;\n }\n\n case 'ParenthesisNode':\n // remove the uneccessary parenthesis\n return foldFraction(node.content, options);\n\n case 'AccessorNode':\n return _foldAccessor(foldFraction(node.object, options), foldFraction(node.index, options), options);\n\n case 'ArrayNode':\n {\n var foldItems = node.items.map(function (item) {\n return foldFraction(item, options);\n });\n\n if (foldItems.some(_is.isNode)) {\n return new ArrayNode(foldItems.map(_ensureNode));\n }\n /* All literals -- return a Matrix so we can operate on it */\n\n\n return matrix(foldItems);\n }\n\n case 'IndexNode':\n {\n return new IndexNode(node.dimensions.map(function (n) {\n return simplifyConstant(n, options);\n }));\n }\n\n case 'ObjectNode':\n {\n var foldProps = {};\n\n for (var prop in node.properties) {\n foldProps[prop] = simplifyConstant(node.properties[prop], options);\n }\n\n return new ObjectNode(foldProps);\n }\n\n case 'AssignmentNode':\n /* falls through */\n\n case 'BlockNode':\n /* falls through */\n\n case 'FunctionAssignmentNode':\n /* falls through */\n\n case 'RangeNode':\n /* falls through */\n\n case 'ConditionalNode':\n /* falls through */\n\n default:\n throw new Error(\"Unimplemented node type in simplifyConstant: \".concat(node.type));\n }\n }\n\n return simplifyConstant;\n});\nexports.createSimplifyConstant = createSimplifyConstant;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSimplify = void 0;\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _util = require(\"./simplify/util.js\");\n\nvar _simplifyConstant = require(\"./simplify/simplifyConstant.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _map = require(\"../../utils/map.js\");\n\nvar name = 'simplify';\nvar dependencies = ['config', 'typed', 'parse', 'add', 'subtract', 'multiply', 'divide', 'pow', 'isZero', 'equal', 'resolve', 'simplifyCore', '?fraction', '?bignumber', 'mathWithTransform', 'matrix', 'AccessorNode', 'ArrayNode', 'ConstantNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'ParenthesisNode', 'SymbolNode'];\nvar createSimplify = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n typed = _ref.typed,\n parse = _ref.parse,\n add = _ref.add,\n subtract = _ref.subtract,\n multiply = _ref.multiply,\n divide = _ref.divide,\n pow = _ref.pow,\n isZero = _ref.isZero,\n equal = _ref.equal,\n resolve = _ref.resolve,\n simplifyCore = _ref.simplifyCore,\n fraction = _ref.fraction,\n bignumber = _ref.bignumber,\n mathWithTransform = _ref.mathWithTransform,\n matrix = _ref.matrix,\n AccessorNode = _ref.AccessorNode,\n ArrayNode = _ref.ArrayNode,\n ConstantNode = _ref.ConstantNode,\n FunctionNode = _ref.FunctionNode,\n IndexNode = _ref.IndexNode,\n ObjectNode = _ref.ObjectNode,\n OperatorNode = _ref.OperatorNode,\n ParenthesisNode = _ref.ParenthesisNode,\n SymbolNode = _ref.SymbolNode;\n var simplifyConstant = (0, _simplifyConstant.createSimplifyConstant)({\n typed: typed,\n config: config,\n mathWithTransform: mathWithTransform,\n matrix: matrix,\n fraction: fraction,\n bignumber: bignumber,\n AccessorNode: AccessorNode,\n ArrayNode: ArrayNode,\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n IndexNode: IndexNode,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n SymbolNode: SymbolNode\n });\n\n var _createUtil = (0, _util.createUtil)({\n FunctionNode: FunctionNode,\n OperatorNode: OperatorNode,\n SymbolNode: SymbolNode\n }),\n hasProperty = _createUtil.hasProperty,\n isCommutative = _createUtil.isCommutative,\n isAssociative = _createUtil.isAssociative,\n mergeContext = _createUtil.mergeContext,\n flatten = _createUtil.flatten,\n unflattenr = _createUtil.unflattenr,\n unflattenl = _createUtil.unflattenl,\n createMakeNodeFunction = _createUtil.createMakeNodeFunction,\n defaultContext = _createUtil.defaultContext,\n realContext = _createUtil.realContext,\n positiveContext = _createUtil.positiveContext;\n /**\n * Simplify an expression tree.\n *\n * A list of rules are applied to an expression, repeating over the list until\n * no further changes are made.\n * It's possible to pass a custom set of rules to the function as second\n * argument. A rule can be specified as an object, string, or function:\n *\n * const rules = [\n * { l: 'n1*n3 + n2*n3', r: '(n1+n2)*n3' },\n * 'n1*n3 + n2*n3 -> (n1+n2)*n3',\n * function (node) {\n * // ... return a new node or return the node unchanged\n * return node\n * }\n * ]\n *\n * String and object rules consist of a left and right pattern. The left is\n * used to match against the expression and the right determines what matches\n * are replaced with. The main difference between a pattern and a normal\n * expression is that variables starting with the following characters are\n * interpreted as wildcards:\n *\n * - 'n' - matches any Node\n * - 'c' - matches any ConstantNode\n * - 'v' - matches any Node that is not a ConstantNode\n *\n * The default list of rules is exposed on the function as `simplify.rules`\n * and can be used as a basis to built a set of custom rules.\n *\n * To specify a rule as a string, separate the left and right pattern by '->'\n * When specifying a rule as an object, the following keys are meaningful:\n * - l - the left pattern\n * - r - the right pattern\n * - s - in lieu of l and r, the string form that is broken at -> to give them\n * - repeat - whether to repeat this rule until the expression stabilizes\n * - assuming - gives a context object, as in the 'context' option to\n * simplify. Every property in the context object must match the current\n * context in order, or else the rule will not be applied.\n * - imposeContext - gives a context object, as in the 'context' option to\n * simplify. Any settings specified will override the incoming context\n * for all matches of this rule.\n *\n * For more details on the theory, see:\n *\n * - [Strategies for simplifying math expressions (Stackoverflow)](https://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)\n * - [Symbolic computation - Simplification (Wikipedia)](https://en.wikipedia.org/wiki/Symbolic_computation#Simplification)\n *\n * An optional `options` argument can be passed as last argument of `simplify`.\n * Currently available options (defaults in parentheses):\n * - `consoleDebug` (false): whether to write the expression being simplified\n * and any changes to it, along with the rule responsible, to console\n * - `context` (simplify.defaultContext): an object giving properties of\n * each operator, which determine what simplifications are allowed. The\n * currently meaningful properties are commutative, associative,\n * total (whether the operation is defined for all arguments), and\n * trivial (whether the operation applied to a single argument leaves\n * that argument unchanged). The default context is very permissive and\n * allows almost all simplifications. Only properties differing from\n * the default need to be specified; the default context is used as a\n * fallback. Additional contexts `simplify.realContext` and\n * `simplify.positiveContext` are supplied to cause simplify to perform\n * just simplifications guaranteed to preserve all values of the expression\n * assuming all variables and subexpressions are real numbers or\n * positive real numbers, respectively. (Note that these are in some cases\n * more restrictive than the default context; for example, the default\n * context will allow `x/x` to simplify to 1, whereas\n * `simplify.realContext` will not, as `0/0` is not equal to 1.)\n * - `exactFractions` (true): whether to try to convert all constants to\n * exact rational numbers.\n * - `fractionsLimit` (10000): when `exactFractions` is true, constants will\n * be expressed as fractions only when both numerator and denominator\n * are smaller than `fractionsLimit`.\n *\n * Syntax:\n *\n * simplify(expr)\n * simplify(expr, rules)\n * simplify(expr, rules)\n * simplify(expr, rules, scope)\n * simplify(expr, rules, scope, options)\n * simplify(expr, scope)\n * simplify(expr, scope, options)\n *\n * Examples:\n *\n * math.simplify('2 * 1 * x ^ (2 - 1)') // Node \"2 * x\"\n * math.simplify('2 * 3 * x', {x: 4}) // Node \"24\"\n * const f = math.parse('2 * 1 * x ^ (2 - 1)')\n * math.simplify(f) // Node \"2 * x\"\n * math.simplify('0.4 * x', {}, {exactFractions: true}) // Node \"x * 2 / 5\"\n * math.simplify('0.4 * x', {}, {exactFractions: false}) // Node \"0.4 * x\"\n *\n * See also:\n *\n * simplifyCore, derivative, evaluate, parse, rationalize, resolve\n *\n * @param {Node | string} expr\n * The expression to be simplified\n * @param {Array<{l:string, r: string} | string | function>} [rules]\n * Optional list with custom rules\n * @return {Node} Returns the simplified form of `expr`\n */\n\n\n var simplify = typed('simplify', {\n string: function string(expr) {\n return this(parse(expr), this.rules, (0, _map.createEmptyMap)(), {});\n },\n 'string, Map | Object': function stringMapObject(expr, scope) {\n return this(parse(expr), this.rules, scope, {});\n },\n 'string, Map | Object, Object': function stringMapObjectObject(expr, scope, options) {\n return this(parse(expr), this.rules, scope, options);\n },\n 'string, Array': function stringArray(expr, rules) {\n return this(parse(expr), rules, (0, _map.createEmptyMap)(), {});\n },\n 'string, Array, Map | Object': function stringArrayMapObject(expr, rules, scope) {\n return this(parse(expr), rules, scope, {});\n },\n 'string, Array, Map | Object, Object': function stringArrayMapObjectObject(expr, rules, scope, options) {\n return this(parse(expr), rules, scope, options);\n },\n 'Node, Map | Object': function NodeMapObject(expr, scope) {\n return this(expr, this.rules, scope, {});\n },\n 'Node, Map | Object, Object': function NodeMapObjectObject(expr, scope, options) {\n return this(expr, this.rules, scope, options);\n },\n Node: function Node(expr) {\n return this(expr, this.rules, (0, _map.createEmptyMap)(), {});\n },\n 'Node, Array': function NodeArray(expr, rules) {\n return this(expr, rules, (0, _map.createEmptyMap)(), {});\n },\n 'Node, Array, Map | Object': function NodeArrayMapObject(expr, rules, scope) {\n return this(expr, rules, scope, {});\n },\n 'Node, Array, Object, Object': function NodeArrayObjectObject(expr, rules, scope, options) {\n return this(expr, rules, (0, _map.createMap)(scope), options);\n },\n 'Node, Array, Map, Object': function NodeArrayMapObject(expr, rules, scope, options) {\n var debug = options.consoleDebug;\n rules = _buildRules(rules, options.context);\n var res = resolve(expr, scope);\n res = removeParens(res);\n var visited = {};\n var str = res.toString({\n parenthesis: 'all'\n });\n\n while (!visited[str]) {\n visited[str] = true;\n _lastsym = 0; // counter for placeholder symbols\n\n var laststr = str;\n if (debug) console.log('Working on: ', str);\n\n for (var i = 0; i < rules.length; i++) {\n var rulestr = '';\n\n if (typeof rules[i] === 'function') {\n res = rules[i](res, options);\n if (debug) rulestr = rules[i].name;\n } else {\n flatten(res, options.context);\n res = applyRule(res, rules[i], options.context);\n\n if (debug) {\n rulestr = \"\".concat(rules[i].l.toString(), \" -> \").concat(rules[i].r.toString());\n }\n }\n\n if (debug) {\n var newstr = res.toString({\n parenthesis: 'all'\n });\n\n if (newstr !== laststr) {\n console.log('Applying', rulestr, 'produced', newstr);\n laststr = newstr;\n }\n }\n /* Use left-heavy binary tree internally,\n * since custom rule functions may expect it\n */\n\n\n unflattenl(res, options.context);\n }\n\n str = res.toString({\n parenthesis: 'all'\n });\n }\n\n return res;\n }\n });\n simplify.defaultContext = defaultContext;\n simplify.realContext = realContext;\n simplify.positiveContext = positiveContext;\n\n function removeParens(node) {\n return node.transform(function (node, path, parent) {\n return (0, _is.isParenthesisNode)(node) ? removeParens(node.content) : node;\n });\n } // All constants that are allowed in rules\n\n\n var SUPPORTED_CONSTANTS = {\n true: true,\n false: true,\n e: true,\n i: true,\n Infinity: true,\n LN2: true,\n LN10: true,\n LOG2E: true,\n LOG10E: true,\n NaN: true,\n phi: true,\n pi: true,\n SQRT1_2: true,\n SQRT2: true,\n tau: true // null: false,\n // undefined: false,\n // version: false,\n\n }; // Array of strings, used to build the ruleSet.\n // Each l (left side) and r (right side) are parsed by\n // the expression parser into a node tree.\n // Left hand sides are matched to subtrees within the\n // expression to be parsed and replaced with the right\n // hand side.\n // TODO: Add support for constraints on constants (either in the form of a '=' expression or a callback [callback allows things like comparing symbols alphabetically])\n // To evaluate lhs constants for rhs constants, use: { l: 'c1+c2', r: 'c3', evaluate: 'c3 = c1 + c2' }. Multiple assignments are separated by ';' in block format.\n // It is possible to get into an infinite loop with conflicting rules\n\n simplify.rules = [simplifyCore, // { l: 'n+0', r: 'n' }, // simplifyCore\n // { l: 'n^0', r: '1' }, // simplifyCore\n // { l: '0*n', r: '0' }, // simplifyCore\n // { l: 'n/n', r: '1'}, // simplifyCore\n // { l: 'n^1', r: 'n' }, // simplifyCore\n // { l: '+n1', r:'n1' }, // simplifyCore\n // { l: 'n--n1', r:'n+n1' }, // simplifyCore\n {\n l: 'log(e)',\n r: '1'\n }, // temporary rules\n // Note initially we tend constants to the right because like-term\n // collection prefers the left, and we would rather collect nonconstants\n {\n s: 'n-n1 -> n+-n1',\n // temporarily replace 'subtract' so we can further flatten the 'add' operator\n assuming: {\n subtract: {\n total: true\n }\n }\n }, {\n s: 'n-n -> 0',\n // partial alternative when we can't always subtract\n assuming: {\n subtract: {\n total: false\n }\n }\n }, {\n s: '-(c*v) -> v * (-c)',\n // make non-constant terms positive\n assuming: {\n multiply: {\n commutative: true\n },\n subtract: {\n total: true\n }\n }\n }, {\n s: '-(c*v) -> (-c) * v',\n // non-commutative version, part 1\n assuming: {\n multiply: {\n commutative: false\n },\n subtract: {\n total: true\n }\n }\n }, {\n s: '-(v*c) -> v * (-c)',\n // non-commutative version, part 2\n assuming: {\n multiply: {\n commutative: false\n },\n subtract: {\n total: true\n }\n }\n }, {\n l: '-(n1/n2)',\n r: '-n1/n2'\n }, {\n l: '-v',\n r: 'v * (-1)'\n }, // finish making non-constant terms positive\n {\n l: '(n1 + n2)*(-1)',\n r: 'n1*(-1) + n2*(-1)',\n repeat: true\n }, // expand negations to achieve as much sign cancellation as possible\n {\n l: 'n/n1^n2',\n r: 'n*n1^-n2'\n }, // temporarily replace 'divide' so we can further flatten the 'multiply' operator\n {\n l: 'n/n1',\n r: 'n*n1^-1'\n }, {\n s: '(n1*n2)^n3 -> n1^n3 * n2^n3',\n assuming: {\n multiply: {\n commutative: true\n }\n }\n }, {\n s: '(n1*n2)^(-1) -> n2^(-1) * n1^(-1)',\n assuming: {\n multiply: {\n commutative: false\n }\n }\n }, // expand nested exponentiation\n {\n s: '(n ^ n1) ^ n2 -> n ^ (n1 * n2)',\n assuming: {\n divide: {\n total: true\n }\n } // 1/(1/n) = n needs 1/n to exist\n\n }, // collect like factors; into a sum, only do this for nonconstants\n {\n l: ' v * ( v * n1 + n2)',\n r: 'v^2 * n1 + v * n2'\n }, {\n s: ' v * (v^n4 * n1 + n2) -> v^(1+n4) * n1 + v * n2',\n assuming: {\n divide: {\n total: true\n }\n } // v*1/v = v^(1+-1) needs 1/v\n\n }, {\n s: 'v^n3 * ( v * n1 + n2) -> v^(n3+1) * n1 + v^n3 * n2',\n assuming: {\n divide: {\n total: true\n }\n }\n }, {\n s: 'v^n3 * (v^n4 * n1 + n2) -> v^(n3+n4) * n1 + v^n3 * n2',\n assuming: {\n divide: {\n total: true\n }\n }\n }, {\n l: 'n*n',\n r: 'n^2'\n }, {\n s: 'n * n^n1 -> n^(n1+1)',\n assuming: {\n divide: {\n total: true\n }\n } // n*1/n = n^(-1+1) needs 1/n\n\n }, {\n s: 'n^n1 * n^n2 -> n^(n1+n2)',\n assuming: {\n divide: {\n total: true\n }\n } // ditto for n^2*1/n^2\n\n }, // Unfortunately, to deal with more complicated cancellations, it\n // becomes necessary to simplify constants twice per pass. It's not\n // terribly expensive compared to matching rules, so this should not\n // pose a performance problem.\n simplifyConstant, // First: before collecting like terms\n // collect like terms\n {\n s: 'n+n -> 2*n',\n assuming: {\n add: {\n total: true\n }\n } // 2 = 1 + 1 needs to exist\n\n }, {\n l: 'n+-n',\n r: '0'\n }, {\n l: 'v*n + v',\n r: 'v*(n+1)'\n }, // NOTE: leftmost position is special:\n {\n l: 'n3*n1 + n3*n2',\n r: 'n3*(n1+n2)'\n }, // All sub-monomials tried there.\n {\n l: 'n3^(-n4)*n1 + n3 * n2',\n r: 'n3^(-n4)*(n1 + n3^(n4+1) *n2)'\n }, {\n l: 'n3^(-n4)*n1 + n3^n5 * n2',\n r: 'n3^(-n4)*(n1 + n3^(n4+n5)*n2)'\n }, {\n s: 'n*v + v -> (n+1)*v',\n // noncommutative additional cases\n assuming: {\n multiply: {\n commutative: false\n }\n }\n }, {\n s: 'n1*n3 + n2*n3 -> (n1+n2)*n3',\n assuming: {\n multiply: {\n commutative: false\n }\n }\n }, {\n s: 'n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)',\n assuming: {\n multiply: {\n commutative: false\n }\n }\n }, {\n s: 'n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)',\n assuming: {\n multiply: {\n commutative: false\n }\n }\n }, {\n l: 'n*c + c',\n r: '(n+1)*c'\n }, {\n s: 'c*n + c -> c*(n+1)',\n assuming: {\n multiply: {\n commutative: false\n }\n }\n }, simplifyConstant, // Second: before returning expressions to \"standard form\"\n // make factors positive (and undo 'make non-constant terms positive')\n {\n s: '(-n)*n1 -> -(n*n1)',\n assuming: {\n subtract: {\n total: true\n }\n }\n }, {\n s: 'n1*(-n) -> -(n1*n)',\n // in case * non-commutative\n assuming: {\n subtract: {\n total: true\n },\n multiply: {\n commutative: false\n }\n }\n }, // final ordering of constants\n {\n s: 'c+v -> v+c',\n assuming: {\n add: {\n commutative: true\n }\n },\n imposeContext: {\n add: {\n commutative: false\n }\n }\n }, {\n s: 'v*c -> c*v',\n assuming: {\n multiply: {\n commutative: true\n }\n },\n imposeContext: {\n multiply: {\n commutative: false\n }\n }\n }, // undo temporary rules\n // { l: '(-1) * n', r: '-n' }, // #811 added test which proved this is redundant\n {\n l: 'n+-n1',\n r: 'n-n1'\n }, // undo replace 'subtract'\n {\n s: 'n*(n1^-1) -> n/n1',\n // undo replace 'divide'; for * commutative\n assuming: {\n multiply: {\n commutative: true\n }\n } // o.w. / not conventional\n\n }, {\n s: 'n*n1^-n2 -> n/n1^n2',\n assuming: {\n multiply: {\n commutative: true\n }\n } // o.w. / not conventional\n\n }, {\n s: 'n^-1 -> 1/n',\n assuming: {\n multiply: {\n commutative: true\n }\n } // o.w. / not conventional\n\n }, {\n l: 'n^1',\n r: 'n'\n }, // can be produced by power cancellation\n {\n s: 'n*(n1/n2) -> (n*n1)/n2',\n // '*' before '/'\n assuming: {\n multiply: {\n associative: true\n }\n }\n }, {\n s: 'n-(n1+n2) -> n-n1-n2',\n // '-' before '+'\n assuming: {\n addition: {\n associative: true,\n commutative: true\n }\n }\n }, // { l: '(n1/n2)/n3', r: 'n1/(n2*n3)' },\n // { l: '(n*n1)/(n*n2)', r: 'n1/n2' },\n // simplifyConstant can leave an extra factor of 1, which can always\n // be eliminated, since the identity always commutes\n {\n l: '1*n',\n r: 'n',\n imposeContext: {\n multiply: {\n commutative: true\n }\n }\n }, {\n s: 'n1/(n2/n3) -> (n1*n3)/n2',\n assuming: {\n multiply: {\n associative: true\n }\n }\n }, {\n l: 'n1/(-n2)',\n r: '-n1/n2'\n }];\n /**\n * Takes any rule object as allowed by the specification in simplify\n * and puts it in a standard form used by applyRule\n */\n\n function _canonicalizeRule(ruleObject, context) {\n var newRule = {};\n\n if (ruleObject.s) {\n var lr = ruleObject.s.split('->');\n\n if (lr.length === 2) {\n newRule.l = lr[0];\n newRule.r = lr[1];\n } else {\n throw SyntaxError('Could not parse rule: ' + ruleObject.s);\n }\n } else {\n newRule.l = ruleObject.l;\n newRule.r = ruleObject.r;\n }\n\n newRule.l = removeParens(parse(newRule.l));\n newRule.r = removeParens(parse(newRule.r));\n\n for (var _i = 0, _arr = ['imposeContext', 'repeat', 'assuming']; _i < _arr.length; _i++) {\n var prop = _arr[_i];\n\n if (prop in ruleObject) {\n newRule[prop] = ruleObject[prop];\n }\n }\n\n if (ruleObject.evaluate) {\n newRule.evaluate = parse(ruleObject.evaluate);\n }\n\n if (isAssociative(newRule.l, context)) {\n var makeNode = createMakeNodeFunction(newRule.l);\n\n var expandsym = _getExpandPlaceholderSymbol();\n\n newRule.expanded = {};\n newRule.expanded.l = makeNode([newRule.l.clone(), expandsym]); // Push the expandsym into the deepest possible branch.\n // This helps to match the newRule against nodes returned from getSplits() later on.\n\n flatten(newRule.expanded.l, context);\n unflattenr(newRule.expanded.l, context);\n newRule.expanded.r = makeNode([newRule.r, expandsym]);\n }\n\n return newRule;\n }\n /**\n * Parse the string array of rules into nodes\n *\n * Example syntax for rules:\n *\n * Position constants to the left in a product:\n * { l: 'n1 * c1', r: 'c1 * n1' }\n * n1 is any Node, and c1 is a ConstantNode.\n *\n * Apply difference of squares formula:\n * { l: '(n1 - n2) * (n1 + n2)', r: 'n1^2 - n2^2' }\n * n1, n2 mean any Node.\n *\n * Short hand notation:\n * 'n1 * c1 -> c1 * n1'\n */\n\n\n function _buildRules(rules, context) {\n // Array of rules to be used to simplify expressions\n var ruleSet = [];\n\n for (var i = 0; i < rules.length; i++) {\n var rule = rules[i];\n var newRule = void 0;\n var ruleType = (0, _typeof2.default)(rule);\n\n switch (ruleType) {\n case 'string':\n rule = {\n s: rule\n };\n\n /* falls through */\n\n case 'object':\n newRule = _canonicalizeRule(rule, context);\n break;\n\n case 'function':\n newRule = rule;\n break;\n\n default:\n throw TypeError('Unsupported type of rule: ' + ruleType);\n } // console.log('Adding rule: ' + rules[i])\n // console.log(newRule)\n\n\n ruleSet.push(newRule);\n }\n\n return ruleSet;\n }\n\n var _lastsym = 0;\n\n function _getExpandPlaceholderSymbol() {\n return new SymbolNode('_p' + _lastsym++);\n }\n\n function mapRule(nodes, rule, context) {\n var resNodes = nodes;\n\n if (nodes) {\n for (var i = 0; i < nodes.length; ++i) {\n var newNode = applyRule(nodes[i], rule, context);\n\n if (newNode !== nodes[i]) {\n if (resNodes === nodes) {\n resNodes = nodes.slice();\n }\n\n resNodes[i] = newNode;\n }\n }\n }\n\n return resNodes;\n }\n /**\n * Returns a simplfied form of node, or the original node if no simplification was possible.\n *\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} node\n * @param {Object | Function} rule\n * @param {Object} context -- information about assumed properties of operators\n * @return {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} The simplified form of `expr`, or the original node if no simplification was possible.\n */\n\n\n function applyRule(node, rule, context) {\n // console.log('Entering applyRule(\"', rule.l.toString({parenthesis:'all'}), '->', rule.r.toString({parenthesis:'all'}), '\",', node.toString({parenthesis:'all'}),')')\n // check that the assumptions for this rule are satisfied by the current\n // context:\n if (rule.assuming) {\n for (var symbol in rule.assuming) {\n for (var property in rule.assuming[symbol]) {\n if (hasProperty(symbol, property, context) !== rule.assuming[symbol][property]) {\n return node;\n }\n }\n }\n }\n\n var mergedContext = mergeContext(rule.imposeContext, context); // Do not clone node unless we find a match\n\n var res = node; // First replace our child nodes with their simplified versions\n // If a child could not be simplified, applying the rule to it\n // will have no effect since the node is returned unchanged\n\n if (res instanceof OperatorNode || res instanceof FunctionNode) {\n var newArgs = mapRule(res.args, rule, context);\n\n if (newArgs !== res.args) {\n res = res.clone();\n res.args = newArgs;\n }\n } else if (res instanceof ParenthesisNode) {\n if (res.content) {\n var newContent = applyRule(res.content, rule, context);\n\n if (newContent !== res.content) {\n res = new ParenthesisNode(newContent);\n }\n }\n } else if (res instanceof ArrayNode) {\n var newItems = mapRule(res.items, rule, context);\n\n if (newItems !== res.items) {\n res = new ArrayNode(newItems);\n }\n } else if (res instanceof AccessorNode) {\n var newObj = res.object;\n\n if (res.object) {\n newObj = applyRule(res.object, rule, context);\n }\n\n var newIndex = res.index;\n\n if (res.index) {\n newIndex = applyRule(res.index, rule, context);\n }\n\n if (newObj !== res.object || newIndex !== res.index) {\n res = new AccessorNode(newObj, newIndex);\n }\n } else if (res instanceof IndexNode) {\n var newDims = mapRule(res.dimensions, rule, context);\n\n if (newDims !== res.dimensions) {\n res = new IndexNode(newDims);\n }\n } else if (res instanceof ObjectNode) {\n var changed = false;\n var newProps = {};\n\n for (var prop in res.properties) {\n newProps[prop] = applyRule(res.properties[prop], rule, context);\n\n if (newProps[prop] !== res.properties[prop]) {\n changed = true;\n }\n }\n\n if (changed) {\n res = new ObjectNode(newProps);\n }\n } // Try to match a rule against this node\n\n\n var repl = rule.r;\n\n var matches = _ruleMatch(rule.l, res, mergedContext)[0]; // If the rule is associative operator, we can try matching it while allowing additional terms.\n // This allows us to match rules like 'n+n' to the expression '(1+x)+x' or even 'x+1+x' if the operator is commutative.\n\n\n if (!matches && rule.expanded) {\n repl = rule.expanded.r;\n matches = _ruleMatch(rule.expanded.l, res, mergedContext)[0];\n }\n\n if (matches) {\n // const before = res.toString({parenthesis: 'all'})\n // Create a new node by cloning the rhs of the matched rule\n // we keep any implicit multiplication state if relevant\n var implicit = res.implicit;\n res = repl.clone();\n\n if (implicit && 'implicit' in repl) {\n res.implicit = true;\n } // Replace placeholders with their respective nodes without traversing deeper into the replaced nodes\n\n\n res = res.transform(function (node) {\n if (node.isSymbolNode && (0, _object.hasOwnProperty)(matches.placeholders, node.name)) {\n return matches.placeholders[node.name].clone();\n } else {\n return node;\n }\n }); // const after = res.toString({parenthesis: 'all'})\n // console.log('Simplified ' + before + ' to ' + after)\n }\n\n if (rule.repeat && res !== node) {\n res = applyRule(res, rule, context);\n }\n\n return res;\n }\n /**\n * Get (binary) combinations of a flattened binary node\n * e.g. +(node1, node2, node3) -> [\n * +(node1, +(node2, node3)),\n * +(node2, +(node1, node3)),\n * +(node3, +(node1, node2))]\n *\n */\n\n\n function getSplits(node, context) {\n var res = [];\n var right, rightArgs;\n var makeNode = createMakeNodeFunction(node);\n\n if (isCommutative(node, context)) {\n for (var i = 0; i < node.args.length; i++) {\n rightArgs = node.args.slice(0);\n rightArgs.splice(i, 1);\n right = rightArgs.length === 1 ? rightArgs[0] : makeNode(rightArgs);\n res.push(makeNode([node.args[i], right]));\n }\n } else {\n // Keep order, but try all parenthesizations\n for (var _i2 = 1; _i2 < node.args.length; _i2++) {\n var left = node.args[0];\n\n if (_i2 > 1) {\n left = makeNode(node.args.slice(0, _i2));\n }\n\n rightArgs = node.args.slice(_i2);\n right = rightArgs.length === 1 ? rightArgs[0] : makeNode(rightArgs);\n res.push(makeNode([left, right]));\n }\n }\n\n return res;\n }\n /**\n * Returns the set union of two match-placeholders or null if there is a conflict.\n */\n\n\n function mergeMatch(match1, match2) {\n var res = {\n placeholders: {}\n }; // Some matches may not have placeholders; this is OK\n\n if (!match1.placeholders && !match2.placeholders) {\n return res;\n } else if (!match1.placeholders) {\n return match2;\n } else if (!match2.placeholders) {\n return match1;\n } // Placeholders with the same key must match exactly\n\n\n for (var key in match1.placeholders) {\n if ((0, _object.hasOwnProperty)(match1.placeholders, key)) {\n res.placeholders[key] = match1.placeholders[key];\n\n if ((0, _object.hasOwnProperty)(match2.placeholders, key)) {\n if (!_exactMatch(match1.placeholders[key], match2.placeholders[key])) {\n return null;\n }\n }\n }\n }\n\n for (var _key in match2.placeholders) {\n if ((0, _object.hasOwnProperty)(match2.placeholders, _key)) {\n res.placeholders[_key] = match2.placeholders[_key];\n }\n }\n\n return res;\n }\n /**\n * Combine two lists of matches by applying mergeMatch to the cartesian product of two lists of matches.\n * Each list represents matches found in one child of a node.\n */\n\n\n function combineChildMatches(list1, list2) {\n var res = [];\n\n if (list1.length === 0 || list2.length === 0) {\n return res;\n }\n\n var merged;\n\n for (var i1 = 0; i1 < list1.length; i1++) {\n for (var i2 = 0; i2 < list2.length; i2++) {\n merged = mergeMatch(list1[i1], list2[i2]);\n\n if (merged) {\n res.push(merged);\n }\n }\n }\n\n return res;\n }\n /**\n * Combine multiple lists of matches by applying mergeMatch to the cartesian product of two lists of matches.\n * Each list represents matches found in one child of a node.\n * Returns a list of unique matches.\n */\n\n\n function mergeChildMatches(childMatches) {\n if (childMatches.length === 0) {\n return childMatches;\n }\n\n var sets = childMatches.reduce(combineChildMatches);\n var uniqueSets = [];\n var unique = {};\n\n for (var i = 0; i < sets.length; i++) {\n var s = JSON.stringify(sets[i]);\n\n if (!unique[s]) {\n unique[s] = true;\n uniqueSets.push(sets[i]);\n }\n }\n\n return uniqueSets;\n }\n /**\n * Determines whether node matches rule.\n *\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} rule\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} node\n * @param {Object} context -- provides assumed properties of operators\n * @param {Boolean} isSplit -- whether we are in process of splitting an\n * n-ary operator node into possible binary combinations.\n * Defaults to false.\n * @return {Object} Information about the match, if it exists.\n */\n\n\n function _ruleMatch(rule, node, context, isSplit) {\n // console.log('Entering _ruleMatch(' + JSON.stringify(rule) + ', ' + JSON.stringify(node) + ')')\n // console.log('rule = ' + rule)\n // console.log('node = ' + node)\n // console.log('Entering _ruleMatch(', rule.toString({parenthesis:'all'}), ', ', node.toString({parenthesis:'all'}), ', ', context, ')')\n var res = [{\n placeholders: {}\n }];\n\n if (rule instanceof OperatorNode && node instanceof OperatorNode || rule instanceof FunctionNode && node instanceof FunctionNode) {\n // If the rule is an OperatorNode or a FunctionNode, then node must match exactly\n if (rule instanceof OperatorNode) {\n if (rule.op !== node.op || rule.fn !== node.fn) {\n return [];\n }\n } else if (rule instanceof FunctionNode) {\n if (rule.name !== node.name) {\n return [];\n }\n } // rule and node match. Search the children of rule and node.\n\n\n if (node.args.length === 1 && rule.args.length === 1 || !isAssociative(node, context) && node.args.length === rule.args.length || isSplit) {\n // Expect non-associative operators to match exactly,\n // except in any order if operator is commutative\n var childMatches = [];\n\n for (var i = 0; i < rule.args.length; i++) {\n var childMatch = _ruleMatch(rule.args[i], node.args[i], context);\n\n if (childMatch.length === 0) {\n // Child did not match, so stop searching immediately\n break;\n } // The child matched, so add the information returned from the child to our result\n\n\n childMatches.push(childMatch);\n }\n\n if (childMatches.length !== rule.args.length) {\n if (!isCommutative(node, context) || // exact match in order needed\n rule.args.length === 1) {\n // nothing to commute\n return [];\n }\n\n if (rule.args.length > 2) {\n /* Need to generate all permutations and try them.\n * It's a bit complicated, and unlikely to come up since there\n * are very few ternary or higher operators. So punt for now.\n */\n throw new Error('permuting >2 commutative non-associative rule arguments not yet implemented');\n }\n /* Exactly two arguments, try them reversed */\n\n\n var leftMatch = _ruleMatch(rule.args[0], node.args[1], context);\n\n if (leftMatch.length === 0) {\n return [];\n }\n\n var rightMatch = _ruleMatch(rule.args[1], node.args[0], context);\n\n if (rightMatch.length === 0) {\n return [];\n }\n\n childMatches = [leftMatch, rightMatch];\n }\n\n res = mergeChildMatches(childMatches);\n } else if (node.args.length >= 2 && rule.args.length === 2) {\n // node is flattened, rule is not\n // Associative operators/functions can be split in different ways so we check if the rule matches each\n // them and return their union.\n var splits = getSplits(node, context);\n var splitMatches = [];\n\n for (var _i3 = 0; _i3 < splits.length; _i3++) {\n var matchSet = _ruleMatch(rule, splits[_i3], context, true); // recursing at the same tree depth here\n\n\n splitMatches = splitMatches.concat(matchSet);\n }\n\n return splitMatches;\n } else if (rule.args.length > 2) {\n throw Error('Unexpected non-binary associative function: ' + rule.toString());\n } else {\n // Incorrect number of arguments in rule and node, so no match\n return [];\n }\n } else if (rule instanceof SymbolNode) {\n // If the rule is a SymbolNode, then it carries a special meaning\n // according to the first character of the symbol node name.\n // c.* matches a ConstantNode\n // n.* matches any node\n if (rule.name.length === 0) {\n throw new Error('Symbol in rule has 0 length...!?');\n }\n\n if (SUPPORTED_CONSTANTS[rule.name]) {\n // built-in constant must match exactly\n if (rule.name !== node.name) {\n return [];\n }\n } else if (rule.name[0] === 'n' || rule.name.substring(0, 2) === '_p') {\n // rule matches _anything_, so assign this node to the rule.name placeholder\n // Assign node to the rule.name placeholder.\n // Our parent will check for matches among placeholders.\n res[0].placeholders[rule.name] = node;\n } else if (rule.name[0] === 'v') {\n // rule matches any variable thing (not a ConstantNode)\n if (!(0, _is.isConstantNode)(node)) {\n res[0].placeholders[rule.name] = node;\n } else {\n // Mis-match: rule was expecting something other than a ConstantNode\n return [];\n }\n } else if (rule.name[0] === 'c') {\n // rule matches any ConstantNode\n if (node instanceof ConstantNode) {\n res[0].placeholders[rule.name] = node;\n } else {\n // Mis-match: rule was expecting a ConstantNode\n return [];\n }\n } else {\n throw new Error('Invalid symbol in rule: ' + rule.name);\n }\n } else if (rule instanceof ConstantNode) {\n // Literal constant must match exactly\n if (!equal(rule.value, node.value)) {\n return [];\n }\n } else {\n // Some other node was encountered which we aren't prepared for, so no match\n return [];\n } // It's a match!\n // console.log('_ruleMatch(' + rule.toString() + ', ' + node.toString() + ') found a match')\n\n\n return res;\n }\n /**\n * Determines whether p and q (and all their children nodes) are identical.\n *\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} p\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} q\n * @return {Object} Information about the match, if it exists.\n */\n\n\n function _exactMatch(p, q) {\n if (p instanceof ConstantNode && q instanceof ConstantNode) {\n if (!equal(p.value, q.value)) {\n return false;\n }\n } else if (p instanceof SymbolNode && q instanceof SymbolNode) {\n if (p.name !== q.name) {\n return false;\n }\n } else if (p instanceof OperatorNode && q instanceof OperatorNode || p instanceof FunctionNode && q instanceof FunctionNode) {\n if (p instanceof OperatorNode) {\n if (p.op !== q.op || p.fn !== q.fn) {\n return false;\n }\n } else if (p instanceof FunctionNode) {\n if (p.name !== q.name) {\n return false;\n }\n }\n\n if (p.args.length !== q.args.length) {\n return false;\n }\n\n for (var i = 0; i < p.args.length; i++) {\n if (!_exactMatch(p.args[i], q.args[i])) {\n return false;\n }\n }\n } else {\n return false;\n }\n\n return true;\n }\n\n return simplify;\n});\nexports.createSimplify = createSimplify;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSimplifyCore = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _util = require(\"./simplify/util.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'simplifyCore';\nvar dependencies = ['equal', 'isZero', 'add', 'subtract', 'multiply', 'divide', 'pow', 'AccessorNode', 'ArrayNode', 'ConstantNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'ParenthesisNode', 'SymbolNode'];\nvar createSimplifyCore = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var equal = _ref.equal,\n isZero = _ref.isZero,\n add = _ref.add,\n subtract = _ref.subtract,\n multiply = _ref.multiply,\n divide = _ref.divide,\n pow = _ref.pow,\n AccessorNode = _ref.AccessorNode,\n ArrayNode = _ref.ArrayNode,\n ConstantNode = _ref.ConstantNode,\n FunctionNode = _ref.FunctionNode,\n IndexNode = _ref.IndexNode,\n ObjectNode = _ref.ObjectNode,\n OperatorNode = _ref.OperatorNode,\n ParenthesisNode = _ref.ParenthesisNode,\n SymbolNode = _ref.SymbolNode;\n var node0 = new ConstantNode(0);\n var node1 = new ConstantNode(1);\n\n var _createUtil = (0, _util.createUtil)({\n FunctionNode: FunctionNode,\n OperatorNode: OperatorNode,\n SymbolNode: SymbolNode\n }),\n hasProperty = _createUtil.hasProperty,\n isCommutative = _createUtil.isCommutative;\n /**\n * simplifyCore() performs single pass simplification suitable for\n * applications requiring ultimate performance. In contrast, simplify()\n * extends simplifyCore() with additional passes to provide deeper\n * simplification.\n *\n * Syntax:\n *\n * simplifyCore(expr)\n *\n * Examples:\n *\n * const f = math.parse('2 * 1 * x ^ (2 - 1)')\n * math.simpifyCore(f) // Node {2 * x}\n * math.simplify('2 * 1 * x ^ (2 - 1)', [math.simplifyCore]) // Node {2 * x}\n *\n * See also:\n *\n * simplify, resolve, derivative\n *\n * @param {Node} node\n * The expression to be simplified\n * @param {Object} options\n * Simplification options, as per simplify()\n * @return {Node} Returns expression with basic simplifications applied\n */\n\n\n function simplifyCore(node, options) {\n var context = options ? options.context : undefined;\n\n if (hasProperty(node, 'trivial', context)) {\n // This node does nothing if it has only one argument, so if so,\n // return that argument simplified\n if ((0, _is.isFunctionNode)(node) && node.args.length === 1) {\n return simplifyCore(node.args[0], options);\n } // For other node types, we try the generic methods\n\n\n var simpChild = false;\n var childCount = 0;\n node.forEach(function (c) {\n ++childCount;\n\n if (childCount === 1) {\n simpChild = simplifyCore(c, options);\n }\n });\n\n if (childCount === 1) {\n return simpChild;\n }\n }\n\n if ((0, _is.isOperatorNode)(node) && node.isUnary()) {\n var a0 = simplifyCore(node.args[0], options);\n\n if (node.op === '-') {\n // unary minus\n if ((0, _is.isOperatorNode)(a0)) {\n if (a0.isUnary() && a0.op === '-') {\n return a0.args[0];\n } else if (a0.isBinary() && a0.fn === 'subtract') {\n return new OperatorNode('-', 'subtract', [a0.args[1], a0.args[0]]);\n }\n }\n\n return new OperatorNode(node.op, node.fn, [a0]);\n }\n } else if ((0, _is.isOperatorNode)(node) && node.isBinary()) {\n var _a = simplifyCore(node.args[0], options);\n\n var a1 = simplifyCore(node.args[1], options);\n\n if (node.op === '+') {\n if ((0, _is.isConstantNode)(_a)) {\n if (isZero(_a.value)) {\n return a1;\n } else if ((0, _is.isConstantNode)(a1)) {\n return new ConstantNode(add(_a.value, a1.value));\n }\n }\n\n if ((0, _is.isConstantNode)(a1) && isZero(a1.value)) {\n return _a;\n }\n\n if ((0, _is.isOperatorNode)(a1) && a1.isUnary() && a1.op === '-') {\n return new OperatorNode('-', 'subtract', [_a, a1.args[0]]);\n }\n\n return new OperatorNode(node.op, node.fn, a1 ? [_a, a1] : [_a]);\n } else if (node.op === '-') {\n if ((0, _is.isConstantNode)(_a) && a1) {\n if ((0, _is.isConstantNode)(a1)) {\n return new ConstantNode(subtract(_a.value, a1.value));\n } else if (isZero(_a.value)) {\n return new OperatorNode('-', 'unaryMinus', [a1]);\n }\n } // if (node.fn === \"subtract\" && node.args.length === 2) {\n\n\n if (node.fn === 'subtract') {\n if ((0, _is.isConstantNode)(a1) && isZero(a1.value)) {\n return _a;\n }\n\n if ((0, _is.isOperatorNode)(a1) && a1.isUnary() && a1.op === '-') {\n return simplifyCore(new OperatorNode('+', 'add', [_a, a1.args[0]]), options);\n }\n\n return new OperatorNode(node.op, node.fn, [_a, a1]);\n }\n } else if (node.op === '*') {\n if ((0, _is.isConstantNode)(_a)) {\n if (isZero(_a.value)) {\n return node0;\n } else if (equal(_a.value, 1)) {\n return a1;\n } else if ((0, _is.isConstantNode)(a1)) {\n return new ConstantNode(multiply(_a.value, a1.value));\n }\n }\n\n if ((0, _is.isConstantNode)(a1)) {\n if (isZero(a1.value)) {\n return node0;\n } else if (equal(a1.value, 1)) {\n return _a;\n } else if ((0, _is.isOperatorNode)(_a) && _a.isBinary() && _a.op === node.op && isCommutative(node, context)) {\n var a00 = _a.args[0];\n\n if ((0, _is.isConstantNode)(a00)) {\n var a00a1 = new ConstantNode(multiply(a00.value, a1.value));\n return new OperatorNode(node.op, node.fn, [a00a1, _a.args[1]], node.implicit); // constants on left\n }\n }\n\n if (isCommutative(node, context)) {\n return new OperatorNode(node.op, node.fn, [a1, _a], node.implicit); // constants on left\n } else {\n return new OperatorNode(node.op, node.fn, [_a, a1], node.implicit);\n }\n }\n\n return new OperatorNode(node.op, node.fn, [_a, a1], node.implicit);\n } else if (node.op === '/') {\n if ((0, _is.isConstantNode)(_a)) {\n if (isZero(_a.value)) {\n return node0;\n } else if ((0, _is.isConstantNode)(a1) && (equal(a1.value, 1) || equal(a1.value, 2) || equal(a1.value, 4))) {\n return new ConstantNode(divide(_a.value, a1.value));\n }\n }\n\n return new OperatorNode(node.op, node.fn, [_a, a1]);\n } else if (node.op === '^') {\n if ((0, _is.isConstantNode)(a1)) {\n if (isZero(a1.value)) {\n return node1;\n } else if (equal(a1.value, 1)) {\n return _a;\n } else {\n if ((0, _is.isConstantNode)(_a)) {\n // fold constant\n return new ConstantNode(pow(_a.value, a1.value));\n } else if ((0, _is.isOperatorNode)(_a) && _a.isBinary() && _a.op === '^') {\n var a01 = _a.args[1];\n\n if ((0, _is.isConstantNode)(a01)) {\n return new OperatorNode(node.op, node.fn, [_a.args[0], new ConstantNode(multiply(a01.value, a1.value))]);\n }\n }\n }\n }\n }\n\n return new OperatorNode(node.op, node.fn, [_a, a1]);\n } else if ((0, _is.isFunctionNode)(node)) {\n return new FunctionNode(simplifyCore(node.fn), node.args.map(function (n) {\n return simplifyCore(n, options);\n }));\n } else if ((0, _is.isArrayNode)(node)) {\n return new ArrayNode(node.items.map(function (n) {\n return simplifyCore(n, options);\n }));\n } else if ((0, _is.isAccessorNode)(node)) {\n return new AccessorNode(simplifyCore(node.object, options), simplifyCore(node.index, options));\n } else if ((0, _is.isIndexNode)(node)) {\n return new IndexNode(node.dimensions.map(function (n) {\n return simplifyCore(n, options);\n }));\n } else if ((0, _is.isObjectNode)(node)) {\n var newProps = {};\n\n for (var prop in node.properties) {\n newProps[prop] = simplifyCore(node.properties[prop], options);\n }\n\n return new ObjectNode(newProps);\n } else {// cannot simplify\n }\n\n return node;\n }\n\n return simplifyCore;\n});\nexports.createSimplifyCore = createSimplifyCore;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createResolve = void 0;\n\nvar _map = require(\"../../utils/map.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'resolve';\nvar dependencies = ['parse', 'ConstantNode', 'FunctionNode', 'OperatorNode', 'ParenthesisNode'];\nvar createResolve = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var parse = _ref.parse,\n ConstantNode = _ref.ConstantNode,\n FunctionNode = _ref.FunctionNode,\n OperatorNode = _ref.OperatorNode,\n ParenthesisNode = _ref.ParenthesisNode;\n\n /**\n * resolve(expr, scope) replaces variable nodes with their scoped values\n *\n * Syntax:\n *\n * resolve(expr, scope)\n *\n * Examples:\n *\n * math.resolve('x + y', {x:1, y:2}) // Node {1 + 2}\n * math.resolve(math.parse('x+y'), {x:1, y:2}) // Node {1 + 2}\n * math.simplify('x+y', {x:2, y:'x+x'}).toString() // \"6\"\n *\n * See also:\n *\n * simplify, evaluate\n *\n * @param {Node | Node[]} node\n * The expression tree (or trees) to be simplified\n * @param {Object} scope\n * Scope specifying variables to be resolved\n * @return {Node | Node[]} Returns `node` with variables recursively substituted.\n * @throws {ReferenceError}\n * If there is a cyclic dependency among the variables in `scope`,\n * resolution is impossible and a ReferenceError is thrown.\n */\n function resolve(node, scope) {\n var within = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();\n\n // note `within`:\n // `within` is not documented, since it is for internal cycle\n // detection only\n if (!scope) {\n return node;\n }\n\n if (!(0, _map.isMap)(scope)) {\n scope = (0, _map.createMap)(scope);\n }\n\n if ((0, _is.isSymbolNode)(node)) {\n if (within.has(node.name)) {\n var variables = Array.from(within).join(', ');\n throw new ReferenceError(\"recursive loop of variable definitions among {\".concat(variables, \"}\"));\n }\n\n var value = scope.get(node.name);\n\n if ((0, _is.isNode)(value)) {\n var nextWithin = new Set(within);\n nextWithin.add(node.name);\n return resolve(value, scope, nextWithin);\n } else if (typeof value === 'number') {\n return parse(String(value));\n } else if (value !== undefined) {\n return new ConstantNode(value);\n } else {\n return node;\n }\n } else if ((0, _is.isOperatorNode)(node)) {\n var args = node.args.map(function (arg) {\n return resolve(arg, scope, within);\n });\n return new OperatorNode(node.op, node.fn, args, node.implicit);\n } else if ((0, _is.isParenthesisNode)(node)) {\n return new ParenthesisNode(resolve(node.content, scope, within));\n } else if ((0, _is.isFunctionNode)(node)) {\n var _args = node.args.map(function (arg) {\n return resolve(arg, scope, within);\n });\n\n return new FunctionNode(node.name, _args);\n } // Otherwise just recursively resolve any children (might also work\n // for some of the above special cases)\n\n\n return node.map(function (child) {\n return resolve(child, scope, within);\n });\n }\n\n return resolve;\n});\nexports.createResolve = createResolve;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSymbolicEqual = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'symbolicEqual';\nvar dependencies = ['parse', 'simplify', 'typed', 'OperatorNode'];\nvar createSymbolicEqual = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var parse = _ref.parse,\n simplify = _ref.simplify,\n typed = _ref.typed,\n OperatorNode = _ref.OperatorNode;\n\n /**\n * Attempts to determine if two expressions are symbolically equal, i.e.\n * one is the result of valid algebraic manipulations on the other.\n * Currently, this simply checks if the difference of the two expressions\n * simplifies down to 0. So there are two important caveats:\n * 1. whether two expressions are symbolically equal depends on the\n * manipulations allowed. Therefore, this function takes an optional\n * third argument, which are the options that control the behavior\n * as documented for the `simplify()` function.\n * 2. it is in general intractable to find the minimal simplification of\n * an arbitrarily complicated expression. So while a `true` value\n * of `symbolicEqual` ensures that the two expressions can be manipulated\n * to match each other, a `false` value does not absolutely rule this out.\n *\n * Syntax:\n *\n * symbolicEqual(expr1, expr2)\n * symbolicEqual(expr1, expr2, options)\n *\n * Examples:\n *\n * symbolicEqual('x*y', 'y*x') // true\n * symbolicEqual('x*y', 'y*x', {context: {multiply: {commutative: false}}})\n * //false\n * symbolicEqual('x/y', '(y*x^(-1))^(-1)') // true\n * symbolicEqual('abs(x)','x') // false\n * symbolicEqual('abs(x)','x', simplify.positiveContext) // true\n *\n * See also:\n *\n * simplify, evaluate\n *\n * @param {Node|string} expr1 The first expression to compare\n * @param {Node|string} expr2 The second expression to compare\n * @param {Object} [options] Optional option object, passed to simplify\n * @returns {boolean}\n * Returns true if a valid manipulation making the expressions equal\n * is found.\n */\n return typed(name, {\n 'string, string': function stringString(s1, s2) {\n return this(parse(s1), parse(s2), {});\n },\n 'string, string, Object': function stringStringObject(s1, s2, options) {\n return this(parse(s1), parse(s2), options);\n },\n 'Node, string': function NodeString(e1, s2) {\n return this(e1, parse(s2), {});\n },\n 'Node, string, Object': function NodeStringObject(e1, s2, options) {\n return this(e1, parse(s2), options);\n },\n 'string, Node': function stringNode(s1, e2) {\n return this(parse(s1), e2, {});\n },\n 'string, Node, Object': function stringNodeObject(s1, e2, options) {\n return this(parse(s1), e2, options);\n },\n 'Node, Node': function NodeNode(e1, e2) {\n return this(e1, e2, {});\n },\n 'Node, Node, Object': function NodeNodeObject(e1, e2, options) {\n var diff = new OperatorNode('-', 'subtract', [e1, e2]);\n var simplified = simplify(diff, {}, options);\n return (0, _is.isConstantNode)(simplified) && !simplified.value;\n }\n });\n});\nexports.createSymbolicEqual = createSymbolicEqual;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDerivative = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'derivative';\nvar dependencies = ['typed', 'config', 'parse', 'simplify', 'equal', 'isZero', 'numeric', 'ConstantNode', 'FunctionNode', 'OperatorNode', 'ParenthesisNode', 'SymbolNode'];\nvar createDerivative = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n parse = _ref.parse,\n simplify = _ref.simplify,\n equal = _ref.equal,\n isZero = _ref.isZero,\n numeric = _ref.numeric,\n ConstantNode = _ref.ConstantNode,\n FunctionNode = _ref.FunctionNode,\n OperatorNode = _ref.OperatorNode,\n ParenthesisNode = _ref.ParenthesisNode,\n SymbolNode = _ref.SymbolNode;\n\n /**\n * Takes the derivative of an expression expressed in parser Nodes.\n * The derivative will be taken over the supplied variable in the\n * second parameter. If there are multiple variables in the expression,\n * it will return a partial derivative.\n *\n * This uses rules of differentiation which can be found here:\n *\n * - [Differentiation rules (Wikipedia)](https://en.wikipedia.org/wiki/Differentiation_rules)\n *\n * Syntax:\n *\n * derivative(expr, variable)\n * derivative(expr, variable, options)\n *\n * Examples:\n *\n * math.derivative('x^2', 'x') // Node {2 * x}\n * math.derivative('x^2', 'x', {simplify: false}) // Node {2 * 1 * x ^ (2 - 1)\n * math.derivative('sin(2x)', 'x')) // Node {2 * cos(2 * x)}\n * math.derivative('2*x', 'x').evaluate() // number 2\n * math.derivative('x^2', 'x').evaluate({x: 4}) // number 8\n * const f = math.parse('x^2')\n * const x = math.parse('x')\n * math.derivative(f, x) // Node {2 * x}\n *\n * See also:\n *\n * simplify, parse, evaluate\n *\n * @param {Node | string} expr The expression to differentiate\n * @param {SymbolNode | string} variable The variable over which to differentiate\n * @param {{simplify: boolean}} [options]\n * There is one option available, `simplify`, which\n * is true by default. When false, output will not\n * be simplified.\n * @return {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} The derivative of `expr`\n */\n var derivative = typed('derivative', {\n 'Node, SymbolNode, Object': function NodeSymbolNodeObject(expr, variable, options) {\n var constNodes = {};\n constTag(constNodes, expr, variable.name);\n\n var res = _derivative(expr, constNodes);\n\n return options.simplify ? simplify(res) : res;\n },\n 'Node, SymbolNode': function NodeSymbolNode(expr, variable) {\n return this(expr, variable, {\n simplify: true\n });\n },\n 'string, SymbolNode': function stringSymbolNode(expr, variable) {\n return this(parse(expr), variable);\n },\n 'string, SymbolNode, Object': function stringSymbolNodeObject(expr, variable, options) {\n return this(parse(expr), variable, options);\n },\n 'string, string': function stringString(expr, variable) {\n return this(parse(expr), parse(variable));\n },\n 'string, string, Object': function stringStringObject(expr, variable, options) {\n return this(parse(expr), parse(variable), options);\n },\n 'Node, string': function NodeString(expr, variable) {\n return this(expr, parse(variable));\n },\n 'Node, string, Object': function NodeStringObject(expr, variable, options) {\n return this(expr, parse(variable), options);\n } // TODO: replace the 8 signatures above with 4 as soon as typed-function supports optional arguments\n\n /* TODO: implement and test syntax with order of derivatives -> implement as an option {order: number}\n 'Node, SymbolNode, ConstantNode': function (expr, variable, {order}) {\n let res = expr\n for (let i = 0; i < order; i++) {\n let constNodes = {}\n constTag(constNodes, expr, variable.name)\n res = _derivative(res, constNodes)\n }\n return res\n }\n */\n\n });\n derivative._simplify = true;\n\n derivative.toTex = function (deriv) {\n return _derivTex.apply(null, deriv.args);\n }; // FIXME: move the toTex method of derivative to latex.js. Difficulty is that it relies on parse.\n // NOTE: the optional \"order\" parameter here is currently unused\n\n\n var _derivTex = typed('_derivTex', {\n 'Node, SymbolNode': function NodeSymbolNode(expr, x) {\n if ((0, _is.isConstantNode)(expr) && (0, _is.typeOf)(expr.value) === 'string') {\n return _derivTex(parse(expr.value).toString(), x.toString(), 1);\n } else {\n return _derivTex(expr.toTex(), x.toString(), 1);\n }\n },\n 'Node, ConstantNode': function NodeConstantNode(expr, x) {\n if ((0, _is.typeOf)(x.value) === 'string') {\n return _derivTex(expr, parse(x.value));\n } else {\n throw new Error(\"The second parameter to 'derivative' is a non-string constant\");\n }\n },\n 'Node, SymbolNode, ConstantNode': function NodeSymbolNodeConstantNode(expr, x, order) {\n return _derivTex(expr.toString(), x.name, order.value);\n },\n 'string, string, number': function stringStringNumber(expr, x, order) {\n var d;\n\n if (order === 1) {\n d = '{d\\\\over d' + x + '}';\n } else {\n d = '{d^{' + order + '}\\\\over d' + x + '^{' + order + '}}';\n }\n\n return d + \"\\\\left[\".concat(expr, \"\\\\right]\");\n }\n });\n /**\n * Does a depth-first search on the expression tree to identify what Nodes\n * are constants (e.g. 2 + 2), and stores the ones that are constants in\n * constNodes. Classification is done as follows:\n *\n * 1. ConstantNodes are constants.\n * 2. If there exists a SymbolNode, of which we are differentiating over,\n * in the subtree it is not constant.\n *\n * @param {Object} constNodes Holds the nodes that are constant\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} node\n * @param {string} varName Variable that we are differentiating\n * @return {boolean} if node is constant\n */\n // TODO: can we rewrite constTag into a pure function?\n\n\n var constTag = typed('constTag', {\n 'Object, ConstantNode, string': function ObjectConstantNodeString(constNodes, node) {\n constNodes[node] = true;\n return true;\n },\n 'Object, SymbolNode, string': function ObjectSymbolNodeString(constNodes, node, varName) {\n // Treat other variables like constants. For reasoning, see:\n // https://en.wikipedia.org/wiki/Partial_derivative\n if (node.name !== varName) {\n constNodes[node] = true;\n return true;\n }\n\n return false;\n },\n 'Object, ParenthesisNode, string': function ObjectParenthesisNodeString(constNodes, node, varName) {\n return constTag(constNodes, node.content, varName);\n },\n 'Object, FunctionAssignmentNode, string': function ObjectFunctionAssignmentNodeString(constNodes, node, varName) {\n if (node.params.indexOf(varName) === -1) {\n constNodes[node] = true;\n return true;\n }\n\n return constTag(constNodes, node.expr, varName);\n },\n 'Object, FunctionNode | OperatorNode, string': function ObjectFunctionNodeOperatorNodeString(constNodes, node, varName) {\n if (node.args.length > 0) {\n var isConst = constTag(constNodes, node.args[0], varName);\n\n for (var i = 1; i < node.args.length; ++i) {\n isConst = constTag(constNodes, node.args[i], varName) && isConst;\n }\n\n if (isConst) {\n constNodes[node] = true;\n return true;\n }\n }\n\n return false;\n }\n });\n /**\n * Applies differentiation rules.\n *\n * @param {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} node\n * @param {Object} constNodes Holds the nodes that are constant\n * @return {ConstantNode | SymbolNode | ParenthesisNode | FunctionNode | OperatorNode} The derivative of `expr`\n */\n\n var _derivative = typed('_derivative', {\n 'ConstantNode, Object': function ConstantNodeObject(node) {\n return createConstantNode(0);\n },\n 'SymbolNode, Object': function SymbolNodeObject(node, constNodes) {\n if (constNodes[node] !== undefined) {\n return createConstantNode(0);\n }\n\n return createConstantNode(1);\n },\n 'ParenthesisNode, Object': function ParenthesisNodeObject(node, constNodes) {\n return new ParenthesisNode(_derivative(node.content, constNodes));\n },\n 'FunctionAssignmentNode, Object': function FunctionAssignmentNodeObject(node, constNodes) {\n if (constNodes[node] !== undefined) {\n return createConstantNode(0);\n }\n\n return _derivative(node.expr, constNodes);\n },\n 'FunctionNode, Object': function FunctionNodeObject(node, constNodes) {\n if (node.args.length !== 1) {\n funcArgsCheck(node);\n }\n\n if (constNodes[node] !== undefined) {\n return createConstantNode(0);\n }\n\n var arg0 = node.args[0];\n var arg1;\n var div = false; // is output a fraction?\n\n var negative = false; // is output negative?\n\n var funcDerivative;\n\n switch (node.name) {\n case 'cbrt':\n // d/dx(cbrt(x)) = 1 / (3x^(2/3))\n div = true;\n funcDerivative = new OperatorNode('*', 'multiply', [createConstantNode(3), new OperatorNode('^', 'pow', [arg0, new OperatorNode('/', 'divide', [createConstantNode(2), createConstantNode(3)])])]);\n break;\n\n case 'sqrt':\n case 'nthRoot':\n // d/dx(sqrt(x)) = 1 / (2*sqrt(x))\n if (node.args.length === 1) {\n div = true;\n funcDerivative = new OperatorNode('*', 'multiply', [createConstantNode(2), new FunctionNode('sqrt', [arg0])]);\n } else if (node.args.length === 2) {\n // Rearrange from nthRoot(x, a) -> x^(1/a)\n arg1 = new OperatorNode('/', 'divide', [createConstantNode(1), node.args[1]]); // Is a variable?\n\n constNodes[arg1] = constNodes[node.args[1]];\n return _derivative(new OperatorNode('^', 'pow', [arg0, arg1]), constNodes);\n }\n\n break;\n\n case 'log10':\n arg1 = createConstantNode(10);\n\n /* fall through! */\n\n case 'log':\n if (!arg1 && node.args.length === 1) {\n // d/dx(log(x)) = 1 / x\n funcDerivative = arg0.clone();\n div = true;\n } else if (node.args.length === 1 && arg1 || node.args.length === 2 && constNodes[node.args[1]] !== undefined) {\n // d/dx(log(x, c)) = 1 / (x*ln(c))\n funcDerivative = new OperatorNode('*', 'multiply', [arg0.clone(), new FunctionNode('log', [arg1 || node.args[1]])]);\n div = true;\n } else if (node.args.length === 2) {\n // d/dx(log(f(x), g(x))) = d/dx(log(f(x)) / log(g(x)))\n return _derivative(new OperatorNode('/', 'divide', [new FunctionNode('log', [arg0]), new FunctionNode('log', [node.args[1]])]), constNodes);\n }\n\n break;\n\n case 'pow':\n constNodes[arg1] = constNodes[node.args[1]]; // Pass to pow operator node parser\n\n return _derivative(new OperatorNode('^', 'pow', [arg0, node.args[1]]), constNodes);\n\n case 'exp':\n // d/dx(e^x) = e^x\n funcDerivative = new FunctionNode('exp', [arg0.clone()]);\n break;\n\n case 'sin':\n // d/dx(sin(x)) = cos(x)\n funcDerivative = new FunctionNode('cos', [arg0.clone()]);\n break;\n\n case 'cos':\n // d/dx(cos(x)) = -sin(x)\n funcDerivative = new OperatorNode('-', 'unaryMinus', [new FunctionNode('sin', [arg0.clone()])]);\n break;\n\n case 'tan':\n // d/dx(tan(x)) = sec(x)^2\n funcDerivative = new OperatorNode('^', 'pow', [new FunctionNode('sec', [arg0.clone()]), createConstantNode(2)]);\n break;\n\n case 'sec':\n // d/dx(sec(x)) = sec(x)tan(x)\n funcDerivative = new OperatorNode('*', 'multiply', [node, new FunctionNode('tan', [arg0.clone()])]);\n break;\n\n case 'csc':\n // d/dx(csc(x)) = -csc(x)cot(x)\n negative = true;\n funcDerivative = new OperatorNode('*', 'multiply', [node, new FunctionNode('cot', [arg0.clone()])]);\n break;\n\n case 'cot':\n // d/dx(cot(x)) = -csc(x)^2\n negative = true;\n funcDerivative = new OperatorNode('^', 'pow', [new FunctionNode('csc', [arg0.clone()]), createConstantNode(2)]);\n break;\n\n case 'asin':\n // d/dx(asin(x)) = 1 / sqrt(1 - x^2)\n div = true;\n funcDerivative = new FunctionNode('sqrt', [new OperatorNode('-', 'subtract', [createConstantNode(1), new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)])])]);\n break;\n\n case 'acos':\n // d/dx(acos(x)) = -1 / sqrt(1 - x^2)\n div = true;\n negative = true;\n funcDerivative = new FunctionNode('sqrt', [new OperatorNode('-', 'subtract', [createConstantNode(1), new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)])])]);\n break;\n\n case 'atan':\n // d/dx(atan(x)) = 1 / (x^2 + 1)\n div = true;\n funcDerivative = new OperatorNode('+', 'add', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)]);\n break;\n\n case 'asec':\n // d/dx(asec(x)) = 1 / (|x|*sqrt(x^2 - 1))\n div = true;\n funcDerivative = new OperatorNode('*', 'multiply', [new FunctionNode('abs', [arg0.clone()]), new FunctionNode('sqrt', [new OperatorNode('-', 'subtract', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)])])]);\n break;\n\n case 'acsc':\n // d/dx(acsc(x)) = -1 / (|x|*sqrt(x^2 - 1))\n div = true;\n negative = true;\n funcDerivative = new OperatorNode('*', 'multiply', [new FunctionNode('abs', [arg0.clone()]), new FunctionNode('sqrt', [new OperatorNode('-', 'subtract', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)])])]);\n break;\n\n case 'acot':\n // d/dx(acot(x)) = -1 / (x^2 + 1)\n div = true;\n negative = true;\n funcDerivative = new OperatorNode('+', 'add', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)]);\n break;\n\n case 'sinh':\n // d/dx(sinh(x)) = cosh(x)\n funcDerivative = new FunctionNode('cosh', [arg0.clone()]);\n break;\n\n case 'cosh':\n // d/dx(cosh(x)) = sinh(x)\n funcDerivative = new FunctionNode('sinh', [arg0.clone()]);\n break;\n\n case 'tanh':\n // d/dx(tanh(x)) = sech(x)^2\n funcDerivative = new OperatorNode('^', 'pow', [new FunctionNode('sech', [arg0.clone()]), createConstantNode(2)]);\n break;\n\n case 'sech':\n // d/dx(sech(x)) = -sech(x)tanh(x)\n negative = true;\n funcDerivative = new OperatorNode('*', 'multiply', [node, new FunctionNode('tanh', [arg0.clone()])]);\n break;\n\n case 'csch':\n // d/dx(csch(x)) = -csch(x)coth(x)\n negative = true;\n funcDerivative = new OperatorNode('*', 'multiply', [node, new FunctionNode('coth', [arg0.clone()])]);\n break;\n\n case 'coth':\n // d/dx(coth(x)) = -csch(x)^2\n negative = true;\n funcDerivative = new OperatorNode('^', 'pow', [new FunctionNode('csch', [arg0.clone()]), createConstantNode(2)]);\n break;\n\n case 'asinh':\n // d/dx(asinh(x)) = 1 / sqrt(x^2 + 1)\n div = true;\n funcDerivative = new FunctionNode('sqrt', [new OperatorNode('+', 'add', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)])]);\n break;\n\n case 'acosh':\n // d/dx(acosh(x)) = 1 / sqrt(x^2 - 1); XXX potentially only for x >= 1 (the real spectrum)\n div = true;\n funcDerivative = new FunctionNode('sqrt', [new OperatorNode('-', 'subtract', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)])]);\n break;\n\n case 'atanh':\n // d/dx(atanh(x)) = 1 / (1 - x^2)\n div = true;\n funcDerivative = new OperatorNode('-', 'subtract', [createConstantNode(1), new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)])]);\n break;\n\n case 'asech':\n // d/dx(asech(x)) = -1 / (x*sqrt(1 - x^2))\n div = true;\n negative = true;\n funcDerivative = new OperatorNode('*', 'multiply', [arg0.clone(), new FunctionNode('sqrt', [new OperatorNode('-', 'subtract', [createConstantNode(1), new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)])])])]);\n break;\n\n case 'acsch':\n // d/dx(acsch(x)) = -1 / (|x|*sqrt(x^2 + 1))\n div = true;\n negative = true;\n funcDerivative = new OperatorNode('*', 'multiply', [new FunctionNode('abs', [arg0.clone()]), new FunctionNode('sqrt', [new OperatorNode('+', 'add', [new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)]), createConstantNode(1)])])]);\n break;\n\n case 'acoth':\n // d/dx(acoth(x)) = -1 / (1 - x^2)\n div = true;\n negative = true;\n funcDerivative = new OperatorNode('-', 'subtract', [createConstantNode(1), new OperatorNode('^', 'pow', [arg0.clone(), createConstantNode(2)])]);\n break;\n\n case 'abs':\n // d/dx(abs(x)) = abs(x)/x\n funcDerivative = new OperatorNode('/', 'divide', [new FunctionNode(new SymbolNode('abs'), [arg0.clone()]), arg0.clone()]);\n break;\n\n case 'gamma': // Needs digamma function, d/dx(gamma(x)) = gamma(x)digamma(x)\n\n default:\n throw new Error('Function \"' + node.name + '\" is not supported by derivative, or a wrong number of arguments is passed');\n }\n\n var op, func;\n\n if (div) {\n op = '/';\n func = 'divide';\n } else {\n op = '*';\n func = 'multiply';\n }\n /* Apply chain rule to all functions:\n F(x) = f(g(x))\n F'(x) = g'(x)*f'(g(x)) */\n\n\n var chainDerivative = _derivative(arg0, constNodes);\n\n if (negative) {\n chainDerivative = new OperatorNode('-', 'unaryMinus', [chainDerivative]);\n }\n\n return new OperatorNode(op, func, [chainDerivative, funcDerivative]);\n },\n 'OperatorNode, Object': function OperatorNodeObject(node, constNodes) {\n if (constNodes[node] !== undefined) {\n return createConstantNode(0);\n }\n\n if (node.op === '+') {\n // d/dx(sum(f(x)) = sum(f'(x))\n return new OperatorNode(node.op, node.fn, node.args.map(function (arg) {\n return _derivative(arg, constNodes);\n }));\n }\n\n if (node.op === '-') {\n // d/dx(+/-f(x)) = +/-f'(x)\n if (node.isUnary()) {\n return new OperatorNode(node.op, node.fn, [_derivative(node.args[0], constNodes)]);\n } // Linearity of differentiation, d/dx(f(x) +/- g(x)) = f'(x) +/- g'(x)\n\n\n if (node.isBinary()) {\n return new OperatorNode(node.op, node.fn, [_derivative(node.args[0], constNodes), _derivative(node.args[1], constNodes)]);\n }\n }\n\n if (node.op === '*') {\n // d/dx(c*f(x)) = c*f'(x)\n var constantTerms = node.args.filter(function (arg) {\n return constNodes[arg] !== undefined;\n });\n\n if (constantTerms.length > 0) {\n var nonConstantTerms = node.args.filter(function (arg) {\n return constNodes[arg] === undefined;\n });\n var nonConstantNode = nonConstantTerms.length === 1 ? nonConstantTerms[0] : new OperatorNode('*', 'multiply', nonConstantTerms);\n var newArgs = constantTerms.concat(_derivative(nonConstantNode, constNodes));\n return new OperatorNode('*', 'multiply', newArgs);\n } // Product Rule, d/dx(f(x)*g(x)) = f'(x)*g(x) + f(x)*g'(x)\n\n\n return new OperatorNode('+', 'add', node.args.map(function (argOuter) {\n return new OperatorNode('*', 'multiply', node.args.map(function (argInner) {\n return argInner === argOuter ? _derivative(argInner, constNodes) : argInner.clone();\n }));\n }));\n }\n\n if (node.op === '/' && node.isBinary()) {\n var arg0 = node.args[0];\n var arg1 = node.args[1]; // d/dx(f(x) / c) = f'(x) / c\n\n if (constNodes[arg1] !== undefined) {\n return new OperatorNode('/', 'divide', [_derivative(arg0, constNodes), arg1]);\n } // Reciprocal Rule, d/dx(c / f(x)) = -c(f'(x)/f(x)^2)\n\n\n if (constNodes[arg0] !== undefined) {\n return new OperatorNode('*', 'multiply', [new OperatorNode('-', 'unaryMinus', [arg0]), new OperatorNode('/', 'divide', [_derivative(arg1, constNodes), new OperatorNode('^', 'pow', [arg1.clone(), createConstantNode(2)])])]);\n } // Quotient rule, d/dx(f(x) / g(x)) = (f'(x)g(x) - f(x)g'(x)) / g(x)^2\n\n\n return new OperatorNode('/', 'divide', [new OperatorNode('-', 'subtract', [new OperatorNode('*', 'multiply', [_derivative(arg0, constNodes), arg1.clone()]), new OperatorNode('*', 'multiply', [arg0.clone(), _derivative(arg1, constNodes)])]), new OperatorNode('^', 'pow', [arg1.clone(), createConstantNode(2)])]);\n }\n\n if (node.op === '^' && node.isBinary()) {\n var _arg = node.args[0];\n var _arg2 = node.args[1];\n\n if (constNodes[_arg] !== undefined) {\n // If is secretly constant; 0^f(x) = 1 (in JS), 1^f(x) = 1\n if ((0, _is.isConstantNode)(_arg) && (isZero(_arg.value) || equal(_arg.value, 1))) {\n return createConstantNode(0);\n } // d/dx(c^f(x)) = c^f(x)*ln(c)*f'(x)\n\n\n return new OperatorNode('*', 'multiply', [node, new OperatorNode('*', 'multiply', [new FunctionNode('log', [_arg.clone()]), _derivative(_arg2.clone(), constNodes)])]);\n }\n\n if (constNodes[_arg2] !== undefined) {\n if ((0, _is.isConstantNode)(_arg2)) {\n // If is secretly constant; f(x)^0 = 1 -> d/dx(1) = 0\n if (isZero(_arg2.value)) {\n return createConstantNode(0);\n } // Ignore exponent; f(x)^1 = f(x)\n\n\n if (equal(_arg2.value, 1)) {\n return _derivative(_arg, constNodes);\n }\n } // Elementary Power Rule, d/dx(f(x)^c) = c*f'(x)*f(x)^(c-1)\n\n\n var powMinusOne = new OperatorNode('^', 'pow', [_arg.clone(), new OperatorNode('-', 'subtract', [_arg2, createConstantNode(1)])]);\n return new OperatorNode('*', 'multiply', [_arg2.clone(), new OperatorNode('*', 'multiply', [_derivative(_arg, constNodes), powMinusOne])]);\n } // Functional Power Rule, d/dx(f^g) = f^g*[f'*(g/f) + g'ln(f)]\n\n\n return new OperatorNode('*', 'multiply', [new OperatorNode('^', 'pow', [_arg.clone(), _arg2.clone()]), new OperatorNode('+', 'add', [new OperatorNode('*', 'multiply', [_derivative(_arg, constNodes), new OperatorNode('/', 'divide', [_arg2.clone(), _arg.clone()])]), new OperatorNode('*', 'multiply', [_derivative(_arg2, constNodes), new FunctionNode('log', [_arg.clone()])])])]);\n }\n\n throw new Error('Operator \"' + node.op + '\" is not supported by derivative, or a wrong number of arguments is passed');\n }\n });\n /**\n * Ensures the number of arguments for a function are correct,\n * and will throw an error otherwise.\n *\n * @param {FunctionNode} node\n */\n\n\n function funcArgsCheck(node) {\n // TODO add min, max etc\n if ((node.name === 'log' || node.name === 'nthRoot' || node.name === 'pow') && node.args.length === 2) {\n return;\n } // There should be an incorrect number of arguments if we reach here\n // Change all args to constants to avoid unidentified\n // symbol error when compiling function\n\n\n for (var i = 0; i < node.args.length; ++i) {\n node.args[i] = createConstantNode(0);\n }\n\n node.compile().evaluate();\n throw new Error('Expected TypeError, but none found');\n }\n /**\n * Helper function to create a constant node with a specific type\n * (number, BigNumber, Fraction)\n * @param {number} value\n * @param {string} [valueType]\n * @return {ConstantNode}\n */\n\n\n function createConstantNode(value, valueType) {\n return new ConstantNode(numeric(value, valueType || config.number));\n }\n\n return derivative;\n});\nexports.createDerivative = createDerivative;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRationalize = void 0;\n\nvar _number = require(\"../../utils/number.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _simplifyConstant = require(\"./simplify/simplifyConstant.js\");\n\nvar name = 'rationalize';\nvar dependencies = ['config', 'typed', 'equal', 'isZero', 'add', 'subtract', 'multiply', 'divide', 'pow', 'parse', 'simplifyCore', 'simplify', '?bignumber', '?fraction', 'mathWithTransform', 'matrix', 'AccessorNode', 'ArrayNode', 'ConstantNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'SymbolNode', 'ParenthesisNode'];\nvar createRationalize = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n typed = _ref.typed,\n equal = _ref.equal,\n isZero = _ref.isZero,\n add = _ref.add,\n subtract = _ref.subtract,\n multiply = _ref.multiply,\n divide = _ref.divide,\n pow = _ref.pow,\n parse = _ref.parse,\n simplifyCore = _ref.simplifyCore,\n simplify = _ref.simplify,\n fraction = _ref.fraction,\n bignumber = _ref.bignumber,\n mathWithTransform = _ref.mathWithTransform,\n matrix = _ref.matrix,\n AccessorNode = _ref.AccessorNode,\n ArrayNode = _ref.ArrayNode,\n ConstantNode = _ref.ConstantNode,\n FunctionNode = _ref.FunctionNode,\n IndexNode = _ref.IndexNode,\n ObjectNode = _ref.ObjectNode,\n OperatorNode = _ref.OperatorNode,\n SymbolNode = _ref.SymbolNode,\n ParenthesisNode = _ref.ParenthesisNode;\n var simplifyConstant = (0, _simplifyConstant.createSimplifyConstant)({\n typed: typed,\n config: config,\n mathWithTransform: mathWithTransform,\n matrix: matrix,\n fraction: fraction,\n bignumber: bignumber,\n AccessorNode: AccessorNode,\n ArrayNode: ArrayNode,\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n IndexNode: IndexNode,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n SymbolNode: SymbolNode\n });\n /**\n * Transform a rationalizable expression in a rational fraction.\n * If rational fraction is one variable polynomial then converts\n * the numerator and denominator in canonical form, with decreasing\n * exponents, returning the coefficients of numerator.\n *\n * Syntax:\n *\n * rationalize(expr)\n * rationalize(expr, detailed)\n * rationalize(expr, scope)\n * rationalize(expr, scope, detailed)\n *\n * Examples:\n *\n * math.rationalize('sin(x)+y')\n * // Error: There is an unsolved function call\n * math.rationalize('2x/y - y/(x+1)')\n * // (2*x^2-y^2+2*x)/(x*y+y)\n * math.rationalize('(2x+1)^6')\n * // 64*x^6+192*x^5+240*x^4+160*x^3+60*x^2+12*x+1\n * math.rationalize('2x/( (2x-1) / (3x+2) ) - 5x/ ( (3x+4) / (2x^2-5) ) + 3')\n * // -20*x^4+28*x^3+104*x^2+6*x-12)/(6*x^2+5*x-4)\n * math.rationalize('x/(1-x)/(x-2)/(x-3)/(x-4) + 2x/ ( (1-2x)/(2-3x) )/ ((3-4x)/(4-5x) )') =\n * // (-30*x^7+344*x^6-1506*x^5+3200*x^4-3472*x^3+1846*x^2-381*x)/\n * // (-8*x^6+90*x^5-383*x^4+780*x^3-797*x^2+390*x-72)\n *\n * math.rationalize('x+x+x+y',{y:1}) // 3*x+1\n * math.rationalize('x+x+x+y',{}) // 3*x+y\n *\n * const ret = math.rationalize('x+x+x+y',{},true)\n * // ret.expression=3*x+y, ret.variables = [\"x\",\"y\"]\n * const ret = math.rationalize('-2+5x^2',{},true)\n * // ret.expression=5*x^2-2, ret.variables = [\"x\"], ret.coefficients=[-2,0,5]\n *\n * See also:\n *\n * simplify\n *\n * @param {Node|string} expr The expression to check if is a polynomial expression\n * @param {Object|boolean} optional scope of expression or true for already evaluated rational expression at input\n * @param {Boolean} detailed optional True if return an object, false if return expression node (default)\n *\n * @return {Object | Node} The rational polynomial of `expr` or an object\n * `{expression, numerator, denominator, variables, coefficients}`, where\n * `expression` is a `Node` with the node simplified expression,\n * `numerator` is a `Node` with the simplified numerator of expression,\n * `denominator` is a `Node` or `boolean` with the simplified denominator or `false` (if there is no denominator),\n * `variables` is an array with variable names,\n * and `coefficients` is an array with coefficients of numerator sorted by increased exponent\n * {Expression Node} node simplified expression\n *\n */\n\n return typed(name, {\n string: function string(expr) {\n return this(parse(expr), {}, false);\n },\n 'string, boolean': function stringBoolean(expr, detailed) {\n return this(parse(expr), {}, detailed);\n },\n 'string, Object': function stringObject(expr, scope) {\n return this(parse(expr), scope, false);\n },\n 'string, Object, boolean': function stringObjectBoolean(expr, scope, detailed) {\n return this(parse(expr), scope, detailed);\n },\n Node: function Node(expr) {\n return this(expr, {}, false);\n },\n 'Node, boolean': function NodeBoolean(expr, detailed) {\n return this(expr, {}, detailed);\n },\n 'Node, Object': function NodeObject(expr, scope) {\n return this(expr, scope, false);\n },\n 'Node, Object, boolean': function NodeObjectBoolean(expr, scope, detailed) {\n var setRules = rulesRationalize(); // Rules for change polynomial in near canonical form\n\n var polyRet = polynomial(expr, scope, true, setRules.firstRules); // Check if expression is a rationalizable polynomial\n\n var nVars = polyRet.variables.length;\n var noExactFractions = {\n exactFractions: false\n };\n var withExactFractions = {\n exactFractions: true\n };\n expr = polyRet.expression;\n\n if (nVars >= 1) {\n // If expression in not a constant\n expr = expandPower(expr); // First expand power of polynomials (cannot be made from rules!)\n\n var sBefore; // Previous expression\n\n var rules;\n var eDistrDiv = true;\n var redoInic = false; // Apply the initial rules, including succ div rules:\n\n expr = simplify(expr, setRules.firstRules, {}, noExactFractions);\n var s;\n\n while (true) {\n // Alternate applying successive division rules and distr.div.rules\n // until there are no more changes:\n rules = eDistrDiv ? setRules.distrDivRules : setRules.sucDivRules;\n expr = simplify(expr, rules, {}, withExactFractions);\n eDistrDiv = !eDistrDiv; // Swap between Distr.Div and Succ. Div. Rules\n\n s = expr.toString();\n\n if (s === sBefore) {\n break; // No changes : end of the loop\n }\n\n redoInic = true;\n sBefore = s;\n }\n\n if (redoInic) {\n // Apply first rules again without succ div rules (if there are changes)\n expr = simplify(expr, setRules.firstRulesAgain, {}, noExactFractions);\n } // Apply final rules:\n\n\n expr = simplify(expr, setRules.finalRules, {}, noExactFractions);\n } // NVars >= 1\n\n\n var coefficients = [];\n var retRationalize = {};\n\n if (expr.type === 'OperatorNode' && expr.isBinary() && expr.op === '/') {\n // Separate numerator from denominator\n if (nVars === 1) {\n expr.args[0] = polyToCanonical(expr.args[0], coefficients);\n expr.args[1] = polyToCanonical(expr.args[1]);\n }\n\n if (detailed) {\n retRationalize.numerator = expr.args[0];\n retRationalize.denominator = expr.args[1];\n }\n } else {\n if (nVars === 1) {\n expr = polyToCanonical(expr, coefficients);\n }\n\n if (detailed) {\n retRationalize.numerator = expr;\n retRationalize.denominator = null;\n }\n } // nVars\n\n\n if (!detailed) return expr;\n retRationalize.coefficients = coefficients;\n retRationalize.variables = polyRet.variables;\n retRationalize.expression = expr;\n return retRationalize;\n } // ^^^^^^^ end of rationalize ^^^^^^^^\n\n }); // end of typed rationalize\n\n /**\n * Function to simplify an expression using an optional scope and\n * return it if the expression is a polynomial expression, i.e.\n * an expression with one or more variables and the operators\n * +, -, *, and ^, where the exponent can only be a positive integer.\n *\n * Syntax:\n *\n * polynomial(expr,scope,extended, rules)\n *\n * @param {Node | string} expr The expression to simplify and check if is polynomial expression\n * @param {object} scope Optional scope for expression simplification\n * @param {boolean} extended Optional. Default is false. When true allows divide operator.\n * @param {array} rules Optional. Default is no rule.\n *\n *\n * @return {Object}\n * {Object} node: node simplified expression\n * {Array} variables: variable names\n */\n\n function polynomial(expr, scope, extended, rules) {\n var variables = [];\n var node = simplify(expr, rules, scope, {\n exactFractions: false\n }); // Resolves any variables and functions with all defined parameters\n\n extended = !!extended;\n var oper = '+-*' + (extended ? '/' : '');\n recPoly(node);\n var retFunc = {};\n retFunc.expression = node;\n retFunc.variables = variables;\n return retFunc; // -------------------------------------------------------------------------------------------------------\n\n /**\n * Function to simplify an expression using an optional scope and\n * return it if the expression is a polynomial expression, i.e.\n * an expression with one or more variables and the operators\n * +, -, *, and ^, where the exponent can only be a positive integer.\n *\n * Syntax:\n *\n * recPoly(node)\n *\n *\n * @param {Node} node The current sub tree expression in recursion\n *\n * @return nothing, throw an exception if error\n */\n\n function recPoly(node) {\n var tp = node.type; // node type\n\n if (tp === 'FunctionNode') {\n // No function call in polynomial expression\n throw new Error('There is an unsolved function call');\n } else if (tp === 'OperatorNode') {\n if (node.op === '^') {\n // TODO: handle negative exponents like in '1/x^(-2)'\n if (node.args[1].type !== 'ConstantNode' || !(0, _number.isInteger)(parseFloat(node.args[1].value))) {\n throw new Error('There is a non-integer exponent');\n } else {\n recPoly(node.args[0]);\n }\n } else {\n if (oper.indexOf(node.op) === -1) {\n throw new Error('Operator ' + node.op + ' invalid in polynomial expression');\n }\n\n for (var i = 0; i < node.args.length; i++) {\n recPoly(node.args[i]);\n }\n } // type of operator\n\n } else if (tp === 'SymbolNode') {\n var _name = node.name; // variable name\n\n var pos = variables.indexOf(_name);\n\n if (pos === -1) {\n // new variable in expression\n variables.push(_name);\n }\n } else if (tp === 'ParenthesisNode') {\n recPoly(node.content);\n } else if (tp !== 'ConstantNode') {\n throw new Error('type ' + tp + ' is not allowed in polynomial expression');\n }\n } // end of recPoly\n\n } // end of polynomial\n // ---------------------------------------------------------------------------------------\n\n /**\n * Return a rule set to rationalize an polynomial expression in rationalize\n *\n * Syntax:\n *\n * rulesRationalize()\n *\n * @return {array} rule set to rationalize an polynomial expression\n */\n\n\n function rulesRationalize() {\n var oldRules = [simplifyCore, // sCore\n {\n l: 'n+n',\n r: '2*n'\n }, {\n l: 'n+-n',\n r: '0'\n }, simplifyConstant, // sConstant\n {\n l: 'n*(n1^-1)',\n r: 'n/n1'\n }, {\n l: 'n*n1^-n2',\n r: 'n/n1^n2'\n }, {\n l: 'n1^-1',\n r: '1/n1'\n }, {\n l: 'n*(n1/n2)',\n r: '(n*n1)/n2'\n }, {\n l: '1*n',\n r: 'n'\n }];\n var rulesFirst = [{\n l: '(-n1)/(-n2)',\n r: 'n1/n2'\n }, // Unary division\n {\n l: '(-n1)*(-n2)',\n r: 'n1*n2'\n }, // Unary multiplication\n {\n l: 'n1--n2',\n r: 'n1+n2'\n }, // '--' elimination\n {\n l: 'n1-n2',\n r: 'n1+(-n2)'\n }, // Subtraction turn into add with un�ry minus\n {\n l: '(n1+n2)*n3',\n r: '(n1*n3 + n2*n3)'\n }, // Distributive 1\n {\n l: 'n1*(n2+n3)',\n r: '(n1*n2+n1*n3)'\n }, // Distributive 2\n {\n l: 'c1*n + c2*n',\n r: '(c1+c2)*n'\n }, // Joining constants\n {\n l: 'c1*n + n',\n r: '(c1+1)*n'\n }, // Joining constants\n {\n l: 'c1*n - c2*n',\n r: '(c1-c2)*n'\n }, // Joining constants\n {\n l: 'c1*n - n',\n r: '(c1-1)*n'\n }, // Joining constants\n {\n l: 'v/c',\n r: '(1/c)*v'\n }, // variable/constant (new!)\n {\n l: 'v/-c',\n r: '-(1/c)*v'\n }, // variable/constant (new!)\n {\n l: '-v*-c',\n r: 'c*v'\n }, // Inversion constant and variable 1\n {\n l: '-v*c',\n r: '-c*v'\n }, // Inversion constant and variable 2\n {\n l: 'v*-c',\n r: '-c*v'\n }, // Inversion constant and variable 3\n {\n l: 'v*c',\n r: 'c*v'\n }, // Inversion constant and variable 4\n {\n l: '-(-n1*n2)',\n r: '(n1*n2)'\n }, // Unary propagation\n {\n l: '-(n1*n2)',\n r: '(-n1*n2)'\n }, // Unary propagation\n {\n l: '-(-n1+n2)',\n r: '(n1-n2)'\n }, // Unary propagation\n {\n l: '-(n1+n2)',\n r: '(-n1-n2)'\n }, // Unary propagation\n {\n l: '(n1^n2)^n3',\n r: '(n1^(n2*n3))'\n }, // Power to Power\n {\n l: '-(-n1/n2)',\n r: '(n1/n2)'\n }, // Division and Unary\n {\n l: '-(n1/n2)',\n r: '(-n1/n2)'\n }]; // Divisao and Unary\n\n var rulesDistrDiv = [{\n l: '(n1/n2 + n3/n4)',\n r: '((n1*n4 + n3*n2)/(n2*n4))'\n }, // Sum of fractions\n {\n l: '(n1/n2 + n3)',\n r: '((n1 + n3*n2)/n2)'\n }, // Sum fraction with number 1\n {\n l: '(n1 + n2/n3)',\n r: '((n1*n3 + n2)/n3)'\n }]; // Sum fraction with number 1\n\n var rulesSucDiv = [{\n l: '(n1/(n2/n3))',\n r: '((n1*n3)/n2)'\n }, // Division simplification\n {\n l: '(n1/n2/n3)',\n r: '(n1/(n2*n3))'\n }];\n var setRules = {}; // rules set in 4 steps.\n // All rules => infinite loop\n // setRules.allRules =oldRules.concat(rulesFirst,rulesDistrDiv,rulesSucDiv)\n\n setRules.firstRules = oldRules.concat(rulesFirst, rulesSucDiv); // First rule set\n\n setRules.distrDivRules = rulesDistrDiv; // Just distr. div. rules\n\n setRules.sucDivRules = rulesSucDiv; // Jus succ. div. rules\n\n setRules.firstRulesAgain = oldRules.concat(rulesFirst); // Last rules set without succ. div.\n // Division simplification\n // Second rule set.\n // There is no aggregate expression with parentesis, but the only variable can be scattered.\n\n setRules.finalRules = [simplifyCore, // simplify.rules[0]\n {\n l: 'n*-n',\n r: '-n^2'\n }, // Joining multiply with power 1\n {\n l: 'n*n',\n r: 'n^2'\n }, // Joining multiply with power 2\n simplifyConstant, // simplify.rules[14] old 3rd index in oldRules\n {\n l: 'n*-n^n1',\n r: '-n^(n1+1)'\n }, // Joining multiply with power 3\n {\n l: 'n*n^n1',\n r: 'n^(n1+1)'\n }, // Joining multiply with power 4\n {\n l: 'n^n1*-n^n2',\n r: '-n^(n1+n2)'\n }, // Joining multiply with power 5\n {\n l: 'n^n1*n^n2',\n r: 'n^(n1+n2)'\n }, // Joining multiply with power 6\n {\n l: 'n^n1*-n',\n r: '-n^(n1+1)'\n }, // Joining multiply with power 7\n {\n l: 'n^n1*n',\n r: 'n^(n1+1)'\n }, // Joining multiply with power 8\n {\n l: 'n^n1/-n',\n r: '-n^(n1-1)'\n }, // Joining multiply with power 8\n {\n l: 'n^n1/n',\n r: 'n^(n1-1)'\n }, // Joining division with power 1\n {\n l: 'n/-n^n1',\n r: '-n^(1-n1)'\n }, // Joining division with power 2\n {\n l: 'n/n^n1',\n r: 'n^(1-n1)'\n }, // Joining division with power 3\n {\n l: 'n^n1/-n^n2',\n r: 'n^(n1-n2)'\n }, // Joining division with power 4\n {\n l: 'n^n1/n^n2',\n r: 'n^(n1-n2)'\n }, // Joining division with power 5\n {\n l: 'n1+(-n2*n3)',\n r: 'n1-n2*n3'\n }, // Solving useless parenthesis 1\n {\n l: 'v*(-c)',\n r: '-c*v'\n }, // Solving useless unary 2\n {\n l: 'n1+-n2',\n r: 'n1-n2'\n }, // Solving +- together (new!)\n {\n l: 'v*c',\n r: 'c*v'\n }, // inversion constant with variable\n {\n l: '(n1^n2)^n3',\n r: '(n1^(n2*n3))'\n } // Power to Power\n ];\n return setRules;\n } // End rulesRationalize\n // ---------------------------------------------------------------------------------------\n\n /**\n * Expand recursively a tree node for handling with expressions with exponents\n * (it's not for constants, symbols or functions with exponents)\n * PS: The other parameters are internal for recursion\n *\n * Syntax:\n *\n * expandPower(node)\n *\n * @param {Node} node Current expression node\n * @param {node} parent Parent current node inside the recursion\n * @param (int} Parent number of chid inside the rercursion\n *\n * @return {node} node expression with all powers expanded.\n */\n\n\n function expandPower(node, parent, indParent) {\n var tp = node.type;\n var internal = arguments.length > 1; // TRUE in internal calls\n\n if (tp === 'OperatorNode' && node.isBinary()) {\n var does = false;\n var val;\n\n if (node.op === '^') {\n // First operator: Parenthesis or UnaryMinus\n if ((node.args[0].type === 'ParenthesisNode' || node.args[0].type === 'OperatorNode') && node.args[1].type === 'ConstantNode') {\n // Second operator: Constant\n val = parseFloat(node.args[1].value);\n does = val >= 2 && (0, _number.isInteger)(val);\n }\n }\n\n if (does) {\n // Exponent >= 2\n // Before:\n // operator A --> Subtree\n // parent pow\n // constant\n //\n if (val > 2) {\n // Exponent > 2,\n // AFTER: (exponent > 2)\n // operator A --> Subtree\n // parent *\n // deep clone (operator A --> Subtree\n // pow\n // constant - 1\n //\n var nEsqTopo = node.args[0];\n var nDirTopo = new OperatorNode('^', 'pow', [node.args[0].cloneDeep(), new ConstantNode(val - 1)]);\n node = new OperatorNode('*', 'multiply', [nEsqTopo, nDirTopo]);\n } else {\n // Expo = 2 - no power\n // AFTER: (exponent = 2)\n // operator A --> Subtree\n // parent oper\n // deep clone (operator A --> Subtree)\n //\n node = new OperatorNode('*', 'multiply', [node.args[0], node.args[0].cloneDeep()]);\n }\n\n if (internal) {\n // Change parent references in internal recursive calls\n if (indParent === 'content') {\n parent.content = node;\n } else {\n parent.args[indParent] = node;\n }\n }\n } // does\n\n } // binary OperatorNode\n\n\n if (tp === 'ParenthesisNode') {\n // Recursion\n expandPower(node.content, node, 'content');\n } else if (tp !== 'ConstantNode' && tp !== 'SymbolNode') {\n for (var i = 0; i < node.args.length; i++) {\n expandPower(node.args[i], node, i);\n }\n }\n\n if (!internal) {\n // return the root node\n return node;\n }\n } // End expandPower\n // ---------------------------------------------------------------------------------------\n\n /**\n * Auxilary function for rationalize\n * Convert near canonical polynomial in one variable in a canonical polynomial\n * with one term for each exponent in decreasing order\n *\n * Syntax:\n *\n * polyToCanonical(node [, coefficients])\n *\n * @param {Node | string} expr The near canonical polynomial expression to convert in a a canonical polynomial expression\n *\n * The string or tree expression needs to be at below syntax, with free spaces:\n * ( (^(-)? | [+-]? )cte (*)? var (^expo)? | cte )+\n * Where 'var' is one variable with any valid name\n * 'cte' are real numeric constants with any value. It can be omitted if equal than 1\n * 'expo' are integers greater than 0. It can be omitted if equal than 1.\n *\n * @param {array} coefficients Optional returns coefficients sorted by increased exponent\n *\n *\n * @return {node} new node tree with one variable polynomial or string error.\n */\n\n\n function polyToCanonical(node, coefficients) {\n if (coefficients === undefined) {\n coefficients = [];\n } // coefficients.\n\n\n coefficients[0] = 0; // index is the exponent\n\n var o = {};\n o.cte = 1;\n o.oper = '+'; // fire: mark with * or ^ when finds * or ^ down tree, reset to \"\" with + and -.\n // It is used to deduce the exponent: 1 for *, 0 for \"\".\n\n o.fire = '';\n var maxExpo = 0; // maximum exponent\n\n var varname = ''; // variable name\n\n recurPol(node, null, o);\n maxExpo = coefficients.length - 1;\n var first = true;\n var no;\n\n for (var i = maxExpo; i >= 0; i--) {\n if (coefficients[i] === 0) continue;\n var n1 = new ConstantNode(first ? coefficients[i] : Math.abs(coefficients[i]));\n var op = coefficients[i] < 0 ? '-' : '+';\n\n if (i > 0) {\n // Is not a constant without variable\n var n2 = new SymbolNode(varname);\n\n if (i > 1) {\n var n3 = new ConstantNode(i);\n n2 = new OperatorNode('^', 'pow', [n2, n3]);\n }\n\n if (coefficients[i] === -1 && first) {\n n1 = new OperatorNode('-', 'unaryMinus', [n2]);\n } else if (Math.abs(coefficients[i]) === 1) {\n n1 = n2;\n } else {\n n1 = new OperatorNode('*', 'multiply', [n1, n2]);\n }\n }\n\n if (first) {\n no = n1;\n } else if (op === '+') {\n no = new OperatorNode('+', 'add', [no, n1]);\n } else {\n no = new OperatorNode('-', 'subtract', [no, n1]);\n }\n\n first = false;\n } // for\n\n\n if (first) {\n return new ConstantNode(0);\n } else {\n return no;\n }\n /**\n * Recursive auxilary function inside polyToCanonical for\n * converting expression in canonical form\n *\n * Syntax:\n *\n * recurPol(node, noPai, obj)\n *\n * @param {Node} node The current subpolynomial expression\n * @param {Node | Null} noPai The current parent node\n * @param {object} obj Object with many internal flags\n *\n * @return {} No return. If error, throws an exception\n */\n\n\n function recurPol(node, noPai, o) {\n var tp = node.type;\n\n if (tp === 'FunctionNode') {\n // ***** FunctionName *****\n // No function call in polynomial expression\n throw new Error('There is an unsolved function call');\n } else if (tp === 'OperatorNode') {\n // ***** OperatorName *****\n if ('+-*^'.indexOf(node.op) === -1) throw new Error('Operator ' + node.op + ' invalid');\n\n if (noPai !== null) {\n // -(unary),^ : children of *,+,-\n if ((node.fn === 'unaryMinus' || node.fn === 'pow') && noPai.fn !== 'add' && noPai.fn !== 'subtract' && noPai.fn !== 'multiply') {\n throw new Error('Invalid ' + node.op + ' placing');\n } // -,+,* : children of +,-\n\n\n if ((node.fn === 'subtract' || node.fn === 'add' || node.fn === 'multiply') && noPai.fn !== 'add' && noPai.fn !== 'subtract') {\n throw new Error('Invalid ' + node.op + ' placing');\n } // -,+ : first child\n\n\n if ((node.fn === 'subtract' || node.fn === 'add' || node.fn === 'unaryMinus') && o.noFil !== 0) {\n throw new Error('Invalid ' + node.op + ' placing');\n }\n } // Has parent\n // Firers: ^,* Old: ^,&,-(unary): firers\n\n\n if (node.op === '^' || node.op === '*') {\n o.fire = node.op;\n }\n\n for (var _i = 0; _i < node.args.length; _i++) {\n // +,-: reset fire\n if (node.fn === 'unaryMinus') o.oper = '-';\n\n if (node.op === '+' || node.fn === 'subtract') {\n o.fire = '';\n o.cte = 1; // default if there is no constant\n\n o.oper = _i === 0 ? '+' : node.op;\n }\n\n o.noFil = _i; // number of son\n\n recurPol(node.args[_i], node, o);\n } // for in children\n\n } else if (tp === 'SymbolNode') {\n // ***** SymbolName *****\n if (node.name !== varname && varname !== '') {\n throw new Error('There is more than one variable');\n }\n\n varname = node.name;\n\n if (noPai === null) {\n coefficients[1] = 1;\n return;\n } // ^: Symbol is First child\n\n\n if (noPai.op === '^' && o.noFil !== 0) {\n throw new Error('In power the variable should be the first parameter');\n } // *: Symbol is Second child\n\n\n if (noPai.op === '*' && o.noFil !== 1) {\n throw new Error('In multiply the variable should be the second parameter');\n } // Symbol: firers '',* => it means there is no exponent above, so it's 1 (cte * var)\n\n\n if (o.fire === '' || o.fire === '*') {\n if (maxExpo < 1) coefficients[1] = 0;\n coefficients[1] += o.cte * (o.oper === '+' ? 1 : -1);\n maxExpo = Math.max(1, maxExpo);\n }\n } else if (tp === 'ConstantNode') {\n var valor = parseFloat(node.value);\n\n if (noPai === null) {\n coefficients[0] = valor;\n return;\n }\n\n if (noPai.op === '^') {\n // cte: second child of power\n if (o.noFil !== 1) throw new Error('Constant cannot be powered');\n\n if (!(0, _number.isInteger)(valor) || valor <= 0) {\n throw new Error('Non-integer exponent is not allowed');\n }\n\n for (var _i2 = maxExpo + 1; _i2 < valor; _i2++) {\n coefficients[_i2] = 0;\n }\n\n if (valor > maxExpo) coefficients[valor] = 0;\n coefficients[valor] += o.cte * (o.oper === '+' ? 1 : -1);\n maxExpo = Math.max(valor, maxExpo);\n return;\n }\n\n o.cte = valor; // Cte: firer '' => There is no exponent and no multiplication, so the exponent is 0.\n\n if (o.fire === '') {\n coefficients[0] += o.cte * (o.oper === '+' ? 1 : -1);\n }\n } else {\n throw new Error('Type ' + tp + ' is not allowed');\n }\n } // End of recurPol\n\n } // End of polyToCanonical\n\n});\nexports.createRationalize = createRationalize;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createReviver = void 0;\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar name = 'reviver';\nvar dependencies = ['classes'];\nvar createReviver = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var classes = _ref.classes;\n\n /**\n * Instantiate mathjs data types from their JSON representation\n * @param {string} key\n * @param {*} value\n * @returns {*} Returns the revived object\n */\n return function reviver(key, value) {\n var constructor = classes[value && value.mathjs];\n\n if (constructor && typeof constructor.fromJSON === 'function') {\n return constructor.fromJSON(value);\n }\n\n return value;\n };\n});\nexports.createReviver = createReviver;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createReplacer = void 0;\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar name = 'replacer';\nvar dependencies = [];\nvar createReplacer = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function () {\n /**\n * Stringify data types into their JSON representation.\n * Most data types can be serialized using their `.toJSON` method,\n * but not all, for example the number `Infinity`. For these cases you have\n * to use the replacer. Example usage:\n *\n * JSON.stringify([2, Infinity], math.replacer)\n *\n * @param {string} key\n * @param {*} value\n * @returns {*} Returns the replaced object\n */\n return function replacer(key, value) {\n // the numeric values Infinitiy, -Infinity, and NaN cannot be serialized to JSON\n if (typeof value === 'number' && (!isFinite(value) || isNaN(value))) {\n return {\n mathjs: 'number',\n value: String(value)\n };\n }\n\n return value;\n };\n});\nexports.createReplacer = createReplacer;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.version = void 0;\nvar version = '10.6.4'; // Note: This file is automatically generated when building math.js.\n// Changes made in this file will be overwritten.\n\nexports.version = version;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createVersion = exports.createUppercasePi = exports.createUppercaseE = exports.createTrue = exports.createTau = exports.createSQRT2 = exports.createSQRT1_2 = exports.createPi = exports.createPhi = exports.createNull = exports.createNaN = exports.createLOG2E = exports.createLOG10E = exports.createLN2 = exports.createLN10 = exports.createInfinity = exports.createI = exports.createFalse = exports.createE = void 0;\n\nvar _factory = require(\"./utils/factory.js\");\n\nvar _version = require(\"./version.js\");\n\nvar _constants = require(\"./utils/bignumber/constants.js\");\n\nvar _index = require(\"./plain/number/index.js\");\n\nvar createTrue = /* #__PURE__ */(0, _factory.factory)('true', [], function () {\n return true;\n});\nexports.createTrue = createTrue;\nvar createFalse = /* #__PURE__ */(0, _factory.factory)('false', [], function () {\n return false;\n});\nexports.createFalse = createFalse;\nvar createNull = /* #__PURE__ */(0, _factory.factory)('null', [], function () {\n return null;\n});\nexports.createNull = createNull;\nvar createInfinity = /* #__PURE__ */recreateFactory('Infinity', ['config', '?BigNumber'], function (_ref) {\n var config = _ref.config,\n BigNumber = _ref.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(Infinity) : Infinity;\n});\nexports.createInfinity = createInfinity;\nvar createNaN = /* #__PURE__ */recreateFactory('NaN', ['config', '?BigNumber'], function (_ref2) {\n var config = _ref2.config,\n BigNumber = _ref2.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(NaN) : NaN;\n});\nexports.createNaN = createNaN;\nvar createPi = /* #__PURE__ */recreateFactory('pi', ['config', '?BigNumber'], function (_ref3) {\n var config = _ref3.config,\n BigNumber = _ref3.BigNumber;\n return config.number === 'BigNumber' ? (0, _constants.createBigNumberPi)(BigNumber) : _index.pi;\n});\nexports.createPi = createPi;\nvar createTau = /* #__PURE__ */recreateFactory('tau', ['config', '?BigNumber'], function (_ref4) {\n var config = _ref4.config,\n BigNumber = _ref4.BigNumber;\n return config.number === 'BigNumber' ? (0, _constants.createBigNumberTau)(BigNumber) : _index.tau;\n});\nexports.createTau = createTau;\nvar createE = /* #__PURE__ */recreateFactory('e', ['config', '?BigNumber'], function (_ref5) {\n var config = _ref5.config,\n BigNumber = _ref5.BigNumber;\n return config.number === 'BigNumber' ? (0, _constants.createBigNumberE)(BigNumber) : _index.e;\n}); // golden ratio, (1+sqrt(5))/2\n\nexports.createE = createE;\nvar createPhi = /* #__PURE__ */recreateFactory('phi', ['config', '?BigNumber'], function (_ref6) {\n var config = _ref6.config,\n BigNumber = _ref6.BigNumber;\n return config.number === 'BigNumber' ? (0, _constants.createBigNumberPhi)(BigNumber) : _index.phi;\n});\nexports.createPhi = createPhi;\nvar createLN2 = /* #__PURE__ */recreateFactory('LN2', ['config', '?BigNumber'], function (_ref7) {\n var config = _ref7.config,\n BigNumber = _ref7.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(2).ln() : Math.LN2;\n});\nexports.createLN2 = createLN2;\nvar createLN10 = /* #__PURE__ */recreateFactory('LN10', ['config', '?BigNumber'], function (_ref8) {\n var config = _ref8.config,\n BigNumber = _ref8.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(10).ln() : Math.LN10;\n});\nexports.createLN10 = createLN10;\nvar createLOG2E = /* #__PURE__ */recreateFactory('LOG2E', ['config', '?BigNumber'], function (_ref9) {\n var config = _ref9.config,\n BigNumber = _ref9.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(1).div(new BigNumber(2).ln()) : Math.LOG2E;\n});\nexports.createLOG2E = createLOG2E;\nvar createLOG10E = /* #__PURE__ */recreateFactory('LOG10E', ['config', '?BigNumber'], function (_ref10) {\n var config = _ref10.config,\n BigNumber = _ref10.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(1).div(new BigNumber(10).ln()) : Math.LOG10E;\n});\nexports.createLOG10E = createLOG10E;\nvar createSQRT1_2 = /* #__PURE__ */recreateFactory( // eslint-disable-line camelcase\n'SQRT1_2', ['config', '?BigNumber'], function (_ref11) {\n var config = _ref11.config,\n BigNumber = _ref11.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber('0.5').sqrt() : Math.SQRT1_2;\n});\nexports.createSQRT1_2 = createSQRT1_2;\nvar createSQRT2 = /* #__PURE__ */recreateFactory('SQRT2', ['config', '?BigNumber'], function (_ref12) {\n var config = _ref12.config,\n BigNumber = _ref12.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(2).sqrt() : Math.SQRT2;\n});\nexports.createSQRT2 = createSQRT2;\nvar createI = /* #__PURE__ */recreateFactory('i', ['Complex'], function (_ref13) {\n var Complex = _ref13.Complex;\n return Complex.I;\n}); // for backward compatibility with v5\n\nexports.createI = createI;\nvar createUppercasePi = /* #__PURE__ */(0, _factory.factory)('PI', ['pi'], function (_ref14) {\n var pi = _ref14.pi;\n return pi;\n});\nexports.createUppercasePi = createUppercasePi;\nvar createUppercaseE = /* #__PURE__ */(0, _factory.factory)('E', ['e'], function (_ref15) {\n var e = _ref15.e;\n return e;\n});\nexports.createUppercaseE = createUppercaseE;\nvar createVersion = /* #__PURE__ */(0, _factory.factory)('version', [], function () {\n return _version.version;\n}); // helper function to create a factory with a flag recreateOnConfigChange\n// idea: allow passing optional properties to be attached to the factory function as 4th argument?\n\nexports.createVersion = createVersion;\n\nfunction recreateFactory(name, dependencies, create) {\n return (0, _factory.factory)(name, dependencies, create, {\n recreateOnConfigChange: true\n });\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createWienDisplacement = exports.createWeakMixingAngle = exports.createVacuumImpedance = exports.createThomsonCrossSection = exports.createStefanBoltzmann = exports.createSpeedOfLight = exports.createSecondRadiation = exports.createSackurTetrode = exports.createRydberg = exports.createReducedPlanckConstant = exports.createQuantumOfCirculation = exports.createProtonMass = exports.createPlanckTime = exports.createPlanckTemperature = exports.createPlanckMass = exports.createPlanckLength = exports.createPlanckConstant = exports.createPlanckCharge = exports.createNuclearMagneton = exports.createNeutronMass = exports.createMolarVolume = exports.createMolarPlanckConstant = exports.createMolarMassC12 = exports.createMolarMass = exports.createMagneticFluxQuantum = exports.createMagneticConstant = exports.createLoschmidt = exports.createKlitzing = exports.createJosephson = exports.createInverseConductanceQuantum = exports.createHartreeEnergy = exports.createGravity = exports.createGravitationConstant = exports.createGasConstant = exports.createFirstRadiation = exports.createFineStructure = exports.createFermiCoupling = exports.createFaraday = exports.createElementaryCharge = exports.createElectronMass = exports.createElectricConstant = exports.createEfimovFactor = exports.createDeuteronMass = exports.createCoulomb = exports.createConductanceQuantum = exports.createClassicalElectronRadius = exports.createBoltzmann = exports.createBohrRadius = exports.createBohrMagneton = exports.createAvogadro = exports.createAtomicMass = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\n// Source: https://en.wikipedia.org/wiki/Physical_constant\n// Universal constants\nvar createSpeedOfLight = /* #__PURE__ */unitFactory('speedOfLight', '299792458', 'm s^-1');\nexports.createSpeedOfLight = createSpeedOfLight;\nvar createGravitationConstant = /* #__PURE__ */unitFactory('gravitationConstant', '6.67430e-11', 'm^3 kg^-1 s^-2');\nexports.createGravitationConstant = createGravitationConstant;\nvar createPlanckConstant = /* #__PURE__ */unitFactory('planckConstant', '6.62607015e-34', 'J s');\nexports.createPlanckConstant = createPlanckConstant;\nvar createReducedPlanckConstant = /* #__PURE__ */unitFactory('reducedPlanckConstant', '1.0545718176461565e-34', 'J s'); // Electromagnetic constants\n\nexports.createReducedPlanckConstant = createReducedPlanckConstant;\nvar createMagneticConstant = /* #__PURE__ */unitFactory('magneticConstant', '1.25663706212e-6', 'N A^-2');\nexports.createMagneticConstant = createMagneticConstant;\nvar createElectricConstant = /* #__PURE__ */unitFactory('electricConstant', '8.8541878128e-12', 'F m^-1');\nexports.createElectricConstant = createElectricConstant;\nvar createVacuumImpedance = /* #__PURE__ */unitFactory('vacuumImpedance', '376.730313667', 'ohm');\nexports.createVacuumImpedance = createVacuumImpedance;\nvar createCoulomb = /* #__PURE__ */unitFactory('coulomb', '8.987551792261171e9', 'N m^2 C^-2');\nexports.createCoulomb = createCoulomb;\nvar createElementaryCharge = /* #__PURE__ */unitFactory('elementaryCharge', '1.602176634e-19', 'C');\nexports.createElementaryCharge = createElementaryCharge;\nvar createBohrMagneton = /* #__PURE__ */unitFactory('bohrMagneton', '9.2740100783e-24', 'J T^-1');\nexports.createBohrMagneton = createBohrMagneton;\nvar createConductanceQuantum = /* #__PURE__ */unitFactory('conductanceQuantum', '7.748091729863649e-5', 'S');\nexports.createConductanceQuantum = createConductanceQuantum;\nvar createInverseConductanceQuantum = /* #__PURE__ */unitFactory('inverseConductanceQuantum', '12906.403729652257', 'ohm');\nexports.createInverseConductanceQuantum = createInverseConductanceQuantum;\nvar createMagneticFluxQuantum = /* #__PURE__ */unitFactory('magneticFluxQuantum', '2.0678338484619295e-15', 'Wb');\nexports.createMagneticFluxQuantum = createMagneticFluxQuantum;\nvar createNuclearMagneton = /* #__PURE__ */unitFactory('nuclearMagneton', '5.0507837461e-27', 'J T^-1');\nexports.createNuclearMagneton = createNuclearMagneton;\nvar createKlitzing = /* #__PURE__ */unitFactory('klitzing', '25812.807459304513', 'ohm');\nexports.createKlitzing = createKlitzing;\nvar createJosephson = /* #__PURE__ */unitFactory('josephson', '4.835978484169836e14 Hz V', 'Hz V^-1'); // TODO: support for Hz needed\n// Atomic and nuclear constants\n\nexports.createJosephson = createJosephson;\nvar createBohrRadius = /* #__PURE__ */unitFactory('bohrRadius', '5.29177210903e-11', 'm');\nexports.createBohrRadius = createBohrRadius;\nvar createClassicalElectronRadius = /* #__PURE__ */unitFactory('classicalElectronRadius', '2.8179403262e-15', 'm');\nexports.createClassicalElectronRadius = createClassicalElectronRadius;\nvar createElectronMass = /* #__PURE__ */unitFactory('electronMass', '9.1093837015e-31', 'kg');\nexports.createElectronMass = createElectronMass;\nvar createFermiCoupling = /* #__PURE__ */unitFactory('fermiCoupling', '1.1663787e-5', 'GeV^-2');\nexports.createFermiCoupling = createFermiCoupling;\nvar createFineStructure = numberFactory('fineStructure', 7.2973525693e-3);\nexports.createFineStructure = createFineStructure;\nvar createHartreeEnergy = /* #__PURE__ */unitFactory('hartreeEnergy', '4.3597447222071e-18', 'J');\nexports.createHartreeEnergy = createHartreeEnergy;\nvar createProtonMass = /* #__PURE__ */unitFactory('protonMass', '1.67262192369e-27', 'kg');\nexports.createProtonMass = createProtonMass;\nvar createDeuteronMass = /* #__PURE__ */unitFactory('deuteronMass', '3.3435830926e-27', 'kg');\nexports.createDeuteronMass = createDeuteronMass;\nvar createNeutronMass = /* #__PURE__ */unitFactory('neutronMass', '1.6749271613e-27', 'kg');\nexports.createNeutronMass = createNeutronMass;\nvar createQuantumOfCirculation = /* #__PURE__ */unitFactory('quantumOfCirculation', '3.6369475516e-4', 'm^2 s^-1');\nexports.createQuantumOfCirculation = createQuantumOfCirculation;\nvar createRydberg = /* #__PURE__ */unitFactory('rydberg', '10973731.568160', 'm^-1');\nexports.createRydberg = createRydberg;\nvar createThomsonCrossSection = /* #__PURE__ */unitFactory('thomsonCrossSection', '6.6524587321e-29', 'm^2');\nexports.createThomsonCrossSection = createThomsonCrossSection;\nvar createWeakMixingAngle = numberFactory('weakMixingAngle', 0.22290);\nexports.createWeakMixingAngle = createWeakMixingAngle;\nvar createEfimovFactor = numberFactory('efimovFactor', 22.7); // Physico-chemical constants\n\nexports.createEfimovFactor = createEfimovFactor;\nvar createAtomicMass = /* #__PURE__ */unitFactory('atomicMass', '1.66053906660e-27', 'kg');\nexports.createAtomicMass = createAtomicMass;\nvar createAvogadro = /* #__PURE__ */unitFactory('avogadro', '6.02214076e23', 'mol^-1');\nexports.createAvogadro = createAvogadro;\nvar createBoltzmann = /* #__PURE__ */unitFactory('boltzmann', '1.380649e-23', 'J K^-1');\nexports.createBoltzmann = createBoltzmann;\nvar createFaraday = /* #__PURE__ */unitFactory('faraday', '96485.33212331001', 'C mol^-1');\nexports.createFaraday = createFaraday;\nvar createFirstRadiation = /* #__PURE__ */unitFactory('firstRadiation', '3.7417718521927573e-16', 'W m^2'); // export const createSpectralRadiance = /* #__PURE__ */ unitFactory('spectralRadiance', '1.1910429723971881e-16', 'W m^2 sr^-1') // TODO spectralRadiance\n\nexports.createFirstRadiation = createFirstRadiation;\nvar createLoschmidt = /* #__PURE__ */unitFactory('loschmidt', '2.686780111798444e25', 'm^-3');\nexports.createLoschmidt = createLoschmidt;\nvar createGasConstant = /* #__PURE__ */unitFactory('gasConstant', '8.31446261815324', 'J K^-1 mol^-1');\nexports.createGasConstant = createGasConstant;\nvar createMolarPlanckConstant = /* #__PURE__ */unitFactory('molarPlanckConstant', '3.990312712893431e-10', 'J s mol^-1');\nexports.createMolarPlanckConstant = createMolarPlanckConstant;\nvar createMolarVolume = /* #__PURE__ */unitFactory('molarVolume', '0.022413969545014137', 'm^3 mol^-1');\nexports.createMolarVolume = createMolarVolume;\nvar createSackurTetrode = numberFactory('sackurTetrode', -1.16487052358);\nexports.createSackurTetrode = createSackurTetrode;\nvar createSecondRadiation = /* #__PURE__ */unitFactory('secondRadiation', '0.014387768775039337', 'm K');\nexports.createSecondRadiation = createSecondRadiation;\nvar createStefanBoltzmann = /* #__PURE__ */unitFactory('stefanBoltzmann', '5.67037441918443e-8', 'W m^-2 K^-4');\nexports.createStefanBoltzmann = createStefanBoltzmann;\nvar createWienDisplacement = /* #__PURE__ */unitFactory('wienDisplacement', '2.897771955e-3', 'm K'); // Adopted values\n\nexports.createWienDisplacement = createWienDisplacement;\nvar createMolarMass = /* #__PURE__ */unitFactory('molarMass', '0.99999999965e-3', 'kg mol^-1');\nexports.createMolarMass = createMolarMass;\nvar createMolarMassC12 = /* #__PURE__ */unitFactory('molarMassC12', '11.9999999958e-3', 'kg mol^-1');\nexports.createMolarMassC12 = createMolarMassC12;\nvar createGravity = /* #__PURE__ */unitFactory('gravity', '9.80665', 'm s^-2'); // atm is defined in Unit.js\n// Natural units\n\nexports.createGravity = createGravity;\nvar createPlanckLength = /* #__PURE__ */unitFactory('planckLength', '1.616255e-35', 'm');\nexports.createPlanckLength = createPlanckLength;\nvar createPlanckMass = /* #__PURE__ */unitFactory('planckMass', '2.176435e-8', 'kg');\nexports.createPlanckMass = createPlanckMass;\nvar createPlanckTime = /* #__PURE__ */unitFactory('planckTime', '5.391245e-44', 's');\nexports.createPlanckTime = createPlanckTime;\nvar createPlanckCharge = /* #__PURE__ */unitFactory('planckCharge', '1.87554603778e-18', 'C');\nexports.createPlanckCharge = createPlanckCharge;\nvar createPlanckTemperature = /* #__PURE__ */unitFactory('planckTemperature', '1.416785e+32', 'K'); // helper function to create a factory function which creates a physical constant,\n// a Unit with either a number value or a BigNumber value depending on the configuration\n\nexports.createPlanckTemperature = createPlanckTemperature;\n\nfunction unitFactory(name, valueStr, unitStr) {\n var dependencies = ['config', 'Unit', 'BigNumber'];\n return (0, _factory.factory)(name, dependencies, function (_ref) {\n var config = _ref.config,\n Unit = _ref.Unit,\n BigNumber = _ref.BigNumber;\n // Note that we can parse into number or BigNumber.\n // We do not parse into Fractions as that doesn't make sense: we would lose precision of the values\n // Therefore we dont use Unit.parse()\n var value = config.number === 'BigNumber' ? new BigNumber(valueStr) : parseFloat(valueStr);\n var unit = new Unit(value, unitStr);\n unit.fixPrefix = true;\n return unit;\n });\n} // helper function to create a factory function which creates a numeric constant,\n// either a number or BigNumber depending on the configuration\n\n\nfunction numberFactory(name, value) {\n var dependencies = ['config', 'BigNumber'];\n return (0, _factory.factory)(name, dependencies, function (_ref2) {\n var config = _ref2.config,\n BigNumber = _ref2.BigNumber;\n return config.number === 'BigNumber' ? new BigNumber(value) : value;\n });\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createApplyTransform = void 0;\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _apply = require(\"../../function/matrix/apply.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'apply';\nvar dependencies = ['typed', 'isInteger'];\n/**\n * Attach a transform function to math.apply\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function apply\n * from one-based to zero based\n */\n\nvar createApplyTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n isInteger = _ref.isInteger;\n var apply = (0, _apply.createApply)({\n typed: typed,\n isInteger: isInteger\n }); // @see: comment of concat itself\n\n return typed('apply', {\n '...any': function any(args) {\n // change dim from one-based to zero-based\n var dim = args[1];\n\n if ((0, _is.isNumber)(dim)) {\n args[1] = dim - 1;\n } else if ((0, _is.isBigNumber)(dim)) {\n args[1] = dim.minus(1);\n }\n\n try {\n return apply.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createApplyTransform = createApplyTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createColumnTransform = void 0;\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _column = require(\"../../function/matrix/column.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'column';\nvar dependencies = ['typed', 'Index', 'matrix', 'range'];\n/**\n * Attach a transform function to matrix.column\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `index` parameter of function column\n * from zero-based to one-based\n */\n\nvar createColumnTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Index = _ref.Index,\n matrix = _ref.matrix,\n range = _ref.range;\n var column = (0, _column.createColumn)({\n typed: typed,\n Index: Index,\n matrix: matrix,\n range: range\n }); // @see: comment of column itself\n\n return typed('column', {\n '...any': function any(args) {\n // change last argument from zero-based to one-based\n var lastIndex = args.length - 1;\n var last = args[lastIndex];\n\n if ((0, _is.isNumber)(last)) {\n args[lastIndex] = last - 1;\n }\n\n try {\n return column.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createColumnTransform = createColumnTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compileInlineExpression = compileInlineExpression;\n\nvar _is = require(\"../../../utils/is.js\");\n\nvar _scope = require(\"../../../utils/scope.js\");\n\n/**\n * Compile an inline expression like \"x > 0\"\n * @param {Node} expression\n * @param {Object} math\n * @param {Object} scope\n * @return {function} Returns a function with one argument which fills in the\n * undefined variable (like \"x\") and evaluates the expression\n */\nfunction compileInlineExpression(expression, math, scope) {\n // find an undefined symbol\n var symbol = expression.filter(function (node) {\n return (0, _is.isSymbolNode)(node) && !(node.name in math) && !scope.has(node.name);\n })[0];\n\n if (!symbol) {\n throw new Error('No undefined variable found in inline expression \"' + expression + '\"');\n } // create a test function for this equation\n\n\n var name = symbol.name; // variable name\n\n var subScope = (0, _scope.createSubScope)(scope);\n var eq = expression.compile();\n return function inlineExpression(x) {\n subScope.set(name, x);\n return eq.evaluate(subScope);\n };\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createFilterTransform = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _compileInlineExpression = require(\"./utils/compileInlineExpression.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'filter';\nvar dependencies = ['typed'];\nvar createFilterTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Attach a transform function to math.filter\n * Adds a property transform containing the transform function.\n *\n * This transform adds support for equations as test function for math.filter,\n * so you can do something like 'filter([3, -2, 5], x > 0)'.\n */\n function filterTransform(args, math, scope) {\n var x, callback;\n\n if (args[0]) {\n x = args[0].compile().evaluate(scope);\n }\n\n if (args[1]) {\n if ((0, _is.isSymbolNode)(args[1]) || (0, _is.isFunctionAssignmentNode)(args[1])) {\n // a function pointer, like filter([3, -2, 5], myTestFunction)\n callback = args[1].compile().evaluate(scope);\n } else {\n // an expression like filter([3, -2, 5], x > 0)\n callback = (0, _compileInlineExpression.compileInlineExpression)(args[1], math, scope);\n }\n }\n\n return filter(x, callback);\n }\n\n filterTransform.rawArgs = true; // one based version of function filter\n\n var filter = typed('filter', {\n 'Array, function': _filter,\n 'Matrix, function': function MatrixFunction(x, test) {\n return x.create(_filter(x.toArray(), test));\n },\n 'Array, RegExp': _array.filterRegExp,\n 'Matrix, RegExp': function MatrixRegExp(x, test) {\n return x.create((0, _array.filterRegExp)(x.toArray(), test));\n }\n });\n return filterTransform;\n}, {\n isTransformFunction: true\n});\n/**\n * Filter values in a callback given a callback function\n *\n * !!! Passes a one-based index !!!\n *\n * @param {Array} x\n * @param {Function} callback\n * @return {Array} Returns the filtered array\n * @private\n */\n\nexports.createFilterTransform = createFilterTransform;\n\nfunction _filter(x, callback) {\n // figure out what number of arguments the callback function expects\n var args = (0, _function.maxArgumentCount)(callback);\n return (0, _array.filter)(x, function (value, index, array) {\n // invoke the callback function with the right number of arguments\n if (args === 1) {\n return callback(value);\n } else if (args === 2) {\n return callback(value, [index + 1]);\n } else {\n // 3 or -1\n return callback(value, [index + 1], array);\n }\n });\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createForEachTransform = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _compileInlineExpression = require(\"./utils/compileInlineExpression.js\");\n\nvar name = 'forEach';\nvar dependencies = ['typed'];\nvar createForEachTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Attach a transform function to math.forEach\n * Adds a property transform containing the transform function.\n *\n * This transform creates a one-based index instead of a zero-based index\n */\n function forEachTransform(args, math, scope) {\n var x, callback;\n\n if (args[0]) {\n x = args[0].compile().evaluate(scope);\n }\n\n if (args[1]) {\n if ((0, _is.isSymbolNode)(args[1]) || (0, _is.isFunctionAssignmentNode)(args[1])) {\n // a function pointer, like forEach([3, -2, 5], myTestFunction)\n callback = args[1].compile().evaluate(scope);\n } else {\n // an expression like forEach([3, -2, 5], x > 0 ? callback1(x) : callback2(x) )\n callback = (0, _compileInlineExpression.compileInlineExpression)(args[1], math, scope);\n }\n }\n\n return _forEach(x, callback);\n }\n\n forEachTransform.rawArgs = true; // one-based version of forEach\n\n var _forEach = typed('forEach', {\n 'Array | Matrix, function': function ArrayMatrixFunction(array, callback) {\n // figure out what number of arguments the callback function expects\n var args = (0, _function.maxArgumentCount)(callback);\n\n var recurse = function recurse(value, index) {\n if (Array.isArray(value)) {\n (0, _array.forEach)(value, function (child, i) {\n // we create a copy of the index array and append the new index value\n recurse(child, index.concat(i + 1)); // one based index, hence i+1\n });\n } else {\n // invoke the callback function with the right number of arguments\n if (args === 1) {\n callback(value);\n } else if (args === 2) {\n callback(value, index);\n } else {\n // 3 or -1\n callback(value, index, array);\n }\n }\n };\n\n recurse(array.valueOf(), []); // pass Array\n }\n });\n\n return forEachTransform;\n}, {\n isTransformFunction: true\n});\nexports.createForEachTransform = createForEachTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createIndexTransform = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar name = 'index';\nvar dependencies = ['Index'];\nvar createIndexTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var Index = _ref.Index;\n\n /**\n * Attach a transform function to math.index\n * Adds a property transform containing the transform function.\n *\n * This transform creates a one-based index instead of a zero-based index\n */\n return function indexTransform() {\n var args = [];\n\n for (var i = 0, ii = arguments.length; i < ii; i++) {\n var arg = arguments[i]; // change from one-based to zero based, and convert BigNumber to number\n\n if ((0, _is.isRange)(arg)) {\n arg.start--;\n arg.end -= arg.step > 0 ? 0 : 2;\n } else if (arg && arg.isSet === true) {\n arg = arg.map(function (v) {\n return v - 1;\n });\n } else if ((0, _is.isArray)(arg) || (0, _is.isMatrix)(arg)) {\n arg = arg.map(function (v) {\n return v - 1;\n });\n } else if ((0, _is.isNumber)(arg)) {\n arg--;\n } else if ((0, _is.isBigNumber)(arg)) {\n arg = arg.toNumber() - 1;\n } else if (typeof arg === 'string') {// leave as is\n } else {\n throw new TypeError('Dimension must be an Array, Matrix, number, string, or Range');\n }\n\n args[i] = arg;\n }\n\n var res = new Index();\n Index.apply(res, args);\n return res;\n };\n}, {\n isTransformFunction: true\n});\nexports.createIndexTransform = createIndexTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMapTransform = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _function = require(\"../../utils/function.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _compileInlineExpression = require(\"./utils/compileInlineExpression.js\");\n\nvar name = 'map';\nvar dependencies = ['typed'];\nvar createMapTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed;\n\n /**\n * Attach a transform function to math.map\n * Adds a property transform containing the transform function.\n *\n * This transform creates a one-based index instead of a zero-based index\n */\n function mapTransform(args, math, scope) {\n var x, callback;\n\n if (args[0]) {\n x = args[0].compile().evaluate(scope);\n }\n\n if (args[1]) {\n if ((0, _is.isSymbolNode)(args[1]) || (0, _is.isFunctionAssignmentNode)(args[1])) {\n // a function pointer, like filter([3, -2, 5], myTestFunction)\n callback = args[1].compile().evaluate(scope);\n } else {\n // an expression like filter([3, -2, 5], x > 0)\n callback = (0, _compileInlineExpression.compileInlineExpression)(args[1], math, scope);\n }\n }\n\n return map(x, callback);\n }\n\n mapTransform.rawArgs = true; // one-based version of map function\n\n var map = typed('map', {\n 'Array, function': function ArrayFunction(x, callback) {\n return _map(x, callback, x);\n },\n 'Matrix, function': function MatrixFunction(x, callback) {\n return x.create(_map(x.valueOf(), callback, x));\n }\n });\n return mapTransform;\n}, {\n isTransformFunction: true\n});\n/**\n * Map for a multi dimensional array. One-based indexes\n * @param {Array} array\n * @param {function} callback\n * @param {Array} orig\n * @return {Array}\n * @private\n */\n\nexports.createMapTransform = createMapTransform;\n\nfunction _map(array, callback, orig) {\n // figure out what number of arguments the callback function expects\n var argsCount = (0, _function.maxArgumentCount)(callback);\n\n function recurse(value, index) {\n if (Array.isArray(value)) {\n return (0, _array.map)(value, function (child, i) {\n // we create a copy of the index array and append the new index value\n return recurse(child, index.concat(i + 1)); // one based index, hence i + 1\n });\n } else {\n // invoke the (typed) callback function with the right number of arguments\n if (argsCount === 1) {\n return callback(value);\n } else if (argsCount === 2) {\n return callback(value, index);\n } else {\n // 3 or -1\n return callback(value, index, orig);\n }\n }\n }\n\n return recurse(array, []);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lastDimToZeroBase = lastDimToZeroBase;\n\nvar _is = require(\"../../../utils/is.js\");\n\n/**\n * Change last argument dim from one-based to zero-based.\n */\nfunction lastDimToZeroBase(args) {\n if (args.length === 2 && (0, _is.isCollection)(args[0])) {\n args = args.slice();\n var dim = args[1];\n\n if ((0, _is.isNumber)(dim)) {\n args[1] = dim - 1;\n } else if ((0, _is.isBigNumber)(dim)) {\n args[1] = dim.minus(1);\n }\n }\n\n return args;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMaxTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _max = require(\"../../function/statistics/max.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\nvar name = 'max';\nvar dependencies = ['typed', 'config', 'numeric', 'larger'];\nvar createMaxTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n numeric = _ref.numeric,\n larger = _ref.larger;\n var max = (0, _max.createMax)({\n typed: typed,\n config: config,\n numeric: numeric,\n larger: larger\n });\n /**\n * Attach a transform function to math.max\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function max\n * from one-based to zero based\n */\n\n return typed('max', {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return max.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createMaxTransform = createMaxTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMeanTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _mean = require(\"../../function/statistics/mean.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\nvar name = 'mean';\nvar dependencies = ['typed', 'add', 'divide'];\nvar createMeanTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n divide = _ref.divide;\n var mean = (0, _mean.createMean)({\n typed: typed,\n add: add,\n divide: divide\n });\n /**\n * Attach a transform function to math.mean\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function mean\n * from one-based to zero based\n */\n\n return typed('mean', {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return mean.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createMeanTransform = createMeanTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createMinTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _min = require(\"../../function/statistics/min.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\nvar name = 'min';\nvar dependencies = ['typed', 'config', 'numeric', 'smaller'];\nvar createMinTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n numeric = _ref.numeric,\n smaller = _ref.smaller;\n var min = (0, _min.createMin)({\n typed: typed,\n config: config,\n numeric: numeric,\n smaller: smaller\n });\n /**\n * Attach a transform function to math.min\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function min\n * from one-based to zero based\n */\n\n return typed('min', {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return min.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createMinTransform = createMinTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRangeTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _range = require(\"../../function/matrix/range.js\");\n\nvar name = 'range';\nvar dependencies = ['typed', 'config', '?matrix', '?bignumber', 'smaller', 'smallerEq', 'larger', 'largerEq'];\nvar createRangeTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n matrix = _ref.matrix,\n bignumber = _ref.bignumber,\n smaller = _ref.smaller,\n smallerEq = _ref.smallerEq,\n larger = _ref.larger,\n largerEq = _ref.largerEq;\n var range = (0, _range.createRange)({\n typed: typed,\n config: config,\n matrix: matrix,\n bignumber: bignumber,\n smaller: smaller,\n smallerEq: smallerEq,\n larger: larger,\n largerEq: largerEq\n });\n /**\n * Attach a transform function to math.range\n * Adds a property transform containing the transform function.\n *\n * This transform creates a range which includes the end value\n */\n\n return typed('range', {\n '...any': function any(args) {\n var lastIndex = args.length - 1;\n var last = args[lastIndex];\n\n if (typeof last !== 'boolean') {\n // append a parameter includeEnd=true\n args.push(true);\n }\n\n return range.apply(null, args);\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createRangeTransform = createRangeTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createRowTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _row = require(\"../../function/matrix/row.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _is = require(\"../../utils/is.js\");\n\nvar name = 'row';\nvar dependencies = ['typed', 'Index', 'matrix', 'range'];\n/**\n * Attach a transform function to matrix.column\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `index` parameter of function column\n * from zero-based to one-based\n */\n\nvar createRowTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n Index = _ref.Index,\n matrix = _ref.matrix,\n range = _ref.range;\n var row = (0, _row.createRow)({\n typed: typed,\n Index: Index,\n matrix: matrix,\n range: range\n }); // @see: comment of row itself\n\n return typed('row', {\n '...any': function any(args) {\n // change last argument from zero-based to one-based\n var lastIndex = args.length - 1;\n var last = args[lastIndex];\n\n if ((0, _is.isNumber)(last)) {\n args[lastIndex] = last - 1;\n }\n\n try {\n return row.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createRowTransform = createRowTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSubsetTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _subset = require(\"../../function/matrix/subset.js\");\n\nvar name = 'subset';\nvar dependencies = ['typed', 'matrix'];\nvar createSubsetTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix;\n var subset = (0, _subset.createSubset)({\n typed: typed,\n matrix: matrix\n });\n /**\n * Attach a transform function to math.subset\n * Adds a property transform containing the transform function.\n *\n * This transform creates a range which includes the end value\n */\n\n return typed('subset', {\n '...any': function any(args) {\n try {\n return subset.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createSubsetTransform = createSubsetTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createConcatTransform = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _concat = require(\"../../function/matrix/concat.js\");\n\nvar name = 'concat';\nvar dependencies = ['typed', 'matrix', 'isInteger'];\nvar createConcatTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n isInteger = _ref.isInteger;\n var concat = (0, _concat.createConcat)({\n typed: typed,\n matrix: matrix,\n isInteger: isInteger\n });\n /**\n * Attach a transform function to math.range\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function concat\n * from one-based to zero based\n */\n\n return typed('concat', {\n '...any': function any(args) {\n // change last argument from one-based to zero-based\n var lastIndex = args.length - 1;\n var last = args[lastIndex];\n\n if ((0, _is.isNumber)(last)) {\n args[lastIndex] = last - 1;\n } else if ((0, _is.isBigNumber)(last)) {\n args[lastIndex] = last.minus(1);\n }\n\n try {\n return concat.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createConcatTransform = createConcatTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createDiffTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _diff = require(\"../../function/matrix/diff.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\nvar name = 'diff';\nvar dependencies = ['typed', 'matrix', 'subtract', 'number', 'bignumber'];\nvar createDiffTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n matrix = _ref.matrix,\n subtract = _ref.subtract,\n number = _ref.number,\n bignumber = _ref.bignumber;\n var diff = (0, _diff.createDiff)({\n typed: typed,\n matrix: matrix,\n subtract: subtract,\n number: number,\n bignumber: bignumber\n });\n /**\n * Attach a transform function to math.diff\n * Adds a property transform containing the transform function.\n *\n * This transform creates a range which includes the end value\n */\n\n return typed(name, {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return diff.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createDiffTransform = createDiffTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createStdTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _std = require(\"../../function/statistics/std.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\nvar name = 'std';\nvar dependencies = ['typed', 'sqrt', 'variance'];\n/**\n * Attach a transform function to math.std\n * Adds a property transform containing the transform function.\n *\n * This transform changed the `dim` parameter of function std\n * from one-based to zero based\n */\n\nvar createStdTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n sqrt = _ref.sqrt,\n variance = _ref.variance;\n var std = (0, _std.createStd)({\n typed: typed,\n sqrt: sqrt,\n variance: variance\n });\n return typed('std', {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return std.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createStdTransform = createStdTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createSumTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _sum = require(\"../../function/statistics/sum.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\n/**\n * Attach a transform function to math.sum\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function sum\n * from one-based to zero based\n */\nvar name = 'sum';\nvar dependencies = ['typed', 'config', 'add', 'numeric'];\nvar createSumTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n config = _ref.config,\n add = _ref.add,\n numeric = _ref.numeric;\n var sum = (0, _sum.createSum)({\n typed: typed,\n config: config,\n add: add,\n numeric: numeric\n });\n return typed(name, {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return sum.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createSumTransform = createSumTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createCumSumTransform = void 0;\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _cumsum = require(\"../../function/statistics/cumsum.js\");\n\n/**\n * Attach a transform function to math.sum\n * Adds a property transform containing the transform function.\n *\n * This transform changed the last `dim` parameter of function sum\n * from one-based to zero based\n */\nvar name = 'cumsum';\nvar dependencies = ['typed', 'add', 'unaryPlus'];\nvar createCumSumTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n unaryPlus = _ref.unaryPlus;\n var cumsum = (0, _cumsum.createCumSum)({\n typed: typed,\n add: add,\n unaryPlus: unaryPlus\n });\n return typed(name, {\n '...any': function any(args) {\n // change last argument dim from one-based to zero-based\n if (args.length === 2 && (0, _is.isCollection)(args[0])) {\n var dim = args[1];\n\n if ((0, _is.isNumber)(dim)) {\n args[1] = dim - 1;\n } else if ((0, _is.isBigNumber)(dim)) {\n args[1] = dim.minus(1);\n }\n }\n\n try {\n return cumsum.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createCumSumTransform = createCumSumTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createVarianceTransform = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _errorTransform = require(\"./utils/errorTransform.js\");\n\nvar _variance = require(\"../../function/statistics/variance.js\");\n\nvar _lastDimToZeroBase = require(\"./utils/lastDimToZeroBase.js\");\n\nvar name = 'variance';\nvar dependencies = ['typed', 'add', 'subtract', 'multiply', 'divide', 'apply', 'isNaN'];\n/**\n * Attach a transform function to math.var\n * Adds a property transform containing the transform function.\n *\n * This transform changed the `dim` parameter of function var\n * from one-based to zero based\n */\n\nvar createVarianceTransform = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n var typed = _ref.typed,\n add = _ref.add,\n subtract = _ref.subtract,\n multiply = _ref.multiply,\n divide = _ref.divide,\n apply = _ref.apply,\n isNaN = _ref.isNaN;\n var variance = (0, _variance.createVariance)({\n typed: typed,\n add: add,\n subtract: subtract,\n multiply: multiply,\n divide: divide,\n apply: apply,\n isNaN: isNaN\n });\n return typed(name, {\n '...any': function any(args) {\n args = (0, _lastDimToZeroBase.lastDimToZeroBase)(args);\n\n try {\n return variance.apply(null, args);\n } catch (err) {\n throw (0, _errorTransform.errorTransform)(err);\n }\n }\n });\n}, {\n isTransformFunction: true\n});\nexports.createVarianceTransform = createVarianceTransform;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"createAbs\", {\n enumerable: true,\n get: function get() {\n return _abs.createAbs;\n }\n});\nObject.defineProperty(exports, \"createAccessorNode\", {\n enumerable: true,\n get: function get() {\n return _AccessorNode.createAccessorNode;\n }\n});\nObject.defineProperty(exports, \"createAcos\", {\n enumerable: true,\n get: function get() {\n return _acos.createAcos;\n }\n});\nObject.defineProperty(exports, \"createAcosh\", {\n enumerable: true,\n get: function get() {\n return _acosh.createAcosh;\n }\n});\nObject.defineProperty(exports, \"createAcot\", {\n enumerable: true,\n get: function get() {\n return _acot.createAcot;\n }\n});\nObject.defineProperty(exports, \"createAcoth\", {\n enumerable: true,\n get: function get() {\n return _acoth.createAcoth;\n }\n});\nObject.defineProperty(exports, \"createAcsc\", {\n enumerable: true,\n get: function get() {\n return _acsc.createAcsc;\n }\n});\nObject.defineProperty(exports, \"createAcsch\", {\n enumerable: true,\n get: function get() {\n return _acsch.createAcsch;\n }\n});\nObject.defineProperty(exports, \"createAdd\", {\n enumerable: true,\n get: function get() {\n return _add.createAdd;\n }\n});\nObject.defineProperty(exports, \"createAddScalar\", {\n enumerable: true,\n get: function get() {\n return _addScalar.createAddScalar;\n }\n});\nObject.defineProperty(exports, \"createAnd\", {\n enumerable: true,\n get: function get() {\n return _and.createAnd;\n }\n});\nObject.defineProperty(exports, \"createApply\", {\n enumerable: true,\n get: function get() {\n return _apply.createApply;\n }\n});\nObject.defineProperty(exports, \"createApplyTransform\", {\n enumerable: true,\n get: function get() {\n return _applyTransform.createApplyTransform;\n }\n});\nObject.defineProperty(exports, \"createArg\", {\n enumerable: true,\n get: function get() {\n return _arg.createArg;\n }\n});\nObject.defineProperty(exports, \"createArrayNode\", {\n enumerable: true,\n get: function get() {\n return _ArrayNode.createArrayNode;\n }\n});\nObject.defineProperty(exports, \"createAsec\", {\n enumerable: true,\n get: function get() {\n return _asec.createAsec;\n }\n});\nObject.defineProperty(exports, \"createAsech\", {\n enumerable: true,\n get: function get() {\n return _asech.createAsech;\n }\n});\nObject.defineProperty(exports, \"createAsin\", {\n enumerable: true,\n get: function get() {\n return _asin.createAsin;\n }\n});\nObject.defineProperty(exports, \"createAsinh\", {\n enumerable: true,\n get: function get() {\n return _asinh.createAsinh;\n }\n});\nObject.defineProperty(exports, \"createAssignmentNode\", {\n enumerable: true,\n get: function get() {\n return _AssignmentNode.createAssignmentNode;\n }\n});\nObject.defineProperty(exports, \"createAtan\", {\n enumerable: true,\n get: function get() {\n return _atan.createAtan;\n }\n});\nObject.defineProperty(exports, \"createAtan2\", {\n enumerable: true,\n get: function get() {\n return _atan2.createAtan2;\n }\n});\nObject.defineProperty(exports, \"createAtanh\", {\n enumerable: true,\n get: function get() {\n return _atanh.createAtanh;\n }\n});\nObject.defineProperty(exports, \"createAtomicMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createAtomicMass;\n }\n});\nObject.defineProperty(exports, \"createAvogadro\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createAvogadro;\n }\n});\nObject.defineProperty(exports, \"createBellNumbers\", {\n enumerable: true,\n get: function get() {\n return _bellNumbers.createBellNumbers;\n }\n});\nObject.defineProperty(exports, \"createBigNumberClass\", {\n enumerable: true,\n get: function get() {\n return _BigNumber.createBigNumberClass;\n }\n});\nObject.defineProperty(exports, \"createBignumber\", {\n enumerable: true,\n get: function get() {\n return _bignumber.createBignumber;\n }\n});\nObject.defineProperty(exports, \"createBin\", {\n enumerable: true,\n get: function get() {\n return _bin.createBin;\n }\n});\nObject.defineProperty(exports, \"createBitAnd\", {\n enumerable: true,\n get: function get() {\n return _bitAnd.createBitAnd;\n }\n});\nObject.defineProperty(exports, \"createBitNot\", {\n enumerable: true,\n get: function get() {\n return _bitNot.createBitNot;\n }\n});\nObject.defineProperty(exports, \"createBitOr\", {\n enumerable: true,\n get: function get() {\n return _bitOr.createBitOr;\n }\n});\nObject.defineProperty(exports, \"createBitXor\", {\n enumerable: true,\n get: function get() {\n return _bitXor.createBitXor;\n }\n});\nObject.defineProperty(exports, \"createBlockNode\", {\n enumerable: true,\n get: function get() {\n return _BlockNode.createBlockNode;\n }\n});\nObject.defineProperty(exports, \"createBohrMagneton\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createBohrMagneton;\n }\n});\nObject.defineProperty(exports, \"createBohrRadius\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createBohrRadius;\n }\n});\nObject.defineProperty(exports, \"createBoltzmann\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createBoltzmann;\n }\n});\nObject.defineProperty(exports, \"createBoolean\", {\n enumerable: true,\n get: function get() {\n return _boolean.createBoolean;\n }\n});\nObject.defineProperty(exports, \"createCatalan\", {\n enumerable: true,\n get: function get() {\n return _catalan.createCatalan;\n }\n});\nObject.defineProperty(exports, \"createCbrt\", {\n enumerable: true,\n get: function get() {\n return _cbrt.createCbrt;\n }\n});\nObject.defineProperty(exports, \"createCeil\", {\n enumerable: true,\n get: function get() {\n return _ceil.createCeil;\n }\n});\nObject.defineProperty(exports, \"createChain\", {\n enumerable: true,\n get: function get() {\n return _chain.createChain;\n }\n});\nObject.defineProperty(exports, \"createChainClass\", {\n enumerable: true,\n get: function get() {\n return _Chain.createChainClass;\n }\n});\nObject.defineProperty(exports, \"createClassicalElectronRadius\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createClassicalElectronRadius;\n }\n});\nObject.defineProperty(exports, \"createClone\", {\n enumerable: true,\n get: function get() {\n return _clone.createClone;\n }\n});\nObject.defineProperty(exports, \"createColumn\", {\n enumerable: true,\n get: function get() {\n return _column.createColumn;\n }\n});\nObject.defineProperty(exports, \"createColumnTransform\", {\n enumerable: true,\n get: function get() {\n return _columnTransform.createColumnTransform;\n }\n});\nObject.defineProperty(exports, \"createCombinations\", {\n enumerable: true,\n get: function get() {\n return _combinations.createCombinations;\n }\n});\nObject.defineProperty(exports, \"createCombinationsWithRep\", {\n enumerable: true,\n get: function get() {\n return _combinationsWithRep.createCombinationsWithRep;\n }\n});\nObject.defineProperty(exports, \"createCompare\", {\n enumerable: true,\n get: function get() {\n return _compare.createCompare;\n }\n});\nObject.defineProperty(exports, \"createCompareNatural\", {\n enumerable: true,\n get: function get() {\n return _compareNatural.createCompareNatural;\n }\n});\nObject.defineProperty(exports, \"createCompareText\", {\n enumerable: true,\n get: function get() {\n return _compareText.createCompareText;\n }\n});\nObject.defineProperty(exports, \"createCompile\", {\n enumerable: true,\n get: function get() {\n return _compile.createCompile;\n }\n});\nObject.defineProperty(exports, \"createComplex\", {\n enumerable: true,\n get: function get() {\n return _complex.createComplex;\n }\n});\nObject.defineProperty(exports, \"createComplexClass\", {\n enumerable: true,\n get: function get() {\n return _Complex.createComplexClass;\n }\n});\nObject.defineProperty(exports, \"createComposition\", {\n enumerable: true,\n get: function get() {\n return _composition.createComposition;\n }\n});\nObject.defineProperty(exports, \"createConcat\", {\n enumerable: true,\n get: function get() {\n return _concat.createConcat;\n }\n});\nObject.defineProperty(exports, \"createConcatTransform\", {\n enumerable: true,\n get: function get() {\n return _concatTransform.createConcatTransform;\n }\n});\nObject.defineProperty(exports, \"createConditionalNode\", {\n enumerable: true,\n get: function get() {\n return _ConditionalNode.createConditionalNode;\n }\n});\nObject.defineProperty(exports, \"createConductanceQuantum\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createConductanceQuantum;\n }\n});\nObject.defineProperty(exports, \"createConj\", {\n enumerable: true,\n get: function get() {\n return _conj.createConj;\n }\n});\nObject.defineProperty(exports, \"createConstantNode\", {\n enumerable: true,\n get: function get() {\n return _ConstantNode.createConstantNode;\n }\n});\nObject.defineProperty(exports, \"createCos\", {\n enumerable: true,\n get: function get() {\n return _cos.createCos;\n }\n});\nObject.defineProperty(exports, \"createCosh\", {\n enumerable: true,\n get: function get() {\n return _cosh.createCosh;\n }\n});\nObject.defineProperty(exports, \"createCot\", {\n enumerable: true,\n get: function get() {\n return _cot.createCot;\n }\n});\nObject.defineProperty(exports, \"createCoth\", {\n enumerable: true,\n get: function get() {\n return _coth.createCoth;\n }\n});\nObject.defineProperty(exports, \"createCoulomb\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createCoulomb;\n }\n});\nObject.defineProperty(exports, \"createCount\", {\n enumerable: true,\n get: function get() {\n return _count.createCount;\n }\n});\nObject.defineProperty(exports, \"createCreateUnit\", {\n enumerable: true,\n get: function get() {\n return _createUnit.createCreateUnit;\n }\n});\nObject.defineProperty(exports, \"createCross\", {\n enumerable: true,\n get: function get() {\n return _cross.createCross;\n }\n});\nObject.defineProperty(exports, \"createCsc\", {\n enumerable: true,\n get: function get() {\n return _csc.createCsc;\n }\n});\nObject.defineProperty(exports, \"createCsch\", {\n enumerable: true,\n get: function get() {\n return _csch.createCsch;\n }\n});\nObject.defineProperty(exports, \"createCtranspose\", {\n enumerable: true,\n get: function get() {\n return _ctranspose.createCtranspose;\n }\n});\nObject.defineProperty(exports, \"createCube\", {\n enumerable: true,\n get: function get() {\n return _cube.createCube;\n }\n});\nObject.defineProperty(exports, \"createCumSum\", {\n enumerable: true,\n get: function get() {\n return _cumsum.createCumSum;\n }\n});\nObject.defineProperty(exports, \"createCumSumTransform\", {\n enumerable: true,\n get: function get() {\n return _cumsumTransform.createCumSumTransform;\n }\n});\nObject.defineProperty(exports, \"createDeepEqual\", {\n enumerable: true,\n get: function get() {\n return _deepEqual.createDeepEqual;\n }\n});\nObject.defineProperty(exports, \"createDenseMatrixClass\", {\n enumerable: true,\n get: function get() {\n return _DenseMatrix.createDenseMatrixClass;\n }\n});\nObject.defineProperty(exports, \"createDerivative\", {\n enumerable: true,\n get: function get() {\n return _derivative.createDerivative;\n }\n});\nObject.defineProperty(exports, \"createDet\", {\n enumerable: true,\n get: function get() {\n return _det.createDet;\n }\n});\nObject.defineProperty(exports, \"createDeuteronMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createDeuteronMass;\n }\n});\nObject.defineProperty(exports, \"createDiag\", {\n enumerable: true,\n get: function get() {\n return _diag.createDiag;\n }\n});\nObject.defineProperty(exports, \"createDiff\", {\n enumerable: true,\n get: function get() {\n return _diff.createDiff;\n }\n});\nObject.defineProperty(exports, \"createDiffTransform\", {\n enumerable: true,\n get: function get() {\n return _diffTransform.createDiffTransform;\n }\n});\nObject.defineProperty(exports, \"createDistance\", {\n enumerable: true,\n get: function get() {\n return _distance.createDistance;\n }\n});\nObject.defineProperty(exports, \"createDivide\", {\n enumerable: true,\n get: function get() {\n return _divide.createDivide;\n }\n});\nObject.defineProperty(exports, \"createDivideScalar\", {\n enumerable: true,\n get: function get() {\n return _divideScalar.createDivideScalar;\n }\n});\nObject.defineProperty(exports, \"createDot\", {\n enumerable: true,\n get: function get() {\n return _dot.createDot;\n }\n});\nObject.defineProperty(exports, \"createDotDivide\", {\n enumerable: true,\n get: function get() {\n return _dotDivide.createDotDivide;\n }\n});\nObject.defineProperty(exports, \"createDotMultiply\", {\n enumerable: true,\n get: function get() {\n return _dotMultiply.createDotMultiply;\n }\n});\nObject.defineProperty(exports, \"createDotPow\", {\n enumerable: true,\n get: function get() {\n return _dotPow.createDotPow;\n }\n});\nObject.defineProperty(exports, \"createE\", {\n enumerable: true,\n get: function get() {\n return _constants.createE;\n }\n});\nObject.defineProperty(exports, \"createEfimovFactor\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createEfimovFactor;\n }\n});\nObject.defineProperty(exports, \"createEigs\", {\n enumerable: true,\n get: function get() {\n return _eigs.createEigs;\n }\n});\nObject.defineProperty(exports, \"createElectricConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createElectricConstant;\n }\n});\nObject.defineProperty(exports, \"createElectronMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createElectronMass;\n }\n});\nObject.defineProperty(exports, \"createElementaryCharge\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createElementaryCharge;\n }\n});\nObject.defineProperty(exports, \"createEqual\", {\n enumerable: true,\n get: function get() {\n return _equal.createEqual;\n }\n});\nObject.defineProperty(exports, \"createEqualScalar\", {\n enumerable: true,\n get: function get() {\n return _equalScalar.createEqualScalar;\n }\n});\nObject.defineProperty(exports, \"createEqualText\", {\n enumerable: true,\n get: function get() {\n return _equalText.createEqualText;\n }\n});\nObject.defineProperty(exports, \"createErf\", {\n enumerable: true,\n get: function get() {\n return _erf.createErf;\n }\n});\nObject.defineProperty(exports, \"createEvaluate\", {\n enumerable: true,\n get: function get() {\n return _evaluate.createEvaluate;\n }\n});\nObject.defineProperty(exports, \"createExp\", {\n enumerable: true,\n get: function get() {\n return _exp.createExp;\n }\n});\nObject.defineProperty(exports, \"createExpm\", {\n enumerable: true,\n get: function get() {\n return _expm2.createExpm;\n }\n});\nObject.defineProperty(exports, \"createExpm1\", {\n enumerable: true,\n get: function get() {\n return _expm.createExpm1;\n }\n});\nObject.defineProperty(exports, \"createFactorial\", {\n enumerable: true,\n get: function get() {\n return _factorial.createFactorial;\n }\n});\nObject.defineProperty(exports, \"createFalse\", {\n enumerable: true,\n get: function get() {\n return _constants.createFalse;\n }\n});\nObject.defineProperty(exports, \"createFaraday\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createFaraday;\n }\n});\nObject.defineProperty(exports, \"createFermiCoupling\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createFermiCoupling;\n }\n});\nObject.defineProperty(exports, \"createFft\", {\n enumerable: true,\n get: function get() {\n return _fft.createFft;\n }\n});\nObject.defineProperty(exports, \"createFibonacciHeapClass\", {\n enumerable: true,\n get: function get() {\n return _FibonacciHeap.createFibonacciHeapClass;\n }\n});\nObject.defineProperty(exports, \"createFilter\", {\n enumerable: true,\n get: function get() {\n return _filter.createFilter;\n }\n});\nObject.defineProperty(exports, \"createFilterTransform\", {\n enumerable: true,\n get: function get() {\n return _filterTransform.createFilterTransform;\n }\n});\nObject.defineProperty(exports, \"createFineStructure\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createFineStructure;\n }\n});\nObject.defineProperty(exports, \"createFirstRadiation\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createFirstRadiation;\n }\n});\nObject.defineProperty(exports, \"createFix\", {\n enumerable: true,\n get: function get() {\n return _fix.createFix;\n }\n});\nObject.defineProperty(exports, \"createFlatten\", {\n enumerable: true,\n get: function get() {\n return _flatten.createFlatten;\n }\n});\nObject.defineProperty(exports, \"createFloor\", {\n enumerable: true,\n get: function get() {\n return _floor.createFloor;\n }\n});\nObject.defineProperty(exports, \"createForEach\", {\n enumerable: true,\n get: function get() {\n return _forEach.createForEach;\n }\n});\nObject.defineProperty(exports, \"createForEachTransform\", {\n enumerable: true,\n get: function get() {\n return _forEachTransform.createForEachTransform;\n }\n});\nObject.defineProperty(exports, \"createFormat\", {\n enumerable: true,\n get: function get() {\n return _format.createFormat;\n }\n});\nObject.defineProperty(exports, \"createFraction\", {\n enumerable: true,\n get: function get() {\n return _fraction.createFraction;\n }\n});\nObject.defineProperty(exports, \"createFractionClass\", {\n enumerable: true,\n get: function get() {\n return _Fraction.createFractionClass;\n }\n});\nObject.defineProperty(exports, \"createFunctionAssignmentNode\", {\n enumerable: true,\n get: function get() {\n return _FunctionAssignmentNode.createFunctionAssignmentNode;\n }\n});\nObject.defineProperty(exports, \"createFunctionNode\", {\n enumerable: true,\n get: function get() {\n return _FunctionNode.createFunctionNode;\n }\n});\nObject.defineProperty(exports, \"createGamma\", {\n enumerable: true,\n get: function get() {\n return _gamma.createGamma;\n }\n});\nObject.defineProperty(exports, \"createGasConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createGasConstant;\n }\n});\nObject.defineProperty(exports, \"createGcd\", {\n enumerable: true,\n get: function get() {\n return _gcd.createGcd;\n }\n});\nObject.defineProperty(exports, \"createGetMatrixDataType\", {\n enumerable: true,\n get: function get() {\n return _getMatrixDataType.createGetMatrixDataType;\n }\n});\nObject.defineProperty(exports, \"createGravitationConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createGravitationConstant;\n }\n});\nObject.defineProperty(exports, \"createGravity\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createGravity;\n }\n});\nObject.defineProperty(exports, \"createHartreeEnergy\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createHartreeEnergy;\n }\n});\nObject.defineProperty(exports, \"createHasNumericValue\", {\n enumerable: true,\n get: function get() {\n return _hasNumericValue.createHasNumericValue;\n }\n});\nObject.defineProperty(exports, \"createHelp\", {\n enumerable: true,\n get: function get() {\n return _help.createHelp;\n }\n});\nObject.defineProperty(exports, \"createHelpClass\", {\n enumerable: true,\n get: function get() {\n return _Help.createHelpClass;\n }\n});\nObject.defineProperty(exports, \"createHex\", {\n enumerable: true,\n get: function get() {\n return _hex.createHex;\n }\n});\nObject.defineProperty(exports, \"createHypot\", {\n enumerable: true,\n get: function get() {\n return _hypot.createHypot;\n }\n});\nObject.defineProperty(exports, \"createI\", {\n enumerable: true,\n get: function get() {\n return _constants.createI;\n }\n});\nObject.defineProperty(exports, \"createIdentity\", {\n enumerable: true,\n get: function get() {\n return _identity.createIdentity;\n }\n});\nObject.defineProperty(exports, \"createIfft\", {\n enumerable: true,\n get: function get() {\n return _ifft.createIfft;\n }\n});\nObject.defineProperty(exports, \"createIm\", {\n enumerable: true,\n get: function get() {\n return _im.createIm;\n }\n});\nObject.defineProperty(exports, \"createImmutableDenseMatrixClass\", {\n enumerable: true,\n get: function get() {\n return _ImmutableDenseMatrix.createImmutableDenseMatrixClass;\n }\n});\nObject.defineProperty(exports, \"createIndex\", {\n enumerable: true,\n get: function get() {\n return _index.createIndex;\n }\n});\nObject.defineProperty(exports, \"createIndexClass\", {\n enumerable: true,\n get: function get() {\n return _MatrixIndex.createIndexClass;\n }\n});\nObject.defineProperty(exports, \"createIndexNode\", {\n enumerable: true,\n get: function get() {\n return _IndexNode.createIndexNode;\n }\n});\nObject.defineProperty(exports, \"createIndexTransform\", {\n enumerable: true,\n get: function get() {\n return _indexTransform.createIndexTransform;\n }\n});\nObject.defineProperty(exports, \"createInfinity\", {\n enumerable: true,\n get: function get() {\n return _constants.createInfinity;\n }\n});\nObject.defineProperty(exports, \"createIntersect\", {\n enumerable: true,\n get: function get() {\n return _intersect.createIntersect;\n }\n});\nObject.defineProperty(exports, \"createInv\", {\n enumerable: true,\n get: function get() {\n return _inv.createInv;\n }\n});\nObject.defineProperty(exports, \"createInverseConductanceQuantum\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createInverseConductanceQuantum;\n }\n});\nObject.defineProperty(exports, \"createInvmod\", {\n enumerable: true,\n get: function get() {\n return _invmod.createInvmod;\n }\n});\nObject.defineProperty(exports, \"createIsInteger\", {\n enumerable: true,\n get: function get() {\n return _isInteger.createIsInteger;\n }\n});\nObject.defineProperty(exports, \"createIsNaN\", {\n enumerable: true,\n get: function get() {\n return _isNaN.createIsNaN;\n }\n});\nObject.defineProperty(exports, \"createIsNegative\", {\n enumerable: true,\n get: function get() {\n return _isNegative.createIsNegative;\n }\n});\nObject.defineProperty(exports, \"createIsNumeric\", {\n enumerable: true,\n get: function get() {\n return _isNumeric.createIsNumeric;\n }\n});\nObject.defineProperty(exports, \"createIsPositive\", {\n enumerable: true,\n get: function get() {\n return _isPositive.createIsPositive;\n }\n});\nObject.defineProperty(exports, \"createIsPrime\", {\n enumerable: true,\n get: function get() {\n return _isPrime.createIsPrime;\n }\n});\nObject.defineProperty(exports, \"createIsZero\", {\n enumerable: true,\n get: function get() {\n return _isZero.createIsZero;\n }\n});\nObject.defineProperty(exports, \"createKldivergence\", {\n enumerable: true,\n get: function get() {\n return _kldivergence.createKldivergence;\n }\n});\nObject.defineProperty(exports, \"createKlitzing\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createKlitzing;\n }\n});\nObject.defineProperty(exports, \"createKron\", {\n enumerable: true,\n get: function get() {\n return _kron.createKron;\n }\n});\nObject.defineProperty(exports, \"createLN10\", {\n enumerable: true,\n get: function get() {\n return _constants.createLN10;\n }\n});\nObject.defineProperty(exports, \"createLN2\", {\n enumerable: true,\n get: function get() {\n return _constants.createLN2;\n }\n});\nObject.defineProperty(exports, \"createLOG10E\", {\n enumerable: true,\n get: function get() {\n return _constants.createLOG10E;\n }\n});\nObject.defineProperty(exports, \"createLOG2E\", {\n enumerable: true,\n get: function get() {\n return _constants.createLOG2E;\n }\n});\nObject.defineProperty(exports, \"createLarger\", {\n enumerable: true,\n get: function get() {\n return _larger.createLarger;\n }\n});\nObject.defineProperty(exports, \"createLargerEq\", {\n enumerable: true,\n get: function get() {\n return _largerEq.createLargerEq;\n }\n});\nObject.defineProperty(exports, \"createLcm\", {\n enumerable: true,\n get: function get() {\n return _lcm.createLcm;\n }\n});\nObject.defineProperty(exports, \"createLeafCount\", {\n enumerable: true,\n get: function get() {\n return _leafCount.createLeafCount;\n }\n});\nObject.defineProperty(exports, \"createLeftShift\", {\n enumerable: true,\n get: function get() {\n return _leftShift.createLeftShift;\n }\n});\nObject.defineProperty(exports, \"createLgamma\", {\n enumerable: true,\n get: function get() {\n return _lgamma.createLgamma;\n }\n});\nObject.defineProperty(exports, \"createLog\", {\n enumerable: true,\n get: function get() {\n return _log3.createLog;\n }\n});\nObject.defineProperty(exports, \"createLog10\", {\n enumerable: true,\n get: function get() {\n return _log.createLog10;\n }\n});\nObject.defineProperty(exports, \"createLog1p\", {\n enumerable: true,\n get: function get() {\n return _log1p.createLog1p;\n }\n});\nObject.defineProperty(exports, \"createLog2\", {\n enumerable: true,\n get: function get() {\n return _log2.createLog2;\n }\n});\nObject.defineProperty(exports, \"createLoschmidt\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createLoschmidt;\n }\n});\nObject.defineProperty(exports, \"createLsolve\", {\n enumerable: true,\n get: function get() {\n return _lsolve.createLsolve;\n }\n});\nObject.defineProperty(exports, \"createLsolveAll\", {\n enumerable: true,\n get: function get() {\n return _lsolveAll.createLsolveAll;\n }\n});\nObject.defineProperty(exports, \"createLup\", {\n enumerable: true,\n get: function get() {\n return _lup.createLup;\n }\n});\nObject.defineProperty(exports, \"createLusolve\", {\n enumerable: true,\n get: function get() {\n return _lusolve.createLusolve;\n }\n});\nObject.defineProperty(exports, \"createMad\", {\n enumerable: true,\n get: function get() {\n return _mad.createMad;\n }\n});\nObject.defineProperty(exports, \"createMagneticConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createMagneticConstant;\n }\n});\nObject.defineProperty(exports, \"createMagneticFluxQuantum\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createMagneticFluxQuantum;\n }\n});\nObject.defineProperty(exports, \"createMap\", {\n enumerable: true,\n get: function get() {\n return _map.createMap;\n }\n});\nObject.defineProperty(exports, \"createMapTransform\", {\n enumerable: true,\n get: function get() {\n return _mapTransform.createMapTransform;\n }\n});\nObject.defineProperty(exports, \"createMatrix\", {\n enumerable: true,\n get: function get() {\n return _matrix.createMatrix;\n }\n});\nObject.defineProperty(exports, \"createMatrixClass\", {\n enumerable: true,\n get: function get() {\n return _Matrix.createMatrixClass;\n }\n});\nObject.defineProperty(exports, \"createMatrixFromColumns\", {\n enumerable: true,\n get: function get() {\n return _matrixFromColumns.createMatrixFromColumns;\n }\n});\nObject.defineProperty(exports, \"createMatrixFromFunction\", {\n enumerable: true,\n get: function get() {\n return _matrixFromFunction.createMatrixFromFunction;\n }\n});\nObject.defineProperty(exports, \"createMatrixFromRows\", {\n enumerable: true,\n get: function get() {\n return _matrixFromRows.createMatrixFromRows;\n }\n});\nObject.defineProperty(exports, \"createMax\", {\n enumerable: true,\n get: function get() {\n return _max.createMax;\n }\n});\nObject.defineProperty(exports, \"createMaxTransform\", {\n enumerable: true,\n get: function get() {\n return _maxTransform.createMaxTransform;\n }\n});\nObject.defineProperty(exports, \"createMean\", {\n enumerable: true,\n get: function get() {\n return _mean.createMean;\n }\n});\nObject.defineProperty(exports, \"createMeanTransform\", {\n enumerable: true,\n get: function get() {\n return _meanTransform.createMeanTransform;\n }\n});\nObject.defineProperty(exports, \"createMedian\", {\n enumerable: true,\n get: function get() {\n return _median.createMedian;\n }\n});\nObject.defineProperty(exports, \"createMin\", {\n enumerable: true,\n get: function get() {\n return _min.createMin;\n }\n});\nObject.defineProperty(exports, \"createMinTransform\", {\n enumerable: true,\n get: function get() {\n return _minTransform.createMinTransform;\n }\n});\nObject.defineProperty(exports, \"createMod\", {\n enumerable: true,\n get: function get() {\n return _mod.createMod;\n }\n});\nObject.defineProperty(exports, \"createMode\", {\n enumerable: true,\n get: function get() {\n return _mode.createMode;\n }\n});\nObject.defineProperty(exports, \"createMolarMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createMolarMass;\n }\n});\nObject.defineProperty(exports, \"createMolarMassC12\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createMolarMassC12;\n }\n});\nObject.defineProperty(exports, \"createMolarPlanckConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createMolarPlanckConstant;\n }\n});\nObject.defineProperty(exports, \"createMolarVolume\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createMolarVolume;\n }\n});\nObject.defineProperty(exports, \"createMultinomial\", {\n enumerable: true,\n get: function get() {\n return _multinomial.createMultinomial;\n }\n});\nObject.defineProperty(exports, \"createMultiply\", {\n enumerable: true,\n get: function get() {\n return _multiply.createMultiply;\n }\n});\nObject.defineProperty(exports, \"createMultiplyScalar\", {\n enumerable: true,\n get: function get() {\n return _multiplyScalar.createMultiplyScalar;\n }\n});\nObject.defineProperty(exports, \"createNaN\", {\n enumerable: true,\n get: function get() {\n return _constants.createNaN;\n }\n});\nObject.defineProperty(exports, \"createNeutronMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createNeutronMass;\n }\n});\nObject.defineProperty(exports, \"createNode\", {\n enumerable: true,\n get: function get() {\n return _Node.createNode;\n }\n});\nObject.defineProperty(exports, \"createNorm\", {\n enumerable: true,\n get: function get() {\n return _norm.createNorm;\n }\n});\nObject.defineProperty(exports, \"createNot\", {\n enumerable: true,\n get: function get() {\n return _not.createNot;\n }\n});\nObject.defineProperty(exports, \"createNthRoot\", {\n enumerable: true,\n get: function get() {\n return _nthRoot.createNthRoot;\n }\n});\nObject.defineProperty(exports, \"createNthRoots\", {\n enumerable: true,\n get: function get() {\n return _nthRoots.createNthRoots;\n }\n});\nObject.defineProperty(exports, \"createNuclearMagneton\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createNuclearMagneton;\n }\n});\nObject.defineProperty(exports, \"createNull\", {\n enumerable: true,\n get: function get() {\n return _constants.createNull;\n }\n});\nObject.defineProperty(exports, \"createNumber\", {\n enumerable: true,\n get: function get() {\n return _number.createNumber;\n }\n});\nObject.defineProperty(exports, \"createNumeric\", {\n enumerable: true,\n get: function get() {\n return _numeric.createNumeric;\n }\n});\nObject.defineProperty(exports, \"createObjectNode\", {\n enumerable: true,\n get: function get() {\n return _ObjectNode.createObjectNode;\n }\n});\nObject.defineProperty(exports, \"createOct\", {\n enumerable: true,\n get: function get() {\n return _oct.createOct;\n }\n});\nObject.defineProperty(exports, \"createOnes\", {\n enumerable: true,\n get: function get() {\n return _ones.createOnes;\n }\n});\nObject.defineProperty(exports, \"createOperatorNode\", {\n enumerable: true,\n get: function get() {\n return _OperatorNode.createOperatorNode;\n }\n});\nObject.defineProperty(exports, \"createOr\", {\n enumerable: true,\n get: function get() {\n return _or.createOr;\n }\n});\nObject.defineProperty(exports, \"createParenthesisNode\", {\n enumerable: true,\n get: function get() {\n return _ParenthesisNode.createParenthesisNode;\n }\n});\nObject.defineProperty(exports, \"createParse\", {\n enumerable: true,\n get: function get() {\n return _parse.createParse;\n }\n});\nObject.defineProperty(exports, \"createParser\", {\n enumerable: true,\n get: function get() {\n return _parser.createParser;\n }\n});\nObject.defineProperty(exports, \"createParserClass\", {\n enumerable: true,\n get: function get() {\n return _Parser.createParserClass;\n }\n});\nObject.defineProperty(exports, \"createPartitionSelect\", {\n enumerable: true,\n get: function get() {\n return _partitionSelect.createPartitionSelect;\n }\n});\nObject.defineProperty(exports, \"createPermutations\", {\n enumerable: true,\n get: function get() {\n return _permutations.createPermutations;\n }\n});\nObject.defineProperty(exports, \"createPhi\", {\n enumerable: true,\n get: function get() {\n return _constants.createPhi;\n }\n});\nObject.defineProperty(exports, \"createPi\", {\n enumerable: true,\n get: function get() {\n return _constants.createPi;\n }\n});\nObject.defineProperty(exports, \"createPickRandom\", {\n enumerable: true,\n get: function get() {\n return _pickRandom.createPickRandom;\n }\n});\nObject.defineProperty(exports, \"createPinv\", {\n enumerable: true,\n get: function get() {\n return _pinv.createPinv;\n }\n});\nObject.defineProperty(exports, \"createPlanckCharge\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createPlanckCharge;\n }\n});\nObject.defineProperty(exports, \"createPlanckConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createPlanckConstant;\n }\n});\nObject.defineProperty(exports, \"createPlanckLength\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createPlanckLength;\n }\n});\nObject.defineProperty(exports, \"createPlanckMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createPlanckMass;\n }\n});\nObject.defineProperty(exports, \"createPlanckTemperature\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createPlanckTemperature;\n }\n});\nObject.defineProperty(exports, \"createPlanckTime\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createPlanckTime;\n }\n});\nObject.defineProperty(exports, \"createPow\", {\n enumerable: true,\n get: function get() {\n return _pow.createPow;\n }\n});\nObject.defineProperty(exports, \"createPrint\", {\n enumerable: true,\n get: function get() {\n return _print.createPrint;\n }\n});\nObject.defineProperty(exports, \"createProd\", {\n enumerable: true,\n get: function get() {\n return _prod.createProd;\n }\n});\nObject.defineProperty(exports, \"createProtonMass\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createProtonMass;\n }\n});\nObject.defineProperty(exports, \"createQr\", {\n enumerable: true,\n get: function get() {\n return _qr.createQr;\n }\n});\nObject.defineProperty(exports, \"createQuantileSeq\", {\n enumerable: true,\n get: function get() {\n return _quantileSeq.createQuantileSeq;\n }\n});\nObject.defineProperty(exports, \"createQuantumOfCirculation\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createQuantumOfCirculation;\n }\n});\nObject.defineProperty(exports, \"createRandom\", {\n enumerable: true,\n get: function get() {\n return _random.createRandom;\n }\n});\nObject.defineProperty(exports, \"createRandomInt\", {\n enumerable: true,\n get: function get() {\n return _randomInt.createRandomInt;\n }\n});\nObject.defineProperty(exports, \"createRange\", {\n enumerable: true,\n get: function get() {\n return _range.createRange;\n }\n});\nObject.defineProperty(exports, \"createRangeClass\", {\n enumerable: true,\n get: function get() {\n return _Range.createRangeClass;\n }\n});\nObject.defineProperty(exports, \"createRangeNode\", {\n enumerable: true,\n get: function get() {\n return _RangeNode.createRangeNode;\n }\n});\nObject.defineProperty(exports, \"createRangeTransform\", {\n enumerable: true,\n get: function get() {\n return _rangeTransform.createRangeTransform;\n }\n});\nObject.defineProperty(exports, \"createRationalize\", {\n enumerable: true,\n get: function get() {\n return _rationalize.createRationalize;\n }\n});\nObject.defineProperty(exports, \"createRe\", {\n enumerable: true,\n get: function get() {\n return _re.createRe;\n }\n});\nObject.defineProperty(exports, \"createReducedPlanckConstant\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createReducedPlanckConstant;\n }\n});\nObject.defineProperty(exports, \"createRelationalNode\", {\n enumerable: true,\n get: function get() {\n return _RelationalNode.createRelationalNode;\n }\n});\nObject.defineProperty(exports, \"createReplacer\", {\n enumerable: true,\n get: function get() {\n return _replacer.createReplacer;\n }\n});\nObject.defineProperty(exports, \"createReshape\", {\n enumerable: true,\n get: function get() {\n return _reshape.createReshape;\n }\n});\nObject.defineProperty(exports, \"createResize\", {\n enumerable: true,\n get: function get() {\n return _resize.createResize;\n }\n});\nObject.defineProperty(exports, \"createResolve\", {\n enumerable: true,\n get: function get() {\n return _resolve.createResolve;\n }\n});\nObject.defineProperty(exports, \"createResultSet\", {\n enumerable: true,\n get: function get() {\n return _ResultSet.createResultSet;\n }\n});\nObject.defineProperty(exports, \"createReviver\", {\n enumerable: true,\n get: function get() {\n return _reviver.createReviver;\n }\n});\nObject.defineProperty(exports, \"createRightArithShift\", {\n enumerable: true,\n get: function get() {\n return _rightArithShift.createRightArithShift;\n }\n});\nObject.defineProperty(exports, \"createRightLogShift\", {\n enumerable: true,\n get: function get() {\n return _rightLogShift.createRightLogShift;\n }\n});\nObject.defineProperty(exports, \"createRotate\", {\n enumerable: true,\n get: function get() {\n return _rotate.createRotate;\n }\n});\nObject.defineProperty(exports, \"createRotationMatrix\", {\n enumerable: true,\n get: function get() {\n return _rotationMatrix.createRotationMatrix;\n }\n});\nObject.defineProperty(exports, \"createRound\", {\n enumerable: true,\n get: function get() {\n return _round.createRound;\n }\n});\nObject.defineProperty(exports, \"createRow\", {\n enumerable: true,\n get: function get() {\n return _row.createRow;\n }\n});\nObject.defineProperty(exports, \"createRowTransform\", {\n enumerable: true,\n get: function get() {\n return _rowTransform.createRowTransform;\n }\n});\nObject.defineProperty(exports, \"createRydberg\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createRydberg;\n }\n});\nObject.defineProperty(exports, \"createSQRT1_2\", {\n enumerable: true,\n get: function get() {\n return _constants.createSQRT1_2;\n }\n});\nObject.defineProperty(exports, \"createSQRT2\", {\n enumerable: true,\n get: function get() {\n return _constants.createSQRT2;\n }\n});\nObject.defineProperty(exports, \"createSackurTetrode\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createSackurTetrode;\n }\n});\nObject.defineProperty(exports, \"createSec\", {\n enumerable: true,\n get: function get() {\n return _sec.createSec;\n }\n});\nObject.defineProperty(exports, \"createSech\", {\n enumerable: true,\n get: function get() {\n return _sech.createSech;\n }\n});\nObject.defineProperty(exports, \"createSecondRadiation\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createSecondRadiation;\n }\n});\nObject.defineProperty(exports, \"createSetCartesian\", {\n enumerable: true,\n get: function get() {\n return _setCartesian.createSetCartesian;\n }\n});\nObject.defineProperty(exports, \"createSetDifference\", {\n enumerable: true,\n get: function get() {\n return _setDifference.createSetDifference;\n }\n});\nObject.defineProperty(exports, \"createSetDistinct\", {\n enumerable: true,\n get: function get() {\n return _setDistinct.createSetDistinct;\n }\n});\nObject.defineProperty(exports, \"createSetIntersect\", {\n enumerable: true,\n get: function get() {\n return _setIntersect.createSetIntersect;\n }\n});\nObject.defineProperty(exports, \"createSetIsSubset\", {\n enumerable: true,\n get: function get() {\n return _setIsSubset.createSetIsSubset;\n }\n});\nObject.defineProperty(exports, \"createSetMultiplicity\", {\n enumerable: true,\n get: function get() {\n return _setMultiplicity.createSetMultiplicity;\n }\n});\nObject.defineProperty(exports, \"createSetPowerset\", {\n enumerable: true,\n get: function get() {\n return _setPowerset.createSetPowerset;\n }\n});\nObject.defineProperty(exports, \"createSetSize\", {\n enumerable: true,\n get: function get() {\n return _setSize.createSetSize;\n }\n});\nObject.defineProperty(exports, \"createSetSymDifference\", {\n enumerable: true,\n get: function get() {\n return _setSymDifference.createSetSymDifference;\n }\n});\nObject.defineProperty(exports, \"createSetUnion\", {\n enumerable: true,\n get: function get() {\n return _setUnion.createSetUnion;\n }\n});\nObject.defineProperty(exports, \"createSign\", {\n enumerable: true,\n get: function get() {\n return _sign.createSign;\n }\n});\nObject.defineProperty(exports, \"createSimplify\", {\n enumerable: true,\n get: function get() {\n return _simplify.createSimplify;\n }\n});\nObject.defineProperty(exports, \"createSimplifyCore\", {\n enumerable: true,\n get: function get() {\n return _simplifyCore.createSimplifyCore;\n }\n});\nObject.defineProperty(exports, \"createSin\", {\n enumerable: true,\n get: function get() {\n return _sin.createSin;\n }\n});\nObject.defineProperty(exports, \"createSinh\", {\n enumerable: true,\n get: function get() {\n return _sinh.createSinh;\n }\n});\nObject.defineProperty(exports, \"createSize\", {\n enumerable: true,\n get: function get() {\n return _size.createSize;\n }\n});\nObject.defineProperty(exports, \"createSlu\", {\n enumerable: true,\n get: function get() {\n return _slu.createSlu;\n }\n});\nObject.defineProperty(exports, \"createSmaller\", {\n enumerable: true,\n get: function get() {\n return _smaller.createSmaller;\n }\n});\nObject.defineProperty(exports, \"createSmallerEq\", {\n enumerable: true,\n get: function get() {\n return _smallerEq.createSmallerEq;\n }\n});\nObject.defineProperty(exports, \"createSort\", {\n enumerable: true,\n get: function get() {\n return _sort.createSort;\n }\n});\nObject.defineProperty(exports, \"createSpaClass\", {\n enumerable: true,\n get: function get() {\n return _Spa.createSpaClass;\n }\n});\nObject.defineProperty(exports, \"createSparse\", {\n enumerable: true,\n get: function get() {\n return _sparse.createSparse;\n }\n});\nObject.defineProperty(exports, \"createSparseMatrixClass\", {\n enumerable: true,\n get: function get() {\n return _SparseMatrix.createSparseMatrixClass;\n }\n});\nObject.defineProperty(exports, \"createSpeedOfLight\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createSpeedOfLight;\n }\n});\nObject.defineProperty(exports, \"createSplitUnit\", {\n enumerable: true,\n get: function get() {\n return _splitUnit.createSplitUnit;\n }\n});\nObject.defineProperty(exports, \"createSqrt\", {\n enumerable: true,\n get: function get() {\n return _sqrt.createSqrt;\n }\n});\nObject.defineProperty(exports, \"createSqrtm\", {\n enumerable: true,\n get: function get() {\n return _sqrtm.createSqrtm;\n }\n});\nObject.defineProperty(exports, \"createSquare\", {\n enumerable: true,\n get: function get() {\n return _square.createSquare;\n }\n});\nObject.defineProperty(exports, \"createSqueeze\", {\n enumerable: true,\n get: function get() {\n return _squeeze.createSqueeze;\n }\n});\nObject.defineProperty(exports, \"createStd\", {\n enumerable: true,\n get: function get() {\n return _std.createStd;\n }\n});\nObject.defineProperty(exports, \"createStdTransform\", {\n enumerable: true,\n get: function get() {\n return _stdTransform.createStdTransform;\n }\n});\nObject.defineProperty(exports, \"createStefanBoltzmann\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createStefanBoltzmann;\n }\n});\nObject.defineProperty(exports, \"createStirlingS2\", {\n enumerable: true,\n get: function get() {\n return _stirlingS.createStirlingS2;\n }\n});\nObject.defineProperty(exports, \"createString\", {\n enumerable: true,\n get: function get() {\n return _string.createString;\n }\n});\nObject.defineProperty(exports, \"createSubset\", {\n enumerable: true,\n get: function get() {\n return _subset.createSubset;\n }\n});\nObject.defineProperty(exports, \"createSubsetTransform\", {\n enumerable: true,\n get: function get() {\n return _subsetTransform.createSubsetTransform;\n }\n});\nObject.defineProperty(exports, \"createSubtract\", {\n enumerable: true,\n get: function get() {\n return _subtract.createSubtract;\n }\n});\nObject.defineProperty(exports, \"createSum\", {\n enumerable: true,\n get: function get() {\n return _sum.createSum;\n }\n});\nObject.defineProperty(exports, \"createSumTransform\", {\n enumerable: true,\n get: function get() {\n return _sumTransform.createSumTransform;\n }\n});\nObject.defineProperty(exports, \"createSymbolNode\", {\n enumerable: true,\n get: function get() {\n return _SymbolNode.createSymbolNode;\n }\n});\nObject.defineProperty(exports, \"createSymbolicEqual\", {\n enumerable: true,\n get: function get() {\n return _symbolicEqual.createSymbolicEqual;\n }\n});\nObject.defineProperty(exports, \"createTan\", {\n enumerable: true,\n get: function get() {\n return _tan.createTan;\n }\n});\nObject.defineProperty(exports, \"createTanh\", {\n enumerable: true,\n get: function get() {\n return _tanh.createTanh;\n }\n});\nObject.defineProperty(exports, \"createTau\", {\n enumerable: true,\n get: function get() {\n return _constants.createTau;\n }\n});\nObject.defineProperty(exports, \"createThomsonCrossSection\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createThomsonCrossSection;\n }\n});\nObject.defineProperty(exports, \"createTo\", {\n enumerable: true,\n get: function get() {\n return _to.createTo;\n }\n});\nObject.defineProperty(exports, \"createTrace\", {\n enumerable: true,\n get: function get() {\n return _trace.createTrace;\n }\n});\nObject.defineProperty(exports, \"createTranspose\", {\n enumerable: true,\n get: function get() {\n return _transpose.createTranspose;\n }\n});\nObject.defineProperty(exports, \"createTrue\", {\n enumerable: true,\n get: function get() {\n return _constants.createTrue;\n }\n});\nObject.defineProperty(exports, \"createTypeOf\", {\n enumerable: true,\n get: function get() {\n return _typeOf.createTypeOf;\n }\n});\nObject.defineProperty(exports, \"createTyped\", {\n enumerable: true,\n get: function get() {\n return _typed.createTyped;\n }\n});\nObject.defineProperty(exports, \"createUnaryMinus\", {\n enumerable: true,\n get: function get() {\n return _unaryMinus.createUnaryMinus;\n }\n});\nObject.defineProperty(exports, \"createUnaryPlus\", {\n enumerable: true,\n get: function get() {\n return _unaryPlus.createUnaryPlus;\n }\n});\nObject.defineProperty(exports, \"createUnequal\", {\n enumerable: true,\n get: function get() {\n return _unequal.createUnequal;\n }\n});\nObject.defineProperty(exports, \"createUnitClass\", {\n enumerable: true,\n get: function get() {\n return _Unit.createUnitClass;\n }\n});\nObject.defineProperty(exports, \"createUnitFunction\", {\n enumerable: true,\n get: function get() {\n return _unit.createUnitFunction;\n }\n});\nObject.defineProperty(exports, \"createUppercaseE\", {\n enumerable: true,\n get: function get() {\n return _constants.createUppercaseE;\n }\n});\nObject.defineProperty(exports, \"createUppercasePi\", {\n enumerable: true,\n get: function get() {\n return _constants.createUppercasePi;\n }\n});\nObject.defineProperty(exports, \"createUsolve\", {\n enumerable: true,\n get: function get() {\n return _usolve.createUsolve;\n }\n});\nObject.defineProperty(exports, \"createUsolveAll\", {\n enumerable: true,\n get: function get() {\n return _usolveAll.createUsolveAll;\n }\n});\nObject.defineProperty(exports, \"createVacuumImpedance\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createVacuumImpedance;\n }\n});\nObject.defineProperty(exports, \"createVariance\", {\n enumerable: true,\n get: function get() {\n return _variance.createVariance;\n }\n});\nObject.defineProperty(exports, \"createVarianceTransform\", {\n enumerable: true,\n get: function get() {\n return _varianceTransform.createVarianceTransform;\n }\n});\nObject.defineProperty(exports, \"createVersion\", {\n enumerable: true,\n get: function get() {\n return _constants.createVersion;\n }\n});\nObject.defineProperty(exports, \"createWeakMixingAngle\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createWeakMixingAngle;\n }\n});\nObject.defineProperty(exports, \"createWienDisplacement\", {\n enumerable: true,\n get: function get() {\n return _physicalConstants.createWienDisplacement;\n }\n});\nObject.defineProperty(exports, \"createXgcd\", {\n enumerable: true,\n get: function get() {\n return _xgcd.createXgcd;\n }\n});\nObject.defineProperty(exports, \"createXor\", {\n enumerable: true,\n get: function get() {\n return _xor.createXor;\n }\n});\nObject.defineProperty(exports, \"createZeros\", {\n enumerable: true,\n get: function get() {\n return _zeros.createZeros;\n }\n});\n\nvar _typed = require(\"./core/function/typed.js\");\n\nvar _ResultSet = require(\"./type/resultset/ResultSet.js\");\n\nvar _BigNumber = require(\"./type/bignumber/BigNumber.js\");\n\nvar _Complex = require(\"./type/complex/Complex.js\");\n\nvar _Fraction = require(\"./type/fraction/Fraction.js\");\n\nvar _Range = require(\"./type/matrix/Range.js\");\n\nvar _Matrix = require(\"./type/matrix/Matrix.js\");\n\nvar _DenseMatrix = require(\"./type/matrix/DenseMatrix.js\");\n\nvar _clone = require(\"./function/utils/clone.js\");\n\nvar _isInteger = require(\"./function/utils/isInteger.js\");\n\nvar _isNegative = require(\"./function/utils/isNegative.js\");\n\nvar _isNumeric = require(\"./function/utils/isNumeric.js\");\n\nvar _hasNumericValue = require(\"./function/utils/hasNumericValue.js\");\n\nvar _isPositive = require(\"./function/utils/isPositive.js\");\n\nvar _isZero = require(\"./function/utils/isZero.js\");\n\nvar _isNaN = require(\"./function/utils/isNaN.js\");\n\nvar _typeOf = require(\"./function/utils/typeOf.js\");\n\nvar _equalScalar = require(\"./function/relational/equalScalar.js\");\n\nvar _SparseMatrix = require(\"./type/matrix/SparseMatrix.js\");\n\nvar _number = require(\"./type/number.js\");\n\nvar _string = require(\"./type/string.js\");\n\nvar _boolean = require(\"./type/boolean.js\");\n\nvar _bignumber = require(\"./type/bignumber/function/bignumber.js\");\n\nvar _complex = require(\"./type/complex/function/complex.js\");\n\nvar _fraction = require(\"./type/fraction/function/fraction.js\");\n\nvar _matrix = require(\"./type/matrix/function/matrix.js\");\n\nvar _matrixFromFunction = require(\"./function/matrix/matrixFromFunction.js\");\n\nvar _matrixFromRows = require(\"./function/matrix/matrixFromRows.js\");\n\nvar _matrixFromColumns = require(\"./function/matrix/matrixFromColumns.js\");\n\nvar _splitUnit = require(\"./type/unit/function/splitUnit.js\");\n\nvar _unaryMinus = require(\"./function/arithmetic/unaryMinus.js\");\n\nvar _unaryPlus = require(\"./function/arithmetic/unaryPlus.js\");\n\nvar _abs = require(\"./function/arithmetic/abs.js\");\n\nvar _apply = require(\"./function/matrix/apply.js\");\n\nvar _addScalar = require(\"./function/arithmetic/addScalar.js\");\n\nvar _cbrt = require(\"./function/arithmetic/cbrt.js\");\n\nvar _ceil = require(\"./function/arithmetic/ceil.js\");\n\nvar _cube = require(\"./function/arithmetic/cube.js\");\n\nvar _exp = require(\"./function/arithmetic/exp.js\");\n\nvar _expm = require(\"./function/arithmetic/expm1.js\");\n\nvar _fix = require(\"./function/arithmetic/fix.js\");\n\nvar _floor = require(\"./function/arithmetic/floor.js\");\n\nvar _gcd = require(\"./function/arithmetic/gcd.js\");\n\nvar _lcm = require(\"./function/arithmetic/lcm.js\");\n\nvar _log = require(\"./function/arithmetic/log10.js\");\n\nvar _log2 = require(\"./function/arithmetic/log2.js\");\n\nvar _mod = require(\"./function/arithmetic/mod.js\");\n\nvar _multiplyScalar = require(\"./function/arithmetic/multiplyScalar.js\");\n\nvar _multiply = require(\"./function/arithmetic/multiply.js\");\n\nvar _nthRoot = require(\"./function/arithmetic/nthRoot.js\");\n\nvar _sign = require(\"./function/arithmetic/sign.js\");\n\nvar _sqrt = require(\"./function/arithmetic/sqrt.js\");\n\nvar _square = require(\"./function/arithmetic/square.js\");\n\nvar _subtract = require(\"./function/arithmetic/subtract.js\");\n\nvar _xgcd = require(\"./function/arithmetic/xgcd.js\");\n\nvar _invmod = require(\"./function/arithmetic/invmod.js\");\n\nvar _dotMultiply = require(\"./function/arithmetic/dotMultiply.js\");\n\nvar _bitAnd = require(\"./function/bitwise/bitAnd.js\");\n\nvar _bitNot = require(\"./function/bitwise/bitNot.js\");\n\nvar _bitOr = require(\"./function/bitwise/bitOr.js\");\n\nvar _bitXor = require(\"./function/bitwise/bitXor.js\");\n\nvar _arg = require(\"./function/complex/arg.js\");\n\nvar _conj = require(\"./function/complex/conj.js\");\n\nvar _im = require(\"./function/complex/im.js\");\n\nvar _re = require(\"./function/complex/re.js\");\n\nvar _not = require(\"./function/logical/not.js\");\n\nvar _or = require(\"./function/logical/or.js\");\n\nvar _xor = require(\"./function/logical/xor.js\");\n\nvar _concat = require(\"./function/matrix/concat.js\");\n\nvar _column = require(\"./function/matrix/column.js\");\n\nvar _count = require(\"./function/matrix/count.js\");\n\nvar _cross = require(\"./function/matrix/cross.js\");\n\nvar _diag = require(\"./function/matrix/diag.js\");\n\nvar _filter = require(\"./function/matrix/filter.js\");\n\nvar _flatten = require(\"./function/matrix/flatten.js\");\n\nvar _forEach = require(\"./function/matrix/forEach.js\");\n\nvar _getMatrixDataType = require(\"./function/matrix/getMatrixDataType.js\");\n\nvar _identity = require(\"./function/matrix/identity.js\");\n\nvar _kron = require(\"./function/matrix/kron.js\");\n\nvar _map = require(\"./function/matrix/map.js\");\n\nvar _diff = require(\"./function/matrix/diff.js\");\n\nvar _ones = require(\"./function/matrix/ones.js\");\n\nvar _range = require(\"./function/matrix/range.js\");\n\nvar _reshape = require(\"./function/matrix/reshape.js\");\n\nvar _resize = require(\"./function/matrix/resize.js\");\n\nvar _rotate = require(\"./function/matrix/rotate.js\");\n\nvar _rotationMatrix = require(\"./function/matrix/rotationMatrix.js\");\n\nvar _row = require(\"./function/matrix/row.js\");\n\nvar _size = require(\"./function/matrix/size.js\");\n\nvar _squeeze = require(\"./function/matrix/squeeze.js\");\n\nvar _subset = require(\"./function/matrix/subset.js\");\n\nvar _transpose = require(\"./function/matrix/transpose.js\");\n\nvar _ctranspose = require(\"./function/matrix/ctranspose.js\");\n\nvar _zeros = require(\"./function/matrix/zeros.js\");\n\nvar _fft = require(\"./function/matrix/fft.js\");\n\nvar _ifft = require(\"./function/matrix/ifft.js\");\n\nvar _erf = require(\"./function/special/erf.js\");\n\nvar _mode = require(\"./function/statistics/mode.js\");\n\nvar _prod = require(\"./function/statistics/prod.js\");\n\nvar _format = require(\"./function/string/format.js\");\n\nvar _bin = require(\"./function/string/bin.js\");\n\nvar _oct = require(\"./function/string/oct.js\");\n\nvar _hex = require(\"./function/string/hex.js\");\n\nvar _print = require(\"./function/string/print.js\");\n\nvar _to = require(\"./function/unit/to.js\");\n\nvar _isPrime = require(\"./function/utils/isPrime.js\");\n\nvar _numeric = require(\"./function/utils/numeric.js\");\n\nvar _divideScalar = require(\"./function/arithmetic/divideScalar.js\");\n\nvar _pow = require(\"./function/arithmetic/pow.js\");\n\nvar _round = require(\"./function/arithmetic/round.js\");\n\nvar _log3 = require(\"./function/arithmetic/log.js\");\n\nvar _log1p = require(\"./function/arithmetic/log1p.js\");\n\nvar _nthRoots = require(\"./function/arithmetic/nthRoots.js\");\n\nvar _dotPow = require(\"./function/arithmetic/dotPow.js\");\n\nvar _dotDivide = require(\"./function/arithmetic/dotDivide.js\");\n\nvar _lsolve = require(\"./function/algebra/solver/lsolve.js\");\n\nvar _usolve = require(\"./function/algebra/solver/usolve.js\");\n\nvar _lsolveAll = require(\"./function/algebra/solver/lsolveAll.js\");\n\nvar _usolveAll = require(\"./function/algebra/solver/usolveAll.js\");\n\nvar _leftShift = require(\"./function/bitwise/leftShift.js\");\n\nvar _rightArithShift = require(\"./function/bitwise/rightArithShift.js\");\n\nvar _rightLogShift = require(\"./function/bitwise/rightLogShift.js\");\n\nvar _and = require(\"./function/logical/and.js\");\n\nvar _compare = require(\"./function/relational/compare.js\");\n\nvar _compareNatural = require(\"./function/relational/compareNatural.js\");\n\nvar _compareText = require(\"./function/relational/compareText.js\");\n\nvar _equal = require(\"./function/relational/equal.js\");\n\nvar _equalText = require(\"./function/relational/equalText.js\");\n\nvar _smaller = require(\"./function/relational/smaller.js\");\n\nvar _smallerEq = require(\"./function/relational/smallerEq.js\");\n\nvar _larger = require(\"./function/relational/larger.js\");\n\nvar _largerEq = require(\"./function/relational/largerEq.js\");\n\nvar _deepEqual = require(\"./function/relational/deepEqual.js\");\n\nvar _unequal = require(\"./function/relational/unequal.js\");\n\nvar _partitionSelect = require(\"./function/matrix/partitionSelect.js\");\n\nvar _sort = require(\"./function/matrix/sort.js\");\n\nvar _max = require(\"./function/statistics/max.js\");\n\nvar _min = require(\"./function/statistics/min.js\");\n\nvar _ImmutableDenseMatrix = require(\"./type/matrix/ImmutableDenseMatrix.js\");\n\nvar _MatrixIndex = require(\"./type/matrix/MatrixIndex.js\");\n\nvar _FibonacciHeap = require(\"./type/matrix/FibonacciHeap.js\");\n\nvar _Spa = require(\"./type/matrix/Spa.js\");\n\nvar _Unit = require(\"./type/unit/Unit.js\");\n\nvar _unit = require(\"./type/unit/function/unit.js\");\n\nvar _sparse = require(\"./type/matrix/function/sparse.js\");\n\nvar _createUnit = require(\"./type/unit/function/createUnit.js\");\n\nvar _acos = require(\"./function/trigonometry/acos.js\");\n\nvar _acosh = require(\"./function/trigonometry/acosh.js\");\n\nvar _acot = require(\"./function/trigonometry/acot.js\");\n\nvar _acoth = require(\"./function/trigonometry/acoth.js\");\n\nvar _acsc = require(\"./function/trigonometry/acsc.js\");\n\nvar _acsch = require(\"./function/trigonometry/acsch.js\");\n\nvar _asec = require(\"./function/trigonometry/asec.js\");\n\nvar _asech = require(\"./function/trigonometry/asech.js\");\n\nvar _asin = require(\"./function/trigonometry/asin.js\");\n\nvar _asinh = require(\"./function/trigonometry/asinh.js\");\n\nvar _atan = require(\"./function/trigonometry/atan.js\");\n\nvar _atan2 = require(\"./function/trigonometry/atan2.js\");\n\nvar _atanh = require(\"./function/trigonometry/atanh.js\");\n\nvar _cos = require(\"./function/trigonometry/cos.js\");\n\nvar _cosh = require(\"./function/trigonometry/cosh.js\");\n\nvar _cot = require(\"./function/trigonometry/cot.js\");\n\nvar _coth = require(\"./function/trigonometry/coth.js\");\n\nvar _csc = require(\"./function/trigonometry/csc.js\");\n\nvar _csch = require(\"./function/trigonometry/csch.js\");\n\nvar _sec = require(\"./function/trigonometry/sec.js\");\n\nvar _sech = require(\"./function/trigonometry/sech.js\");\n\nvar _sin = require(\"./function/trigonometry/sin.js\");\n\nvar _sinh = require(\"./function/trigonometry/sinh.js\");\n\nvar _tan = require(\"./function/trigonometry/tan.js\");\n\nvar _tanh = require(\"./function/trigonometry/tanh.js\");\n\nvar _setCartesian = require(\"./function/set/setCartesian.js\");\n\nvar _setDifference = require(\"./function/set/setDifference.js\");\n\nvar _setDistinct = require(\"./function/set/setDistinct.js\");\n\nvar _setIntersect = require(\"./function/set/setIntersect.js\");\n\nvar _setIsSubset = require(\"./function/set/setIsSubset.js\");\n\nvar _setMultiplicity = require(\"./function/set/setMultiplicity.js\");\n\nvar _setPowerset = require(\"./function/set/setPowerset.js\");\n\nvar _setSize = require(\"./function/set/setSize.js\");\n\nvar _setSymDifference = require(\"./function/set/setSymDifference.js\");\n\nvar _setUnion = require(\"./function/set/setUnion.js\");\n\nvar _add = require(\"./function/arithmetic/add.js\");\n\nvar _hypot = require(\"./function/arithmetic/hypot.js\");\n\nvar _norm = require(\"./function/arithmetic/norm.js\");\n\nvar _dot = require(\"./function/matrix/dot.js\");\n\nvar _trace = require(\"./function/matrix/trace.js\");\n\nvar _index = require(\"./type/matrix/function/index.js\");\n\nvar _Node = require(\"./expression/node/Node.js\");\n\nvar _AccessorNode = require(\"./expression/node/AccessorNode.js\");\n\nvar _ArrayNode = require(\"./expression/node/ArrayNode.js\");\n\nvar _AssignmentNode = require(\"./expression/node/AssignmentNode.js\");\n\nvar _BlockNode = require(\"./expression/node/BlockNode.js\");\n\nvar _ConditionalNode = require(\"./expression/node/ConditionalNode.js\");\n\nvar _ConstantNode = require(\"./expression/node/ConstantNode.js\");\n\nvar _FunctionAssignmentNode = require(\"./expression/node/FunctionAssignmentNode.js\");\n\nvar _IndexNode = require(\"./expression/node/IndexNode.js\");\n\nvar _ObjectNode = require(\"./expression/node/ObjectNode.js\");\n\nvar _OperatorNode = require(\"./expression/node/OperatorNode.js\");\n\nvar _ParenthesisNode = require(\"./expression/node/ParenthesisNode.js\");\n\nvar _RangeNode = require(\"./expression/node/RangeNode.js\");\n\nvar _RelationalNode = require(\"./expression/node/RelationalNode.js\");\n\nvar _SymbolNode = require(\"./expression/node/SymbolNode.js\");\n\nvar _FunctionNode = require(\"./expression/node/FunctionNode.js\");\n\nvar _parse = require(\"./expression/parse.js\");\n\nvar _compile = require(\"./expression/function/compile.js\");\n\nvar _evaluate = require(\"./expression/function/evaluate.js\");\n\nvar _Parser = require(\"./expression/Parser.js\");\n\nvar _parser = require(\"./expression/function/parser.js\");\n\nvar _lup = require(\"./function/algebra/decomposition/lup.js\");\n\nvar _qr = require(\"./function/algebra/decomposition/qr.js\");\n\nvar _slu = require(\"./function/algebra/decomposition/slu.js\");\n\nvar _lusolve = require(\"./function/algebra/solver/lusolve.js\");\n\nvar _Help = require(\"./expression/Help.js\");\n\nvar _Chain = require(\"./type/chain/Chain.js\");\n\nvar _help = require(\"./expression/function/help.js\");\n\nvar _chain = require(\"./type/chain/function/chain.js\");\n\nvar _det = require(\"./function/matrix/det.js\");\n\nvar _inv = require(\"./function/matrix/inv.js\");\n\nvar _pinv = require(\"./function/matrix/pinv.js\");\n\nvar _eigs = require(\"./function/matrix/eigs.js\");\n\nvar _expm2 = require(\"./function/matrix/expm.js\");\n\nvar _sqrtm = require(\"./function/matrix/sqrtm.js\");\n\nvar _divide = require(\"./function/arithmetic/divide.js\");\n\nvar _distance = require(\"./function/geometry/distance.js\");\n\nvar _intersect = require(\"./function/geometry/intersect.js\");\n\nvar _sum = require(\"./function/statistics/sum.js\");\n\nvar _cumsum = require(\"./function/statistics/cumsum.js\");\n\nvar _mean = require(\"./function/statistics/mean.js\");\n\nvar _median = require(\"./function/statistics/median.js\");\n\nvar _mad = require(\"./function/statistics/mad.js\");\n\nvar _variance = require(\"./function/statistics/variance.js\");\n\nvar _quantileSeq = require(\"./function/statistics/quantileSeq.js\");\n\nvar _std = require(\"./function/statistics/std.js\");\n\nvar _combinations = require(\"./function/probability/combinations.js\");\n\nvar _combinationsWithRep = require(\"./function/probability/combinationsWithRep.js\");\n\nvar _gamma = require(\"./function/probability/gamma.js\");\n\nvar _lgamma = require(\"./function/probability/lgamma.js\");\n\nvar _factorial = require(\"./function/probability/factorial.js\");\n\nvar _kldivergence = require(\"./function/probability/kldivergence.js\");\n\nvar _multinomial = require(\"./function/probability/multinomial.js\");\n\nvar _permutations = require(\"./function/probability/permutations.js\");\n\nvar _pickRandom = require(\"./function/probability/pickRandom.js\");\n\nvar _random = require(\"./function/probability/random.js\");\n\nvar _randomInt = require(\"./function/probability/randomInt.js\");\n\nvar _stirlingS = require(\"./function/combinatorics/stirlingS2.js\");\n\nvar _bellNumbers = require(\"./function/combinatorics/bellNumbers.js\");\n\nvar _catalan = require(\"./function/combinatorics/catalan.js\");\n\nvar _composition = require(\"./function/combinatorics/composition.js\");\n\nvar _leafCount = require(\"./function/algebra/leafCount.js\");\n\nvar _simplify = require(\"./function/algebra/simplify.js\");\n\nvar _simplifyCore = require(\"./function/algebra/simplifyCore.js\");\n\nvar _resolve = require(\"./function/algebra/resolve.js\");\n\nvar _symbolicEqual = require(\"./function/algebra/symbolicEqual.js\");\n\nvar _derivative = require(\"./function/algebra/derivative.js\");\n\nvar _rationalize = require(\"./function/algebra/rationalize.js\");\n\nvar _reviver = require(\"./json/reviver.js\");\n\nvar _replacer = require(\"./json/replacer.js\");\n\nvar _constants = require(\"./constants.js\");\n\nvar _physicalConstants = require(\"./type/unit/physicalConstants.js\");\n\nvar _applyTransform = require(\"./expression/transform/apply.transform.js\");\n\nvar _columnTransform = require(\"./expression/transform/column.transform.js\");\n\nvar _filterTransform = require(\"./expression/transform/filter.transform.js\");\n\nvar _forEachTransform = require(\"./expression/transform/forEach.transform.js\");\n\nvar _indexTransform = require(\"./expression/transform/index.transform.js\");\n\nvar _mapTransform = require(\"./expression/transform/map.transform.js\");\n\nvar _maxTransform = require(\"./expression/transform/max.transform.js\");\n\nvar _meanTransform = require(\"./expression/transform/mean.transform.js\");\n\nvar _minTransform = require(\"./expression/transform/min.transform.js\");\n\nvar _rangeTransform = require(\"./expression/transform/range.transform.js\");\n\nvar _rowTransform = require(\"./expression/transform/row.transform.js\");\n\nvar _subsetTransform = require(\"./expression/transform/subset.transform.js\");\n\nvar _concatTransform = require(\"./expression/transform/concat.transform.js\");\n\nvar _diffTransform = require(\"./expression/transform/diff.transform.js\");\n\nvar _stdTransform = require(\"./expression/transform/std.transform.js\");\n\nvar _sumTransform = require(\"./expression/transform/sum.transform.js\");\n\nvar _cumsumTransform = require(\"./expression/transform/cumsum.transform.js\");\n\nvar _varianceTransform = require(\"./expression/transform/variance.transform.js\");","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.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.cumsum = 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;\nexports.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.lgamma = 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.ifft = 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.fft = 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 = void 0;\nexports.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.pinv = exports.pickRandom = exports.pi = exports.phi = void 0;\n\nvar _configReadonly = require(\"./configReadonly.js\");\n\nvar _factoriesAny = require(\"../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar BigNumber = /* #__PURE__ */(0, _factoriesAny.createBigNumberClass)({\n config: _configReadonly.config\n});\nexports.BigNumber = BigNumber;\nvar Complex = /* #__PURE__ */(0, _factoriesAny.createComplexClass)({});\nexports.Complex = Complex;\nvar e = /* #__PURE__ */(0, _factoriesAny.createE)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.e = e;\n\nvar _false = /* #__PURE__ */(0, _factoriesAny.createFalse)({});\n\nexports._false = _false;\nvar fineStructure = /* #__PURE__ */(0, _factoriesAny.createFineStructure)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.fineStructure = fineStructure;\nvar Fraction = /* #__PURE__ */(0, _factoriesAny.createFractionClass)({});\nexports.Fraction = Fraction;\nvar i = /* #__PURE__ */(0, _factoriesAny.createI)({\n Complex: Complex\n});\nexports.i = i;\n\nvar _Infinity = /* #__PURE__ */(0, _factoriesAny.createInfinity)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\n\nexports._Infinity = _Infinity;\nvar LN10 = /* #__PURE__ */(0, _factoriesAny.createLN10)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.LN10 = LN10;\nvar LOG10E = /* #__PURE__ */(0, _factoriesAny.createLOG10E)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.LOG10E = LOG10E;\nvar Matrix = /* #__PURE__ */(0, _factoriesAny.createMatrixClass)({});\nexports.Matrix = Matrix;\n\nvar _NaN = /* #__PURE__ */(0, _factoriesAny.createNaN)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\n\nexports._NaN = _NaN;\n\nvar _null = /* #__PURE__ */(0, _factoriesAny.createNull)({});\n\nexports._null = _null;\nvar phi = /* #__PURE__ */(0, _factoriesAny.createPhi)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.phi = phi;\nvar Range = /* #__PURE__ */(0, _factoriesAny.createRangeClass)({});\nexports.Range = Range;\nvar ResultSet = /* #__PURE__ */(0, _factoriesAny.createResultSet)({});\nexports.ResultSet = ResultSet;\nvar SQRT1_2 = /* #__PURE__ */(0, _factoriesAny.createSQRT1_2)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.SQRT1_2 = SQRT1_2;\nvar sackurTetrode = /* #__PURE__ */(0, _factoriesAny.createSackurTetrode)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.sackurTetrode = sackurTetrode;\nvar tau = /* #__PURE__ */(0, _factoriesAny.createTau)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.tau = tau;\n\nvar _true = /* #__PURE__ */(0, _factoriesAny.createTrue)({});\n\nexports._true = _true;\nvar version = /* #__PURE__ */(0, _factoriesAny.createVersion)({});\nexports.version = version;\nvar DenseMatrix = /* #__PURE__ */(0, _factoriesAny.createDenseMatrixClass)({\n Matrix: Matrix\n});\nexports.DenseMatrix = DenseMatrix;\nvar efimovFactor = /* #__PURE__ */(0, _factoriesAny.createEfimovFactor)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.efimovFactor = efimovFactor;\nvar LN2 = /* #__PURE__ */(0, _factoriesAny.createLN2)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.LN2 = LN2;\nvar pi = /* #__PURE__ */(0, _factoriesAny.createPi)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.pi = pi;\nvar replacer = /* #__PURE__ */(0, _factoriesAny.createReplacer)({});\nexports.replacer = replacer;\nvar SQRT2 = /* #__PURE__ */(0, _factoriesAny.createSQRT2)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.SQRT2 = SQRT2;\nvar typed = /* #__PURE__ */(0, _factoriesAny.createTyped)({\n BigNumber: BigNumber,\n Complex: Complex,\n DenseMatrix: DenseMatrix,\n Fraction: Fraction\n});\nexports.typed = typed;\nvar unaryPlus = /* #__PURE__ */(0, _factoriesAny.createUnaryPlus)({\n BigNumber: BigNumber,\n config: _configReadonly.config,\n typed: typed\n});\nexports.unaryPlus = unaryPlus;\nvar weakMixingAngle = /* #__PURE__ */(0, _factoriesAny.createWeakMixingAngle)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.weakMixingAngle = weakMixingAngle;\nvar abs = /* #__PURE__ */(0, _factoriesAny.createAbs)({\n typed: typed\n});\nexports.abs = abs;\nvar acos = /* #__PURE__ */(0, _factoriesAny.createAcos)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.acos = acos;\nvar acot = /* #__PURE__ */(0, _factoriesAny.createAcot)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.acot = acot;\nvar acsc = /* #__PURE__ */(0, _factoriesAny.createAcsc)({\n BigNumber: BigNumber,\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.acsc = acsc;\nvar addScalar = /* #__PURE__ */(0, _factoriesAny.createAddScalar)({\n typed: typed\n});\nexports.addScalar = addScalar;\nvar arg = /* #__PURE__ */(0, _factoriesAny.createArg)({\n typed: typed\n});\nexports.arg = arg;\nvar asech = /* #__PURE__ */(0, _factoriesAny.createAsech)({\n BigNumber: BigNumber,\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.asech = asech;\nvar asinh = /* #__PURE__ */(0, _factoriesAny.createAsinh)({\n typed: typed\n});\nexports.asinh = asinh;\nvar atan = /* #__PURE__ */(0, _factoriesAny.createAtan)({\n typed: typed\n});\nexports.atan = atan;\nvar atanh = /* #__PURE__ */(0, _factoriesAny.createAtanh)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.atanh = atanh;\nvar bignumber = /* #__PURE__ */(0, _factoriesAny.createBignumber)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.bignumber = bignumber;\nvar bitNot = /* #__PURE__ */(0, _factoriesAny.createBitNot)({\n typed: typed\n});\nexports.bitNot = bitNot;\nvar boolean = /* #__PURE__ */(0, _factoriesAny.createBoolean)({\n typed: typed\n});\nexports.boolean = boolean;\nvar clone = /* #__PURE__ */(0, _factoriesAny.createClone)({\n typed: typed\n});\nexports.clone = clone;\nvar combinations = /* #__PURE__ */(0, _factoriesAny.createCombinations)({\n typed: typed\n});\nexports.combinations = combinations;\nvar complex = /* #__PURE__ */(0, _factoriesAny.createComplex)({\n Complex: Complex,\n typed: typed\n});\nexports.complex = complex;\nvar conj = /* #__PURE__ */(0, _factoriesAny.createConj)({\n typed: typed\n});\nexports.conj = conj;\nvar cosh = /* #__PURE__ */(0, _factoriesAny.createCosh)({\n typed: typed\n});\nexports.cosh = cosh;\nvar coth = /* #__PURE__ */(0, _factoriesAny.createCoth)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.coth = coth;\nvar csc = /* #__PURE__ */(0, _factoriesAny.createCsc)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.csc = csc;\nvar cube = /* #__PURE__ */(0, _factoriesAny.createCube)({\n typed: typed\n});\nexports.cube = cube;\nvar equalScalar = /* #__PURE__ */(0, _factoriesAny.createEqualScalar)({\n config: _configReadonly.config,\n typed: typed\n});\nexports.equalScalar = equalScalar;\nvar erf = /* #__PURE__ */(0, _factoriesAny.createErf)({\n typed: typed\n});\nexports.erf = erf;\nvar exp = /* #__PURE__ */(0, _factoriesAny.createExp)({\n typed: typed\n});\nexports.exp = exp;\nvar expm1 = /* #__PURE__ */(0, _factoriesAny.createExpm1)({\n Complex: Complex,\n typed: typed\n});\nexports.expm1 = expm1;\nvar filter = /* #__PURE__ */(0, _factoriesAny.createFilter)({\n typed: typed\n});\nexports.filter = filter;\nvar forEach = /* #__PURE__ */(0, _factoriesAny.createForEach)({\n typed: typed\n});\nexports.forEach = forEach;\nvar format = /* #__PURE__ */(0, _factoriesAny.createFormat)({\n typed: typed\n});\nexports.format = format;\nvar getMatrixDataType = /* #__PURE__ */(0, _factoriesAny.createGetMatrixDataType)({\n typed: typed\n});\nexports.getMatrixDataType = getMatrixDataType;\nvar hex = /* #__PURE__ */(0, _factoriesAny.createHex)({\n format: format,\n typed: typed\n});\nexports.hex = hex;\nvar im = /* #__PURE__ */(0, _factoriesAny.createIm)({\n typed: typed\n});\nexports.im = im;\nvar isInteger = /* #__PURE__ */(0, _factoriesAny.createIsInteger)({\n typed: typed\n});\nexports.isInteger = isInteger;\nvar isNegative = /* #__PURE__ */(0, _factoriesAny.createIsNegative)({\n typed: typed\n});\nexports.isNegative = isNegative;\nvar isPositive = /* #__PURE__ */(0, _factoriesAny.createIsPositive)({\n typed: typed\n});\nexports.isPositive = isPositive;\nvar isZero = /* #__PURE__ */(0, _factoriesAny.createIsZero)({\n typed: typed\n});\nexports.isZero = isZero;\nvar LOG2E = /* #__PURE__ */(0, _factoriesAny.createLOG2E)({\n BigNumber: BigNumber,\n config: _configReadonly.config\n});\nexports.LOG2E = LOG2E;\nvar lgamma = /* #__PURE__ */(0, _factoriesAny.createLgamma)({\n Complex: Complex,\n typed: typed\n});\nexports.lgamma = lgamma;\nvar log10 = /* #__PURE__ */(0, _factoriesAny.createLog10)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.log10 = log10;\nvar log2 = /* #__PURE__ */(0, _factoriesAny.createLog2)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.log2 = log2;\nvar map = /* #__PURE__ */(0, _factoriesAny.createMap)({\n typed: typed\n});\nexports.map = map;\nvar multiplyScalar = /* #__PURE__ */(0, _factoriesAny.createMultiplyScalar)({\n typed: typed\n});\nexports.multiplyScalar = multiplyScalar;\nvar not = /* #__PURE__ */(0, _factoriesAny.createNot)({\n typed: typed\n});\nexports.not = not;\nvar number = /* #__PURE__ */(0, _factoriesAny.createNumber)({\n typed: typed\n});\nexports.number = number;\nvar oct = /* #__PURE__ */(0, _factoriesAny.createOct)({\n format: format,\n typed: typed\n});\nexports.oct = oct;\nvar pickRandom = /* #__PURE__ */(0, _factoriesAny.createPickRandom)({\n config: _configReadonly.config,\n typed: typed\n});\nexports.pickRandom = pickRandom;\nvar print = /* #__PURE__ */(0, _factoriesAny.createPrint)({\n typed: typed\n});\nexports.print = print;\nvar random = /* #__PURE__ */(0, _factoriesAny.createRandom)({\n config: _configReadonly.config,\n typed: typed\n});\nexports.random = random;\nvar re = /* #__PURE__ */(0, _factoriesAny.createRe)({\n typed: typed\n});\nexports.re = re;\nvar sec = /* #__PURE__ */(0, _factoriesAny.createSec)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.sec = sec;\nvar sign = /* #__PURE__ */(0, _factoriesAny.createSign)({\n BigNumber: BigNumber,\n Fraction: Fraction,\n complex: complex,\n typed: typed\n});\nexports.sign = sign;\nvar sin = /* #__PURE__ */(0, _factoriesAny.createSin)({\n typed: typed\n});\nexports.sin = sin;\nvar SparseMatrix = /* #__PURE__ */(0, _factoriesAny.createSparseMatrixClass)({\n Matrix: Matrix,\n equalScalar: equalScalar,\n typed: typed\n});\nexports.SparseMatrix = SparseMatrix;\nvar splitUnit = /* #__PURE__ */(0, _factoriesAny.createSplitUnit)({\n typed: typed\n});\nexports.splitUnit = splitUnit;\nvar square = /* #__PURE__ */(0, _factoriesAny.createSquare)({\n typed: typed\n});\nexports.square = square;\nvar string = /* #__PURE__ */(0, _factoriesAny.createString)({\n typed: typed\n});\nexports.string = string;\nvar tan = /* #__PURE__ */(0, _factoriesAny.createTan)({\n typed: typed\n});\nexports.tan = tan;\nvar typeOf = /* #__PURE__ */(0, _factoriesAny.createTypeOf)({\n typed: typed\n});\nexports.typeOf = typeOf;\nvar acosh = /* #__PURE__ */(0, _factoriesAny.createAcosh)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.acosh = acosh;\nvar acsch = /* #__PURE__ */(0, _factoriesAny.createAcsch)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.acsch = acsch;\nvar apply = /* #__PURE__ */(0, _factoriesAny.createApply)({\n isInteger: isInteger,\n typed: typed\n});\nexports.apply = apply;\nvar asec = /* #__PURE__ */(0, _factoriesAny.createAsec)({\n BigNumber: BigNumber,\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.asec = asec;\nvar bin = /* #__PURE__ */(0, _factoriesAny.createBin)({\n format: format,\n typed: typed\n});\nexports.bin = bin;\nvar combinationsWithRep = /* #__PURE__ */(0, _factoriesAny.createCombinationsWithRep)({\n typed: typed\n});\nexports.combinationsWithRep = combinationsWithRep;\nvar cos = /* #__PURE__ */(0, _factoriesAny.createCos)({\n typed: typed\n});\nexports.cos = cos;\nvar csch = /* #__PURE__ */(0, _factoriesAny.createCsch)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.csch = csch;\nvar isNaN = /* #__PURE__ */(0, _factoriesAny.createIsNaN)({\n typed: typed\n});\nexports.isNaN = isNaN;\nvar isPrime = /* #__PURE__ */(0, _factoriesAny.createIsPrime)({\n typed: typed\n});\nexports.isPrime = isPrime;\nvar randomInt = /* #__PURE__ */(0, _factoriesAny.createRandomInt)({\n config: _configReadonly.config,\n typed: typed\n});\nexports.randomInt = randomInt;\nvar sech = /* #__PURE__ */(0, _factoriesAny.createSech)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.sech = sech;\nvar sinh = /* #__PURE__ */(0, _factoriesAny.createSinh)({\n typed: typed\n});\nexports.sinh = sinh;\nvar sparse = /* #__PURE__ */(0, _factoriesAny.createSparse)({\n SparseMatrix: SparseMatrix,\n typed: typed\n});\nexports.sparse = sparse;\nvar sqrt = /* #__PURE__ */(0, _factoriesAny.createSqrt)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.sqrt = sqrt;\nvar tanh = /* #__PURE__ */(0, _factoriesAny.createTanh)({\n typed: typed\n});\nexports.tanh = tanh;\nvar unaryMinus = /* #__PURE__ */(0, _factoriesAny.createUnaryMinus)({\n typed: typed\n});\nexports.unaryMinus = unaryMinus;\nvar acoth = /* #__PURE__ */(0, _factoriesAny.createAcoth)({\n BigNumber: BigNumber,\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.acoth = acoth;\nvar cot = /* #__PURE__ */(0, _factoriesAny.createCot)({\n BigNumber: BigNumber,\n typed: typed\n});\nexports.cot = cot;\nvar fraction = /* #__PURE__ */(0, _factoriesAny.createFraction)({\n Fraction: Fraction,\n typed: typed\n});\nexports.fraction = fraction;\nvar isNumeric = /* #__PURE__ */(0, _factoriesAny.createIsNumeric)({\n typed: typed\n});\nexports.isNumeric = isNumeric;\nvar matrix = /* #__PURE__ */(0, _factoriesAny.createMatrix)({\n DenseMatrix: DenseMatrix,\n Matrix: Matrix,\n SparseMatrix: SparseMatrix,\n typed: typed\n});\nexports.matrix = matrix;\nvar matrixFromFunction = /* #__PURE__ */(0, _factoriesAny.createMatrixFromFunction)({\n isZero: isZero,\n matrix: matrix,\n typed: typed\n});\nexports.matrixFromFunction = matrixFromFunction;\nvar mod = /* #__PURE__ */(0, _factoriesAny.createMod)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.mod = mod;\nvar nthRoot = /* #__PURE__ */(0, _factoriesAny.createNthRoot)({\n BigNumber: BigNumber,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.nthRoot = nthRoot;\nvar numeric = /* #__PURE__ */(0, _factoriesAny.createNumeric)({\n bignumber: bignumber,\n fraction: fraction,\n number: number\n});\nexports.numeric = numeric;\nvar or = /* #__PURE__ */(0, _factoriesAny.createOr)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.or = or;\nvar prod = /* #__PURE__ */(0, _factoriesAny.createProd)({\n config: _configReadonly.config,\n multiplyScalar: multiplyScalar,\n numeric: numeric,\n typed: typed\n});\nexports.prod = prod;\nvar reshape = /* #__PURE__ */(0, _factoriesAny.createReshape)({\n isInteger: isInteger,\n matrix: matrix,\n typed: typed\n});\nexports.reshape = reshape;\nvar size = /* #__PURE__ */(0, _factoriesAny.createSize)({\n matrix: matrix,\n config: _configReadonly.config,\n typed: typed\n});\nexports.size = size;\nvar smaller = /* #__PURE__ */(0, _factoriesAny.createSmaller)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.smaller = smaller;\nvar squeeze = /* #__PURE__ */(0, _factoriesAny.createSqueeze)({\n matrix: matrix,\n typed: typed\n});\nexports.squeeze = squeeze;\nvar subset = /* #__PURE__ */(0, _factoriesAny.createSubset)({\n matrix: matrix,\n typed: typed\n});\nexports.subset = subset;\nvar subtract = /* #__PURE__ */(0, _factoriesAny.createSubtract)({\n DenseMatrix: DenseMatrix,\n addScalar: addScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.subtract = subtract;\nvar to = /* #__PURE__ */(0, _factoriesAny.createTo)({\n matrix: matrix,\n typed: typed\n});\nexports.to = to;\nvar transpose = /* #__PURE__ */(0, _factoriesAny.createTranspose)({\n matrix: matrix,\n typed: typed\n});\nexports.transpose = transpose;\nvar xgcd = /* #__PURE__ */(0, _factoriesAny.createXgcd)({\n BigNumber: BigNumber,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.xgcd = xgcd;\nvar zeros = /* #__PURE__ */(0, _factoriesAny.createZeros)({\n BigNumber: BigNumber,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.zeros = zeros;\nvar and = /* #__PURE__ */(0, _factoriesAny.createAnd)({\n equalScalar: equalScalar,\n matrix: matrix,\n not: not,\n typed: typed,\n zeros: zeros\n});\nexports.and = and;\nvar bitAnd = /* #__PURE__ */(0, _factoriesAny.createBitAnd)({\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.bitAnd = bitAnd;\nvar bitXor = /* #__PURE__ */(0, _factoriesAny.createBitXor)({\n DenseMatrix: DenseMatrix,\n matrix: matrix,\n typed: typed\n});\nexports.bitXor = bitXor;\nvar cbrt = /* #__PURE__ */(0, _factoriesAny.createCbrt)({\n BigNumber: BigNumber,\n Complex: Complex,\n Fraction: Fraction,\n config: _configReadonly.config,\n isNegative: isNegative,\n matrix: matrix,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.cbrt = cbrt;\nvar compare = /* #__PURE__ */(0, _factoriesAny.createCompare)({\n BigNumber: BigNumber,\n DenseMatrix: DenseMatrix,\n Fraction: Fraction,\n config: _configReadonly.config,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.compare = compare;\nvar compareText = /* #__PURE__ */(0, _factoriesAny.createCompareText)({\n matrix: matrix,\n typed: typed\n});\nexports.compareText = compareText;\nvar concat = /* #__PURE__ */(0, _factoriesAny.createConcat)({\n isInteger: isInteger,\n matrix: matrix,\n typed: typed\n});\nexports.concat = concat;\nvar count = /* #__PURE__ */(0, _factoriesAny.createCount)({\n prod: prod,\n size: size,\n typed: typed\n});\nexports.count = count;\nvar ctranspose = /* #__PURE__ */(0, _factoriesAny.createCtranspose)({\n conj: conj,\n transpose: transpose,\n typed: typed\n});\nexports.ctranspose = ctranspose;\nvar diag = /* #__PURE__ */(0, _factoriesAny.createDiag)({\n DenseMatrix: DenseMatrix,\n SparseMatrix: SparseMatrix,\n matrix: matrix,\n typed: typed\n});\nexports.diag = diag;\nvar divideScalar = /* #__PURE__ */(0, _factoriesAny.createDivideScalar)({\n numeric: numeric,\n typed: typed\n});\nexports.divideScalar = divideScalar;\nvar dotDivide = /* #__PURE__ */(0, _factoriesAny.createDotDivide)({\n DenseMatrix: DenseMatrix,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.dotDivide = dotDivide;\nvar equal = /* #__PURE__ */(0, _factoriesAny.createEqual)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.equal = equal;\nvar fft = /* #__PURE__ */(0, _factoriesAny.createFft)({\n addScalar: addScalar,\n divideScalar: divideScalar,\n exp: exp,\n i: i,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n tau: tau,\n typed: typed\n});\nexports.fft = fft;\nvar flatten = /* #__PURE__ */(0, _factoriesAny.createFlatten)({\n matrix: matrix,\n typed: typed\n});\nexports.flatten = flatten;\nvar gcd = /* #__PURE__ */(0, _factoriesAny.createGcd)({\n BigNumber: BigNumber,\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.gcd = gcd;\nvar hasNumericValue = /* #__PURE__ */(0, _factoriesAny.createHasNumericValue)({\n isNumeric: isNumeric,\n typed: typed\n});\nexports.hasNumericValue = hasNumericValue;\nvar hypot = /* #__PURE__ */(0, _factoriesAny.createHypot)({\n abs: abs,\n addScalar: addScalar,\n divideScalar: divideScalar,\n isPositive: isPositive,\n multiplyScalar: multiplyScalar,\n smaller: smaller,\n sqrt: sqrt,\n typed: typed\n});\nexports.hypot = hypot;\nvar ifft = /* #__PURE__ */(0, _factoriesAny.createIfft)({\n conj: conj,\n dotDivide: dotDivide,\n fft: fft,\n typed: typed\n});\nexports.ifft = ifft;\nvar kron = /* #__PURE__ */(0, _factoriesAny.createKron)({\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n typed: typed\n});\nexports.kron = kron;\nvar largerEq = /* #__PURE__ */(0, _factoriesAny.createLargerEq)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.largerEq = largerEq;\nvar leftShift = /* #__PURE__ */(0, _factoriesAny.createLeftShift)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed,\n zeros: zeros\n});\nexports.leftShift = leftShift;\nvar lsolve = /* #__PURE__ */(0, _factoriesAny.createLsolve)({\n DenseMatrix: DenseMatrix,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n subtract: subtract,\n typed: typed\n});\nexports.lsolve = lsolve;\nvar matrixFromColumns = /* #__PURE__ */(0, _factoriesAny.createMatrixFromColumns)({\n flatten: flatten,\n matrix: matrix,\n size: size,\n typed: typed\n});\nexports.matrixFromColumns = matrixFromColumns;\nvar min = /* #__PURE__ */(0, _factoriesAny.createMin)({\n config: _configReadonly.config,\n numeric: numeric,\n smaller: smaller,\n typed: typed\n});\nexports.min = min;\nvar mode = /* #__PURE__ */(0, _factoriesAny.createMode)({\n isNaN: isNaN,\n isNumeric: isNumeric,\n typed: typed\n});\nexports.mode = mode;\nvar nthRoots = /* #__PURE__ */(0, _factoriesAny.createNthRoots)({\n Complex: Complex,\n config: _configReadonly.config,\n divideScalar: divideScalar,\n typed: typed\n});\nexports.nthRoots = nthRoots;\nvar ones = /* #__PURE__ */(0, _factoriesAny.createOnes)({\n BigNumber: BigNumber,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.ones = ones;\nvar partitionSelect = /* #__PURE__ */(0, _factoriesAny.createPartitionSelect)({\n compare: compare,\n isNaN: isNaN,\n isNumeric: isNumeric,\n typed: typed\n});\nexports.partitionSelect = partitionSelect;\nvar resize = /* #__PURE__ */(0, _factoriesAny.createResize)({\n config: _configReadonly.config,\n matrix: matrix\n});\nexports.resize = resize;\nvar rightArithShift = /* #__PURE__ */(0, _factoriesAny.createRightArithShift)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed,\n zeros: zeros\n});\nexports.rightArithShift = rightArithShift;\nvar round = /* #__PURE__ */(0, _factoriesAny.createRound)({\n BigNumber: BigNumber,\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed,\n zeros: zeros\n});\nexports.round = round;\nvar smallerEq = /* #__PURE__ */(0, _factoriesAny.createSmallerEq)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.smallerEq = smallerEq;\nvar unequal = /* #__PURE__ */(0, _factoriesAny.createUnequal)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.unequal = unequal;\nvar usolve = /* #__PURE__ */(0, _factoriesAny.createUsolve)({\n DenseMatrix: DenseMatrix,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n subtract: subtract,\n typed: typed\n});\nexports.usolve = usolve;\nvar xor = /* #__PURE__ */(0, _factoriesAny.createXor)({\n DenseMatrix: DenseMatrix,\n matrix: matrix,\n typed: typed\n});\nexports.xor = xor;\nvar add = /* #__PURE__ */(0, _factoriesAny.createAdd)({\n DenseMatrix: DenseMatrix,\n SparseMatrix: SparseMatrix,\n addScalar: addScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.add = add;\nvar atan2 = /* #__PURE__ */(0, _factoriesAny.createAtan2)({\n BigNumber: BigNumber,\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.atan2 = atan2;\nvar bitOr = /* #__PURE__ */(0, _factoriesAny.createBitOr)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.bitOr = bitOr;\nvar catalan = /* #__PURE__ */(0, _factoriesAny.createCatalan)({\n addScalar: addScalar,\n combinations: combinations,\n divideScalar: divideScalar,\n isInteger: isInteger,\n isNegative: isNegative,\n multiplyScalar: multiplyScalar,\n typed: typed\n});\nexports.catalan = catalan;\nvar compareNatural = /* #__PURE__ */(0, _factoriesAny.createCompareNatural)({\n compare: compare,\n typed: typed\n});\nexports.compareNatural = compareNatural;\nvar cumsum = /* #__PURE__ */(0, _factoriesAny.createCumSum)({\n add: add,\n typed: typed,\n unaryPlus: unaryPlus\n});\nexports.cumsum = cumsum;\nvar deepEqual = /* #__PURE__ */(0, _factoriesAny.createDeepEqual)({\n equal: equal,\n typed: typed\n});\nexports.deepEqual = deepEqual;\nvar diff = /* #__PURE__ */(0, _factoriesAny.createDiff)({\n matrix: matrix,\n number: number,\n subtract: subtract,\n typed: typed\n});\nexports.diff = diff;\nvar dot = /* #__PURE__ */(0, _factoriesAny.createDot)({\n addScalar: addScalar,\n conj: conj,\n multiplyScalar: multiplyScalar,\n size: size,\n typed: typed\n});\nexports.dot = dot;\nvar equalText = /* #__PURE__ */(0, _factoriesAny.createEqualText)({\n compareText: compareText,\n isZero: isZero,\n typed: typed\n});\nexports.equalText = equalText;\nvar floor = /* #__PURE__ */(0, _factoriesAny.createFloor)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n equalScalar: equalScalar,\n matrix: matrix,\n round: round,\n typed: typed,\n zeros: zeros\n});\nexports.floor = floor;\nvar identity = /* #__PURE__ */(0, _factoriesAny.createIdentity)({\n BigNumber: BigNumber,\n DenseMatrix: DenseMatrix,\n SparseMatrix: SparseMatrix,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.identity = identity;\nvar invmod = /* #__PURE__ */(0, _factoriesAny.createInvmod)({\n BigNumber: BigNumber,\n add: add,\n config: _configReadonly.config,\n equal: equal,\n isInteger: isInteger,\n mod: mod,\n smaller: smaller,\n typed: typed,\n xgcd: xgcd\n});\nexports.invmod = invmod;\nvar larger = /* #__PURE__ */(0, _factoriesAny.createLarger)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n matrix: matrix,\n typed: typed\n});\nexports.larger = larger;\nvar log = /* #__PURE__ */(0, _factoriesAny.createLog)({\n Complex: Complex,\n config: _configReadonly.config,\n divideScalar: divideScalar,\n typed: typed\n});\nexports.log = log;\nvar lsolveAll = /* #__PURE__ */(0, _factoriesAny.createLsolveAll)({\n DenseMatrix: DenseMatrix,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n subtract: subtract,\n typed: typed\n});\nexports.lsolveAll = lsolveAll;\nvar matrixFromRows = /* #__PURE__ */(0, _factoriesAny.createMatrixFromRows)({\n flatten: flatten,\n matrix: matrix,\n size: size,\n typed: typed\n});\nexports.matrixFromRows = matrixFromRows;\nvar multiply = /* #__PURE__ */(0, _factoriesAny.createMultiply)({\n addScalar: addScalar,\n dot: dot,\n equalScalar: equalScalar,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n typed: typed\n});\nexports.multiply = multiply;\nvar qr = /* #__PURE__ */(0, _factoriesAny.createQr)({\n addScalar: addScalar,\n complex: complex,\n conj: conj,\n divideScalar: divideScalar,\n equal: equal,\n identity: identity,\n isZero: isZero,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n sign: sign,\n sqrt: sqrt,\n subtract: subtract,\n typed: typed,\n unaryMinus: unaryMinus,\n zeros: zeros\n});\nexports.qr = qr;\nvar range = /* #__PURE__ */(0, _factoriesAny.createRange)({\n bignumber: bignumber,\n matrix: matrix,\n config: _configReadonly.config,\n larger: larger,\n largerEq: largerEq,\n smaller: smaller,\n smallerEq: smallerEq,\n typed: typed\n});\nexports.range = range;\nvar rightLogShift = /* #__PURE__ */(0, _factoriesAny.createRightLogShift)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed,\n zeros: zeros\n});\nexports.rightLogShift = rightLogShift;\nvar setSize = /* #__PURE__ */(0, _factoriesAny.createSetSize)({\n compareNatural: compareNatural,\n typed: typed\n});\nexports.setSize = setSize;\nvar slu = /* #__PURE__ */(0, _factoriesAny.createSlu)({\n SparseMatrix: SparseMatrix,\n abs: abs,\n add: add,\n divideScalar: divideScalar,\n larger: larger,\n largerEq: largerEq,\n multiply: multiply,\n subtract: subtract,\n transpose: transpose,\n typed: typed\n});\nexports.slu = slu;\nvar sum = /* #__PURE__ */(0, _factoriesAny.createSum)({\n add: add,\n config: _configReadonly.config,\n numeric: numeric,\n typed: typed\n});\nexports.sum = sum;\nvar trace = /* #__PURE__ */(0, _factoriesAny.createTrace)({\n add: add,\n matrix: matrix,\n typed: typed\n});\nexports.trace = trace;\nvar usolveAll = /* #__PURE__ */(0, _factoriesAny.createUsolveAll)({\n DenseMatrix: DenseMatrix,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n subtract: subtract,\n typed: typed\n});\nexports.usolveAll = usolveAll;\nvar asin = /* #__PURE__ */(0, _factoriesAny.createAsin)({\n Complex: Complex,\n config: _configReadonly.config,\n typed: typed\n});\nexports.asin = asin;\nvar ceil = /* #__PURE__ */(0, _factoriesAny.createCeil)({\n DenseMatrix: DenseMatrix,\n config: _configReadonly.config,\n equalScalar: equalScalar,\n matrix: matrix,\n round: round,\n typed: typed,\n zeros: zeros\n});\nexports.ceil = ceil;\nvar composition = /* #__PURE__ */(0, _factoriesAny.createComposition)({\n addScalar: addScalar,\n combinations: combinations,\n isInteger: isInteger,\n isNegative: isNegative,\n isPositive: isPositive,\n larger: larger,\n typed: typed\n});\nexports.composition = composition;\nvar cross = /* #__PURE__ */(0, _factoriesAny.createCross)({\n matrix: matrix,\n multiply: multiply,\n subtract: subtract,\n typed: typed\n});\nexports.cross = cross;\nvar det = /* #__PURE__ */(0, _factoriesAny.createDet)({\n divideScalar: divideScalar,\n isZero: isZero,\n matrix: matrix,\n multiply: multiply,\n subtract: subtract,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.det = det;\nvar distance = /* #__PURE__ */(0, _factoriesAny.createDistance)({\n abs: abs,\n addScalar: addScalar,\n divideScalar: divideScalar,\n multiplyScalar: multiplyScalar,\n sqrt: sqrt,\n subtract: subtract,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.distance = distance;\nvar dotMultiply = /* #__PURE__ */(0, _factoriesAny.createDotMultiply)({\n equalScalar: equalScalar,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n typed: typed\n});\nexports.dotMultiply = dotMultiply;\nvar FibonacciHeap = /* #__PURE__ */(0, _factoriesAny.createFibonacciHeapClass)({\n larger: larger,\n smaller: smaller\n});\nexports.FibonacciHeap = FibonacciHeap;\nvar fix = /* #__PURE__ */(0, _factoriesAny.createFix)({\n Complex: Complex,\n DenseMatrix: DenseMatrix,\n ceil: ceil,\n equalScalar: equalScalar,\n floor: floor,\n matrix: matrix,\n typed: typed,\n zeros: zeros\n});\nexports.fix = fix;\nvar ImmutableDenseMatrix = /* #__PURE__ */(0, _factoriesAny.createImmutableDenseMatrixClass)({\n DenseMatrix: DenseMatrix,\n smaller: smaller\n});\nexports.ImmutableDenseMatrix = ImmutableDenseMatrix;\nvar Index = /* #__PURE__ */(0, _factoriesAny.createIndexClass)({\n ImmutableDenseMatrix: ImmutableDenseMatrix\n});\nexports.Index = Index;\nvar intersect = /* #__PURE__ */(0, _factoriesAny.createIntersect)({\n abs: abs,\n add: add,\n addScalar: addScalar,\n config: _configReadonly.config,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n flatten: flatten,\n isNumeric: isNumeric,\n isZero: isZero,\n matrix: matrix,\n multiply: multiply,\n multiplyScalar: multiplyScalar,\n smaller: smaller,\n subtract: subtract,\n typed: typed\n});\nexports.intersect = intersect;\nvar lcm = /* #__PURE__ */(0, _factoriesAny.createLcm)({\n equalScalar: equalScalar,\n matrix: matrix,\n typed: typed\n});\nexports.lcm = lcm;\nvar log1p = /* #__PURE__ */(0, _factoriesAny.createLog1p)({\n Complex: Complex,\n config: _configReadonly.config,\n divideScalar: divideScalar,\n log: log,\n typed: typed\n});\nexports.log1p = log1p;\nvar max = /* #__PURE__ */(0, _factoriesAny.createMax)({\n config: _configReadonly.config,\n larger: larger,\n numeric: numeric,\n typed: typed\n});\nexports.max = max;\nvar quantileSeq = /* #__PURE__ */(0, _factoriesAny.createQuantileSeq)({\n add: add,\n compare: compare,\n multiply: multiply,\n partitionSelect: partitionSelect,\n typed: typed\n});\nexports.quantileSeq = quantileSeq;\nvar row = /* #__PURE__ */(0, _factoriesAny.createRow)({\n Index: Index,\n matrix: matrix,\n range: range,\n typed: typed\n});\nexports.row = row;\nvar setCartesian = /* #__PURE__ */(0, _factoriesAny.createSetCartesian)({\n DenseMatrix: DenseMatrix,\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setCartesian = setCartesian;\nvar setDistinct = /* #__PURE__ */(0, _factoriesAny.createSetDistinct)({\n DenseMatrix: DenseMatrix,\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setDistinct = setDistinct;\nvar setIsSubset = /* #__PURE__ */(0, _factoriesAny.createSetIsSubset)({\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setIsSubset = setIsSubset;\nvar setPowerset = /* #__PURE__ */(0, _factoriesAny.createSetPowerset)({\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setPowerset = setPowerset;\nvar sort = /* #__PURE__ */(0, _factoriesAny.createSort)({\n compare: compare,\n compareNatural: compareNatural,\n matrix: matrix,\n typed: typed\n});\nexports.sort = sort;\nvar column = /* #__PURE__ */(0, _factoriesAny.createColumn)({\n Index: Index,\n matrix: matrix,\n range: range,\n typed: typed\n});\nexports.column = column;\nvar index = /* #__PURE__ */(0, _factoriesAny.createIndex)({\n Index: Index,\n typed: typed\n});\nexports.index = index;\nvar inv = /* #__PURE__ */(0, _factoriesAny.createInv)({\n abs: abs,\n addScalar: addScalar,\n det: det,\n divideScalar: divideScalar,\n identity: identity,\n matrix: matrix,\n multiply: multiply,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.inv = inv;\nvar pinv = /* #__PURE__ */(0, _factoriesAny.createPinv)({\n Complex: Complex,\n add: add,\n ctranspose: ctranspose,\n deepEqual: deepEqual,\n divideScalar: divideScalar,\n dot: dot,\n dotDivide: dotDivide,\n equal: equal,\n inv: inv,\n matrix: matrix,\n multiply: multiply,\n typed: typed\n});\nexports.pinv = pinv;\nvar pow = /* #__PURE__ */(0, _factoriesAny.createPow)({\n Complex: Complex,\n config: _configReadonly.config,\n fraction: fraction,\n identity: identity,\n inv: inv,\n matrix: matrix,\n multiply: multiply,\n number: number,\n typed: typed\n});\nexports.pow = pow;\nvar setDifference = /* #__PURE__ */(0, _factoriesAny.createSetDifference)({\n DenseMatrix: DenseMatrix,\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setDifference = setDifference;\nvar setMultiplicity = /* #__PURE__ */(0, _factoriesAny.createSetMultiplicity)({\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setMultiplicity = setMultiplicity;\nvar Spa = /* #__PURE__ */(0, _factoriesAny.createSpaClass)({\n FibonacciHeap: FibonacciHeap,\n addScalar: addScalar,\n equalScalar: equalScalar\n});\nexports.Spa = Spa;\nvar sqrtm = /* #__PURE__ */(0, _factoriesAny.createSqrtm)({\n abs: abs,\n add: add,\n identity: identity,\n inv: inv,\n max: max,\n multiply: multiply,\n size: size,\n sqrt: sqrt,\n subtract: subtract,\n typed: typed\n});\nexports.sqrtm = sqrtm;\nvar Unit = /* #__PURE__ */(0, _factoriesAny.createUnitClass)({\n BigNumber: BigNumber,\n Complex: Complex,\n Fraction: Fraction,\n abs: abs,\n addScalar: addScalar,\n config: _configReadonly.config,\n divideScalar: divideScalar,\n equal: equal,\n fix: fix,\n format: format,\n isNumeric: isNumeric,\n multiplyScalar: multiplyScalar,\n number: number,\n pow: pow,\n round: round,\n subtract: subtract\n});\nexports.Unit = Unit;\nvar vacuumImpedance = /* #__PURE__ */(0, _factoriesAny.createVacuumImpedance)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.vacuumImpedance = vacuumImpedance;\nvar wienDisplacement = /* #__PURE__ */(0, _factoriesAny.createWienDisplacement)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.wienDisplacement = wienDisplacement;\nvar atomicMass = /* #__PURE__ */(0, _factoriesAny.createAtomicMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.atomicMass = atomicMass;\nvar bohrMagneton = /* #__PURE__ */(0, _factoriesAny.createBohrMagneton)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.bohrMagneton = bohrMagneton;\nvar boltzmann = /* #__PURE__ */(0, _factoriesAny.createBoltzmann)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.boltzmann = boltzmann;\nvar conductanceQuantum = /* #__PURE__ */(0, _factoriesAny.createConductanceQuantum)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.conductanceQuantum = conductanceQuantum;\nvar createUnit = /* #__PURE__ */(0, _factoriesAny.createCreateUnit)({\n Unit: Unit,\n typed: typed\n});\nexports.createUnit = createUnit;\nvar deuteronMass = /* #__PURE__ */(0, _factoriesAny.createDeuteronMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.deuteronMass = deuteronMass;\nvar dotPow = /* #__PURE__ */(0, _factoriesAny.createDotPow)({\n DenseMatrix: DenseMatrix,\n equalScalar: equalScalar,\n matrix: matrix,\n pow: pow,\n typed: typed\n});\nexports.dotPow = dotPow;\nvar electricConstant = /* #__PURE__ */(0, _factoriesAny.createElectricConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.electricConstant = electricConstant;\nvar elementaryCharge = /* #__PURE__ */(0, _factoriesAny.createElementaryCharge)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.elementaryCharge = elementaryCharge;\nvar expm = /* #__PURE__ */(0, _factoriesAny.createExpm)({\n abs: abs,\n add: add,\n identity: identity,\n inv: inv,\n multiply: multiply,\n typed: typed\n});\nexports.expm = expm;\nvar faraday = /* #__PURE__ */(0, _factoriesAny.createFaraday)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.faraday = faraday;\nvar firstRadiation = /* #__PURE__ */(0, _factoriesAny.createFirstRadiation)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.firstRadiation = firstRadiation;\nvar gamma = /* #__PURE__ */(0, _factoriesAny.createGamma)({\n BigNumber: BigNumber,\n Complex: Complex,\n config: _configReadonly.config,\n multiplyScalar: multiplyScalar,\n pow: pow,\n typed: typed\n});\nexports.gamma = gamma;\nvar gravitationConstant = /* #__PURE__ */(0, _factoriesAny.createGravitationConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.gravitationConstant = gravitationConstant;\nvar hartreeEnergy = /* #__PURE__ */(0, _factoriesAny.createHartreeEnergy)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.hartreeEnergy = hartreeEnergy;\nvar klitzing = /* #__PURE__ */(0, _factoriesAny.createKlitzing)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.klitzing = klitzing;\nvar loschmidt = /* #__PURE__ */(0, _factoriesAny.createLoschmidt)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.loschmidt = loschmidt;\nvar magneticConstant = /* #__PURE__ */(0, _factoriesAny.createMagneticConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.magneticConstant = magneticConstant;\nvar molarMass = /* #__PURE__ */(0, _factoriesAny.createMolarMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.molarMass = molarMass;\nvar molarPlanckConstant = /* #__PURE__ */(0, _factoriesAny.createMolarPlanckConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.molarPlanckConstant = molarPlanckConstant;\nvar neutronMass = /* #__PURE__ */(0, _factoriesAny.createNeutronMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.neutronMass = neutronMass;\nvar nuclearMagneton = /* #__PURE__ */(0, _factoriesAny.createNuclearMagneton)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.nuclearMagneton = nuclearMagneton;\nvar planckCharge = /* #__PURE__ */(0, _factoriesAny.createPlanckCharge)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.planckCharge = planckCharge;\nvar planckLength = /* #__PURE__ */(0, _factoriesAny.createPlanckLength)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.planckLength = planckLength;\nvar planckTemperature = /* #__PURE__ */(0, _factoriesAny.createPlanckTemperature)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.planckTemperature = planckTemperature;\nvar protonMass = /* #__PURE__ */(0, _factoriesAny.createProtonMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.protonMass = protonMass;\nvar reducedPlanckConstant = /* #__PURE__ */(0, _factoriesAny.createReducedPlanckConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.reducedPlanckConstant = reducedPlanckConstant;\nvar rydberg = /* #__PURE__ */(0, _factoriesAny.createRydberg)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.rydberg = rydberg;\nvar setIntersect = /* #__PURE__ */(0, _factoriesAny.createSetIntersect)({\n DenseMatrix: DenseMatrix,\n Index: Index,\n compareNatural: compareNatural,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setIntersect = setIntersect;\nvar speedOfLight = /* #__PURE__ */(0, _factoriesAny.createSpeedOfLight)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.speedOfLight = speedOfLight;\nvar stefanBoltzmann = /* #__PURE__ */(0, _factoriesAny.createStefanBoltzmann)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.stefanBoltzmann = stefanBoltzmann;\nvar thomsonCrossSection = /* #__PURE__ */(0, _factoriesAny.createThomsonCrossSection)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.thomsonCrossSection = thomsonCrossSection;\nvar avogadro = /* #__PURE__ */(0, _factoriesAny.createAvogadro)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.avogadro = avogadro;\nvar bohrRadius = /* #__PURE__ */(0, _factoriesAny.createBohrRadius)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.bohrRadius = bohrRadius;\nvar coulomb = /* #__PURE__ */(0, _factoriesAny.createCoulomb)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.coulomb = coulomb;\nvar divide = /* #__PURE__ */(0, _factoriesAny.createDivide)({\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n inv: inv,\n matrix: matrix,\n multiply: multiply,\n typed: typed\n});\nexports.divide = divide;\nvar electronMass = /* #__PURE__ */(0, _factoriesAny.createElectronMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.electronMass = electronMass;\nvar factorial = /* #__PURE__ */(0, _factoriesAny.createFactorial)({\n gamma: gamma,\n typed: typed\n});\nexports.factorial = factorial;\nvar gravity = /* #__PURE__ */(0, _factoriesAny.createGravity)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.gravity = gravity;\nvar inverseConductanceQuantum = /* #__PURE__ */(0, _factoriesAny.createInverseConductanceQuantum)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.inverseConductanceQuantum = inverseConductanceQuantum;\nvar lup = /* #__PURE__ */(0, _factoriesAny.createLup)({\n DenseMatrix: DenseMatrix,\n Spa: Spa,\n SparseMatrix: SparseMatrix,\n abs: abs,\n addScalar: addScalar,\n divideScalar: divideScalar,\n equalScalar: equalScalar,\n larger: larger,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n subtract: subtract,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.lup = lup;\nvar magneticFluxQuantum = /* #__PURE__ */(0, _factoriesAny.createMagneticFluxQuantum)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.magneticFluxQuantum = magneticFluxQuantum;\nvar molarMassC12 = /* #__PURE__ */(0, _factoriesAny.createMolarMassC12)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.molarMassC12 = molarMassC12;\nvar multinomial = /* #__PURE__ */(0, _factoriesAny.createMultinomial)({\n add: add,\n divide: divide,\n factorial: factorial,\n isInteger: isInteger,\n isPositive: isPositive,\n multiply: multiply,\n typed: typed\n});\nexports.multinomial = multinomial;\nvar permutations = /* #__PURE__ */(0, _factoriesAny.createPermutations)({\n factorial: factorial,\n typed: typed\n});\nexports.permutations = permutations;\nvar planckMass = /* #__PURE__ */(0, _factoriesAny.createPlanckMass)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.planckMass = planckMass;\nvar quantumOfCirculation = /* #__PURE__ */(0, _factoriesAny.createQuantumOfCirculation)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.quantumOfCirculation = quantumOfCirculation;\nvar secondRadiation = /* #__PURE__ */(0, _factoriesAny.createSecondRadiation)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.secondRadiation = secondRadiation;\nvar stirlingS2 = /* #__PURE__ */(0, _factoriesAny.createStirlingS2)({\n bignumber: bignumber,\n addScalar: addScalar,\n combinations: combinations,\n divideScalar: divideScalar,\n factorial: factorial,\n isInteger: isInteger,\n isNegative: isNegative,\n larger: larger,\n multiplyScalar: multiplyScalar,\n number: number,\n pow: pow,\n subtract: subtract,\n typed: typed\n});\nexports.stirlingS2 = stirlingS2;\nvar unit = /* #__PURE__ */(0, _factoriesAny.createUnitFunction)({\n Unit: Unit,\n typed: typed\n});\nexports.unit = unit;\nvar bellNumbers = /* #__PURE__ */(0, _factoriesAny.createBellNumbers)({\n addScalar: addScalar,\n isInteger: isInteger,\n isNegative: isNegative,\n stirlingS2: stirlingS2,\n typed: typed\n});\nexports.bellNumbers = bellNumbers;\nvar eigs = /* #__PURE__ */(0, _factoriesAny.createEigs)({\n abs: abs,\n add: add,\n addScalar: addScalar,\n atan: atan,\n bignumber: bignumber,\n column: column,\n complex: complex,\n config: _configReadonly.config,\n cos: cos,\n diag: diag,\n divideScalar: divideScalar,\n dot: dot,\n equal: equal,\n flatten: flatten,\n im: im,\n inv: inv,\n larger: larger,\n matrix: matrix,\n matrixFromColumns: matrixFromColumns,\n multiply: multiply,\n multiplyScalar: multiplyScalar,\n number: number,\n qr: qr,\n re: re,\n sin: sin,\n smaller: smaller,\n sqrt: sqrt,\n subtract: subtract,\n typed: typed,\n usolve: usolve,\n usolveAll: usolveAll\n});\nexports.eigs = eigs;\nvar fermiCoupling = /* #__PURE__ */(0, _factoriesAny.createFermiCoupling)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.fermiCoupling = fermiCoupling;\nvar mean = /* #__PURE__ */(0, _factoriesAny.createMean)({\n add: add,\n divide: divide,\n typed: typed\n});\nexports.mean = mean;\nvar molarVolume = /* #__PURE__ */(0, _factoriesAny.createMolarVolume)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.molarVolume = molarVolume;\nvar planckConstant = /* #__PURE__ */(0, _factoriesAny.createPlanckConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.planckConstant = planckConstant;\nvar setSymDifference = /* #__PURE__ */(0, _factoriesAny.createSetSymDifference)({\n Index: Index,\n concat: concat,\n setDifference: setDifference,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setSymDifference = setSymDifference;\nvar classicalElectronRadius = /* #__PURE__ */(0, _factoriesAny.createClassicalElectronRadius)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.classicalElectronRadius = classicalElectronRadius;\nvar lusolve = /* #__PURE__ */(0, _factoriesAny.createLusolve)({\n DenseMatrix: DenseMatrix,\n lsolve: lsolve,\n lup: lup,\n matrix: matrix,\n slu: slu,\n typed: typed,\n usolve: usolve\n});\nexports.lusolve = lusolve;\nvar median = /* #__PURE__ */(0, _factoriesAny.createMedian)({\n add: add,\n compare: compare,\n divide: divide,\n partitionSelect: partitionSelect,\n typed: typed\n});\nexports.median = median;\nvar setUnion = /* #__PURE__ */(0, _factoriesAny.createSetUnion)({\n Index: Index,\n concat: concat,\n setIntersect: setIntersect,\n setSymDifference: setSymDifference,\n size: size,\n subset: subset,\n typed: typed\n});\nexports.setUnion = setUnion;\nvar variance = /* #__PURE__ */(0, _factoriesAny.createVariance)({\n add: add,\n apply: apply,\n divide: divide,\n isNaN: isNaN,\n multiply: multiply,\n subtract: subtract,\n typed: typed\n});\nexports.variance = variance;\nvar kldivergence = /* #__PURE__ */(0, _factoriesAny.createKldivergence)({\n divide: divide,\n dotDivide: dotDivide,\n isNumeric: isNumeric,\n log: log,\n matrix: matrix,\n multiply: multiply,\n sum: sum,\n typed: typed\n});\nexports.kldivergence = kldivergence;\nvar norm = /* #__PURE__ */(0, _factoriesAny.createNorm)({\n abs: abs,\n add: add,\n conj: conj,\n ctranspose: ctranspose,\n eigs: eigs,\n equalScalar: equalScalar,\n larger: larger,\n matrix: matrix,\n multiply: multiply,\n pow: pow,\n smaller: smaller,\n sqrt: sqrt,\n typed: typed\n});\nexports.norm = norm;\nvar planckTime = /* #__PURE__ */(0, _factoriesAny.createPlanckTime)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.planckTime = planckTime;\nvar rotationMatrix = /* #__PURE__ */(0, _factoriesAny.createRotationMatrix)({\n BigNumber: BigNumber,\n DenseMatrix: DenseMatrix,\n SparseMatrix: SparseMatrix,\n addScalar: addScalar,\n config: _configReadonly.config,\n cos: cos,\n matrix: matrix,\n multiplyScalar: multiplyScalar,\n norm: norm,\n sin: sin,\n typed: typed,\n unaryMinus: unaryMinus\n});\nexports.rotationMatrix = rotationMatrix;\nvar gasConstant = /* #__PURE__ */(0, _factoriesAny.createGasConstant)({\n BigNumber: BigNumber,\n Unit: Unit,\n config: _configReadonly.config\n});\nexports.gasConstant = gasConstant;\nvar std = /* #__PURE__ */(0, _factoriesAny.createStd)({\n sqrt: sqrt,\n typed: typed,\n variance: variance\n});\nexports.std = std;\nvar mad = /* #__PURE__ */(0, _factoriesAny.createMad)({\n abs: abs,\n map: map,\n median: median,\n subtract: subtract,\n typed: typed\n});\nexports.mad = mad;\nvar rotate = /* #__PURE__ */(0, _factoriesAny.createRotate)({\n multiply: multiply,\n rotationMatrix: rotationMatrix,\n typed: typed\n});\nexports.rotate = rotate;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.derivative = exports.compile = exports.chain = exports.SymbolNode = exports.RelationalNode = exports.RangeNode = exports.Parser = exports.ParenthesisNode = exports.OperatorNode = exports.ObjectNode = exports.Node = exports.IndexNode = exports.Help = exports.FunctionNode = exports.FunctionAssignmentNode = exports.ConstantNode = exports.ConditionalNode = exports.Chain = exports.BlockNode = exports.AssignmentNode = exports.ArrayNode = exports.AccessorNode = void 0;\nObject.defineProperty(exports, \"docs\", {\n enumerable: true,\n get: function get() {\n return _embeddedDocs.embeddedDocs;\n }\n});\nexports.symbolicEqual = exports.simplifyCore = exports.simplify = exports.reviver = exports.resolve = exports.rationalize = exports.parser = exports.parse = exports.leafCount = exports.help = exports.evaluate = void 0;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nvar _configReadonly = require(\"./configReadonly.js\");\n\nvar _factoriesAny = require(\"../factoriesAny.js\");\n\nvar _pureFunctionsAnyGenerated = require(\"./pureFunctionsAny.generated.js\");\n\nvar _embeddedDocs = require(\"../expression/embeddedDocs/embeddedDocs.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar math = {}; // NOT pure!\n\nvar mathWithTransform = {}; // NOT pure!\n\nvar classes = {}; // NOT pure!\n\nvar Chain = (0, _factoriesAny.createChainClass)({\n math: math\n});\nexports.Chain = Chain;\nvar Node = (0, _factoriesAny.createNode)({\n mathWithTransform: mathWithTransform\n});\nexports.Node = Node;\nvar ObjectNode = (0, _factoriesAny.createObjectNode)({\n Node: Node\n});\nexports.ObjectNode = ObjectNode;\nvar OperatorNode = (0, _factoriesAny.createOperatorNode)({\n Node: Node\n});\nexports.OperatorNode = OperatorNode;\nvar ParenthesisNode = (0, _factoriesAny.createParenthesisNode)({\n Node: Node\n});\nexports.ParenthesisNode = ParenthesisNode;\nvar RelationalNode = (0, _factoriesAny.createRelationalNode)({\n Node: Node\n});\nexports.RelationalNode = RelationalNode;\nvar ArrayNode = (0, _factoriesAny.createArrayNode)({\n Node: Node\n});\nexports.ArrayNode = ArrayNode;\nvar BlockNode = (0, _factoriesAny.createBlockNode)({\n Node: Node,\n ResultSet: _pureFunctionsAnyGenerated.ResultSet\n});\nexports.BlockNode = BlockNode;\nvar ConditionalNode = (0, _factoriesAny.createConditionalNode)({\n Node: Node\n});\nexports.ConditionalNode = ConditionalNode;\nvar ConstantNode = (0, _factoriesAny.createConstantNode)({\n Node: Node\n});\nexports.ConstantNode = ConstantNode;\nvar RangeNode = (0, _factoriesAny.createRangeNode)({\n Node: Node\n});\nexports.RangeNode = RangeNode;\nvar reviver = (0, _factoriesAny.createReviver)({\n classes: classes\n});\nexports.reviver = reviver;\nvar chain = (0, _factoriesAny.createChain)({\n Chain: Chain,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.chain = chain;\nvar FunctionAssignmentNode = (0, _factoriesAny.createFunctionAssignmentNode)({\n Node: Node,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.FunctionAssignmentNode = FunctionAssignmentNode;\nvar AccessorNode = (0, _factoriesAny.createAccessorNode)({\n Node: Node,\n subset: _pureFunctionsAnyGenerated.subset\n});\nexports.AccessorNode = AccessorNode;\nvar AssignmentNode = (0, _factoriesAny.createAssignmentNode)({\n matrix: _pureFunctionsAnyGenerated.matrix,\n Node: Node,\n subset: _pureFunctionsAnyGenerated.subset\n});\nexports.AssignmentNode = AssignmentNode;\nvar IndexNode = (0, _factoriesAny.createIndexNode)({\n Node: Node,\n size: _pureFunctionsAnyGenerated.size\n});\nexports.IndexNode = IndexNode;\nvar SymbolNode = (0, _factoriesAny.createSymbolNode)({\n Unit: _pureFunctionsAnyGenerated.Unit,\n Node: Node,\n math: math\n});\nexports.SymbolNode = SymbolNode;\nvar FunctionNode = (0, _factoriesAny.createFunctionNode)({\n Node: Node,\n SymbolNode: SymbolNode,\n math: math\n});\nexports.FunctionNode = FunctionNode;\nvar parse = (0, _factoriesAny.createParse)({\n AccessorNode: AccessorNode,\n ArrayNode: ArrayNode,\n AssignmentNode: AssignmentNode,\n BlockNode: BlockNode,\n ConditionalNode: ConditionalNode,\n ConstantNode: ConstantNode,\n FunctionAssignmentNode: FunctionAssignmentNode,\n FunctionNode: FunctionNode,\n IndexNode: IndexNode,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n RangeNode: RangeNode,\n RelationalNode: RelationalNode,\n SymbolNode: SymbolNode,\n config: _configReadonly.config,\n numeric: _pureFunctionsAnyGenerated.numeric,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.parse = parse;\nvar resolve = (0, _factoriesAny.createResolve)({\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n parse: parse\n});\nexports.resolve = resolve;\nvar simplifyCore = (0, _factoriesAny.createSimplifyCore)({\n AccessorNode: AccessorNode,\n ArrayNode: ArrayNode,\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n IndexNode: IndexNode,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n SymbolNode: SymbolNode,\n add: _pureFunctionsAnyGenerated.add,\n divide: _pureFunctionsAnyGenerated.divide,\n equal: _pureFunctionsAnyGenerated.equal,\n isZero: _pureFunctionsAnyGenerated.isZero,\n multiply: _pureFunctionsAnyGenerated.multiply,\n pow: _pureFunctionsAnyGenerated.pow,\n subtract: _pureFunctionsAnyGenerated.subtract\n});\nexports.simplifyCore = simplifyCore;\nvar compile = (0, _factoriesAny.createCompile)({\n parse: parse,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.compile = compile;\nvar Help = (0, _factoriesAny.createHelpClass)({\n parse: parse\n});\nexports.Help = Help;\nvar leafCount = (0, _factoriesAny.createLeafCount)({\n parse: parse,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.leafCount = leafCount;\nvar simplify = (0, _factoriesAny.createSimplify)({\n bignumber: _pureFunctionsAnyGenerated.bignumber,\n fraction: _pureFunctionsAnyGenerated.fraction,\n AccessorNode: AccessorNode,\n ArrayNode: ArrayNode,\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n IndexNode: IndexNode,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n SymbolNode: SymbolNode,\n add: _pureFunctionsAnyGenerated.add,\n config: _configReadonly.config,\n divide: _pureFunctionsAnyGenerated.divide,\n equal: _pureFunctionsAnyGenerated.equal,\n isZero: _pureFunctionsAnyGenerated.isZero,\n mathWithTransform: mathWithTransform,\n matrix: _pureFunctionsAnyGenerated.matrix,\n multiply: _pureFunctionsAnyGenerated.multiply,\n parse: parse,\n pow: _pureFunctionsAnyGenerated.pow,\n resolve: resolve,\n simplifyCore: simplifyCore,\n subtract: _pureFunctionsAnyGenerated.subtract,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.simplify = simplify;\nvar symbolicEqual = (0, _factoriesAny.createSymbolicEqual)({\n OperatorNode: OperatorNode,\n parse: parse,\n simplify: simplify,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.symbolicEqual = symbolicEqual;\nvar evaluate = (0, _factoriesAny.createEvaluate)({\n parse: parse,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.evaluate = evaluate;\nvar help = (0, _factoriesAny.createHelp)({\n Help: Help,\n mathWithTransform: mathWithTransform,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.help = help;\nvar Parser = (0, _factoriesAny.createParserClass)({\n evaluate: evaluate\n});\nexports.Parser = Parser;\nvar rationalize = (0, _factoriesAny.createRationalize)({\n bignumber: _pureFunctionsAnyGenerated.bignumber,\n fraction: _pureFunctionsAnyGenerated.fraction,\n AccessorNode: AccessorNode,\n ArrayNode: ArrayNode,\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n IndexNode: IndexNode,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n SymbolNode: SymbolNode,\n add: _pureFunctionsAnyGenerated.add,\n config: _configReadonly.config,\n divide: _pureFunctionsAnyGenerated.divide,\n equal: _pureFunctionsAnyGenerated.equal,\n isZero: _pureFunctionsAnyGenerated.isZero,\n mathWithTransform: mathWithTransform,\n matrix: _pureFunctionsAnyGenerated.matrix,\n multiply: _pureFunctionsAnyGenerated.multiply,\n parse: parse,\n pow: _pureFunctionsAnyGenerated.pow,\n simplify: simplify,\n simplifyCore: simplifyCore,\n subtract: _pureFunctionsAnyGenerated.subtract,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.rationalize = rationalize;\nvar derivative = (0, _factoriesAny.createDerivative)({\n ConstantNode: ConstantNode,\n FunctionNode: FunctionNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n SymbolNode: SymbolNode,\n config: _configReadonly.config,\n equal: _pureFunctionsAnyGenerated.equal,\n isZero: _pureFunctionsAnyGenerated.isZero,\n numeric: _pureFunctionsAnyGenerated.numeric,\n parse: parse,\n simplify: simplify,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.derivative = derivative;\nvar parser = (0, _factoriesAny.createParser)({\n Parser: Parser,\n typed: _pureFunctionsAnyGenerated.typed\n});\nexports.parser = parser;\n(0, _extends2.default)(math, {\n e: _pureFunctionsAnyGenerated.e,\n false: _pureFunctionsAnyGenerated._false,\n fineStructure: _pureFunctionsAnyGenerated.fineStructure,\n i: _pureFunctionsAnyGenerated.i,\n Infinity: _pureFunctionsAnyGenerated._Infinity,\n LN10: _pureFunctionsAnyGenerated.LN10,\n LOG10E: _pureFunctionsAnyGenerated.LOG10E,\n NaN: _pureFunctionsAnyGenerated._NaN,\n null: _pureFunctionsAnyGenerated._null,\n phi: _pureFunctionsAnyGenerated.phi,\n SQRT1_2: _pureFunctionsAnyGenerated.SQRT1_2,\n sackurTetrode: _pureFunctionsAnyGenerated.sackurTetrode,\n tau: _pureFunctionsAnyGenerated.tau,\n true: _pureFunctionsAnyGenerated._true,\n 'E': _pureFunctionsAnyGenerated.e,\n version: _pureFunctionsAnyGenerated.version,\n efimovFactor: _pureFunctionsAnyGenerated.efimovFactor,\n LN2: _pureFunctionsAnyGenerated.LN2,\n pi: _pureFunctionsAnyGenerated.pi,\n replacer: _pureFunctionsAnyGenerated.replacer,\n reviver: reviver,\n SQRT2: _pureFunctionsAnyGenerated.SQRT2,\n typed: _pureFunctionsAnyGenerated.typed,\n unaryPlus: _pureFunctionsAnyGenerated.unaryPlus,\n 'PI': _pureFunctionsAnyGenerated.pi,\n weakMixingAngle: _pureFunctionsAnyGenerated.weakMixingAngle,\n abs: _pureFunctionsAnyGenerated.abs,\n acos: _pureFunctionsAnyGenerated.acos,\n acot: _pureFunctionsAnyGenerated.acot,\n acsc: _pureFunctionsAnyGenerated.acsc,\n addScalar: _pureFunctionsAnyGenerated.addScalar,\n arg: _pureFunctionsAnyGenerated.arg,\n asech: _pureFunctionsAnyGenerated.asech,\n asinh: _pureFunctionsAnyGenerated.asinh,\n atan: _pureFunctionsAnyGenerated.atan,\n atanh: _pureFunctionsAnyGenerated.atanh,\n bignumber: _pureFunctionsAnyGenerated.bignumber,\n bitNot: _pureFunctionsAnyGenerated.bitNot,\n boolean: _pureFunctionsAnyGenerated.boolean,\n chain: chain,\n clone: _pureFunctionsAnyGenerated.clone,\n combinations: _pureFunctionsAnyGenerated.combinations,\n complex: _pureFunctionsAnyGenerated.complex,\n conj: _pureFunctionsAnyGenerated.conj,\n cosh: _pureFunctionsAnyGenerated.cosh,\n coth: _pureFunctionsAnyGenerated.coth,\n csc: _pureFunctionsAnyGenerated.csc,\n cube: _pureFunctionsAnyGenerated.cube,\n equalScalar: _pureFunctionsAnyGenerated.equalScalar,\n erf: _pureFunctionsAnyGenerated.erf,\n exp: _pureFunctionsAnyGenerated.exp,\n expm1: _pureFunctionsAnyGenerated.expm1,\n filter: _pureFunctionsAnyGenerated.filter,\n forEach: _pureFunctionsAnyGenerated.forEach,\n format: _pureFunctionsAnyGenerated.format,\n getMatrixDataType: _pureFunctionsAnyGenerated.getMatrixDataType,\n hex: _pureFunctionsAnyGenerated.hex,\n im: _pureFunctionsAnyGenerated.im,\n isInteger: _pureFunctionsAnyGenerated.isInteger,\n isNegative: _pureFunctionsAnyGenerated.isNegative,\n isPositive: _pureFunctionsAnyGenerated.isPositive,\n isZero: _pureFunctionsAnyGenerated.isZero,\n LOG2E: _pureFunctionsAnyGenerated.LOG2E,\n lgamma: _pureFunctionsAnyGenerated.lgamma,\n log10: _pureFunctionsAnyGenerated.log10,\n log2: _pureFunctionsAnyGenerated.log2,\n map: _pureFunctionsAnyGenerated.map,\n multiplyScalar: _pureFunctionsAnyGenerated.multiplyScalar,\n not: _pureFunctionsAnyGenerated.not,\n number: _pureFunctionsAnyGenerated.number,\n oct: _pureFunctionsAnyGenerated.oct,\n pickRandom: _pureFunctionsAnyGenerated.pickRandom,\n print: _pureFunctionsAnyGenerated.print,\n random: _pureFunctionsAnyGenerated.random,\n re: _pureFunctionsAnyGenerated.re,\n sec: _pureFunctionsAnyGenerated.sec,\n sign: _pureFunctionsAnyGenerated.sign,\n sin: _pureFunctionsAnyGenerated.sin,\n splitUnit: _pureFunctionsAnyGenerated.splitUnit,\n square: _pureFunctionsAnyGenerated.square,\n string: _pureFunctionsAnyGenerated.string,\n tan: _pureFunctionsAnyGenerated.tan,\n typeOf: _pureFunctionsAnyGenerated.typeOf,\n acosh: _pureFunctionsAnyGenerated.acosh,\n acsch: _pureFunctionsAnyGenerated.acsch,\n apply: _pureFunctionsAnyGenerated.apply,\n asec: _pureFunctionsAnyGenerated.asec,\n bin: _pureFunctionsAnyGenerated.bin,\n combinationsWithRep: _pureFunctionsAnyGenerated.combinationsWithRep,\n cos: _pureFunctionsAnyGenerated.cos,\n csch: _pureFunctionsAnyGenerated.csch,\n isNaN: _pureFunctionsAnyGenerated.isNaN,\n isPrime: _pureFunctionsAnyGenerated.isPrime,\n randomInt: _pureFunctionsAnyGenerated.randomInt,\n sech: _pureFunctionsAnyGenerated.sech,\n sinh: _pureFunctionsAnyGenerated.sinh,\n sparse: _pureFunctionsAnyGenerated.sparse,\n sqrt: _pureFunctionsAnyGenerated.sqrt,\n tanh: _pureFunctionsAnyGenerated.tanh,\n unaryMinus: _pureFunctionsAnyGenerated.unaryMinus,\n acoth: _pureFunctionsAnyGenerated.acoth,\n cot: _pureFunctionsAnyGenerated.cot,\n fraction: _pureFunctionsAnyGenerated.fraction,\n isNumeric: _pureFunctionsAnyGenerated.isNumeric,\n matrix: _pureFunctionsAnyGenerated.matrix,\n matrixFromFunction: _pureFunctionsAnyGenerated.matrixFromFunction,\n mod: _pureFunctionsAnyGenerated.mod,\n nthRoot: _pureFunctionsAnyGenerated.nthRoot,\n numeric: _pureFunctionsAnyGenerated.numeric,\n or: _pureFunctionsAnyGenerated.or,\n prod: _pureFunctionsAnyGenerated.prod,\n reshape: _pureFunctionsAnyGenerated.reshape,\n size: _pureFunctionsAnyGenerated.size,\n smaller: _pureFunctionsAnyGenerated.smaller,\n squeeze: _pureFunctionsAnyGenerated.squeeze,\n subset: _pureFunctionsAnyGenerated.subset,\n subtract: _pureFunctionsAnyGenerated.subtract,\n to: _pureFunctionsAnyGenerated.to,\n transpose: _pureFunctionsAnyGenerated.transpose,\n xgcd: _pureFunctionsAnyGenerated.xgcd,\n zeros: _pureFunctionsAnyGenerated.zeros,\n and: _pureFunctionsAnyGenerated.and,\n bitAnd: _pureFunctionsAnyGenerated.bitAnd,\n bitXor: _pureFunctionsAnyGenerated.bitXor,\n cbrt: _pureFunctionsAnyGenerated.cbrt,\n compare: _pureFunctionsAnyGenerated.compare,\n compareText: _pureFunctionsAnyGenerated.compareText,\n concat: _pureFunctionsAnyGenerated.concat,\n count: _pureFunctionsAnyGenerated.count,\n ctranspose: _pureFunctionsAnyGenerated.ctranspose,\n diag: _pureFunctionsAnyGenerated.diag,\n divideScalar: _pureFunctionsAnyGenerated.divideScalar,\n dotDivide: _pureFunctionsAnyGenerated.dotDivide,\n equal: _pureFunctionsAnyGenerated.equal,\n fft: _pureFunctionsAnyGenerated.fft,\n flatten: _pureFunctionsAnyGenerated.flatten,\n gcd: _pureFunctionsAnyGenerated.gcd,\n hasNumericValue: _pureFunctionsAnyGenerated.hasNumericValue,\n hypot: _pureFunctionsAnyGenerated.hypot,\n ifft: _pureFunctionsAnyGenerated.ifft,\n kron: _pureFunctionsAnyGenerated.kron,\n largerEq: _pureFunctionsAnyGenerated.largerEq,\n leftShift: _pureFunctionsAnyGenerated.leftShift,\n lsolve: _pureFunctionsAnyGenerated.lsolve,\n matrixFromColumns: _pureFunctionsAnyGenerated.matrixFromColumns,\n min: _pureFunctionsAnyGenerated.min,\n mode: _pureFunctionsAnyGenerated.mode,\n nthRoots: _pureFunctionsAnyGenerated.nthRoots,\n ones: _pureFunctionsAnyGenerated.ones,\n partitionSelect: _pureFunctionsAnyGenerated.partitionSelect,\n resize: _pureFunctionsAnyGenerated.resize,\n rightArithShift: _pureFunctionsAnyGenerated.rightArithShift,\n round: _pureFunctionsAnyGenerated.round,\n smallerEq: _pureFunctionsAnyGenerated.smallerEq,\n unequal: _pureFunctionsAnyGenerated.unequal,\n usolve: _pureFunctionsAnyGenerated.usolve,\n xor: _pureFunctionsAnyGenerated.xor,\n add: _pureFunctionsAnyGenerated.add,\n atan2: _pureFunctionsAnyGenerated.atan2,\n bitOr: _pureFunctionsAnyGenerated.bitOr,\n catalan: _pureFunctionsAnyGenerated.catalan,\n compareNatural: _pureFunctionsAnyGenerated.compareNatural,\n cumsum: _pureFunctionsAnyGenerated.cumsum,\n deepEqual: _pureFunctionsAnyGenerated.deepEqual,\n diff: _pureFunctionsAnyGenerated.diff,\n dot: _pureFunctionsAnyGenerated.dot,\n equalText: _pureFunctionsAnyGenerated.equalText,\n floor: _pureFunctionsAnyGenerated.floor,\n identity: _pureFunctionsAnyGenerated.identity,\n invmod: _pureFunctionsAnyGenerated.invmod,\n larger: _pureFunctionsAnyGenerated.larger,\n log: _pureFunctionsAnyGenerated.log,\n lsolveAll: _pureFunctionsAnyGenerated.lsolveAll,\n matrixFromRows: _pureFunctionsAnyGenerated.matrixFromRows,\n multiply: _pureFunctionsAnyGenerated.multiply,\n qr: _pureFunctionsAnyGenerated.qr,\n range: _pureFunctionsAnyGenerated.range,\n rightLogShift: _pureFunctionsAnyGenerated.rightLogShift,\n setSize: _pureFunctionsAnyGenerated.setSize,\n slu: _pureFunctionsAnyGenerated.slu,\n sum: _pureFunctionsAnyGenerated.sum,\n trace: _pureFunctionsAnyGenerated.trace,\n usolveAll: _pureFunctionsAnyGenerated.usolveAll,\n asin: _pureFunctionsAnyGenerated.asin,\n ceil: _pureFunctionsAnyGenerated.ceil,\n composition: _pureFunctionsAnyGenerated.composition,\n cross: _pureFunctionsAnyGenerated.cross,\n det: _pureFunctionsAnyGenerated.det,\n distance: _pureFunctionsAnyGenerated.distance,\n dotMultiply: _pureFunctionsAnyGenerated.dotMultiply,\n fix: _pureFunctionsAnyGenerated.fix,\n intersect: _pureFunctionsAnyGenerated.intersect,\n lcm: _pureFunctionsAnyGenerated.lcm,\n log1p: _pureFunctionsAnyGenerated.log1p,\n max: _pureFunctionsAnyGenerated.max,\n quantileSeq: _pureFunctionsAnyGenerated.quantileSeq,\n row: _pureFunctionsAnyGenerated.row,\n setCartesian: _pureFunctionsAnyGenerated.setCartesian,\n setDistinct: _pureFunctionsAnyGenerated.setDistinct,\n setIsSubset: _pureFunctionsAnyGenerated.setIsSubset,\n setPowerset: _pureFunctionsAnyGenerated.setPowerset,\n sort: _pureFunctionsAnyGenerated.sort,\n column: _pureFunctionsAnyGenerated.column,\n index: _pureFunctionsAnyGenerated.index,\n inv: _pureFunctionsAnyGenerated.inv,\n pinv: _pureFunctionsAnyGenerated.pinv,\n pow: _pureFunctionsAnyGenerated.pow,\n setDifference: _pureFunctionsAnyGenerated.setDifference,\n setMultiplicity: _pureFunctionsAnyGenerated.setMultiplicity,\n sqrtm: _pureFunctionsAnyGenerated.sqrtm,\n vacuumImpedance: _pureFunctionsAnyGenerated.vacuumImpedance,\n wienDisplacement: _pureFunctionsAnyGenerated.wienDisplacement,\n atomicMass: _pureFunctionsAnyGenerated.atomicMass,\n bohrMagneton: _pureFunctionsAnyGenerated.bohrMagneton,\n boltzmann: _pureFunctionsAnyGenerated.boltzmann,\n conductanceQuantum: _pureFunctionsAnyGenerated.conductanceQuantum,\n createUnit: _pureFunctionsAnyGenerated.createUnit,\n deuteronMass: _pureFunctionsAnyGenerated.deuteronMass,\n dotPow: _pureFunctionsAnyGenerated.dotPow,\n electricConstant: _pureFunctionsAnyGenerated.electricConstant,\n elementaryCharge: _pureFunctionsAnyGenerated.elementaryCharge,\n expm: _pureFunctionsAnyGenerated.expm,\n faraday: _pureFunctionsAnyGenerated.faraday,\n firstRadiation: _pureFunctionsAnyGenerated.firstRadiation,\n gamma: _pureFunctionsAnyGenerated.gamma,\n gravitationConstant: _pureFunctionsAnyGenerated.gravitationConstant,\n hartreeEnergy: _pureFunctionsAnyGenerated.hartreeEnergy,\n klitzing: _pureFunctionsAnyGenerated.klitzing,\n loschmidt: _pureFunctionsAnyGenerated.loschmidt,\n magneticConstant: _pureFunctionsAnyGenerated.magneticConstant,\n molarMass: _pureFunctionsAnyGenerated.molarMass,\n molarPlanckConstant: _pureFunctionsAnyGenerated.molarPlanckConstant,\n neutronMass: _pureFunctionsAnyGenerated.neutronMass,\n nuclearMagneton: _pureFunctionsAnyGenerated.nuclearMagneton,\n planckCharge: _pureFunctionsAnyGenerated.planckCharge,\n planckLength: _pureFunctionsAnyGenerated.planckLength,\n planckTemperature: _pureFunctionsAnyGenerated.planckTemperature,\n protonMass: _pureFunctionsAnyGenerated.protonMass,\n reducedPlanckConstant: _pureFunctionsAnyGenerated.reducedPlanckConstant,\n rydberg: _pureFunctionsAnyGenerated.rydberg,\n setIntersect: _pureFunctionsAnyGenerated.setIntersect,\n speedOfLight: _pureFunctionsAnyGenerated.speedOfLight,\n stefanBoltzmann: _pureFunctionsAnyGenerated.stefanBoltzmann,\n thomsonCrossSection: _pureFunctionsAnyGenerated.thomsonCrossSection,\n avogadro: _pureFunctionsAnyGenerated.avogadro,\n bohrRadius: _pureFunctionsAnyGenerated.bohrRadius,\n coulomb: _pureFunctionsAnyGenerated.coulomb,\n divide: _pureFunctionsAnyGenerated.divide,\n electronMass: _pureFunctionsAnyGenerated.electronMass,\n factorial: _pureFunctionsAnyGenerated.factorial,\n gravity: _pureFunctionsAnyGenerated.gravity,\n inverseConductanceQuantum: _pureFunctionsAnyGenerated.inverseConductanceQuantum,\n lup: _pureFunctionsAnyGenerated.lup,\n magneticFluxQuantum: _pureFunctionsAnyGenerated.magneticFluxQuantum,\n molarMassC12: _pureFunctionsAnyGenerated.molarMassC12,\n multinomial: _pureFunctionsAnyGenerated.multinomial,\n parse: parse,\n permutations: _pureFunctionsAnyGenerated.permutations,\n planckMass: _pureFunctionsAnyGenerated.planckMass,\n quantumOfCirculation: _pureFunctionsAnyGenerated.quantumOfCirculation,\n resolve: resolve,\n secondRadiation: _pureFunctionsAnyGenerated.secondRadiation,\n simplifyCore: simplifyCore,\n stirlingS2: _pureFunctionsAnyGenerated.stirlingS2,\n unit: _pureFunctionsAnyGenerated.unit,\n bellNumbers: _pureFunctionsAnyGenerated.bellNumbers,\n compile: compile,\n eigs: _pureFunctionsAnyGenerated.eigs,\n fermiCoupling: _pureFunctionsAnyGenerated.fermiCoupling,\n leafCount: leafCount,\n mean: _pureFunctionsAnyGenerated.mean,\n molarVolume: _pureFunctionsAnyGenerated.molarVolume,\n planckConstant: _pureFunctionsAnyGenerated.planckConstant,\n setSymDifference: _pureFunctionsAnyGenerated.setSymDifference,\n simplify: simplify,\n symbolicEqual: symbolicEqual,\n classicalElectronRadius: _pureFunctionsAnyGenerated.classicalElectronRadius,\n evaluate: evaluate,\n help: help,\n lusolve: _pureFunctionsAnyGenerated.lusolve,\n median: _pureFunctionsAnyGenerated.median,\n rationalize: rationalize,\n setUnion: _pureFunctionsAnyGenerated.setUnion,\n variance: _pureFunctionsAnyGenerated.variance,\n derivative: derivative,\n kldivergence: _pureFunctionsAnyGenerated.kldivergence,\n norm: _pureFunctionsAnyGenerated.norm,\n planckTime: _pureFunctionsAnyGenerated.planckTime,\n rotationMatrix: _pureFunctionsAnyGenerated.rotationMatrix,\n gasConstant: _pureFunctionsAnyGenerated.gasConstant,\n parser: parser,\n std: _pureFunctionsAnyGenerated.std,\n mad: _pureFunctionsAnyGenerated.mad,\n rotate: _pureFunctionsAnyGenerated.rotate,\n config: _configReadonly.config\n});\n(0, _extends2.default)(mathWithTransform, math, {\n filter: (0, _factoriesAny.createFilterTransform)({\n typed: _pureFunctionsAnyGenerated.typed\n }),\n forEach: (0, _factoriesAny.createForEachTransform)({\n typed: _pureFunctionsAnyGenerated.typed\n }),\n map: (0, _factoriesAny.createMapTransform)({\n typed: _pureFunctionsAnyGenerated.typed\n }),\n apply: (0, _factoriesAny.createApplyTransform)({\n isInteger: _pureFunctionsAnyGenerated.isInteger,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n diff: (0, _factoriesAny.createDiffTransform)({\n bignumber: _pureFunctionsAnyGenerated.bignumber,\n matrix: _pureFunctionsAnyGenerated.matrix,\n number: _pureFunctionsAnyGenerated.number,\n subtract: _pureFunctionsAnyGenerated.subtract,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n subset: (0, _factoriesAny.createSubsetTransform)({\n matrix: _pureFunctionsAnyGenerated.matrix,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n concat: (0, _factoriesAny.createConcatTransform)({\n isInteger: _pureFunctionsAnyGenerated.isInteger,\n matrix: _pureFunctionsAnyGenerated.matrix,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n max: (0, _factoriesAny.createMaxTransform)({\n config: _configReadonly.config,\n larger: _pureFunctionsAnyGenerated.larger,\n numeric: _pureFunctionsAnyGenerated.numeric,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n min: (0, _factoriesAny.createMinTransform)({\n config: _configReadonly.config,\n numeric: _pureFunctionsAnyGenerated.numeric,\n smaller: _pureFunctionsAnyGenerated.smaller,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n range: (0, _factoriesAny.createRangeTransform)({\n bignumber: _pureFunctionsAnyGenerated.bignumber,\n matrix: _pureFunctionsAnyGenerated.matrix,\n config: _configReadonly.config,\n larger: _pureFunctionsAnyGenerated.larger,\n largerEq: _pureFunctionsAnyGenerated.largerEq,\n smaller: _pureFunctionsAnyGenerated.smaller,\n smallerEq: _pureFunctionsAnyGenerated.smallerEq,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n sum: (0, _factoriesAny.createSumTransform)({\n add: _pureFunctionsAnyGenerated.add,\n config: _configReadonly.config,\n numeric: _pureFunctionsAnyGenerated.numeric,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n cumsum: (0, _factoriesAny.createCumSumTransform)({\n add: _pureFunctionsAnyGenerated.add,\n typed: _pureFunctionsAnyGenerated.typed,\n unaryPlus: _pureFunctionsAnyGenerated.unaryPlus\n }),\n row: (0, _factoriesAny.createRowTransform)({\n Index: _pureFunctionsAnyGenerated.Index,\n matrix: _pureFunctionsAnyGenerated.matrix,\n range: _pureFunctionsAnyGenerated.range,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n column: (0, _factoriesAny.createColumnTransform)({\n Index: _pureFunctionsAnyGenerated.Index,\n matrix: _pureFunctionsAnyGenerated.matrix,\n range: _pureFunctionsAnyGenerated.range,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n index: (0, _factoriesAny.createIndexTransform)({\n Index: _pureFunctionsAnyGenerated.Index\n }),\n mean: (0, _factoriesAny.createMeanTransform)({\n add: _pureFunctionsAnyGenerated.add,\n divide: _pureFunctionsAnyGenerated.divide,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n variance: (0, _factoriesAny.createVarianceTransform)({\n add: _pureFunctionsAnyGenerated.add,\n apply: _pureFunctionsAnyGenerated.apply,\n divide: _pureFunctionsAnyGenerated.divide,\n isNaN: _pureFunctionsAnyGenerated.isNaN,\n multiply: _pureFunctionsAnyGenerated.multiply,\n subtract: _pureFunctionsAnyGenerated.subtract,\n typed: _pureFunctionsAnyGenerated.typed\n }),\n std: (0, _factoriesAny.createStdTransform)({\n sqrt: _pureFunctionsAnyGenerated.sqrt,\n typed: _pureFunctionsAnyGenerated.typed,\n variance: _pureFunctionsAnyGenerated.variance\n })\n});\n(0, _extends2.default)(classes, {\n BigNumber: _pureFunctionsAnyGenerated.BigNumber,\n Chain: Chain,\n Complex: _pureFunctionsAnyGenerated.Complex,\n Fraction: _pureFunctionsAnyGenerated.Fraction,\n Matrix: _pureFunctionsAnyGenerated.Matrix,\n Node: Node,\n ObjectNode: ObjectNode,\n OperatorNode: OperatorNode,\n ParenthesisNode: ParenthesisNode,\n Range: _pureFunctionsAnyGenerated.Range,\n RelationalNode: RelationalNode,\n ResultSet: _pureFunctionsAnyGenerated.ResultSet,\n ArrayNode: ArrayNode,\n BlockNode: BlockNode,\n ConditionalNode: ConditionalNode,\n ConstantNode: ConstantNode,\n DenseMatrix: _pureFunctionsAnyGenerated.DenseMatrix,\n RangeNode: RangeNode,\n FunctionAssignmentNode: FunctionAssignmentNode,\n SparseMatrix: _pureFunctionsAnyGenerated.SparseMatrix,\n AccessorNode: AccessorNode,\n AssignmentNode: AssignmentNode,\n IndexNode: IndexNode,\n FibonacciHeap: _pureFunctionsAnyGenerated.FibonacciHeap,\n ImmutableDenseMatrix: _pureFunctionsAnyGenerated.ImmutableDenseMatrix,\n Index: _pureFunctionsAnyGenerated.Index,\n Spa: _pureFunctionsAnyGenerated.Spa,\n Unit: _pureFunctionsAnyGenerated.Unit,\n SymbolNode: SymbolNode,\n FunctionNode: FunctionNode,\n Help: Help,\n Parser: Parser\n});\nChain.createProxy(math);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"isAccessorNode\", {\n enumerable: true,\n get: function get() {\n return _is.isAccessorNode;\n }\n});\nObject.defineProperty(exports, \"isArray\", {\n enumerable: true,\n get: function get() {\n return _is.isArray;\n }\n});\nObject.defineProperty(exports, \"isArrayNode\", {\n enumerable: true,\n get: function get() {\n return _is.isArrayNode;\n }\n});\nObject.defineProperty(exports, \"isAssignmentNode\", {\n enumerable: true,\n get: function get() {\n return _is.isAssignmentNode;\n }\n});\nObject.defineProperty(exports, \"isBigNumber\", {\n enumerable: true,\n get: function get() {\n return _is.isBigNumber;\n }\n});\nObject.defineProperty(exports, \"isBlockNode\", {\n enumerable: true,\n get: function get() {\n return _is.isBlockNode;\n }\n});\nObject.defineProperty(exports, \"isBoolean\", {\n enumerable: true,\n get: function get() {\n return _is.isBoolean;\n }\n});\nObject.defineProperty(exports, \"isChain\", {\n enumerable: true,\n get: function get() {\n return _is.isChain;\n }\n});\nObject.defineProperty(exports, \"isCollection\", {\n enumerable: true,\n get: function get() {\n return _is.isCollection;\n }\n});\nObject.defineProperty(exports, \"isComplex\", {\n enumerable: true,\n get: function get() {\n return _is.isComplex;\n }\n});\nObject.defineProperty(exports, \"isConditionalNode\", {\n enumerable: true,\n get: function get() {\n return _is.isConditionalNode;\n }\n});\nObject.defineProperty(exports, \"isConstantNode\", {\n enumerable: true,\n get: function get() {\n return _is.isConstantNode;\n }\n});\nObject.defineProperty(exports, \"isDate\", {\n enumerable: true,\n get: function get() {\n return _is.isDate;\n }\n});\nObject.defineProperty(exports, \"isDenseMatrix\", {\n enumerable: true,\n get: function get() {\n return _is.isDenseMatrix;\n }\n});\nObject.defineProperty(exports, \"isFraction\", {\n enumerable: true,\n get: function get() {\n return _is.isFraction;\n }\n});\nObject.defineProperty(exports, \"isFunction\", {\n enumerable: true,\n get: function get() {\n return _is.isFunction;\n }\n});\nObject.defineProperty(exports, \"isFunctionAssignmentNode\", {\n enumerable: true,\n get: function get() {\n return _is.isFunctionAssignmentNode;\n }\n});\nObject.defineProperty(exports, \"isFunctionNode\", {\n enumerable: true,\n get: function get() {\n return _is.isFunctionNode;\n }\n});\nObject.defineProperty(exports, \"isHelp\", {\n enumerable: true,\n get: function get() {\n return _is.isHelp;\n }\n});\nObject.defineProperty(exports, \"isIndex\", {\n enumerable: true,\n get: function get() {\n return _is.isIndex;\n }\n});\nObject.defineProperty(exports, \"isIndexNode\", {\n enumerable: true,\n get: function get() {\n return _is.isIndexNode;\n }\n});\nObject.defineProperty(exports, \"isMatrix\", {\n enumerable: true,\n get: function get() {\n return _is.isMatrix;\n }\n});\nObject.defineProperty(exports, \"isNode\", {\n enumerable: true,\n get: function get() {\n return _is.isNode;\n }\n});\nObject.defineProperty(exports, \"isNull\", {\n enumerable: true,\n get: function get() {\n return _is.isNull;\n }\n});\nObject.defineProperty(exports, \"isNumber\", {\n enumerable: true,\n get: function get() {\n return _is.isNumber;\n }\n});\nObject.defineProperty(exports, \"isObject\", {\n enumerable: true,\n get: function get() {\n return _is.isObject;\n }\n});\nObject.defineProperty(exports, \"isObjectNode\", {\n enumerable: true,\n get: function get() {\n return _is.isObjectNode;\n }\n});\nObject.defineProperty(exports, \"isOperatorNode\", {\n enumerable: true,\n get: function get() {\n return _is.isOperatorNode;\n }\n});\nObject.defineProperty(exports, \"isParenthesisNode\", {\n enumerable: true,\n get: function get() {\n return _is.isParenthesisNode;\n }\n});\nObject.defineProperty(exports, \"isRange\", {\n enumerable: true,\n get: function get() {\n return _is.isRange;\n }\n});\nObject.defineProperty(exports, \"isRangeNode\", {\n enumerable: true,\n get: function get() {\n return _is.isRangeNode;\n }\n});\nObject.defineProperty(exports, \"isRegExp\", {\n enumerable: true,\n get: function get() {\n return _is.isRegExp;\n }\n});\nObject.defineProperty(exports, \"isResultSet\", {\n enumerable: true,\n get: function get() {\n return _is.isResultSet;\n }\n});\nObject.defineProperty(exports, \"isSparseMatrix\", {\n enumerable: true,\n get: function get() {\n return _is.isSparseMatrix;\n }\n});\nObject.defineProperty(exports, \"isString\", {\n enumerable: true,\n get: function get() {\n return _is.isString;\n }\n});\nObject.defineProperty(exports, \"isSymbolNode\", {\n enumerable: true,\n get: function get() {\n return _is.isSymbolNode;\n }\n});\nObject.defineProperty(exports, \"isUndefined\", {\n enumerable: true,\n get: function get() {\n return _is.isUndefined;\n }\n});\nObject.defineProperty(exports, \"isUnit\", {\n enumerable: true,\n get: function get() {\n return _is.isUnit;\n }\n});\n\nvar _is = require(\"../utils/is.js\");","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.BigNumberDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar BigNumberDependencies = {\n createBigNumberClass: _factoriesAny.createBigNumberClass\n};\nexports.BigNumberDependencies = BigNumberDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ComplexDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ComplexDependencies = {\n createComplexClass: _factoriesAny.createComplexClass\n};\nexports.ComplexDependencies = ComplexDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MatrixDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar MatrixDependencies = {\n createMatrixClass: _factoriesAny.createMatrixClass\n};\nexports.MatrixDependencies = MatrixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DenseMatrixDependencies = void 0;\n\nvar _dependenciesMatrixClassGenerated = require(\"./dependenciesMatrixClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar DenseMatrixDependencies = {\n MatrixDependencies: _dependenciesMatrixClassGenerated.MatrixDependencies,\n createDenseMatrixClass: _factoriesAny.createDenseMatrixClass\n};\nexports.DenseMatrixDependencies = DenseMatrixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FractionDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar FractionDependencies = {\n createFractionClass: _factoriesAny.createFractionClass\n};\nexports.FractionDependencies = FractionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typedDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesFractionClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar typedDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,\n createTyped: _factoriesAny.createTyped\n};\nexports.typedDependencies = typedDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.absDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar absDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAbs: _factoriesAny.createAbs\n};\nexports.absDependencies = absDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NodeDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar NodeDependencies = {\n createNode: _factoriesAny.createNode\n};\nexports.NodeDependencies = NodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.equalScalarDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar equalScalarDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createEqualScalar: _factoriesAny.createEqualScalar\n};\nexports.equalScalarDependencies = equalScalarDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SparseMatrixDependencies = void 0;\n\nvar _dependenciesMatrixClassGenerated = require(\"./dependenciesMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar SparseMatrixDependencies = {\n MatrixDependencies: _dependenciesMatrixClassGenerated.MatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSparseMatrixClass: _factoriesAny.createSparseMatrixClass\n};\nexports.SparseMatrixDependencies = SparseMatrixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixClassGenerated = require(\"./dependenciesMatrixClass.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar matrixDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n MatrixDependencies: _dependenciesMatrixClassGenerated.MatrixDependencies,\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMatrix: _factoriesAny.createMatrix\n};\nexports.matrixDependencies = matrixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.subsetDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar subsetDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSubset: _factoriesAny.createSubset\n};\nexports.subsetDependencies = subsetDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AccessorNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar AccessorNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n createAccessorNode: _factoriesAny.createAccessorNode\n};\nexports.AccessorNodeDependencies = AccessorNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acosDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar acosDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAcos: _factoriesAny.createAcos\n};\nexports.acosDependencies = acosDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acoshDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar acoshDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAcosh: _factoriesAny.createAcosh\n};\nexports.acoshDependencies = acoshDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acotDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar acotDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAcot: _factoriesAny.createAcot\n};\nexports.acotDependencies = acotDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acothDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar acothDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAcoth: _factoriesAny.createAcoth\n};\nexports.acothDependencies = acothDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acscDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar acscDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAcsc: _factoriesAny.createAcsc\n};\nexports.acscDependencies = acscDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.acschDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar acschDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAcsch: _factoriesAny.createAcsch\n};\nexports.acschDependencies = acschDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.addScalarDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar addScalarDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAddScalar: _factoriesAny.createAddScalar\n};\nexports.addScalarDependencies = addScalarDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.addDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar addDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAdd: _factoriesAny.createAdd\n};\nexports.addDependencies = addDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.notDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar notDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createNot: _factoriesAny.createNot\n};\nexports.notDependencies = notDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.zerosDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar zerosDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createZeros: _factoriesAny.createZeros\n};\nexports.zerosDependencies = zerosDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.andDependencies = void 0;\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesNotGenerated = require(\"./dependenciesNot.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar andDependencies = {\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n notDependencies: _dependenciesNotGenerated.notDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createAnd: _factoriesAny.createAnd\n};\nexports.andDependencies = andDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isIntegerDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isIntegerDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsInteger: _factoriesAny.createIsInteger\n};\nexports.isIntegerDependencies = isIntegerDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.applyDependencies = void 0;\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar applyDependencies = {\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createApply: _factoriesAny.createApply\n};\nexports.applyDependencies = applyDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.applyTransformDependencies = void 0;\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar applyTransformDependencies = {\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createApplyTransform: _factoriesAny.createApplyTransform\n};\nexports.applyTransformDependencies = applyTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.argDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar argDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createArg: _factoriesAny.createArg\n};\nexports.argDependencies = argDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ArrayNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ArrayNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createArrayNode: _factoriesAny.createArrayNode\n};\nexports.ArrayNodeDependencies = ArrayNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asecDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar asecDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAsec: _factoriesAny.createAsec\n};\nexports.asecDependencies = asecDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asechDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar asechDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAsech: _factoriesAny.createAsech\n};\nexports.asechDependencies = asechDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asinDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar asinDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAsin: _factoriesAny.createAsin\n};\nexports.asinDependencies = asinDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.asinhDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar asinhDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAsinh: _factoriesAny.createAsinh\n};\nexports.asinhDependencies = asinhDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AssignmentNodeDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar AssignmentNodeDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n createAssignmentNode: _factoriesAny.createAssignmentNode\n};\nexports.AssignmentNodeDependencies = AssignmentNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atanDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar atanDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAtan: _factoriesAny.createAtan\n};\nexports.atanDependencies = atanDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atan2Dependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar atan2Dependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAtan2: _factoriesAny.createAtan2\n};\nexports.atan2Dependencies = atan2Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atanhDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar atanhDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createAtanh: _factoriesAny.createAtanh\n};\nexports.atanhDependencies = atanhDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bignumberDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bignumberDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBignumber: _factoriesAny.createBignumber\n};\nexports.bignumberDependencies = bignumberDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fractionDependencies = void 0;\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesFractionClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar fractionDependencies = {\n FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFraction: _factoriesAny.createFraction\n};\nexports.fractionDependencies = fractionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.numberDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar numberDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createNumber: _factoriesAny.createNumber\n};\nexports.numberDependencies = numberDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.numericDependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesFractionGenerated = require(\"./dependenciesFraction.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar numericDependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n fractionDependencies: _dependenciesFractionGenerated.fractionDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n createNumeric: _factoriesAny.createNumeric\n};\nexports.numericDependencies = numericDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.divideScalarDependencies = void 0;\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar divideScalarDependencies = {\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDivideScalar: _factoriesAny.createDivideScalar\n};\nexports.divideScalarDependencies = divideScalarDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.equalDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar equalDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createEqual: _factoriesAny.createEqual\n};\nexports.equalDependencies = equalDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.roundDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar roundDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createRound: _factoriesAny.createRound\n};\nexports.roundDependencies = roundDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ceilDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesRoundGenerated = require(\"./dependenciesRound.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ceilDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n roundDependencies: _dependenciesRoundGenerated.roundDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createCeil: _factoriesAny.createCeil\n};\nexports.ceilDependencies = ceilDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.floorDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesRoundGenerated = require(\"./dependenciesRound.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar floorDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n roundDependencies: _dependenciesRoundGenerated.roundDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createFloor: _factoriesAny.createFloor\n};\nexports.floorDependencies = floorDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fixDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesCeilGenerated = require(\"./dependenciesCeil.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesFloorGenerated = require(\"./dependenciesFloor.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar fixDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n ceilDependencies: _dependenciesCeilGenerated.ceilDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n floorDependencies: _dependenciesFloorGenerated.floorDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createFix: _factoriesAny.createFix\n};\nexports.fixDependencies = fixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.formatDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar formatDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFormat: _factoriesAny.createFormat\n};\nexports.formatDependencies = formatDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNumericDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isNumericDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsNumeric: _factoriesAny.createIsNumeric\n};\nexports.isNumericDependencies = isNumericDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.multiplyScalarDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar multiplyScalarDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMultiplyScalar: _factoriesAny.createMultiplyScalar\n};\nexports.multiplyScalarDependencies = multiplyScalarDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.identityDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar identityDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIdentity: _factoriesAny.createIdentity\n};\nexports.identityDependencies = identityDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isZeroDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isZeroDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsZero: _factoriesAny.createIsZero\n};\nexports.isZeroDependencies = isZeroDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.conjDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar conjDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createConj: _factoriesAny.createConj\n};\nexports.conjDependencies = conjDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sizeDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sizeDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSize: _factoriesAny.createSize\n};\nexports.sizeDependencies = sizeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesConjGenerated = require(\"./dependenciesConj.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar dotDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n conjDependencies: _dependenciesConjGenerated.conjDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDot: _factoriesAny.createDot\n};\nexports.dotDependencies = dotDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.multiplyDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDotGenerated = require(\"./dependenciesDot.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar multiplyDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n dotDependencies: _dependenciesDotGenerated.dotDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMultiply: _factoriesAny.createMultiply\n};\nexports.multiplyDependencies = multiplyDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unaryMinusDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar unaryMinusDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createUnaryMinus: _factoriesAny.createUnaryMinus\n};\nexports.unaryMinusDependencies = unaryMinusDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.subtractDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar subtractDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createSubtract: _factoriesAny.createSubtract\n};\nexports.subtractDependencies = subtractDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.detDependencies = void 0;\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar detDependencies = {\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createDet: _factoriesAny.createDet\n};\nexports.detDependencies = detDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.invDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDetGenerated = require(\"./dependenciesDet.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesIdentityGenerated = require(\"./dependenciesIdentity.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar invDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n detDependencies: _dependenciesDetGenerated.detDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n identityDependencies: _dependenciesIdentityGenerated.identityDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createInv: _factoriesAny.createInv\n};\nexports.invDependencies = invDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.powDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesFractionGenerated = require(\"./dependenciesFraction.generated.js\");\n\nvar _dependenciesIdentityGenerated = require(\"./dependenciesIdentity.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesInv.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar powDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n fractionDependencies: _dependenciesFractionGenerated.fractionDependencies,\n identityDependencies: _dependenciesIdentityGenerated.identityDependencies,\n invDependencies: _dependenciesInvGenerated.invDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createPow: _factoriesAny.createPow\n};\nexports.powDependencies = powDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.UnitDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesFractionClass.generated.js\");\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesFixGenerated = require(\"./dependenciesFix.generated.js\");\n\nvar _dependenciesFormatGenerated = require(\"./dependenciesFormat.generated.js\");\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesRoundGenerated = require(\"./dependenciesRound.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar UnitDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n fixDependencies: _dependenciesFixGenerated.fixDependencies,\n formatDependencies: _dependenciesFormatGenerated.formatDependencies,\n isNumericDependencies: _dependenciesIsNumericGenerated.isNumericDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n roundDependencies: _dependenciesRoundGenerated.roundDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n createUnitClass: _factoriesAny.createUnitClass\n};\nexports.UnitDependencies = UnitDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.atomicMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar atomicMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createAtomicMass: _factoriesAny.createAtomicMass\n};\nexports.atomicMassDependencies = atomicMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.avogadroDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar avogadroDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createAvogadro: _factoriesAny.createAvogadro\n};\nexports.avogadroDependencies = avogadroDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNegativeDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isNegativeDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsNegative: _factoriesAny.createIsNegative\n};\nexports.isNegativeDependencies = isNegativeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.combinationsDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar combinationsDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCombinations: _factoriesAny.createCombinations\n};\nexports.combinationsDependencies = combinationsDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gammaDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar gammaDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createGamma: _factoriesAny.createGamma\n};\nexports.gammaDependencies = gammaDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.factorialDependencies = void 0;\n\nvar _dependenciesGammaGenerated = require(\"./dependenciesGamma.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar factorialDependencies = {\n gammaDependencies: _dependenciesGammaGenerated.gammaDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFactorial: _factoriesAny.createFactorial\n};\nexports.factorialDependencies = factorialDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.largerDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar largerDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLarger: _factoriesAny.createLarger\n};\nexports.largerDependencies = largerDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stirlingS2Dependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesCombinationsGenerated = require(\"./dependenciesCombinations.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesFactorialGenerated = require(\"./dependenciesFactorial.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesIsNegativeGenerated = require(\"./dependenciesIsNegative.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar stirlingS2Dependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n combinationsDependencies: _dependenciesCombinationsGenerated.combinationsDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n factorialDependencies: _dependenciesFactorialGenerated.factorialDependencies,\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createStirlingS2: _factoriesAny.createStirlingS2\n};\nexports.stirlingS2Dependencies = stirlingS2Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bellNumbersDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesIsNegativeGenerated = require(\"./dependenciesIsNegative.generated.js\");\n\nvar _dependenciesStirlingS2Generated = require(\"./dependenciesStirlingS2.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bellNumbersDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,\n stirlingS2Dependencies: _dependenciesStirlingS2Generated.stirlingS2Dependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBellNumbers: _factoriesAny.createBellNumbers\n};\nexports.bellNumbersDependencies = bellNumbersDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.binDependencies = void 0;\n\nvar _dependenciesFormatGenerated = require(\"./dependenciesFormat.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar binDependencies = {\n formatDependencies: _dependenciesFormatGenerated.formatDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBin: _factoriesAny.createBin\n};\nexports.binDependencies = binDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitAndDependencies = void 0;\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bitAndDependencies = {\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBitAnd: _factoriesAny.createBitAnd\n};\nexports.bitAndDependencies = bitAndDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitNotDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bitNotDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBitNot: _factoriesAny.createBitNot\n};\nexports.bitNotDependencies = bitNotDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitOrDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bitOrDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBitOr: _factoriesAny.createBitOr\n};\nexports.bitOrDependencies = bitOrDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bitXorDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bitXorDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBitXor: _factoriesAny.createBitXor\n};\nexports.bitXorDependencies = bitXorDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ResultSetDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ResultSetDependencies = {\n createResultSet: _factoriesAny.createResultSet\n};\nexports.ResultSetDependencies = ResultSetDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.BlockNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _dependenciesResultSetGenerated = require(\"./dependenciesResultSet.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar BlockNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n ResultSetDependencies: _dependenciesResultSetGenerated.ResultSetDependencies,\n createBlockNode: _factoriesAny.createBlockNode\n};\nexports.BlockNodeDependencies = BlockNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bohrMagnetonDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bohrMagnetonDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createBohrMagneton: _factoriesAny.createBohrMagneton\n};\nexports.bohrMagnetonDependencies = bohrMagnetonDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bohrRadiusDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar bohrRadiusDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createBohrRadius: _factoriesAny.createBohrRadius\n};\nexports.bohrRadiusDependencies = bohrRadiusDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.boltzmannDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar boltzmannDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createBoltzmann: _factoriesAny.createBoltzmann\n};\nexports.boltzmannDependencies = boltzmannDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.booleanDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar booleanDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createBoolean: _factoriesAny.createBoolean\n};\nexports.booleanDependencies = booleanDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.catalanDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesCombinationsGenerated = require(\"./dependenciesCombinations.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesIsNegativeGenerated = require(\"./dependenciesIsNegative.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar catalanDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n combinationsDependencies: _dependenciesCombinationsGenerated.combinationsDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCatalan: _factoriesAny.createCatalan\n};\nexports.catalanDependencies = catalanDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cbrtDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesFractionClass.generated.js\");\n\nvar _dependenciesIsNegativeGenerated = require(\"./dependenciesIsNegative.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cbrtDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,\n isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createCbrt: _factoriesAny.createCbrt\n};\nexports.cbrtDependencies = cbrtDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ChainDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ChainDependencies = {\n createChainClass: _factoriesAny.createChainClass\n};\nexports.ChainDependencies = ChainDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.chainDependencies = void 0;\n\nvar _dependenciesChainClassGenerated = require(\"./dependenciesChainClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar chainDependencies = {\n ChainDependencies: _dependenciesChainClassGenerated.ChainDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createChain: _factoriesAny.createChain\n};\nexports.chainDependencies = chainDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.classicalElectronRadiusDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar classicalElectronRadiusDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createClassicalElectronRadius: _factoriesAny.createClassicalElectronRadius\n};\nexports.classicalElectronRadiusDependencies = classicalElectronRadiusDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cloneDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cloneDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createClone: _factoriesAny.createClone\n};\nexports.cloneDependencies = cloneDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.smallerDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar smallerDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSmaller: _factoriesAny.createSmaller\n};\nexports.smallerDependencies = smallerDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ImmutableDenseMatrixDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ImmutableDenseMatrixDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n createImmutableDenseMatrixClass: _factoriesAny.createImmutableDenseMatrixClass\n};\nexports.ImmutableDenseMatrixDependencies = ImmutableDenseMatrixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.IndexDependencies = void 0;\n\nvar _dependenciesImmutableDenseMatrixClassGenerated = require(\"./dependenciesImmutableDenseMatrixClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar IndexDependencies = {\n ImmutableDenseMatrixDependencies: _dependenciesImmutableDenseMatrixClassGenerated.ImmutableDenseMatrixDependencies,\n createIndexClass: _factoriesAny.createIndexClass\n};\nexports.IndexDependencies = IndexDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.largerEqDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar largerEqDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLargerEq: _factoriesAny.createLargerEq\n};\nexports.largerEqDependencies = largerEqDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.smallerEqDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar smallerEqDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSmallerEq: _factoriesAny.createSmallerEq\n};\nexports.smallerEqDependencies = smallerEqDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rangeDependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesLargerEqGenerated = require(\"./dependenciesLargerEq.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesSmallerEqGenerated = require(\"./dependenciesSmallerEq.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rangeDependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n largerEqDependencies: _dependenciesLargerEqGenerated.largerEqDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n smallerEqDependencies: _dependenciesSmallerEqGenerated.smallerEqDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRange: _factoriesAny.createRange\n};\nexports.rangeDependencies = rangeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.columnDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesRangeGenerated = require(\"./dependenciesRange.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar columnDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n rangeDependencies: _dependenciesRangeGenerated.rangeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createColumn: _factoriesAny.createColumn\n};\nexports.columnDependencies = columnDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.columnTransformDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesRangeGenerated = require(\"./dependenciesRange.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar columnTransformDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n rangeDependencies: _dependenciesRangeGenerated.rangeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createColumnTransform: _factoriesAny.createColumnTransform\n};\nexports.columnTransformDependencies = columnTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.combinationsWithRepDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar combinationsWithRepDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCombinationsWithRep: _factoriesAny.createCombinationsWithRep\n};\nexports.combinationsWithRepDependencies = combinationsWithRepDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesFractionClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar compareDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCompare: _factoriesAny.createCompare\n};\nexports.compareDependencies = compareDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareNaturalDependencies = void 0;\n\nvar _dependenciesCompareGenerated = require(\"./dependenciesCompare.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar compareNaturalDependencies = {\n compareDependencies: _dependenciesCompareGenerated.compareDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCompareNatural: _factoriesAny.createCompareNatural\n};\nexports.compareNaturalDependencies = compareNaturalDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compareTextDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar compareTextDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCompareText: _factoriesAny.createCompareText\n};\nexports.compareTextDependencies = compareTextDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ConditionalNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ConditionalNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createConditionalNode: _factoriesAny.createConditionalNode\n};\nexports.ConditionalNodeDependencies = ConditionalNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ConstantNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ConstantNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createConstantNode: _factoriesAny.createConstantNode\n};\nexports.ConstantNodeDependencies = ConstantNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FunctionAssignmentNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar FunctionAssignmentNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFunctionAssignmentNode: _factoriesAny.createFunctionAssignmentNode\n};\nexports.FunctionAssignmentNodeDependencies = FunctionAssignmentNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SymbolNodeDependencies = void 0;\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar SymbolNodeDependencies = {\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createSymbolNode: _factoriesAny.createSymbolNode\n};\nexports.SymbolNodeDependencies = SymbolNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FunctionNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesSymbolNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar FunctionNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,\n createFunctionNode: _factoriesAny.createFunctionNode\n};\nexports.FunctionNodeDependencies = FunctionNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.IndexNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar IndexNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n createIndexNode: _factoriesAny.createIndexNode\n};\nexports.IndexNodeDependencies = IndexNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ObjectNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ObjectNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createObjectNode: _factoriesAny.createObjectNode\n};\nexports.ObjectNodeDependencies = ObjectNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.OperatorNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar OperatorNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createOperatorNode: _factoriesAny.createOperatorNode\n};\nexports.OperatorNodeDependencies = OperatorNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ParenthesisNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ParenthesisNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createParenthesisNode: _factoriesAny.createParenthesisNode\n};\nexports.ParenthesisNodeDependencies = ParenthesisNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.RangeNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar RangeNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createRangeNode: _factoriesAny.createRangeNode\n};\nexports.RangeNodeDependencies = RangeNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.RelationalNodeDependencies = void 0;\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesNode.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar RelationalNodeDependencies = {\n NodeDependencies: _dependenciesNodeGenerated.NodeDependencies,\n createRelationalNode: _factoriesAny.createRelationalNode\n};\nexports.RelationalNodeDependencies = RelationalNodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parseDependencies = void 0;\n\nvar _dependenciesAccessorNodeGenerated = require(\"./dependenciesAccessorNode.generated.js\");\n\nvar _dependenciesArrayNodeGenerated = require(\"./dependenciesArrayNode.generated.js\");\n\nvar _dependenciesAssignmentNodeGenerated = require(\"./dependenciesAssignmentNode.generated.js\");\n\nvar _dependenciesBlockNodeGenerated = require(\"./dependenciesBlockNode.generated.js\");\n\nvar _dependenciesConditionalNodeGenerated = require(\"./dependenciesConditionalNode.generated.js\");\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesConstantNode.generated.js\");\n\nvar _dependenciesFunctionAssignmentNodeGenerated = require(\"./dependenciesFunctionAssignmentNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesIndexNodeGenerated = require(\"./dependenciesIndexNode.generated.js\");\n\nvar _dependenciesObjectNodeGenerated = require(\"./dependenciesObjectNode.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesRangeNodeGenerated = require(\"./dependenciesRangeNode.generated.js\");\n\nvar _dependenciesRelationalNodeGenerated = require(\"./dependenciesRelationalNode.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesSymbolNode.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar parseDependencies = {\n AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,\n ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,\n AssignmentNodeDependencies: _dependenciesAssignmentNodeGenerated.AssignmentNodeDependencies,\n BlockNodeDependencies: _dependenciesBlockNodeGenerated.BlockNodeDependencies,\n ConditionalNodeDependencies: _dependenciesConditionalNodeGenerated.ConditionalNodeDependencies,\n ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,\n FunctionAssignmentNodeDependencies: _dependenciesFunctionAssignmentNodeGenerated.FunctionAssignmentNodeDependencies,\n FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,\n IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,\n ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,\n RangeNodeDependencies: _dependenciesRangeNodeGenerated.RangeNodeDependencies,\n RelationalNodeDependencies: _dependenciesRelationalNodeGenerated.RelationalNodeDependencies,\n SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createParse: _factoriesAny.createParse\n};\nexports.parseDependencies = parseDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compileDependencies = void 0;\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar compileDependencies = {\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCompile: _factoriesAny.createCompile\n};\nexports.compileDependencies = compileDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.complexDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar complexDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createComplex: _factoriesAny.createComplex\n};\nexports.complexDependencies = complexDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isPositiveDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isPositiveDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsPositive: _factoriesAny.createIsPositive\n};\nexports.isPositiveDependencies = isPositiveDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.compositionDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesCombinationsGenerated = require(\"./dependenciesCombinations.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesIsNegativeGenerated = require(\"./dependenciesIsNegative.generated.js\");\n\nvar _dependenciesIsPositiveGenerated = require(\"./dependenciesIsPositive.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar compositionDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n combinationsDependencies: _dependenciesCombinationsGenerated.combinationsDependencies,\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n isNegativeDependencies: _dependenciesIsNegativeGenerated.isNegativeDependencies,\n isPositiveDependencies: _dependenciesIsPositiveGenerated.isPositiveDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createComposition: _factoriesAny.createComposition\n};\nexports.compositionDependencies = compositionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.concatDependencies = void 0;\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar concatDependencies = {\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createConcat: _factoriesAny.createConcat\n};\nexports.concatDependencies = concatDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.concatTransformDependencies = void 0;\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar concatTransformDependencies = {\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createConcatTransform: _factoriesAny.createConcatTransform\n};\nexports.concatTransformDependencies = concatTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.conductanceQuantumDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar conductanceQuantumDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createConductanceQuantum: _factoriesAny.createConductanceQuantum\n};\nexports.conductanceQuantumDependencies = conductanceQuantumDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cosDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cosDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCos: _factoriesAny.createCos\n};\nexports.cosDependencies = cosDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.coshDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar coshDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCosh: _factoriesAny.createCosh\n};\nexports.coshDependencies = coshDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cotDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cotDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCot: _factoriesAny.createCot\n};\nexports.cotDependencies = cotDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cothDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cothDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCoth: _factoriesAny.createCoth\n};\nexports.cothDependencies = cothDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.coulombDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar coulombDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createCoulomb: _factoriesAny.createCoulomb\n};\nexports.coulombDependencies = coulombDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.prodDependencies = void 0;\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar prodDependencies = {\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createProd: _factoriesAny.createProd\n};\nexports.prodDependencies = prodDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.countDependencies = void 0;\n\nvar _dependenciesProdGenerated = require(\"./dependenciesProd.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar countDependencies = {\n prodDependencies: _dependenciesProdGenerated.prodDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCount: _factoriesAny.createCount\n};\nexports.countDependencies = countDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createUnitDependencies = void 0;\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar createUnitDependencies = {\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCreateUnit: _factoriesAny.createCreateUnit\n};\nexports.createUnitDependencies = createUnitDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.crossDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar crossDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCross: _factoriesAny.createCross\n};\nexports.crossDependencies = crossDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cscDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cscDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCsc: _factoriesAny.createCsc\n};\nexports.cscDependencies = cscDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cschDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cschDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCsch: _factoriesAny.createCsch\n};\nexports.cschDependencies = cschDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.transposeDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar transposeDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createTranspose: _factoriesAny.createTranspose\n};\nexports.transposeDependencies = transposeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ctransposeDependencies = void 0;\n\nvar _dependenciesConjGenerated = require(\"./dependenciesConj.generated.js\");\n\nvar _dependenciesTransposeGenerated = require(\"./dependenciesTranspose.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ctransposeDependencies = {\n conjDependencies: _dependenciesConjGenerated.conjDependencies,\n transposeDependencies: _dependenciesTransposeGenerated.transposeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCtranspose: _factoriesAny.createCtranspose\n};\nexports.ctransposeDependencies = ctransposeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cubeDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cubeDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createCube: _factoriesAny.createCube\n};\nexports.cubeDependencies = cubeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unaryPlusDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar unaryPlusDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createUnaryPlus: _factoriesAny.createUnaryPlus\n};\nexports.unaryPlusDependencies = unaryPlusDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cumsumDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryPlusGenerated = require(\"./dependenciesUnaryPlus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cumsumDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryPlusDependencies: _dependenciesUnaryPlusGenerated.unaryPlusDependencies,\n createCumSum: _factoriesAny.createCumSum\n};\nexports.cumsumDependencies = cumsumDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cumsumTransformDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryPlusGenerated = require(\"./dependenciesUnaryPlus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar cumsumTransformDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryPlusDependencies: _dependenciesUnaryPlusGenerated.unaryPlusDependencies,\n createCumSumTransform: _factoriesAny.createCumSumTransform\n};\nexports.cumsumTransformDependencies = cumsumTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.deepEqualDependencies = void 0;\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar deepEqualDependencies = {\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDeepEqual: _factoriesAny.createDeepEqual\n};\nexports.deepEqualDependencies = deepEqualDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.divideDependencies = void 0;\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesInv.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar divideDependencies = {\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n invDependencies: _dependenciesInvGenerated.invDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDivide: _factoriesAny.createDivide\n};\nexports.divideDependencies = divideDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resolveDependencies = void 0;\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesConstantNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar resolveDependencies = {\n ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,\n FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n createResolve: _factoriesAny.createResolve\n};\nexports.resolveDependencies = resolveDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.simplifyCoreDependencies = void 0;\n\nvar _dependenciesAccessorNodeGenerated = require(\"./dependenciesAccessorNode.generated.js\");\n\nvar _dependenciesArrayNodeGenerated = require(\"./dependenciesArrayNode.generated.js\");\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesConstantNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesIndexNodeGenerated = require(\"./dependenciesIndexNode.generated.js\");\n\nvar _dependenciesObjectNodeGenerated = require(\"./dependenciesObjectNode.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesSymbolNode.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar simplifyCoreDependencies = {\n AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,\n ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,\n ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,\n FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,\n IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,\n ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,\n SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n createSimplifyCore: _factoriesAny.createSimplifyCore\n};\nexports.simplifyCoreDependencies = simplifyCoreDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.simplifyDependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesFractionGenerated = require(\"./dependenciesFraction.generated.js\");\n\nvar _dependenciesAccessorNodeGenerated = require(\"./dependenciesAccessorNode.generated.js\");\n\nvar _dependenciesArrayNodeGenerated = require(\"./dependenciesArrayNode.generated.js\");\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesConstantNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesIndexNodeGenerated = require(\"./dependenciesIndexNode.generated.js\");\n\nvar _dependenciesObjectNodeGenerated = require(\"./dependenciesObjectNode.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesSymbolNode.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesResolveGenerated = require(\"./dependenciesResolve.generated.js\");\n\nvar _dependenciesSimplifyCoreGenerated = require(\"./dependenciesSimplifyCore.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar simplifyDependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n fractionDependencies: _dependenciesFractionGenerated.fractionDependencies,\n AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,\n ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,\n ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,\n FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,\n IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,\n ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,\n SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n resolveDependencies: _dependenciesResolveGenerated.resolveDependencies,\n simplifyCoreDependencies: _dependenciesSimplifyCoreGenerated.simplifyCoreDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSimplify: _factoriesAny.createSimplify\n};\nexports.simplifyDependencies = simplifyDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.derivativeDependencies = void 0;\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesConstantNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesSymbolNode.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesSimplifyGenerated = require(\"./dependenciesSimplify.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar derivativeDependencies = {\n ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,\n FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,\n SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n simplifyDependencies: _dependenciesSimplifyGenerated.simplifyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDerivative: _factoriesAny.createDerivative\n};\nexports.derivativeDependencies = derivativeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.deuteronMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar deuteronMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createDeuteronMass: _factoriesAny.createDeuteronMass\n};\nexports.deuteronMassDependencies = deuteronMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diagDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar diagDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDiag: _factoriesAny.createDiag\n};\nexports.diagDependencies = diagDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar diffDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDiff: _factoriesAny.createDiff\n};\nexports.diffDependencies = diffDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffTransformDependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar diffTransformDependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDiffTransform: _factoriesAny.createDiffTransform\n};\nexports.diffTransformDependencies = diffTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sqrtDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sqrtDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSqrt: _factoriesAny.createSqrt\n};\nexports.sqrtDependencies = sqrtDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.distanceDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar distanceDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createDistance: _factoriesAny.createDistance\n};\nexports.distanceDependencies = distanceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotDivideDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar dotDivideDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDotDivide: _factoriesAny.createDotDivide\n};\nexports.dotDivideDependencies = dotDivideDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotMultiplyDependencies = void 0;\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar dotMultiplyDependencies = {\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDotMultiply: _factoriesAny.createDotMultiply\n};\nexports.dotMultiplyDependencies = dotMultiplyDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dotPowDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar dotPowDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createDotPow: _factoriesAny.createDotPow\n};\nexports.dotPowDependencies = dotPowDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.eDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar eDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createE: _factoriesAny.createE\n};\nexports.eDependencies = eDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.efimovFactorDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar efimovFactorDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createEfimovFactor: _factoriesAny.createEfimovFactor\n};\nexports.efimovFactorDependencies = efimovFactorDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.flattenDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar flattenDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFlatten: _factoriesAny.createFlatten\n};\nexports.flattenDependencies = flattenDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.imDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar imDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIm: _factoriesAny.createIm\n};\nexports.imDependencies = imDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixFromColumnsDependencies = void 0;\n\nvar _dependenciesFlattenGenerated = require(\"./dependenciesFlatten.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar matrixFromColumnsDependencies = {\n flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMatrixFromColumns: _factoriesAny.createMatrixFromColumns\n};\nexports.matrixFromColumnsDependencies = matrixFromColumnsDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.signDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesFractionClass.generated.js\");\n\nvar _dependenciesComplexGenerated = require(\"./dependenciesComplex.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar signDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n FractionDependencies: _dependenciesFractionClassGenerated.FractionDependencies,\n complexDependencies: _dependenciesComplexGenerated.complexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSign: _factoriesAny.createSign\n};\nexports.signDependencies = signDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.qrDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesComplexGenerated = require(\"./dependenciesComplex.generated.js\");\n\nvar _dependenciesConjGenerated = require(\"./dependenciesConj.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesIdentityGenerated = require(\"./dependenciesIdentity.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSignGenerated = require(\"./dependenciesSign.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar qrDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n complexDependencies: _dependenciesComplexGenerated.complexDependencies,\n conjDependencies: _dependenciesConjGenerated.conjDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n identityDependencies: _dependenciesIdentityGenerated.identityDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n signDependencies: _dependenciesSignGenerated.signDependencies,\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createQr: _factoriesAny.createQr\n};\nexports.qrDependencies = qrDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.reDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar reDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRe: _factoriesAny.createRe\n};\nexports.reDependencies = reDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sinDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sinDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSin: _factoriesAny.createSin\n};\nexports.sinDependencies = sinDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.usolveDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar usolveDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createUsolve: _factoriesAny.createUsolve\n};\nexports.usolveDependencies = usolveDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.usolveAllDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar usolveAllDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createUsolveAll: _factoriesAny.createUsolveAll\n};\nexports.usolveAllDependencies = usolveAllDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.eigsDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesAtanGenerated = require(\"./dependenciesAtan.generated.js\");\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesColumnGenerated = require(\"./dependenciesColumn.generated.js\");\n\nvar _dependenciesComplexGenerated = require(\"./dependenciesComplex.generated.js\");\n\nvar _dependenciesCosGenerated = require(\"./dependenciesCos.generated.js\");\n\nvar _dependenciesDiagGenerated = require(\"./dependenciesDiag.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesDotGenerated = require(\"./dependenciesDot.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesFlattenGenerated = require(\"./dependenciesFlatten.generated.js\");\n\nvar _dependenciesImGenerated = require(\"./dependenciesIm.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesInv.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMatrixFromColumnsGenerated = require(\"./dependenciesMatrixFromColumns.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesNumber.generated.js\");\n\nvar _dependenciesQrGenerated = require(\"./dependenciesQr.generated.js\");\n\nvar _dependenciesReGenerated = require(\"./dependenciesRe.generated.js\");\n\nvar _dependenciesSinGenerated = require(\"./dependenciesSin.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUsolveGenerated = require(\"./dependenciesUsolve.generated.js\");\n\nvar _dependenciesUsolveAllGenerated = require(\"./dependenciesUsolveAll.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar eigsDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n atanDependencies: _dependenciesAtanGenerated.atanDependencies,\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n columnDependencies: _dependenciesColumnGenerated.columnDependencies,\n complexDependencies: _dependenciesComplexGenerated.complexDependencies,\n cosDependencies: _dependenciesCosGenerated.cosDependencies,\n diagDependencies: _dependenciesDiagGenerated.diagDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n dotDependencies: _dependenciesDotGenerated.dotDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,\n imDependencies: _dependenciesImGenerated.imDependencies,\n invDependencies: _dependenciesInvGenerated.invDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n matrixFromColumnsDependencies: _dependenciesMatrixFromColumnsGenerated.matrixFromColumnsDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n numberDependencies: _dependenciesNumberGenerated.numberDependencies,\n qrDependencies: _dependenciesQrGenerated.qrDependencies,\n reDependencies: _dependenciesReGenerated.reDependencies,\n sinDependencies: _dependenciesSinGenerated.sinDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n usolveDependencies: _dependenciesUsolveGenerated.usolveDependencies,\n usolveAllDependencies: _dependenciesUsolveAllGenerated.usolveAllDependencies,\n createEigs: _factoriesAny.createEigs\n};\nexports.eigsDependencies = eigsDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.electricConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar electricConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createElectricConstant: _factoriesAny.createElectricConstant\n};\nexports.electricConstantDependencies = electricConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.electronMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar electronMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createElectronMass: _factoriesAny.createElectronMass\n};\nexports.electronMassDependencies = electronMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.elementaryChargeDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar elementaryChargeDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createElementaryCharge: _factoriesAny.createElementaryCharge\n};\nexports.elementaryChargeDependencies = elementaryChargeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.equalTextDependencies = void 0;\n\nvar _dependenciesCompareTextGenerated = require(\"./dependenciesCompareText.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar equalTextDependencies = {\n compareTextDependencies: _dependenciesCompareTextGenerated.compareTextDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createEqualText: _factoriesAny.createEqualText\n};\nexports.equalTextDependencies = equalTextDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.erfDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar erfDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createErf: _factoriesAny.createErf\n};\nexports.erfDependencies = erfDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.evaluateDependencies = void 0;\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar evaluateDependencies = {\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createEvaluate: _factoriesAny.createEvaluate\n};\nexports.evaluateDependencies = evaluateDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.expDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar expDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createExp: _factoriesAny.createExp\n};\nexports.expDependencies = expDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.expmDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesIdentityGenerated = require(\"./dependenciesIdentity.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesInv.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar expmDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n identityDependencies: _dependenciesIdentityGenerated.identityDependencies,\n invDependencies: _dependenciesInvGenerated.invDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createExpm: _factoriesAny.createExpm\n};\nexports.expmDependencies = expmDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.expm1Dependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar expm1Dependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createExpm1: _factoriesAny.createExpm1\n};\nexports.expm1Dependencies = expm1Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.falseDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar falseDependencies = {\n createFalse: _factoriesAny.createFalse\n};\nexports.falseDependencies = falseDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.faradayDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar faradayDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createFaraday: _factoriesAny.createFaraday\n};\nexports.faradayDependencies = faradayDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fermiCouplingDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar fermiCouplingDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createFermiCoupling: _factoriesAny.createFermiCoupling\n};\nexports.fermiCouplingDependencies = fermiCouplingDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.iDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar iDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n createI: _factoriesAny.createI\n};\nexports.iDependencies = iDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tauDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar tauDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createTau: _factoriesAny.createTau\n};\nexports.tauDependencies = tauDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fftDependencies = void 0;\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesExpGenerated = require(\"./dependenciesExp.generated.js\");\n\nvar _dependenciesIGenerated = require(\"./dependenciesI.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesTauGenerated = require(\"./dependenciesTau.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar fftDependencies = {\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n expDependencies: _dependenciesExpGenerated.expDependencies,\n iDependencies: _dependenciesIGenerated.iDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n tauDependencies: _dependenciesTauGenerated.tauDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFft: _factoriesAny.createFft\n};\nexports.fftDependencies = fftDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FibonacciHeapDependencies = void 0;\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar FibonacciHeapDependencies = {\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n createFibonacciHeapClass: _factoriesAny.createFibonacciHeapClass\n};\nexports.FibonacciHeapDependencies = FibonacciHeapDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.filterDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar filterDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFilter: _factoriesAny.createFilter\n};\nexports.filterDependencies = filterDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.filterTransformDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar filterTransformDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createFilterTransform: _factoriesAny.createFilterTransform\n};\nexports.filterTransformDependencies = filterTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fineStructureDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar fineStructureDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createFineStructure: _factoriesAny.createFineStructure\n};\nexports.fineStructureDependencies = fineStructureDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.firstRadiationDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar firstRadiationDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createFirstRadiation: _factoriesAny.createFirstRadiation\n};\nexports.firstRadiationDependencies = firstRadiationDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.forEachDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar forEachDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createForEach: _factoriesAny.createForEach\n};\nexports.forEachDependencies = forEachDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.forEachTransformDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar forEachTransformDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createForEachTransform: _factoriesAny.createForEachTransform\n};\nexports.forEachTransformDependencies = forEachTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gasConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar gasConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createGasConstant: _factoriesAny.createGasConstant\n};\nexports.gasConstantDependencies = gasConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gcdDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar gcdDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createGcd: _factoriesAny.createGcd\n};\nexports.gcdDependencies = gcdDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getMatrixDataTypeDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar getMatrixDataTypeDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createGetMatrixDataType: _factoriesAny.createGetMatrixDataType\n};\nexports.getMatrixDataTypeDependencies = getMatrixDataTypeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gravitationConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar gravitationConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createGravitationConstant: _factoriesAny.createGravitationConstant\n};\nexports.gravitationConstantDependencies = gravitationConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.gravityDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar gravityDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createGravity: _factoriesAny.createGravity\n};\nexports.gravityDependencies = gravityDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hartreeEnergyDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar hartreeEnergyDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createHartreeEnergy: _factoriesAny.createHartreeEnergy\n};\nexports.hartreeEnergyDependencies = hartreeEnergyDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hasNumericValueDependencies = void 0;\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar hasNumericValueDependencies = {\n isNumericDependencies: _dependenciesIsNumericGenerated.isNumericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createHasNumericValue: _factoriesAny.createHasNumericValue\n};\nexports.hasNumericValueDependencies = hasNumericValueDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.HelpDependencies = void 0;\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar HelpDependencies = {\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n createHelpClass: _factoriesAny.createHelpClass\n};\nexports.HelpDependencies = HelpDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.helpDependencies = void 0;\n\nvar _dependenciesHelpClassGenerated = require(\"./dependenciesHelpClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar helpDependencies = {\n HelpDependencies: _dependenciesHelpClassGenerated.HelpDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createHelp: _factoriesAny.createHelp\n};\nexports.helpDependencies = helpDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hexDependencies = void 0;\n\nvar _dependenciesFormatGenerated = require(\"./dependenciesFormat.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar hexDependencies = {\n formatDependencies: _dependenciesFormatGenerated.formatDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createHex: _factoriesAny.createHex\n};\nexports.hexDependencies = hexDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hypotDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesIsPositiveGenerated = require(\"./dependenciesIsPositive.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar hypotDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n isPositiveDependencies: _dependenciesIsPositiveGenerated.isPositiveDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createHypot: _factoriesAny.createHypot\n};\nexports.hypotDependencies = hypotDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ifftDependencies = void 0;\n\nvar _dependenciesConjGenerated = require(\"./dependenciesConj.generated.js\");\n\nvar _dependenciesDotDivideGenerated = require(\"./dependenciesDotDivide.generated.js\");\n\nvar _dependenciesFftGenerated = require(\"./dependenciesFft.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ifftDependencies = {\n conjDependencies: _dependenciesConjGenerated.conjDependencies,\n dotDivideDependencies: _dependenciesDotDivideGenerated.dotDivideDependencies,\n fftDependencies: _dependenciesFftGenerated.fftDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIfft: _factoriesAny.createIfft\n};\nexports.ifftDependencies = ifftDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.indexDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar indexDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIndex: _factoriesAny.createIndex\n};\nexports.indexDependencies = indexDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.indexTransformDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar indexTransformDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n createIndexTransform: _factoriesAny.createIndexTransform\n};\nexports.indexTransformDependencies = indexTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.InfinityDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar InfinityDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createInfinity: _factoriesAny.createInfinity\n};\nexports.InfinityDependencies = InfinityDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.intersectDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesFlattenGenerated = require(\"./dependenciesFlatten.generated.js\");\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar intersectDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,\n isNumericDependencies: _dependenciesIsNumericGenerated.isNumericDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIntersect: _factoriesAny.createIntersect\n};\nexports.intersectDependencies = intersectDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.inverseConductanceQuantumDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar inverseConductanceQuantumDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createInverseConductanceQuantum: _factoriesAny.createInverseConductanceQuantum\n};\nexports.inverseConductanceQuantumDependencies = inverseConductanceQuantumDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.modDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar modDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMod: _factoriesAny.createMod\n};\nexports.modDependencies = modDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.xgcdDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar xgcdDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createXgcd: _factoriesAny.createXgcd\n};\nexports.xgcdDependencies = xgcdDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.invmodDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesModGenerated = require(\"./dependenciesMod.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesXgcdGenerated = require(\"./dependenciesXgcd.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar invmodDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n modDependencies: _dependenciesModGenerated.modDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n xgcdDependencies: _dependenciesXgcdGenerated.xgcdDependencies,\n createInvmod: _factoriesAny.createInvmod\n};\nexports.invmodDependencies = invmodDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isNaNDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isNaNDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsNaN: _factoriesAny.createIsNaN\n};\nexports.isNaNDependencies = isNaNDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isPrimeDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar isPrimeDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createIsPrime: _factoriesAny.createIsPrime\n};\nexports.isPrimeDependencies = isPrimeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.logDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar logDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLog: _factoriesAny.createLog\n};\nexports.logDependencies = logDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sumDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sumDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSum: _factoriesAny.createSum\n};\nexports.sumDependencies = sumDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.kldivergenceDependencies = void 0;\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesDotDivideGenerated = require(\"./dependenciesDotDivide.generated.js\");\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesLogGenerated = require(\"./dependenciesLog.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSumGenerated = require(\"./dependenciesSum.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar kldivergenceDependencies = {\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n dotDivideDependencies: _dependenciesDotDivideGenerated.dotDivideDependencies,\n isNumericDependencies: _dependenciesIsNumericGenerated.isNumericDependencies,\n logDependencies: _dependenciesLogGenerated.logDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n sumDependencies: _dependenciesSumGenerated.sumDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createKldivergence: _factoriesAny.createKldivergence\n};\nexports.kldivergenceDependencies = kldivergenceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.klitzingDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar klitzingDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createKlitzing: _factoriesAny.createKlitzing\n};\nexports.klitzingDependencies = klitzingDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.kronDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar kronDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createKron: _factoriesAny.createKron\n};\nexports.kronDependencies = kronDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LN10Dependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar LN10Dependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createLN10: _factoriesAny.createLN10\n};\nexports.LN10Dependencies = LN10Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LN2Dependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar LN2Dependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createLN2: _factoriesAny.createLN2\n};\nexports.LN2Dependencies = LN2Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LOG10EDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar LOG10EDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createLOG10E: _factoriesAny.createLOG10E\n};\nexports.LOG10EDependencies = LOG10EDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.LOG2EDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar LOG2EDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createLOG2E: _factoriesAny.createLOG2E\n};\nexports.LOG2EDependencies = LOG2EDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lcmDependencies = void 0;\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar lcmDependencies = {\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLcm: _factoriesAny.createLcm\n};\nexports.lcmDependencies = lcmDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.leafCountDependencies = void 0;\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar leafCountDependencies = {\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLeafCount: _factoriesAny.createLeafCount\n};\nexports.leafCountDependencies = leafCountDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.leftShiftDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar leftShiftDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createLeftShift: _factoriesAny.createLeftShift\n};\nexports.leftShiftDependencies = leftShiftDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lgammaDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar lgammaDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLgamma: _factoriesAny.createLgamma\n};\nexports.lgammaDependencies = lgammaDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log10Dependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar log10Dependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLog10: _factoriesAny.createLog10\n};\nexports.log10Dependencies = log10Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log1pDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesLogGenerated = require(\"./dependenciesLog.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar log1pDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n logDependencies: _dependenciesLogGenerated.logDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLog1p: _factoriesAny.createLog1p\n};\nexports.log1pDependencies = log1pDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.log2Dependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar log2Dependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLog2: _factoriesAny.createLog2\n};\nexports.log2Dependencies = log2Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.loschmidtDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar loschmidtDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createLoschmidt: _factoriesAny.createLoschmidt\n};\nexports.loschmidtDependencies = loschmidtDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lsolveDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar lsolveDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLsolve: _factoriesAny.createLsolve\n};\nexports.lsolveDependencies = lsolveDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lsolveAllDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar lsolveAllDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createLsolveAll: _factoriesAny.createLsolveAll\n};\nexports.lsolveAllDependencies = lsolveAllDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SpaDependencies = void 0;\n\nvar _dependenciesFibonacciHeapClassGenerated = require(\"./dependenciesFibonacciHeapClass.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar SpaDependencies = {\n FibonacciHeapDependencies: _dependenciesFibonacciHeapClassGenerated.FibonacciHeapDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n createSpaClass: _factoriesAny.createSpaClass\n};\nexports.SpaDependencies = SpaDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lupDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesSpaClassGenerated = require(\"./dependenciesSpaClass.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar lupDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n SpaDependencies: _dependenciesSpaClassGenerated.SpaDependencies,\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createLup: _factoriesAny.createLup\n};\nexports.lupDependencies = lupDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sluDependencies = void 0;\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesLargerEqGenerated = require(\"./dependenciesLargerEq.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTransposeGenerated = require(\"./dependenciesTranspose.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sluDependencies = {\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n largerEqDependencies: _dependenciesLargerEqGenerated.largerEqDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n transposeDependencies: _dependenciesTransposeGenerated.transposeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSlu: _factoriesAny.createSlu\n};\nexports.sluDependencies = sluDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.lusolveDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesLsolveGenerated = require(\"./dependenciesLsolve.generated.js\");\n\nvar _dependenciesLupGenerated = require(\"./dependenciesLup.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesSluGenerated = require(\"./dependenciesSlu.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUsolveGenerated = require(\"./dependenciesUsolve.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar lusolveDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n lsolveDependencies: _dependenciesLsolveGenerated.lsolveDependencies,\n lupDependencies: _dependenciesLupGenerated.lupDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n sluDependencies: _dependenciesSluGenerated.sluDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n usolveDependencies: _dependenciesUsolveGenerated.usolveDependencies,\n createLusolve: _factoriesAny.createLusolve\n};\nexports.lusolveDependencies = lusolveDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mapDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar mapDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMap: _factoriesAny.createMap\n};\nexports.mapDependencies = mapDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.partitionSelectDependencies = void 0;\n\nvar _dependenciesCompareGenerated = require(\"./dependenciesCompare.generated.js\");\n\nvar _dependenciesIsNaNGenerated = require(\"./dependenciesIsNaN.generated.js\");\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar partitionSelectDependencies = {\n compareDependencies: _dependenciesCompareGenerated.compareDependencies,\n isNaNDependencies: _dependenciesIsNaNGenerated.isNaNDependencies,\n isNumericDependencies: _dependenciesIsNumericGenerated.isNumericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createPartitionSelect: _factoriesAny.createPartitionSelect\n};\nexports.partitionSelectDependencies = partitionSelectDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.medianDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesCompareGenerated = require(\"./dependenciesCompare.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesPartitionSelectGenerated = require(\"./dependenciesPartitionSelect.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar medianDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n compareDependencies: _dependenciesCompareGenerated.compareDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n partitionSelectDependencies: _dependenciesPartitionSelectGenerated.partitionSelectDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMedian: _factoriesAny.createMedian\n};\nexports.medianDependencies = medianDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.madDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesMapGenerated = require(\"./dependenciesMap.generated.js\");\n\nvar _dependenciesMedianGenerated = require(\"./dependenciesMedian.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar madDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n mapDependencies: _dependenciesMapGenerated.mapDependencies,\n medianDependencies: _dependenciesMedianGenerated.medianDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMad: _factoriesAny.createMad\n};\nexports.madDependencies = madDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.magneticConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar magneticConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createMagneticConstant: _factoriesAny.createMagneticConstant\n};\nexports.magneticConstantDependencies = magneticConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.magneticFluxQuantumDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar magneticFluxQuantumDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createMagneticFluxQuantum: _factoriesAny.createMagneticFluxQuantum\n};\nexports.magneticFluxQuantumDependencies = magneticFluxQuantumDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mapTransformDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar mapTransformDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMapTransform: _factoriesAny.createMapTransform\n};\nexports.mapTransformDependencies = mapTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixFromFunctionDependencies = void 0;\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar matrixFromFunctionDependencies = {\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMatrixFromFunction: _factoriesAny.createMatrixFromFunction\n};\nexports.matrixFromFunctionDependencies = matrixFromFunctionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.matrixFromRowsDependencies = void 0;\n\nvar _dependenciesFlattenGenerated = require(\"./dependenciesFlatten.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar matrixFromRowsDependencies = {\n flattenDependencies: _dependenciesFlattenGenerated.flattenDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMatrixFromRows: _factoriesAny.createMatrixFromRows\n};\nexports.matrixFromRowsDependencies = matrixFromRowsDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.maxDependencies = void 0;\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar maxDependencies = {\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMax: _factoriesAny.createMax\n};\nexports.maxDependencies = maxDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.maxTransformDependencies = void 0;\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar maxTransformDependencies = {\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMaxTransform: _factoriesAny.createMaxTransform\n};\nexports.maxTransformDependencies = maxTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.meanDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar meanDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMean: _factoriesAny.createMean\n};\nexports.meanDependencies = meanDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.meanTransformDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar meanTransformDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMeanTransform: _factoriesAny.createMeanTransform\n};\nexports.meanTransformDependencies = meanTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.minDependencies = void 0;\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar minDependencies = {\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMin: _factoriesAny.createMin\n};\nexports.minDependencies = minDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.minTransformDependencies = void 0;\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar minTransformDependencies = {\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMinTransform: _factoriesAny.createMinTransform\n};\nexports.minTransformDependencies = minTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.modeDependencies = void 0;\n\nvar _dependenciesIsNaNGenerated = require(\"./dependenciesIsNaN.generated.js\");\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar modeDependencies = {\n isNaNDependencies: _dependenciesIsNaNGenerated.isNaNDependencies,\n isNumericDependencies: _dependenciesIsNumericGenerated.isNumericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMode: _factoriesAny.createMode\n};\nexports.modeDependencies = modeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.molarMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar molarMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createMolarMass: _factoriesAny.createMolarMass\n};\nexports.molarMassDependencies = molarMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.molarMassC12Dependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar molarMassC12Dependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createMolarMassC12: _factoriesAny.createMolarMassC12\n};\nexports.molarMassC12Dependencies = molarMassC12Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.molarPlanckConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar molarPlanckConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createMolarPlanckConstant: _factoriesAny.createMolarPlanckConstant\n};\nexports.molarPlanckConstantDependencies = molarPlanckConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.molarVolumeDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar molarVolumeDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createMolarVolume: _factoriesAny.createMolarVolume\n};\nexports.molarVolumeDependencies = molarVolumeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.multinomialDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesFactorialGenerated = require(\"./dependenciesFactorial.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesIsPositiveGenerated = require(\"./dependenciesIsPositive.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar multinomialDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n factorialDependencies: _dependenciesFactorialGenerated.factorialDependencies,\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n isPositiveDependencies: _dependenciesIsPositiveGenerated.isPositiveDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createMultinomial: _factoriesAny.createMultinomial\n};\nexports.multinomialDependencies = multinomialDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NaNDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar NaNDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createNaN: _factoriesAny.createNaN\n};\nexports.NaNDependencies = NaNDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.neutronMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar neutronMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createNeutronMass: _factoriesAny.createNeutronMass\n};\nexports.neutronMassDependencies = neutronMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.normDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesConjGenerated = require(\"./dependenciesConj.generated.js\");\n\nvar _dependenciesCtransposeGenerated = require(\"./dependenciesCtranspose.generated.js\");\n\nvar _dependenciesEigsGenerated = require(\"./dependenciesEigs.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar normDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n conjDependencies: _dependenciesConjGenerated.conjDependencies,\n ctransposeDependencies: _dependenciesCtransposeGenerated.ctransposeDependencies,\n eigsDependencies: _dependenciesEigsGenerated.eigsDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createNorm: _factoriesAny.createNorm\n};\nexports.normDependencies = normDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nthRootDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar nthRootDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createNthRoot: _factoriesAny.createNthRoot\n};\nexports.nthRootDependencies = nthRootDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nthRootsDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar nthRootsDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createNthRoots: _factoriesAny.createNthRoots\n};\nexports.nthRootsDependencies = nthRootsDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nuclearMagnetonDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar nuclearMagnetonDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createNuclearMagneton: _factoriesAny.createNuclearMagneton\n};\nexports.nuclearMagnetonDependencies = nuclearMagnetonDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.nullDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar nullDependencies = {\n createNull: _factoriesAny.createNull\n};\nexports.nullDependencies = nullDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.octDependencies = void 0;\n\nvar _dependenciesFormatGenerated = require(\"./dependenciesFormat.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar octDependencies = {\n formatDependencies: _dependenciesFormatGenerated.formatDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createOct: _factoriesAny.createOct\n};\nexports.octDependencies = octDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.onesDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar onesDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createOnes: _factoriesAny.createOnes\n};\nexports.onesDependencies = onesDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.orDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar orDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createOr: _factoriesAny.createOr\n};\nexports.orDependencies = orDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ParserDependencies = void 0;\n\nvar _dependenciesEvaluateGenerated = require(\"./dependenciesEvaluate.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar ParserDependencies = {\n evaluateDependencies: _dependenciesEvaluateGenerated.evaluateDependencies,\n createParserClass: _factoriesAny.createParserClass\n};\nexports.ParserDependencies = ParserDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parserDependencies = void 0;\n\nvar _dependenciesParserClassGenerated = require(\"./dependenciesParserClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar parserDependencies = {\n ParserDependencies: _dependenciesParserClassGenerated.ParserDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createParser: _factoriesAny.createParser\n};\nexports.parserDependencies = parserDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.permutationsDependencies = void 0;\n\nvar _dependenciesFactorialGenerated = require(\"./dependenciesFactorial.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar permutationsDependencies = {\n factorialDependencies: _dependenciesFactorialGenerated.factorialDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createPermutations: _factoriesAny.createPermutations\n};\nexports.permutationsDependencies = permutationsDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.phiDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar phiDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createPhi: _factoriesAny.createPhi\n};\nexports.phiDependencies = phiDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.piDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar piDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createPi: _factoriesAny.createPi\n};\nexports.piDependencies = piDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pickRandomDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar pickRandomDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createPickRandom: _factoriesAny.createPickRandom\n};\nexports.pickRandomDependencies = pickRandomDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pinvDependencies = void 0;\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesComplexClass.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesCtransposeGenerated = require(\"./dependenciesCtranspose.generated.js\");\n\nvar _dependenciesDeepEqualGenerated = require(\"./dependenciesDeepEqual.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesDotGenerated = require(\"./dependenciesDot.generated.js\");\n\nvar _dependenciesDotDivideGenerated = require(\"./dependenciesDotDivide.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesInv.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar pinvDependencies = {\n ComplexDependencies: _dependenciesComplexClassGenerated.ComplexDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n ctransposeDependencies: _dependenciesCtransposeGenerated.ctransposeDependencies,\n deepEqualDependencies: _dependenciesDeepEqualGenerated.deepEqualDependencies,\n divideScalarDependencies: _dependenciesDivideScalarGenerated.divideScalarDependencies,\n dotDependencies: _dependenciesDotGenerated.dotDependencies,\n dotDivideDependencies: _dependenciesDotDivideGenerated.dotDivideDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n invDependencies: _dependenciesInvGenerated.invDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createPinv: _factoriesAny.createPinv\n};\nexports.pinvDependencies = pinvDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.planckChargeDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar planckChargeDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createPlanckCharge: _factoriesAny.createPlanckCharge\n};\nexports.planckChargeDependencies = planckChargeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.planckConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar planckConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createPlanckConstant: _factoriesAny.createPlanckConstant\n};\nexports.planckConstantDependencies = planckConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.planckLengthDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar planckLengthDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createPlanckLength: _factoriesAny.createPlanckLength\n};\nexports.planckLengthDependencies = planckLengthDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.planckMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar planckMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createPlanckMass: _factoriesAny.createPlanckMass\n};\nexports.planckMassDependencies = planckMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.planckTemperatureDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar planckTemperatureDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createPlanckTemperature: _factoriesAny.createPlanckTemperature\n};\nexports.planckTemperatureDependencies = planckTemperatureDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.planckTimeDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar planckTimeDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createPlanckTime: _factoriesAny.createPlanckTime\n};\nexports.planckTimeDependencies = planckTimeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.printDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar printDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createPrint: _factoriesAny.createPrint\n};\nexports.printDependencies = printDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.protonMassDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar protonMassDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createProtonMass: _factoriesAny.createProtonMass\n};\nexports.protonMassDependencies = protonMassDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.quantileSeqDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesCompareGenerated = require(\"./dependenciesCompare.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesPartitionSelectGenerated = require(\"./dependenciesPartitionSelect.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar quantileSeqDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n compareDependencies: _dependenciesCompareGenerated.compareDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n partitionSelectDependencies: _dependenciesPartitionSelectGenerated.partitionSelectDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createQuantileSeq: _factoriesAny.createQuantileSeq\n};\nexports.quantileSeqDependencies = quantileSeqDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.quantumOfCirculationDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar quantumOfCirculationDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createQuantumOfCirculation: _factoriesAny.createQuantumOfCirculation\n};\nexports.quantumOfCirculationDependencies = quantumOfCirculationDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.randomDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar randomDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRandom: _factoriesAny.createRandom\n};\nexports.randomDependencies = randomDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.randomIntDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar randomIntDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRandomInt: _factoriesAny.createRandomInt\n};\nexports.randomIntDependencies = randomIntDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.RangeDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar RangeDependencies = {\n createRangeClass: _factoriesAny.createRangeClass\n};\nexports.RangeDependencies = RangeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rangeTransformDependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesLarger.generated.js\");\n\nvar _dependenciesLargerEqGenerated = require(\"./dependenciesLargerEq.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesSmaller.generated.js\");\n\nvar _dependenciesSmallerEqGenerated = require(\"./dependenciesSmallerEq.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rangeTransformDependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n largerDependencies: _dependenciesLargerGenerated.largerDependencies,\n largerEqDependencies: _dependenciesLargerEqGenerated.largerEqDependencies,\n smallerDependencies: _dependenciesSmallerGenerated.smallerDependencies,\n smallerEqDependencies: _dependenciesSmallerEqGenerated.smallerEqDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRangeTransform: _factoriesAny.createRangeTransform\n};\nexports.rangeTransformDependencies = rangeTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rationalizeDependencies = void 0;\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesBignumber.generated.js\");\n\nvar _dependenciesFractionGenerated = require(\"./dependenciesFraction.generated.js\");\n\nvar _dependenciesAccessorNodeGenerated = require(\"./dependenciesAccessorNode.generated.js\");\n\nvar _dependenciesArrayNodeGenerated = require(\"./dependenciesArrayNode.generated.js\");\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesConstantNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesIndexNodeGenerated = require(\"./dependenciesIndexNode.generated.js\");\n\nvar _dependenciesObjectNodeGenerated = require(\"./dependenciesObjectNode.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesSymbolNode.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesEqual.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesIsZero.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesPow.generated.js\");\n\nvar _dependenciesSimplifyGenerated = require(\"./dependenciesSimplify.generated.js\");\n\nvar _dependenciesSimplifyCoreGenerated = require(\"./dependenciesSimplifyCore.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rationalizeDependencies = {\n bignumberDependencies: _dependenciesBignumberGenerated.bignumberDependencies,\n fractionDependencies: _dependenciesFractionGenerated.fractionDependencies,\n AccessorNodeDependencies: _dependenciesAccessorNodeGenerated.AccessorNodeDependencies,\n ArrayNodeDependencies: _dependenciesArrayNodeGenerated.ArrayNodeDependencies,\n ConstantNodeDependencies: _dependenciesConstantNodeGenerated.ConstantNodeDependencies,\n FunctionNodeDependencies: _dependenciesFunctionNodeGenerated.FunctionNodeDependencies,\n IndexNodeDependencies: _dependenciesIndexNodeGenerated.IndexNodeDependencies,\n ObjectNodeDependencies: _dependenciesObjectNodeGenerated.ObjectNodeDependencies,\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n ParenthesisNodeDependencies: _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies,\n SymbolNodeDependencies: _dependenciesSymbolNodeGenerated.SymbolNodeDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n equalDependencies: _dependenciesEqualGenerated.equalDependencies,\n isZeroDependencies: _dependenciesIsZeroGenerated.isZeroDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n powDependencies: _dependenciesPowGenerated.powDependencies,\n simplifyDependencies: _dependenciesSimplifyGenerated.simplifyDependencies,\n simplifyCoreDependencies: _dependenciesSimplifyCoreGenerated.simplifyCoreDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRationalize: _factoriesAny.createRationalize\n};\nexports.rationalizeDependencies = rationalizeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.reducedPlanckConstantDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar reducedPlanckConstantDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createReducedPlanckConstant: _factoriesAny.createReducedPlanckConstant\n};\nexports.reducedPlanckConstantDependencies = reducedPlanckConstantDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.replacerDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar replacerDependencies = {\n createReplacer: _factoriesAny.createReplacer\n};\nexports.replacerDependencies = replacerDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.reshapeDependencies = void 0;\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesIsInteger.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar reshapeDependencies = {\n isIntegerDependencies: _dependenciesIsIntegerGenerated.isIntegerDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createReshape: _factoriesAny.createReshape\n};\nexports.reshapeDependencies = reshapeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.resizeDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar resizeDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n createResize: _factoriesAny.createResize\n};\nexports.resizeDependencies = resizeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.reviverDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar reviverDependencies = {\n createReviver: _factoriesAny.createReviver\n};\nexports.reviverDependencies = reviverDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rightArithShiftDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rightArithShiftDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createRightArithShift: _factoriesAny.createRightArithShift\n};\nexports.rightArithShiftDependencies = rightArithShiftDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rightLogShiftDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesZeros.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rightLogShiftDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n zerosDependencies: _dependenciesZerosGenerated.zerosDependencies,\n createRightLogShift: _factoriesAny.createRightLogShift\n};\nexports.rightLogShiftDependencies = rightLogShiftDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rotationMatrixDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAddScalar.generated.js\");\n\nvar _dependenciesCosGenerated = require(\"./dependenciesCos.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesNormGenerated = require(\"./dependenciesNorm.generated.js\");\n\nvar _dependenciesSinGenerated = require(\"./dependenciesSin.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesUnaryMinus.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rotationMatrixDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n addScalarDependencies: _dependenciesAddScalarGenerated.addScalarDependencies,\n cosDependencies: _dependenciesCosGenerated.cosDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n multiplyScalarDependencies: _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies,\n normDependencies: _dependenciesNormGenerated.normDependencies,\n sinDependencies: _dependenciesSinGenerated.sinDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n unaryMinusDependencies: _dependenciesUnaryMinusGenerated.unaryMinusDependencies,\n createRotationMatrix: _factoriesAny.createRotationMatrix\n};\nexports.rotationMatrixDependencies = rotationMatrixDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rotateDependencies = void 0;\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesRotationMatrixGenerated = require(\"./dependenciesRotationMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rotateDependencies = {\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n rotationMatrixDependencies: _dependenciesRotationMatrixGenerated.rotationMatrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRotate: _factoriesAny.createRotate\n};\nexports.rotateDependencies = rotateDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rowDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesRangeGenerated = require(\"./dependenciesRange.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rowDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n rangeDependencies: _dependenciesRangeGenerated.rangeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRow: _factoriesAny.createRow\n};\nexports.rowDependencies = rowDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rowTransformDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesRangeGenerated = require(\"./dependenciesRange.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rowTransformDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n rangeDependencies: _dependenciesRangeGenerated.rangeDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createRowTransform: _factoriesAny.createRowTransform\n};\nexports.rowTransformDependencies = rowTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.rydbergDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar rydbergDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createRydberg: _factoriesAny.createRydberg\n};\nexports.rydbergDependencies = rydbergDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SQRT1_2Dependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\n// eslint-disable-line camelcase\nvar SQRT1_2Dependencies = {\n // eslint-disable-line camelcase\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createSQRT1_2: _factoriesAny.createSQRT1_2\n};\nexports.SQRT1_2Dependencies = SQRT1_2Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SQRT2Dependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar SQRT2Dependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createSQRT2: _factoriesAny.createSQRT2\n};\nexports.SQRT2Dependencies = SQRT2Dependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sackurTetrodeDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sackurTetrodeDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createSackurTetrode: _factoriesAny.createSackurTetrode\n};\nexports.sackurTetrodeDependencies = sackurTetrodeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.secDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar secDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSec: _factoriesAny.createSec\n};\nexports.secDependencies = secDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sechDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sechDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSech: _factoriesAny.createSech\n};\nexports.sechDependencies = sechDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.secondRadiationDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar secondRadiationDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createSecondRadiation: _factoriesAny.createSecondRadiation\n};\nexports.secondRadiationDependencies = secondRadiationDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setCartesianDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setCartesianDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetCartesian: _factoriesAny.createSetCartesian\n};\nexports.setCartesianDependencies = setCartesianDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setDifferenceDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setDifferenceDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetDifference: _factoriesAny.createSetDifference\n};\nexports.setDifferenceDependencies = setDifferenceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setDistinctDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setDistinctDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetDistinct: _factoriesAny.createSetDistinct\n};\nexports.setDistinctDependencies = setDistinctDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setIntersectDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setIntersectDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetIntersect: _factoriesAny.createSetIntersect\n};\nexports.setIntersectDependencies = setIntersectDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setIsSubsetDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setIsSubsetDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetIsSubset: _factoriesAny.createSetIsSubset\n};\nexports.setIsSubsetDependencies = setIsSubsetDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setMultiplicityDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setMultiplicityDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetMultiplicity: _factoriesAny.createSetMultiplicity\n};\nexports.setMultiplicityDependencies = setMultiplicityDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setPowersetDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setPowersetDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetPowerset: _factoriesAny.createSetPowerset\n};\nexports.setPowersetDependencies = setPowersetDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setSizeDependencies = void 0;\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setSizeDependencies = {\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetSize: _factoriesAny.createSetSize\n};\nexports.setSizeDependencies = setSizeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setSymDifferenceDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesConcatGenerated = require(\"./dependenciesConcat.generated.js\");\n\nvar _dependenciesSetDifferenceGenerated = require(\"./dependenciesSetDifference.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setSymDifferenceDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n concatDependencies: _dependenciesConcatGenerated.concatDependencies,\n setDifferenceDependencies: _dependenciesSetDifferenceGenerated.setDifferenceDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetSymDifference: _factoriesAny.createSetSymDifference\n};\nexports.setSymDifferenceDependencies = setSymDifferenceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setUnionDependencies = void 0;\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesIndexClass.generated.js\");\n\nvar _dependenciesConcatGenerated = require(\"./dependenciesConcat.generated.js\");\n\nvar _dependenciesSetIntersectGenerated = require(\"./dependenciesSetIntersect.generated.js\");\n\nvar _dependenciesSetSymDifferenceGenerated = require(\"./dependenciesSetSymDifference.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesSubset.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar setUnionDependencies = {\n IndexDependencies: _dependenciesIndexClassGenerated.IndexDependencies,\n concatDependencies: _dependenciesConcatGenerated.concatDependencies,\n setIntersectDependencies: _dependenciesSetIntersectGenerated.setIntersectDependencies,\n setSymDifferenceDependencies: _dependenciesSetSymDifferenceGenerated.setSymDifferenceDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n subsetDependencies: _dependenciesSubsetGenerated.subsetDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSetUnion: _factoriesAny.createSetUnion\n};\nexports.setUnionDependencies = setUnionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sinhDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sinhDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSinh: _factoriesAny.createSinh\n};\nexports.sinhDependencies = sinhDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sortDependencies = void 0;\n\nvar _dependenciesCompareGenerated = require(\"./dependenciesCompare.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sortDependencies = {\n compareDependencies: _dependenciesCompareGenerated.compareDependencies,\n compareNaturalDependencies: _dependenciesCompareNaturalGenerated.compareNaturalDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSort: _factoriesAny.createSort\n};\nexports.sortDependencies = sortDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sparseDependencies = void 0;\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sparseDependencies = {\n SparseMatrixDependencies: _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSparse: _factoriesAny.createSparse\n};\nexports.sparseDependencies = sparseDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.speedOfLightDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar speedOfLightDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createSpeedOfLight: _factoriesAny.createSpeedOfLight\n};\nexports.speedOfLightDependencies = speedOfLightDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.splitUnitDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar splitUnitDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSplitUnit: _factoriesAny.createSplitUnit\n};\nexports.splitUnitDependencies = splitUnitDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sqrtmDependencies = void 0;\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAbs.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesIdentityGenerated = require(\"./dependenciesIdentity.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesInv.generated.js\");\n\nvar _dependenciesMaxGenerated = require(\"./dependenciesMax.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesSize.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sqrtmDependencies = {\n absDependencies: _dependenciesAbsGenerated.absDependencies,\n addDependencies: _dependenciesAddGenerated.addDependencies,\n identityDependencies: _dependenciesIdentityGenerated.identityDependencies,\n invDependencies: _dependenciesInvGenerated.invDependencies,\n maxDependencies: _dependenciesMaxGenerated.maxDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n sizeDependencies: _dependenciesSizeGenerated.sizeDependencies,\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSqrtm: _factoriesAny.createSqrtm\n};\nexports.sqrtmDependencies = sqrtmDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.squareDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar squareDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSquare: _factoriesAny.createSquare\n};\nexports.squareDependencies = squareDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.squeezeDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar squeezeDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSqueeze: _factoriesAny.createSqueeze\n};\nexports.squeezeDependencies = squeezeDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.varianceDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesApplyGenerated = require(\"./dependenciesApply.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesIsNaNGenerated = require(\"./dependenciesIsNaN.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar varianceDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n applyDependencies: _dependenciesApplyGenerated.applyDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n isNaNDependencies: _dependenciesIsNaNGenerated.isNaNDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createVariance: _factoriesAny.createVariance\n};\nexports.varianceDependencies = varianceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stdDependencies = void 0;\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesVarianceGenerated = require(\"./dependenciesVariance.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar stdDependencies = {\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n varianceDependencies: _dependenciesVarianceGenerated.varianceDependencies,\n createStd: _factoriesAny.createStd\n};\nexports.stdDependencies = stdDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stdTransformDependencies = void 0;\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesSqrt.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _dependenciesVarianceGenerated = require(\"./dependenciesVariance.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar stdTransformDependencies = {\n sqrtDependencies: _dependenciesSqrtGenerated.sqrtDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n varianceDependencies: _dependenciesVarianceGenerated.varianceDependencies,\n createStdTransform: _factoriesAny.createStdTransform\n};\nexports.stdTransformDependencies = stdTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stefanBoltzmannDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar stefanBoltzmannDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createStefanBoltzmann: _factoriesAny.createStefanBoltzmann\n};\nexports.stefanBoltzmannDependencies = stefanBoltzmannDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.stringDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar stringDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createString: _factoriesAny.createString\n};\nexports.stringDependencies = stringDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.subsetTransformDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar subsetTransformDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSubsetTransform: _factoriesAny.createSubsetTransform\n};\nexports.subsetTransformDependencies = subsetTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sumTransformDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesNumeric.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar sumTransformDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n numericDependencies: _dependenciesNumericGenerated.numericDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSumTransform: _factoriesAny.createSumTransform\n};\nexports.sumTransformDependencies = sumTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.symbolicEqualDependencies = void 0;\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesParseGenerated = require(\"./dependenciesParse.generated.js\");\n\nvar _dependenciesSimplifyGenerated = require(\"./dependenciesSimplify.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar symbolicEqualDependencies = {\n OperatorNodeDependencies: _dependenciesOperatorNodeGenerated.OperatorNodeDependencies,\n parseDependencies: _dependenciesParseGenerated.parseDependencies,\n simplifyDependencies: _dependenciesSimplifyGenerated.simplifyDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createSymbolicEqual: _factoriesAny.createSymbolicEqual\n};\nexports.symbolicEqualDependencies = symbolicEqualDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tanDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar tanDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createTan: _factoriesAny.createTan\n};\nexports.tanDependencies = tanDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.tanhDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar tanhDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createTanh: _factoriesAny.createTanh\n};\nexports.tanhDependencies = tanhDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.thomsonCrossSectionDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar thomsonCrossSectionDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createThomsonCrossSection: _factoriesAny.createThomsonCrossSection\n};\nexports.thomsonCrossSectionDependencies = thomsonCrossSectionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.toDependencies = void 0;\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar toDependencies = {\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createTo: _factoriesAny.createTo\n};\nexports.toDependencies = toDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.traceDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar traceDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createTrace: _factoriesAny.createTrace\n};\nexports.traceDependencies = traceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.trueDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar trueDependencies = {\n createTrue: _factoriesAny.createTrue\n};\nexports.trueDependencies = trueDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.typeOfDependencies = void 0;\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar typeOfDependencies = {\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createTypeOf: _factoriesAny.createTypeOf\n};\nexports.typeOfDependencies = typeOfDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unequalDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar unequalDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n equalScalarDependencies: _dependenciesEqualScalarGenerated.equalScalarDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createUnequal: _factoriesAny.createUnequal\n};\nexports.unequalDependencies = unequalDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.unitDependencies = void 0;\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar unitDependencies = {\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createUnitFunction: _factoriesAny.createUnitFunction\n};\nexports.unitDependencies = unitDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.EDependencies = void 0;\n\nvar _dependenciesEGenerated = require(\"./dependenciesE.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar EDependencies = {\n eDependencies: _dependenciesEGenerated.eDependencies,\n createUppercaseE: _factoriesAny.createUppercaseE\n};\nexports.EDependencies = EDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.PIDependencies = void 0;\n\nvar _dependenciesPiGenerated = require(\"./dependenciesPi.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar PIDependencies = {\n piDependencies: _dependenciesPiGenerated.piDependencies,\n createUppercasePi: _factoriesAny.createUppercasePi\n};\nexports.PIDependencies = PIDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.vacuumImpedanceDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar vacuumImpedanceDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createVacuumImpedance: _factoriesAny.createVacuumImpedance\n};\nexports.vacuumImpedanceDependencies = vacuumImpedanceDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.varianceTransformDependencies = void 0;\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAdd.generated.js\");\n\nvar _dependenciesApplyGenerated = require(\"./dependenciesApply.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesDivide.generated.js\");\n\nvar _dependenciesIsNaNGenerated = require(\"./dependenciesIsNaN.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesMultiply.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesSubtract.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar varianceTransformDependencies = {\n addDependencies: _dependenciesAddGenerated.addDependencies,\n applyDependencies: _dependenciesApplyGenerated.applyDependencies,\n divideDependencies: _dependenciesDivideGenerated.divideDependencies,\n isNaNDependencies: _dependenciesIsNaNGenerated.isNaNDependencies,\n multiplyDependencies: _dependenciesMultiplyGenerated.multiplyDependencies,\n subtractDependencies: _dependenciesSubtractGenerated.subtractDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createVarianceTransform: _factoriesAny.createVarianceTransform\n};\nexports.varianceTransformDependencies = varianceTransformDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.versionDependencies = void 0;\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar versionDependencies = {\n createVersion: _factoriesAny.createVersion\n};\nexports.versionDependencies = versionDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.weakMixingAngleDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar weakMixingAngleDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n createWeakMixingAngle: _factoriesAny.createWeakMixingAngle\n};\nexports.weakMixingAngleDependencies = weakMixingAngleDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.wienDisplacementDependencies = void 0;\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesUnitClass.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar wienDisplacementDependencies = {\n BigNumberDependencies: _dependenciesBigNumberClassGenerated.BigNumberDependencies,\n UnitDependencies: _dependenciesUnitClassGenerated.UnitDependencies,\n createWienDisplacement: _factoriesAny.createWienDisplacement\n};\nexports.wienDisplacementDependencies = wienDisplacementDependencies;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.xorDependencies = void 0;\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesMatrix.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesTyped.generated.js\");\n\nvar _factoriesAny = require(\"../../factoriesAny.js\");\n\n/**\n * THIS FILE IS AUTO-GENERATED\n * DON'T MAKE CHANGES HERE\n */\nvar xorDependencies = {\n DenseMatrixDependencies: _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies,\n matrixDependencies: _dependenciesMatrixGenerated.matrixDependencies,\n typedDependencies: _dependenciesTypedGenerated.typedDependencies,\n createXor: _factoriesAny.createXor\n};\nexports.xorDependencies = xorDependencies;","\"use strict\";\n\nvar _typeof = require(\"@babel/runtime/helpers/typeof\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.all = void 0;\n\nvar allFactories = _interopRequireWildcard(require(\"../factoriesAny.js\"));\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\n// creating all factories here in a separate file is needed to get tree-shaking working\nvar all = allFactories;\nexports.all = all;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"AccessorNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAccessorNodeGenerated.AccessorNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"ArrayNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesArrayNodeGenerated.ArrayNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"AssignmentNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAssignmentNodeGenerated.AssignmentNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"BigNumberDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBigNumberClassGenerated.BigNumberDependencies;\n }\n});\nObject.defineProperty(exports, \"BlockNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBlockNodeGenerated.BlockNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"ChainDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesChainClassGenerated.ChainDependencies;\n }\n});\nObject.defineProperty(exports, \"ComplexDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesComplexClassGenerated.ComplexDependencies;\n }\n});\nObject.defineProperty(exports, \"ConditionalNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesConditionalNodeGenerated.ConditionalNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"ConstantNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesConstantNodeGenerated.ConstantNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"DenseMatrixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDenseMatrixClassGenerated.DenseMatrixDependencies;\n }\n});\nObject.defineProperty(exports, \"EDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUppercaseEGenerated.EDependencies;\n }\n});\nObject.defineProperty(exports, \"FibonacciHeapDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFibonacciHeapClassGenerated.FibonacciHeapDependencies;\n }\n});\nObject.defineProperty(exports, \"FractionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFractionClassGenerated.FractionDependencies;\n }\n});\nObject.defineProperty(exports, \"FunctionAssignmentNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFunctionAssignmentNodeGenerated.FunctionAssignmentNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"FunctionNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFunctionNodeGenerated.FunctionNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"HelpDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesHelpClassGenerated.HelpDependencies;\n }\n});\nObject.defineProperty(exports, \"ImmutableDenseMatrixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesImmutableDenseMatrixClassGenerated.ImmutableDenseMatrixDependencies;\n }\n});\nObject.defineProperty(exports, \"IndexDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIndexClassGenerated.IndexDependencies;\n }\n});\nObject.defineProperty(exports, \"IndexNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIndexNodeGenerated.IndexNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"InfinityDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesInfinityGenerated.InfinityDependencies;\n }\n});\nObject.defineProperty(exports, \"LN10Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLN10Generated.LN10Dependencies;\n }\n});\nObject.defineProperty(exports, \"LN2Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLN2Generated.LN2Dependencies;\n }\n});\nObject.defineProperty(exports, \"LOG10EDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLOG10EGenerated.LOG10EDependencies;\n }\n});\nObject.defineProperty(exports, \"LOG2EDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLOG2EGenerated.LOG2EDependencies;\n }\n});\nObject.defineProperty(exports, \"MatrixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMatrixClassGenerated.MatrixDependencies;\n }\n});\nObject.defineProperty(exports, \"NaNDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNaNGenerated.NaNDependencies;\n }\n});\nObject.defineProperty(exports, \"NodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNodeGenerated.NodeDependencies;\n }\n});\nObject.defineProperty(exports, \"ObjectNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesObjectNodeGenerated.ObjectNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"OperatorNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesOperatorNodeGenerated.OperatorNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"PIDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUppercasePiGenerated.PIDependencies;\n }\n});\nObject.defineProperty(exports, \"ParenthesisNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesParenthesisNodeGenerated.ParenthesisNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"ParserDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesParserClassGenerated.ParserDependencies;\n }\n});\nObject.defineProperty(exports, \"RangeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRangeClassGenerated.RangeDependencies;\n }\n});\nObject.defineProperty(exports, \"RangeNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRangeNodeGenerated.RangeNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"RelationalNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRelationalNodeGenerated.RelationalNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"ResultSetDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesResultSetGenerated.ResultSetDependencies;\n }\n});\nObject.defineProperty(exports, \"SQRT1_2Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSQRT1_2Generated.SQRT1_2Dependencies;\n }\n});\nObject.defineProperty(exports, \"SQRT2Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSQRT2Generated.SQRT2Dependencies;\n }\n});\nObject.defineProperty(exports, \"SpaDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSpaClassGenerated.SpaDependencies;\n }\n});\nObject.defineProperty(exports, \"SparseMatrixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSparseMatrixClassGenerated.SparseMatrixDependencies;\n }\n});\nObject.defineProperty(exports, \"SymbolNodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSymbolNodeGenerated.SymbolNodeDependencies;\n }\n});\nObject.defineProperty(exports, \"UnitDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUnitClassGenerated.UnitDependencies;\n }\n});\nObject.defineProperty(exports, \"absDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAbsGenerated.absDependencies;\n }\n});\nObject.defineProperty(exports, \"acosDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAcosGenerated.acosDependencies;\n }\n});\nObject.defineProperty(exports, \"acoshDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAcoshGenerated.acoshDependencies;\n }\n});\nObject.defineProperty(exports, \"acotDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAcotGenerated.acotDependencies;\n }\n});\nObject.defineProperty(exports, \"acothDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAcothGenerated.acothDependencies;\n }\n});\nObject.defineProperty(exports, \"acscDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAcscGenerated.acscDependencies;\n }\n});\nObject.defineProperty(exports, \"acschDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAcschGenerated.acschDependencies;\n }\n});\nObject.defineProperty(exports, \"addDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAddGenerated.addDependencies;\n }\n});\nObject.defineProperty(exports, \"addScalarDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAddScalarGenerated.addScalarDependencies;\n }\n});\nObject.defineProperty(exports, \"all\", {\n enumerable: true,\n get: function get() {\n return _allFactoriesAny.all;\n }\n});\nObject.defineProperty(exports, \"andDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAndGenerated.andDependencies;\n }\n});\nObject.defineProperty(exports, \"applyDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesApplyGenerated.applyDependencies;\n }\n});\nObject.defineProperty(exports, \"applyTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesApplyTransformGenerated.applyTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"argDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesArgGenerated.argDependencies;\n }\n});\nObject.defineProperty(exports, \"asecDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAsecGenerated.asecDependencies;\n }\n});\nObject.defineProperty(exports, \"asechDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAsechGenerated.asechDependencies;\n }\n});\nObject.defineProperty(exports, \"asinDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAsinGenerated.asinDependencies;\n }\n});\nObject.defineProperty(exports, \"asinhDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAsinhGenerated.asinhDependencies;\n }\n});\nObject.defineProperty(exports, \"atan2Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAtan2Generated.atan2Dependencies;\n }\n});\nObject.defineProperty(exports, \"atanDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAtanGenerated.atanDependencies;\n }\n});\nObject.defineProperty(exports, \"atanhDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAtanhGenerated.atanhDependencies;\n }\n});\nObject.defineProperty(exports, \"atomicMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAtomicMassGenerated.atomicMassDependencies;\n }\n});\nObject.defineProperty(exports, \"avogadroDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesAvogadroGenerated.avogadroDependencies;\n }\n});\nObject.defineProperty(exports, \"bellNumbersDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBellNumbersGenerated.bellNumbersDependencies;\n }\n});\nObject.defineProperty(exports, \"bignumberDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBignumberGenerated.bignumberDependencies;\n }\n});\nObject.defineProperty(exports, \"binDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBinGenerated.binDependencies;\n }\n});\nObject.defineProperty(exports, \"bitAndDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBitAndGenerated.bitAndDependencies;\n }\n});\nObject.defineProperty(exports, \"bitNotDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBitNotGenerated.bitNotDependencies;\n }\n});\nObject.defineProperty(exports, \"bitOrDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBitOrGenerated.bitOrDependencies;\n }\n});\nObject.defineProperty(exports, \"bitXorDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBitXorGenerated.bitXorDependencies;\n }\n});\nObject.defineProperty(exports, \"bohrMagnetonDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBohrMagnetonGenerated.bohrMagnetonDependencies;\n }\n});\nObject.defineProperty(exports, \"bohrRadiusDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBohrRadiusGenerated.bohrRadiusDependencies;\n }\n});\nObject.defineProperty(exports, \"boltzmannDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBoltzmannGenerated.boltzmannDependencies;\n }\n});\nObject.defineProperty(exports, \"booleanDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesBooleanGenerated.booleanDependencies;\n }\n});\nObject.defineProperty(exports, \"catalanDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCatalanGenerated.catalanDependencies;\n }\n});\nObject.defineProperty(exports, \"cbrtDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCbrtGenerated.cbrtDependencies;\n }\n});\nObject.defineProperty(exports, \"ceilDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCeilGenerated.ceilDependencies;\n }\n});\nObject.defineProperty(exports, \"chainDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesChainGenerated.chainDependencies;\n }\n});\nObject.defineProperty(exports, \"classicalElectronRadiusDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesClassicalElectronRadiusGenerated.classicalElectronRadiusDependencies;\n }\n});\nObject.defineProperty(exports, \"cloneDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCloneGenerated.cloneDependencies;\n }\n});\nObject.defineProperty(exports, \"columnDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesColumnGenerated.columnDependencies;\n }\n});\nObject.defineProperty(exports, \"columnTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesColumnTransformGenerated.columnTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"combinationsDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCombinationsGenerated.combinationsDependencies;\n }\n});\nObject.defineProperty(exports, \"combinationsWithRepDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCombinationsWithRepGenerated.combinationsWithRepDependencies;\n }\n});\nObject.defineProperty(exports, \"compareDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCompareGenerated.compareDependencies;\n }\n});\nObject.defineProperty(exports, \"compareNaturalDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCompareNaturalGenerated.compareNaturalDependencies;\n }\n});\nObject.defineProperty(exports, \"compareTextDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCompareTextGenerated.compareTextDependencies;\n }\n});\nObject.defineProperty(exports, \"compileDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCompileGenerated.compileDependencies;\n }\n});\nObject.defineProperty(exports, \"complexDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesComplexGenerated.complexDependencies;\n }\n});\nObject.defineProperty(exports, \"compositionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCompositionGenerated.compositionDependencies;\n }\n});\nObject.defineProperty(exports, \"concatDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesConcatGenerated.concatDependencies;\n }\n});\nObject.defineProperty(exports, \"concatTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesConcatTransformGenerated.concatTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"conductanceQuantumDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesConductanceQuantumGenerated.conductanceQuantumDependencies;\n }\n});\nObject.defineProperty(exports, \"conjDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesConjGenerated.conjDependencies;\n }\n});\nObject.defineProperty(exports, \"cosDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCosGenerated.cosDependencies;\n }\n});\nObject.defineProperty(exports, \"coshDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCoshGenerated.coshDependencies;\n }\n});\nObject.defineProperty(exports, \"cotDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCotGenerated.cotDependencies;\n }\n});\nObject.defineProperty(exports, \"cothDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCothGenerated.cothDependencies;\n }\n});\nObject.defineProperty(exports, \"coulombDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCoulombGenerated.coulombDependencies;\n }\n});\nObject.defineProperty(exports, \"countDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCountGenerated.countDependencies;\n }\n});\nObject.defineProperty(exports, \"createUnitDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCreateUnitGenerated.createUnitDependencies;\n }\n});\nObject.defineProperty(exports, \"crossDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCrossGenerated.crossDependencies;\n }\n});\nObject.defineProperty(exports, \"cscDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCscGenerated.cscDependencies;\n }\n});\nObject.defineProperty(exports, \"cschDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCschGenerated.cschDependencies;\n }\n});\nObject.defineProperty(exports, \"ctransposeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCtransposeGenerated.ctransposeDependencies;\n }\n});\nObject.defineProperty(exports, \"cubeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCubeGenerated.cubeDependencies;\n }\n});\nObject.defineProperty(exports, \"cumsumDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCumSumGenerated.cumsumDependencies;\n }\n});\nObject.defineProperty(exports, \"cumsumTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesCumSumTransformGenerated.cumsumTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"deepEqualDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDeepEqualGenerated.deepEqualDependencies;\n }\n});\nObject.defineProperty(exports, \"derivativeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDerivativeGenerated.derivativeDependencies;\n }\n});\nObject.defineProperty(exports, \"detDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDetGenerated.detDependencies;\n }\n});\nObject.defineProperty(exports, \"deuteronMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDeuteronMassGenerated.deuteronMassDependencies;\n }\n});\nObject.defineProperty(exports, \"diagDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDiagGenerated.diagDependencies;\n }\n});\nObject.defineProperty(exports, \"diffDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDiffGenerated.diffDependencies;\n }\n});\nObject.defineProperty(exports, \"diffTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDiffTransformGenerated.diffTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"distanceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDistanceGenerated.distanceDependencies;\n }\n});\nObject.defineProperty(exports, \"divideDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDivideGenerated.divideDependencies;\n }\n});\nObject.defineProperty(exports, \"divideScalarDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDivideScalarGenerated.divideScalarDependencies;\n }\n});\nObject.defineProperty(exports, \"dotDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDotGenerated.dotDependencies;\n }\n});\nObject.defineProperty(exports, \"dotDivideDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDotDivideGenerated.dotDivideDependencies;\n }\n});\nObject.defineProperty(exports, \"dotMultiplyDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDotMultiplyGenerated.dotMultiplyDependencies;\n }\n});\nObject.defineProperty(exports, \"dotPowDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesDotPowGenerated.dotPowDependencies;\n }\n});\nObject.defineProperty(exports, \"eDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEGenerated.eDependencies;\n }\n});\nObject.defineProperty(exports, \"efimovFactorDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEfimovFactorGenerated.efimovFactorDependencies;\n }\n});\nObject.defineProperty(exports, \"eigsDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEigsGenerated.eigsDependencies;\n }\n});\nObject.defineProperty(exports, \"electricConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesElectricConstantGenerated.electricConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"electronMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesElectronMassGenerated.electronMassDependencies;\n }\n});\nObject.defineProperty(exports, \"elementaryChargeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesElementaryChargeGenerated.elementaryChargeDependencies;\n }\n});\nObject.defineProperty(exports, \"equalDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEqualGenerated.equalDependencies;\n }\n});\nObject.defineProperty(exports, \"equalScalarDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEqualScalarGenerated.equalScalarDependencies;\n }\n});\nObject.defineProperty(exports, \"equalTextDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEqualTextGenerated.equalTextDependencies;\n }\n});\nObject.defineProperty(exports, \"erfDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesErfGenerated.erfDependencies;\n }\n});\nObject.defineProperty(exports, \"evaluateDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesEvaluateGenerated.evaluateDependencies;\n }\n});\nObject.defineProperty(exports, \"expDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesExpGenerated.expDependencies;\n }\n});\nObject.defineProperty(exports, \"expm1Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesExpm1Generated.expm1Dependencies;\n }\n});\nObject.defineProperty(exports, \"expmDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesExpmGenerated.expmDependencies;\n }\n});\nObject.defineProperty(exports, \"factorialDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFactorialGenerated.factorialDependencies;\n }\n});\nObject.defineProperty(exports, \"falseDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFalseGenerated.falseDependencies;\n }\n});\nObject.defineProperty(exports, \"faradayDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFaradayGenerated.faradayDependencies;\n }\n});\nObject.defineProperty(exports, \"fermiCouplingDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFermiCouplingGenerated.fermiCouplingDependencies;\n }\n});\nObject.defineProperty(exports, \"fftDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFftGenerated.fftDependencies;\n }\n});\nObject.defineProperty(exports, \"filterDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFilterGenerated.filterDependencies;\n }\n});\nObject.defineProperty(exports, \"filterTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFilterTransformGenerated.filterTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"fineStructureDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFineStructureGenerated.fineStructureDependencies;\n }\n});\nObject.defineProperty(exports, \"firstRadiationDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFirstRadiationGenerated.firstRadiationDependencies;\n }\n});\nObject.defineProperty(exports, \"fixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFixGenerated.fixDependencies;\n }\n});\nObject.defineProperty(exports, \"flattenDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFlattenGenerated.flattenDependencies;\n }\n});\nObject.defineProperty(exports, \"floorDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFloorGenerated.floorDependencies;\n }\n});\nObject.defineProperty(exports, \"forEachDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesForEachGenerated.forEachDependencies;\n }\n});\nObject.defineProperty(exports, \"forEachTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesForEachTransformGenerated.forEachTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"formatDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFormatGenerated.formatDependencies;\n }\n});\nObject.defineProperty(exports, \"fractionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesFractionGenerated.fractionDependencies;\n }\n});\nObject.defineProperty(exports, \"gammaDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesGammaGenerated.gammaDependencies;\n }\n});\nObject.defineProperty(exports, \"gasConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesGasConstantGenerated.gasConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"gcdDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesGcdGenerated.gcdDependencies;\n }\n});\nObject.defineProperty(exports, \"getMatrixDataTypeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesGetMatrixDataTypeGenerated.getMatrixDataTypeDependencies;\n }\n});\nObject.defineProperty(exports, \"gravitationConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesGravitationConstantGenerated.gravitationConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"gravityDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesGravityGenerated.gravityDependencies;\n }\n});\nObject.defineProperty(exports, \"hartreeEnergyDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesHartreeEnergyGenerated.hartreeEnergyDependencies;\n }\n});\nObject.defineProperty(exports, \"hasNumericValueDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesHasNumericValueGenerated.hasNumericValueDependencies;\n }\n});\nObject.defineProperty(exports, \"helpDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesHelpGenerated.helpDependencies;\n }\n});\nObject.defineProperty(exports, \"hexDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesHexGenerated.hexDependencies;\n }\n});\nObject.defineProperty(exports, \"hypotDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesHypotGenerated.hypotDependencies;\n }\n});\nObject.defineProperty(exports, \"iDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIGenerated.iDependencies;\n }\n});\nObject.defineProperty(exports, \"identityDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIdentityGenerated.identityDependencies;\n }\n});\nObject.defineProperty(exports, \"ifftDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIfftGenerated.ifftDependencies;\n }\n});\nObject.defineProperty(exports, \"imDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesImGenerated.imDependencies;\n }\n});\nObject.defineProperty(exports, \"indexDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIndexGenerated.indexDependencies;\n }\n});\nObject.defineProperty(exports, \"indexTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIndexTransformGenerated.indexTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"intersectDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIntersectGenerated.intersectDependencies;\n }\n});\nObject.defineProperty(exports, \"invDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesInvGenerated.invDependencies;\n }\n});\nObject.defineProperty(exports, \"inverseConductanceQuantumDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesInverseConductanceQuantumGenerated.inverseConductanceQuantumDependencies;\n }\n});\nObject.defineProperty(exports, \"invmodDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesInvmodGenerated.invmodDependencies;\n }\n});\nObject.defineProperty(exports, \"isIntegerDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsIntegerGenerated.isIntegerDependencies;\n }\n});\nObject.defineProperty(exports, \"isNaNDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsNaNGenerated.isNaNDependencies;\n }\n});\nObject.defineProperty(exports, \"isNegativeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsNegativeGenerated.isNegativeDependencies;\n }\n});\nObject.defineProperty(exports, \"isNumericDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsNumericGenerated.isNumericDependencies;\n }\n});\nObject.defineProperty(exports, \"isPositiveDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsPositiveGenerated.isPositiveDependencies;\n }\n});\nObject.defineProperty(exports, \"isPrimeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsPrimeGenerated.isPrimeDependencies;\n }\n});\nObject.defineProperty(exports, \"isZeroDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesIsZeroGenerated.isZeroDependencies;\n }\n});\nObject.defineProperty(exports, \"kldivergenceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesKldivergenceGenerated.kldivergenceDependencies;\n }\n});\nObject.defineProperty(exports, \"klitzingDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesKlitzingGenerated.klitzingDependencies;\n }\n});\nObject.defineProperty(exports, \"kronDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesKronGenerated.kronDependencies;\n }\n});\nObject.defineProperty(exports, \"largerDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLargerGenerated.largerDependencies;\n }\n});\nObject.defineProperty(exports, \"largerEqDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLargerEqGenerated.largerEqDependencies;\n }\n});\nObject.defineProperty(exports, \"lcmDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLcmGenerated.lcmDependencies;\n }\n});\nObject.defineProperty(exports, \"leafCountDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLeafCountGenerated.leafCountDependencies;\n }\n});\nObject.defineProperty(exports, \"leftShiftDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLeftShiftGenerated.leftShiftDependencies;\n }\n});\nObject.defineProperty(exports, \"lgammaDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLgammaGenerated.lgammaDependencies;\n }\n});\nObject.defineProperty(exports, \"log10Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLog10Generated.log10Dependencies;\n }\n});\nObject.defineProperty(exports, \"log1pDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLog1pGenerated.log1pDependencies;\n }\n});\nObject.defineProperty(exports, \"log2Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLog2Generated.log2Dependencies;\n }\n});\nObject.defineProperty(exports, \"logDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLogGenerated.logDependencies;\n }\n});\nObject.defineProperty(exports, \"loschmidtDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLoschmidtGenerated.loschmidtDependencies;\n }\n});\nObject.defineProperty(exports, \"lsolveAllDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLsolveAllGenerated.lsolveAllDependencies;\n }\n});\nObject.defineProperty(exports, \"lsolveDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLsolveGenerated.lsolveDependencies;\n }\n});\nObject.defineProperty(exports, \"lupDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLupGenerated.lupDependencies;\n }\n});\nObject.defineProperty(exports, \"lusolveDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesLusolveGenerated.lusolveDependencies;\n }\n});\nObject.defineProperty(exports, \"madDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMadGenerated.madDependencies;\n }\n});\nObject.defineProperty(exports, \"magneticConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMagneticConstantGenerated.magneticConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"magneticFluxQuantumDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMagneticFluxQuantumGenerated.magneticFluxQuantumDependencies;\n }\n});\nObject.defineProperty(exports, \"mapDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMapGenerated.mapDependencies;\n }\n});\nObject.defineProperty(exports, \"mapTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMapTransformGenerated.mapTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"matrixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMatrixGenerated.matrixDependencies;\n }\n});\nObject.defineProperty(exports, \"matrixFromColumnsDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMatrixFromColumnsGenerated.matrixFromColumnsDependencies;\n }\n});\nObject.defineProperty(exports, \"matrixFromFunctionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMatrixFromFunctionGenerated.matrixFromFunctionDependencies;\n }\n});\nObject.defineProperty(exports, \"matrixFromRowsDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMatrixFromRowsGenerated.matrixFromRowsDependencies;\n }\n});\nObject.defineProperty(exports, \"maxDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMaxGenerated.maxDependencies;\n }\n});\nObject.defineProperty(exports, \"maxTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMaxTransformGenerated.maxTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"meanDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMeanGenerated.meanDependencies;\n }\n});\nObject.defineProperty(exports, \"meanTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMeanTransformGenerated.meanTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"medianDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMedianGenerated.medianDependencies;\n }\n});\nObject.defineProperty(exports, \"minDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMinGenerated.minDependencies;\n }\n});\nObject.defineProperty(exports, \"minTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMinTransformGenerated.minTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"modDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesModGenerated.modDependencies;\n }\n});\nObject.defineProperty(exports, \"modeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesModeGenerated.modeDependencies;\n }\n});\nObject.defineProperty(exports, \"molarMassC12Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMolarMassC12Generated.molarMassC12Dependencies;\n }\n});\nObject.defineProperty(exports, \"molarMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMolarMassGenerated.molarMassDependencies;\n }\n});\nObject.defineProperty(exports, \"molarPlanckConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMolarPlanckConstantGenerated.molarPlanckConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"molarVolumeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMolarVolumeGenerated.molarVolumeDependencies;\n }\n});\nObject.defineProperty(exports, \"multinomialDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMultinomialGenerated.multinomialDependencies;\n }\n});\nObject.defineProperty(exports, \"multiplyDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMultiplyGenerated.multiplyDependencies;\n }\n});\nObject.defineProperty(exports, \"multiplyScalarDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesMultiplyScalarGenerated.multiplyScalarDependencies;\n }\n});\nObject.defineProperty(exports, \"neutronMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNeutronMassGenerated.neutronMassDependencies;\n }\n});\nObject.defineProperty(exports, \"normDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNormGenerated.normDependencies;\n }\n});\nObject.defineProperty(exports, \"notDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNotGenerated.notDependencies;\n }\n});\nObject.defineProperty(exports, \"nthRootDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNthRootGenerated.nthRootDependencies;\n }\n});\nObject.defineProperty(exports, \"nthRootsDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNthRootsGenerated.nthRootsDependencies;\n }\n});\nObject.defineProperty(exports, \"nuclearMagnetonDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNuclearMagnetonGenerated.nuclearMagnetonDependencies;\n }\n});\nObject.defineProperty(exports, \"nullDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNullGenerated.nullDependencies;\n }\n});\nObject.defineProperty(exports, \"numberDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNumberGenerated.numberDependencies;\n }\n});\nObject.defineProperty(exports, \"numericDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesNumericGenerated.numericDependencies;\n }\n});\nObject.defineProperty(exports, \"octDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesOctGenerated.octDependencies;\n }\n});\nObject.defineProperty(exports, \"onesDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesOnesGenerated.onesDependencies;\n }\n});\nObject.defineProperty(exports, \"orDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesOrGenerated.orDependencies;\n }\n});\nObject.defineProperty(exports, \"parseDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesParseGenerated.parseDependencies;\n }\n});\nObject.defineProperty(exports, \"parserDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesParserGenerated.parserDependencies;\n }\n});\nObject.defineProperty(exports, \"partitionSelectDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPartitionSelectGenerated.partitionSelectDependencies;\n }\n});\nObject.defineProperty(exports, \"permutationsDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPermutationsGenerated.permutationsDependencies;\n }\n});\nObject.defineProperty(exports, \"phiDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPhiGenerated.phiDependencies;\n }\n});\nObject.defineProperty(exports, \"piDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPiGenerated.piDependencies;\n }\n});\nObject.defineProperty(exports, \"pickRandomDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPickRandomGenerated.pickRandomDependencies;\n }\n});\nObject.defineProperty(exports, \"pinvDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPinvGenerated.pinvDependencies;\n }\n});\nObject.defineProperty(exports, \"planckChargeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPlanckChargeGenerated.planckChargeDependencies;\n }\n});\nObject.defineProperty(exports, \"planckConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPlanckConstantGenerated.planckConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"planckLengthDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPlanckLengthGenerated.planckLengthDependencies;\n }\n});\nObject.defineProperty(exports, \"planckMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPlanckMassGenerated.planckMassDependencies;\n }\n});\nObject.defineProperty(exports, \"planckTemperatureDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPlanckTemperatureGenerated.planckTemperatureDependencies;\n }\n});\nObject.defineProperty(exports, \"planckTimeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPlanckTimeGenerated.planckTimeDependencies;\n }\n});\nObject.defineProperty(exports, \"powDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPowGenerated.powDependencies;\n }\n});\nObject.defineProperty(exports, \"printDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesPrintGenerated.printDependencies;\n }\n});\nObject.defineProperty(exports, \"prodDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesProdGenerated.prodDependencies;\n }\n});\nObject.defineProperty(exports, \"protonMassDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesProtonMassGenerated.protonMassDependencies;\n }\n});\nObject.defineProperty(exports, \"qrDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesQrGenerated.qrDependencies;\n }\n});\nObject.defineProperty(exports, \"quantileSeqDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesQuantileSeqGenerated.quantileSeqDependencies;\n }\n});\nObject.defineProperty(exports, \"quantumOfCirculationDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesQuantumOfCirculationGenerated.quantumOfCirculationDependencies;\n }\n});\nObject.defineProperty(exports, \"randomDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRandomGenerated.randomDependencies;\n }\n});\nObject.defineProperty(exports, \"randomIntDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRandomIntGenerated.randomIntDependencies;\n }\n});\nObject.defineProperty(exports, \"rangeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRangeGenerated.rangeDependencies;\n }\n});\nObject.defineProperty(exports, \"rangeTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRangeTransformGenerated.rangeTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"rationalizeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRationalizeGenerated.rationalizeDependencies;\n }\n});\nObject.defineProperty(exports, \"reDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesReGenerated.reDependencies;\n }\n});\nObject.defineProperty(exports, \"reducedPlanckConstantDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesReducedPlanckConstantGenerated.reducedPlanckConstantDependencies;\n }\n});\nObject.defineProperty(exports, \"replacerDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesReplacerGenerated.replacerDependencies;\n }\n});\nObject.defineProperty(exports, \"reshapeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesReshapeGenerated.reshapeDependencies;\n }\n});\nObject.defineProperty(exports, \"resizeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesResizeGenerated.resizeDependencies;\n }\n});\nObject.defineProperty(exports, \"resolveDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesResolveGenerated.resolveDependencies;\n }\n});\nObject.defineProperty(exports, \"reviverDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesReviverGenerated.reviverDependencies;\n }\n});\nObject.defineProperty(exports, \"rightArithShiftDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRightArithShiftGenerated.rightArithShiftDependencies;\n }\n});\nObject.defineProperty(exports, \"rightLogShiftDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRightLogShiftGenerated.rightLogShiftDependencies;\n }\n});\nObject.defineProperty(exports, \"rotateDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRotateGenerated.rotateDependencies;\n }\n});\nObject.defineProperty(exports, \"rotationMatrixDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRotationMatrixGenerated.rotationMatrixDependencies;\n }\n});\nObject.defineProperty(exports, \"roundDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRoundGenerated.roundDependencies;\n }\n});\nObject.defineProperty(exports, \"rowDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRowGenerated.rowDependencies;\n }\n});\nObject.defineProperty(exports, \"rowTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRowTransformGenerated.rowTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"rydbergDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesRydbergGenerated.rydbergDependencies;\n }\n});\nObject.defineProperty(exports, \"sackurTetrodeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSackurTetrodeGenerated.sackurTetrodeDependencies;\n }\n});\nObject.defineProperty(exports, \"secDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSecGenerated.secDependencies;\n }\n});\nObject.defineProperty(exports, \"sechDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSechGenerated.sechDependencies;\n }\n});\nObject.defineProperty(exports, \"secondRadiationDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSecondRadiationGenerated.secondRadiationDependencies;\n }\n});\nObject.defineProperty(exports, \"setCartesianDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetCartesianGenerated.setCartesianDependencies;\n }\n});\nObject.defineProperty(exports, \"setDifferenceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetDifferenceGenerated.setDifferenceDependencies;\n }\n});\nObject.defineProperty(exports, \"setDistinctDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetDistinctGenerated.setDistinctDependencies;\n }\n});\nObject.defineProperty(exports, \"setIntersectDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetIntersectGenerated.setIntersectDependencies;\n }\n});\nObject.defineProperty(exports, \"setIsSubsetDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetIsSubsetGenerated.setIsSubsetDependencies;\n }\n});\nObject.defineProperty(exports, \"setMultiplicityDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetMultiplicityGenerated.setMultiplicityDependencies;\n }\n});\nObject.defineProperty(exports, \"setPowersetDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetPowersetGenerated.setPowersetDependencies;\n }\n});\nObject.defineProperty(exports, \"setSizeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetSizeGenerated.setSizeDependencies;\n }\n});\nObject.defineProperty(exports, \"setSymDifferenceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetSymDifferenceGenerated.setSymDifferenceDependencies;\n }\n});\nObject.defineProperty(exports, \"setUnionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSetUnionGenerated.setUnionDependencies;\n }\n});\nObject.defineProperty(exports, \"signDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSignGenerated.signDependencies;\n }\n});\nObject.defineProperty(exports, \"simplifyCoreDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSimplifyCoreGenerated.simplifyCoreDependencies;\n }\n});\nObject.defineProperty(exports, \"simplifyDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSimplifyGenerated.simplifyDependencies;\n }\n});\nObject.defineProperty(exports, \"sinDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSinGenerated.sinDependencies;\n }\n});\nObject.defineProperty(exports, \"sinhDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSinhGenerated.sinhDependencies;\n }\n});\nObject.defineProperty(exports, \"sizeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSizeGenerated.sizeDependencies;\n }\n});\nObject.defineProperty(exports, \"sluDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSluGenerated.sluDependencies;\n }\n});\nObject.defineProperty(exports, \"smallerDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSmallerGenerated.smallerDependencies;\n }\n});\nObject.defineProperty(exports, \"smallerEqDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSmallerEqGenerated.smallerEqDependencies;\n }\n});\nObject.defineProperty(exports, \"sortDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSortGenerated.sortDependencies;\n }\n});\nObject.defineProperty(exports, \"sparseDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSparseGenerated.sparseDependencies;\n }\n});\nObject.defineProperty(exports, \"speedOfLightDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSpeedOfLightGenerated.speedOfLightDependencies;\n }\n});\nObject.defineProperty(exports, \"splitUnitDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSplitUnitGenerated.splitUnitDependencies;\n }\n});\nObject.defineProperty(exports, \"sqrtDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSqrtGenerated.sqrtDependencies;\n }\n});\nObject.defineProperty(exports, \"sqrtmDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSqrtmGenerated.sqrtmDependencies;\n }\n});\nObject.defineProperty(exports, \"squareDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSquareGenerated.squareDependencies;\n }\n});\nObject.defineProperty(exports, \"squeezeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSqueezeGenerated.squeezeDependencies;\n }\n});\nObject.defineProperty(exports, \"stdDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesStdGenerated.stdDependencies;\n }\n});\nObject.defineProperty(exports, \"stdTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesStdTransformGenerated.stdTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"stefanBoltzmannDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesStefanBoltzmannGenerated.stefanBoltzmannDependencies;\n }\n});\nObject.defineProperty(exports, \"stirlingS2Dependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesStirlingS2Generated.stirlingS2Dependencies;\n }\n});\nObject.defineProperty(exports, \"stringDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesStringGenerated.stringDependencies;\n }\n});\nObject.defineProperty(exports, \"subsetDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSubsetGenerated.subsetDependencies;\n }\n});\nObject.defineProperty(exports, \"subsetTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSubsetTransformGenerated.subsetTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"subtractDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSubtractGenerated.subtractDependencies;\n }\n});\nObject.defineProperty(exports, \"sumDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSumGenerated.sumDependencies;\n }\n});\nObject.defineProperty(exports, \"sumTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSumTransformGenerated.sumTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"symbolicEqualDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesSymbolicEqualGenerated.symbolicEqualDependencies;\n }\n});\nObject.defineProperty(exports, \"tanDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTanGenerated.tanDependencies;\n }\n});\nObject.defineProperty(exports, \"tanhDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTanhGenerated.tanhDependencies;\n }\n});\nObject.defineProperty(exports, \"tauDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTauGenerated.tauDependencies;\n }\n});\nObject.defineProperty(exports, \"thomsonCrossSectionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesThomsonCrossSectionGenerated.thomsonCrossSectionDependencies;\n }\n});\nObject.defineProperty(exports, \"toDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesToGenerated.toDependencies;\n }\n});\nObject.defineProperty(exports, \"traceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTraceGenerated.traceDependencies;\n }\n});\nObject.defineProperty(exports, \"transposeDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTransposeGenerated.transposeDependencies;\n }\n});\nObject.defineProperty(exports, \"trueDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTrueGenerated.trueDependencies;\n }\n});\nObject.defineProperty(exports, \"typeOfDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTypeOfGenerated.typeOfDependencies;\n }\n});\nObject.defineProperty(exports, \"typedDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesTypedGenerated.typedDependencies;\n }\n});\nObject.defineProperty(exports, \"unaryMinusDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUnaryMinusGenerated.unaryMinusDependencies;\n }\n});\nObject.defineProperty(exports, \"unaryPlusDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUnaryPlusGenerated.unaryPlusDependencies;\n }\n});\nObject.defineProperty(exports, \"unequalDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUnequalGenerated.unequalDependencies;\n }\n});\nObject.defineProperty(exports, \"unitDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUnitFunctionGenerated.unitDependencies;\n }\n});\nObject.defineProperty(exports, \"usolveAllDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUsolveAllGenerated.usolveAllDependencies;\n }\n});\nObject.defineProperty(exports, \"usolveDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesUsolveGenerated.usolveDependencies;\n }\n});\nObject.defineProperty(exports, \"vacuumImpedanceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesVacuumImpedanceGenerated.vacuumImpedanceDependencies;\n }\n});\nObject.defineProperty(exports, \"varianceDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesVarianceGenerated.varianceDependencies;\n }\n});\nObject.defineProperty(exports, \"varianceTransformDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesVarianceTransformGenerated.varianceTransformDependencies;\n }\n});\nObject.defineProperty(exports, \"versionDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesVersionGenerated.versionDependencies;\n }\n});\nObject.defineProperty(exports, \"weakMixingAngleDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesWeakMixingAngleGenerated.weakMixingAngleDependencies;\n }\n});\nObject.defineProperty(exports, \"wienDisplacementDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesWienDisplacementGenerated.wienDisplacementDependencies;\n }\n});\nObject.defineProperty(exports, \"xgcdDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesXgcdGenerated.xgcdDependencies;\n }\n});\nObject.defineProperty(exports, \"xorDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesXorGenerated.xorDependencies;\n }\n});\nObject.defineProperty(exports, \"zerosDependencies\", {\n enumerable: true,\n get: function get() {\n return _dependenciesZerosGenerated.zerosDependencies;\n }\n});\n\nvar _dependenciesAbsGenerated = require(\"./dependenciesAny/dependenciesAbs.generated.js\");\n\nvar _dependenciesAccessorNodeGenerated = require(\"./dependenciesAny/dependenciesAccessorNode.generated.js\");\n\nvar _dependenciesAcosGenerated = require(\"./dependenciesAny/dependenciesAcos.generated.js\");\n\nvar _dependenciesAcoshGenerated = require(\"./dependenciesAny/dependenciesAcosh.generated.js\");\n\nvar _dependenciesAcotGenerated = require(\"./dependenciesAny/dependenciesAcot.generated.js\");\n\nvar _dependenciesAcothGenerated = require(\"./dependenciesAny/dependenciesAcoth.generated.js\");\n\nvar _dependenciesAcscGenerated = require(\"./dependenciesAny/dependenciesAcsc.generated.js\");\n\nvar _dependenciesAcschGenerated = require(\"./dependenciesAny/dependenciesAcsch.generated.js\");\n\nvar _dependenciesAddGenerated = require(\"./dependenciesAny/dependenciesAdd.generated.js\");\n\nvar _dependenciesAddScalarGenerated = require(\"./dependenciesAny/dependenciesAddScalar.generated.js\");\n\nvar _dependenciesAndGenerated = require(\"./dependenciesAny/dependenciesAnd.generated.js\");\n\nvar _dependenciesApplyGenerated = require(\"./dependenciesAny/dependenciesApply.generated.js\");\n\nvar _dependenciesApplyTransformGenerated = require(\"./dependenciesAny/dependenciesApplyTransform.generated.js\");\n\nvar _dependenciesArgGenerated = require(\"./dependenciesAny/dependenciesArg.generated.js\");\n\nvar _dependenciesArrayNodeGenerated = require(\"./dependenciesAny/dependenciesArrayNode.generated.js\");\n\nvar _dependenciesAsecGenerated = require(\"./dependenciesAny/dependenciesAsec.generated.js\");\n\nvar _dependenciesAsechGenerated = require(\"./dependenciesAny/dependenciesAsech.generated.js\");\n\nvar _dependenciesAsinGenerated = require(\"./dependenciesAny/dependenciesAsin.generated.js\");\n\nvar _dependenciesAsinhGenerated = require(\"./dependenciesAny/dependenciesAsinh.generated.js\");\n\nvar _dependenciesAssignmentNodeGenerated = require(\"./dependenciesAny/dependenciesAssignmentNode.generated.js\");\n\nvar _dependenciesAtanGenerated = require(\"./dependenciesAny/dependenciesAtan.generated.js\");\n\nvar _dependenciesAtan2Generated = require(\"./dependenciesAny/dependenciesAtan2.generated.js\");\n\nvar _dependenciesAtanhGenerated = require(\"./dependenciesAny/dependenciesAtanh.generated.js\");\n\nvar _dependenciesAtomicMassGenerated = require(\"./dependenciesAny/dependenciesAtomicMass.generated.js\");\n\nvar _dependenciesAvogadroGenerated = require(\"./dependenciesAny/dependenciesAvogadro.generated.js\");\n\nvar _dependenciesBellNumbersGenerated = require(\"./dependenciesAny/dependenciesBellNumbers.generated.js\");\n\nvar _dependenciesBigNumberClassGenerated = require(\"./dependenciesAny/dependenciesBigNumberClass.generated.js\");\n\nvar _dependenciesBignumberGenerated = require(\"./dependenciesAny/dependenciesBignumber.generated.js\");\n\nvar _dependenciesBinGenerated = require(\"./dependenciesAny/dependenciesBin.generated.js\");\n\nvar _dependenciesBitAndGenerated = require(\"./dependenciesAny/dependenciesBitAnd.generated.js\");\n\nvar _dependenciesBitNotGenerated = require(\"./dependenciesAny/dependenciesBitNot.generated.js\");\n\nvar _dependenciesBitOrGenerated = require(\"./dependenciesAny/dependenciesBitOr.generated.js\");\n\nvar _dependenciesBitXorGenerated = require(\"./dependenciesAny/dependenciesBitXor.generated.js\");\n\nvar _dependenciesBlockNodeGenerated = require(\"./dependenciesAny/dependenciesBlockNode.generated.js\");\n\nvar _dependenciesBohrMagnetonGenerated = require(\"./dependenciesAny/dependenciesBohrMagneton.generated.js\");\n\nvar _dependenciesBohrRadiusGenerated = require(\"./dependenciesAny/dependenciesBohrRadius.generated.js\");\n\nvar _dependenciesBoltzmannGenerated = require(\"./dependenciesAny/dependenciesBoltzmann.generated.js\");\n\nvar _dependenciesBooleanGenerated = require(\"./dependenciesAny/dependenciesBoolean.generated.js\");\n\nvar _dependenciesCatalanGenerated = require(\"./dependenciesAny/dependenciesCatalan.generated.js\");\n\nvar _dependenciesCbrtGenerated = require(\"./dependenciesAny/dependenciesCbrt.generated.js\");\n\nvar _dependenciesCeilGenerated = require(\"./dependenciesAny/dependenciesCeil.generated.js\");\n\nvar _dependenciesChainGenerated = require(\"./dependenciesAny/dependenciesChain.generated.js\");\n\nvar _dependenciesChainClassGenerated = require(\"./dependenciesAny/dependenciesChainClass.generated.js\");\n\nvar _dependenciesClassicalElectronRadiusGenerated = require(\"./dependenciesAny/dependenciesClassicalElectronRadius.generated.js\");\n\nvar _dependenciesCloneGenerated = require(\"./dependenciesAny/dependenciesClone.generated.js\");\n\nvar _dependenciesColumnGenerated = require(\"./dependenciesAny/dependenciesColumn.generated.js\");\n\nvar _dependenciesColumnTransformGenerated = require(\"./dependenciesAny/dependenciesColumnTransform.generated.js\");\n\nvar _dependenciesCombinationsGenerated = require(\"./dependenciesAny/dependenciesCombinations.generated.js\");\n\nvar _dependenciesCombinationsWithRepGenerated = require(\"./dependenciesAny/dependenciesCombinationsWithRep.generated.js\");\n\nvar _dependenciesCompareGenerated = require(\"./dependenciesAny/dependenciesCompare.generated.js\");\n\nvar _dependenciesCompareNaturalGenerated = require(\"./dependenciesAny/dependenciesCompareNatural.generated.js\");\n\nvar _dependenciesCompareTextGenerated = require(\"./dependenciesAny/dependenciesCompareText.generated.js\");\n\nvar _dependenciesCompileGenerated = require(\"./dependenciesAny/dependenciesCompile.generated.js\");\n\nvar _dependenciesComplexGenerated = require(\"./dependenciesAny/dependenciesComplex.generated.js\");\n\nvar _dependenciesComplexClassGenerated = require(\"./dependenciesAny/dependenciesComplexClass.generated.js\");\n\nvar _dependenciesCompositionGenerated = require(\"./dependenciesAny/dependenciesComposition.generated.js\");\n\nvar _dependenciesConcatGenerated = require(\"./dependenciesAny/dependenciesConcat.generated.js\");\n\nvar _dependenciesConcatTransformGenerated = require(\"./dependenciesAny/dependenciesConcatTransform.generated.js\");\n\nvar _dependenciesConditionalNodeGenerated = require(\"./dependenciesAny/dependenciesConditionalNode.generated.js\");\n\nvar _dependenciesConductanceQuantumGenerated = require(\"./dependenciesAny/dependenciesConductanceQuantum.generated.js\");\n\nvar _dependenciesConjGenerated = require(\"./dependenciesAny/dependenciesConj.generated.js\");\n\nvar _dependenciesConstantNodeGenerated = require(\"./dependenciesAny/dependenciesConstantNode.generated.js\");\n\nvar _dependenciesCosGenerated = require(\"./dependenciesAny/dependenciesCos.generated.js\");\n\nvar _dependenciesCoshGenerated = require(\"./dependenciesAny/dependenciesCosh.generated.js\");\n\nvar _dependenciesCotGenerated = require(\"./dependenciesAny/dependenciesCot.generated.js\");\n\nvar _dependenciesCothGenerated = require(\"./dependenciesAny/dependenciesCoth.generated.js\");\n\nvar _dependenciesCoulombGenerated = require(\"./dependenciesAny/dependenciesCoulomb.generated.js\");\n\nvar _dependenciesCountGenerated = require(\"./dependenciesAny/dependenciesCount.generated.js\");\n\nvar _dependenciesCreateUnitGenerated = require(\"./dependenciesAny/dependenciesCreateUnit.generated.js\");\n\nvar _dependenciesCrossGenerated = require(\"./dependenciesAny/dependenciesCross.generated.js\");\n\nvar _dependenciesCscGenerated = require(\"./dependenciesAny/dependenciesCsc.generated.js\");\n\nvar _dependenciesCschGenerated = require(\"./dependenciesAny/dependenciesCsch.generated.js\");\n\nvar _dependenciesCtransposeGenerated = require(\"./dependenciesAny/dependenciesCtranspose.generated.js\");\n\nvar _dependenciesCubeGenerated = require(\"./dependenciesAny/dependenciesCube.generated.js\");\n\nvar _dependenciesCumSumGenerated = require(\"./dependenciesAny/dependenciesCumSum.generated.js\");\n\nvar _dependenciesCumSumTransformGenerated = require(\"./dependenciesAny/dependenciesCumSumTransform.generated.js\");\n\nvar _dependenciesDeepEqualGenerated = require(\"./dependenciesAny/dependenciesDeepEqual.generated.js\");\n\nvar _dependenciesDenseMatrixClassGenerated = require(\"./dependenciesAny/dependenciesDenseMatrixClass.generated.js\");\n\nvar _dependenciesDerivativeGenerated = require(\"./dependenciesAny/dependenciesDerivative.generated.js\");\n\nvar _dependenciesDetGenerated = require(\"./dependenciesAny/dependenciesDet.generated.js\");\n\nvar _dependenciesDeuteronMassGenerated = require(\"./dependenciesAny/dependenciesDeuteronMass.generated.js\");\n\nvar _dependenciesDiagGenerated = require(\"./dependenciesAny/dependenciesDiag.generated.js\");\n\nvar _dependenciesDiffGenerated = require(\"./dependenciesAny/dependenciesDiff.generated.js\");\n\nvar _dependenciesDiffTransformGenerated = require(\"./dependenciesAny/dependenciesDiffTransform.generated.js\");\n\nvar _dependenciesDistanceGenerated = require(\"./dependenciesAny/dependenciesDistance.generated.js\");\n\nvar _dependenciesDivideGenerated = require(\"./dependenciesAny/dependenciesDivide.generated.js\");\n\nvar _dependenciesDivideScalarGenerated = require(\"./dependenciesAny/dependenciesDivideScalar.generated.js\");\n\nvar _dependenciesDotGenerated = require(\"./dependenciesAny/dependenciesDot.generated.js\");\n\nvar _dependenciesDotDivideGenerated = require(\"./dependenciesAny/dependenciesDotDivide.generated.js\");\n\nvar _dependenciesDotMultiplyGenerated = require(\"./dependenciesAny/dependenciesDotMultiply.generated.js\");\n\nvar _dependenciesDotPowGenerated = require(\"./dependenciesAny/dependenciesDotPow.generated.js\");\n\nvar _dependenciesEGenerated = require(\"./dependenciesAny/dependenciesE.generated.js\");\n\nvar _dependenciesEfimovFactorGenerated = require(\"./dependenciesAny/dependenciesEfimovFactor.generated.js\");\n\nvar _dependenciesEigsGenerated = require(\"./dependenciesAny/dependenciesEigs.generated.js\");\n\nvar _dependenciesElectricConstantGenerated = require(\"./dependenciesAny/dependenciesElectricConstant.generated.js\");\n\nvar _dependenciesElectronMassGenerated = require(\"./dependenciesAny/dependenciesElectronMass.generated.js\");\n\nvar _dependenciesElementaryChargeGenerated = require(\"./dependenciesAny/dependenciesElementaryCharge.generated.js\");\n\nvar _dependenciesEqualGenerated = require(\"./dependenciesAny/dependenciesEqual.generated.js\");\n\nvar _dependenciesEqualScalarGenerated = require(\"./dependenciesAny/dependenciesEqualScalar.generated.js\");\n\nvar _dependenciesEqualTextGenerated = require(\"./dependenciesAny/dependenciesEqualText.generated.js\");\n\nvar _dependenciesErfGenerated = require(\"./dependenciesAny/dependenciesErf.generated.js\");\n\nvar _dependenciesEvaluateGenerated = require(\"./dependenciesAny/dependenciesEvaluate.generated.js\");\n\nvar _dependenciesExpGenerated = require(\"./dependenciesAny/dependenciesExp.generated.js\");\n\nvar _dependenciesExpmGenerated = require(\"./dependenciesAny/dependenciesExpm.generated.js\");\n\nvar _dependenciesExpm1Generated = require(\"./dependenciesAny/dependenciesExpm1.generated.js\");\n\nvar _dependenciesFactorialGenerated = require(\"./dependenciesAny/dependenciesFactorial.generated.js\");\n\nvar _dependenciesFalseGenerated = require(\"./dependenciesAny/dependenciesFalse.generated.js\");\n\nvar _dependenciesFaradayGenerated = require(\"./dependenciesAny/dependenciesFaraday.generated.js\");\n\nvar _dependenciesFermiCouplingGenerated = require(\"./dependenciesAny/dependenciesFermiCoupling.generated.js\");\n\nvar _dependenciesFftGenerated = require(\"./dependenciesAny/dependenciesFft.generated.js\");\n\nvar _dependenciesFibonacciHeapClassGenerated = require(\"./dependenciesAny/dependenciesFibonacciHeapClass.generated.js\");\n\nvar _dependenciesFilterGenerated = require(\"./dependenciesAny/dependenciesFilter.generated.js\");\n\nvar _dependenciesFilterTransformGenerated = require(\"./dependenciesAny/dependenciesFilterTransform.generated.js\");\n\nvar _dependenciesFineStructureGenerated = require(\"./dependenciesAny/dependenciesFineStructure.generated.js\");\n\nvar _dependenciesFirstRadiationGenerated = require(\"./dependenciesAny/dependenciesFirstRadiation.generated.js\");\n\nvar _dependenciesFixGenerated = require(\"./dependenciesAny/dependenciesFix.generated.js\");\n\nvar _dependenciesFlattenGenerated = require(\"./dependenciesAny/dependenciesFlatten.generated.js\");\n\nvar _dependenciesFloorGenerated = require(\"./dependenciesAny/dependenciesFloor.generated.js\");\n\nvar _dependenciesForEachGenerated = require(\"./dependenciesAny/dependenciesForEach.generated.js\");\n\nvar _dependenciesForEachTransformGenerated = require(\"./dependenciesAny/dependenciesForEachTransform.generated.js\");\n\nvar _dependenciesFormatGenerated = require(\"./dependenciesAny/dependenciesFormat.generated.js\");\n\nvar _dependenciesFractionGenerated = require(\"./dependenciesAny/dependenciesFraction.generated.js\");\n\nvar _dependenciesFractionClassGenerated = require(\"./dependenciesAny/dependenciesFractionClass.generated.js\");\n\nvar _dependenciesFunctionAssignmentNodeGenerated = require(\"./dependenciesAny/dependenciesFunctionAssignmentNode.generated.js\");\n\nvar _dependenciesFunctionNodeGenerated = require(\"./dependenciesAny/dependenciesFunctionNode.generated.js\");\n\nvar _dependenciesGammaGenerated = require(\"./dependenciesAny/dependenciesGamma.generated.js\");\n\nvar _dependenciesGasConstantGenerated = require(\"./dependenciesAny/dependenciesGasConstant.generated.js\");\n\nvar _dependenciesGcdGenerated = require(\"./dependenciesAny/dependenciesGcd.generated.js\");\n\nvar _dependenciesGetMatrixDataTypeGenerated = require(\"./dependenciesAny/dependenciesGetMatrixDataType.generated.js\");\n\nvar _dependenciesGravitationConstantGenerated = require(\"./dependenciesAny/dependenciesGravitationConstant.generated.js\");\n\nvar _dependenciesGravityGenerated = require(\"./dependenciesAny/dependenciesGravity.generated.js\");\n\nvar _dependenciesHartreeEnergyGenerated = require(\"./dependenciesAny/dependenciesHartreeEnergy.generated.js\");\n\nvar _dependenciesHasNumericValueGenerated = require(\"./dependenciesAny/dependenciesHasNumericValue.generated.js\");\n\nvar _dependenciesHelpGenerated = require(\"./dependenciesAny/dependenciesHelp.generated.js\");\n\nvar _dependenciesHelpClassGenerated = require(\"./dependenciesAny/dependenciesHelpClass.generated.js\");\n\nvar _dependenciesHexGenerated = require(\"./dependenciesAny/dependenciesHex.generated.js\");\n\nvar _dependenciesHypotGenerated = require(\"./dependenciesAny/dependenciesHypot.generated.js\");\n\nvar _dependenciesIGenerated = require(\"./dependenciesAny/dependenciesI.generated.js\");\n\nvar _dependenciesIdentityGenerated = require(\"./dependenciesAny/dependenciesIdentity.generated.js\");\n\nvar _dependenciesIfftGenerated = require(\"./dependenciesAny/dependenciesIfft.generated.js\");\n\nvar _dependenciesImGenerated = require(\"./dependenciesAny/dependenciesIm.generated.js\");\n\nvar _dependenciesImmutableDenseMatrixClassGenerated = require(\"./dependenciesAny/dependenciesImmutableDenseMatrixClass.generated.js\");\n\nvar _dependenciesIndexGenerated = require(\"./dependenciesAny/dependenciesIndex.generated.js\");\n\nvar _dependenciesIndexClassGenerated = require(\"./dependenciesAny/dependenciesIndexClass.generated.js\");\n\nvar _dependenciesIndexNodeGenerated = require(\"./dependenciesAny/dependenciesIndexNode.generated.js\");\n\nvar _dependenciesIndexTransformGenerated = require(\"./dependenciesAny/dependenciesIndexTransform.generated.js\");\n\nvar _dependenciesInfinityGenerated = require(\"./dependenciesAny/dependenciesInfinity.generated.js\");\n\nvar _dependenciesIntersectGenerated = require(\"./dependenciesAny/dependenciesIntersect.generated.js\");\n\nvar _dependenciesInvGenerated = require(\"./dependenciesAny/dependenciesInv.generated.js\");\n\nvar _dependenciesInverseConductanceQuantumGenerated = require(\"./dependenciesAny/dependenciesInverseConductanceQuantum.generated.js\");\n\nvar _dependenciesInvmodGenerated = require(\"./dependenciesAny/dependenciesInvmod.generated.js\");\n\nvar _dependenciesIsIntegerGenerated = require(\"./dependenciesAny/dependenciesIsInteger.generated.js\");\n\nvar _dependenciesIsNaNGenerated = require(\"./dependenciesAny/dependenciesIsNaN.generated.js\");\n\nvar _dependenciesIsNegativeGenerated = require(\"./dependenciesAny/dependenciesIsNegative.generated.js\");\n\nvar _dependenciesIsNumericGenerated = require(\"./dependenciesAny/dependenciesIsNumeric.generated.js\");\n\nvar _dependenciesIsPositiveGenerated = require(\"./dependenciesAny/dependenciesIsPositive.generated.js\");\n\nvar _dependenciesIsPrimeGenerated = require(\"./dependenciesAny/dependenciesIsPrime.generated.js\");\n\nvar _dependenciesIsZeroGenerated = require(\"./dependenciesAny/dependenciesIsZero.generated.js\");\n\nvar _dependenciesKldivergenceGenerated = require(\"./dependenciesAny/dependenciesKldivergence.generated.js\");\n\nvar _dependenciesKlitzingGenerated = require(\"./dependenciesAny/dependenciesKlitzing.generated.js\");\n\nvar _dependenciesKronGenerated = require(\"./dependenciesAny/dependenciesKron.generated.js\");\n\nvar _dependenciesLN10Generated = require(\"./dependenciesAny/dependenciesLN10.generated.js\");\n\nvar _dependenciesLN2Generated = require(\"./dependenciesAny/dependenciesLN2.generated.js\");\n\nvar _dependenciesLOG10EGenerated = require(\"./dependenciesAny/dependenciesLOG10E.generated.js\");\n\nvar _dependenciesLOG2EGenerated = require(\"./dependenciesAny/dependenciesLOG2E.generated.js\");\n\nvar _dependenciesLargerGenerated = require(\"./dependenciesAny/dependenciesLarger.generated.js\");\n\nvar _dependenciesLargerEqGenerated = require(\"./dependenciesAny/dependenciesLargerEq.generated.js\");\n\nvar _dependenciesLcmGenerated = require(\"./dependenciesAny/dependenciesLcm.generated.js\");\n\nvar _dependenciesLeafCountGenerated = require(\"./dependenciesAny/dependenciesLeafCount.generated.js\");\n\nvar _dependenciesLeftShiftGenerated = require(\"./dependenciesAny/dependenciesLeftShift.generated.js\");\n\nvar _dependenciesLgammaGenerated = require(\"./dependenciesAny/dependenciesLgamma.generated.js\");\n\nvar _dependenciesLogGenerated = require(\"./dependenciesAny/dependenciesLog.generated.js\");\n\nvar _dependenciesLog10Generated = require(\"./dependenciesAny/dependenciesLog10.generated.js\");\n\nvar _dependenciesLog1pGenerated = require(\"./dependenciesAny/dependenciesLog1p.generated.js\");\n\nvar _dependenciesLog2Generated = require(\"./dependenciesAny/dependenciesLog2.generated.js\");\n\nvar _dependenciesLoschmidtGenerated = require(\"./dependenciesAny/dependenciesLoschmidt.generated.js\");\n\nvar _dependenciesLsolveGenerated = require(\"./dependenciesAny/dependenciesLsolve.generated.js\");\n\nvar _dependenciesLsolveAllGenerated = require(\"./dependenciesAny/dependenciesLsolveAll.generated.js\");\n\nvar _dependenciesLupGenerated = require(\"./dependenciesAny/dependenciesLup.generated.js\");\n\nvar _dependenciesLusolveGenerated = require(\"./dependenciesAny/dependenciesLusolve.generated.js\");\n\nvar _dependenciesMadGenerated = require(\"./dependenciesAny/dependenciesMad.generated.js\");\n\nvar _dependenciesMagneticConstantGenerated = require(\"./dependenciesAny/dependenciesMagneticConstant.generated.js\");\n\nvar _dependenciesMagneticFluxQuantumGenerated = require(\"./dependenciesAny/dependenciesMagneticFluxQuantum.generated.js\");\n\nvar _dependenciesMapGenerated = require(\"./dependenciesAny/dependenciesMap.generated.js\");\n\nvar _dependenciesMapTransformGenerated = require(\"./dependenciesAny/dependenciesMapTransform.generated.js\");\n\nvar _dependenciesMatrixGenerated = require(\"./dependenciesAny/dependenciesMatrix.generated.js\");\n\nvar _dependenciesMatrixClassGenerated = require(\"./dependenciesAny/dependenciesMatrixClass.generated.js\");\n\nvar _dependenciesMatrixFromColumnsGenerated = require(\"./dependenciesAny/dependenciesMatrixFromColumns.generated.js\");\n\nvar _dependenciesMatrixFromFunctionGenerated = require(\"./dependenciesAny/dependenciesMatrixFromFunction.generated.js\");\n\nvar _dependenciesMatrixFromRowsGenerated = require(\"./dependenciesAny/dependenciesMatrixFromRows.generated.js\");\n\nvar _dependenciesMaxGenerated = require(\"./dependenciesAny/dependenciesMax.generated.js\");\n\nvar _dependenciesMaxTransformGenerated = require(\"./dependenciesAny/dependenciesMaxTransform.generated.js\");\n\nvar _dependenciesMeanGenerated = require(\"./dependenciesAny/dependenciesMean.generated.js\");\n\nvar _dependenciesMeanTransformGenerated = require(\"./dependenciesAny/dependenciesMeanTransform.generated.js\");\n\nvar _dependenciesMedianGenerated = require(\"./dependenciesAny/dependenciesMedian.generated.js\");\n\nvar _dependenciesMinGenerated = require(\"./dependenciesAny/dependenciesMin.generated.js\");\n\nvar _dependenciesMinTransformGenerated = require(\"./dependenciesAny/dependenciesMinTransform.generated.js\");\n\nvar _dependenciesModGenerated = require(\"./dependenciesAny/dependenciesMod.generated.js\");\n\nvar _dependenciesModeGenerated = require(\"./dependenciesAny/dependenciesMode.generated.js\");\n\nvar _dependenciesMolarMassGenerated = require(\"./dependenciesAny/dependenciesMolarMass.generated.js\");\n\nvar _dependenciesMolarMassC12Generated = require(\"./dependenciesAny/dependenciesMolarMassC12.generated.js\");\n\nvar _dependenciesMolarPlanckConstantGenerated = require(\"./dependenciesAny/dependenciesMolarPlanckConstant.generated.js\");\n\nvar _dependenciesMolarVolumeGenerated = require(\"./dependenciesAny/dependenciesMolarVolume.generated.js\");\n\nvar _dependenciesMultinomialGenerated = require(\"./dependenciesAny/dependenciesMultinomial.generated.js\");\n\nvar _dependenciesMultiplyGenerated = require(\"./dependenciesAny/dependenciesMultiply.generated.js\");\n\nvar _dependenciesMultiplyScalarGenerated = require(\"./dependenciesAny/dependenciesMultiplyScalar.generated.js\");\n\nvar _dependenciesNaNGenerated = require(\"./dependenciesAny/dependenciesNaN.generated.js\");\n\nvar _dependenciesNeutronMassGenerated = require(\"./dependenciesAny/dependenciesNeutronMass.generated.js\");\n\nvar _dependenciesNodeGenerated = require(\"./dependenciesAny/dependenciesNode.generated.js\");\n\nvar _dependenciesNormGenerated = require(\"./dependenciesAny/dependenciesNorm.generated.js\");\n\nvar _dependenciesNotGenerated = require(\"./dependenciesAny/dependenciesNot.generated.js\");\n\nvar _dependenciesNthRootGenerated = require(\"./dependenciesAny/dependenciesNthRoot.generated.js\");\n\nvar _dependenciesNthRootsGenerated = require(\"./dependenciesAny/dependenciesNthRoots.generated.js\");\n\nvar _dependenciesNuclearMagnetonGenerated = require(\"./dependenciesAny/dependenciesNuclearMagneton.generated.js\");\n\nvar _dependenciesNullGenerated = require(\"./dependenciesAny/dependenciesNull.generated.js\");\n\nvar _dependenciesNumberGenerated = require(\"./dependenciesAny/dependenciesNumber.generated.js\");\n\nvar _dependenciesNumericGenerated = require(\"./dependenciesAny/dependenciesNumeric.generated.js\");\n\nvar _dependenciesObjectNodeGenerated = require(\"./dependenciesAny/dependenciesObjectNode.generated.js\");\n\nvar _dependenciesOctGenerated = require(\"./dependenciesAny/dependenciesOct.generated.js\");\n\nvar _dependenciesOnesGenerated = require(\"./dependenciesAny/dependenciesOnes.generated.js\");\n\nvar _dependenciesOperatorNodeGenerated = require(\"./dependenciesAny/dependenciesOperatorNode.generated.js\");\n\nvar _dependenciesOrGenerated = require(\"./dependenciesAny/dependenciesOr.generated.js\");\n\nvar _dependenciesParenthesisNodeGenerated = require(\"./dependenciesAny/dependenciesParenthesisNode.generated.js\");\n\nvar _dependenciesParseGenerated = require(\"./dependenciesAny/dependenciesParse.generated.js\");\n\nvar _dependenciesParserGenerated = require(\"./dependenciesAny/dependenciesParser.generated.js\");\n\nvar _dependenciesParserClassGenerated = require(\"./dependenciesAny/dependenciesParserClass.generated.js\");\n\nvar _dependenciesPartitionSelectGenerated = require(\"./dependenciesAny/dependenciesPartitionSelect.generated.js\");\n\nvar _dependenciesPermutationsGenerated = require(\"./dependenciesAny/dependenciesPermutations.generated.js\");\n\nvar _dependenciesPhiGenerated = require(\"./dependenciesAny/dependenciesPhi.generated.js\");\n\nvar _dependenciesPiGenerated = require(\"./dependenciesAny/dependenciesPi.generated.js\");\n\nvar _dependenciesPickRandomGenerated = require(\"./dependenciesAny/dependenciesPickRandom.generated.js\");\n\nvar _dependenciesPinvGenerated = require(\"./dependenciesAny/dependenciesPinv.generated.js\");\n\nvar _dependenciesPlanckChargeGenerated = require(\"./dependenciesAny/dependenciesPlanckCharge.generated.js\");\n\nvar _dependenciesPlanckConstantGenerated = require(\"./dependenciesAny/dependenciesPlanckConstant.generated.js\");\n\nvar _dependenciesPlanckLengthGenerated = require(\"./dependenciesAny/dependenciesPlanckLength.generated.js\");\n\nvar _dependenciesPlanckMassGenerated = require(\"./dependenciesAny/dependenciesPlanckMass.generated.js\");\n\nvar _dependenciesPlanckTemperatureGenerated = require(\"./dependenciesAny/dependenciesPlanckTemperature.generated.js\");\n\nvar _dependenciesPlanckTimeGenerated = require(\"./dependenciesAny/dependenciesPlanckTime.generated.js\");\n\nvar _dependenciesPowGenerated = require(\"./dependenciesAny/dependenciesPow.generated.js\");\n\nvar _dependenciesPrintGenerated = require(\"./dependenciesAny/dependenciesPrint.generated.js\");\n\nvar _dependenciesProdGenerated = require(\"./dependenciesAny/dependenciesProd.generated.js\");\n\nvar _dependenciesProtonMassGenerated = require(\"./dependenciesAny/dependenciesProtonMass.generated.js\");\n\nvar _dependenciesQrGenerated = require(\"./dependenciesAny/dependenciesQr.generated.js\");\n\nvar _dependenciesQuantileSeqGenerated = require(\"./dependenciesAny/dependenciesQuantileSeq.generated.js\");\n\nvar _dependenciesQuantumOfCirculationGenerated = require(\"./dependenciesAny/dependenciesQuantumOfCirculation.generated.js\");\n\nvar _dependenciesRandomGenerated = require(\"./dependenciesAny/dependenciesRandom.generated.js\");\n\nvar _dependenciesRandomIntGenerated = require(\"./dependenciesAny/dependenciesRandomInt.generated.js\");\n\nvar _dependenciesRangeGenerated = require(\"./dependenciesAny/dependenciesRange.generated.js\");\n\nvar _dependenciesRangeClassGenerated = require(\"./dependenciesAny/dependenciesRangeClass.generated.js\");\n\nvar _dependenciesRangeNodeGenerated = require(\"./dependenciesAny/dependenciesRangeNode.generated.js\");\n\nvar _dependenciesRangeTransformGenerated = require(\"./dependenciesAny/dependenciesRangeTransform.generated.js\");\n\nvar _dependenciesRationalizeGenerated = require(\"./dependenciesAny/dependenciesRationalize.generated.js\");\n\nvar _dependenciesReGenerated = require(\"./dependenciesAny/dependenciesRe.generated.js\");\n\nvar _dependenciesReducedPlanckConstantGenerated = require(\"./dependenciesAny/dependenciesReducedPlanckConstant.generated.js\");\n\nvar _dependenciesRelationalNodeGenerated = require(\"./dependenciesAny/dependenciesRelationalNode.generated.js\");\n\nvar _dependenciesReplacerGenerated = require(\"./dependenciesAny/dependenciesReplacer.generated.js\");\n\nvar _dependenciesReshapeGenerated = require(\"./dependenciesAny/dependenciesReshape.generated.js\");\n\nvar _dependenciesResizeGenerated = require(\"./dependenciesAny/dependenciesResize.generated.js\");\n\nvar _dependenciesResolveGenerated = require(\"./dependenciesAny/dependenciesResolve.generated.js\");\n\nvar _dependenciesResultSetGenerated = require(\"./dependenciesAny/dependenciesResultSet.generated.js\");\n\nvar _dependenciesReviverGenerated = require(\"./dependenciesAny/dependenciesReviver.generated.js\");\n\nvar _dependenciesRightArithShiftGenerated = require(\"./dependenciesAny/dependenciesRightArithShift.generated.js\");\n\nvar _dependenciesRightLogShiftGenerated = require(\"./dependenciesAny/dependenciesRightLogShift.generated.js\");\n\nvar _dependenciesRotateGenerated = require(\"./dependenciesAny/dependenciesRotate.generated.js\");\n\nvar _dependenciesRotationMatrixGenerated = require(\"./dependenciesAny/dependenciesRotationMatrix.generated.js\");\n\nvar _dependenciesRoundGenerated = require(\"./dependenciesAny/dependenciesRound.generated.js\");\n\nvar _dependenciesRowGenerated = require(\"./dependenciesAny/dependenciesRow.generated.js\");\n\nvar _dependenciesRowTransformGenerated = require(\"./dependenciesAny/dependenciesRowTransform.generated.js\");\n\nvar _dependenciesRydbergGenerated = require(\"./dependenciesAny/dependenciesRydberg.generated.js\");\n\nvar _dependenciesSQRT1_2Generated = require(\"./dependenciesAny/dependenciesSQRT1_2.generated.js\");\n\nvar _dependenciesSQRT2Generated = require(\"./dependenciesAny/dependenciesSQRT2.generated.js\");\n\nvar _dependenciesSackurTetrodeGenerated = require(\"./dependenciesAny/dependenciesSackurTetrode.generated.js\");\n\nvar _dependenciesSecGenerated = require(\"./dependenciesAny/dependenciesSec.generated.js\");\n\nvar _dependenciesSechGenerated = require(\"./dependenciesAny/dependenciesSech.generated.js\");\n\nvar _dependenciesSecondRadiationGenerated = require(\"./dependenciesAny/dependenciesSecondRadiation.generated.js\");\n\nvar _dependenciesSetCartesianGenerated = require(\"./dependenciesAny/dependenciesSetCartesian.generated.js\");\n\nvar _dependenciesSetDifferenceGenerated = require(\"./dependenciesAny/dependenciesSetDifference.generated.js\");\n\nvar _dependenciesSetDistinctGenerated = require(\"./dependenciesAny/dependenciesSetDistinct.generated.js\");\n\nvar _dependenciesSetIntersectGenerated = require(\"./dependenciesAny/dependenciesSetIntersect.generated.js\");\n\nvar _dependenciesSetIsSubsetGenerated = require(\"./dependenciesAny/dependenciesSetIsSubset.generated.js\");\n\nvar _dependenciesSetMultiplicityGenerated = require(\"./dependenciesAny/dependenciesSetMultiplicity.generated.js\");\n\nvar _dependenciesSetPowersetGenerated = require(\"./dependenciesAny/dependenciesSetPowerset.generated.js\");\n\nvar _dependenciesSetSizeGenerated = require(\"./dependenciesAny/dependenciesSetSize.generated.js\");\n\nvar _dependenciesSetSymDifferenceGenerated = require(\"./dependenciesAny/dependenciesSetSymDifference.generated.js\");\n\nvar _dependenciesSetUnionGenerated = require(\"./dependenciesAny/dependenciesSetUnion.generated.js\");\n\nvar _dependenciesSignGenerated = require(\"./dependenciesAny/dependenciesSign.generated.js\");\n\nvar _dependenciesSimplifyGenerated = require(\"./dependenciesAny/dependenciesSimplify.generated.js\");\n\nvar _dependenciesSimplifyCoreGenerated = require(\"./dependenciesAny/dependenciesSimplifyCore.generated.js\");\n\nvar _dependenciesSinGenerated = require(\"./dependenciesAny/dependenciesSin.generated.js\");\n\nvar _dependenciesSinhGenerated = require(\"./dependenciesAny/dependenciesSinh.generated.js\");\n\nvar _dependenciesSizeGenerated = require(\"./dependenciesAny/dependenciesSize.generated.js\");\n\nvar _dependenciesSluGenerated = require(\"./dependenciesAny/dependenciesSlu.generated.js\");\n\nvar _dependenciesSmallerGenerated = require(\"./dependenciesAny/dependenciesSmaller.generated.js\");\n\nvar _dependenciesSmallerEqGenerated = require(\"./dependenciesAny/dependenciesSmallerEq.generated.js\");\n\nvar _dependenciesSortGenerated = require(\"./dependenciesAny/dependenciesSort.generated.js\");\n\nvar _dependenciesSpaClassGenerated = require(\"./dependenciesAny/dependenciesSpaClass.generated.js\");\n\nvar _dependenciesSparseGenerated = require(\"./dependenciesAny/dependenciesSparse.generated.js\");\n\nvar _dependenciesSparseMatrixClassGenerated = require(\"./dependenciesAny/dependenciesSparseMatrixClass.generated.js\");\n\nvar _dependenciesSpeedOfLightGenerated = require(\"./dependenciesAny/dependenciesSpeedOfLight.generated.js\");\n\nvar _dependenciesSplitUnitGenerated = require(\"./dependenciesAny/dependenciesSplitUnit.generated.js\");\n\nvar _dependenciesSqrtGenerated = require(\"./dependenciesAny/dependenciesSqrt.generated.js\");\n\nvar _dependenciesSqrtmGenerated = require(\"./dependenciesAny/dependenciesSqrtm.generated.js\");\n\nvar _dependenciesSquareGenerated = require(\"./dependenciesAny/dependenciesSquare.generated.js\");\n\nvar _dependenciesSqueezeGenerated = require(\"./dependenciesAny/dependenciesSqueeze.generated.js\");\n\nvar _dependenciesStdGenerated = require(\"./dependenciesAny/dependenciesStd.generated.js\");\n\nvar _dependenciesStdTransformGenerated = require(\"./dependenciesAny/dependenciesStdTransform.generated.js\");\n\nvar _dependenciesStefanBoltzmannGenerated = require(\"./dependenciesAny/dependenciesStefanBoltzmann.generated.js\");\n\nvar _dependenciesStirlingS2Generated = require(\"./dependenciesAny/dependenciesStirlingS2.generated.js\");\n\nvar _dependenciesStringGenerated = require(\"./dependenciesAny/dependenciesString.generated.js\");\n\nvar _dependenciesSubsetGenerated = require(\"./dependenciesAny/dependenciesSubset.generated.js\");\n\nvar _dependenciesSubsetTransformGenerated = require(\"./dependenciesAny/dependenciesSubsetTransform.generated.js\");\n\nvar _dependenciesSubtractGenerated = require(\"./dependenciesAny/dependenciesSubtract.generated.js\");\n\nvar _dependenciesSumGenerated = require(\"./dependenciesAny/dependenciesSum.generated.js\");\n\nvar _dependenciesSumTransformGenerated = require(\"./dependenciesAny/dependenciesSumTransform.generated.js\");\n\nvar _dependenciesSymbolNodeGenerated = require(\"./dependenciesAny/dependenciesSymbolNode.generated.js\");\n\nvar _dependenciesSymbolicEqualGenerated = require(\"./dependenciesAny/dependenciesSymbolicEqual.generated.js\");\n\nvar _dependenciesTanGenerated = require(\"./dependenciesAny/dependenciesTan.generated.js\");\n\nvar _dependenciesTanhGenerated = require(\"./dependenciesAny/dependenciesTanh.generated.js\");\n\nvar _dependenciesTauGenerated = require(\"./dependenciesAny/dependenciesTau.generated.js\");\n\nvar _dependenciesThomsonCrossSectionGenerated = require(\"./dependenciesAny/dependenciesThomsonCrossSection.generated.js\");\n\nvar _dependenciesToGenerated = require(\"./dependenciesAny/dependenciesTo.generated.js\");\n\nvar _dependenciesTraceGenerated = require(\"./dependenciesAny/dependenciesTrace.generated.js\");\n\nvar _dependenciesTransposeGenerated = require(\"./dependenciesAny/dependenciesTranspose.generated.js\");\n\nvar _dependenciesTrueGenerated = require(\"./dependenciesAny/dependenciesTrue.generated.js\");\n\nvar _dependenciesTypeOfGenerated = require(\"./dependenciesAny/dependenciesTypeOf.generated.js\");\n\nvar _dependenciesTypedGenerated = require(\"./dependenciesAny/dependenciesTyped.generated.js\");\n\nvar _dependenciesUnaryMinusGenerated = require(\"./dependenciesAny/dependenciesUnaryMinus.generated.js\");\n\nvar _dependenciesUnaryPlusGenerated = require(\"./dependenciesAny/dependenciesUnaryPlus.generated.js\");\n\nvar _dependenciesUnequalGenerated = require(\"./dependenciesAny/dependenciesUnequal.generated.js\");\n\nvar _dependenciesUnitClassGenerated = require(\"./dependenciesAny/dependenciesUnitClass.generated.js\");\n\nvar _dependenciesUnitFunctionGenerated = require(\"./dependenciesAny/dependenciesUnitFunction.generated.js\");\n\nvar _dependenciesUppercaseEGenerated = require(\"./dependenciesAny/dependenciesUppercaseE.generated.js\");\n\nvar _dependenciesUppercasePiGenerated = require(\"./dependenciesAny/dependenciesUppercasePi.generated.js\");\n\nvar _dependenciesUsolveGenerated = require(\"./dependenciesAny/dependenciesUsolve.generated.js\");\n\nvar _dependenciesUsolveAllGenerated = require(\"./dependenciesAny/dependenciesUsolveAll.generated.js\");\n\nvar _dependenciesVacuumImpedanceGenerated = require(\"./dependenciesAny/dependenciesVacuumImpedance.generated.js\");\n\nvar _dependenciesVarianceGenerated = require(\"./dependenciesAny/dependenciesVariance.generated.js\");\n\nvar _dependenciesVarianceTransformGenerated = require(\"./dependenciesAny/dependenciesVarianceTransform.generated.js\");\n\nvar _dependenciesVersionGenerated = require(\"./dependenciesAny/dependenciesVersion.generated.js\");\n\nvar _dependenciesWeakMixingAngleGenerated = require(\"./dependenciesAny/dependenciesWeakMixingAngle.generated.js\");\n\nvar _dependenciesWienDisplacementGenerated = require(\"./dependenciesAny/dependenciesWienDisplacement.generated.js\");\n\nvar _dependenciesXgcdGenerated = require(\"./dependenciesAny/dependenciesXgcd.generated.js\");\n\nvar _dependenciesXorGenerated = require(\"./dependenciesAny/dependenciesXor.generated.js\");\n\nvar _dependenciesZerosGenerated = require(\"./dependenciesAny/dependenciesZeros.generated.js\");\n\nvar _allFactoriesAny = require(\"./allFactoriesAny.js\");","\"use strict\";\n\n// TODO: remove these polyfills as soon as we have a build process that transpiles the code to ES5\n// Polyfill for IE 11 (Number.isFinite is used in `complex.js`)\n// source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite\nNumber.isFinite = Number.isFinite || function (value) {\n return typeof value === 'number' && isFinite(value);\n}; // Polyfill for IE 11\n// source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN\n\n\nNumber.isNaN = Number.isNaN || function (value) {\n return value !== value; // eslint-disable-line no-self-compare\n};","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.mixin = mixin;\n\nvar _tinyEmitter = _interopRequireDefault(require(\"tiny-emitter\"));\n\n/**\n * Extend given object with emitter functions `on`, `off`, `once`, `emit`\n * @param {Object} obj\n * @return {Object} obj\n */\nfunction mixin(obj) {\n // create event emitter\n var emitter = new _tinyEmitter.default(); // bind methods to obj (we don't want to expose the emitter.e Array...)\n\n obj.on = emitter.on.bind(emitter);\n obj.off = emitter.off.bind(emitter);\n obj.once = emitter.once.bind(emitter);\n obj.emit = emitter.emit.bind(emitter);\n return obj;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.importFactory = importFactory;\n\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\n\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n\nvar _is = require(\"../../utils/is.js\");\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _object = require(\"../../utils/object.js\");\n\nvar _array = require(\"../../utils/array.js\");\n\nvar _ArgumentsError = require(\"../../error/ArgumentsError.js\");\n\nfunction importFactory(typed, load, math, importedFactories) {\n /**\n * Import functions from an object or a module.\n *\n * This function is only available on a mathjs instance created using `create`.\n *\n * Syntax:\n *\n * math.import(functions)\n * math.import(functions, options)\n *\n * Where:\n *\n * - `functions: Object`\n * An object with functions or factories to be imported.\n * - `options: Object` An object with import options. Available options:\n * - `override: boolean`\n * If true, existing functions will be overwritten. False by default.\n * - `silent: boolean`\n * If true, the function will not throw errors on duplicates or invalid\n * types. False by default.\n * - `wrap: boolean`\n * If true, the functions will be wrapped in a wrapper function\n * which converts data types like Matrix to primitive data types like Array.\n * The wrapper is needed when extending math.js with libraries which do not\n * support these data type. False by default.\n *\n * Examples:\n *\n * import { create, all } from 'mathjs'\n * import * as numbers from 'numbers'\n *\n * // create a mathjs instance\n * const math = create(all)\n *\n * // define new functions and variables\n * math.import({\n * myvalue: 42,\n * hello: function (name) {\n * return 'hello, ' + name + '!'\n * }\n * })\n *\n * // use the imported function and variable\n * math.myvalue * 2 // 84\n * math.hello('user') // 'hello, user!'\n *\n * // import the npm module 'numbers'\n * // (must be installed first with `npm install numbers`)\n * math.import(numbers, {wrap: true})\n *\n * math.fibonacci(7) // returns 13\n *\n * @param {Object | Array} functions Object with functions to be imported.\n * @param {Object} [options] Import options.\n */\n function mathImport(functions, options) {\n var num = arguments.length;\n\n if (num !== 1 && num !== 2) {\n throw new _ArgumentsError.ArgumentsError('import', num, 1, 2);\n }\n\n if (!options) {\n options = {};\n }\n\n function flattenImports(flatValues, value, name) {\n if (Array.isArray(value)) {\n value.forEach(function (item) {\n return flattenImports(flatValues, item);\n });\n } else if ((0, _typeof2.default)(value) === 'object') {\n for (var _name in value) {\n if ((0, _object.hasOwnProperty)(value, _name)) {\n flattenImports(flatValues, value[_name], _name);\n }\n }\n } else if ((0, _factory.isFactory)(value) || name !== undefined) {\n var flatName = (0, _factory.isFactory)(value) ? isTransformFunctionFactory(value) ? value.fn + '.transform' // TODO: this is ugly\n : value.fn : name; // we allow importing the same function twice if it points to the same implementation\n\n if ((0, _object.hasOwnProperty)(flatValues, flatName) && flatValues[flatName] !== value && !options.silent) {\n throw new Error('Cannot import \"' + flatName + '\" twice');\n }\n\n flatValues[flatName] = value;\n } else {\n if (!options.silent) {\n throw new TypeError('Factory, Object, or Array expected');\n }\n }\n }\n\n var flatValues = {};\n flattenImports(flatValues, functions);\n\n for (var name in flatValues) {\n if ((0, _object.hasOwnProperty)(flatValues, name)) {\n // console.log('import', name)\n var value = flatValues[name];\n\n if ((0, _factory.isFactory)(value)) {\n // we ignore name here and enforce the name of the factory\n // maybe at some point we do want to allow overriding it\n // in that case we can implement an option overrideFactoryNames: true\n _importFactory(value, options);\n } else if (isSupportedType(value)) {\n _import(name, value, options);\n } else {\n if (!options.silent) {\n throw new TypeError('Factory, Object, or Array expected');\n }\n }\n }\n }\n }\n /**\n * Add a property to the math namespace\n * @param {string} name\n * @param {*} value\n * @param {Object} options See import for a description of the options\n * @private\n */\n\n\n function _import(name, value, options) {\n // TODO: refactor this function, it's to complicated and contains duplicate code\n if (options.wrap && typeof value === 'function') {\n // create a wrapper around the function\n value = _wrap(value);\n } // turn a plain function with a typed-function signature into a typed-function\n\n\n if (hasTypedFunctionSignature(value)) {\n value = typed(name, (0, _defineProperty2.default)({}, value.signature, value));\n }\n\n if (isTypedFunction(math[name]) && isTypedFunction(value)) {\n if (options.override) {\n // give the typed function the right name\n value = typed(name, value.signatures);\n } else {\n // merge the existing and typed function\n value = typed(math[name], value);\n }\n\n math[name] = value;\n delete importedFactories[name];\n\n _importTransform(name, value);\n\n math.emit('import', name, function resolver() {\n return value;\n });\n return;\n }\n\n if (math[name] === undefined || options.override) {\n math[name] = value;\n delete importedFactories[name];\n\n _importTransform(name, value);\n\n math.emit('import', name, function resolver() {\n return value;\n });\n return;\n }\n\n if (!options.silent) {\n throw new Error('Cannot import \"' + name + '\": already exists');\n }\n }\n\n function _importTransform(name, value) {\n if (value && typeof value.transform === 'function') {\n math.expression.transform[name] = value.transform;\n\n if (allowedInExpressions(name)) {\n math.expression.mathWithTransform[name] = value.transform;\n }\n } else {\n // remove existing transform\n delete math.expression.transform[name];\n\n if (allowedInExpressions(name)) {\n math.expression.mathWithTransform[name] = value;\n }\n }\n }\n\n function _deleteTransform(name) {\n delete math.expression.transform[name];\n\n if (allowedInExpressions(name)) {\n math.expression.mathWithTransform[name] = math[name];\n } else {\n delete math.expression.mathWithTransform[name];\n }\n }\n /**\n * Create a wrapper a round an function which converts the arguments\n * to their primitive values (like convert a Matrix to Array)\n * @param {Function} fn\n * @return {Function} Returns the wrapped function\n * @private\n */\n\n\n function _wrap(fn) {\n var wrapper = function wrapper() {\n var args = [];\n\n for (var i = 0, len = arguments.length; i < len; i++) {\n var arg = arguments[i];\n args[i] = arg && arg.valueOf();\n }\n\n return fn.apply(math, args);\n };\n\n if (fn.transform) {\n wrapper.transform = fn.transform;\n }\n\n return wrapper;\n }\n /**\n * Import an instance of a factory into math.js\n * @param {function(scope: object)} factory\n * @param {Object} options See import for a description of the options\n * @param {string} [name=factory.name] Optional custom name\n * @private\n */\n\n\n function _importFactory(factory, options) {\n var name = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : factory.fn;\n\n if ((0, _array.contains)(name, '.')) {\n throw new Error('Factory name should not contain a nested path. ' + 'Name: ' + JSON.stringify(name));\n }\n\n var namespace = isTransformFunctionFactory(factory) ? math.expression.transform : math;\n var existingTransform = (name in math.expression.transform);\n var existing = (0, _object.hasOwnProperty)(namespace, name) ? namespace[name] : undefined;\n\n var resolver = function resolver() {\n // collect all dependencies, handle finding both functions and classes and other special cases\n var dependencies = {};\n factory.dependencies.map(_factory.stripOptionalNotation).forEach(function (dependency) {\n if ((0, _array.contains)(dependency, '.')) {\n throw new Error('Factory dependency should not contain a nested path. ' + 'Name: ' + JSON.stringify(dependency));\n }\n\n if (dependency === 'math') {\n dependencies.math = math;\n } else if (dependency === 'mathWithTransform') {\n dependencies.mathWithTransform = math.expression.mathWithTransform;\n } else if (dependency === 'classes') {\n // special case for json reviver\n dependencies.classes = math;\n } else {\n dependencies[dependency] = math[dependency];\n }\n });\n var instance = /* #__PURE__ */factory(dependencies);\n\n if (instance && typeof instance.transform === 'function') {\n throw new Error('Transforms cannot be attached to factory functions. ' + 'Please create a separate function for it with exports.path=\"expression.transform\"');\n }\n\n if (existing === undefined || options.override) {\n return instance;\n }\n\n if (isTypedFunction(existing) && isTypedFunction(instance)) {\n // merge the existing and new typed function\n return typed(existing, instance);\n }\n\n if (options.silent) {\n // keep existing, ignore imported function\n return existing;\n } else {\n throw new Error('Cannot import \"' + name + '\": already exists');\n }\n }; // TODO: add unit test with non-lazy factory\n\n\n if (!factory.meta || factory.meta.lazy !== false) {\n (0, _object.lazy)(namespace, name, resolver); // FIXME: remove the `if (existing &&` condition again. Can we make sure subset is loaded before subset.transform? (Name collision, and no dependencies between the two)\n\n if (existing && existingTransform) {\n _deleteTransform(name);\n } else {\n if (isTransformFunctionFactory(factory) || factoryAllowedInExpressions(factory)) {\n (0, _object.lazy)(math.expression.mathWithTransform, name, function () {\n return namespace[name];\n });\n }\n }\n } else {\n namespace[name] = resolver(); // FIXME: remove the `if (existing &&` condition again. Can we make sure subset is loaded before subset.transform? (Name collision, and no dependencies between the two)\n\n if (existing && existingTransform) {\n _deleteTransform(name);\n } else {\n if (isTransformFunctionFactory(factory) || factoryAllowedInExpressions(factory)) {\n (0, _object.lazy)(math.expression.mathWithTransform, name, function () {\n return namespace[name];\n });\n }\n }\n } // TODO: improve factories, store a list with imports instead which can be re-played\n\n\n importedFactories[name] = factory;\n math.emit('import', name, resolver);\n }\n /**\n * Check whether given object is a type which can be imported\n * @param {Function | number | string | boolean | null | Unit | Complex} object\n * @return {boolean}\n * @private\n */\n\n\n function isSupportedType(object) {\n return typeof object === 'function' || typeof object === 'number' || typeof object === 'string' || typeof object === 'boolean' || object === null || (0, _is.isUnit)(object) || (0, _is.isComplex)(object) || (0, _is.isBigNumber)(object) || (0, _is.isFraction)(object) || (0, _is.isMatrix)(object) || Array.isArray(object);\n }\n /**\n * Test whether a given thing is a typed-function\n * @param {*} fn\n * @return {boolean} Returns true when `fn` is a typed-function\n */\n\n\n function isTypedFunction(fn) {\n return typeof fn === 'function' && (0, _typeof2.default)(fn.signatures) === 'object';\n }\n\n function hasTypedFunctionSignature(fn) {\n return typeof fn === 'function' && typeof fn.signature === 'string';\n }\n\n function allowedInExpressions(name) {\n return !(0, _object.hasOwnProperty)(unsafe, name);\n }\n\n function factoryAllowedInExpressions(factory) {\n return factory.fn.indexOf('.') === -1 && // FIXME: make checking on path redundant, check on meta data instead\n !(0, _object.hasOwnProperty)(unsafe, factory.fn) && (!factory.meta || !factory.meta.isClass);\n }\n\n function isTransformFunctionFactory(factory) {\n return factory !== undefined && factory.meta !== undefined && factory.meta.isTransformFunction === true || false;\n } // namespaces and functions not available in the parser for safety reasons\n\n\n var unsafe = {\n expression: true,\n type: true,\n docs: true,\n error: true,\n json: true,\n chain: true // chain method not supported. Note that there is a unit chain too.\n\n };\n return mathImport;\n}","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _typeof = require(\"@babel/runtime/helpers/typeof\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = create;\n\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\n\nrequire(\"./../utils/polyfills.js\");\n\nvar _object = require(\"../utils/object.js\");\n\nvar emitter = _interopRequireWildcard(require(\"./../utils/emitter.js\"));\n\nvar _import = require(\"./function/import.js\");\n\nvar _config = require(\"./function/config.js\");\n\nvar _factory = require(\"../utils/factory.js\");\n\nvar _is = require(\"../utils/is.js\");\n\nvar _ArgumentsError = require(\"../error/ArgumentsError.js\");\n\nvar _DimensionError = require(\"../error/DimensionError.js\");\n\nvar _IndexError = require(\"../error/IndexError.js\");\n\nvar _config2 = require(\"./config.js\");\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\n\n/**\n * Create a mathjs instance from given factory functions and optionally config\n *\n * Usage:\n *\n * const mathjs1 = create({ createAdd, createMultiply, ...})\n * const config = { number: 'BigNumber' }\n * const mathjs2 = create(all, config)\n *\n * @param {Object} [factories] An object with factory functions\n * The object can contain nested objects,\n * all nested objects will be flattened.\n * @param {Object} [config] Available options:\n * {number} epsilon\n * Minimum relative difference between two\n * compared values, used by all comparison functions.\n * {string} matrix\n * A string 'Matrix' (default) or 'Array'.\n * {string} number\n * A string 'number' (default), 'BigNumber', or 'Fraction'\n * {number} precision\n * The number of significant digits for BigNumbers.\n * Not applicable for Numbers.\n * {boolean} predictable\n * Predictable output type of functions. When true,\n * output type depends only on the input types. When\n * false (default), output type can vary depending\n * on input values. For example `math.sqrt(-4)`\n * returns `complex('2i')` when predictable is false, and\n * returns `NaN` when true.\n * {string} randomSeed\n * Random seed for seeded pseudo random number generator.\n * Set to null to randomly seed.\n * @returns {Object} Returns a bare-bone math.js instance containing\n * functions:\n * - `import` to add new functions\n * - `config` to change configuration\n * - `on`, `off`, `once`, `emit` for events\n */\nfunction create(factories, config) {\n var configInternal = (0, _extends2.default)({}, _config2.DEFAULT_CONFIG, config); // simple test for ES5 support\n\n if (typeof Object.create !== 'function') {\n throw new Error('ES5 not supported by this JavaScript engine. ' + 'Please load the es5-shim and es5-sham library for compatibility.');\n } // create the mathjs instance\n\n\n var math = emitter.mixin({\n // only here for backward compatibility for legacy factory functions\n isNumber: _is.isNumber,\n isComplex: _is.isComplex,\n isBigNumber: _is.isBigNumber,\n isFraction: _is.isFraction,\n isUnit: _is.isUnit,\n isString: _is.isString,\n isArray: _is.isArray,\n isMatrix: _is.isMatrix,\n isCollection: _is.isCollection,\n isDenseMatrix: _is.isDenseMatrix,\n isSparseMatrix: _is.isSparseMatrix,\n isRange: _is.isRange,\n isIndex: _is.isIndex,\n isBoolean: _is.isBoolean,\n isResultSet: _is.isResultSet,\n isHelp: _is.isHelp,\n isFunction: _is.isFunction,\n isDate: _is.isDate,\n isRegExp: _is.isRegExp,\n isObject: _is.isObject,\n isNull: _is.isNull,\n isUndefined: _is.isUndefined,\n isAccessorNode: _is.isAccessorNode,\n isArrayNode: _is.isArrayNode,\n isAssignmentNode: _is.isAssignmentNode,\n isBlockNode: _is.isBlockNode,\n isConditionalNode: _is.isConditionalNode,\n isConstantNode: _is.isConstantNode,\n isFunctionAssignmentNode: _is.isFunctionAssignmentNode,\n isFunctionNode: _is.isFunctionNode,\n isIndexNode: _is.isIndexNode,\n isNode: _is.isNode,\n isObjectNode: _is.isObjectNode,\n isOperatorNode: _is.isOperatorNode,\n isParenthesisNode: _is.isParenthesisNode,\n isRangeNode: _is.isRangeNode,\n isSymbolNode: _is.isSymbolNode,\n isChain: _is.isChain\n }); // load config function and apply provided config\n\n math.config = (0, _config.configFactory)(configInternal, math.emit);\n math.expression = {\n transform: {},\n mathWithTransform: {\n config: math.config\n }\n }; // cached factories and instances used by function load\n\n var legacyFactories = [];\n var legacyInstances = [];\n /**\n * Load a function or data type from a factory.\n * If the function or data type already exists, the existing instance is\n * returned.\n * @param {Function} factory\n * @returns {*}\n */\n\n function load(factory) {\n if ((0, _factory.isFactory)(factory)) {\n return factory(math);\n }\n\n var firstProperty = factory[Object.keys(factory)[0]];\n\n if ((0, _factory.isFactory)(firstProperty)) {\n return firstProperty(math);\n }\n\n if (!(0, _object.isLegacyFactory)(factory)) {\n console.warn('Factory object with properties `type`, `name`, and `factory` expected', factory);\n throw new Error('Factory object with properties `type`, `name`, and `factory` expected');\n }\n\n var index = legacyFactories.indexOf(factory);\n var instance;\n\n if (index === -1) {\n // doesn't yet exist\n if (factory.math === true) {\n // pass with math namespace\n instance = factory.factory(math.type, configInternal, load, math.typed, math);\n } else {\n instance = factory.factory(math.type, configInternal, load, math.typed);\n } // append to the cache\n\n\n legacyFactories.push(factory);\n legacyInstances.push(instance);\n } else {\n // already existing function, return the cached instance\n instance = legacyInstances[index];\n }\n\n return instance;\n }\n\n var importedFactories = {}; // load the import function\n\n function lazyTyped() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return math.typed.apply(math.typed, args);\n }\n\n var internalImport = (0, _import.importFactory)(lazyTyped, load, math, importedFactories);\n math.import = internalImport; // listen for changes in config, import all functions again when changed\n // TODO: move this listener into the import function?\n\n math.on('config', function () {\n (0, _object.values)(importedFactories).forEach(function (factory) {\n if (factory && factory.meta && factory.meta.recreateOnConfigChange) {\n // FIXME: only re-create when the current instance is the same as was initially created\n // FIXME: delete the functions/constants before importing them again?\n internalImport(factory, {\n override: true\n });\n }\n });\n }); // the create function exposed on the mathjs instance is bound to\n // the factory functions passed before\n\n math.create = create.bind(null, factories); // export factory function\n\n math.factory = _factory.factory; // import the factory functions like createAdd as an array instead of object,\n // else they will get a different naming (`createAdd` instead of `add`).\n\n math.import((0, _object.values)((0, _object.deepFlatten)(factories)));\n math.ArgumentsError = _ArgumentsError.ArgumentsError;\n math.DimensionError = _DimensionError.DimensionError;\n math.IndexError = _IndexError.IndexError;\n return math;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _exportNames = {\n config: true,\n IndexError: true,\n DimensionError: true,\n ArgumentsError: true,\n create: true,\n factory: true\n};\nObject.defineProperty(exports, \"ArgumentsError\", {\n enumerable: true,\n get: function get() {\n return _ArgumentsError.ArgumentsError;\n }\n});\nObject.defineProperty(exports, \"DimensionError\", {\n enumerable: true,\n get: function get() {\n return _DimensionError.DimensionError;\n }\n});\nObject.defineProperty(exports, \"IndexError\", {\n enumerable: true,\n get: function get() {\n return _IndexError.IndexError;\n }\n});\nObject.defineProperty(exports, \"config\", {\n enumerable: true,\n get: function get() {\n return _configReadonly.config;\n }\n});\nObject.defineProperty(exports, \"create\", {\n enumerable: true,\n get: function get() {\n return _create.create;\n }\n});\nObject.defineProperty(exports, \"factory\", {\n enumerable: true,\n get: function get() {\n return _factory.factory;\n }\n});\n\nvar _configReadonly = require(\"./configReadonly.js\");\n\nvar _pureFunctionsAnyGenerated = require(\"./pureFunctionsAny.generated.js\");\n\nObject.keys(_pureFunctionsAnyGenerated).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _pureFunctionsAnyGenerated[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _pureFunctionsAnyGenerated[key];\n }\n });\n});\n\nvar _impureFunctionsAnyGenerated = require(\"./impureFunctionsAny.generated.js\");\n\nObject.keys(_impureFunctionsAnyGenerated).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _impureFunctionsAnyGenerated[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _impureFunctionsAnyGenerated[key];\n }\n });\n});\n\nvar _typeChecks = require(\"./typeChecks.js\");\n\nObject.keys(_typeChecks).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _typeChecks[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _typeChecks[key];\n }\n });\n});\n\nvar _IndexError = require(\"../error/IndexError.js\");\n\nvar _DimensionError = require(\"../error/DimensionError.js\");\n\nvar _ArgumentsError = require(\"../error/ArgumentsError.js\");\n\nvar _dependenciesAnyGenerated = require(\"./dependenciesAny.generated.js\");\n\nObject.keys(_dependenciesAnyGenerated).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _dependenciesAnyGenerated[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _dependenciesAnyGenerated[key];\n }\n });\n});\n\nvar _factoriesAny = require(\"../factoriesAny.js\");\n\nObject.keys(_factoriesAny).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n if (key in exports && exports[key] === _factoriesAny[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _factoriesAny[key];\n }\n });\n});\n\nvar _create = require(\"../core/create.js\");\n\nvar _factory = require(\"../utils/factory.js\");","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mainAny = require(\"./entry/mainAny.js\");\n\nObject.keys(_mainAny).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (key in exports && exports[key] === _mainAny[key]) return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _mainAny[key];\n }\n });\n});"],"names":["config","DEFAULT_CONFIG","_interopRequireDefault","require$$0","is","isAccessorNode","isArrayNode","isAssignmentNode","isBigNumber","isBlockNode","isBoolean","isChain","isCollection","isComplex","isConditionalNode","isConstantNode","isDate","isDenseMatrix","isFraction","isFunction","isFunctionAssignmentNode","isFunctionNode","isHelp","isIndex","isIndexNode","isMatrix","isNode","isNull","isNumber","isObject","isObjectNode","isOperatorNode","isParenthesisNode","isRange","isRangeNode","isRegExp","isResultSet","isSparseMatrix","isString","isSymbolNode","isUndefined","isUnit","typeOf","_typeof2","require$$1","x","isArray","t","object","canDefineProperty","clone","deepExtend","deepFlatten","deepStrictEqual","extend","get","hasOwnProperty","isLegacyFactory","lazy","mapObject","pick","pickShallow","set","traverse","values","_is","require$$2","type","value","callback","key","a","b","prop","i","len","nestedObject","flattenedObject","_deepFlatten","valueResolver","_uninitialized","_value","path","obj","property","isPath","child","lastKey","properties","transform","copy","str","configFactory","_object","_config2","MATRIX_OPTIONS","NUMBER_OPTIONS","emit","_config","options","prev","validateOption","curr","changes","contains","array","item","name","configReadonly","_extends2","require$$3","number","copysign","digits","format","isInteger","nearlyEqual","roundDigits","splitNumber","toEngineering","toExponential","toFixed","toPrecision","sign","log2","log10","log1p","cbrt","negate","result","expm1","formatNumberToBase","n","base","size","prefixes","prefix","suffix","notation","precision","wordSize","e","match","exponent","dot","coefficients","zeros","d","split","rounded","c","newExp","missingZeros","expDiff","decimalIdx","decimals","decimalVal","splitValue","p","pp","first","lowerExp","upperExp","removed","length","arr","DBL_EPSILON","y","epsilon","diff","acosh","asinh","atanh","cosh","sinh","tanh","signx","signy","formatter","_number","formatBigNumberToBase","BigNumberCtor","big2","exp","valueWithoutExp","valueStr","string","compareText","endsWith","escape","stringify","_formatter","require$$4","text","search","start","end","_format","looksLikeFraction","formatArray","entries","escaped","DimensionError_1","DimensionError","actual","expected","relation","IndexError_1","IndexError","index","min","max","arraySize","filter","filterRegExp","flatten","forEach","generalize","getArrayDataType","identify","initial","join","last","map","processSizesWildcard","reshape","resize","squeeze","unsqueeze","validate","validateIndex","_string","_DimensionError","_IndexError","s","_validate","dim","dimNext","isScalar","defaultValue","_defaultValue","_resize","elem","oldLen","newLen","minLen","sizes","flatArray","currentLength","newLength","product","_reshape","processedSizes","WILDCARD","wildCardIndex","isMoreThanOneWildcard","hasWildcard","canReplaceWildcard","tmpArray","tmpArray2","sizeIndex","dims","_squeeze","ii","next","outer","_unsqueeze","flat","regexp","entry","separator","count","itemType","factory_1","assertDependencies","create","factory","isFactory","isOptionalDependency","sortFactories","stripOptionalNotation","_array","dependencies","meta","assertAndCreate","scope","deps","factories","factoriesByName","containsDependency","dependency","sorted","addFactory","allDefined","missingDependencies","customs","getSafeProperties","getSafeProperty","hasSafeProperty","isPlainObject","isSafeMethod","isSafeProperty","setSafeProperty","validateSafeMethod","safeNativeProperties","method","safeNativeMethods","assign","createEmptyMap","createMap","isMap","toObject","_classCallCheck2","_createClass2","_customs","_createForOfIteratorHelper","o","allowArrayLike","it","_unsupportedIterableToArray","F","_e","normalCompletion","didErr","err","step","_e2","_arrayLikeToArray","arr2","ObjectWrappingMap","mapOrObject","_iterator","_step","_len","objects","_key","_i","_objects","args","_iterator2","_step2","_i2","_Object$keys","_key2","typed","_typedFunction","_factory","_map","require$$5","_createTyped2","createTyped","_ref","BigNumber","Complex","DenseMatrix","Fraction","throwNoBignumber","throwNoComplex","throwNoFraction","f","throwNoMatrix","matrix","ResultSet","createResultSet","json","_decimal","createBigNumberClass","on","_complex","createComplexClass","im","re","strRe","strIm","arg","r","phi","_fraction","createFractionClass","Range","createRangeClass","hasStart","hasEnd","hasStep","nums","invalid","num","Matrix","createMatrixClass","data","datatype","replacement","skipZeros","_regenerator","require$$6","require$$7","require$$8","createDenseMatrixClass","preprocess","_get","_set","indexI","_fit","_getSubmatrix","range","submatrix","iSize","sSize","_setSubmatrix","dataIndex","subIndex","sizeArray","m","newSize","changed","me","recurse","_callee","_context2","_context","row","_this","_loop","col","k","kSuper","kSub","rows","columns","ms","j","vi","createClone","_switch_1","_switch","mat","I","J","ret","tmp","collection","containsCollections","deepForEach","deepMap","reduce","scatter","_switch2","_reduce","val","tran","w","u","mark","cindex","inverse","update","avalues","aindex","aptr","k0","k1","_collection","createIsInteger","arithmetic","absNumber","addNumber","cbrtNumber","cubeNumber","divideNumber","expNumber","expm1Number","gcdNumber","lcmNumber","log10Number","log1pNumber","log2Number","logNumber","modNumber","multiplyNumber","normNumber","nthRootNumber","powNumber","roundNumber","signNumber","sqrtNumber","squareNumber","subtractNumber","unaryMinusNumber","unaryPlusNumber","xgcdNumber","n1","n2","prod","root","inv","q","lastx","lasty","res","bitwise","bitAndNumber","bitNotNumber","bitOrNumber","bitXorNumber","leftShiftNumber","rightArithShiftNumber","rightLogShiftNumber","product_1","half","combinations","combinationsNumber","_product","nMinusk","answer","firstnumerator","nextdivisor","lastdivisor","nextnumerator","constants","pi","tau","logical","andNumber","notNumber","orNumber","xorNumber","probability","gammaNumber","lgammaNumber","twoN","threeN","fourN","fiveN","gammaP","gammaG","lnSqrt2PI","lgammaG","lgammaN","lgammaSeries","sum","trigonometry","acosNumber","acoshNumber","acotNumber","acothNumber","acscNumber","acschNumber","asecNumber","asechNumber","asinNumber","asinhNumber","atan2Number","atanNumber","atanhNumber","cosNumber","coshNumber","cotNumber","cothNumber","cscNumber","cschNumber","secNumber","sechNumber","sinNumber","sinhNumber","tanNumber","tanhNumber","xInv","utils","isIntegerNumber","isNaNNumber","isNegativeNumber","isPositiveNumber","isZeroNumber","exports","_arithmetic","_bitwise","_combinations","_constants","_logical","_relational","_probability","_trigonometry","_utils","isNegative","_index","createIsNegative","isNumeric","createIsNumeric","hasNumericValue","createHasNumericValue","isPositive","createIsPositive","isZero","createIsZero","_isNaN","createIsNaN","createTypeOf","nearlyEqual_1","complex","complexEquals","equalScalar","_nearlyEqual","createEqualScalar","createEqualScalarNumber","_ref2","SparseMatrix","createSparseMatrixClass","_createFromMatrix","_createFromArray","source","eq","zero","v","_getsubset","_setsubset","idx","kk","mvalues","mindex","mptr","pv","ptr","firstDimensionRange","secondDimensionRange","firstDataIndex","firstSubIndex","secondDataIndex","secondSubIndex","_getValueIndex","_remove","_insert","top","bottom","ins","colIndex","rowIndex","r1","c1","h","_i3","_j","invoke","minRow","maxRow","minColumn","maxColumn","_values","_k","_i4","_i5","_k2","_i6","_i7","_toArray","density","kx","ky","vx","vy","getNonDecimalNumberParts","input","nonDecimalWithRadixMatch","radix","integerPart","fractionalPart","makeNumberFromNonDecimalParts","parts","digitValue","createNumber","nonDecimalNumberParts","wordSizeSuffixMatch","unit","valuelessUnit","createString","boolean","createBoolean","lcase","bignumber","createBignumber","twoPowSize","twoPowSizeSubOne","createComplex","fraction","createFraction","numerator","denominator","createMatrix","_create","matrixFromFunction","createMatrixFromFunction","fn","_","matrixFromRows","createMatrixFromRows","_createArray","N","checkVectorTypeAndReturnLength","rowLength","vec","matrixFromColumns","createMatrixFromColumns","colLength","splitUnit","createSplitUnit","unaryMinus","createUnaryMinus","unaryPlus","createUnaryPlus","abs","createAbs","apply","createApply","_apply","addScalar","createAddScalar","createCbrt","_cbrtComplex","_cbrtUnit","allRoots","arg3","principal","all","third","_result","algorithm11","createAlgorithm11","asize","adt","dt","cf","cvalues","cptr","algorithm12","createAlgorithm12","cdata","algorithm14","createAlgorithm14","adata","_iterate","level","av","bv","cv","ceil","_slicedToArray2","_algorithm","_algorithm2","_algorithm3","require$$9","createCeilNumber","round","_split","_split2","_split3","_split4","createCeil","ceilNumber","cube","createCube","createExp","createExpm1","_Complex","fix","createFixNumber","floor","createFix","fixNumber","bn","createFloorNumber","createFloor","floorNumber","algorithm01","createAlgorithm01","denseMatrix","sparseMatrix","bvalues","bindex","bptr","bsize","bdt","algorithm04","createAlgorithm04","xa","xb","wa","wb","algorithm10","createAlgorithm10","algorithm13","createAlgorithm13","bdata","csize","gcd","_algorithm4","_algorithm5","createGcd","_gcdBigNumber","algorithm02","createAlgorithm02","cij","algorithm06","createAlgorithm06","lcm","createLcm","_lcmBigNumber","createLog10","createLog2","_log2Complex","newX","algorithm03","createAlgorithm03","z","algorithm05","createAlgorithm05","wai","wbi","va","vb","vc","mod","_algorithm6","_algorithm7","createMod","multiplyScalar","createMultiplyScalar","multiply","createMultiply","_validateMatrixDimensions","size1","size2","_multiplyVectorVector","_multiplyVectorMatrix","_multiplyVectorDenseMatrix","alength","bcolumns","af","mf","_multiplyMatrixVector","_multiplyDenseMatrixVector","_multiplySparseMatrixVector","_multiplyMatrixMatrix","_multiplyDenseMatrixDenseMatrix","_multiplyDenseMatrixSparseMatrix","_multiplySparseMatrixDenseMatrix","_multiplySparseMatrixSparseMatrix","arows","acolumns","jb","kb0","kb1","kb","ib","brows","vbi","ka0","ka1","ka","ia","p1","ic","vbij","p0","xsize","ysize","rest","nthRoot","createNthRoot","_BigNumber","complexErr","_bigNthRoot","Big","one","createNthRootNumber","createSign","_Fraction","sqrt","createSqrt","_sqrtNumber","square","createSquare","subtract","createSubtract","checkEqualDimensions","xgcd","createXgcd","_xgcdBigNumber","invmod","createInvmod","equal","smaller","add","_res","_res2","algorithm09","createAlgorithm09","dotMultiply","createDotMultiply","bitwise_1","bitAndBigNumber","bitNotBigNumber","bitOrBigNumber","bitXor","leftShiftBigNumber","rightArithShiftBigNumber","prevPrec","negOne","func","xBits","yBits","xSign","ySign","decCoefficientToBinaryString","minBits","maxBits","minSign","shortLen","longLen","expFuncVal","outVal","twoPower","two","xe","strL","arrL","bitAnd","createBitAnd","bitNot","createBitNot","bitOr","createBitOr","algorithm07","createAlgorithm07","_scatter","createBitXor","createArg","conj","createConj","createIm","createRe","not","createNot","or","createOr","xor","createXor","concat","createConcat","prevDim","asMatrix","matrices","_concat","concatDim","column","createColumn","Index","_column","rowRange","createCount","cross","createCross","_cross","highestDimension","xSize","ySize","diag","createDiag","_diag","_createDiagonalMatrix","_getDiagonal","l","dm","vector","lruQueue_1","lruQueue","limit","queue","del","id","oldIndex","nuIndex","_function","maxArgumentCount","memoize","memoizeCompare","_lruQueue","hasher","hash","newVal","isEqual","cached","signature","createFilter","_filterCallback","test","createFlatten","createForEach","_forEach","getMatrixDataType","createGetMatrixDataType","identity","createIdentity","_identity","cols","_identityVector","minimum","kron","createKron","_kron","newmsg","indexString","createDiff","_diff","_recursive","element","_ElementDiff","obj1","obj2","obj1IsArray","obj2IsArray","_ArrayDiff","arr1","ones","createOnes","_ones","hasBigNumbers","_normalize","noop","noBignumber","noFraction","noIndex","noMatrix","noSubset","_noop","createRange","smallerEq","larger","largerEq","_strRange","_out","_rangeEx","includeEnd","_rangeInc","_bigRangeEx","_bigRangeInc","_parse","createReshape","ArgumentsError_1","ArgumentsError","_ArgumentsError","createResize","_resizeString","defaultChar","rotate","createRotate","rotationMatrix","theta","_validateSize","matrixRes","expectedSize","actualSize","createRotationMatrix","norm","cos","sin","_rotationMatrix2x2","matrixV","_validateVector","_rotationMatrix3x3","storageType","minusOne","cosTheta","sinTheta","_convertToFormat","_mul","normV","vz","oneMinusC","r11","r12","r13","r21","r22","r23","r31","r32","r33","createRow","_row","columnRange","createSize","createSqueeze","subset","createSubset","_getObjectProperty","_getSubstring","_setSubstring","_setObjectProperty","strLen","substr","chars","updated","transpose","createTranspose","_denseTranspose","_sparseTranspose","transposed","transposedRow","ctranspose","createCtranspose","createZeros","_zeros","fft","_toConsumableArray2","createFft","divideScalar","_ndFft","_fft","_1dFft","slice","_transpose","ifft","createIfft","dotDivide","acc","erf","createErf","MAX_NUM","THRESH","erf1","erfc2","erfc3","ysq","xnum","P","xden","Q","SQRPI","mode","createMode","isNaN","_mode","improveErrorMessage_1","improveErrorMessage","fnName","details","_improveErrorMessage","createProd","numeric","_prod","createFormat","bin","createBin","oct","createOct","hex","createHex","print","createPrint","_print","template","original","keys","to","createTo","isPrime","createIsPrime","modPow","modulus","accumulator","Decimal","bases","adn","_x","createNumeric","validInputTypes","validOutputTypes","outputType","inputType","createDivideScalar","pow","createPow","_pow","_powArray","_powMatrix","yFrac","yNum","error","px","NO_INT","createRound","_n","log","createLog","createLog1p","_log1pComplex","xRe1p","nthRoots","createNthRoots","_calculateExactResult","_nthComplexRoots","aIsNumeric","offset","roots","halfPiFactor","dotPow","createDotPow","createDotDivide","solveValidation","createSolveValidation","mSize","bSize","lsolve","_solveValidation","createLsolve","_sparseForwardSubstitution","_denseForwardSubstitution","mdata","bj","xj","vjj","jValues","jIndices","firstIndex","lastIndex","usolve","createUsolve","_sparseBackwardSubstitution","_denseBackwardSubstitution","_lastIndex","lsolveAll","createLsolveAll","R","b_","B","M","L","bNew","iValues","iIndices","Mii","_j3","_lastIndex2","_J2","_j2","_J","usolveAll","createUsolveAll","algorithm08","createAlgorithm08","leftShift","createLeftShift","rightArithShift","createRightArithShift","rightLogShift","createRightLogShift","and","createAnd","compare","createCompare","createCompareNumber","compareNatural","_javascriptNaturalSort","createCompareNatural","compareBooleans","typeX","typeY","compareMatricesAndArrays","compareComplexNumbers","compareArrays","compareObjects","keysX","keysY","createCompareText","createCompareTextNumber","createEqual","createEqualNumber","equalText","createEqualText","createSmaller","createSmallerNumber","createSmallerEq","createSmallerEqNumber","createLarger","createLargerNumber","createLargerEq","createLargerEqNumber","deepEqual","createDeepEqual","_deepEqual","unequal","createUnequal","_unequal","createUnequalNumber","partitionSelect","createPartitionSelect","asc","desc","_partitionSelect","quickSelect","from","pivot","sort","createSort","compareAsc","compareDesc","_arrayIsVector","_matrixIsVector","_comparator","order","createMax","_max","_largest","createMin","_min","_smallest","ImmutableDenseMatrix","createImmutableDenseMatrixClass","MatrixIndex","createIndexClass","ranges","_createImmutableMatrix","dimension","strings","FibonacciHeap","createFibonacciHeapClass","oneOverLogPhi","node","numberOfChildren","tempRight","_findMinimumNode","_decreaseKey","parent","_cut","_cascadingCut","_linkNodes","numRoots","temp","Spa","createSpaClass","heap","nodes","nodei","nodej","createBigNumberE","createBigNumberPhi","createBigNumberPi","createBigNumberTau","Unit","_defineProperty2","ownKeys","enumerableOnly","symbols","sym","_objectSpread","target","createUnitClass","toNumber","UNIT_NONE","PREFIXES","BASE_DIMENSIONS","skipWhitespace","isDigitDot","isDigit","revert","parseNumber","tentativeNumber","tentativeIndex","parseUnit","unitName","firstC","parseCharacter","toFind","powerMultiplierCurrent","expectingUnit","powerMultiplierStack","powerMultiplierStackProduct","uStr","oldC","_findUnit","power","baseDim","UNIT_SYSTEMS","convert","unitValue","unitPrefixValue","unitPower","prefixValue","UNITS","_name","_unit","prefixLen","prefixName","_prefix","BASE_UNITS","other","inverted","valThis","valOther","getNumericIfUnitless","nominalOffset","unitOffset","thisUnitValue","thisNominalOffset","thisUnitOffset","otherUnitValue","otherNominalOffset","otherUnitOffset","proposedUnitList","matchingBase","currentUnitSystem","matchingUnit","missingBaseDim","strNum","strDen","nNum","nDen","simp","isImaginary","unitStr","absValue","absUnitValue","bestPrefix","bestDiff","xNumeric","xRounded","xFixed","isNearlyEqual","testSum","BASE_UNIT_NONE","ALIASES","calculateAngleValues","_name2","_unit2","alias","_key3","assertUnitNameIsValid","_key4","lastUnit","_key5","defUnit","aliases","definition","baseName","ex","newUnit","anyMatch","_newBaseUnit","newBaseUnit","_i8","aliasName","_alias","_key6","createUnitFunction","sparse","createSparse","createUnit","createCreateUnit","def","acos","createAcos","createAcosh","acot","createAcot","acoth","createAcoth","acsc","createAcsc","acsch","createAcsch","asec","createAsec","asech","createAsech","asin","createAsin","createAsinh","atan","createAtan","atan2","createAtan2","createAtanh","createCos","createCosh","cot","createCot","coth","createCoth","csc","createCsc","csch","createCsch","sec","createSec","sech","createSech","createSin","createSinh","tan","createTan","createTanh","setCartesian","createSetCartesian","a1","a2","b1","b2","setDifference","createSetDifference","inb2","setDistinct","createSetDistinct","setIntersect","createSetIntersect","setIsSubset","createSetIsSubset","setMultiplicity","createSetMultiplicity","setPowerset","createSetPowerset","_subset","_sort","bitarray","setSize","createSetSize","unique","setSymDifference","createSetSymDifference","setUnion","createSetUnion","createAdd","hypot","createHypot","_hypot","largest","createNorm","eigs","_norm","_vectorNormPlusInfinity","pinf","_vectorNormMinusInfinity","ninf","_vectorNorm","_matrixNormFrobenius","fro","_matrixNormOne","maxc","cj","_matrixNormTwo","sizeX","tx","squaredX","eigenVals","rho","_matrixNormInfinity","maxr","ri","_matrixNorm","createDot","_denseDot","_sparseDot","_validateDim","_size","xLen","yLen","aIsColumn","bIsColumn","mul","_c","_c2","_c3","xindex","xvalues","yindex","yvalues","trace","createTrace","_denseTrace","_sparseTrace","createIndex","keywords_1","keywords","Node","_keywords","createNode","mathWithTransform","expr","context","evaluate","_validateScope","math","argNames","_traverse","_transform","customString","_arr","symbol","errorTransform_1","errorTransform","access","accessFactory","_errorTransform","AccessorNode","_access","createAccessorNode","evalObject","evalIndex","needParenthesis","ArrayNode","createArrayNode","items","evalItems","evalItem","itemsToTex","nested","mixedItems","itemsFormRow","itemSep","itemsTex","assignFactory","operators","getAssociativity","getPrecedence","isAssociativeWith","_node","parenthesis","identifier","nodeA","nodeB","identifierA","identifierB","AssignmentNode","_assign","_operators","createAssignmentNode","evalValue","childObject","evalParentObject","parentProp","evalParentIndex","parentIndex","precedence","exprPrecedence","BlockNode","createBlockNode","blocks","block","visible","evalBlocks","results","param","ConditionalNode","createConditionalNode","condition","trueExpr","falseExpr","evalCondition","evalTrueExpr","evalFalseExpr","testCondition","conditionPrecedence","truePrecedence","falsePrecedence","latex","escapeLatex","toSymbol","_escapeLatex","latexSymbols","latexOperators","latexFunctions","defaultTemplate","latexUnits","ConstantNode","_latex","createConstantNode","FunctionAssignmentNode","createFunctionAssignmentNode","params","childArgNames","evalExpr","syntax","signatures","childArgs","types","IndexNode","createIndexNode","dimensions","dotNotation","evalDimensions","needsEnd","_evalDimension","evalDimension","ObjectNode","createObjectNode","evalEntries","stringifiedKey","parsedKey","OperatorNode","createOperatorNode","op","implicit","isPercentage","evalArgs","evalArg0","_evalArg","evalArg1","evalArg","calculateNecessaryParentheses","associativity","operandPrecedence","operandIdentifier","rootIdentifier","lhsParens","lhsPrecedence","assocWithLhs","rhsParens","rhsPrecedence","assocWithRhs","_rootIdentifier","lhsIdentifier","rhsIdentifier","argPrecedence","assocWithArg","argAssociativity","parens","assoc","operand","opIsNamed","lhs","rhs","stringifiedArgs","lhsTex","rhsTex","texifiedArgs","ParenthesisNode","createParenthesisNode","content","RangeNode","createRangeNode","endSymbols","evalStart","evalEnd","evalStep","startPrecedence","stepPrecedence","endPrecedence","RelationalNode","createRelationalNode","conditionals","self","compiled","evalLhs","evalRhs","condFn","_this2","paramStrings","paramPrecedence","operatorMap","SymbolNode","createSymbolNode","isValuelessUnit","createSubScope","parentScope","FunctionNode","_scope","createFunctionNode","strin","entity","_rawArgs","isRaw","resolveFn","rawArgs","_rawArgs2","fnExpr","evalFn","_rawArgs3","nodeToString","expandTemplate","regex","inputPos","nodeToTex","customTex","latexConverter","customToTex","parse","createParse","expression","parseStart","expressions","parseMultiple","extraNodes","TOKENTYPE","DELIMITERS","NAMED_DELIMITERS","CONSTANTS","NUMERIC_CONSTANTS","initialState","currentString","state","currentCharacter","prevCharacter","nextCharacter","getToken","c2","c3","createSyntaxError","getTokenSkipNewline","openParams","closeParams","cPrev","cNext","high","low","nestingLevel","parseBlock","createError","parseAssignment","valid","parseConditional","parseLogicalOr","parseLogicalXor","parseLogicalAnd","parseBitwiseOr","parseBitwiseXor","parseBitwiseAnd","parseRelational","parseShift","cond","parseConversion","parseRange","parseAddSubtract","parseMultiplyDivide","rightNode","parseImplicitMultiplication","parseRule2","parsePercentage","tokenStates","parseUnary","parsePow","parseLeftHandOperators","parseCustomNodes","parseAccessors","CustomNode","parseSymbol","parseDoubleQuotesString","parseDoubleQuotesStringToken","parseSingleQuotesString","parseSingleQuotesStringToken","parseMatrix","parseRow","parseObject","numberStr","parseParentheses","parseEnd","message","compile","createCompile","createEvaluate","Parser","createParserClass","parser","createParser","lup","createLup","_denseLUP","_sparseLUP","ldata","lsize","udata","usize","pabsv","absv","vij","lvalues","lindex","lptr","uvalues","uindex","uptr","pvCo","pvOc","swapIndeces","spa","vkj","vik","qr","createQr","_denseQR","_sparseQR","_denseQRimpl","Qdata","Rdata","sgn","conjSgn","alphaSquared","alpha","u1","csPermute_1","csPermute","pinv","nz","t0","t1","csTdfs_1","csTdfs","head","post","stack","csPost_1","csPost","_csTdfs","csEtree_1","csEtree","ata","ancestor","inext","csFkeep_1","csFkeep","csFlip_1","csFlip","csAmd","_csFkeep","_csFlip","createCsAmd","lemax","dense","cm","_createTargetMatrix","cnz","W","nv","elen","degree","hhead","_initializeQuotientGraph","nel","_initializeDegreeLists","mindeg","k2","pj","ln","nvi","pk","eln","p2","pn","elenk","nvk","dk","pk1","pk2","_wclear","wnvi","dext","p3","p4","nvj","jlast","ok","at","tindex","tptr","csLeaf_1","csLeaf","maxfirst","prevleaf","sparent","jleaf","jprev","csCounts","_csLeaf","createCsCounts","colcount","csSqr","_csPermute","_csPost","_csEtree","_csAmd","_csCounts","createCsSqr","_vcount","leftmost","tail","nque","pa","csMarked_1","csMarked","csMark_1","csMark","csUnflip_1","csUnflip","csDfs_1","csDfs","_csMarked","_csMark","_csUnflip","g","xi","jnew","done","csReach_1","csReach","_csDfs","gptr","gsize","csSpsolve","_csReach","createCsSpsolve","lo","gvalues","gindex","csLu","_csSpsolve","createCsLu","tol","lnz","unz","U","ipiv","xabs","slu","_csSqr","_csLu","createSlu","threshold","csIpvec_1","csIpvec","lusolve","_csIpvec","createLusolve","_lusolve","_toMatrix","Help","createHelpClass","doc","Chain","createChainClass","createProxy","chainify","createLazyProxy","resolver","arg0","arg1","excludedNames","eDocs","_false","falseDocs","iDocs","_Infinity","InfinityDocs","LN10","LN10Docs","LN2","LN2Docs","LOG10E","LOG10EDocs","LOG2E","LOG2EDocs","_NaN","NaNDocs","_null","nullDocs","phiDocs","piDocs","SQRT1_2","SQRT12Docs","SQRT2","SQRT2Docs","tauDocs","_true","trueDocs","version","versionDocs","bignumberDocs","booleanDocs","complexDocs","createUnitDocs","fractionDocs","construction","indexDocs","matrixDocs","numberDocs","sparseDocs","splitUnitDocs","stringDocs","unitDocs","configDocs","_import","importDocs","typedDocs","derivative","derivativeDocs","leafCount","leafCountDocs","lsolveDocs","lsolveAllDocs","lupDocs","lusolveDocs","qrDocs","rationalize","rationalizeDocs","resolve","resolveDocs","simplify","simplifyDocs","simplifyCore","simplifyCoreDocs","sluDocs","symbolicEqual","symbolicEqualDocs","usolveDocs","usolveAllDocs","absDocs","addDocs","cbrtDocs","ceilDocs","cubeDocs","divide","divideDocs","dotDivideDocs","dotMultiplyDocs","dotPowDocs","expDocs","expm","expmDocs","expm1Docs","fixDocs","floorDocs","gcdDocs","hypotDocs","invmodDocs","lcmDocs","logDocs","log10Docs","log1pDocs","log2Docs","modDocs","multiplyDocs","normDocs","nthRootDocs","nthRootsDocs","powDocs","roundDocs","signDocs","sqrtDocs","sqrtm","sqrtmDocs","squareDocs","subtractDocs","unaryMinusDocs","unaryPlusDocs","xgcdDocs","bitAndDocs","bitNotDocs","bitOrDocs","bitXorDocs","leftShiftDocs","rightArithShiftDocs","rightLogShiftDocs","bellNumbers","bellNumbersDocs","catalan","catalanDocs","composition","compositionDocs","stirlingS2","stirlingS2Docs","argDocs","conjDocs","imDocs","reDocs","evaluateDocs","help","helpDocs","distance","distanceDocs","intersect","intersectDocs","andDocs","notDocs","orDocs","xorDocs","columnDocs","concatDocs","countDocs","crossDocs","ctransposeDocs","det","detDocs","diagDocs","diffDocs","dotDocs","eigsDocs","filterDocs","flattenDocs","forEachDocs","getMatrixDataTypeDocs","identityDocs","invDocs","pinvDocs","kronDocs","mapDocs","matrixFromColumnsDocs","matrixFromFunctionDocs","matrixFromRowsDocs","onesDocs","partitionSelectDocs","rangeDocs","reshapeDocs","resizeDocs","rotateDocs","rotationMatrixDocs","rowDocs","sizeDocs","sortDocs","squeezeDocs","subsetDocs","traceDocs","transposeDocs","zerosDocs","fftDocs","ifftDocs","combinationsDocs","combinationsWithRep","combinationsWithRepDocs","factorial","factorialDocs","gamma","gammaDocs","lgamma","lgammaDocs","kldivergence","kldivergenceDocs","multinomial","multinomialDocs","permutations","permutationsDocs","pickRandom","pickRandomDocs","random","randomDocs","randomInt","randomIntDocs","compareDocs","compareNaturalDocs","compareTextDocs","deepEqualDocs","equalDocs","equalTextDocs","largerDocs","largerEqDocs","smallerDocs","smallerEqDocs","unequalDocs","setCartesianDocs","setDifferenceDocs","setDistinctDocs","setIntersectDocs","setIsSubsetDocs","setMultiplicityDocs","setPowersetDocs","setSizeDocs","setSymDifferenceDocs","setUnionDocs","erfDocs","mad","madDocs","maxDocs","mean","meanDocs","median","medianDocs","minDocs","modeDocs","prodDocs","quantileSeq","quantileSeqDocs","std","stdDocs","cumsum","cumSumDocs","sumDocs","variance","varianceDocs","acosDocs","acoshDocs","acotDocs","acothDocs","acscDocs","acschDocs","asecDocs","asechDocs","asinDocs","asinhDocs","atanDocs","atan2Docs","atanhDocs","cosDocs","coshDocs","cotDocs","cothDocs","cscDocs","cschDocs","secDocs","sechDocs","sinDocs","sinhDocs","tanDocs","tanhDocs","toDocs","binDocs","cloneDocs","formatDocs","hasNumericValueDocs","hexDocs","isIntegerDocs","isNaNDocs","isNegativeDocs","isNumericDocs","isPositiveDocs","isPrimeDocs","isZeroDocs","numericDocs","octDocs","printDocs","typeOfDocs","embeddedDocs_1","_LN","_LN2","_LOG10E","_LOG2E","_phi","require$$10","_pi","require$$11","_SQRT1_","require$$12","_SQRT","require$$13","_tau","require$$14","require$$15","_version","require$$16","_bignumber","require$$17","_boolean","require$$18","require$$19","_createUnit","require$$20","require$$21","require$$22","_matrix","require$$23","require$$24","_sparse","require$$25","_splitUnit","require$$26","require$$27","require$$28","require$$29","require$$30","_typed","require$$31","_derivative","require$$32","_leafCount","require$$33","_lsolve","require$$34","_lsolveAll","require$$35","_lup","require$$36","require$$37","_qr","require$$38","_rationalize","require$$39","_resolve","require$$40","_simplify","require$$41","_simplifyCore","require$$42","_slu","require$$43","_symbolicEqual","require$$44","_usolve","require$$45","_usolveAll","require$$46","_abs","require$$47","_add","require$$48","_cbrt","require$$49","_ceil","require$$50","_cube","require$$51","_divide","require$$52","_dotDivide","require$$53","_dotMultiply","require$$54","_dotPow","require$$55","_exp","require$$56","_expm","require$$57","_expm2","require$$58","_fix","require$$59","_floor","require$$60","_gcd","require$$61","require$$62","_invmod","require$$63","_lcm","require$$64","_log","require$$65","_log2","require$$66","_log1p","require$$67","_log3","require$$68","_mod","require$$69","_multiply","require$$70","require$$71","_nthRoot","require$$72","_nthRoots","require$$73","require$$74","_round","require$$75","_sign","require$$76","_sqrt","require$$77","_sqrtm","require$$78","_square","require$$79","_subtract","require$$80","_unaryMinus","require$$81","_unaryPlus","require$$82","_xgcd","require$$83","_bitAnd","require$$84","_bitNot","require$$85","_bitOr","require$$86","_bitXor","require$$87","_leftShift","require$$88","_rightArithShift","require$$89","_rightLogShift","require$$90","_bellNumbers","require$$91","_catalan","require$$92","_composition","require$$93","_stirlingS","require$$94","_arg","require$$95","_conj","require$$96","_im","require$$97","_re","require$$98","_evaluate","require$$99","_help","require$$100","_distance","require$$101","_intersect","require$$102","_and","require$$103","_not","require$$104","_or","require$$105","_xor","require$$106","require$$107","require$$108","_count","require$$109","require$$110","_ctranspose","require$$111","_det","require$$112","require$$113","require$$114","_dot","require$$115","_eigs","require$$116","_filter","require$$117","_flatten","require$$118","require$$119","_getMatrixDataType","require$$120","require$$121","_inv","require$$122","_pinv","require$$123","require$$124","require$$125","_matrixFromColumns","require$$126","_matrixFromFunction","require$$127","_matrixFromRows","require$$128","require$$129","require$$130","_range","require$$131","require$$132","require$$133","_rotate","require$$134","_rotationMatrix","require$$135","require$$136","require$$137","require$$138","require$$139","require$$140","_trace","require$$141","require$$142","require$$143","require$$144","_ifft","require$$145","require$$146","_combinationsWithRep","require$$147","_factorial","require$$148","_gamma","require$$149","_lgamma","require$$150","_kldivergence","require$$151","_multinomial","require$$152","_permutations","require$$153","_pickRandom","require$$154","_random","require$$155","_randomInt","require$$156","_compare","require$$157","_compareNatural","require$$158","_compareText","require$$159","require$$160","_equal","require$$161","_equalText","require$$162","_larger","require$$163","_largerEq","require$$164","_smaller","require$$165","_smallerEq","require$$166","require$$167","_setCartesian","require$$168","_setDifference","require$$169","_setDistinct","require$$170","_setIntersect","require$$171","_setIsSubset","require$$172","_setMultiplicity","require$$173","_setPowerset","require$$174","_setSize","require$$175","_setSymDifference","require$$176","_setUnion","require$$177","_erf","require$$178","_mad","require$$179","require$$180","_mean","require$$181","_median","require$$182","require$$183","require$$184","require$$185","_quantileSeq","require$$186","_std","require$$187","_cumsum","require$$188","_sum","require$$189","_variance","require$$190","_acos","require$$191","_acosh","require$$192","_acot","require$$193","_acoth","require$$194","_acsc","require$$195","_acsch","require$$196","_asec","require$$197","_asech","require$$198","_asin","require$$199","_asinh","require$$200","_atan","require$$201","_atan2","require$$202","_atanh","require$$203","_cos","require$$204","_cosh","require$$205","_cot","require$$206","_coth","require$$207","_csc","require$$208","_csch","require$$209","_sec","require$$210","_sech","require$$211","_sin","require$$212","_sinh","require$$213","_tan","require$$214","_tanh","require$$215","_to","require$$216","_bin","require$$217","_clone","require$$218","require$$219","_hasNumericValue","require$$220","_hex","require$$221","_isInteger","require$$222","require$$223","_isNegative","require$$224","_isNumeric","require$$225","_isPositive","require$$226","_isPrime","require$$227","_isZero","require$$228","_numeric","require$$229","_oct","require$$230","require$$231","_typeOf","require$$232","embeddedDocs","_embeddedDocs","createHelp","searchName","searchText","chain","createChain","createDet","negated","rowIndices","k_","piv","piv_","i_","createInv","A","ABig","rBig","Ac","Bc","Ar","Br","createPinv","_isZeros","_rankFact2","_rankFact","C","Cpinv","Fpinv","_rref","lead","rref","complexEigs","createComplexEigs","prec","findVectors","balance","reduceToHessenberg","_iterateUntilTriangul","iterateUntilTriangular","vectors","findEigenvectors","big","cplx","realzero","realone","radixSq","Rdiag","colNorm","rowNorm","rowDivRadix","rowMulRadix","maxIndex","el","tmp1","tmp2","tmp3","lambdas","Sdiag","Qtotal","Qpartial","lastConvergenceBefore","inflateMatrix","ll","eigenvalues2x2","jordanBase2x2","blockDiag","Cinv","uniqueValues","multiplicities","λ","indexOf","E","failedLambdas","S","solutions","approxVec","inverseIterate","correction","trA","detA","l1","l2","na","nb","nc","nd","_arr$i","sub","orthog","largeNum","randomOrthogonalVector","orthogonalComplement","normalize","_iterator3","_step3","realSymetric","createRealSymmetric","main","diagBig","e0","psi","Sij","createArray","Vab","getAij","getTheta","x1","Sij1","Ei","sorting","getAijBig","getThetaBig","x1Big","Sij1Big","aii","ajj","aij","denom","Ski","Skj","Hij","s2","Aki","Akj","csHij","Aii","Ajj","_k3","_k4","Mij","maxMij","maxIJ","minID","minE","_k5","_complexEigs","_realSymetric","createEigs","doRealSymetric","doComplexEigs","computeValuesAndVectors","_computeValuesAndVect","_computeValuesAndVect2","isReal","coerceReal","isSymmetric","_type","coerceTypes","hasNumber","hasBig","hasComplex","createExpm","eps","infNorm","infinityNorm","findParams","Apos","D","factor","AposToI","alternate","rowSum","maxSearchSize","errorEstimate","qfac","twoqfac","twoqp1fac","createSqrtm","_maxIterations","_tolerance","_denmanBeavers","iterations","Y","Z","Yk","createDivide","createDistance","_2d","xCoeff","yCoeff","constant","_distancePointLine2D","_3d","_parametricLine","_distancePointLine3D","_containsOnlyNumbers","_euclideanDistance","_pairwise","_distancePairwise","_isNumber","_objectToArray","aI","den","x0","y0","z0","vectorSize","pointA","pointB","createIntersect","_AAA","_AAAA","plane","_coerceArr","_4d","_intersectLinePlane","_intersect2d","_intersect3d","p1a","p1b","p2a","p2b","o1","o2","d1","d2","d20o11","d21o10","d20o21","d21o20","_intersect3dHelper","add1","add2","add3","y1","z1","x2","y2","z2","x3","y3","z3","x4","y4","z4","d1343","d4321","d1321","d4343","d2121","ta","tb","pax","pay","paz","pbx","pby","pbz","x1x","x2x","y1y","y2y","z1z","z2z","py","pz","createSum","_nsumDim","createCumSum","_ncumSumDim","_cumsummap","sums","_cumsumDimensional","initialValue","createMean","_nmeanDim","createMedian","mid","right","left","middle2","middle","createMad","med","DEFAULT_NORMALIZATION","createVariance","_var","_varDim","normalization","createQuantileSeq","probOrN","probArr","dataArr","nPlusOne","intN","_nPlusOne","currProb","prob","_fracPart","_integerPart","_left","_right","fracPart","integerPartNumber","createStd","createCombinations","isPositiveInteger","createCombinationsWithRep","_prodrange","prodrange","nMinusOne","createGamma","_t","gammaPval","twoPiSqrt","tpow","expt","bigFactorial","createLgamma","SMALL_RE","SMALL_IM","coeffs","TWOPI","LOGPI","REFLECTION","lgammaStirling","lgammaRecurrence","leftPart","rz","rzz","rightPart","signflips","sb","shiftprod","nsb","createFactorial","createKldivergence","_kldiv","plength","qlength","sumq","sump","qnorm","pnorm","createMultinomial","ai","createPermutations","seededRNG","createRng","_seedrandom","singletonRandom","randomSeed","setSeed","seed","rng","_seededRNG","createPickRandom","possibles","weights","_ref2$elementWise","elementWise","single","totalWeights","randKey","randomMatrix_1","randomMatrix","_length","_randomMatrix2","createRandom","_randomMatrix","createRandomNumber","createRandomInt","_randomIntMatrix","createStirlingS2","smallCache","bigCache","cache","make","nn","nk","createBellNumbers","createCatalan","createComposition","createLeafCount","countLeaves","util","createUtil","T","defaultName","defaultContext","realContext","positiveContext","hasProperty","nodeOrName","_properties","_properties2","isCommutative","isAssociative","mergeContext","primary","secondary","merged","allChildren","children","findChildren","unflattenr","makeNode","createMakeNodeFunction","curnode","unflattenl","simplifyConstant","_util","createSimplifyConstant","_createUtil","_ensureNode","foldFraction","_removeFractions","thing","_eval","fnname","_toNumber","_toNode","_fractionToNode","unaryMinusNode","_exactFraction","exactFractions","fractionsLimit","vn","_foldAccessor","remainingDims","second","tryItems","fromItems","foldOp","operatorFunctions","sz","section","_args","consts","vars","foldItems","foldProps","_simplifyConstant","createSimplify","rules","debug","_buildRules","removeParens","visited","_lastsym","laststr","rulestr","applyRule","newstr","SUPPORTED_CONSTANTS","_canonicalizeRule","ruleObject","newRule","lr","expandsym","_getExpandPlaceholderSymbol","ruleSet","rule","ruleType","mapRule","resNodes","newNode","mergedContext","newArgs","newContent","newItems","newObj","newIndex","newDims","newProps","repl","matches","_ruleMatch","getSplits","rightArgs","mergeMatch","match1","match2","_exactMatch","combineChildMatches","list1","list2","i1","i2","mergeChildMatches","childMatches","sets","uniqueSets","isSplit","childMatch","leftMatch","rightMatch","splits","splitMatches","matchSet","createSimplifyCore","node0","node1","simpChild","childCount","a0","_a","a00","a00a1","a01","createResolve","within","variables","nextWithin","createSymbolicEqual","s1","e1","e2","simplified","createDerivative","variable","constNodes","constTag","deriv","_derivTex","varName","isConst","funcArgsCheck","div","negative","funcDerivative","chainDerivative","constantTerms","nonConstantTerms","nonConstantNode","argOuter","argInner","_arg2","powMinusOne","valueType","createRationalize","detailed","setRules","rulesRationalize","polyRet","polynomial","nVars","noExactFractions","withExactFractions","expandPower","sBefore","eDistrDiv","redoInic","retRationalize","polyToCanonical","extended","oper","recPoly","retFunc","tp","pos","oldRules","rulesFirst","rulesDistrDiv","rulesSucDiv","indParent","internal","does","nEsqTopo","nDirTopo","maxExpo","varname","recurPol","no","n3","noPai","valor","reviver","createReviver","classes","constructor","replacer","createReplacer","version_1","createTrue","createFalse","createNull","createInfinity","recreateFactory","createNaN","createPi","_ref3","createTau","_ref4","createE","_ref5","createPhi","_ref6","createLN2","_ref7","createLN10","_ref8","createLOG2E","_ref9","createLOG10E","_ref10","createSQRT1_2","_ref11","createSQRT2","_ref12","createI","_ref13","createUppercasePi","_ref14","createUppercaseE","_ref15","createVersion","physicalConstants","createSpeedOfLight","unitFactory","createGravitationConstant","createPlanckConstant","createReducedPlanckConstant","createMagneticConstant","createElectricConstant","createVacuumImpedance","createCoulomb","createElementaryCharge","createBohrMagneton","createConductanceQuantum","createInverseConductanceQuantum","createMagneticFluxQuantum","createNuclearMagneton","createKlitzing","createJosephson","createBohrRadius","createClassicalElectronRadius","createElectronMass","createFermiCoupling","createFineStructure","numberFactory","createHartreeEnergy","createProtonMass","createDeuteronMass","createNeutronMass","createQuantumOfCirculation","createRydberg","createThomsonCrossSection","createWeakMixingAngle","createEfimovFactor","createAtomicMass","createAvogadro","createBoltzmann","createFaraday","createFirstRadiation","createLoschmidt","createGasConstant","createMolarPlanckConstant","createMolarVolume","createSackurTetrode","createSecondRadiation","createStefanBoltzmann","createWienDisplacement","createMolarMass","createMolarMassC12","createGravity","createPlanckLength","createPlanckMass","createPlanckTime","createPlanckCharge","createPlanckTemperature","apply_transform","createApplyTransform","column_transform","createColumnTransform","compileInlineExpression_1","compileInlineExpression","subScope","filter_transform","_compileInlineExpression","createFilterTransform","filterTransform","forEach_transform","createForEachTransform","forEachTransform","index_transform","createIndexTransform","map_transform","createMapTransform","mapTransform","orig","argsCount","lastDimToZeroBase_1","lastDimToZeroBase","max_transform","_lastDimToZeroBase","createMaxTransform","mean_transform","createMeanTransform","min_transform","createMinTransform","range_transform","createRangeTransform","row_transform","createRowTransform","subset_transform","createSubsetTransform","concat_transform","createConcatTransform","diff_transform","createDiffTransform","std_transform","createStdTransform","sum_transform","createSumTransform","cumsum_transform","createCumSumTransform","variance_transform","createVarianceTransform","_AccessorNode","_addScalar","_applyTransform","_ArrayNode","_AssignmentNode","_physicalConstants","_BlockNode","_chain","_Chain","_columnTransform","_compile","_concatTransform","_ConditionalNode","_ConstantNode","_cumsumTransform","_DenseMatrix","_diffTransform","_divideScalar","_equalScalar","_FibonacciHeap","_filterTransform","_forEachTransform","_FunctionAssignmentNode","_FunctionNode","_Help","_ImmutableDenseMatrix","_MatrixIndex","_IndexNode","_indexTransform","_mapTransform","_Matrix","_maxTransform","_meanTransform","_minTransform","_multiplyScalar","_Node","_ObjectNode","_OperatorNode","_ParenthesisNode","_parser","_Parser","_Range","_RangeNode","_rangeTransform","_RelationalNode","_replacer","_ResultSet","_reviver","_rowTransform","_Spa","_SparseMatrix","_stdTransform","_subsetTransform","_sumTransform","_SymbolNode","_Unit","_varianceTransform","require$$233","require$$234","require$$235","require$$236","require$$237","require$$238","require$$239","require$$240","require$$241","require$$242","require$$243","require$$244","require$$245","require$$246","require$$247","require$$248","require$$249","require$$250","require$$251","require$$252","require$$253","require$$254","require$$255","require$$256","require$$257","require$$258","require$$259","require$$260","require$$261","require$$262","require$$263","require$$264","require$$265","require$$266","require$$267","require$$268","require$$269","require$$270","require$$271","require$$272","require$$273","require$$274","require$$275","require$$276","pureFunctionsAny_generated","_configReadonly","_factoriesAny","fineStructure","sackurTetrode","efimovFactor","weakMixingAngle","vacuumImpedance","wienDisplacement","atomicMass","bohrMagneton","boltzmann","conductanceQuantum","deuteronMass","electricConstant","elementaryCharge","faraday","firstRadiation","gravitationConstant","hartreeEnergy","klitzing","loschmidt","magneticConstant","molarMass","molarPlanckConstant","neutronMass","nuclearMagneton","planckCharge","planckLength","planckTemperature","protonMass","reducedPlanckConstant","rydberg","speedOfLight","stefanBoltzmann","thomsonCrossSection","avogadro","bohrRadius","coulomb","electronMass","gravity","inverseConductanceQuantum","magneticFluxQuantum","molarMassC12","planckMass","quantumOfCirculation","secondRadiation","fermiCoupling","molarVolume","planckConstant","classicalElectronRadius","planckTime","gasConstant","_pureFunctionsAnyGenerated","dependenciesBigNumberClass_generated","BigNumberDependencies","dependenciesComplexClass_generated","ComplexDependencies","dependenciesMatrixClass_generated","MatrixDependencies","dependenciesDenseMatrixClass_generated","_dependenciesMatrixClassGenerated","DenseMatrixDependencies","dependenciesFractionClass_generated","FractionDependencies","dependenciesTyped_generated","_dependenciesBigNumberClassGenerated","_dependenciesComplexClassGenerated","_dependenciesDenseMatrixClassGenerated","_dependenciesFractionClassGenerated","typedDependencies","dependenciesAbs_generated","_dependenciesTypedGenerated","absDependencies","dependenciesNode_generated","NodeDependencies","dependenciesEqualScalar_generated","equalScalarDependencies","dependenciesSparseMatrixClass_generated","_dependenciesEqualScalarGenerated","SparseMatrixDependencies","dependenciesMatrix_generated","_dependenciesSparseMatrixClassGenerated","matrixDependencies","dependenciesSubset_generated","_dependenciesMatrixGenerated","subsetDependencies","dependenciesAccessorNode_generated","_dependenciesNodeGenerated","_dependenciesSubsetGenerated","AccessorNodeDependencies","dependenciesAcos_generated","acosDependencies","dependenciesAcosh_generated","acoshDependencies","dependenciesAcot_generated","acotDependencies","dependenciesAcoth_generated","acothDependencies","dependenciesAcsc_generated","acscDependencies","dependenciesAcsch_generated","acschDependencies","dependenciesAddScalar_generated","addScalarDependencies","dependenciesAdd_generated","_dependenciesAddScalarGenerated","addDependencies","dependenciesNot_generated","notDependencies","dependenciesZeros_generated","zerosDependencies","dependenciesAnd_generated","_dependenciesNotGenerated","_dependenciesZerosGenerated","andDependencies","dependenciesIsInteger_generated","isIntegerDependencies","dependenciesApply_generated","_dependenciesIsIntegerGenerated","applyDependencies","dependenciesApplyTransform_generated","applyTransformDependencies","dependenciesArg_generated","argDependencies","dependenciesArrayNode_generated","ArrayNodeDependencies","dependenciesAsec_generated","asecDependencies","dependenciesAsech_generated","asechDependencies","dependenciesAsin_generated","asinDependencies","dependenciesAsinh_generated","asinhDependencies","dependenciesAssignmentNode_generated","AssignmentNodeDependencies","dependenciesAtan_generated","atanDependencies","dependenciesAtan2_generated","atan2Dependencies","dependenciesAtanh_generated","atanhDependencies","dependenciesBignumber_generated","bignumberDependencies","dependenciesFraction_generated","fractionDependencies","dependenciesNumber_generated","numberDependencies","dependenciesNumeric_generated","_dependenciesBignumberGenerated","_dependenciesFractionGenerated","_dependenciesNumberGenerated","numericDependencies","dependenciesDivideScalar_generated","_dependenciesNumericGenerated","divideScalarDependencies","dependenciesEqual_generated","equalDependencies","dependenciesRound_generated","roundDependencies","dependenciesCeil_generated","_dependenciesRoundGenerated","ceilDependencies","dependenciesFloor_generated","floorDependencies","dependenciesFix_generated","_dependenciesCeilGenerated","_dependenciesFloorGenerated","fixDependencies","dependenciesFormat_generated","formatDependencies","dependenciesIsNumeric_generated","isNumericDependencies","dependenciesMultiplyScalar_generated","multiplyScalarDependencies","dependenciesIdentity_generated","identityDependencies","dependenciesIsZero_generated","isZeroDependencies","dependenciesConj_generated","conjDependencies","dependenciesSize_generated","sizeDependencies","dependenciesDot_generated","_dependenciesConjGenerated","_dependenciesMultiplyScalarGenerated","_dependenciesSizeGenerated","dotDependencies","dependenciesMultiply_generated","_dependenciesDotGenerated","multiplyDependencies","dependenciesUnaryMinus_generated","unaryMinusDependencies","dependenciesSubtract_generated","_dependenciesUnaryMinusGenerated","subtractDependencies","dependenciesDet_generated","_dependenciesDivideScalarGenerated","_dependenciesIsZeroGenerated","_dependenciesMultiplyGenerated","_dependenciesSubtractGenerated","detDependencies","dependenciesInv_generated","_dependenciesAbsGenerated","_dependenciesDetGenerated","_dependenciesIdentityGenerated","invDependencies","dependenciesPow_generated","_dependenciesInvGenerated","powDependencies","dependenciesUnitClass_generated","_dependenciesEqualGenerated","_dependenciesFixGenerated","_dependenciesFormatGenerated","_dependenciesIsNumericGenerated","_dependenciesPowGenerated","UnitDependencies","dependenciesAtomicMass_generated","_dependenciesUnitClassGenerated","atomicMassDependencies","dependenciesAvogadro_generated","avogadroDependencies","dependenciesIsNegative_generated","isNegativeDependencies","dependenciesCombinations_generated","combinationsDependencies","dependenciesGamma_generated","gammaDependencies","dependenciesFactorial_generated","_dependenciesGammaGenerated","factorialDependencies","dependenciesLarger_generated","largerDependencies","dependenciesStirlingS2_generated","_dependenciesCombinationsGenerated","_dependenciesFactorialGenerated","_dependenciesIsNegativeGenerated","_dependenciesLargerGenerated","stirlingS2Dependencies","dependenciesBellNumbers_generated","_dependenciesStirlingS2Generated","bellNumbersDependencies","dependenciesBin_generated","binDependencies","dependenciesBitAnd_generated","bitAndDependencies","dependenciesBitNot_generated","bitNotDependencies","dependenciesBitOr_generated","bitOrDependencies","dependenciesBitXor_generated","bitXorDependencies","dependenciesResultSet_generated","ResultSetDependencies","dependenciesBlockNode_generated","_dependenciesResultSetGenerated","BlockNodeDependencies","dependenciesBohrMagneton_generated","bohrMagnetonDependencies","dependenciesBohrRadius_generated","bohrRadiusDependencies","dependenciesBoltzmann_generated","boltzmannDependencies","dependenciesBoolean_generated","booleanDependencies","dependenciesCatalan_generated","catalanDependencies","dependenciesCbrt_generated","cbrtDependencies","dependenciesChainClass_generated","ChainDependencies","dependenciesChain_generated","_dependenciesChainClassGenerated","chainDependencies","dependenciesClassicalElectronRadius_generated","classicalElectronRadiusDependencies","dependenciesClone_generated","cloneDependencies","dependenciesSmaller_generated","smallerDependencies","dependenciesImmutableDenseMatrixClass_generated","_dependenciesSmallerGenerated","ImmutableDenseMatrixDependencies","dependenciesIndexClass_generated","_dependenciesImmutableDenseMatrixClassGenerated","IndexDependencies","dependenciesLargerEq_generated","largerEqDependencies","dependenciesSmallerEq_generated","smallerEqDependencies","dependenciesRange_generated","_dependenciesLargerEqGenerated","_dependenciesSmallerEqGenerated","rangeDependencies","dependenciesColumn_generated","_dependenciesIndexClassGenerated","_dependenciesRangeGenerated","columnDependencies","dependenciesColumnTransform_generated","columnTransformDependencies","dependenciesCombinationsWithRep_generated","combinationsWithRepDependencies","dependenciesCompare_generated","compareDependencies","dependenciesCompareNatural_generated","_dependenciesCompareGenerated","compareNaturalDependencies","dependenciesCompareText_generated","compareTextDependencies","dependenciesConditionalNode_generated","ConditionalNodeDependencies","dependenciesConstantNode_generated","ConstantNodeDependencies","dependenciesFunctionAssignmentNode_generated","FunctionAssignmentNodeDependencies","dependenciesSymbolNode_generated","SymbolNodeDependencies","dependenciesFunctionNode_generated","_dependenciesSymbolNodeGenerated","FunctionNodeDependencies","dependenciesIndexNode_generated","IndexNodeDependencies","dependenciesObjectNode_generated","ObjectNodeDependencies","dependenciesOperatorNode_generated","OperatorNodeDependencies","dependenciesParenthesisNode_generated","ParenthesisNodeDependencies","dependenciesRangeNode_generated","RangeNodeDependencies","dependenciesRelationalNode_generated","RelationalNodeDependencies","dependenciesParse_generated","_dependenciesAccessorNodeGenerated","_dependenciesArrayNodeGenerated","_dependenciesAssignmentNodeGenerated","_dependenciesBlockNodeGenerated","_dependenciesConditionalNodeGenerated","_dependenciesConstantNodeGenerated","_dependenciesFunctionAssignmentNodeGenerated","_dependenciesFunctionNodeGenerated","_dependenciesIndexNodeGenerated","_dependenciesObjectNodeGenerated","_dependenciesOperatorNodeGenerated","_dependenciesParenthesisNodeGenerated","_dependenciesRangeNodeGenerated","_dependenciesRelationalNodeGenerated","parseDependencies","dependenciesCompile_generated","_dependenciesParseGenerated","compileDependencies","dependenciesComplex_generated","complexDependencies","dependenciesIsPositive_generated","isPositiveDependencies","dependenciesComposition_generated","_dependenciesIsPositiveGenerated","compositionDependencies","dependenciesConcat_generated","concatDependencies","dependenciesConcatTransform_generated","concatTransformDependencies","dependenciesConductanceQuantum_generated","conductanceQuantumDependencies","dependenciesCos_generated","cosDependencies","dependenciesCosh_generated","coshDependencies","dependenciesCot_generated","cotDependencies","dependenciesCoth_generated","cothDependencies","dependenciesCoulomb_generated","coulombDependencies","dependenciesProd_generated","prodDependencies","dependenciesCount_generated","_dependenciesProdGenerated","countDependencies","dependenciesCreateUnit_generated","createUnitDependencies","dependenciesCross_generated","crossDependencies","dependenciesCsc_generated","cscDependencies","dependenciesCsch_generated","cschDependencies","dependenciesTranspose_generated","transposeDependencies","dependenciesCtranspose_generated","_dependenciesTransposeGenerated","ctransposeDependencies","dependenciesCube_generated","cubeDependencies","dependenciesUnaryPlus_generated","unaryPlusDependencies","dependenciesCumSum_generated","_dependenciesAddGenerated","_dependenciesUnaryPlusGenerated","cumsumDependencies","dependenciesCumSumTransform_generated","cumsumTransformDependencies","dependenciesDeepEqual_generated","deepEqualDependencies","dependenciesDivide_generated","divideDependencies","dependenciesResolve_generated","resolveDependencies","dependenciesSimplifyCore_generated","_dependenciesDivideGenerated","simplifyCoreDependencies","dependenciesSimplify_generated","_dependenciesResolveGenerated","_dependenciesSimplifyCoreGenerated","simplifyDependencies","dependenciesDerivative_generated","_dependenciesSimplifyGenerated","derivativeDependencies","dependenciesDeuteronMass_generated","deuteronMassDependencies","dependenciesDiag_generated","diagDependencies","dependenciesDiff_generated","diffDependencies","dependenciesDiffTransform_generated","diffTransformDependencies","dependenciesSqrt_generated","sqrtDependencies","dependenciesDistance_generated","_dependenciesSqrtGenerated","distanceDependencies","dependenciesDotDivide_generated","dotDivideDependencies","dependenciesDotMultiply_generated","dotMultiplyDependencies","dependenciesDotPow_generated","dotPowDependencies","dependenciesE_generated","eDependencies","dependenciesEfimovFactor_generated","efimovFactorDependencies","dependenciesFlatten_generated","flattenDependencies","dependenciesIm_generated","imDependencies","dependenciesMatrixFromColumns_generated","_dependenciesFlattenGenerated","matrixFromColumnsDependencies","dependenciesSign_generated","_dependenciesComplexGenerated","signDependencies","dependenciesQr_generated","_dependenciesSignGenerated","qrDependencies","dependenciesRe_generated","reDependencies","dependenciesSin_generated","sinDependencies","dependenciesUsolve_generated","usolveDependencies","dependenciesUsolveAll_generated","usolveAllDependencies","dependenciesEigs_generated","_dependenciesAtanGenerated","_dependenciesColumnGenerated","_dependenciesCosGenerated","_dependenciesDiagGenerated","_dependenciesImGenerated","_dependenciesMatrixFromColumnsGenerated","_dependenciesQrGenerated","_dependenciesReGenerated","_dependenciesSinGenerated","_dependenciesUsolveGenerated","_dependenciesUsolveAllGenerated","eigsDependencies","dependenciesElectricConstant_generated","electricConstantDependencies","dependenciesElectronMass_generated","electronMassDependencies","dependenciesElementaryCharge_generated","elementaryChargeDependencies","dependenciesEqualText_generated","_dependenciesCompareTextGenerated","equalTextDependencies","dependenciesErf_generated","erfDependencies","dependenciesEvaluate_generated","evaluateDependencies","dependenciesExp_generated","expDependencies","dependenciesExpm_generated","expmDependencies","dependenciesExpm1_generated","expm1Dependencies","dependenciesFalse_generated","falseDependencies","dependenciesFaraday_generated","faradayDependencies","dependenciesFermiCoupling_generated","fermiCouplingDependencies","dependenciesI_generated","iDependencies","dependenciesTau_generated","tauDependencies","dependenciesFft_generated","_dependenciesExpGenerated","_dependenciesIGenerated","_dependenciesTauGenerated","fftDependencies","dependenciesFibonacciHeapClass_generated","FibonacciHeapDependencies","dependenciesFilter_generated","filterDependencies","dependenciesFilterTransform_generated","filterTransformDependencies","dependenciesFineStructure_generated","fineStructureDependencies","dependenciesFirstRadiation_generated","firstRadiationDependencies","dependenciesForEach_generated","forEachDependencies","dependenciesForEachTransform_generated","forEachTransformDependencies","dependenciesGasConstant_generated","gasConstantDependencies","dependenciesGcd_generated","gcdDependencies","dependenciesGetMatrixDataType_generated","getMatrixDataTypeDependencies","dependenciesGravitationConstant_generated","gravitationConstantDependencies","dependenciesGravity_generated","gravityDependencies","dependenciesHartreeEnergy_generated","hartreeEnergyDependencies","dependenciesHasNumericValue_generated","hasNumericValueDependencies","dependenciesHelpClass_generated","HelpDependencies","dependenciesHelp_generated","_dependenciesHelpClassGenerated","helpDependencies","dependenciesHex_generated","hexDependencies","dependenciesHypot_generated","hypotDependencies","dependenciesIfft_generated","_dependenciesDotDivideGenerated","_dependenciesFftGenerated","ifftDependencies","dependenciesIndex_generated","indexDependencies","dependenciesIndexTransform_generated","indexTransformDependencies","dependenciesInfinity_generated","InfinityDependencies","dependenciesIntersect_generated","intersectDependencies","dependenciesInverseConductanceQuantum_generated","inverseConductanceQuantumDependencies","dependenciesMod_generated","modDependencies","dependenciesXgcd_generated","xgcdDependencies","dependenciesInvmod_generated","_dependenciesModGenerated","_dependenciesXgcdGenerated","invmodDependencies","dependenciesIsNaN_generated","isNaNDependencies","dependenciesIsPrime_generated","isPrimeDependencies","dependenciesLog_generated","logDependencies","dependenciesSum_generated","sumDependencies","dependenciesKldivergence_generated","_dependenciesLogGenerated","_dependenciesSumGenerated","kldivergenceDependencies","dependenciesKlitzing_generated","klitzingDependencies","dependenciesKron_generated","kronDependencies","dependenciesLN10_generated","LN10Dependencies","dependenciesLN2_generated","LN2Dependencies","dependenciesLOG10E_generated","LOG10EDependencies","dependenciesLOG2E_generated","LOG2EDependencies","dependenciesLcm_generated","lcmDependencies","dependenciesLeafCount_generated","leafCountDependencies","dependenciesLeftShift_generated","leftShiftDependencies","dependenciesLgamma_generated","lgammaDependencies","dependenciesLog10_generated","log10Dependencies","dependenciesLog1p_generated","log1pDependencies","dependenciesLog2_generated","log2Dependencies","dependenciesLoschmidt_generated","loschmidtDependencies","dependenciesLsolve_generated","lsolveDependencies","dependenciesLsolveAll_generated","lsolveAllDependencies","dependenciesSpaClass_generated","_dependenciesFibonacciHeapClassGenerated","SpaDependencies","dependenciesLup_generated","_dependenciesSpaClassGenerated","lupDependencies","dependenciesSlu_generated","sluDependencies","dependenciesLusolve_generated","_dependenciesLsolveGenerated","_dependenciesLupGenerated","_dependenciesSluGenerated","lusolveDependencies","dependenciesMap_generated","mapDependencies","dependenciesPartitionSelect_generated","_dependenciesIsNaNGenerated","partitionSelectDependencies","dependenciesMedian_generated","_dependenciesPartitionSelectGenerated","medianDependencies","dependenciesMad_generated","_dependenciesMapGenerated","_dependenciesMedianGenerated","madDependencies","dependenciesMagneticConstant_generated","magneticConstantDependencies","dependenciesMagneticFluxQuantum_generated","magneticFluxQuantumDependencies","dependenciesMapTransform_generated","mapTransformDependencies","dependenciesMatrixFromFunction_generated","matrixFromFunctionDependencies","dependenciesMatrixFromRows_generated","matrixFromRowsDependencies","dependenciesMax_generated","maxDependencies","dependenciesMaxTransform_generated","maxTransformDependencies","dependenciesMean_generated","meanDependencies","dependenciesMeanTransform_generated","meanTransformDependencies","dependenciesMin_generated","minDependencies","dependenciesMinTransform_generated","minTransformDependencies","dependenciesMode_generated","modeDependencies","dependenciesMolarMass_generated","molarMassDependencies","dependenciesMolarMassC12_generated","molarMassC12Dependencies","dependenciesMolarPlanckConstant_generated","molarPlanckConstantDependencies","dependenciesMolarVolume_generated","molarVolumeDependencies","dependenciesMultinomial_generated","multinomialDependencies","dependenciesNaN_generated","NaNDependencies","dependenciesNeutronMass_generated","neutronMassDependencies","dependenciesNorm_generated","_dependenciesCtransposeGenerated","_dependenciesEigsGenerated","normDependencies","dependenciesNthRoot_generated","nthRootDependencies","dependenciesNthRoots_generated","nthRootsDependencies","dependenciesNuclearMagneton_generated","nuclearMagnetonDependencies","dependenciesNull_generated","nullDependencies","dependenciesOct_generated","octDependencies","dependenciesOnes_generated","onesDependencies","dependenciesOr_generated","orDependencies","dependenciesParserClass_generated","_dependenciesEvaluateGenerated","ParserDependencies","dependenciesParser_generated","_dependenciesParserClassGenerated","parserDependencies","dependenciesPermutations_generated","permutationsDependencies","dependenciesPhi_generated","phiDependencies","dependenciesPi_generated","piDependencies","dependenciesPickRandom_generated","pickRandomDependencies","dependenciesPinv_generated","_dependenciesDeepEqualGenerated","pinvDependencies","dependenciesPlanckCharge_generated","planckChargeDependencies","dependenciesPlanckConstant_generated","planckConstantDependencies","dependenciesPlanckLength_generated","planckLengthDependencies","dependenciesPlanckMass_generated","planckMassDependencies","dependenciesPlanckTemperature_generated","planckTemperatureDependencies","dependenciesPlanckTime_generated","planckTimeDependencies","dependenciesPrint_generated","printDependencies","dependenciesProtonMass_generated","protonMassDependencies","dependenciesQuantileSeq_generated","quantileSeqDependencies","dependenciesQuantumOfCirculation_generated","quantumOfCirculationDependencies","dependenciesRandom_generated","randomDependencies","dependenciesRandomInt_generated","randomIntDependencies","dependenciesRangeClass_generated","RangeDependencies","dependenciesRangeTransform_generated","rangeTransformDependencies","dependenciesRationalize_generated","rationalizeDependencies","dependenciesReducedPlanckConstant_generated","reducedPlanckConstantDependencies","dependenciesReplacer_generated","replacerDependencies","dependenciesReshape_generated","reshapeDependencies","dependenciesResize_generated","resizeDependencies","dependenciesReviver_generated","reviverDependencies","dependenciesRightArithShift_generated","rightArithShiftDependencies","dependenciesRightLogShift_generated","rightLogShiftDependencies","dependenciesRotationMatrix_generated","_dependenciesNormGenerated","rotationMatrixDependencies","dependenciesRotate_generated","_dependenciesRotationMatrixGenerated","rotateDependencies","dependenciesRow_generated","rowDependencies","dependenciesRowTransform_generated","rowTransformDependencies","dependenciesRydberg_generated","rydbergDependencies","dependenciesSQRT1_2_generated","SQRT1_2Dependencies","dependenciesSQRT2_generated","SQRT2Dependencies","dependenciesSackurTetrode_generated","sackurTetrodeDependencies","dependenciesSec_generated","secDependencies","dependenciesSech_generated","sechDependencies","dependenciesSecondRadiation_generated","secondRadiationDependencies","dependenciesSetCartesian_generated","_dependenciesCompareNaturalGenerated","setCartesianDependencies","dependenciesSetDifference_generated","setDifferenceDependencies","dependenciesSetDistinct_generated","setDistinctDependencies","dependenciesSetIntersect_generated","setIntersectDependencies","dependenciesSetIsSubset_generated","setIsSubsetDependencies","dependenciesSetMultiplicity_generated","setMultiplicityDependencies","dependenciesSetPowerset_generated","setPowersetDependencies","dependenciesSetSize_generated","setSizeDependencies","dependenciesSetSymDifference_generated","_dependenciesConcatGenerated","_dependenciesSetDifferenceGenerated","setSymDifferenceDependencies","dependenciesSetUnion_generated","_dependenciesSetIntersectGenerated","_dependenciesSetSymDifferenceGenerated","setUnionDependencies","dependenciesSinh_generated","sinhDependencies","dependenciesSort_generated","sortDependencies","dependenciesSparse_generated","sparseDependencies","dependenciesSpeedOfLight_generated","speedOfLightDependencies","dependenciesSplitUnit_generated","splitUnitDependencies","dependenciesSqrtm_generated","_dependenciesMaxGenerated","sqrtmDependencies","dependenciesSquare_generated","squareDependencies","dependenciesSqueeze_generated","squeezeDependencies","dependenciesVariance_generated","_dependenciesApplyGenerated","varianceDependencies","dependenciesStd_generated","_dependenciesVarianceGenerated","stdDependencies","dependenciesStdTransform_generated","stdTransformDependencies","dependenciesStefanBoltzmann_generated","stefanBoltzmannDependencies","dependenciesString_generated","stringDependencies","dependenciesSubsetTransform_generated","subsetTransformDependencies","dependenciesSumTransform_generated","sumTransformDependencies","dependenciesSymbolicEqual_generated","symbolicEqualDependencies","dependenciesTan_generated","tanDependencies","dependenciesTanh_generated","tanhDependencies","dependenciesThomsonCrossSection_generated","thomsonCrossSectionDependencies","dependenciesTo_generated","toDependencies","dependenciesTrace_generated","traceDependencies","dependenciesTrue_generated","trueDependencies","dependenciesTypeOf_generated","typeOfDependencies","dependenciesUnequal_generated","unequalDependencies","dependenciesUnitFunction_generated","unitDependencies","dependenciesUppercaseE_generated","_dependenciesEGenerated","EDependencies","dependenciesUppercasePi_generated","_dependenciesPiGenerated","PIDependencies","dependenciesVacuumImpedance_generated","vacuumImpedanceDependencies","dependenciesVarianceTransform_generated","varianceTransformDependencies","dependenciesVersion_generated","versionDependencies","dependenciesWeakMixingAngle_generated","weakMixingAngleDependencies","dependenciesWienDisplacement_generated","wienDisplacementDependencies","dependenciesXor_generated","xorDependencies","_typeof","allFactoriesAny","allFactories","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","cacheBabelInterop","cacheNodeInterop","hasPropertyDescriptor","_dependenciesUppercaseEGenerated","_dependenciesInfinityGenerated","_dependenciesLN10Generated","_dependenciesLN2Generated","_dependenciesLOG10EGenerated","_dependenciesLOG2EGenerated","_dependenciesNaNGenerated","_dependenciesUppercasePiGenerated","_dependenciesRangeClassGenerated","_dependenciesSQRT1_2Generated","_dependenciesSQRT2Generated","_dependenciesAcosGenerated","_dependenciesAcoshGenerated","_dependenciesAcotGenerated","_dependenciesAcothGenerated","_dependenciesAcscGenerated","_dependenciesAcschGenerated","_allFactoriesAny","_dependenciesAndGenerated","_dependenciesApplyTransformGenerated","_dependenciesArgGenerated","_dependenciesAsecGenerated","_dependenciesAsechGenerated","_dependenciesAsinGenerated","_dependenciesAsinhGenerated","_dependenciesAtan2Generated","_dependenciesAtanhGenerated","_dependenciesAtomicMassGenerated","_dependenciesAvogadroGenerated","_dependenciesBellNumbersGenerated","_dependenciesBinGenerated","_dependenciesBitAndGenerated","_dependenciesBitNotGenerated","_dependenciesBitOrGenerated","_dependenciesBitXorGenerated","_dependenciesBohrMagnetonGenerated","_dependenciesBohrRadiusGenerated","_dependenciesBoltzmannGenerated","_dependenciesBooleanGenerated","_dependenciesCatalanGenerated","_dependenciesCbrtGenerated","_dependenciesChainGenerated","_dependenciesClassicalElectronRadiusGenerated","_dependenciesCloneGenerated","_dependenciesColumnTransformGenerated","_dependenciesCombinationsWithRepGenerated","_dependenciesCompileGenerated","_dependenciesCompositionGenerated","_dependenciesConcatTransformGenerated","_dependenciesConductanceQuantumGenerated","_dependenciesCoshGenerated","_dependenciesCotGenerated","_dependenciesCothGenerated","_dependenciesCoulombGenerated","_dependenciesCountGenerated","_dependenciesCreateUnitGenerated","_dependenciesCrossGenerated","_dependenciesCscGenerated","_dependenciesCschGenerated","_dependenciesCubeGenerated","_dependenciesCumSumGenerated","_dependenciesCumSumTransformGenerated","_dependenciesDerivativeGenerated","_dependenciesDeuteronMassGenerated","_dependenciesDiffGenerated","_dependenciesDiffTransformGenerated","_dependenciesDistanceGenerated","_dependenciesDotMultiplyGenerated","_dependenciesDotPowGenerated","_dependenciesEfimovFactorGenerated","_dependenciesElectricConstantGenerated","_dependenciesElectronMassGenerated","_dependenciesElementaryChargeGenerated","_dependenciesEqualTextGenerated","_dependenciesErfGenerated","_dependenciesExpm1Generated","_dependenciesExpmGenerated","_dependenciesFalseGenerated","_dependenciesFaradayGenerated","_dependenciesFermiCouplingGenerated","_dependenciesFilterGenerated","_dependenciesFilterTransformGenerated","_dependenciesFineStructureGenerated","_dependenciesFirstRadiationGenerated","_dependenciesForEachGenerated","_dependenciesForEachTransformGenerated","_dependenciesGasConstantGenerated","_dependenciesGcdGenerated","_dependenciesGetMatrixDataTypeGenerated","_dependenciesGravitationConstantGenerated","_dependenciesGravityGenerated","_dependenciesHartreeEnergyGenerated","_dependenciesHasNumericValueGenerated","_dependenciesHelpGenerated","_dependenciesHexGenerated","_dependenciesHypotGenerated","_dependenciesIfftGenerated","_dependenciesIndexGenerated","_dependenciesIndexTransformGenerated","_dependenciesIntersectGenerated","_dependenciesInverseConductanceQuantumGenerated","_dependenciesInvmodGenerated","_dependenciesIsPrimeGenerated","_dependenciesKldivergenceGenerated","_dependenciesKlitzingGenerated","_dependenciesKronGenerated","_dependenciesLcmGenerated","_dependenciesLeafCountGenerated","_dependenciesLeftShiftGenerated","_dependenciesLgammaGenerated","_dependenciesLog10Generated","_dependenciesLog1pGenerated","_dependenciesLog2Generated","_dependenciesLoschmidtGenerated","_dependenciesLsolveAllGenerated","_dependenciesLusolveGenerated","_dependenciesMadGenerated","_dependenciesMagneticConstantGenerated","_dependenciesMagneticFluxQuantumGenerated","_dependenciesMapTransformGenerated","_dependenciesMatrixFromFunctionGenerated","_dependenciesMatrixFromRowsGenerated","_dependenciesMaxTransformGenerated","_dependenciesMeanGenerated","_dependenciesMeanTransformGenerated","_dependenciesMinGenerated","_dependenciesMinTransformGenerated","_dependenciesModeGenerated","_dependenciesMolarMassC12Generated","_dependenciesMolarMassGenerated","_dependenciesMolarPlanckConstantGenerated","_dependenciesMolarVolumeGenerated","_dependenciesMultinomialGenerated","_dependenciesNeutronMassGenerated","_dependenciesNthRootGenerated","_dependenciesNthRootsGenerated","_dependenciesNuclearMagnetonGenerated","_dependenciesNullGenerated","_dependenciesOctGenerated","_dependenciesOnesGenerated","_dependenciesOrGenerated","_dependenciesParserGenerated","_dependenciesPermutationsGenerated","_dependenciesPhiGenerated","_dependenciesPickRandomGenerated","_dependenciesPinvGenerated","_dependenciesPlanckChargeGenerated","_dependenciesPlanckConstantGenerated","_dependenciesPlanckLengthGenerated","_dependenciesPlanckMassGenerated","_dependenciesPlanckTemperatureGenerated","_dependenciesPlanckTimeGenerated","_dependenciesPrintGenerated","_dependenciesProtonMassGenerated","_dependenciesQuantileSeqGenerated","_dependenciesQuantumOfCirculationGenerated","_dependenciesRandomGenerated","_dependenciesRandomIntGenerated","_dependenciesRangeTransformGenerated","_dependenciesRationalizeGenerated","_dependenciesReducedPlanckConstantGenerated","_dependenciesReplacerGenerated","_dependenciesReshapeGenerated","_dependenciesResizeGenerated","_dependenciesReviverGenerated","_dependenciesRightArithShiftGenerated","_dependenciesRightLogShiftGenerated","_dependenciesRotateGenerated","_dependenciesRowGenerated","_dependenciesRowTransformGenerated","_dependenciesRydbergGenerated","_dependenciesSackurTetrodeGenerated","_dependenciesSecGenerated","_dependenciesSechGenerated","_dependenciesSecondRadiationGenerated","_dependenciesSetCartesianGenerated","_dependenciesSetDistinctGenerated","_dependenciesSetIsSubsetGenerated","_dependenciesSetMultiplicityGenerated","_dependenciesSetPowersetGenerated","_dependenciesSetSizeGenerated","_dependenciesSetUnionGenerated","_dependenciesSinhGenerated","_dependenciesSortGenerated","_dependenciesSparseGenerated","_dependenciesSpeedOfLightGenerated","_dependenciesSplitUnitGenerated","_dependenciesSqrtmGenerated","_dependenciesSquareGenerated","_dependenciesSqueezeGenerated","_dependenciesStdGenerated","_dependenciesStdTransformGenerated","_dependenciesStefanBoltzmannGenerated","_dependenciesStringGenerated","_dependenciesSubsetTransformGenerated","_dependenciesSumTransformGenerated","_dependenciesSymbolicEqualGenerated","_dependenciesTanGenerated","_dependenciesTanhGenerated","_dependenciesThomsonCrossSectionGenerated","_dependenciesToGenerated","_dependenciesTraceGenerated","_dependenciesTrueGenerated","_dependenciesTypeOfGenerated","_dependenciesUnequalGenerated","_dependenciesUnitFunctionGenerated","_dependenciesVacuumImpedanceGenerated","_dependenciesVarianceTransformGenerated","_dependenciesVersionGenerated","_dependenciesWeakMixingAngleGenerated","_dependenciesWienDisplacementGenerated","_dependenciesXorGenerated","require$$277","require$$278","require$$279","require$$280","require$$281","require$$282","require$$283","require$$284","require$$285","require$$286","require$$287","require$$288","require$$289","require$$290","require$$291","require$$292","require$$293","require$$294","require$$295","require$$296","require$$297","require$$298","require$$299","require$$300","require$$301","require$$302","require$$303","require$$304","require$$305","require$$306","require$$307","require$$308","require$$309","require$$310","require$$311","require$$312","require$$313","require$$314","require$$315","require$$316","require$$317","require$$318","require$$319","require$$320","require$$321","require$$322","require$$323","require$$324","require$$325","require$$326","require$$327","require$$328","require$$329","require$$330","require$$331","require$$332","require$$333","require$$334","require$$335","require$$336","require$$337","require$$338","require$$339","require$$340","require$$341","require$$342","require$$343","require$$344","emitter","mixin","_tinyEmitter","importFactory","load","importedFactories","mathImport","functions","flattenImports","flatValues","flatName","isTransformFunctionFactory","_importFactory","isSupportedType","_wrap","hasTypedFunctionSignature","isTypedFunction","_importTransform","allowedInExpressions","_deleteTransform","wrapper","namespace","existingTransform","existing","instance","factoryAllowedInExpressions","unsafe","create_1","configInternal","legacyFactories","legacyInstances","firstProperty","lazyTyped","internalImport","_exportNames","_impureFunctionsAnyGenerated","_typeChecks","_dependenciesAnyGenerated","_mainAny"],"mappings":"23BAEA,OAAO,eAAeA,GAAS,aAAc,CAC3C,MAAO,EACT,CAAC,EACqBA,GAAA,eAAG,OACzB,IAAIC,EAAiB,CAGnB,QAAS,MAET,OAAQ,SAER,OAAQ,SAER,UAAW,GAKX,YAAa,GAGb,W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AG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACpB,CACK,EACD,KAAM,CACJ,GAAI,CACF,KAAM,GACN,MAAO,EACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,GACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,KACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,KACP,WAAY,EACb,EACD,IAAK,CACH,KAAM,MACN,MAAO,KACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,KACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,KACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,GACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,IACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,KACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,KACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,KACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,MACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,MACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,MACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,MACP,WAAY,EACb,EACD,MAAO,CACL,KAAM,QACN,MAAO,MACP,WAAY,EACpB,CACK,EACD,QAAS,CACP,GAAI,CACF,KAAM,GACN,MAAO,EACP,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACpB,CACK,EACD,MAAO,CACL,GAAI,CACF,KAAM,GACN,MAAO,EACP,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,MACP,WAAY,EACpB,CACK,EACD,gBAAiB,CACf,GAAI,CACF,KAAM,GACN,MAAO,EACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,IACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACb,EACD,EAAG,CACD,KAAM,IACN,MAAO,KACP,WAAY,EACpB,CACK,EACD,iBAAkB,CAChB,GAAI,CACF,KAAM,GACN,MAAO,EACP,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KACP,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACb,EACD,GAAI,CACF,KAAM,KACN,MAAO,KAAK,IAAI,KAAM,CAAC,EACvB,WAAY,EACpB,CACK,EACD,eAAgB,CACd,GAAI,CACF,KAAM,GACN,MAAO,EACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,IACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,KACP,WAAY,EACb,EACD,KAAM,CACJ,KAAM,OACN,MAAO,KACP,WAAY,EACb,EACD,IAAK,CACH,KAAM,MACN,MAAO,KACP,WAAY,EACb,EACD,MAAO,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G,UACJ,EACD,CACE,EAAG,OACH,EAAG,SACP,EAAK,CACD,EAAG,8BACH,SAAU,CACR,SAAU,CACR,YAAa,EACrB,CACA,CACA,EAAK,CACD,EAAG,oCACH,SAAU,CACR,SAAU,CACR,YAAa,EACrB,CACA,CACG,EACD,CACE,EAAG,iCACH,SAAU,CACR,OAAQ,CACN,MAAO,EACf,CACK,CAEF,EACD,CACE,EAAG,0BACH,EAAG,4BACP,EAAK,CACD,EAAG,2DACH,SAAU,CACR,OAAQ,CACN,MAAO,EACf,CACK,CAEL,EAAK,CACD,EAAG,2DACH,SAAU,CACR,OAAQ,CACN,MAAO,EACf,CACA,CACA,EAAK,CACD,EAAG,2DACH,SAAU,CACR,OAAQ,CACN,MAAO,EACf,CACA,CACA,EAAK,CACD,EAAG,MACH,EAAG,KACP,EAAK,CACD,EAAG,uBACH,SAAU,CACR,OAAQ,CACN,MAAO,EACf,CACK,CAEL,EAAK,CACD,EAAG,2BACH,SAAU,CACR,OAAQ,CACN,MAAO,EACf,CACK,CAEF,EAIDqgC,EAEA,CACE,EAAG,aACH,SAAU,CACR,IAAK,CACH,MAAO,EACf,CACK,CAEL,EAAK,CACD,EAAG,OACH,EAAG,GACP,EAAK,CACD,EAAG,UACH,EAAG,SACJ,EACD,CACE,EAAG,gBACH,EAAG,YACJ,EACD,CACE,EAAG,2BACH,EAAG,+BACP,EAAK,CACD,EAAG,2BACH,EAAG,+BACP,EAAK,CACD,EAAG,qBAEH,SAAU,CACR,SAAU,CACR,YAAa,EACrB,CACA,CACA,EAAK,CACD,EAAG,8BACH,SAAU,CACR,SAAU,CACR,YAAa,EACrB,CACA,CACA,EAAK,CACD,EAAG,8DACH,SAAU,CACR,SAAU,CACR,YAAa,EACrB,CACA,CACA,EAAK,CACD,EAAG,8DACH,SAAU,CACR,SAAU,CACR,YAAa,EACrB,CACA,CACA,EAAK,CACD,EAAG,UACH,EAAG,SACP,EAAK,CACD,EAAG,qBACH,SAAU,CACR,SAAU,CACR,YAAa,E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,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950]}