mathjs-min 11.7.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mathjs-min might be problematic. Click here for more details.
- package/CONTRIBUTING.md +24 -0
- package/HISTORY.md +2872 -0
- package/LICENSE +176 -0
- package/NOTICE +16 -0
- package/README.md +235 -0
- package/bin/cli.js +432 -0
- package/bin/package.json +3 -0
- package/dist/math.js +3 -0
- package/dist/math.min.js +3 -0
- package/dist/package.json +3 -0
- package/lib/cjs/constants.js +127 -0
- package/lib/cjs/core/config.js +26 -0
- package/lib/cjs/core/create.js +207 -0
- package/lib/cjs/core/function/config.js +118 -0
- package/lib/cjs/core/function/import.js +340 -0
- package/lib/cjs/core/function/typed.js +421 -0
- package/lib/cjs/defaultInstance.js +13 -0
- package/lib/cjs/entry/allFactoriesAny.js +14 -0
- package/lib/cjs/entry/allFactoriesNumber.js +14 -0
- package/lib/cjs/entry/configReadonly.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAbs.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAccessorNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAcos.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAcosh.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAcot.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAcoth.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAcsc.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAcsch.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAdd.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAddScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAnd.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesApply.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesApplyTransform.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesArg.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesArrayNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAsec.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAsech.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAsin.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAsinh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAssignmentNode.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAtan.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAtan2.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAtanh.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAtomicMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesAvogadro.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBellNumbers.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBigNumberClass.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBignumber.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBin.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBitAnd.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBitNot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBitOr.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBitXor.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBlockNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBohrMagneton.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBohrRadius.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBoltzmann.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesBoolean.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCatalan.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCbrt.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCeil.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesChain.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesChainClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesClassicalElectronRadius.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesClone.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesColumn.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesColumnTransform.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCombinations.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCombinationsWithRep.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCompare.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCompareNatural.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCompareText.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCompile.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesComplex.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesComplexClass.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesComposition.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesConcat.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesConcatTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesConditionalNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesConductanceQuantum.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesConj.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesConstantNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCos.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCosh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCot.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCoth.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCoulomb.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCount.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCreateUnit.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCross.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCsc.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCsch.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCtranspose.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCube.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCumSum.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesCumSumTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDeepEqual.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDenseMatrixClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDerivative.generated.js +38 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDet.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDeuteronMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDiag.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDiff.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDiffTransform.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDistance.generated.js +32 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDivide.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDivideScalar.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDot.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDotDivide.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDotMultiply.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesDotPow.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesE.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesEfimovFactor.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesEigs.generated.js +76 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesElectricConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesElectronMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesElementaryCharge.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesEqual.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesEqualScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesEqualText.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesErf.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesEvaluate.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesExp.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesExpm.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesExpm1.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFactorial.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFalse.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFaraday.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFermiCoupling.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFft.generated.js +42 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFibonacciHeapClass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFilter.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFilterTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFineStructure.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFirstRadiation.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFix.generated.js +32 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFlatten.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFloor.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesForEach.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesForEachTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFormat.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFraction.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFractionClass.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFunctionAssignmentNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesFunctionNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesGamma.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesGasConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesGcd.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesGetMatrixDataType.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesGravitationConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesGravity.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesHartreeEnergy.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesHasNumericValue.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesHelp.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesHelpClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesHex.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesHypot.generated.js +32 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesI.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIdentity.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIfft.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIm.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesImmutableDenseMatrixClass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIndex.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIndexClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIndexNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIndexTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesInfinity.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIntersect.generated.js +44 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesInv.generated.js +34 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesInverseConductanceQuantum.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesInvmod.generated.js +32 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsInteger.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsNaN.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsNegative.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsNumeric.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsPositive.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsPrime.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesIsZero.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesKldivergence.generated.js +34 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesKlitzing.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesKron.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLN10.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLN2.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLOG10E.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLOG2E.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLarger.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLargerEq.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLcm.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLeafCount.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLeftShift.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLgamma.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLog.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLog10.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLog1p.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLog2.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLoschmidt.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLsolve.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLsolveAll.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLup.generated.js +42 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLusolve.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesLyap.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMad.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMagneticConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMagneticFluxQuantum.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMap.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMapTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrix.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixClass.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMax.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMaxTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMean.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMeanTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMedian.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMin.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMinTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMod.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMode.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMolarMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMolarMassC12.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMolarPlanckConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMolarVolume.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMultinomial.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMultiply.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesMultiplyScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNaN.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNeutronMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNode.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNorm.generated.js +42 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNthRoot.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNthRoots.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNuclearMagneton.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNull.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNumber.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesNumeric.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesObjectNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesOct.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesOnes.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesOperatorNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesOr.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesParenthesisNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesParse.generated.js +50 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesParser.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesParserClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPartitionSelect.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPermutations.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPhi.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPi.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPickRandom.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPinv.generated.js +40 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPlanckCharge.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPlanckConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPlanckLength.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPlanckMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPlanckTemperature.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPlanckTime.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPolynomialRoot.generated.js +42 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPow.generated.js +32 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesPrint.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesProd.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesProtonMass.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesQr.generated.js +46 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesQuantileSeq.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesQuantumOfCirculation.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRandom.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRandomInt.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRange.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRangeClass.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRangeNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRangeTransform.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js +64 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRe.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesReducedPlanckConstant.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRelationalNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesReplacer.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesReshape.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesResize.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesResolve.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesResultSet.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesReviver.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRightArithShift.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRightLogShift.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRotate.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRotationMatrix.generated.js +38 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRound.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRow.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRowTransform.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesRydberg.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSQRT1_2.generated.js +21 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSQRT2.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSackurTetrode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSchur.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSec.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSech.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSecondRadiation.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetCartesian.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetDifference.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetDistinct.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetIntersect.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetIsSubset.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetMultiplicity.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetPowerset.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetSize.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetSymDifference.generated.js +28 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSetUnion.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSign.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +64 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSimplifyConstant.generated.js +40 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +52 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSin.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSinh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSize.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSlu.generated.js +36 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSmaller.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSmallerEq.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSort.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSpaClass.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSparse.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSparseMatrixClass.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSpeedOfLight.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSplitUnit.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSqrt.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSqrtm.generated.js +38 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSquare.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSqueeze.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesStd.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesStdTransform.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesStefanBoltzmann.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesStirlingS2.generated.js +42 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesString.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSubset.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSubsetTransform.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSubtract.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSum.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSumTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSylvester.generated.js +46 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSymbolNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTan.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTanh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTau.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesThomsonCrossSection.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTo.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTrace.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTranspose.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTrue.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTypeOf.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesTyped.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUnaryMinus.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUnaryPlus.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUnequal.generated.js +26 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUnitClass.generated.js +46 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUnitFunction.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUppercaseE.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUppercasePi.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUsolve.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesUsolveAll.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesVacuumImpedance.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesVariance.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesVarianceTransform.generated.js +30 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesVersion.generated.js +16 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesWeakMixingAngle.generated.js +18 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesWienDisplacement.generated.js +20 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesXgcd.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesXor.generated.js +24 -0
- package/lib/cjs/entry/dependenciesAny/dependenciesZeros.generated.js +22 -0
- package/lib/cjs/entry/dependenciesAny.generated.js +2455 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAbs.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAccessorNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAcos.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAcosh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAcot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAcoth.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAcsc.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAcsch.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAdd.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAddScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAnd.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesApply.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesApplyTransform.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesArrayNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAsec.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAsech.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAsin.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAsinh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAssignmentNode.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAtan.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAtan2.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesAtanh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBellNumbers.generated.js +26 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBitAnd.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBitNot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBitOr.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBitXor.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBlockNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesBoolean.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCatalan.generated.js +30 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCbrt.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCeil.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesChain.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesChainClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesClone.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCombinations.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCombinationsWithRep.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCompare.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCompareNatural.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCompareText.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCompile.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesComposition.generated.js +30 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesConditionalNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesConstantNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCos.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCosh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCoth.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCsc.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCsch.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCube.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCumSum.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesCumSumTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesDeepEqual.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesDerivative.generated.js +38 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesDivide.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesDivideScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesE.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesEqual.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesEqualScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesEqualText.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesErf.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesEvaluate.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesExp.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesExpm1.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFactorial.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFalse.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFilter.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFilterTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFix.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFloor.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesForEach.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesForEachTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFormat.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFunctionAssignmentNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesFunctionNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesGamma.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesGcd.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesHasNumericValue.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesHelp.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesHelpClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesHypot.generated.js +32 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIndex.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIndexNode.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesInfinity.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsInteger.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsNaN.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsNegative.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsNumeric.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsPositive.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsPrime.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesIsZero.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLN10.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLN2.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLOG10E.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLOG2E.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLarger.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLargerEq.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLcm.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLeftShift.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLgamma.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLog.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLog10.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLog1p.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesLog2.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMad.generated.js +26 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMap.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMapTransform.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMatrix.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMax.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMaxTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMean.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMeanTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMedian.generated.js +26 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMin.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMinTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMod.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMode.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMultinomial.generated.js +30 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMultiply.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesMultiplyScalar.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNaN.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNode.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNorm.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNthRoot.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNull.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNumber.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesNumeric.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesObjectNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesOperatorNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesOr.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesParenthesisNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesParse.generated.js +50 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesParser.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesParserClass.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPartitionSelect.generated.js +24 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPermutations.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPhi.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPi.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPickRandom.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPow.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesPrint.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesProd.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesQuantileSeq.generated.js +26 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRandom.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRandomInt.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRange.generated.js +28 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRangeClass.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRangeNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRangeTransform.generated.js +28 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRationalize.generated.js +60 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRelationalNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesReplacer.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesResolve.generated.js +28 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesResultSet.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesReviver.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRightArithShift.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRightLogShift.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesRound.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSQRT1_2.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSQRT2.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSec.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSech.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSign.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +60 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSimplifyConstant.generated.js +36 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +52 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSin.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSinh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSize.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSmaller.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSmallerEq.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSqrt.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSquare.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesStd.generated.js +24 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesStdTransform.generated.js +24 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesStirlingS2.generated.js +40 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesString.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSubset.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSubsetTransform.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSubtract.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSum.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSumTransform.generated.js +22 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesSymbolNode.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesTan.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesTanh.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesTau.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesTrue.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesTypeOf.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesTyped.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesUnaryMinus.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesUnaryPlus.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesUnequal.generated.js +20 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesUppercaseE.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesUppercasePi.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesVariance.generated.js +30 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesVarianceTransform.generated.js +30 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesVersion.generated.js +16 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesXgcd.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber/dependenciesXor.generated.js +18 -0
- package/lib/cjs/entry/dependenciesNumber.generated.js +1419 -0
- package/lib/cjs/entry/impureFunctionsAny.generated.js +734 -0
- package/lib/cjs/entry/impureFunctionsNumber.generated.js +541 -0
- package/lib/cjs/entry/mainAny.js +115 -0
- package/lib/cjs/entry/mainNumber.js +115 -0
- package/lib/cjs/entry/pureFunctionsAny.generated.js +2005 -0
- package/lib/cjs/entry/pureFunctionsNumber.generated.js +723 -0
- package/lib/cjs/entry/typeChecks.js +240 -0
- package/lib/cjs/error/ArgumentsError.js +30 -0
- package/lib/cjs/error/DimensionError.js +29 -0
- package/lib/cjs/error/IndexError.js +41 -0
- package/lib/cjs/expression/Help.js +122 -0
- package/lib/cjs/expression/Parser.js +146 -0
- package/lib/cjs/expression/embeddedDocs/constants/Infinity.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/LN10.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/LN2.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/LOG10E.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/LOG2E.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/NaN.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/SQRT1_2.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/SQRT2.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/e.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/false.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/i.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/null.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/phi.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/pi.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/tau.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/true.js +15 -0
- package/lib/cjs/expression/embeddedDocs/constants/version.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/bignumber.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/boolean.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/complex.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/createUnit.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/fraction.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/index.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/matrix.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/number.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/sparse.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/splitUnit.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/string.js +15 -0
- package/lib/cjs/expression/embeddedDocs/construction/unit.js +15 -0
- package/lib/cjs/expression/embeddedDocs/core/config.js +15 -0
- package/lib/cjs/expression/embeddedDocs/core/import.js +15 -0
- package/lib/cjs/expression/embeddedDocs/core/typed.js +15 -0
- package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +713 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/derivative.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/leafCount.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/lsolve.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/lsolveAll.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/lup.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/lusolve.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/polynomialRoot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/qr.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/rationalize.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/resolve.js +16 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/simplify.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/simplifyConstant.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/simplifyCore.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/slu.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/symbolicEqual.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/usolve.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/algebra/usolveAll.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/abs.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/add.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/cbrt.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/ceil.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/cube.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/divide.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/dotDivide.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/dotMultiply.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/dotPow.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/exp.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/expm.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/expm1.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/fix.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/floor.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/gcd.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/hypot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/invmod.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/lcm.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/log.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/log10.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/log1p.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/log2.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/mod.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/multiply.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/norm.js +14 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/nthRoot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/nthRoots.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/pow.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/round.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/sign.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/sqrt.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/sqrtm.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/square.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/subtract.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/unaryMinus.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/unaryPlus.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/xgcd.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/bitAnd.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/bitNot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/bitOr.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/bitXor.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/leftShift.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/rightArithShift.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/bitwise/rightLogShift.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/combinatorics/bellNumbers.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/combinatorics/catalan.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/combinatorics/composition.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/combinatorics/stirlingS2.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/complex/arg.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/complex/conj.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/complex/im.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/complex/re.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/expression/evaluate.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/expression/help.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/geometry/distance.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/geometry/intersect.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/logical/and.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/logical/not.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/logical/or.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/logical/xor.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/column.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/concat.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/count.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/cross.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/ctranspose.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/det.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/diag.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/diff.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/dot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/eigs.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/fft.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/filter.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/flatten.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/getMatrixDataType.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/identity.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/ifft.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/inv.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/kron.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/lyap.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/map.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromColumns.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromFunction.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromRows.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/ones.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/partitionSelect.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/pinv.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/range.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/reshape.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/resize.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/rotate.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/rotationMatrix.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/row.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/schur.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/size.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/sort.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/squeeze.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/subset.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/sylvester.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/trace.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/transpose.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/matrix/zeros.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/combinations.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/combinationsWithRep.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/distribution.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/factorial.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/gamma.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/kldivergence.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/lgamma.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/multinomial.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/permutations.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/pickRandom.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/random.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/probability/randomInt.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/compare.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/compareNatural.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/compareText.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/deepEqual.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/equal.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/equalText.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/larger.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/largerEq.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/smaller.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/smallerEq.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/relational/unequal.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setCartesian.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setDifference.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setDistinct.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setIntersect.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setIsSubset.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setMultiplicity.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setPowerset.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setSize.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setSymDifference.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/set/setUnion.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/special/erf.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/cumsum.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/mad.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/max.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/mean.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/median.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/min.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/mode.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/prod.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/quantileSeq.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/std.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/sum.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/statistics/variance.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/acos.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/acosh.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/acot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/acoth.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/acsc.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/acsch.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/asec.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/asech.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/asin.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/asinh.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/atan.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/atan2.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/atanh.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/cos.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/cosh.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/cot.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/coth.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/csc.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/csch.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/sec.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/sech.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/sin.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/sinh.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/tan.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/trigonometry/tanh.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/units/to.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/bin.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/clone.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/format.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/hasNumericValue.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/hex.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isInteger.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isNaN.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isNegative.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isNumeric.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isPositive.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isPrime.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/isZero.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/numeric.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/oct.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/print.js +15 -0
- package/lib/cjs/expression/embeddedDocs/function/utils/typeOf.js +15 -0
- package/lib/cjs/expression/function/compile.js +59 -0
- package/lib/cjs/expression/function/evaluate.js +68 -0
- package/lib/cjs/expression/function/help.js +72 -0
- package/lib/cjs/expression/function/parser.js +62 -0
- package/lib/cjs/expression/keywords.js +9 -0
- package/lib/cjs/expression/node/AccessorNode.js +233 -0
- package/lib/cjs/expression/node/ArrayNode.js +218 -0
- package/lib/cjs/expression/node/AssignmentNode.js +350 -0
- package/lib/cjs/expression/node/BlockNode.js +227 -0
- package/lib/cjs/expression/node/ConditionalNode.js +267 -0
- package/lib/cjs/expression/node/ConstantNode.js +214 -0
- package/lib/cjs/expression/node/FunctionAssignmentNode.js +289 -0
- package/lib/cjs/expression/node/FunctionNode.js +533 -0
- package/lib/cjs/expression/node/IndexNode.js +268 -0
- package/lib/cjs/expression/node/Node.js +423 -0
- package/lib/cjs/expression/node/ObjectNode.js +238 -0
- package/lib/cjs/expression/node/OperatorNode.js +671 -0
- package/lib/cjs/expression/node/ParenthesisNode.js +196 -0
- package/lib/cjs/expression/node/RangeNode.js +294 -0
- package/lib/cjs/expression/node/RelationalNode.js +248 -0
- package/lib/cjs/expression/node/SymbolNode.js +237 -0
- package/lib/cjs/expression/node/utils/access.js +46 -0
- package/lib/cjs/expression/node/utils/assign.js +52 -0
- package/lib/cjs/expression/operators.js +386 -0
- package/lib/cjs/expression/parse.js +1650 -0
- package/lib/cjs/expression/transform/apply.transform.js +49 -0
- package/lib/cjs/expression/transform/column.transform.js +52 -0
- package/lib/cjs/expression/transform/concat.transform.js +50 -0
- package/lib/cjs/expression/transform/cumsum.transform.js +50 -0
- package/lib/cjs/expression/transform/diff.transform.js +46 -0
- package/lib/cjs/expression/transform/filter.transform.js +82 -0
- package/lib/cjs/expression/transform/forEach.transform.js +71 -0
- package/lib/cjs/expression/transform/index.transform.js +54 -0
- package/lib/cjs/expression/transform/map.transform.js +85 -0
- package/lib/cjs/expression/transform/max.transform.js +45 -0
- package/lib/cjs/expression/transform/mean.transform.js +43 -0
- package/lib/cjs/expression/transform/min.transform.js +45 -0
- package/lib/cjs/expression/transform/range.transform.js +51 -0
- package/lib/cjs/expression/transform/row.transform.js +52 -0
- package/lib/cjs/expression/transform/std.transform.js +45 -0
- package/lib/cjs/expression/transform/subset.transform.js +38 -0
- package/lib/cjs/expression/transform/sum.transform.js +44 -0
- package/lib/cjs/expression/transform/utils/compileInlineExpression.js +34 -0
- package/lib/cjs/expression/transform/utils/errorTransform.js +18 -0
- package/lib/cjs/expression/transform/utils/lastDimToZeroBase.js +22 -0
- package/lib/cjs/expression/transform/variance.transform.js +51 -0
- package/lib/cjs/factoriesAny.js +2381 -0
- package/lib/cjs/factoriesNumber.js +1098 -0
- package/lib/cjs/function/algebra/decomposition/lup.js +384 -0
- package/lib/cjs/function/algebra/decomposition/qr.js +228 -0
- package/lib/cjs/function/algebra/decomposition/schur.js +75 -0
- package/lib/cjs/function/algebra/decomposition/slu.js +106 -0
- package/lib/cjs/function/algebra/derivative.js +548 -0
- package/lib/cjs/function/algebra/leafCount.js +59 -0
- package/lib/cjs/function/algebra/lyap.js +57 -0
- package/lib/cjs/function/algebra/polynomialRoot.js +139 -0
- package/lib/cjs/function/algebra/rationalize.js +830 -0
- package/lib/cjs/function/algebra/resolve.js +132 -0
- package/lib/cjs/function/algebra/simplify/util.js +267 -0
- package/lib/cjs/function/algebra/simplify/wildcards.js +38 -0
- package/lib/cjs/function/algebra/simplify.js +1265 -0
- package/lib/cjs/function/algebra/simplifyConstant.js +490 -0
- package/lib/cjs/function/algebra/simplifyCore.js +302 -0
- package/lib/cjs/function/algebra/solver/lsolve.js +162 -0
- package/lib/cjs/function/algebra/solver/lsolveAll.js +207 -0
- package/lib/cjs/function/algebra/solver/lusolve.js +113 -0
- package/lib/cjs/function/algebra/solver/usolve.js +166 -0
- package/lib/cjs/function/algebra/solver/usolveAll.js +211 -0
- package/lib/cjs/function/algebra/solver/utils/solveValidation.js +119 -0
- package/lib/cjs/function/algebra/sparse/csAmd.js +586 -0
- package/lib/cjs/function/algebra/sparse/csChol.js +161 -0
- package/lib/cjs/function/algebra/sparse/csCounts.js +130 -0
- package/lib/cjs/function/algebra/sparse/csCumsum.js +32 -0
- package/lib/cjs/function/algebra/sparse/csDfs.js +80 -0
- package/lib/cjs/function/algebra/sparse/csEreach.js +67 -0
- package/lib/cjs/function/algebra/sparse/csEtree.js +75 -0
- package/lib/cjs/function/algebra/sparse/csFkeep.js +62 -0
- package/lib/cjs/function/algebra/sparse/csFlip.js +17 -0
- package/lib/cjs/function/algebra/sparse/csIpvec.js +35 -0
- package/lib/cjs/function/algebra/sparse/csLeaf.js +62 -0
- package/lib/cjs/function/algebra/sparse/csLu.js +185 -0
- package/lib/cjs/function/algebra/sparse/csMark.js +19 -0
- package/lib/cjs/function/algebra/sparse/csMarked.js +18 -0
- package/lib/cjs/function/algebra/sparse/csPermute.js +65 -0
- package/lib/cjs/function/algebra/sparse/csPost.js +56 -0
- package/lib/cjs/function/algebra/sparse/csReach.js +55 -0
- package/lib/cjs/function/algebra/sparse/csSpsolve.js +88 -0
- package/lib/cjs/function/algebra/sparse/csSqr.js +183 -0
- package/lib/cjs/function/algebra/sparse/csSymperm.js +97 -0
- package/lib/cjs/function/algebra/sparse/csTdfs.js +46 -0
- package/lib/cjs/function/algebra/sparse/csUnflip.js +18 -0
- package/lib/cjs/function/algebra/sylvester.js +127 -0
- package/lib/cjs/function/algebra/symbolicEqual.js +65 -0
- package/lib/cjs/function/arithmetic/abs.js +51 -0
- package/lib/cjs/function/arithmetic/add.js +90 -0
- package/lib/cjs/function/arithmetic/addScalar.js +53 -0
- package/lib/cjs/function/arithmetic/cbrt.js +136 -0
- package/lib/cjs/function/arithmetic/ceil.js +187 -0
- package/lib/cjs/function/arithmetic/cube.js +56 -0
- package/lib/cjs/function/arithmetic/divide.js +84 -0
- package/lib/cjs/function/arithmetic/divideScalar.js +46 -0
- package/lib/cjs/function/arithmetic/dotDivide.js +83 -0
- package/lib/cjs/function/arithmetic/dotMultiply.js +71 -0
- package/lib/cjs/function/arithmetic/dotPow.js +83 -0
- package/lib/cjs/function/arithmetic/exp.js +53 -0
- package/lib/cjs/function/arithmetic/expm1.js +58 -0
- package/lib/cjs/function/arithmetic/fix.js +140 -0
- package/lib/cjs/function/arithmetic/floor.js +190 -0
- package/lib/cjs/function/arithmetic/gcd.js +132 -0
- package/lib/cjs/function/arithmetic/hypot.js +84 -0
- package/lib/cjs/function/arithmetic/invmod.js +65 -0
- package/lib/cjs/function/arithmetic/lcm.js +119 -0
- package/lib/cjs/function/arithmetic/log.js +79 -0
- package/lib/cjs/function/arithmetic/log10.js +68 -0
- package/lib/cjs/function/arithmetic/log1p.js +92 -0
- package/lib/cjs/function/arithmetic/log2.js +77 -0
- package/lib/cjs/function/arithmetic/mod.js +106 -0
- package/lib/cjs/function/arithmetic/multiply.js +894 -0
- package/lib/cjs/function/arithmetic/multiplyScalar.js +44 -0
- package/lib/cjs/function/arithmetic/norm.js +292 -0
- package/lib/cjs/function/arithmetic/nthRoot.js +194 -0
- package/lib/cjs/function/arithmetic/nthRoots.js +117 -0
- package/lib/cjs/function/arithmetic/pow.js +196 -0
- package/lib/cjs/function/arithmetic/round.js +169 -0
- package/lib/cjs/function/arithmetic/sign.js +74 -0
- package/lib/cjs/function/arithmetic/sqrt.js +75 -0
- package/lib/cjs/function/arithmetic/square.js +57 -0
- package/lib/cjs/function/arithmetic/subtract.js +121 -0
- package/lib/cjs/function/arithmetic/unaryMinus.js +59 -0
- package/lib/cjs/function/arithmetic/unaryPlus.js +69 -0
- package/lib/cjs/function/arithmetic/xgcd.js +96 -0
- package/lib/cjs/function/bitwise/bitAnd.js +70 -0
- package/lib/cjs/function/bitwise/bitNot.js +47 -0
- package/lib/cjs/function/bitwise/bitOr.js +71 -0
- package/lib/cjs/function/bitwise/bitXor.js +69 -0
- package/lib/cjs/function/bitwise/leftShift.js +127 -0
- package/lib/cjs/function/bitwise/rightArithShift.js +127 -0
- package/lib/cjs/function/bitwise/rightLogShift.js +128 -0
- package/lib/cjs/function/bitwise/useMatrixForArrayScalar.js +34 -0
- package/lib/cjs/function/combinatorics/bellNumbers.js +52 -0
- package/lib/cjs/function/combinatorics/catalan.js +48 -0
- package/lib/cjs/function/combinatorics/composition.js +51 -0
- package/lib/cjs/function/combinatorics/stirlingS2.js +91 -0
- package/lib/cjs/function/complex/arg.js +59 -0
- package/lib/cjs/function/complex/conj.js +52 -0
- package/lib/cjs/function/complex/im.js +57 -0
- package/lib/cjs/function/complex/re.js +54 -0
- package/lib/cjs/function/geometry/distance.js +312 -0
- package/lib/cjs/function/geometry/intersect.js +207 -0
- package/lib/cjs/function/logical/and.js +142 -0
- package/lib/cjs/function/logical/not.js +62 -0
- package/lib/cjs/function/logical/or.js +85 -0
- package/lib/cjs/function/logical/xor.js +84 -0
- package/lib/cjs/function/matrix/apply.js +116 -0
- package/lib/cjs/function/matrix/column.js +64 -0
- package/lib/cjs/function/matrix/concat.js +136 -0
- package/lib/cjs/function/matrix/count.js +44 -0
- package/lib/cjs/function/matrix/cross.js +86 -0
- package/lib/cjs/function/matrix/ctranspose.js +42 -0
- package/lib/cjs/function/matrix/det.js +150 -0
- package/lib/cjs/function/matrix/diag.js +160 -0
- package/lib/cjs/function/matrix/diff.js +178 -0
- package/lib/cjs/function/matrix/dot.js +161 -0
- package/lib/cjs/function/matrix/eigs/complexEigs.js +739 -0
- package/lib/cjs/function/matrix/eigs/realSymetric.js +297 -0
- package/lib/cjs/function/matrix/eigs.js +259 -0
- package/lib/cjs/function/matrix/expm.js +159 -0
- package/lib/cjs/function/matrix/fft.js +153 -0
- package/lib/cjs/function/matrix/filter.js +77 -0
- package/lib/cjs/function/matrix/flatten.js +44 -0
- package/lib/cjs/function/matrix/forEach.js +74 -0
- package/lib/cjs/function/matrix/getMatrixDataType.js +57 -0
- package/lib/cjs/function/matrix/identity.js +141 -0
- package/lib/cjs/function/matrix/ifft.js +44 -0
- package/lib/cjs/function/matrix/inv.js +189 -0
- package/lib/cjs/function/matrix/kron.js +90 -0
- package/lib/cjs/function/matrix/map.js +110 -0
- package/lib/cjs/function/matrix/matrixFromColumns.js +108 -0
- package/lib/cjs/function/matrix/matrixFromFunction.js +79 -0
- package/lib/cjs/function/matrix/matrixFromRows.js +96 -0
- package/lib/cjs/function/matrix/ones.js +128 -0
- package/lib/cjs/function/matrix/partitionSelect.js +151 -0
- package/lib/cjs/function/matrix/pinv.js +191 -0
- package/lib/cjs/function/matrix/range.js +263 -0
- package/lib/cjs/function/matrix/reshape.js +68 -0
- package/lib/cjs/function/matrix/resize.js +126 -0
- package/lib/cjs/function/matrix/rotate.js +76 -0
- package/lib/cjs/function/matrix/rotationMatrix.js +167 -0
- package/lib/cjs/function/matrix/row.js +64 -0
- package/lib/cjs/function/matrix/size.js +53 -0
- package/lib/cjs/function/matrix/sort.js +120 -0
- package/lib/cjs/function/matrix/sqrtm.js +104 -0
- package/lib/cjs/function/matrix/squeeze.js +59 -0
- package/lib/cjs/function/matrix/subset.js +218 -0
- package/lib/cjs/function/matrix/trace.js +133 -0
- package/lib/cjs/function/matrix/transpose.js +168 -0
- package/lib/cjs/function/matrix/zeros.js +128 -0
- package/lib/cjs/function/probability/combinations.js +74 -0
- package/lib/cjs/function/probability/combinationsWithRep.js +89 -0
- package/lib/cjs/function/probability/factorial.js +56 -0
- package/lib/cjs/function/probability/gamma.js +125 -0
- package/lib/cjs/function/probability/kldivergence.js +84 -0
- package/lib/cjs/function/probability/lgamma.js +142 -0
- package/lib/cjs/function/probability/multinomial.js +55 -0
- package/lib/cjs/function/probability/permutations.js +83 -0
- package/lib/cjs/function/probability/pickRandom.js +155 -0
- package/lib/cjs/function/probability/random.js +120 -0
- package/lib/cjs/function/probability/randomInt.js +86 -0
- package/lib/cjs/function/probability/util/randomMatrix.js +26 -0
- package/lib/cjs/function/probability/util/seededRNG.js +26 -0
- package/lib/cjs/function/relational/compare.js +115 -0
- package/lib/cjs/function/relational/compareNatural.js +280 -0
- package/lib/cjs/function/relational/compareText.js +61 -0
- package/lib/cjs/function/relational/compareUnits.js +21 -0
- package/lib/cjs/function/relational/deepEqual.js +79 -0
- package/lib/cjs/function/relational/equal.js +114 -0
- package/lib/cjs/function/relational/equalScalar.js +57 -0
- package/lib/cjs/function/relational/equalText.js +46 -0
- package/lib/cjs/function/relational/larger.js +106 -0
- package/lib/cjs/function/relational/largerEq.js +102 -0
- package/lib/cjs/function/relational/smaller.js +106 -0
- package/lib/cjs/function/relational/smallerEq.js +102 -0
- package/lib/cjs/function/relational/unequal.js +117 -0
- package/lib/cjs/function/set/setCartesian.js +63 -0
- package/lib/cjs/function/set/setDifference.js +76 -0
- package/lib/cjs/function/set/setDistinct.js +62 -0
- package/lib/cjs/function/set/setIntersect.js +68 -0
- package/lib/cjs/function/set/setIsSubset.js +67 -0
- package/lib/cjs/function/set/setMultiplicity.js +55 -0
- package/lib/cjs/function/set/setPowerset.js +80 -0
- package/lib/cjs/function/set/setSize.js +56 -0
- package/lib/cjs/function/set/setSymDifference.js +53 -0
- package/lib/cjs/function/set/setUnion.js +54 -0
- package/lib/cjs/function/special/erf.js +161 -0
- package/lib/cjs/function/statistics/cumsum.js +128 -0
- package/lib/cjs/function/statistics/mad.js +69 -0
- package/lib/cjs/function/statistics/max.js +109 -0
- package/lib/cjs/function/statistics/mean.js +99 -0
- package/lib/cjs/function/statistics/median.js +114 -0
- package/lib/cjs/function/statistics/min.js +109 -0
- package/lib/cjs/function/statistics/mode.js +81 -0
- package/lib/cjs/function/statistics/prod.js +84 -0
- package/lib/cjs/function/statistics/quantileSeq.js +240 -0
- package/lib/cjs/function/statistics/std.js +102 -0
- package/lib/cjs/function/statistics/sum.js +89 -0
- package/lib/cjs/function/statistics/utils/improveErrorMessage.js +30 -0
- package/lib/cjs/function/statistics/variance.js +160 -0
- package/lib/cjs/function/string/bin.js +49 -0
- package/lib/cjs/function/string/format.js +136 -0
- package/lib/cjs/function/string/hex.js +48 -0
- package/lib/cjs/function/string/oct.js +50 -0
- package/lib/cjs/function/string/print.js +91 -0
- package/lib/cjs/function/trigonometry/acos.js +54 -0
- package/lib/cjs/function/trigonometry/acosh.js +54 -0
- package/lib/cjs/function/trigonometry/acot.js +47 -0
- package/lib/cjs/function/trigonometry/acoth.js +53 -0
- package/lib/cjs/function/trigonometry/acsc.js +54 -0
- package/lib/cjs/function/trigonometry/acsch.js +46 -0
- package/lib/cjs/function/trigonometry/asec.js +55 -0
- package/lib/cjs/function/trigonometry/asech.js +58 -0
- package/lib/cjs/function/trigonometry/asin.js +54 -0
- package/lib/cjs/function/trigonometry/asinh.js +45 -0
- package/lib/cjs/function/trigonometry/atan.js +47 -0
- package/lib/cjs/function/trigonometry/atan2.js +96 -0
- package/lib/cjs/function/trigonometry/atanh.js +52 -0
- package/lib/cjs/function/trigonometry/cos.js +51 -0
- package/lib/cjs/function/trigonometry/cosh.js +42 -0
- package/lib/cjs/function/trigonometry/cot.js +51 -0
- package/lib/cjs/function/trigonometry/coth.js +48 -0
- package/lib/cjs/function/trigonometry/csc.js +51 -0
- package/lib/cjs/function/trigonometry/csch.js +48 -0
- package/lib/cjs/function/trigonometry/sec.js +51 -0
- package/lib/cjs/function/trigonometry/sech.js +48 -0
- package/lib/cjs/function/trigonometry/sin.js +51 -0
- package/lib/cjs/function/trigonometry/sinh.js +42 -0
- package/lib/cjs/function/trigonometry/tan.js +48 -0
- package/lib/cjs/function/trigonometry/tanh.js +45 -0
- package/lib/cjs/function/trigonometry/trigUnit.js +21 -0
- package/lib/cjs/function/unit/to.js +53 -0
- package/lib/cjs/function/utils/clone.js +35 -0
- package/lib/cjs/function/utils/hasNumericValue.js +55 -0
- package/lib/cjs/function/utils/isInteger.js +60 -0
- package/lib/cjs/function/utils/isNaN.js +62 -0
- package/lib/cjs/function/utils/isNegative.js +64 -0
- package/lib/cjs/function/utils/isNumeric.js +56 -0
- package/lib/cjs/function/utils/isPositive.js +65 -0
- package/lib/cjs/function/utils/isPrime.js +133 -0
- package/lib/cjs/function/utils/isZero.js +70 -0
- package/lib/cjs/function/utils/numeric.js +84 -0
- package/lib/cjs/function/utils/typeOf.js +69 -0
- package/lib/cjs/header.js +26 -0
- package/lib/cjs/index.js +16 -0
- package/lib/cjs/json/replacer.js +34 -0
- package/lib/cjs/json/reviver.js +26 -0
- package/lib/cjs/number.js +16 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/plain/bignumber/arithmetic.js +32 -0
- package/lib/cjs/plain/bignumber/index.js +29 -0
- package/lib/cjs/plain/number/arithmetic.js +411 -0
- package/lib/cjs/plain/number/bitwise.js +64 -0
- package/lib/cjs/plain/number/combinations.js +39 -0
- package/lib/cjs/plain/number/constants.js +14 -0
- package/lib/cjs/plain/number/index.js +104 -0
- package/lib/cjs/plain/number/logical.js +27 -0
- package/lib/cjs/plain/number/probability.js +92 -0
- package/lib/cjs/plain/number/relational.js +1 -0
- package/lib/cjs/plain/number/trigonometry.js +142 -0
- package/lib/cjs/plain/number/utils.js +32 -0
- package/lib/cjs/type/bignumber/BigNumber.js +63 -0
- package/lib/cjs/type/bignumber/function/bignumber.js +83 -0
- package/lib/cjs/type/boolean.js +79 -0
- package/lib/cjs/type/chain/Chain.js +220 -0
- package/lib/cjs/type/chain/function/chain.js +57 -0
- package/lib/cjs/type/complex/Complex.js +203 -0
- package/lib/cjs/type/complex/function/complex.js +95 -0
- package/lib/cjs/type/fraction/Fraction.js +49 -0
- package/lib/cjs/type/fraction/function/fraction.js +84 -0
- package/lib/cjs/type/matrix/DenseMatrix.js +1002 -0
- package/lib/cjs/type/matrix/FibonacciHeap.js +356 -0
- package/lib/cjs/type/matrix/ImmutableDenseMatrix.js +226 -0
- package/lib/cjs/type/matrix/Matrix.js +249 -0
- package/lib/cjs/type/matrix/MatrixIndex.js +271 -0
- package/lib/cjs/type/matrix/Range.js +311 -0
- package/lib/cjs/type/matrix/Spa.js +141 -0
- package/lib/cjs/type/matrix/SparseMatrix.js +1524 -0
- package/lib/cjs/type/matrix/function/index.js +67 -0
- package/lib/cjs/type/matrix/function/matrix.js +87 -0
- package/lib/cjs/type/matrix/function/sparse.js +61 -0
- package/lib/cjs/type/matrix/utils/broadcast.js +84 -0
- package/lib/cjs/type/matrix/utils/matAlgo01xDSid.js +117 -0
- package/lib/cjs/type/matrix/utils/matAlgo02xDS0.js +121 -0
- package/lib/cjs/type/matrix/utils/matAlgo03xDSf.js +127 -0
- package/lib/cjs/type/matrix/utils/matAlgo04xSidSid.js +184 -0
- package/lib/cjs/type/matrix/utils/matAlgo05xSfSf.js +176 -0
- package/lib/cjs/type/matrix/utils/matAlgo06xS0S0.js +158 -0
- package/lib/cjs/type/matrix/utils/matAlgo07xSSf.js +124 -0
- package/lib/cjs/type/matrix/utils/matAlgo08xS0Sid.js +159 -0
- package/lib/cjs/type/matrix/utils/matAlgo09xS0Sf.js +147 -0
- package/lib/cjs/type/matrix/utils/matAlgo10xSids.js +110 -0
- package/lib/cjs/type/matrix/utils/matAlgo11xS0s.js +108 -0
- package/lib/cjs/type/matrix/utils/matAlgo12xSfs.js +110 -0
- package/lib/cjs/type/matrix/utils/matAlgo13xDD.js +99 -0
- package/lib/cjs/type/matrix/utils/matAlgo14xDs.js +81 -0
- package/lib/cjs/type/matrix/utils/matrixAlgorithmSuite.js +223 -0
- package/lib/cjs/type/number.js +154 -0
- package/lib/cjs/type/resultset/ResultSet.js +75 -0
- package/lib/cjs/type/string.js +63 -0
- package/lib/cjs/type/unit/Unit.js +3863 -0
- package/lib/cjs/type/unit/function/createUnit.js +84 -0
- package/lib/cjs/type/unit/function/splitUnit.js +37 -0
- package/lib/cjs/type/unit/function/unit.js +71 -0
- package/lib/cjs/type/unit/physicalConstants.js +153 -0
- package/lib/cjs/utils/array.js +607 -0
- package/lib/cjs/utils/bignumber/bitwise.js +411 -0
- package/lib/cjs/utils/bignumber/constants.js +66 -0
- package/lib/cjs/utils/bignumber/formatter.js +259 -0
- package/lib/cjs/utils/bignumber/nearlyEqual.js +47 -0
- package/lib/cjs/utils/collection.js +186 -0
- package/lib/cjs/utils/complex.js +18 -0
- package/lib/cjs/utils/customs.js +161 -0
- package/lib/cjs/utils/emitter.js +24 -0
- package/lib/cjs/utils/factory.js +152 -0
- package/lib/cjs/utils/function.js +107 -0
- package/lib/cjs/utils/is.js +218 -0
- package/lib/cjs/utils/latex.js +499 -0
- package/lib/cjs/utils/log.js +24 -0
- package/lib/cjs/utils/lruQueue.js +61 -0
- package/lib/cjs/utils/map.js +167 -0
- package/lib/cjs/utils/noop.js +25 -0
- package/lib/cjs/utils/number.js +691 -0
- package/lib/cjs/utils/object.js +397 -0
- package/lib/cjs/utils/product.js +20 -0
- package/lib/cjs/utils/scope.js +29 -0
- package/lib/cjs/utils/snapshot.js +234 -0
- package/lib/cjs/utils/string.js +209 -0
- package/lib/cjs/utils/switch.js +26 -0
- package/lib/cjs/version.js +10 -0
- package/lib/esm/constants.js +124 -0
- package/lib/esm/core/config.js +19 -0
- package/lib/esm/core/create.js +198 -0
- package/lib/esm/core/function/config.js +106 -0
- package/lib/esm/core/function/import.js +327 -0
- package/lib/esm/core/function/typed.js +410 -0
- package/lib/esm/defaultInstance.js +3 -0
- package/lib/esm/entry/allFactoriesAny.js +3 -0
- package/lib/esm/entry/allFactoriesNumber.js +3 -0
- package/lib/esm/entry/configReadonly.js +15 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAbs.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAccessorNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAcos.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAcosh.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAcot.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAcoth.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAcsc.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAcsch.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAdd.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAddScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAnd.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesApply.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesApplyTransform.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesArg.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesArrayNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAsec.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAsech.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAsin.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAsinh.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAssignmentNode.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAtan.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAtan2.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAtanh.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAtomicMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesAvogadro.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBellNumbers.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBigNumberClass.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBignumber.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBin.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBitAnd.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBitNot.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBitOr.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBitXor.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBlockNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBohrMagneton.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBohrRadius.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBoltzmann.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesBoolean.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCatalan.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCbrt.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCeil.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesChain.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesChainClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesClassicalElectronRadius.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesClone.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesColumn.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesColumnTransform.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCombinations.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCombinationsWithRep.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCompare.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCompareNatural.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCompareText.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCompile.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesComplex.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesComplexClass.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesComposition.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesConcat.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesConcatTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesConditionalNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesConductanceQuantum.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesConj.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesConstantNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCos.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCosh.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCot.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCoth.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCoulomb.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCount.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCreateUnit.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCross.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCsc.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCsch.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCtranspose.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCube.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCumSum.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesCumSumTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDeepEqual.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDenseMatrixClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDerivative.generated.js +30 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDet.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDeuteronMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDiag.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDiff.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDiffTransform.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDistance.generated.js +24 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDivide.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDivideScalar.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDot.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDotDivide.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDotMultiply.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesDotPow.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesE.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesEfimovFactor.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesEigs.generated.js +68 -0
- package/lib/esm/entry/dependenciesAny/dependenciesElectricConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesElectronMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesElementaryCharge.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesEqual.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesEqualScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesEqualText.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesErf.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesEvaluate.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesExp.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesExpm.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesExpm1.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFactorial.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFalse.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFaraday.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFermiCoupling.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFft.generated.js +34 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFibonacciHeapClass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFilter.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFilterTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFineStructure.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFirstRadiation.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFix.generated.js +24 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFlatten.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFloor.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesForEach.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesForEachTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFormat.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFraction.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFractionClass.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFunctionAssignmentNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesFunctionNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesGamma.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesGasConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesGcd.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesGetMatrixDataType.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesGravitationConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesGravity.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesHartreeEnergy.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesHasNumericValue.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesHelp.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesHelpClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesHex.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesHypot.generated.js +24 -0
- package/lib/esm/entry/dependenciesAny/dependenciesI.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIdentity.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIfft.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIm.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesImmutableDenseMatrixClass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIndex.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIndexClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIndexNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIndexTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesInfinity.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIntersect.generated.js +36 -0
- package/lib/esm/entry/dependenciesAny/dependenciesInv.generated.js +26 -0
- package/lib/esm/entry/dependenciesAny/dependenciesInverseConductanceQuantum.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesInvmod.generated.js +24 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsInteger.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsNaN.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsNegative.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsNumeric.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsPositive.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsPrime.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesIsZero.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesKldivergence.generated.js +26 -0
- package/lib/esm/entry/dependenciesAny/dependenciesKlitzing.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesKron.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLN10.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLN2.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLOG10E.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLOG2E.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLarger.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLargerEq.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLcm.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLeafCount.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLeftShift.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLgamma.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLog.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLog10.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLog1p.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLog2.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLoschmidt.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLsolve.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLsolveAll.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLup.generated.js +34 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLusolve.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesLyap.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMad.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMagneticConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMagneticFluxQuantum.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMap.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMapTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrix.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixClass.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMax.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMaxTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMean.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMeanTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMedian.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMin.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMinTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMod.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMode.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMolarMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMolarMassC12.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMolarPlanckConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMolarVolume.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMultinomial.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMultiply.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesMultiplyScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNaN.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNeutronMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNode.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNorm.generated.js +34 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNot.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNthRoot.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNthRoots.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNuclearMagneton.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNull.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNumber.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesNumeric.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesObjectNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesOct.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesOnes.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesOperatorNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesOr.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesParenthesisNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesParse.generated.js +42 -0
- package/lib/esm/entry/dependenciesAny/dependenciesParser.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesParserClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPartitionSelect.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPermutations.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPhi.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPi.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPickRandom.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPinv.generated.js +32 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPlanckCharge.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPlanckConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPlanckLength.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPlanckMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPlanckTemperature.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPlanckTime.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPolynomialRoot.generated.js +34 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPow.generated.js +24 -0
- package/lib/esm/entry/dependenciesAny/dependenciesPrint.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesProd.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesProtonMass.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesQr.generated.js +38 -0
- package/lib/esm/entry/dependenciesAny/dependenciesQuantileSeq.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesQuantumOfCirculation.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRandom.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRandomInt.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRange.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRangeClass.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRangeNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRangeTransform.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRationalize.generated.js +56 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRe.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesReducedPlanckConstant.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRelationalNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesReplacer.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesReshape.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesResize.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesResolve.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesResultSet.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesReviver.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRightArithShift.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRightLogShift.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRotate.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRotationMatrix.generated.js +30 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRound.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRow.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRowTransform.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesRydberg.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSQRT1_2.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSQRT2.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSackurTetrode.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSchur.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSec.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSech.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSecondRadiation.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetCartesian.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetDifference.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetDistinct.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetIntersect.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetIsSubset.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetMultiplicity.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetPowerset.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetSize.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetSymDifference.generated.js +20 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSetUnion.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSign.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +56 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSimplifyConstant.generated.js +32 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +44 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSin.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSinh.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSize.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSlu.generated.js +28 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSmaller.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSmallerEq.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSort.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSpaClass.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSparse.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSparseMatrixClass.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSpeedOfLight.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSplitUnit.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSqrt.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSqrtm.generated.js +30 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSquare.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSqueeze.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesStd.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesStdTransform.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesStefanBoltzmann.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesStirlingS2.generated.js +34 -0
- package/lib/esm/entry/dependenciesAny/dependenciesString.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSubset.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSubsetTransform.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSubtract.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSum.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSumTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSylvester.generated.js +38 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSymbolNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTan.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTanh.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTau.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesThomsonCrossSection.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTo.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTrace.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTranspose.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTrue.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTypeOf.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesTyped.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUnaryMinus.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUnaryPlus.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUnequal.generated.js +18 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUnitClass.generated.js +38 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUnitFunction.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUppercaseE.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUppercasePi.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUsolve.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesUsolveAll.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesVacuumImpedance.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesVariance.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesVarianceTransform.generated.js +22 -0
- package/lib/esm/entry/dependenciesAny/dependenciesVersion.generated.js +8 -0
- package/lib/esm/entry/dependenciesAny/dependenciesWeakMixingAngle.generated.js +10 -0
- package/lib/esm/entry/dependenciesAny/dependenciesWienDisplacement.generated.js +12 -0
- package/lib/esm/entry/dependenciesAny/dependenciesXgcd.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny/dependenciesXor.generated.js +16 -0
- package/lib/esm/entry/dependenciesAny/dependenciesZeros.generated.js +14 -0
- package/lib/esm/entry/dependenciesAny.generated.js +354 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAbs.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAccessorNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAcos.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAcosh.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAcot.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAcoth.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAcsc.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAcsch.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAdd.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAddScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAnd.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesApply.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesApplyTransform.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesArrayNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAsec.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAsech.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAsin.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAsinh.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAssignmentNode.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAtan.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAtan2.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesAtanh.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBellNumbers.generated.js +18 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBitAnd.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBitNot.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBitOr.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBitXor.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBlockNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesBoolean.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCatalan.generated.js +22 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCbrt.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCeil.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesChain.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesChainClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesClone.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCombinations.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCombinationsWithRep.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCompare.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCompareNatural.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCompareText.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCompile.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesComposition.generated.js +22 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesConditionalNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesConstantNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCos.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCosh.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCot.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCoth.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCsc.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCsch.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCube.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCumSum.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesCumSumTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesDeepEqual.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesDerivative.generated.js +30 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesDivide.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesDivideScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesE.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesEqual.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesEqualScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesEqualText.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesErf.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesEvaluate.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesExp.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesExpm1.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFactorial.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFalse.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFilter.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFilterTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFix.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFloor.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesForEach.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesForEachTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFormat.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFunctionAssignmentNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesFunctionNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesGamma.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesGcd.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesHasNumericValue.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesHelp.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesHelpClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesHypot.generated.js +24 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIndex.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIndexNode.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesInfinity.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsInteger.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsNaN.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsNegative.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsNumeric.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsPositive.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsPrime.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesIsZero.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLN10.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLN2.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLOG10E.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLOG2E.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLarger.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLargerEq.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLcm.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLeftShift.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLgamma.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLog.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLog10.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLog1p.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesLog2.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMad.generated.js +18 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMap.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMapTransform.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMatrix.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMax.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMaxTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMean.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMeanTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMedian.generated.js +18 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMin.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMinTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMod.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMode.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMultinomial.generated.js +22 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMultiply.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesMultiplyScalar.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNaN.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNode.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNorm.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNot.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNthRoot.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNull.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNumber.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesNumeric.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesObjectNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesOperatorNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesOr.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesParenthesisNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesParse.generated.js +42 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesParser.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesParserClass.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPartitionSelect.generated.js +16 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPermutations.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPhi.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPi.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPickRandom.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPow.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesPrint.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesProd.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesQuantileSeq.generated.js +18 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRandom.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRandomInt.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRange.generated.js +20 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRangeClass.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRangeNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRangeTransform.generated.js +20 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRationalize.generated.js +52 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRelationalNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesReplacer.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesResolve.generated.js +20 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesResultSet.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesReviver.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRightArithShift.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRightLogShift.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesRound.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSQRT1_2.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSQRT2.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSec.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSech.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSign.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +52 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSimplifyConstant.generated.js +28 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +44 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSin.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSinh.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSize.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSmaller.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSmallerEq.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSqrt.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSquare.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesStd.generated.js +16 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesStdTransform.generated.js +16 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesStirlingS2.generated.js +32 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesString.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSubset.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSubsetTransform.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSubtract.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSum.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSumTransform.generated.js +14 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesSymbolNode.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesTan.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesTanh.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesTau.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesTrue.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesTypeOf.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesTyped.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesUnaryMinus.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesUnaryPlus.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesUnequal.generated.js +12 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesUppercaseE.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesUppercasePi.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesVariance.generated.js +22 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesVarianceTransform.generated.js +22 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesVersion.generated.js +8 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesXgcd.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber/dependenciesXor.generated.js +10 -0
- package/lib/esm/entry/dependenciesNumber.generated.js +206 -0
- package/lib/esm/entry/impureFunctionsAny.generated.js +687 -0
- package/lib/esm/entry/impureFunctionsNumber.generated.js +496 -0
- package/lib/esm/entry/mainAny.js +22 -0
- package/lib/esm/entry/mainNumber.js +22 -0
- package/lib/esm/entry/pureFunctionsAny.generated.js +1703 -0
- package/lib/esm/entry/pureFunctionsNumber.generated.js +563 -0
- package/lib/esm/entry/typeChecks.js +2 -0
- package/lib/esm/error/ArgumentsError.js +24 -0
- package/lib/esm/error/DimensionError.js +23 -0
- package/lib/esm/error/IndexError.js +35 -0
- package/lib/esm/expression/Help.js +115 -0
- package/lib/esm/expression/Parser.js +141 -0
- package/lib/esm/expression/embeddedDocs/constants/Infinity.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/LN10.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/LN2.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/LOG10E.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/LOG2E.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/NaN.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/SQRT1_2.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/SQRT2.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/e.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/false.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/i.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/null.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/phi.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/pi.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/tau.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/true.js +8 -0
- package/lib/esm/expression/embeddedDocs/constants/version.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/bignumber.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/boolean.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/complex.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/createUnit.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/fraction.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/index.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/matrix.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/number.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/sparse.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/splitUnit.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/string.js +8 -0
- package/lib/esm/expression/embeddedDocs/construction/unit.js +8 -0
- package/lib/esm/expression/embeddedDocs/core/config.js +8 -0
- package/lib/esm/expression/embeddedDocs/core/import.js +8 -0
- package/lib/esm/expression/embeddedDocs/core/typed.js +8 -0
- package/lib/esm/expression/embeddedDocs/embeddedDocs.js +706 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/derivative.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/leafCount.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/lsolve.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/lsolveAll.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/lup.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/lusolve.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/polynomialRoot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/qr.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/rationalize.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/resolve.js +9 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/simplify.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/simplifyConstant.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/simplifyCore.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/slu.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/symbolicEqual.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/usolve.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/algebra/usolveAll.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/abs.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/add.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/cbrt.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/ceil.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/cube.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/divide.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/dotDivide.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/dotMultiply.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/dotPow.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/exp.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/expm.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/expm1.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/fix.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/floor.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/gcd.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/hypot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/invmod.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/lcm.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/log.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/log10.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/log1p.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/log2.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/mod.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/multiply.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/norm.js +7 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/nthRoot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/nthRoots.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/pow.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/round.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/sign.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/sqrt.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/sqrtm.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/square.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/subtract.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/unaryMinus.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/unaryPlus.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/arithmetic/xgcd.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/bitAnd.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/bitNot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/bitOr.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/bitXor.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/leftShift.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/rightArithShift.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/bitwise/rightLogShift.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/combinatorics/bellNumbers.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/combinatorics/catalan.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/combinatorics/composition.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/combinatorics/stirlingS2.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/complex/arg.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/complex/conj.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/complex/im.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/complex/re.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/expression/evaluate.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/expression/help.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/geometry/distance.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/geometry/intersect.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/logical/and.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/logical/not.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/logical/or.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/logical/xor.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/column.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/concat.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/count.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/cross.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/ctranspose.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/det.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/diag.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/diff.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/dot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/eigs.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/fft.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/filter.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/flatten.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/getMatrixDataType.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/identity.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/ifft.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/inv.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/kron.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/lyap.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/map.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromColumns.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromFunction.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromRows.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/ones.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/partitionSelect.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/pinv.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/range.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/reshape.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/resize.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/rotate.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/rotationMatrix.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/row.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/schur.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/size.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/sort.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/squeeze.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/subset.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/sylvester.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/trace.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/transpose.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/matrix/zeros.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/combinations.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/combinationsWithRep.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/distribution.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/factorial.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/gamma.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/kldivergence.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/lgamma.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/multinomial.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/permutations.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/pickRandom.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/random.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/probability/randomInt.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/compare.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/compareNatural.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/compareText.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/deepEqual.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/equal.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/equalText.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/larger.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/largerEq.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/smaller.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/smallerEq.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/relational/unequal.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setCartesian.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setDifference.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setDistinct.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setIntersect.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setIsSubset.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setMultiplicity.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setPowerset.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setSize.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setSymDifference.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/set/setUnion.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/special/erf.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/cumsum.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/mad.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/max.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/mean.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/median.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/min.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/mode.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/prod.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/quantileSeq.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/std.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/sum.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/statistics/variance.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/acos.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/acosh.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/acot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/acoth.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/acsc.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/acsch.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/asec.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/asech.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/asin.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/asinh.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/atan.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/atan2.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/atanh.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/cos.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/cosh.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/cot.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/coth.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/csc.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/csch.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/sec.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/sech.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/sin.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/sinh.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/tan.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/trigonometry/tanh.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/units/to.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/bin.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/clone.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/format.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/hasNumericValue.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/hex.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isInteger.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isNaN.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isNegative.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isNumeric.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isPositive.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isPrime.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/isZero.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/numeric.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/oct.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/print.js +8 -0
- package/lib/esm/expression/embeddedDocs/function/utils/typeOf.js +8 -0
- package/lib/esm/expression/function/compile.js +54 -0
- package/lib/esm/expression/function/evaluate.js +63 -0
- package/lib/esm/expression/function/help.js +67 -0
- package/lib/esm/expression/function/parser.js +57 -0
- package/lib/esm/expression/keywords.js +2 -0
- package/lib/esm/expression/node/AccessorNode.js +189 -0
- package/lib/esm/expression/node/ArrayNode.js +176 -0
- package/lib/esm/expression/node/AssignmentNode.js +306 -0
- package/lib/esm/expression/node/BlockNode.js +185 -0
- package/lib/esm/expression/node/ConditionalNode.js +225 -0
- package/lib/esm/expression/node/ConstantNode.js +172 -0
- package/lib/esm/expression/node/FunctionAssignmentNode.js +235 -0
- package/lib/esm/expression/node/FunctionNode.js +470 -0
- package/lib/esm/expression/node/IndexNode.js +219 -0
- package/lib/esm/expression/node/Node.js +361 -0
- package/lib/esm/expression/node/ObjectNode.js +195 -0
- package/lib/esm/expression/node/OperatorNode.js +623 -0
- package/lib/esm/expression/node/ParenthesisNode.js +152 -0
- package/lib/esm/expression/node/RangeNode.js +251 -0
- package/lib/esm/expression/node/RelationalNode.js +198 -0
- package/lib/esm/expression/node/SymbolNode.js +193 -0
- package/lib/esm/expression/node/utils/access.js +40 -0
- package/lib/esm/expression/node/utils/assign.js +46 -0
- package/lib/esm/expression/operators.js +381 -0
- package/lib/esm/expression/parse.js +1642 -0
- package/lib/esm/expression/transform/apply.transform.js +44 -0
- package/lib/esm/expression/transform/column.transform.js +47 -0
- package/lib/esm/expression/transform/concat.transform.js +45 -0
- package/lib/esm/expression/transform/cumsum.transform.js +46 -0
- package/lib/esm/expression/transform/diff.transform.js +41 -0
- package/lib/esm/expression/transform/filter.transform.js +77 -0
- package/lib/esm/expression/transform/forEach.transform.js +66 -0
- package/lib/esm/expression/transform/index.transform.js +49 -0
- package/lib/esm/expression/transform/map.transform.js +80 -0
- package/lib/esm/expression/transform/max.transform.js +40 -0
- package/lib/esm/expression/transform/mean.transform.js +38 -0
- package/lib/esm/expression/transform/min.transform.js +40 -0
- package/lib/esm/expression/transform/range.transform.js +46 -0
- package/lib/esm/expression/transform/row.transform.js +47 -0
- package/lib/esm/expression/transform/std.transform.js +40 -0
- package/lib/esm/expression/transform/subset.transform.js +33 -0
- package/lib/esm/expression/transform/sum.transform.js +40 -0
- package/lib/esm/expression/transform/utils/compileInlineExpression.js +29 -0
- package/lib/esm/expression/transform/utils/errorTransform.js +13 -0
- package/lib/esm/expression/transform/utils/lastDimToZeroBase.js +17 -0
- package/lib/esm/expression/transform/variance.transform.js +46 -0
- package/lib/esm/factoriesAny.js +284 -0
- package/lib/esm/factoriesNumber.js +263 -0
- package/lib/esm/function/algebra/decomposition/lup.js +379 -0
- package/lib/esm/function/algebra/decomposition/qr.js +222 -0
- package/lib/esm/function/algebra/decomposition/schur.js +70 -0
- package/lib/esm/function/algebra/decomposition/slu.js +101 -0
- package/lib/esm/function/algebra/derivative.js +543 -0
- package/lib/esm/function/algebra/leafCount.js +54 -0
- package/lib/esm/function/algebra/lyap.js +52 -0
- package/lib/esm/function/algebra/polynomialRoot.js +122 -0
- package/lib/esm/function/algebra/rationalize.js +823 -0
- package/lib/esm/function/algebra/resolve.js +97 -0
- package/lib/esm/function/algebra/simplify/util.js +261 -0
- package/lib/esm/function/algebra/simplify/wildcards.js +20 -0
- package/lib/esm/function/algebra/simplify.js +1254 -0
- package/lib/esm/function/algebra/simplifyConstant.js +458 -0
- package/lib/esm/function/algebra/simplifyCore.js +290 -0
- package/lib/esm/function/algebra/solver/lsolve.js +157 -0
- package/lib/esm/function/algebra/solver/lsolveAll.js +186 -0
- package/lib/esm/function/algebra/solver/lusolve.js +108 -0
- package/lib/esm/function/algebra/solver/usolve.js +161 -0
- package/lib/esm/function/algebra/solver/usolveAll.js +190 -0
- package/lib/esm/function/algebra/solver/utils/solveValidation.js +115 -0
- package/lib/esm/function/algebra/sparse/csAmd.js +581 -0
- package/lib/esm/function/algebra/sparse/csChol.js +156 -0
- package/lib/esm/function/algebra/sparse/csCounts.js +125 -0
- package/lib/esm/function/algebra/sparse/csCumsum.js +26 -0
- package/lib/esm/function/algebra/sparse/csDfs.js +75 -0
- package/lib/esm/function/algebra/sparse/csEreach.js +62 -0
- package/lib/esm/function/algebra/sparse/csEtree.js +69 -0
- package/lib/esm/function/algebra/sparse/csFkeep.js +56 -0
- package/lib/esm/function/algebra/sparse/csFlip.js +11 -0
- package/lib/esm/function/algebra/sparse/csIpvec.js +29 -0
- package/lib/esm/function/algebra/sparse/csLeaf.js +56 -0
- package/lib/esm/function/algebra/sparse/csLu.js +180 -0
- package/lib/esm/function/algebra/sparse/csMark.js +14 -0
- package/lib/esm/function/algebra/sparse/csMarked.js +12 -0
- package/lib/esm/function/algebra/sparse/csPermute.js +59 -0
- package/lib/esm/function/algebra/sparse/csPost.js +51 -0
- package/lib/esm/function/algebra/sparse/csReach.js +50 -0
- package/lib/esm/function/algebra/sparse/csSpsolve.js +83 -0
- package/lib/esm/function/algebra/sparse/csSqr.js +178 -0
- package/lib/esm/function/algebra/sparse/csSymperm.js +92 -0
- package/lib/esm/function/algebra/sparse/csTdfs.js +40 -0
- package/lib/esm/function/algebra/sparse/csUnflip.js +13 -0
- package/lib/esm/function/algebra/sylvester.js +118 -0
- package/lib/esm/function/algebra/symbolicEqual.js +60 -0
- package/lib/esm/function/arithmetic/abs.js +40 -0
- package/lib/esm/function/arithmetic/add.js +83 -0
- package/lib/esm/function/arithmetic/addScalar.js +46 -0
- package/lib/esm/function/arithmetic/cbrt.js +131 -0
- package/lib/esm/function/arithmetic/ceil.js +161 -0
- package/lib/esm/function/arithmetic/cube.js +51 -0
- package/lib/esm/function/arithmetic/divide.js +79 -0
- package/lib/esm/function/arithmetic/divideScalar.js +37 -0
- package/lib/esm/function/arithmetic/dotDivide.js +78 -0
- package/lib/esm/function/arithmetic/dotMultiply.js +66 -0
- package/lib/esm/function/arithmetic/dotPow.js +78 -0
- package/lib/esm/function/arithmetic/exp.js +48 -0
- package/lib/esm/function/arithmetic/expm1.js +53 -0
- package/lib/esm/function/arithmetic/fix.js +126 -0
- package/lib/esm/function/arithmetic/floor.js +164 -0
- package/lib/esm/function/arithmetic/gcd.js +117 -0
- package/lib/esm/function/arithmetic/hypot.js +77 -0
- package/lib/esm/function/arithmetic/invmod.js +55 -0
- package/lib/esm/function/arithmetic/lcm.js +110 -0
- package/lib/esm/function/arithmetic/log.js +72 -0
- package/lib/esm/function/arithmetic/log10.js +59 -0
- package/lib/esm/function/arithmetic/log1p.js +81 -0
- package/lib/esm/function/arithmetic/log2.js +68 -0
- package/lib/esm/function/arithmetic/mod.js +101 -0
- package/lib/esm/function/arithmetic/multiply.js +879 -0
- package/lib/esm/function/arithmetic/multiplyScalar.js +35 -0
- package/lib/esm/function/arithmetic/norm.js +287 -0
- package/lib/esm/function/arithmetic/nthRoot.js +166 -0
- package/lib/esm/function/arithmetic/nthRoots.js +112 -0
- package/lib/esm/function/arithmetic/pow.js +191 -0
- package/lib/esm/function/arithmetic/round.js +148 -0
- package/lib/esm/function/arithmetic/sign.js +63 -0
- package/lib/esm/function/arithmetic/sqrt.js +70 -0
- package/lib/esm/function/arithmetic/square.js +52 -0
- package/lib/esm/function/arithmetic/subtract.js +106 -0
- package/lib/esm/function/arithmetic/unaryMinus.js +46 -0
- package/lib/esm/function/arithmetic/unaryPlus.js +60 -0
- package/lib/esm/function/arithmetic/xgcd.js +91 -0
- package/lib/esm/function/bitwise/bitAnd.js +65 -0
- package/lib/esm/function/bitwise/bitNot.js +38 -0
- package/lib/esm/function/bitwise/bitOr.js +66 -0
- package/lib/esm/function/bitwise/bitXor.js +64 -0
- package/lib/esm/function/bitwise/leftShift.js +114 -0
- package/lib/esm/function/bitwise/rightArithShift.js +114 -0
- package/lib/esm/function/bitwise/rightLogShift.js +115 -0
- package/lib/esm/function/bitwise/useMatrixForArrayScalar.js +13 -0
- package/lib/esm/function/combinatorics/bellNumbers.js +47 -0
- package/lib/esm/function/combinatorics/catalan.js +43 -0
- package/lib/esm/function/combinatorics/composition.js +46 -0
- package/lib/esm/function/combinatorics/stirlingS2.js +86 -0
- package/lib/esm/function/complex/arg.js +50 -0
- package/lib/esm/function/complex/conj.js +39 -0
- package/lib/esm/function/complex/im.js +42 -0
- package/lib/esm/function/complex/re.js +41 -0
- package/lib/esm/function/geometry/distance.js +303 -0
- package/lib/esm/function/geometry/intersect.js +200 -0
- package/lib/esm/function/logical/and.js +121 -0
- package/lib/esm/function/logical/not.js +47 -0
- package/lib/esm/function/logical/or.js +76 -0
- package/lib/esm/function/logical/xor.js +75 -0
- package/lib/esm/function/matrix/apply.js +111 -0
- package/lib/esm/function/matrix/column.js +59 -0
- package/lib/esm/function/matrix/concat.js +131 -0
- package/lib/esm/function/matrix/count.js +39 -0
- package/lib/esm/function/matrix/cross.js +81 -0
- package/lib/esm/function/matrix/ctranspose.js +37 -0
- package/lib/esm/function/matrix/det.js +143 -0
- package/lib/esm/function/matrix/diag.js +155 -0
- package/lib/esm/function/matrix/diff.js +165 -0
- package/lib/esm/function/matrix/dot.js +156 -0
- package/lib/esm/function/matrix/eigs/complexEigs.js +693 -0
- package/lib/esm/function/matrix/eigs/realSymetric.js +293 -0
- package/lib/esm/function/matrix/eigs.js +256 -0
- package/lib/esm/function/matrix/expm.js +154 -0
- package/lib/esm/function/matrix/fft.js +128 -0
- package/lib/esm/function/matrix/filter.js +72 -0
- package/lib/esm/function/matrix/flatten.js +39 -0
- package/lib/esm/function/matrix/forEach.js +69 -0
- package/lib/esm/function/matrix/getMatrixDataType.js +52 -0
- package/lib/esm/function/matrix/identity.js +136 -0
- package/lib/esm/function/matrix/ifft.js +37 -0
- package/lib/esm/function/matrix/inv.js +184 -0
- package/lib/esm/function/matrix/kron.js +85 -0
- package/lib/esm/function/matrix/map.js +105 -0
- package/lib/esm/function/matrix/matrixFromColumns.js +89 -0
- package/lib/esm/function/matrix/matrixFromFunction.js +74 -0
- package/lib/esm/function/matrix/matrixFromRows.js +77 -0
- package/lib/esm/function/matrix/ones.js +123 -0
- package/lib/esm/function/matrix/partitionSelect.js +144 -0
- package/lib/esm/function/matrix/pinv.js +179 -0
- package/lib/esm/function/matrix/range.js +258 -0
- package/lib/esm/function/matrix/reshape.js +63 -0
- package/lib/esm/function/matrix/resize.js +121 -0
- package/lib/esm/function/matrix/rotate.js +71 -0
- package/lib/esm/function/matrix/rotationMatrix.js +160 -0
- package/lib/esm/function/matrix/row.js +59 -0
- package/lib/esm/function/matrix/size.js +48 -0
- package/lib/esm/function/matrix/sort.js +113 -0
- package/lib/esm/function/matrix/sqrtm.js +99 -0
- package/lib/esm/function/matrix/squeeze.js +54 -0
- package/lib/esm/function/matrix/subset.js +213 -0
- package/lib/esm/function/matrix/trace.js +128 -0
- package/lib/esm/function/matrix/transpose.js +161 -0
- package/lib/esm/function/matrix/zeros.js +123 -0
- package/lib/esm/function/probability/combinations.js +69 -0
- package/lib/esm/function/probability/combinationsWithRep.js +84 -0
- package/lib/esm/function/probability/factorial.js +47 -0
- package/lib/esm/function/probability/gamma.js +120 -0
- package/lib/esm/function/probability/kldivergence.js +77 -0
- package/lib/esm/function/probability/lgamma.js +137 -0
- package/lib/esm/function/probability/multinomial.js +50 -0
- package/lib/esm/function/probability/permutations.js +78 -0
- package/lib/esm/function/probability/pickRandom.js +151 -0
- package/lib/esm/function/probability/random.js +96 -0
- package/lib/esm/function/probability/randomInt.js +67 -0
- package/lib/esm/function/probability/util/randomMatrix.js +20 -0
- package/lib/esm/function/probability/util/seededRNG.js +19 -0
- package/lib/esm/function/relational/compare.js +111 -0
- package/lib/esm/function/relational/compareNatural.js +274 -0
- package/lib/esm/function/relational/compareText.js +57 -0
- package/lib/esm/function/relational/compareUnits.js +14 -0
- package/lib/esm/function/relational/deepEqual.js +74 -0
- package/lib/esm/function/relational/equal.js +110 -0
- package/lib/esm/function/relational/equalScalar.js +53 -0
- package/lib/esm/function/relational/equalText.js +41 -0
- package/lib/esm/function/relational/larger.js +98 -0
- package/lib/esm/function/relational/largerEq.js +94 -0
- package/lib/esm/function/relational/smaller.js +98 -0
- package/lib/esm/function/relational/smallerEq.js +94 -0
- package/lib/esm/function/relational/unequal.js +113 -0
- package/lib/esm/function/set/setCartesian.js +58 -0
- package/lib/esm/function/set/setDifference.js +71 -0
- package/lib/esm/function/set/setDistinct.js +57 -0
- package/lib/esm/function/set/setIntersect.js +63 -0
- package/lib/esm/function/set/setIsSubset.js +62 -0
- package/lib/esm/function/set/setMultiplicity.js +50 -0
- package/lib/esm/function/set/setPowerset.js +75 -0
- package/lib/esm/function/set/setSize.js +51 -0
- package/lib/esm/function/set/setSymDifference.js +48 -0
- package/lib/esm/function/set/setUnion.js +49 -0
- package/lib/esm/function/special/erf.js +152 -0
- package/lib/esm/function/statistics/cumsum.js +123 -0
- package/lib/esm/function/statistics/mad.js +64 -0
- package/lib/esm/function/statistics/max.js +104 -0
- package/lib/esm/function/statistics/mean.js +94 -0
- package/lib/esm/function/statistics/median.js +109 -0
- package/lib/esm/function/statistics/min.js +104 -0
- package/lib/esm/function/statistics/mode.js +76 -0
- package/lib/esm/function/statistics/prod.js +79 -0
- package/lib/esm/function/statistics/quantileSeq.js +235 -0
- package/lib/esm/function/statistics/std.js +97 -0
- package/lib/esm/function/statistics/sum.js +84 -0
- package/lib/esm/function/statistics/utils/improveErrorMessage.js +25 -0
- package/lib/esm/function/statistics/variance.js +153 -0
- package/lib/esm/function/string/bin.js +44 -0
- package/lib/esm/function/string/format.js +131 -0
- package/lib/esm/function/string/hex.js +43 -0
- package/lib/esm/function/string/oct.js +45 -0
- package/lib/esm/function/string/print.js +86 -0
- package/lib/esm/function/trigonometry/acos.js +49 -0
- package/lib/esm/function/trigonometry/acosh.js +49 -0
- package/lib/esm/function/trigonometry/acot.js +42 -0
- package/lib/esm/function/trigonometry/acoth.js +48 -0
- package/lib/esm/function/trigonometry/acsc.js +49 -0
- package/lib/esm/function/trigonometry/acsch.js +41 -0
- package/lib/esm/function/trigonometry/asec.js +50 -0
- package/lib/esm/function/trigonometry/asech.js +53 -0
- package/lib/esm/function/trigonometry/asin.js +49 -0
- package/lib/esm/function/trigonometry/asinh.js +40 -0
- package/lib/esm/function/trigonometry/atan.js +42 -0
- package/lib/esm/function/trigonometry/atan2.js +89 -0
- package/lib/esm/function/trigonometry/atanh.js +47 -0
- package/lib/esm/function/trigonometry/cos.js +44 -0
- package/lib/esm/function/trigonometry/cosh.js +35 -0
- package/lib/esm/function/trigonometry/cot.js +42 -0
- package/lib/esm/function/trigonometry/coth.js +39 -0
- package/lib/esm/function/trigonometry/csc.js +42 -0
- package/lib/esm/function/trigonometry/csch.js +39 -0
- package/lib/esm/function/trigonometry/sec.js +42 -0
- package/lib/esm/function/trigonometry/sech.js +39 -0
- package/lib/esm/function/trigonometry/sin.js +44 -0
- package/lib/esm/function/trigonometry/sinh.js +35 -0
- package/lib/esm/function/trigonometry/tan.js +41 -0
- package/lib/esm/function/trigonometry/tanh.js +38 -0
- package/lib/esm/function/trigonometry/trigUnit.js +14 -0
- package/lib/esm/function/unit/to.js +46 -0
- package/lib/esm/function/utils/clone.js +30 -0
- package/lib/esm/function/utils/hasNumericValue.js +48 -0
- package/lib/esm/function/utils/isInteger.js +51 -0
- package/lib/esm/function/utils/isNaN.js +57 -0
- package/lib/esm/function/utils/isNegative.js +51 -0
- package/lib/esm/function/utils/isNumeric.js +43 -0
- package/lib/esm/function/utils/isPositive.js +52 -0
- package/lib/esm/function/utils/isPrime.js +122 -0
- package/lib/esm/function/utils/isZero.js +57 -0
- package/lib/esm/function/utils/numeric.js +73 -0
- package/lib/esm/function/utils/typeOf.js +64 -0
- package/lib/esm/header.js +26 -0
- package/lib/esm/index.js +1 -0
- package/lib/esm/json/replacer.js +27 -0
- package/lib/esm/json/reviver.js +21 -0
- package/lib/esm/number.js +1 -0
- package/lib/esm/plain/bignumber/arithmetic.js +22 -0
- package/lib/esm/plain/bignumber/index.js +9 -0
- package/lib/esm/plain/number/arithmetic.js +374 -0
- package/lib/esm/plain/number/bitwise.js +52 -0
- package/lib/esm/plain/number/combinations.js +33 -0
- package/lib/esm/plain/number/constants.js +4 -0
- package/lib/esm/plain/number/index.js +9 -0
- package/lib/esm/plain/number/logical.js +18 -0
- package/lib/esm/plain/number/probability.js +77 -0
- package/lib/esm/plain/number/relational.js +0 -0
- package/lib/esm/plain/number/trigonometry.js +112 -0
- package/lib/esm/plain/number/utils.js +22 -0
- package/lib/esm/type/bignumber/BigNumber.js +57 -0
- package/lib/esm/type/bignumber/function/bignumber.js +74 -0
- package/lib/esm/type/boolean.js +70 -0
- package/lib/esm/type/chain/Chain.js +213 -0
- package/lib/esm/type/chain/function/chain.js +52 -0
- package/lib/esm/type/complex/Complex.js +194 -0
- package/lib/esm/type/complex/function/complex.js +86 -0
- package/lib/esm/type/fraction/Fraction.js +41 -0
- package/lib/esm/type/fraction/function/fraction.js +75 -0
- package/lib/esm/type/matrix/DenseMatrix.js +943 -0
- package/lib/esm/type/matrix/FibonacciHeap.js +351 -0
- package/lib/esm/type/matrix/ImmutableDenseMatrix.js +221 -0
- package/lib/esm/type/matrix/Matrix.js +242 -0
- package/lib/esm/type/matrix/MatrixIndex.js +266 -0
- package/lib/esm/type/matrix/Range.js +304 -0
- package/lib/esm/type/matrix/Spa.js +136 -0
- package/lib/esm/type/matrix/SparseMatrix.js +1486 -0
- package/lib/esm/type/matrix/function/index.js +62 -0
- package/lib/esm/type/matrix/function/matrix.js +82 -0
- package/lib/esm/type/matrix/function/sparse.js +56 -0
- package/lib/esm/type/matrix/utils/broadcast.js +75 -0
- package/lib/esm/type/matrix/utils/matAlgo01xDSid.js +112 -0
- package/lib/esm/type/matrix/utils/matAlgo02xDS0.js +116 -0
- package/lib/esm/type/matrix/utils/matAlgo03xDSf.js +122 -0
- package/lib/esm/type/matrix/utils/matAlgo04xSidSid.js +179 -0
- package/lib/esm/type/matrix/utils/matAlgo05xSfSf.js +171 -0
- package/lib/esm/type/matrix/utils/matAlgo06xS0S0.js +153 -0
- package/lib/esm/type/matrix/utils/matAlgo07xSSf.js +119 -0
- package/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js +154 -0
- package/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js +142 -0
- package/lib/esm/type/matrix/utils/matAlgo10xSids.js +105 -0
- package/lib/esm/type/matrix/utils/matAlgo11xS0s.js +103 -0
- package/lib/esm/type/matrix/utils/matAlgo12xSfs.js +105 -0
- package/lib/esm/type/matrix/utils/matAlgo13xDD.js +94 -0
- package/lib/esm/type/matrix/utils/matAlgo14xDs.js +76 -0
- package/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js +156 -0
- package/lib/esm/type/number.js +145 -0
- package/lib/esm/type/resultset/ResultSet.js +68 -0
- package/lib/esm/type/string.js +54 -0
- package/lib/esm/type/unit/Unit.js +3848 -0
- package/lib/esm/type/unit/function/createUnit.js +79 -0
- package/lib/esm/type/unit/function/splitUnit.js +32 -0
- package/lib/esm/type/unit/function/unit.js +62 -0
- package/lib/esm/type/unit/physicalConstants.js +101 -0
- package/lib/esm/utils/array.js +579 -0
- package/lib/esm/utils/bignumber/bitwise.js +399 -0
- package/lib/esm/utils/bignumber/constants.js +57 -0
- package/lib/esm/utils/bignumber/formatter.js +251 -0
- package/lib/esm/utils/bignumber/nearlyEqual.js +41 -0
- package/lib/esm/utils/collection.js +177 -0
- package/lib/esm/utils/complex.js +13 -0
- package/lib/esm/utils/customs.js +153 -0
- package/lib/esm/utils/emitter.js +18 -0
- package/lib/esm/utils/factory.js +127 -0
- package/lib/esm/utils/function.js +99 -0
- package/lib/esm/utils/is.js +169 -0
- package/lib/esm/utils/latex.js +485 -0
- package/lib/esm/utils/log.js +16 -0
- package/lib/esm/utils/lruQueue.js +55 -0
- package/lib/esm/utils/map.js +120 -0
- package/lib/esm/utils/noop.js +15 -0
- package/lib/esm/utils/number.js +657 -0
- package/lib/esm/utils/object.js +373 -0
- package/lib/esm/utils/product.js +14 -0
- package/lib/esm/utils/scope.js +24 -0
- package/lib/esm/utils/snapshot.js +227 -0
- package/lib/esm/utils/string.js +198 -0
- package/lib/esm/utils/switch.js +20 -0
- package/lib/esm/version.js +3 -0
- package/main/es5/index.js +3 -0
- package/main/es5/number.js +3 -0
- package/main/es5/package.json +3 -0
- package/main/esm/index.js +3 -0
- package/main/esm/number.js +3 -0
- package/main/esm/package.json +3 -0
- package/number.cjs +3 -0
- package/package.json +178 -0
- package/types/index.d.ts +6429 -0
- package/types/tslint.json +6 -0
@@ -0,0 +1,1650 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports.createParse = void 0;
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
9
|
+
var _factory = require("../utils/factory.js");
|
10
|
+
var _is = require("../utils/is.js");
|
11
|
+
var _collection = require("../utils/collection.js");
|
12
|
+
var _object = require("../utils/object.js");
|
13
|
+
var name = 'parse';
|
14
|
+
var dependencies = ['typed', 'numeric', 'config', 'AccessorNode', 'ArrayNode', 'AssignmentNode', 'BlockNode', 'ConditionalNode', 'ConstantNode', 'FunctionAssignmentNode', 'FunctionNode', 'IndexNode', 'ObjectNode', 'OperatorNode', 'ParenthesisNode', 'RangeNode', 'RelationalNode', 'SymbolNode'];
|
15
|
+
var createParse = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {
|
16
|
+
var typed = _ref.typed,
|
17
|
+
numeric = _ref.numeric,
|
18
|
+
config = _ref.config,
|
19
|
+
AccessorNode = _ref.AccessorNode,
|
20
|
+
ArrayNode = _ref.ArrayNode,
|
21
|
+
AssignmentNode = _ref.AssignmentNode,
|
22
|
+
BlockNode = _ref.BlockNode,
|
23
|
+
ConditionalNode = _ref.ConditionalNode,
|
24
|
+
ConstantNode = _ref.ConstantNode,
|
25
|
+
FunctionAssignmentNode = _ref.FunctionAssignmentNode,
|
26
|
+
FunctionNode = _ref.FunctionNode,
|
27
|
+
IndexNode = _ref.IndexNode,
|
28
|
+
ObjectNode = _ref.ObjectNode,
|
29
|
+
OperatorNode = _ref.OperatorNode,
|
30
|
+
ParenthesisNode = _ref.ParenthesisNode,
|
31
|
+
RangeNode = _ref.RangeNode,
|
32
|
+
RelationalNode = _ref.RelationalNode,
|
33
|
+
SymbolNode = _ref.SymbolNode;
|
34
|
+
/**
|
35
|
+
* Parse an expression. Returns a node tree, which can be evaluated by
|
36
|
+
* invoking node.evaluate().
|
37
|
+
*
|
38
|
+
* Note the evaluating arbitrary expressions may involve security risks,
|
39
|
+
* see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.
|
40
|
+
*
|
41
|
+
* Syntax:
|
42
|
+
*
|
43
|
+
* math.parse(expr)
|
44
|
+
* math.parse(expr, options)
|
45
|
+
* math.parse([expr1, expr2, expr3, ...])
|
46
|
+
* math.parse([expr1, expr2, expr3, ...], options)
|
47
|
+
*
|
48
|
+
* Example:
|
49
|
+
*
|
50
|
+
* const node1 = math.parse('sqrt(3^2 + 4^2)')
|
51
|
+
* node1.compile().evaluate() // 5
|
52
|
+
*
|
53
|
+
* let scope = {a:3, b:4}
|
54
|
+
* const node2 = math.parse('a * b') // 12
|
55
|
+
* const code2 = node2.compile()
|
56
|
+
* code2.evaluate(scope) // 12
|
57
|
+
* scope.a = 5
|
58
|
+
* code2.evaluate(scope) // 20
|
59
|
+
*
|
60
|
+
* const nodes = math.parse(['a = 3', 'b = 4', 'a * b'])
|
61
|
+
* nodes[2].compile().evaluate() // 12
|
62
|
+
*
|
63
|
+
* See also:
|
64
|
+
*
|
65
|
+
* evaluate, compile
|
66
|
+
*
|
67
|
+
* @param {string | string[] | Matrix} expr Expression to be parsed
|
68
|
+
* @param {{nodes: Object<string, Node>}} [options] Available options:
|
69
|
+
* - `nodes` a set of custom nodes
|
70
|
+
* @return {Node | Node[]} node
|
71
|
+
* @throws {Error}
|
72
|
+
*/
|
73
|
+
var parse = typed(name, {
|
74
|
+
string: function string(expression) {
|
75
|
+
return parseStart(expression, {});
|
76
|
+
},
|
77
|
+
'Array | Matrix': function ArrayMatrix(expressions) {
|
78
|
+
return parseMultiple(expressions, {});
|
79
|
+
},
|
80
|
+
'string, Object': function stringObject(expression, options) {
|
81
|
+
var extraNodes = options.nodes !== undefined ? options.nodes : {};
|
82
|
+
return parseStart(expression, extraNodes);
|
83
|
+
},
|
84
|
+
'Array | Matrix, Object': parseMultiple
|
85
|
+
});
|
86
|
+
function parseMultiple(expressions) {
|
87
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
88
|
+
var extraNodes = options.nodes !== undefined ? options.nodes : {};
|
89
|
+
|
90
|
+
// parse an array or matrix with expressions
|
91
|
+
return (0, _collection.deepMap)(expressions, function (elem) {
|
92
|
+
if (typeof elem !== 'string') throw new TypeError('String expected');
|
93
|
+
return parseStart(elem, extraNodes);
|
94
|
+
});
|
95
|
+
}
|
96
|
+
|
97
|
+
// token types enumeration
|
98
|
+
var TOKENTYPE = {
|
99
|
+
NULL: 0,
|
100
|
+
DELIMITER: 1,
|
101
|
+
NUMBER: 2,
|
102
|
+
SYMBOL: 3,
|
103
|
+
UNKNOWN: 4
|
104
|
+
};
|
105
|
+
|
106
|
+
// map with all delimiters
|
107
|
+
var DELIMITERS = {
|
108
|
+
',': true,
|
109
|
+
'(': true,
|
110
|
+
')': true,
|
111
|
+
'[': true,
|
112
|
+
']': true,
|
113
|
+
'{': true,
|
114
|
+
'}': true,
|
115
|
+
'"': true,
|
116
|
+
'\'': true,
|
117
|
+
';': true,
|
118
|
+
'+': true,
|
119
|
+
'-': true,
|
120
|
+
'*': true,
|
121
|
+
'.*': true,
|
122
|
+
'/': true,
|
123
|
+
'./': true,
|
124
|
+
'%': true,
|
125
|
+
'^': true,
|
126
|
+
'.^': true,
|
127
|
+
'~': true,
|
128
|
+
'!': true,
|
129
|
+
'&': true,
|
130
|
+
'|': true,
|
131
|
+
'^|': true,
|
132
|
+
'=': true,
|
133
|
+
':': true,
|
134
|
+
'?': true,
|
135
|
+
'==': true,
|
136
|
+
'!=': true,
|
137
|
+
'<': true,
|
138
|
+
'>': true,
|
139
|
+
'<=': true,
|
140
|
+
'>=': true,
|
141
|
+
'<<': true,
|
142
|
+
'>>': true,
|
143
|
+
'>>>': true
|
144
|
+
};
|
145
|
+
|
146
|
+
// map with all named delimiters
|
147
|
+
var NAMED_DELIMITERS = {
|
148
|
+
mod: true,
|
149
|
+
to: true,
|
150
|
+
"in": true,
|
151
|
+
and: true,
|
152
|
+
xor: true,
|
153
|
+
or: true,
|
154
|
+
not: true
|
155
|
+
};
|
156
|
+
var CONSTANTS = {
|
157
|
+
"true": true,
|
158
|
+
"false": false,
|
159
|
+
"null": null,
|
160
|
+
undefined: undefined
|
161
|
+
};
|
162
|
+
var NUMERIC_CONSTANTS = ['NaN', 'Infinity'];
|
163
|
+
function initialState() {
|
164
|
+
return {
|
165
|
+
extraNodes: {},
|
166
|
+
// current extra nodes, must be careful not to mutate
|
167
|
+
expression: '',
|
168
|
+
// current expression
|
169
|
+
comment: '',
|
170
|
+
// last parsed comment
|
171
|
+
index: 0,
|
172
|
+
// current index in expr
|
173
|
+
token: '',
|
174
|
+
// current token
|
175
|
+
tokenType: TOKENTYPE.NULL,
|
176
|
+
// type of the token
|
177
|
+
nestingLevel: 0,
|
178
|
+
// level of nesting inside parameters, used to ignore newline characters
|
179
|
+
conditionalLevel: null // when a conditional is being parsed, the level of the conditional is stored here
|
180
|
+
};
|
181
|
+
}
|
182
|
+
|
183
|
+
/**
|
184
|
+
* View upto `length` characters of the expression starting at the current character.
|
185
|
+
*
|
186
|
+
* @param {Object} state
|
187
|
+
* @param {number} [length=1] Number of characters to view
|
188
|
+
* @returns {string}
|
189
|
+
* @private
|
190
|
+
*/
|
191
|
+
function currentString(state, length) {
|
192
|
+
return state.expression.substr(state.index, length);
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* View the current character. Returns '' if end of expression is reached.
|
197
|
+
*
|
198
|
+
* @param {Object} state
|
199
|
+
* @returns {string}
|
200
|
+
* @private
|
201
|
+
*/
|
202
|
+
function currentCharacter(state) {
|
203
|
+
return currentString(state, 1);
|
204
|
+
}
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Get the next character from the expression.
|
208
|
+
* The character is stored into the char c. If the end of the expression is
|
209
|
+
* reached, the function puts an empty string in c.
|
210
|
+
* @private
|
211
|
+
*/
|
212
|
+
function next(state) {
|
213
|
+
state.index++;
|
214
|
+
}
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Preview the previous character from the expression.
|
218
|
+
* @return {string} cNext
|
219
|
+
* @private
|
220
|
+
*/
|
221
|
+
function prevCharacter(state) {
|
222
|
+
return state.expression.charAt(state.index - 1);
|
223
|
+
}
|
224
|
+
|
225
|
+
/**
|
226
|
+
* Preview the next character from the expression.
|
227
|
+
* @return {string} cNext
|
228
|
+
* @private
|
229
|
+
*/
|
230
|
+
function nextCharacter(state) {
|
231
|
+
return state.expression.charAt(state.index + 1);
|
232
|
+
}
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Get next token in the current string expr.
|
236
|
+
* The token and token type are available as token and tokenType
|
237
|
+
* @private
|
238
|
+
*/
|
239
|
+
function getToken(state) {
|
240
|
+
state.tokenType = TOKENTYPE.NULL;
|
241
|
+
state.token = '';
|
242
|
+
state.comment = '';
|
243
|
+
|
244
|
+
// skip over ignored characters:
|
245
|
+
while (true) {
|
246
|
+
// comments:
|
247
|
+
if (currentCharacter(state) === '#') {
|
248
|
+
while (currentCharacter(state) !== '\n' && currentCharacter(state) !== '') {
|
249
|
+
state.comment += currentCharacter(state);
|
250
|
+
next(state);
|
251
|
+
}
|
252
|
+
}
|
253
|
+
// whitespace: space, tab, and newline when inside parameters
|
254
|
+
if (parse.isWhitespace(currentCharacter(state), state.nestingLevel)) {
|
255
|
+
next(state);
|
256
|
+
} else {
|
257
|
+
break;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
// check for end of expression
|
262
|
+
if (currentCharacter(state) === '') {
|
263
|
+
// token is still empty
|
264
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
265
|
+
return;
|
266
|
+
}
|
267
|
+
|
268
|
+
// check for new line character
|
269
|
+
if (currentCharacter(state) === '\n' && !state.nestingLevel) {
|
270
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
271
|
+
state.token = currentCharacter(state);
|
272
|
+
next(state);
|
273
|
+
return;
|
274
|
+
}
|
275
|
+
var c1 = currentCharacter(state);
|
276
|
+
var c2 = currentString(state, 2);
|
277
|
+
var c3 = currentString(state, 3);
|
278
|
+
if (c3.length === 3 && DELIMITERS[c3]) {
|
279
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
280
|
+
state.token = c3;
|
281
|
+
next(state);
|
282
|
+
next(state);
|
283
|
+
next(state);
|
284
|
+
return;
|
285
|
+
}
|
286
|
+
|
287
|
+
// check for delimiters consisting of 2 characters
|
288
|
+
if (c2.length === 2 && DELIMITERS[c2]) {
|
289
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
290
|
+
state.token = c2;
|
291
|
+
next(state);
|
292
|
+
next(state);
|
293
|
+
return;
|
294
|
+
}
|
295
|
+
|
296
|
+
// check for delimiters consisting of 1 character
|
297
|
+
if (DELIMITERS[c1]) {
|
298
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
299
|
+
state.token = c1;
|
300
|
+
next(state);
|
301
|
+
return;
|
302
|
+
}
|
303
|
+
|
304
|
+
// check for a number
|
305
|
+
if (parse.isDigitDot(c1)) {
|
306
|
+
state.tokenType = TOKENTYPE.NUMBER;
|
307
|
+
|
308
|
+
// check for binary, octal, or hex
|
309
|
+
var _c = currentString(state, 2);
|
310
|
+
if (_c === '0b' || _c === '0o' || _c === '0x') {
|
311
|
+
state.token += currentCharacter(state);
|
312
|
+
next(state);
|
313
|
+
state.token += currentCharacter(state);
|
314
|
+
next(state);
|
315
|
+
while (parse.isHexDigit(currentCharacter(state))) {
|
316
|
+
state.token += currentCharacter(state);
|
317
|
+
next(state);
|
318
|
+
}
|
319
|
+
if (currentCharacter(state) === '.') {
|
320
|
+
// this number has a radix point
|
321
|
+
state.token += '.';
|
322
|
+
next(state);
|
323
|
+
// get the digits after the radix
|
324
|
+
while (parse.isHexDigit(currentCharacter(state))) {
|
325
|
+
state.token += currentCharacter(state);
|
326
|
+
next(state);
|
327
|
+
}
|
328
|
+
} else if (currentCharacter(state) === 'i') {
|
329
|
+
// this number has a word size suffix
|
330
|
+
state.token += 'i';
|
331
|
+
next(state);
|
332
|
+
// get the word size
|
333
|
+
while (parse.isDigit(currentCharacter(state))) {
|
334
|
+
state.token += currentCharacter(state);
|
335
|
+
next(state);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
return;
|
339
|
+
}
|
340
|
+
|
341
|
+
// get number, can have a single dot
|
342
|
+
if (currentCharacter(state) === '.') {
|
343
|
+
state.token += currentCharacter(state);
|
344
|
+
next(state);
|
345
|
+
if (!parse.isDigit(currentCharacter(state))) {
|
346
|
+
// this is no number, it is just a dot (can be dot notation)
|
347
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
348
|
+
return;
|
349
|
+
}
|
350
|
+
} else {
|
351
|
+
while (parse.isDigit(currentCharacter(state))) {
|
352
|
+
state.token += currentCharacter(state);
|
353
|
+
next(state);
|
354
|
+
}
|
355
|
+
if (parse.isDecimalMark(currentCharacter(state), nextCharacter(state))) {
|
356
|
+
state.token += currentCharacter(state);
|
357
|
+
next(state);
|
358
|
+
}
|
359
|
+
}
|
360
|
+
while (parse.isDigit(currentCharacter(state))) {
|
361
|
+
state.token += currentCharacter(state);
|
362
|
+
next(state);
|
363
|
+
}
|
364
|
+
// check for exponential notation like "2.3e-4", "1.23e50" or "2e+4"
|
365
|
+
if (currentCharacter(state) === 'E' || currentCharacter(state) === 'e') {
|
366
|
+
if (parse.isDigit(nextCharacter(state)) || nextCharacter(state) === '-' || nextCharacter(state) === '+') {
|
367
|
+
state.token += currentCharacter(state);
|
368
|
+
next(state);
|
369
|
+
if (currentCharacter(state) === '+' || currentCharacter(state) === '-') {
|
370
|
+
state.token += currentCharacter(state);
|
371
|
+
next(state);
|
372
|
+
}
|
373
|
+
// Scientific notation MUST be followed by an exponent
|
374
|
+
if (!parse.isDigit(currentCharacter(state))) {
|
375
|
+
throw createSyntaxError(state, 'Digit expected, got "' + currentCharacter(state) + '"');
|
376
|
+
}
|
377
|
+
while (parse.isDigit(currentCharacter(state))) {
|
378
|
+
state.token += currentCharacter(state);
|
379
|
+
next(state);
|
380
|
+
}
|
381
|
+
if (parse.isDecimalMark(currentCharacter(state), nextCharacter(state))) {
|
382
|
+
throw createSyntaxError(state, 'Digit expected, got "' + currentCharacter(state) + '"');
|
383
|
+
}
|
384
|
+
} else if (nextCharacter(state) === '.') {
|
385
|
+
next(state);
|
386
|
+
throw createSyntaxError(state, 'Digit expected, got "' + currentCharacter(state) + '"');
|
387
|
+
}
|
388
|
+
}
|
389
|
+
return;
|
390
|
+
}
|
391
|
+
|
392
|
+
// check for variables, functions, named operators
|
393
|
+
if (parse.isAlpha(currentCharacter(state), prevCharacter(state), nextCharacter(state))) {
|
394
|
+
while (parse.isAlpha(currentCharacter(state), prevCharacter(state), nextCharacter(state)) || parse.isDigit(currentCharacter(state))) {
|
395
|
+
state.token += currentCharacter(state);
|
396
|
+
next(state);
|
397
|
+
}
|
398
|
+
if ((0, _object.hasOwnProperty)(NAMED_DELIMITERS, state.token)) {
|
399
|
+
state.tokenType = TOKENTYPE.DELIMITER;
|
400
|
+
} else {
|
401
|
+
state.tokenType = TOKENTYPE.SYMBOL;
|
402
|
+
}
|
403
|
+
return;
|
404
|
+
}
|
405
|
+
|
406
|
+
// something unknown is found, wrong characters -> a syntax error
|
407
|
+
state.tokenType = TOKENTYPE.UNKNOWN;
|
408
|
+
while (currentCharacter(state) !== '') {
|
409
|
+
state.token += currentCharacter(state);
|
410
|
+
next(state);
|
411
|
+
}
|
412
|
+
throw createSyntaxError(state, 'Syntax error in part "' + state.token + '"');
|
413
|
+
}
|
414
|
+
|
415
|
+
/**
|
416
|
+
* Get next token and skip newline tokens
|
417
|
+
*/
|
418
|
+
function getTokenSkipNewline(state) {
|
419
|
+
do {
|
420
|
+
getToken(state);
|
421
|
+
} while (state.token === '\n'); // eslint-disable-line no-unmodified-loop-condition
|
422
|
+
}
|
423
|
+
|
424
|
+
/**
|
425
|
+
* Open parameters.
|
426
|
+
* New line characters will be ignored until closeParams(state) is called
|
427
|
+
*/
|
428
|
+
function openParams(state) {
|
429
|
+
state.nestingLevel++;
|
430
|
+
}
|
431
|
+
|
432
|
+
/**
|
433
|
+
* Close parameters.
|
434
|
+
* New line characters will no longer be ignored
|
435
|
+
*/
|
436
|
+
function closeParams(state) {
|
437
|
+
state.nestingLevel--;
|
438
|
+
}
|
439
|
+
|
440
|
+
/**
|
441
|
+
* Checks whether the current character `c` is a valid alpha character:
|
442
|
+
*
|
443
|
+
* - A latin letter (upper or lower case) Ascii: a-z, A-Z
|
444
|
+
* - An underscore Ascii: _
|
445
|
+
* - A dollar sign Ascii: $
|
446
|
+
* - A latin letter with accents Unicode: \u00C0 - \u02AF
|
447
|
+
* - A greek letter Unicode: \u0370 - \u03FF
|
448
|
+
* - A mathematical alphanumeric symbol Unicode: \u{1D400} - \u{1D7FF} excluding invalid code points
|
449
|
+
*
|
450
|
+
* The previous and next characters are needed to determine whether
|
451
|
+
* this character is part of a unicode surrogate pair.
|
452
|
+
*
|
453
|
+
* @param {string} c Current character in the expression
|
454
|
+
* @param {string} cPrev Previous character
|
455
|
+
* @param {string} cNext Next character
|
456
|
+
* @return {boolean}
|
457
|
+
*/
|
458
|
+
parse.isAlpha = function isAlpha(c, cPrev, cNext) {
|
459
|
+
return parse.isValidLatinOrGreek(c) || parse.isValidMathSymbol(c, cNext) || parse.isValidMathSymbol(cPrev, c);
|
460
|
+
};
|
461
|
+
|
462
|
+
/**
|
463
|
+
* Test whether a character is a valid latin, greek, or letter-like character
|
464
|
+
* @param {string} c
|
465
|
+
* @return {boolean}
|
466
|
+
*/
|
467
|
+
parse.isValidLatinOrGreek = function isValidLatinOrGreek(c) {
|
468
|
+
return /^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(c);
|
469
|
+
};
|
470
|
+
|
471
|
+
/**
|
472
|
+
* Test whether two given 16 bit characters form a surrogate pair of a
|
473
|
+
* unicode math symbol.
|
474
|
+
*
|
475
|
+
* https://unicode-table.com/en/
|
476
|
+
* https://www.wikiwand.com/en/Mathematical_operators_and_symbols_in_Unicode
|
477
|
+
*
|
478
|
+
* Note: In ES6 will be unicode aware:
|
479
|
+
* https://stackoverflow.com/questions/280712/javascript-unicode-regexes
|
480
|
+
* https://mathiasbynens.be/notes/es6-unicode-regex
|
481
|
+
*
|
482
|
+
* @param {string} high
|
483
|
+
* @param {string} low
|
484
|
+
* @return {boolean}
|
485
|
+
*/
|
486
|
+
parse.isValidMathSymbol = function isValidMathSymbol(high, low) {
|
487
|
+
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);
|
488
|
+
};
|
489
|
+
|
490
|
+
/**
|
491
|
+
* Check whether given character c is a white space character: space, tab, or enter
|
492
|
+
* @param {string} c
|
493
|
+
* @param {number} nestingLevel
|
494
|
+
* @return {boolean}
|
495
|
+
*/
|
496
|
+
parse.isWhitespace = function isWhitespace(c, nestingLevel) {
|
497
|
+
// TODO: also take '\r' carriage return as newline? Or does that give problems on mac?
|
498
|
+
return c === ' ' || c === '\t' || c === '\n' && nestingLevel > 0;
|
499
|
+
};
|
500
|
+
|
501
|
+
/**
|
502
|
+
* Test whether the character c is a decimal mark (dot).
|
503
|
+
* This is the case when it's not the start of a delimiter '.*', './', or '.^'
|
504
|
+
* @param {string} c
|
505
|
+
* @param {string} cNext
|
506
|
+
* @return {boolean}
|
507
|
+
*/
|
508
|
+
parse.isDecimalMark = function isDecimalMark(c, cNext) {
|
509
|
+
return c === '.' && cNext !== '/' && cNext !== '*' && cNext !== '^';
|
510
|
+
};
|
511
|
+
|
512
|
+
/**
|
513
|
+
* checks if the given char c is a digit or dot
|
514
|
+
* @param {string} c a string with one character
|
515
|
+
* @return {boolean}
|
516
|
+
*/
|
517
|
+
parse.isDigitDot = function isDigitDot(c) {
|
518
|
+
return c >= '0' && c <= '9' || c === '.';
|
519
|
+
};
|
520
|
+
|
521
|
+
/**
|
522
|
+
* checks if the given char c is a digit
|
523
|
+
* @param {string} c a string with one character
|
524
|
+
* @return {boolean}
|
525
|
+
*/
|
526
|
+
parse.isDigit = function isDigit(c) {
|
527
|
+
return c >= '0' && c <= '9';
|
528
|
+
};
|
529
|
+
|
530
|
+
/**
|
531
|
+
* checks if the given char c is a hex digit
|
532
|
+
* @param {string} c a string with one character
|
533
|
+
* @return {boolean}
|
534
|
+
*/
|
535
|
+
parse.isHexDigit = function isHexDigit(c) {
|
536
|
+
return c >= '0' && c <= '9' || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F';
|
537
|
+
};
|
538
|
+
|
539
|
+
/**
|
540
|
+
* Start of the parse levels below, in order of precedence
|
541
|
+
* @return {Node} node
|
542
|
+
* @private
|
543
|
+
*/
|
544
|
+
function parseStart(expression, extraNodes) {
|
545
|
+
var state = initialState();
|
546
|
+
(0, _extends2["default"])(state, {
|
547
|
+
expression: expression,
|
548
|
+
extraNodes: extraNodes
|
549
|
+
});
|
550
|
+
getToken(state);
|
551
|
+
var node = parseBlock(state);
|
552
|
+
|
553
|
+
// check for garbage at the end of the expression
|
554
|
+
// an expression ends with a empty character '' and tokenType DELIMITER
|
555
|
+
if (state.token !== '') {
|
556
|
+
if (state.tokenType === TOKENTYPE.DELIMITER) {
|
557
|
+
// user entered a not existing operator like "//"
|
558
|
+
|
559
|
+
// TODO: give hints for aliases, for example with "<>" give as hint " did you mean !== ?"
|
560
|
+
throw createError(state, 'Unexpected operator ' + state.token);
|
561
|
+
} else {
|
562
|
+
throw createSyntaxError(state, 'Unexpected part "' + state.token + '"');
|
563
|
+
}
|
564
|
+
}
|
565
|
+
return node;
|
566
|
+
}
|
567
|
+
|
568
|
+
/**
|
569
|
+
* Parse a block with expressions. Expressions can be separated by a newline
|
570
|
+
* character '\n', or by a semicolon ';'. In case of a semicolon, no output
|
571
|
+
* of the preceding line is returned.
|
572
|
+
* @return {Node} node
|
573
|
+
* @private
|
574
|
+
*/
|
575
|
+
function parseBlock(state) {
|
576
|
+
var node;
|
577
|
+
var blocks = [];
|
578
|
+
var visible;
|
579
|
+
if (state.token !== '' && state.token !== '\n' && state.token !== ';') {
|
580
|
+
node = parseAssignment(state);
|
581
|
+
if (state.comment) {
|
582
|
+
node.comment = state.comment;
|
583
|
+
}
|
584
|
+
}
|
585
|
+
|
586
|
+
// TODO: simplify this loop
|
587
|
+
while (state.token === '\n' || state.token === ';') {
|
588
|
+
// eslint-disable-line no-unmodified-loop-condition
|
589
|
+
if (blocks.length === 0 && node) {
|
590
|
+
visible = state.token !== ';';
|
591
|
+
blocks.push({
|
592
|
+
node: node,
|
593
|
+
visible: visible
|
594
|
+
});
|
595
|
+
}
|
596
|
+
getToken(state);
|
597
|
+
if (state.token !== '\n' && state.token !== ';' && state.token !== '') {
|
598
|
+
node = parseAssignment(state);
|
599
|
+
if (state.comment) {
|
600
|
+
node.comment = state.comment;
|
601
|
+
}
|
602
|
+
visible = state.token !== ';';
|
603
|
+
blocks.push({
|
604
|
+
node: node,
|
605
|
+
visible: visible
|
606
|
+
});
|
607
|
+
}
|
608
|
+
}
|
609
|
+
if (blocks.length > 0) {
|
610
|
+
return new BlockNode(blocks);
|
611
|
+
} else {
|
612
|
+
if (!node) {
|
613
|
+
node = new ConstantNode(undefined);
|
614
|
+
if (state.comment) {
|
615
|
+
node.comment = state.comment;
|
616
|
+
}
|
617
|
+
}
|
618
|
+
return node;
|
619
|
+
}
|
620
|
+
}
|
621
|
+
|
622
|
+
/**
|
623
|
+
* Assignment of a function or variable,
|
624
|
+
* - can be a variable like 'a=2.3'
|
625
|
+
* - or a updating an existing variable like 'matrix(2,3:5)=[6,7,8]'
|
626
|
+
* - defining a function like 'f(x) = x^2'
|
627
|
+
* @return {Node} node
|
628
|
+
* @private
|
629
|
+
*/
|
630
|
+
function parseAssignment(state) {
|
631
|
+
var name, args, value, valid;
|
632
|
+
var node = parseConditional(state);
|
633
|
+
if (state.token === '=') {
|
634
|
+
if ((0, _is.isSymbolNode)(node)) {
|
635
|
+
// parse a variable assignment like 'a = 2/3'
|
636
|
+
name = node.name;
|
637
|
+
getTokenSkipNewline(state);
|
638
|
+
value = parseAssignment(state);
|
639
|
+
return new AssignmentNode(new SymbolNode(name), value);
|
640
|
+
} else if ((0, _is.isAccessorNode)(node)) {
|
641
|
+
// parse a matrix subset assignment like 'A[1,2] = 4'
|
642
|
+
getTokenSkipNewline(state);
|
643
|
+
value = parseAssignment(state);
|
644
|
+
return new AssignmentNode(node.object, node.index, value);
|
645
|
+
} else if ((0, _is.isFunctionNode)(node) && (0, _is.isSymbolNode)(node.fn)) {
|
646
|
+
// parse function assignment like 'f(x) = x^2'
|
647
|
+
valid = true;
|
648
|
+
args = [];
|
649
|
+
name = node.name;
|
650
|
+
node.args.forEach(function (arg, index) {
|
651
|
+
if ((0, _is.isSymbolNode)(arg)) {
|
652
|
+
args[index] = arg.name;
|
653
|
+
} else {
|
654
|
+
valid = false;
|
655
|
+
}
|
656
|
+
});
|
657
|
+
if (valid) {
|
658
|
+
getTokenSkipNewline(state);
|
659
|
+
value = parseAssignment(state);
|
660
|
+
return new FunctionAssignmentNode(name, args, value);
|
661
|
+
}
|
662
|
+
}
|
663
|
+
throw createSyntaxError(state, 'Invalid left hand side of assignment operator =');
|
664
|
+
}
|
665
|
+
return node;
|
666
|
+
}
|
667
|
+
|
668
|
+
/**
|
669
|
+
* conditional operation
|
670
|
+
*
|
671
|
+
* condition ? truePart : falsePart
|
672
|
+
*
|
673
|
+
* Note: conditional operator is right-associative
|
674
|
+
*
|
675
|
+
* @return {Node} node
|
676
|
+
* @private
|
677
|
+
*/
|
678
|
+
function parseConditional(state) {
|
679
|
+
var node = parseLogicalOr(state);
|
680
|
+
while (state.token === '?') {
|
681
|
+
// eslint-disable-line no-unmodified-loop-condition
|
682
|
+
// set a conditional level, the range operator will be ignored as long
|
683
|
+
// as conditionalLevel === state.nestingLevel.
|
684
|
+
var prev = state.conditionalLevel;
|
685
|
+
state.conditionalLevel = state.nestingLevel;
|
686
|
+
getTokenSkipNewline(state);
|
687
|
+
var condition = node;
|
688
|
+
var trueExpr = parseAssignment(state);
|
689
|
+
if (state.token !== ':') throw createSyntaxError(state, 'False part of conditional expression expected');
|
690
|
+
state.conditionalLevel = null;
|
691
|
+
getTokenSkipNewline(state);
|
692
|
+
var falseExpr = parseAssignment(state); // Note: check for conditional operator again, right associativity
|
693
|
+
|
694
|
+
node = new ConditionalNode(condition, trueExpr, falseExpr);
|
695
|
+
|
696
|
+
// restore the previous conditional level
|
697
|
+
state.conditionalLevel = prev;
|
698
|
+
}
|
699
|
+
return node;
|
700
|
+
}
|
701
|
+
|
702
|
+
/**
|
703
|
+
* logical or, 'x or y'
|
704
|
+
* @return {Node} node
|
705
|
+
* @private
|
706
|
+
*/
|
707
|
+
function parseLogicalOr(state) {
|
708
|
+
var node = parseLogicalXor(state);
|
709
|
+
while (state.token === 'or') {
|
710
|
+
// eslint-disable-line no-unmodified-loop-condition
|
711
|
+
getTokenSkipNewline(state);
|
712
|
+
node = new OperatorNode('or', 'or', [node, parseLogicalXor(state)]);
|
713
|
+
}
|
714
|
+
return node;
|
715
|
+
}
|
716
|
+
|
717
|
+
/**
|
718
|
+
* logical exclusive or, 'x xor y'
|
719
|
+
* @return {Node} node
|
720
|
+
* @private
|
721
|
+
*/
|
722
|
+
function parseLogicalXor(state) {
|
723
|
+
var node = parseLogicalAnd(state);
|
724
|
+
while (state.token === 'xor') {
|
725
|
+
// eslint-disable-line no-unmodified-loop-condition
|
726
|
+
getTokenSkipNewline(state);
|
727
|
+
node = new OperatorNode('xor', 'xor', [node, parseLogicalAnd(state)]);
|
728
|
+
}
|
729
|
+
return node;
|
730
|
+
}
|
731
|
+
|
732
|
+
/**
|
733
|
+
* logical and, 'x and y'
|
734
|
+
* @return {Node} node
|
735
|
+
* @private
|
736
|
+
*/
|
737
|
+
function parseLogicalAnd(state) {
|
738
|
+
var node = parseBitwiseOr(state);
|
739
|
+
while (state.token === 'and') {
|
740
|
+
// eslint-disable-line no-unmodified-loop-condition
|
741
|
+
getTokenSkipNewline(state);
|
742
|
+
node = new OperatorNode('and', 'and', [node, parseBitwiseOr(state)]);
|
743
|
+
}
|
744
|
+
return node;
|
745
|
+
}
|
746
|
+
|
747
|
+
/**
|
748
|
+
* bitwise or, 'x | y'
|
749
|
+
* @return {Node} node
|
750
|
+
* @private
|
751
|
+
*/
|
752
|
+
function parseBitwiseOr(state) {
|
753
|
+
var node = parseBitwiseXor(state);
|
754
|
+
while (state.token === '|') {
|
755
|
+
// eslint-disable-line no-unmodified-loop-condition
|
756
|
+
getTokenSkipNewline(state);
|
757
|
+
node = new OperatorNode('|', 'bitOr', [node, parseBitwiseXor(state)]);
|
758
|
+
}
|
759
|
+
return node;
|
760
|
+
}
|
761
|
+
|
762
|
+
/**
|
763
|
+
* bitwise exclusive or (xor), 'x ^| y'
|
764
|
+
* @return {Node} node
|
765
|
+
* @private
|
766
|
+
*/
|
767
|
+
function parseBitwiseXor(state) {
|
768
|
+
var node = parseBitwiseAnd(state);
|
769
|
+
while (state.token === '^|') {
|
770
|
+
// eslint-disable-line no-unmodified-loop-condition
|
771
|
+
getTokenSkipNewline(state);
|
772
|
+
node = new OperatorNode('^|', 'bitXor', [node, parseBitwiseAnd(state)]);
|
773
|
+
}
|
774
|
+
return node;
|
775
|
+
}
|
776
|
+
|
777
|
+
/**
|
778
|
+
* bitwise and, 'x & y'
|
779
|
+
* @return {Node} node
|
780
|
+
* @private
|
781
|
+
*/
|
782
|
+
function parseBitwiseAnd(state) {
|
783
|
+
var node = parseRelational(state);
|
784
|
+
while (state.token === '&') {
|
785
|
+
// eslint-disable-line no-unmodified-loop-condition
|
786
|
+
getTokenSkipNewline(state);
|
787
|
+
node = new OperatorNode('&', 'bitAnd', [node, parseRelational(state)]);
|
788
|
+
}
|
789
|
+
return node;
|
790
|
+
}
|
791
|
+
|
792
|
+
/**
|
793
|
+
* Parse a chained conditional, like 'a > b >= c'
|
794
|
+
* @return {Node} node
|
795
|
+
*/
|
796
|
+
function parseRelational(state) {
|
797
|
+
var params = [parseShift(state)];
|
798
|
+
var conditionals = [];
|
799
|
+
var operators = {
|
800
|
+
'==': 'equal',
|
801
|
+
'!=': 'unequal',
|
802
|
+
'<': 'smaller',
|
803
|
+
'>': 'larger',
|
804
|
+
'<=': 'smallerEq',
|
805
|
+
'>=': 'largerEq'
|
806
|
+
};
|
807
|
+
while ((0, _object.hasOwnProperty)(operators, state.token)) {
|
808
|
+
// eslint-disable-line no-unmodified-loop-condition
|
809
|
+
var cond = {
|
810
|
+
name: state.token,
|
811
|
+
fn: operators[state.token]
|
812
|
+
};
|
813
|
+
conditionals.push(cond);
|
814
|
+
getTokenSkipNewline(state);
|
815
|
+
params.push(parseShift(state));
|
816
|
+
}
|
817
|
+
if (params.length === 1) {
|
818
|
+
return params[0];
|
819
|
+
} else if (params.length === 2) {
|
820
|
+
return new OperatorNode(conditionals[0].name, conditionals[0].fn, params);
|
821
|
+
} else {
|
822
|
+
return new RelationalNode(conditionals.map(function (c) {
|
823
|
+
return c.fn;
|
824
|
+
}), params);
|
825
|
+
}
|
826
|
+
}
|
827
|
+
|
828
|
+
/**
|
829
|
+
* Bitwise left shift, bitwise right arithmetic shift, bitwise right logical shift
|
830
|
+
* @return {Node} node
|
831
|
+
* @private
|
832
|
+
*/
|
833
|
+
function parseShift(state) {
|
834
|
+
var node, name, fn, params;
|
835
|
+
node = parseConversion(state);
|
836
|
+
var operators = {
|
837
|
+
'<<': 'leftShift',
|
838
|
+
'>>': 'rightArithShift',
|
839
|
+
'>>>': 'rightLogShift'
|
840
|
+
};
|
841
|
+
while ((0, _object.hasOwnProperty)(operators, state.token)) {
|
842
|
+
name = state.token;
|
843
|
+
fn = operators[name];
|
844
|
+
getTokenSkipNewline(state);
|
845
|
+
params = [node, parseConversion(state)];
|
846
|
+
node = new OperatorNode(name, fn, params);
|
847
|
+
}
|
848
|
+
return node;
|
849
|
+
}
|
850
|
+
|
851
|
+
/**
|
852
|
+
* conversion operators 'to' and 'in'
|
853
|
+
* @return {Node} node
|
854
|
+
* @private
|
855
|
+
*/
|
856
|
+
function parseConversion(state) {
|
857
|
+
var node, name, fn, params;
|
858
|
+
node = parseRange(state);
|
859
|
+
var operators = {
|
860
|
+
to: 'to',
|
861
|
+
"in": 'to' // alias of 'to'
|
862
|
+
};
|
863
|
+
|
864
|
+
while ((0, _object.hasOwnProperty)(operators, state.token)) {
|
865
|
+
name = state.token;
|
866
|
+
fn = operators[name];
|
867
|
+
getTokenSkipNewline(state);
|
868
|
+
if (name === 'in' && state.token === '') {
|
869
|
+
// end of expression -> this is the unit 'in' ('inch')
|
870
|
+
node = new OperatorNode('*', 'multiply', [node, new SymbolNode('in')], true);
|
871
|
+
} else {
|
872
|
+
// operator 'a to b' or 'a in b'
|
873
|
+
params = [node, parseRange(state)];
|
874
|
+
node = new OperatorNode(name, fn, params);
|
875
|
+
}
|
876
|
+
}
|
877
|
+
return node;
|
878
|
+
}
|
879
|
+
|
880
|
+
/**
|
881
|
+
* parse range, "start:end", "start:step:end", ":", "start:", ":end", etc
|
882
|
+
* @return {Node} node
|
883
|
+
* @private
|
884
|
+
*/
|
885
|
+
function parseRange(state) {
|
886
|
+
var node;
|
887
|
+
var params = [];
|
888
|
+
if (state.token === ':') {
|
889
|
+
// implicit start=1 (one-based)
|
890
|
+
node = new ConstantNode(1);
|
891
|
+
} else {
|
892
|
+
// explicit start
|
893
|
+
node = parseAddSubtract(state);
|
894
|
+
}
|
895
|
+
if (state.token === ':' && state.conditionalLevel !== state.nestingLevel) {
|
896
|
+
// we ignore the range operator when a conditional operator is being processed on the same level
|
897
|
+
params.push(node);
|
898
|
+
|
899
|
+
// parse step and end
|
900
|
+
while (state.token === ':' && params.length < 3) {
|
901
|
+
// eslint-disable-line no-unmodified-loop-condition
|
902
|
+
getTokenSkipNewline(state);
|
903
|
+
if (state.token === ')' || state.token === ']' || state.token === ',' || state.token === '') {
|
904
|
+
// implicit end
|
905
|
+
params.push(new SymbolNode('end'));
|
906
|
+
} else {
|
907
|
+
// explicit end
|
908
|
+
params.push(parseAddSubtract(state));
|
909
|
+
}
|
910
|
+
}
|
911
|
+
if (params.length === 3) {
|
912
|
+
// params = [start, step, end]
|
913
|
+
node = new RangeNode(params[0], params[2], params[1]); // start, end, step
|
914
|
+
} else {
|
915
|
+
// length === 2
|
916
|
+
// params = [start, end]
|
917
|
+
node = new RangeNode(params[0], params[1]); // start, end
|
918
|
+
}
|
919
|
+
}
|
920
|
+
|
921
|
+
return node;
|
922
|
+
}
|
923
|
+
|
924
|
+
/**
|
925
|
+
* add or subtract
|
926
|
+
* @return {Node} node
|
927
|
+
* @private
|
928
|
+
*/
|
929
|
+
function parseAddSubtract(state) {
|
930
|
+
var node, name, fn, params;
|
931
|
+
node = parseMultiplyDivide(state);
|
932
|
+
var operators = {
|
933
|
+
'+': 'add',
|
934
|
+
'-': 'subtract'
|
935
|
+
};
|
936
|
+
while ((0, _object.hasOwnProperty)(operators, state.token)) {
|
937
|
+
name = state.token;
|
938
|
+
fn = operators[name];
|
939
|
+
getTokenSkipNewline(state);
|
940
|
+
var rightNode = parseMultiplyDivide(state);
|
941
|
+
if (rightNode.isPercentage) {
|
942
|
+
params = [node, new OperatorNode('*', 'multiply', [node, rightNode])];
|
943
|
+
} else {
|
944
|
+
params = [node, rightNode];
|
945
|
+
}
|
946
|
+
node = new OperatorNode(name, fn, params);
|
947
|
+
}
|
948
|
+
return node;
|
949
|
+
}
|
950
|
+
|
951
|
+
/**
|
952
|
+
* multiply, divide, modulus
|
953
|
+
* @return {Node} node
|
954
|
+
* @private
|
955
|
+
*/
|
956
|
+
function parseMultiplyDivide(state) {
|
957
|
+
var node, last, name, fn;
|
958
|
+
node = parseImplicitMultiplication(state);
|
959
|
+
last = node;
|
960
|
+
var operators = {
|
961
|
+
'*': 'multiply',
|
962
|
+
'.*': 'dotMultiply',
|
963
|
+
'/': 'divide',
|
964
|
+
'./': 'dotDivide'
|
965
|
+
};
|
966
|
+
while (true) {
|
967
|
+
if ((0, _object.hasOwnProperty)(operators, state.token)) {
|
968
|
+
// explicit operators
|
969
|
+
name = state.token;
|
970
|
+
fn = operators[name];
|
971
|
+
getTokenSkipNewline(state);
|
972
|
+
last = parseImplicitMultiplication(state);
|
973
|
+
node = new OperatorNode(name, fn, [node, last]);
|
974
|
+
} else {
|
975
|
+
break;
|
976
|
+
}
|
977
|
+
}
|
978
|
+
return node;
|
979
|
+
}
|
980
|
+
|
981
|
+
/**
|
982
|
+
* implicit multiplication
|
983
|
+
* @return {Node} node
|
984
|
+
* @private
|
985
|
+
*/
|
986
|
+
function parseImplicitMultiplication(state) {
|
987
|
+
var node, last;
|
988
|
+
node = parseRule2(state);
|
989
|
+
last = node;
|
990
|
+
while (true) {
|
991
|
+
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 === '(') {
|
992
|
+
// parse implicit multiplication
|
993
|
+
//
|
994
|
+
// symbol: implicit multiplication like '2a', '(2+3)a', 'a b'
|
995
|
+
// number: implicit multiplication like '(2+3)2'
|
996
|
+
// parenthesis: implicit multiplication like '2(3+4)', '(3+4)(1+2)'
|
997
|
+
last = parseRule2(state);
|
998
|
+
node = new OperatorNode('*', 'multiply', [node, last], true /* implicit */);
|
999
|
+
} else {
|
1000
|
+
break;
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
return node;
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
/**
|
1007
|
+
* Infamous "rule 2" as described in https://github.com/josdejong/mathjs/issues/792#issuecomment-361065370
|
1008
|
+
* And as amended in https://github.com/josdejong/mathjs/issues/2370#issuecomment-1054052164
|
1009
|
+
* Explicit division gets higher precedence than implicit multiplication
|
1010
|
+
* when the division matches this pattern:
|
1011
|
+
* [unaryPrefixOp]?[number] / [number] [symbol]
|
1012
|
+
* @return {Node} node
|
1013
|
+
* @private
|
1014
|
+
*/
|
1015
|
+
function parseRule2(state) {
|
1016
|
+
var node = parsePercentage(state);
|
1017
|
+
var last = node;
|
1018
|
+
var tokenStates = [];
|
1019
|
+
while (true) {
|
1020
|
+
// Match the "number /" part of the pattern "number / number symbol"
|
1021
|
+
if (state.token === '/' && (0, _is.rule2Node)(last)) {
|
1022
|
+
// Look ahead to see if the next token is a number
|
1023
|
+
tokenStates.push((0, _extends2["default"])({}, state));
|
1024
|
+
getTokenSkipNewline(state);
|
1025
|
+
|
1026
|
+
// Match the "number / number" part of the pattern
|
1027
|
+
if (state.tokenType === TOKENTYPE.NUMBER) {
|
1028
|
+
// Look ahead again
|
1029
|
+
tokenStates.push((0, _extends2["default"])({}, state));
|
1030
|
+
getTokenSkipNewline(state);
|
1031
|
+
|
1032
|
+
// Match the "symbol" part of the pattern, or a left parenthesis
|
1033
|
+
if (state.tokenType === TOKENTYPE.SYMBOL || state.token === '(') {
|
1034
|
+
// We've matched the pattern "number / number symbol".
|
1035
|
+
// Rewind once and build the "number / number" node; the symbol will be consumed later
|
1036
|
+
(0, _extends2["default"])(state, tokenStates.pop());
|
1037
|
+
tokenStates.pop();
|
1038
|
+
last = parsePercentage(state);
|
1039
|
+
node = new OperatorNode('/', 'divide', [node, last]);
|
1040
|
+
} else {
|
1041
|
+
// Not a match, so rewind
|
1042
|
+
tokenStates.pop();
|
1043
|
+
(0, _extends2["default"])(state, tokenStates.pop());
|
1044
|
+
break;
|
1045
|
+
}
|
1046
|
+
} else {
|
1047
|
+
// Not a match, so rewind
|
1048
|
+
(0, _extends2["default"])(state, tokenStates.pop());
|
1049
|
+
break;
|
1050
|
+
}
|
1051
|
+
} else {
|
1052
|
+
break;
|
1053
|
+
}
|
1054
|
+
}
|
1055
|
+
return node;
|
1056
|
+
}
|
1057
|
+
|
1058
|
+
/**
|
1059
|
+
* percentage or mod
|
1060
|
+
* @return {Node} node
|
1061
|
+
* @private
|
1062
|
+
*/
|
1063
|
+
function parsePercentage(state) {
|
1064
|
+
var node, name, fn, params;
|
1065
|
+
node = parseUnary(state);
|
1066
|
+
var operators = {
|
1067
|
+
'%': 'mod',
|
1068
|
+
mod: 'mod'
|
1069
|
+
};
|
1070
|
+
while ((0, _object.hasOwnProperty)(operators, state.token)) {
|
1071
|
+
name = state.token;
|
1072
|
+
fn = operators[name];
|
1073
|
+
getTokenSkipNewline(state);
|
1074
|
+
if (name === '%' && state.tokenType === TOKENTYPE.DELIMITER && state.token !== '(') {
|
1075
|
+
// If the expression contains only %, then treat that as /100
|
1076
|
+
node = new OperatorNode('/', 'divide', [node, new ConstantNode(100)], false, true);
|
1077
|
+
} else {
|
1078
|
+
params = [node, parseUnary(state)];
|
1079
|
+
node = new OperatorNode(name, fn, params);
|
1080
|
+
}
|
1081
|
+
}
|
1082
|
+
return node;
|
1083
|
+
}
|
1084
|
+
|
1085
|
+
/**
|
1086
|
+
* Unary plus and minus, and logical and bitwise not
|
1087
|
+
* @return {Node} node
|
1088
|
+
* @private
|
1089
|
+
*/
|
1090
|
+
function parseUnary(state) {
|
1091
|
+
var name, params, fn;
|
1092
|
+
var operators = {
|
1093
|
+
'-': 'unaryMinus',
|
1094
|
+
'+': 'unaryPlus',
|
1095
|
+
'~': 'bitNot',
|
1096
|
+
not: 'not'
|
1097
|
+
};
|
1098
|
+
if ((0, _object.hasOwnProperty)(operators, state.token)) {
|
1099
|
+
fn = operators[state.token];
|
1100
|
+
name = state.token;
|
1101
|
+
getTokenSkipNewline(state);
|
1102
|
+
params = [parseUnary(state)];
|
1103
|
+
return new OperatorNode(name, fn, params);
|
1104
|
+
}
|
1105
|
+
return parsePow(state);
|
1106
|
+
}
|
1107
|
+
|
1108
|
+
/**
|
1109
|
+
* power
|
1110
|
+
* Note: power operator is right associative
|
1111
|
+
* @return {Node} node
|
1112
|
+
* @private
|
1113
|
+
*/
|
1114
|
+
function parsePow(state) {
|
1115
|
+
var node, name, fn, params;
|
1116
|
+
node = parseLeftHandOperators(state);
|
1117
|
+
if (state.token === '^' || state.token === '.^') {
|
1118
|
+
name = state.token;
|
1119
|
+
fn = name === '^' ? 'pow' : 'dotPow';
|
1120
|
+
getTokenSkipNewline(state);
|
1121
|
+
params = [node, parseUnary(state)]; // Go back to unary, we can have '2^-3'
|
1122
|
+
node = new OperatorNode(name, fn, params);
|
1123
|
+
}
|
1124
|
+
return node;
|
1125
|
+
}
|
1126
|
+
|
1127
|
+
/**
|
1128
|
+
* Left hand operators: factorial x!, ctranspose x'
|
1129
|
+
* @return {Node} node
|
1130
|
+
* @private
|
1131
|
+
*/
|
1132
|
+
function parseLeftHandOperators(state) {
|
1133
|
+
var node, name, fn, params;
|
1134
|
+
node = parseCustomNodes(state);
|
1135
|
+
var operators = {
|
1136
|
+
'!': 'factorial',
|
1137
|
+
'\'': 'ctranspose'
|
1138
|
+
};
|
1139
|
+
while ((0, _object.hasOwnProperty)(operators, state.token)) {
|
1140
|
+
name = state.token;
|
1141
|
+
fn = operators[name];
|
1142
|
+
getToken(state);
|
1143
|
+
params = [node];
|
1144
|
+
node = new OperatorNode(name, fn, params);
|
1145
|
+
node = parseAccessors(state, node);
|
1146
|
+
}
|
1147
|
+
return node;
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
/**
|
1151
|
+
* Parse a custom node handler. A node handler can be used to process
|
1152
|
+
* nodes in a custom way, for example for handling a plot.
|
1153
|
+
*
|
1154
|
+
* A handler must be passed as second argument of the parse function.
|
1155
|
+
* - must extend math.Node
|
1156
|
+
* - must contain a function _compile(defs: Object) : string
|
1157
|
+
* - must contain a function find(filter: Object) : Node[]
|
1158
|
+
* - must contain a function toString() : string
|
1159
|
+
* - the constructor is called with a single argument containing all parameters
|
1160
|
+
*
|
1161
|
+
* For example:
|
1162
|
+
*
|
1163
|
+
* nodes = {
|
1164
|
+
* 'plot': PlotHandler
|
1165
|
+
* }
|
1166
|
+
*
|
1167
|
+
* The constructor of the handler is called as:
|
1168
|
+
*
|
1169
|
+
* node = new PlotHandler(params)
|
1170
|
+
*
|
1171
|
+
* The handler will be invoked when evaluating an expression like:
|
1172
|
+
*
|
1173
|
+
* node = math.parse('plot(sin(x), x)', nodes)
|
1174
|
+
*
|
1175
|
+
* @return {Node} node
|
1176
|
+
* @private
|
1177
|
+
*/
|
1178
|
+
function parseCustomNodes(state) {
|
1179
|
+
var params = [];
|
1180
|
+
if (state.tokenType === TOKENTYPE.SYMBOL && (0, _object.hasOwnProperty)(state.extraNodes, state.token)) {
|
1181
|
+
var CustomNode = state.extraNodes[state.token];
|
1182
|
+
getToken(state);
|
1183
|
+
|
1184
|
+
// parse parameters
|
1185
|
+
if (state.token === '(') {
|
1186
|
+
params = [];
|
1187
|
+
openParams(state);
|
1188
|
+
getToken(state);
|
1189
|
+
if (state.token !== ')') {
|
1190
|
+
params.push(parseAssignment(state));
|
1191
|
+
|
1192
|
+
// parse a list with parameters
|
1193
|
+
while (state.token === ',') {
|
1194
|
+
// eslint-disable-line no-unmodified-loop-condition
|
1195
|
+
getToken(state);
|
1196
|
+
params.push(parseAssignment(state));
|
1197
|
+
}
|
1198
|
+
}
|
1199
|
+
if (state.token !== ')') {
|
1200
|
+
throw createSyntaxError(state, 'Parenthesis ) expected');
|
1201
|
+
}
|
1202
|
+
closeParams(state);
|
1203
|
+
getToken(state);
|
1204
|
+
}
|
1205
|
+
|
1206
|
+
// create a new custom node
|
1207
|
+
// noinspection JSValidateTypes
|
1208
|
+
return new CustomNode(params);
|
1209
|
+
}
|
1210
|
+
return parseSymbol(state);
|
1211
|
+
}
|
1212
|
+
|
1213
|
+
/**
|
1214
|
+
* parse symbols: functions, variables, constants, units
|
1215
|
+
* @return {Node} node
|
1216
|
+
* @private
|
1217
|
+
*/
|
1218
|
+
function parseSymbol(state) {
|
1219
|
+
var node, name;
|
1220
|
+
if (state.tokenType === TOKENTYPE.SYMBOL || state.tokenType === TOKENTYPE.DELIMITER && state.token in NAMED_DELIMITERS) {
|
1221
|
+
name = state.token;
|
1222
|
+
getToken(state);
|
1223
|
+
if ((0, _object.hasOwnProperty)(CONSTANTS, name)) {
|
1224
|
+
// true, false, null, ...
|
1225
|
+
node = new ConstantNode(CONSTANTS[name]);
|
1226
|
+
} else if (NUMERIC_CONSTANTS.indexOf(name) !== -1) {
|
1227
|
+
// NaN, Infinity
|
1228
|
+
node = new ConstantNode(numeric(name, 'number'));
|
1229
|
+
} else {
|
1230
|
+
node = new SymbolNode(name);
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
// parse function parameters and matrix index
|
1234
|
+
node = parseAccessors(state, node);
|
1235
|
+
return node;
|
1236
|
+
}
|
1237
|
+
return parseDoubleQuotesString(state);
|
1238
|
+
}
|
1239
|
+
|
1240
|
+
/**
|
1241
|
+
* parse accessors:
|
1242
|
+
* - function invocation in round brackets (...), for example sqrt(2)
|
1243
|
+
* - index enclosed in square brackets [...], for example A[2,3]
|
1244
|
+
* - dot notation for properties, like foo.bar
|
1245
|
+
* @param {Object} state
|
1246
|
+
* @param {Node} node Node on which to apply the parameters. If there
|
1247
|
+
* are no parameters in the expression, the node
|
1248
|
+
* itself is returned
|
1249
|
+
* @param {string[]} [types] Filter the types of notations
|
1250
|
+
* can be ['(', '[', '.']
|
1251
|
+
* @return {Node} node
|
1252
|
+
* @private
|
1253
|
+
*/
|
1254
|
+
function parseAccessors(state, node, types) {
|
1255
|
+
var params;
|
1256
|
+
while ((state.token === '(' || state.token === '[' || state.token === '.') && (!types || types.indexOf(state.token) !== -1)) {
|
1257
|
+
// eslint-disable-line no-unmodified-loop-condition
|
1258
|
+
params = [];
|
1259
|
+
if (state.token === '(') {
|
1260
|
+
if ((0, _is.isSymbolNode)(node) || (0, _is.isAccessorNode)(node)) {
|
1261
|
+
// function invocation like fn(2, 3) or obj.fn(2, 3)
|
1262
|
+
openParams(state);
|
1263
|
+
getToken(state);
|
1264
|
+
if (state.token !== ')') {
|
1265
|
+
params.push(parseAssignment(state));
|
1266
|
+
|
1267
|
+
// parse a list with parameters
|
1268
|
+
while (state.token === ',') {
|
1269
|
+
// eslint-disable-line no-unmodified-loop-condition
|
1270
|
+
getToken(state);
|
1271
|
+
params.push(parseAssignment(state));
|
1272
|
+
}
|
1273
|
+
}
|
1274
|
+
if (state.token !== ')') {
|
1275
|
+
throw createSyntaxError(state, 'Parenthesis ) expected');
|
1276
|
+
}
|
1277
|
+
closeParams(state);
|
1278
|
+
getToken(state);
|
1279
|
+
node = new FunctionNode(node, params);
|
1280
|
+
} else {
|
1281
|
+
// implicit multiplication like (2+3)(4+5) or sqrt(2)(1+2)
|
1282
|
+
// don't parse it here but let it be handled by parseImplicitMultiplication
|
1283
|
+
// with correct precedence
|
1284
|
+
return node;
|
1285
|
+
}
|
1286
|
+
} else if (state.token === '[') {
|
1287
|
+
// index notation like variable[2, 3]
|
1288
|
+
openParams(state);
|
1289
|
+
getToken(state);
|
1290
|
+
if (state.token !== ']') {
|
1291
|
+
params.push(parseAssignment(state));
|
1292
|
+
|
1293
|
+
// parse a list with parameters
|
1294
|
+
while (state.token === ',') {
|
1295
|
+
// eslint-disable-line no-unmodified-loop-condition
|
1296
|
+
getToken(state);
|
1297
|
+
params.push(parseAssignment(state));
|
1298
|
+
}
|
1299
|
+
}
|
1300
|
+
if (state.token !== ']') {
|
1301
|
+
throw createSyntaxError(state, 'Parenthesis ] expected');
|
1302
|
+
}
|
1303
|
+
closeParams(state);
|
1304
|
+
getToken(state);
|
1305
|
+
node = new AccessorNode(node, new IndexNode(params));
|
1306
|
+
} else {
|
1307
|
+
// dot notation like variable.prop
|
1308
|
+
getToken(state);
|
1309
|
+
if (state.tokenType !== TOKENTYPE.SYMBOL) {
|
1310
|
+
throw createSyntaxError(state, 'Property name expected after dot');
|
1311
|
+
}
|
1312
|
+
params.push(new ConstantNode(state.token));
|
1313
|
+
getToken(state);
|
1314
|
+
var dotNotation = true;
|
1315
|
+
node = new AccessorNode(node, new IndexNode(params, dotNotation));
|
1316
|
+
}
|
1317
|
+
}
|
1318
|
+
return node;
|
1319
|
+
}
|
1320
|
+
|
1321
|
+
/**
|
1322
|
+
* Parse a double quotes string.
|
1323
|
+
* @return {Node} node
|
1324
|
+
* @private
|
1325
|
+
*/
|
1326
|
+
function parseDoubleQuotesString(state) {
|
1327
|
+
var node, str;
|
1328
|
+
if (state.token === '"') {
|
1329
|
+
str = parseDoubleQuotesStringToken(state);
|
1330
|
+
|
1331
|
+
// create constant
|
1332
|
+
node = new ConstantNode(str);
|
1333
|
+
|
1334
|
+
// parse index parameters
|
1335
|
+
node = parseAccessors(state, node);
|
1336
|
+
return node;
|
1337
|
+
}
|
1338
|
+
return parseSingleQuotesString(state);
|
1339
|
+
}
|
1340
|
+
|
1341
|
+
/**
|
1342
|
+
* Parse a string surrounded by double quotes "..."
|
1343
|
+
* @return {string}
|
1344
|
+
*/
|
1345
|
+
function parseDoubleQuotesStringToken(state) {
|
1346
|
+
var str = '';
|
1347
|
+
while (currentCharacter(state) !== '' && currentCharacter(state) !== '"') {
|
1348
|
+
if (currentCharacter(state) === '\\') {
|
1349
|
+
// escape character, immediately process the next
|
1350
|
+
// character to prevent stopping at a next '\"'
|
1351
|
+
str += currentCharacter(state);
|
1352
|
+
next(state);
|
1353
|
+
}
|
1354
|
+
str += currentCharacter(state);
|
1355
|
+
next(state);
|
1356
|
+
}
|
1357
|
+
getToken(state);
|
1358
|
+
if (state.token !== '"') {
|
1359
|
+
throw createSyntaxError(state, 'End of string " expected');
|
1360
|
+
}
|
1361
|
+
getToken(state);
|
1362
|
+
return JSON.parse('"' + str + '"'); // unescape escaped characters
|
1363
|
+
}
|
1364
|
+
|
1365
|
+
/**
|
1366
|
+
* Parse a single quotes string.
|
1367
|
+
* @return {Node} node
|
1368
|
+
* @private
|
1369
|
+
*/
|
1370
|
+
function parseSingleQuotesString(state) {
|
1371
|
+
var node, str;
|
1372
|
+
if (state.token === '\'') {
|
1373
|
+
str = parseSingleQuotesStringToken(state);
|
1374
|
+
|
1375
|
+
// create constant
|
1376
|
+
node = new ConstantNode(str);
|
1377
|
+
|
1378
|
+
// parse index parameters
|
1379
|
+
node = parseAccessors(state, node);
|
1380
|
+
return node;
|
1381
|
+
}
|
1382
|
+
return parseMatrix(state);
|
1383
|
+
}
|
1384
|
+
|
1385
|
+
/**
|
1386
|
+
* Parse a string surrounded by single quotes '...'
|
1387
|
+
* @return {string}
|
1388
|
+
*/
|
1389
|
+
function parseSingleQuotesStringToken(state) {
|
1390
|
+
var str = '';
|
1391
|
+
while (currentCharacter(state) !== '' && currentCharacter(state) !== '\'') {
|
1392
|
+
if (currentCharacter(state) === '\\') {
|
1393
|
+
// escape character, immediately process the next
|
1394
|
+
// character to prevent stopping at a next '\''
|
1395
|
+
str += currentCharacter(state);
|
1396
|
+
next(state);
|
1397
|
+
}
|
1398
|
+
str += currentCharacter(state);
|
1399
|
+
next(state);
|
1400
|
+
}
|
1401
|
+
getToken(state);
|
1402
|
+
if (state.token !== '\'') {
|
1403
|
+
throw createSyntaxError(state, 'End of string \' expected');
|
1404
|
+
}
|
1405
|
+
getToken(state);
|
1406
|
+
return JSON.parse('"' + str + '"'); // unescape escaped characters
|
1407
|
+
}
|
1408
|
+
|
1409
|
+
/**
|
1410
|
+
* parse the matrix
|
1411
|
+
* @return {Node} node
|
1412
|
+
* @private
|
1413
|
+
*/
|
1414
|
+
function parseMatrix(state) {
|
1415
|
+
var array, params, rows, cols;
|
1416
|
+
if (state.token === '[') {
|
1417
|
+
// matrix [...]
|
1418
|
+
openParams(state);
|
1419
|
+
getToken(state);
|
1420
|
+
if (state.token !== ']') {
|
1421
|
+
// this is a non-empty matrix
|
1422
|
+
var row = parseRow(state);
|
1423
|
+
if (state.token === ';') {
|
1424
|
+
// 2 dimensional array
|
1425
|
+
rows = 1;
|
1426
|
+
params = [row];
|
1427
|
+
|
1428
|
+
// the rows of the matrix are separated by dot-comma's
|
1429
|
+
while (state.token === ';') {
|
1430
|
+
// eslint-disable-line no-unmodified-loop-condition
|
1431
|
+
getToken(state);
|
1432
|
+
params[rows] = parseRow(state);
|
1433
|
+
rows++;
|
1434
|
+
}
|
1435
|
+
if (state.token !== ']') {
|
1436
|
+
throw createSyntaxError(state, 'End of matrix ] expected');
|
1437
|
+
}
|
1438
|
+
closeParams(state);
|
1439
|
+
getToken(state);
|
1440
|
+
|
1441
|
+
// check if the number of columns matches in all rows
|
1442
|
+
cols = params[0].items.length;
|
1443
|
+
for (var r = 1; r < rows; r++) {
|
1444
|
+
if (params[r].items.length !== cols) {
|
1445
|
+
throw createError(state, 'Column dimensions mismatch ' + '(' + params[r].items.length + ' !== ' + cols + ')');
|
1446
|
+
}
|
1447
|
+
}
|
1448
|
+
array = new ArrayNode(params);
|
1449
|
+
} else {
|
1450
|
+
// 1 dimensional vector
|
1451
|
+
if (state.token !== ']') {
|
1452
|
+
throw createSyntaxError(state, 'End of matrix ] expected');
|
1453
|
+
}
|
1454
|
+
closeParams(state);
|
1455
|
+
getToken(state);
|
1456
|
+
array = row;
|
1457
|
+
}
|
1458
|
+
} else {
|
1459
|
+
// this is an empty matrix "[ ]"
|
1460
|
+
closeParams(state);
|
1461
|
+
getToken(state);
|
1462
|
+
array = new ArrayNode([]);
|
1463
|
+
}
|
1464
|
+
return parseAccessors(state, array);
|
1465
|
+
}
|
1466
|
+
return parseObject(state);
|
1467
|
+
}
|
1468
|
+
|
1469
|
+
/**
|
1470
|
+
* Parse a single comma-separated row from a matrix, like 'a, b, c'
|
1471
|
+
* @return {ArrayNode} node
|
1472
|
+
*/
|
1473
|
+
function parseRow(state) {
|
1474
|
+
var params = [parseAssignment(state)];
|
1475
|
+
var len = 1;
|
1476
|
+
while (state.token === ',') {
|
1477
|
+
// eslint-disable-line no-unmodified-loop-condition
|
1478
|
+
getToken(state);
|
1479
|
+
|
1480
|
+
// parse expression
|
1481
|
+
params[len] = parseAssignment(state);
|
1482
|
+
len++;
|
1483
|
+
}
|
1484
|
+
return new ArrayNode(params);
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
/**
|
1488
|
+
* parse an object, enclosed in angle brackets{...}, for example {value: 2}
|
1489
|
+
* @return {Node} node
|
1490
|
+
* @private
|
1491
|
+
*/
|
1492
|
+
function parseObject(state) {
|
1493
|
+
if (state.token === '{') {
|
1494
|
+
openParams(state);
|
1495
|
+
var key;
|
1496
|
+
var properties = {};
|
1497
|
+
do {
|
1498
|
+
getToken(state);
|
1499
|
+
if (state.token !== '}') {
|
1500
|
+
// parse key
|
1501
|
+
if (state.token === '"') {
|
1502
|
+
key = parseDoubleQuotesStringToken(state);
|
1503
|
+
} else if (state.token === '\'') {
|
1504
|
+
key = parseSingleQuotesStringToken(state);
|
1505
|
+
} else if (state.tokenType === TOKENTYPE.SYMBOL || state.tokenType === TOKENTYPE.DELIMITER && state.token in NAMED_DELIMITERS) {
|
1506
|
+
key = state.token;
|
1507
|
+
getToken(state);
|
1508
|
+
} else {
|
1509
|
+
throw createSyntaxError(state, 'Symbol or string expected as object key');
|
1510
|
+
}
|
1511
|
+
|
1512
|
+
// parse key/value separator
|
1513
|
+
if (state.token !== ':') {
|
1514
|
+
throw createSyntaxError(state, 'Colon : expected after object key');
|
1515
|
+
}
|
1516
|
+
getToken(state);
|
1517
|
+
|
1518
|
+
// parse key
|
1519
|
+
properties[key] = parseAssignment(state);
|
1520
|
+
}
|
1521
|
+
} while (state.token === ','); // eslint-disable-line no-unmodified-loop-condition
|
1522
|
+
|
1523
|
+
if (state.token !== '}') {
|
1524
|
+
throw createSyntaxError(state, 'Comma , or bracket } expected after object value');
|
1525
|
+
}
|
1526
|
+
closeParams(state);
|
1527
|
+
getToken(state);
|
1528
|
+
var node = new ObjectNode(properties);
|
1529
|
+
|
1530
|
+
// parse index parameters
|
1531
|
+
node = parseAccessors(state, node);
|
1532
|
+
return node;
|
1533
|
+
}
|
1534
|
+
return parseNumber(state);
|
1535
|
+
}
|
1536
|
+
|
1537
|
+
/**
|
1538
|
+
* parse a number
|
1539
|
+
* @return {Node} node
|
1540
|
+
* @private
|
1541
|
+
*/
|
1542
|
+
function parseNumber(state) {
|
1543
|
+
var numberStr;
|
1544
|
+
if (state.tokenType === TOKENTYPE.NUMBER) {
|
1545
|
+
// this is a number
|
1546
|
+
numberStr = state.token;
|
1547
|
+
getToken(state);
|
1548
|
+
return new ConstantNode(numeric(numberStr, config.number));
|
1549
|
+
}
|
1550
|
+
return parseParentheses(state);
|
1551
|
+
}
|
1552
|
+
|
1553
|
+
/**
|
1554
|
+
* parentheses
|
1555
|
+
* @return {Node} node
|
1556
|
+
* @private
|
1557
|
+
*/
|
1558
|
+
function parseParentheses(state) {
|
1559
|
+
var node;
|
1560
|
+
|
1561
|
+
// check if it is a parenthesized expression
|
1562
|
+
if (state.token === '(') {
|
1563
|
+
// parentheses (...)
|
1564
|
+
openParams(state);
|
1565
|
+
getToken(state);
|
1566
|
+
node = parseAssignment(state); // start again
|
1567
|
+
|
1568
|
+
if (state.token !== ')') {
|
1569
|
+
throw createSyntaxError(state, 'Parenthesis ) expected');
|
1570
|
+
}
|
1571
|
+
closeParams(state);
|
1572
|
+
getToken(state);
|
1573
|
+
node = new ParenthesisNode(node);
|
1574
|
+
node = parseAccessors(state, node);
|
1575
|
+
return node;
|
1576
|
+
}
|
1577
|
+
return parseEnd(state);
|
1578
|
+
}
|
1579
|
+
|
1580
|
+
/**
|
1581
|
+
* Evaluated when the expression is not yet ended but expected to end
|
1582
|
+
* @return {Node} res
|
1583
|
+
* @private
|
1584
|
+
*/
|
1585
|
+
function parseEnd(state) {
|
1586
|
+
if (state.token === '') {
|
1587
|
+
// syntax error or unexpected end of expression
|
1588
|
+
throw createSyntaxError(state, 'Unexpected end of expression');
|
1589
|
+
} else {
|
1590
|
+
throw createSyntaxError(state, 'Value expected');
|
1591
|
+
}
|
1592
|
+
}
|
1593
|
+
|
1594
|
+
/**
|
1595
|
+
* Shortcut for getting the current row value (one based)
|
1596
|
+
* Returns the line of the currently handled expression
|
1597
|
+
* @private
|
1598
|
+
*/
|
1599
|
+
/* TODO: implement keeping track on the row number
|
1600
|
+
function row () {
|
1601
|
+
return null
|
1602
|
+
}
|
1603
|
+
*/
|
1604
|
+
|
1605
|
+
/**
|
1606
|
+
* Shortcut for getting the current col value (one based)
|
1607
|
+
* Returns the column (position) where the last state.token starts
|
1608
|
+
* @private
|
1609
|
+
*/
|
1610
|
+
function col(state) {
|
1611
|
+
return state.index - state.token.length + 1;
|
1612
|
+
}
|
1613
|
+
|
1614
|
+
/**
|
1615
|
+
* Create an error
|
1616
|
+
* @param {Object} state
|
1617
|
+
* @param {string} message
|
1618
|
+
* @return {SyntaxError} instantiated error
|
1619
|
+
* @private
|
1620
|
+
*/
|
1621
|
+
function createSyntaxError(state, message) {
|
1622
|
+
var c = col(state);
|
1623
|
+
var error = new SyntaxError(message + ' (char ' + c + ')');
|
1624
|
+
error["char"] = c;
|
1625
|
+
return error;
|
1626
|
+
}
|
1627
|
+
|
1628
|
+
/**
|
1629
|
+
* Create an error
|
1630
|
+
* @param {Object} state
|
1631
|
+
* @param {string} message
|
1632
|
+
* @return {Error} instantiated error
|
1633
|
+
* @private
|
1634
|
+
*/
|
1635
|
+
function createError(state, message) {
|
1636
|
+
var c = col(state);
|
1637
|
+
var error = new SyntaxError(message + ' (char ' + c + ')');
|
1638
|
+
error["char"] = c;
|
1639
|
+
return error;
|
1640
|
+
}
|
1641
|
+
|
1642
|
+
// Now that we can parse, automatically convert strings to Nodes by parsing
|
1643
|
+
typed.addConversion({
|
1644
|
+
from: 'string',
|
1645
|
+
to: 'Node',
|
1646
|
+
convert: parse
|
1647
|
+
});
|
1648
|
+
return parse;
|
1649
|
+
});
|
1650
|
+
exports.createParse = createParse;
|