@danielsimonjr/mathts-functions 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/algebra/decomposition/lup.d.ts +78 -0
- package/dist/algebra/decomposition/lup.d.ts.map +1 -0
- package/dist/algebra/decomposition/qr.d.ts +60 -0
- package/dist/algebra/decomposition/qr.d.ts.map +1 -0
- package/dist/algebra/decomposition/schur.d.ts +40 -0
- package/dist/algebra/decomposition/schur.d.ts.map +1 -0
- package/dist/algebra/decomposition/slu.d.ts +37 -0
- package/dist/algebra/decomposition/slu.d.ts.map +1 -0
- package/dist/algebra/derivative.d.ts +35 -0
- package/dist/algebra/derivative.d.ts.map +1 -0
- package/dist/algebra/leafCount.d.ts +9 -0
- package/dist/algebra/leafCount.d.ts.map +1 -0
- package/dist/algebra/lyap.d.ts +14 -0
- package/dist/algebra/lyap.d.ts.map +1 -0
- package/dist/algebra/polynomialRoot.d.ts +22 -0
- package/dist/algebra/polynomialRoot.d.ts.map +1 -0
- package/dist/algebra/rationalize.d.ts +43 -0
- package/dist/algebra/rationalize.d.ts.map +1 -0
- package/dist/algebra/resolve.d.ts +25 -0
- package/dist/algebra/resolve.d.ts.map +1 -0
- package/dist/algebra/simplify/util.d.ts +35 -0
- package/dist/algebra/simplify/util.d.ts.map +1 -0
- package/dist/algebra/simplify/wildcards.d.ts +5 -0
- package/dist/algebra/simplify/wildcards.d.ts.map +1 -0
- package/dist/algebra/simplify.d.ts +57 -0
- package/dist/algebra/simplify.d.ts.map +1 -0
- package/dist/algebra/simplifyConstant.d.ts +20 -0
- package/dist/algebra/simplifyConstant.d.ts.map +1 -0
- package/dist/algebra/simplifyCore.d.ts +21 -0
- package/dist/algebra/simplifyCore.d.ts.map +1 -0
- package/dist/algebra/solver/lsolve.d.ts +46 -0
- package/dist/algebra/solver/lsolve.d.ts.map +1 -0
- package/dist/algebra/solver/lsolveAll.d.ts +53 -0
- package/dist/algebra/solver/lsolveAll.d.ts.map +1 -0
- package/dist/algebra/solver/lusolve.d.ts +62 -0
- package/dist/algebra/solver/lusolve.d.ts.map +1 -0
- package/dist/algebra/solver/usolve.d.ts +46 -0
- package/dist/algebra/solver/usolve.d.ts.map +1 -0
- package/dist/algebra/solver/usolveAll.d.ts +53 -0
- package/dist/algebra/solver/usolveAll.d.ts.map +1 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts +31 -0
- package/dist/algebra/solver/utils/solveValidation.d.ts.map +1 -0
- package/dist/algebra/sparse/csAmd.d.ts +15 -0
- package/dist/algebra/sparse/csAmd.d.ts.map +1 -0
- package/dist/algebra/sparse/csChol.d.ts +39 -0
- package/dist/algebra/sparse/csChol.d.ts.map +1 -0
- package/dist/algebra/sparse/csCounts.d.ts +13 -0
- package/dist/algebra/sparse/csCounts.d.ts.map +1 -0
- package/dist/algebra/sparse/csCumsum.d.ts +9 -0
- package/dist/algebra/sparse/csCumsum.d.ts.map +1 -0
- package/dist/algebra/sparse/csDfs.d.ts +23 -0
- package/dist/algebra/sparse/csDfs.d.ts.map +1 -0
- package/dist/algebra/sparse/csEreach.d.ts +20 -0
- package/dist/algebra/sparse/csEreach.d.ts.map +1 -0
- package/dist/algebra/sparse/csEtree.d.ts +16 -0
- package/dist/algebra/sparse/csEtree.d.ts.map +1 -0
- package/dist/algebra/sparse/csFkeep.d.ts +22 -0
- package/dist/algebra/sparse/csFkeep.d.ts.map +1 -0
- package/dist/algebra/sparse/csFlip.d.ts +7 -0
- package/dist/algebra/sparse/csFlip.d.ts.map +1 -0
- package/dist/algebra/sparse/csIpvec.d.ts +10 -0
- package/dist/algebra/sparse/csIpvec.d.ts.map +1 -0
- package/dist/algebra/sparse/csLeaf.d.ts +21 -0
- package/dist/algebra/sparse/csLeaf.d.ts.map +1 -0
- package/dist/algebra/sparse/csLu.d.ts +37 -0
- package/dist/algebra/sparse/csLu.d.ts.map +1 -0
- package/dist/algebra/sparse/csMark.d.ts +8 -0
- package/dist/algebra/sparse/csMark.d.ts.map +1 -0
- package/dist/algebra/sparse/csMarked.d.ts +8 -0
- package/dist/algebra/sparse/csMarked.d.ts.map +1 -0
- package/dist/algebra/sparse/csPermute.d.ts +27 -0
- package/dist/algebra/sparse/csPermute.d.ts.map +1 -0
- package/dist/algebra/sparse/csPost.d.ts +8 -0
- package/dist/algebra/sparse/csPost.d.ts.map +1 -0
- package/dist/algebra/sparse/csReach.d.ts +23 -0
- package/dist/algebra/sparse/csReach.d.ts.map +1 -0
- package/dist/algebra/sparse/csSpsolve.d.ts +15 -0
- package/dist/algebra/sparse/csSpsolve.d.ts.map +1 -0
- package/dist/algebra/sparse/csSqr.d.ts +25 -0
- package/dist/algebra/sparse/csSqr.d.ts.map +1 -0
- package/dist/algebra/sparse/csSymperm.d.ts +22 -0
- package/dist/algebra/sparse/csSymperm.d.ts.map +1 -0
- package/dist/algebra/sparse/csTdfs.d.ts +13 -0
- package/dist/algebra/sparse/csTdfs.d.ts.map +1 -0
- package/dist/algebra/sparse/csUnflip.d.ts +7 -0
- package/dist/algebra/sparse/csUnflip.d.ts.map +1 -0
- package/dist/algebra/sylvester.d.ts +30 -0
- package/dist/algebra/sylvester.d.ts.map +1 -0
- package/dist/algebra/symbolicEqual.d.ts +18 -0
- package/dist/algebra/symbolicEqual.d.ts.map +1 -0
- package/dist/arithmetic/abs.d.ts +7 -0
- package/dist/arithmetic/abs.d.ts.map +1 -0
- package/dist/arithmetic/addScalar.d.ts +7 -0
- package/dist/arithmetic/addScalar.d.ts.map +1 -0
- package/dist/arithmetic/cbrt.d.ts +37 -0
- package/dist/arithmetic/cbrt.d.ts.map +1 -0
- package/dist/arithmetic/ceil.d.ts +22 -0
- package/dist/arithmetic/ceil.d.ts.map +1 -0
- package/dist/arithmetic/cube.d.ts +7 -0
- package/dist/arithmetic/cube.d.ts.map +1 -0
- package/dist/arithmetic/divide.d.ts +42 -0
- package/dist/arithmetic/divide.d.ts.map +1 -0
- package/dist/arithmetic/divideScalar.d.ts +8 -0
- package/dist/arithmetic/divideScalar.d.ts.map +1 -0
- package/dist/arithmetic/dotDivide.d.ts +13 -0
- package/dist/arithmetic/dotDivide.d.ts.map +1 -0
- package/dist/arithmetic/dotMultiply.d.ts +11 -0
- package/dist/arithmetic/dotMultiply.d.ts.map +1 -0
- package/dist/arithmetic/dotPow.d.ts +16 -0
- package/dist/arithmetic/dotPow.d.ts.map +1 -0
- package/dist/arithmetic/exp.d.ts +7 -0
- package/dist/arithmetic/exp.d.ts.map +1 -0
- package/dist/arithmetic/expm1.d.ts +15 -0
- package/dist/arithmetic/expm1.d.ts.map +1 -0
- package/dist/arithmetic/fix.d.ts +30 -0
- package/dist/arithmetic/fix.d.ts.map +1 -0
- package/dist/arithmetic/floor.d.ts +22 -0
- package/dist/arithmetic/floor.d.ts.map +1 -0
- package/dist/arithmetic/gcd.d.ts +25 -0
- package/dist/arithmetic/gcd.d.ts.map +1 -0
- package/dist/arithmetic/hypot.d.ts +14 -0
- package/dist/arithmetic/hypot.d.ts.map +1 -0
- package/dist/arithmetic/invmod.d.ts +19 -0
- package/dist/arithmetic/invmod.d.ts.map +1 -0
- package/dist/arithmetic/lcm.d.ts +10 -0
- package/dist/arithmetic/lcm.d.ts.map +1 -0
- package/dist/arithmetic/log.d.ts +18 -0
- package/dist/arithmetic/log.d.ts.map +1 -0
- package/dist/arithmetic/log10.d.ts +18 -0
- package/dist/arithmetic/log10.d.ts.map +1 -0
- package/dist/arithmetic/log1p.d.ts +19 -0
- package/dist/arithmetic/log1p.d.ts.map +1 -0
- package/dist/arithmetic/log2.d.ts +17 -0
- package/dist/arithmetic/log2.d.ts.map +1 -0
- package/dist/arithmetic/mod.d.ts +15 -0
- package/dist/arithmetic/mod.d.ts.map +1 -0
- package/dist/arithmetic/multiplyScalar.d.ts +7 -0
- package/dist/arithmetic/multiplyScalar.d.ts.map +1 -0
- package/dist/arithmetic/norm.d.ts +33 -0
- package/dist/arithmetic/norm.d.ts.map +1 -0
- package/dist/arithmetic/nthRoot.d.ts +38 -0
- package/dist/arithmetic/nthRoot.d.ts.map +1 -0
- package/dist/arithmetic/nthRoots.d.ts +23 -0
- package/dist/arithmetic/nthRoots.d.ts.map +1 -0
- package/dist/arithmetic/pow.d.ts +34 -0
- package/dist/arithmetic/pow.d.ts.map +1 -0
- package/dist/arithmetic/round.d.ts +27 -0
- package/dist/arithmetic/round.d.ts.map +1 -0
- package/dist/arithmetic/sign.d.ts +31 -0
- package/dist/arithmetic/sign.d.ts.map +1 -0
- package/dist/arithmetic/sqrt.d.ts +16 -0
- package/dist/arithmetic/sqrt.d.ts.map +1 -0
- package/dist/arithmetic/square.d.ts +7 -0
- package/dist/arithmetic/square.d.ts.map +1 -0
- package/dist/arithmetic/subtract.d.ts +18 -0
- package/dist/arithmetic/subtract.d.ts.map +1 -0
- package/dist/arithmetic/subtractScalar.d.ts +7 -0
- package/dist/arithmetic/subtractScalar.d.ts.map +1 -0
- package/dist/arithmetic/unaryMinus.d.ts +10 -0
- package/dist/arithmetic/unaryMinus.d.ts.map +1 -0
- package/dist/arithmetic/unaryPlus.d.ts +10 -0
- package/dist/arithmetic/unaryPlus.d.ts.map +1 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts +37 -0
- package/dist/arithmetic/utils/nodeOperations.d.ts.map +1 -0
- package/dist/arithmetic/xgcd.d.ts +25 -0
- package/dist/arithmetic/xgcd.d.ts.map +1 -0
- package/dist/bitwise/bitAnd.d.ts +10 -0
- package/dist/bitwise/bitAnd.d.ts.map +1 -0
- package/dist/bitwise/bitNot.d.ts +7 -0
- package/dist/bitwise/bitNot.d.ts.map +1 -0
- package/dist/bitwise/bitOr.d.ts +11 -0
- package/dist/bitwise/bitOr.d.ts.map +1 -0
- package/dist/bitwise/bitXor.d.ts +11 -0
- package/dist/bitwise/bitXor.d.ts.map +1 -0
- package/dist/bitwise/leftShift.d.ts +17 -0
- package/dist/bitwise/leftShift.d.ts.map +1 -0
- package/dist/bitwise/rightArithShift.d.ts +17 -0
- package/dist/bitwise/rightArithShift.d.ts.map +1 -0
- package/dist/bitwise/rightLogShift.d.ts +17 -0
- package/dist/bitwise/rightLogShift.d.ts.map +1 -0
- package/dist/bitwise/useMatrixForArrayScalar.d.ts +19 -0
- package/dist/bitwise/useMatrixForArrayScalar.d.ts.map +1 -0
- package/dist/combinatorics/bellNumbers.d.ts +14 -0
- package/dist/combinatorics/bellNumbers.d.ts.map +1 -0
- package/dist/combinatorics/catalan.d.ts +16 -0
- package/dist/combinatorics/catalan.d.ts.map +1 -0
- package/dist/combinatorics/composition.d.ts +16 -0
- package/dist/combinatorics/composition.d.ts.map +1 -0
- package/dist/combinatorics/stirlingS2.d.ts +22 -0
- package/dist/combinatorics/stirlingS2.d.ts.map +1 -0
- package/dist/complex/arg.d.ts +7 -0
- package/dist/complex/arg.d.ts.map +1 -0
- package/dist/complex/conj.d.ts +7 -0
- package/dist/complex/conj.d.ts.map +1 -0
- package/dist/complex/im.d.ts +7 -0
- package/dist/complex/im.d.ts.map +1 -0
- package/dist/complex/re.d.ts +7 -0
- package/dist/complex/re.d.ts.map +1 -0
- package/dist/core/config.d.ts +17 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/create.d.ts +137 -0
- package/dist/core/create.d.ts.map +1 -0
- package/dist/core/function/config.d.ts +35 -0
- package/dist/core/function/config.d.ts.map +1 -0
- package/dist/core/function/import.d.ts +30 -0
- package/dist/core/function/import.d.ts.map +1 -0
- package/dist/core/function/typed.d.ts +127 -0
- package/dist/core/function/typed.d.ts.map +1 -0
- package/dist/error/ArgumentsError.d.ts +21 -0
- package/dist/error/ArgumentsError.d.ts.map +1 -0
- package/dist/error/DimensionError.d.ts +18 -0
- package/dist/error/DimensionError.d.ts.map +1 -0
- package/dist/error/IndexError.d.ts +24 -0
- package/dist/error/IndexError.d.ts.map +1 -0
- package/dist/error/MathjsError.d.ts +13 -0
- package/dist/error/MathjsError.d.ts.map +1 -0
- package/dist/expression/operators.d.ts +942 -0
- package/dist/expression/operators.d.ts.map +1 -0
- package/dist/factories/evaluate.d.ts +91 -0
- package/dist/factories/evaluate.d.ts.map +1 -0
- package/dist/factories/index.d.ts +317 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/factories/matrix-bridge.d.ts +241 -0
- package/dist/factories/matrix-bridge.d.ts.map +1 -0
- package/dist/factories/scope.d.ts +12 -0
- package/dist/factories/scope.d.ts.map +1 -0
- package/dist/geometry/distance.d.ts +15 -0
- package/dist/geometry/distance.d.ts.map +1 -0
- package/dist/geometry/intersect.d.ts +26 -0
- package/dist/geometry/intersect.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -30
- package/dist/logical/and.d.ts +17 -0
- package/dist/logical/and.d.ts.map +1 -0
- package/dist/logical/not.d.ts +7 -0
- package/dist/logical/not.d.ts.map +1 -0
- package/dist/logical/nullish.d.ts +11 -0
- package/dist/logical/nullish.d.ts.map +1 -0
- package/dist/logical/or.d.ts +15 -0
- package/dist/logical/or.d.ts.map +1 -0
- package/dist/logical/xor.d.ts +15 -0
- package/dist/logical/xor.d.ts.map +1 -0
- package/dist/matrix/column.d.ts +22 -0
- package/dist/matrix/column.d.ts.map +1 -0
- package/dist/matrix/concat.d.ts +6 -0
- package/dist/matrix/concat.d.ts.map +1 -0
- package/dist/matrix/count.d.ts +9 -0
- package/dist/matrix/count.d.ts.map +1 -0
- package/dist/matrix/cross.d.ts +7 -0
- package/dist/matrix/cross.d.ts.map +1 -0
- package/dist/matrix/ctranspose.d.ts +9 -0
- package/dist/matrix/ctranspose.d.ts.map +1 -0
- package/dist/matrix/det.d.ts +42 -0
- package/dist/matrix/det.d.ts.map +1 -0
- package/dist/matrix/diag.d.ts +26 -0
- package/dist/matrix/diag.d.ts.map +1 -0
- package/dist/matrix/diff.d.ts +8 -0
- package/dist/matrix/diff.d.ts.map +1 -0
- package/dist/matrix/dot.d.ts +17 -0
- package/dist/matrix/dot.d.ts.map +1 -0
- package/dist/matrix/eigs/complexEigs.d.ts +48 -0
- package/dist/matrix/eigs/complexEigs.d.ts.map +1 -0
- package/dist/matrix/eigs/realSymmetric.d.ts +34 -0
- package/dist/matrix/eigs/realSymmetric.d.ts.map +1 -0
- package/dist/matrix/eigs.d.ts +75 -0
- package/dist/matrix/eigs.d.ts.map +1 -0
- package/dist/matrix/expm.d.ts +26 -0
- package/dist/matrix/expm.d.ts.map +1 -0
- package/dist/matrix/fft.d.ts +41 -0
- package/dist/matrix/fft.d.ts.map +1 -0
- package/dist/matrix/filter.d.ts +7 -0
- package/dist/matrix/filter.d.ts.map +1 -0
- package/dist/matrix/flatten.d.ts +7 -0
- package/dist/matrix/flatten.d.ts.map +1 -0
- package/dist/matrix/forEach.d.ts +7 -0
- package/dist/matrix/forEach.d.ts.map +1 -0
- package/dist/matrix/getMatrixDataType.d.ts +7 -0
- package/dist/matrix/getMatrixDataType.d.ts.map +1 -0
- package/dist/matrix/identity.d.ts +41 -0
- package/dist/matrix/identity.d.ts.map +1 -0
- package/dist/matrix/ifft.d.ts +33 -0
- package/dist/matrix/ifft.d.ts.map +1 -0
- package/dist/matrix/inv.d.ts +48 -0
- package/dist/matrix/inv.d.ts.map +1 -0
- package/dist/matrix/kron.d.ts +17 -0
- package/dist/matrix/kron.d.ts.map +1 -0
- package/dist/matrix/map.d.ts +7 -0
- package/dist/matrix/map.d.ts.map +1 -0
- package/dist/matrix/mapSlices.d.ts +6 -0
- package/dist/matrix/mapSlices.d.ts.map +1 -0
- package/dist/matrix/matrixFromColumns.d.ts +36 -0
- package/dist/matrix/matrixFromColumns.d.ts.map +1 -0
- package/dist/matrix/matrixFromFunction.d.ts +7 -0
- package/dist/matrix/matrixFromFunction.d.ts.map +1 -0
- package/dist/matrix/matrixFromRows.d.ts +36 -0
- package/dist/matrix/matrixFromRows.d.ts.map +1 -0
- package/dist/matrix/ones.d.ts +3 -0
- package/dist/matrix/ones.d.ts.map +1 -0
- package/dist/matrix/partitionSelect.d.ts +13 -0
- package/dist/matrix/partitionSelect.d.ts.map +1 -0
- package/dist/matrix/pinv.d.ts +51 -0
- package/dist/matrix/pinv.d.ts.map +1 -0
- package/dist/matrix/range.d.ts +27 -0
- package/dist/matrix/range.d.ts.map +1 -0
- package/dist/matrix/reshape.d.ts +8 -0
- package/dist/matrix/reshape.d.ts.map +1 -0
- package/dist/matrix/resize.d.ts +17 -0
- package/dist/matrix/resize.d.ts.map +1 -0
- package/dist/matrix/rotate.d.ts +7 -0
- package/dist/matrix/rotate.d.ts.map +1 -0
- package/dist/matrix/rotationMatrix.d.ts +17 -0
- package/dist/matrix/rotationMatrix.d.ts.map +1 -0
- package/dist/matrix/row.d.ts +22 -0
- package/dist/matrix/row.d.ts.map +1 -0
- package/dist/matrix/size.d.ts +9 -0
- package/dist/matrix/size.d.ts.map +1 -0
- package/dist/matrix/sort.d.ts +8 -0
- package/dist/matrix/sort.d.ts.map +1 -0
- package/dist/matrix/sqrtm.d.ts +33 -0
- package/dist/matrix/sqrtm.d.ts.map +1 -0
- package/dist/matrix/squeeze.d.ts +7 -0
- package/dist/matrix/squeeze.d.ts.map +1 -0
- package/dist/matrix/subset.d.ts +7 -0
- package/dist/matrix/subset.d.ts.map +1 -0
- package/dist/matrix/trace.d.ts +25 -0
- package/dist/matrix/trace.d.ts.map +1 -0
- package/dist/matrix/transpose.d.ts +45 -0
- package/dist/matrix/transpose.d.ts.map +1 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts +32 -0
- package/dist/matrix/utils/zerosAndOnes.d.ts.map +1 -0
- package/dist/matrix/zeros.d.ts +3 -0
- package/dist/matrix/zeros.d.ts.map +1 -0
- package/dist/numeric/solveODE.d.ts +2 -0
- package/dist/numeric/solveODE.d.ts.map +1 -0
- package/dist/plain/number/arithmetic.d.ts +168 -0
- package/dist/plain/number/arithmetic.d.ts.map +1 -0
- package/dist/plain/number/bitwise.d.ts +29 -0
- package/dist/plain/number/bitwise.d.ts.map +1 -0
- package/dist/plain/number/combinations.d.ts +5 -0
- package/dist/plain/number/combinations.d.ts.map +1 -0
- package/dist/plain/number/constants.d.ts +5 -0
- package/dist/plain/number/constants.d.ts.map +1 -0
- package/dist/plain/number/index.d.ts +10 -0
- package/dist/plain/number/index.d.ts.map +1 -0
- package/dist/plain/number/logical.d.ts +17 -0
- package/dist/plain/number/logical.d.ts.map +1 -0
- package/dist/plain/number/probability.d.ts +15 -0
- package/dist/plain/number/probability.d.ts.map +1 -0
- package/dist/plain/number/relational.d.ts +29 -0
- package/dist/plain/number/relational.d.ts.map +1 -0
- package/dist/plain/number/trigonometry.d.ts +101 -0
- package/dist/plain/number/trigonometry.d.ts.map +1 -0
- package/dist/plain/number/utils.d.ts +21 -0
- package/dist/plain/number/utils.d.ts.map +1 -0
- package/dist/probability/bernoulli.d.ts +19 -0
- package/dist/probability/bernoulli.d.ts.map +1 -0
- package/dist/probability/combinations.d.ts +7 -0
- package/dist/probability/combinations.d.ts.map +1 -0
- package/dist/probability/combinationsWithRep.d.ts +7 -0
- package/dist/probability/combinationsWithRep.d.ts.map +1 -0
- package/dist/probability/factorial.d.ts +8 -0
- package/dist/probability/factorial.d.ts.map +1 -0
- package/dist/probability/gamma.d.ts +45 -0
- package/dist/probability/gamma.d.ts.map +1 -0
- package/dist/probability/kldivergence.d.ts +18 -0
- package/dist/probability/kldivergence.d.ts.map +1 -0
- package/dist/probability/lgamma.d.ts +24 -0
- package/dist/probability/lgamma.d.ts.map +1 -0
- package/dist/probability/multinomial.d.ts +13 -0
- package/dist/probability/multinomial.d.ts.map +1 -0
- package/dist/probability/permutations.d.ts +8 -0
- package/dist/probability/permutations.d.ts.map +1 -0
- package/dist/probability/pickRandom.d.ts +10 -0
- package/dist/probability/pickRandom.d.ts.map +1 -0
- package/dist/probability/random.d.ts +11 -0
- package/dist/probability/random.d.ts.map +1 -0
- package/dist/probability/randomInt.d.ts +11 -0
- package/dist/probability/randomInt.d.ts.map +1 -0
- package/dist/probability/util/randomMatrix.d.ts +10 -0
- package/dist/probability/util/randomMatrix.d.ts.map +1 -0
- package/dist/probability/util/seededRNG.d.ts +4 -0
- package/dist/probability/util/seededRNG.d.ts.map +1 -0
- package/dist/relational/compare.d.ts +38 -0
- package/dist/relational/compare.d.ts.map +1 -0
- package/dist/relational/compareNatural.d.ts +8 -0
- package/dist/relational/compareNatural.d.ts.map +1 -0
- package/dist/relational/compareText.d.ts +15 -0
- package/dist/relational/compareText.d.ts.map +1 -0
- package/dist/relational/compareUnits.d.ts +9 -0
- package/dist/relational/compareUnits.d.ts.map +1 -0
- package/dist/relational/deepEqual.d.ts +8 -0
- package/dist/relational/deepEqual.d.ts.map +1 -0
- package/dist/relational/equal.d.ts +26 -0
- package/dist/relational/equal.d.ts.map +1 -0
- package/dist/relational/equalScalar.d.ts +11 -0
- package/dist/relational/equalScalar.d.ts.map +1 -0
- package/dist/relational/equalText.d.ts +9 -0
- package/dist/relational/equalText.d.ts.map +1 -0
- package/dist/relational/larger.d.ts +34 -0
- package/dist/relational/larger.d.ts.map +1 -0
- package/dist/relational/largerEq.d.ts +27 -0
- package/dist/relational/largerEq.d.ts.map +1 -0
- package/dist/relational/smaller.d.ts +34 -0
- package/dist/relational/smaller.d.ts.map +1 -0
- package/dist/relational/smallerEq.d.ts +27 -0
- package/dist/relational/smallerEq.d.ts.map +1 -0
- package/dist/relational/unequal.d.ts +28 -0
- package/dist/relational/unequal.d.ts.map +1 -0
- package/dist/set/setCartesian.d.ts +15 -0
- package/dist/set/setCartesian.d.ts.map +1 -0
- package/dist/set/setDifference.d.ts +15 -0
- package/dist/set/setDifference.d.ts.map +1 -0
- package/dist/set/setDistinct.d.ts +2 -0
- package/dist/set/setDistinct.d.ts.map +1 -0
- package/dist/set/setIntersect.d.ts +15 -0
- package/dist/set/setIntersect.d.ts.map +1 -0
- package/dist/set/setIsSubset.d.ts +2 -0
- package/dist/set/setIsSubset.d.ts.map +1 -0
- package/dist/set/setMultiplicity.d.ts +2 -0
- package/dist/set/setMultiplicity.d.ts.map +1 -0
- package/dist/set/setPowerset.d.ts +2 -0
- package/dist/set/setPowerset.d.ts.map +1 -0
- package/dist/set/setSize.d.ts +2 -0
- package/dist/set/setSize.d.ts.map +1 -0
- package/dist/set/setSymDifference.d.ts +15 -0
- package/dist/set/setSymDifference.d.ts.map +1 -0
- package/dist/set/setUnion.d.ts +16 -0
- package/dist/set/setUnion.d.ts.map +1 -0
- package/dist/signal/freqz.d.ts +2 -0
- package/dist/signal/freqz.d.ts.map +1 -0
- package/dist/signal/zpk2tf.d.ts +2 -0
- package/dist/signal/zpk2tf.d.ts.map +1 -0
- package/dist/special/erf.d.ts +7 -0
- package/dist/special/erf.d.ts.map +1 -0
- package/dist/special/zeta.d.ts +38 -0
- package/dist/special/zeta.d.ts.map +1 -0
- package/dist/statistics/corr.d.ts +18 -0
- package/dist/statistics/corr.d.ts.map +1 -0
- package/dist/statistics/cumsum.d.ts +9 -0
- package/dist/statistics/cumsum.d.ts.map +1 -0
- package/dist/statistics/mad.d.ts +11 -0
- package/dist/statistics/mad.d.ts.map +1 -0
- package/dist/statistics/max.d.ts +12 -0
- package/dist/statistics/max.d.ts.map +1 -0
- package/dist/statistics/mean.d.ts +9 -0
- package/dist/statistics/mean.d.ts.map +1 -0
- package/dist/statistics/median.d.ts +11 -0
- package/dist/statistics/median.d.ts.map +1 -0
- package/dist/statistics/min.d.ts +12 -0
- package/dist/statistics/min.d.ts.map +1 -0
- package/dist/statistics/mode.d.ts +9 -0
- package/dist/statistics/mode.d.ts.map +1 -0
- package/dist/statistics/prod.d.ts +12 -0
- package/dist/statistics/prod.d.ts.map +1 -0
- package/dist/statistics/quantileSeq.d.ts +26 -0
- package/dist/statistics/quantileSeq.d.ts.map +1 -0
- package/dist/statistics/std.d.ts +10 -0
- package/dist/statistics/std.d.ts.map +1 -0
- package/dist/statistics/sum.d.ts +12 -0
- package/dist/statistics/sum.d.ts.map +1 -0
- package/dist/statistics/utils/improveErrorMessage.d.ts +18 -0
- package/dist/statistics/utils/improveErrorMessage.d.ts.map +1 -0
- package/dist/statistics/variance.d.ts +13 -0
- package/dist/statistics/variance.d.ts.map +1 -0
- package/dist/string/bin.d.ts +36 -0
- package/dist/string/bin.d.ts.map +1 -0
- package/dist/string/format.d.ts +7 -0
- package/dist/string/format.d.ts.map +1 -0
- package/dist/string/hex.d.ts +35 -0
- package/dist/string/hex.d.ts.map +1 -0
- package/dist/string/oct.d.ts +36 -0
- package/dist/string/oct.d.ts.map +1 -0
- package/dist/string/print.d.ts +7 -0
- package/dist/string/print.d.ts.map +1 -0
- package/dist/trigonometry/acos.d.ts +16 -0
- package/dist/trigonometry/acos.d.ts.map +1 -0
- package/dist/trigonometry/acosh.d.ts +14 -0
- package/dist/trigonometry/acosh.d.ts.map +1 -0
- package/dist/trigonometry/acot.d.ts +12 -0
- package/dist/trigonometry/acot.d.ts.map +1 -0
- package/dist/trigonometry/acoth.d.ts +19 -0
- package/dist/trigonometry/acoth.d.ts.map +1 -0
- package/dist/trigonometry/acsc.d.ts +19 -0
- package/dist/trigonometry/acsc.d.ts.map +1 -0
- package/dist/trigonometry/acsch.d.ts +12 -0
- package/dist/trigonometry/acsch.d.ts.map +1 -0
- package/dist/trigonometry/asec.d.ts +19 -0
- package/dist/trigonometry/asec.d.ts.map +1 -0
- package/dist/trigonometry/asech.d.ts +19 -0
- package/dist/trigonometry/asech.d.ts.map +1 -0
- package/dist/trigonometry/asin.d.ts +16 -0
- package/dist/trigonometry/asin.d.ts.map +1 -0
- package/dist/trigonometry/asinh.d.ts +5 -0
- package/dist/trigonometry/asinh.d.ts.map +1 -0
- package/dist/trigonometry/atan.d.ts +7 -0
- package/dist/trigonometry/atan.d.ts.map +1 -0
- package/dist/trigonometry/atan2.d.ts +22 -0
- package/dist/trigonometry/atan2.d.ts.map +1 -0
- package/dist/trigonometry/atanh.d.ts +14 -0
- package/dist/trigonometry/atanh.d.ts.map +1 -0
- package/dist/trigonometry/cos.d.ts +7 -0
- package/dist/trigonometry/cos.d.ts.map +1 -0
- package/dist/trigonometry/cosh.d.ts +7 -0
- package/dist/trigonometry/cosh.d.ts.map +1 -0
- package/dist/trigonometry/cot.d.ts +12 -0
- package/dist/trigonometry/cot.d.ts.map +1 -0
- package/dist/trigonometry/coth.d.ts +12 -0
- package/dist/trigonometry/coth.d.ts.map +1 -0
- package/dist/trigonometry/csc.d.ts +12 -0
- package/dist/trigonometry/csc.d.ts.map +1 -0
- package/dist/trigonometry/csch.d.ts +12 -0
- package/dist/trigonometry/csch.d.ts.map +1 -0
- package/dist/trigonometry/sec.d.ts +12 -0
- package/dist/trigonometry/sec.d.ts.map +1 -0
- package/dist/trigonometry/sech.d.ts +12 -0
- package/dist/trigonometry/sech.d.ts.map +1 -0
- package/dist/trigonometry/sin.d.ts +7 -0
- package/dist/trigonometry/sin.d.ts.map +1 -0
- package/dist/trigonometry/sinh.d.ts +7 -0
- package/dist/trigonometry/sinh.d.ts.map +1 -0
- package/dist/trigonometry/tan.d.ts +7 -0
- package/dist/trigonometry/tan.d.ts.map +1 -0
- package/dist/trigonometry/tanh.d.ts +7 -0
- package/dist/trigonometry/tanh.d.ts.map +1 -0
- package/dist/trigonometry/trigUnit.d.ts +9 -0
- package/dist/trigonometry/trigUnit.d.ts.map +1 -0
- package/dist/type/bignumber/BigNumber.d.ts +46 -0
- package/dist/type/bignumber/BigNumber.d.ts.map +1 -0
- package/dist/type/chain/Chain.d.ts +58 -0
- package/dist/type/chain/Chain.d.ts.map +1 -0
- package/dist/type/chain/function/chain.d.ts +6 -0
- package/dist/type/chain/function/chain.d.ts.map +1 -0
- package/dist/type/complex/Complex.d.ts +74 -0
- package/dist/type/complex/Complex.d.ts.map +1 -0
- package/dist/type/local/Decimal.d.ts +223 -0
- package/dist/type/local/Decimal.d.ts.map +1 -0
- package/dist/type/matrix/FibonacciHeap.d.ts +59 -0
- package/dist/type/matrix/FibonacciHeap.d.ts.map +1 -0
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts +282 -0
- package/dist/type/matrix/ImmutableDenseMatrix.d.ts.map +1 -0
- package/dist/type/matrix/MatrixIndex.d.ts +386 -0
- package/dist/type/matrix/MatrixIndex.d.ts.map +1 -0
- package/dist/type/matrix/Spa.d.ts +40 -0
- package/dist/type/matrix/Spa.d.ts.map +1 -0
- package/dist/type/matrix/function/index.d.ts +11 -0
- package/dist/type/matrix/function/index.d.ts.map +1 -0
- package/dist/type/matrix/types.d.ts +435 -0
- package/dist/type/matrix/types.d.ts.map +1 -0
- package/dist/type/matrix/utils/broadcast.d.ts +18 -0
- package/dist/type/matrix/utils/broadcast.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo01xDSid.d.ts +34 -0
- package/dist/type/matrix/utils/matAlgo01xDSid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo02xDS0.d.ts +32 -0
- package/dist/type/matrix/utils/matAlgo02xDS0.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo03xDSf.d.ts +31 -0
- package/dist/type/matrix/utils/matAlgo03xDSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo04xSidSid.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo04xSidSid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo05xSfSf.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo05xSfSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo06xS0S0.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo06xS0S0.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo07xSSf.d.ts +26 -0
- package/dist/type/matrix/utils/matAlgo07xSSf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo08xS0Sid.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo08xS0Sid.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts +21 -0
- package/dist/type/matrix/utils/matAlgo09xS0Sf.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo10xSids.d.ts +33 -0
- package/dist/type/matrix/utils/matAlgo10xSids.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts +19 -0
- package/dist/type/matrix/utils/matAlgo11xS0s.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo12xSfs.d.ts +33 -0
- package/dist/type/matrix/utils/matAlgo12xSfs.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo13xDD.d.ts +20 -0
- package/dist/type/matrix/utils/matAlgo13xDD.d.ts.map +1 -0
- package/dist/type/matrix/utils/matAlgo14xDs.d.ts +19 -0
- package/dist/type/matrix/utils/matAlgo14xDs.d.ts.map +1 -0
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts +23 -0
- package/dist/type/matrix/utils/matrixAlgorithmSuite.d.ts.map +1 -0
- package/dist/type/resultset/ResultSet.d.ts +28 -0
- package/dist/type/resultset/ResultSet.d.ts.map +1 -0
- package/dist/type/unit/Unit.d.ts +13907 -0
- package/dist/type/unit/Unit.d.ts.map +1 -0
- package/dist/type/unit/function/createUnit.d.ts +40 -0
- package/dist/type/unit/function/createUnit.d.ts.map +1 -0
- package/dist/type/unit/function/splitUnit.d.ts +10 -0
- package/dist/type/unit/function/splitUnit.d.ts.map +1 -0
- package/dist/type/unit/function/unit.d.ts +27 -0
- package/dist/type/unit/function/unit.d.ts.map +1 -0
- package/dist/type/unit/physicalConstants.d.ts +89 -0
- package/dist/type/unit/physicalConstants.d.ts.map +1 -0
- package/dist/typed/algebra.d.ts +418 -0
- package/dist/typed/algebra.d.ts.map +1 -0
- package/dist/typed/arithmetic.d.ts +302 -0
- package/dist/typed/arithmetic.d.ts.map +1 -0
- package/dist/typed/bitwise.d.ts +48 -0
- package/dist/typed/bitwise.d.ts.map +1 -0
- package/dist/typed/cas.d.ts +691 -0
- package/dist/typed/cas.d.ts.map +1 -0
- package/dist/typed/combinatorics.d.ts +333 -0
- package/dist/typed/combinatorics.d.ts.map +1 -0
- package/dist/typed/complex.d.ts +91 -0
- package/dist/typed/complex.d.ts.map +1 -0
- package/dist/typed/dist-objects.d.ts +219 -0
- package/dist/typed/dist-objects.d.ts.map +1 -0
- package/dist/typed/distributions.d.ts +247 -0
- package/dist/typed/distributions.d.ts.map +1 -0
- package/dist/typed/geometry.d.ts +329 -0
- package/dist/typed/geometry.d.ts.map +1 -0
- package/dist/typed/gpu.d.ts +62 -0
- package/dist/typed/gpu.d.ts.map +1 -0
- package/dist/typed/graph.d.ts +339 -0
- package/dist/typed/graph.d.ts.map +1 -0
- package/dist/typed/hypothesis.d.ts +274 -0
- package/dist/typed/hypothesis.d.ts.map +1 -0
- package/dist/typed/index.d.ts +299 -0
- package/dist/typed/index.d.ts.map +1 -0
- package/dist/typed/integration.d.ts +219 -0
- package/dist/typed/integration.d.ts.map +1 -0
- package/dist/typed/interpolation.d.ts +189 -0
- package/dist/typed/interpolation.d.ts.map +1 -0
- package/dist/typed/logical.d.ts +87 -0
- package/dist/typed/logical.d.ts.map +1 -0
- package/dist/typed/matrix-ops.d.ts +303 -0
- package/dist/typed/matrix-ops.d.ts.map +1 -0
- package/dist/typed/numeric.d.ts +395 -0
- package/dist/typed/numeric.d.ts.map +1 -0
- package/dist/typed/probability.d.ts +165 -0
- package/dist/typed/probability.d.ts.map +1 -0
- package/dist/typed/relational.d.ts +136 -0
- package/dist/typed/relational.d.ts.map +1 -0
- package/dist/typed/set.d.ts +145 -0
- package/dist/typed/set.d.ts.map +1 -0
- package/dist/typed/signal.d.ts +427 -0
- package/dist/typed/signal.d.ts.map +1 -0
- package/dist/typed/special.d.ts +469 -0
- package/dist/typed/special.d.ts.map +1 -0
- package/dist/typed/statistics.d.ts +174 -0
- package/dist/typed/statistics.d.ts.map +1 -0
- package/dist/typed/string.d.ts +114 -0
- package/dist/typed/string.d.ts.map +1 -0
- package/dist/typed/trigonometry.d.ts +111 -0
- package/dist/typed/trigonometry.d.ts.map +1 -0
- package/dist/typed/typed-bridge.d.ts +6 -0
- package/dist/typed/typed-bridge.d.ts.map +1 -0
- package/dist/typed/unit.d.ts +60 -0
- package/dist/typed/unit.d.ts.map +1 -0
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/unit/to.d.ts +13 -0
- package/dist/unit/to.d.ts.map +1 -0
- package/dist/unit/toBest.d.ts +5 -0
- package/dist/unit/toBest.d.ts.map +1 -0
- package/dist/utils/array.d.ts +249 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/bigint.d.ts +18 -0
- package/dist/utils/bigint.d.ts.map +1 -0
- package/dist/utils/bignumber/bitwise.d.ts +99 -0
- package/dist/utils/bignumber/bitwise.d.ts.map +1 -0
- package/dist/utils/bignumber/constants.d.ts +25 -0
- package/dist/utils/bignumber/constants.d.ts.map +1 -0
- package/dist/utils/bignumber/formatter.d.ts +105 -0
- package/dist/utils/bignumber/formatter.d.ts.map +1 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts +18 -0
- package/dist/utils/bignumber/nearlyEqual.d.ts.map +1 -0
- package/dist/utils/clone.d.ts +7 -0
- package/dist/utils/clone.d.ts.map +1 -0
- package/dist/utils/collection.d.ts +67 -0
- package/dist/utils/collection.d.ts.map +1 -0
- package/dist/utils/complex.d.ts +11 -0
- package/dist/utils/complex.d.ts.map +1 -0
- package/dist/utils/customs.d.ts +51 -0
- package/dist/utils/customs.d.ts.map +1 -0
- package/dist/utils/emitter.d.ts +13 -0
- package/dist/utils/emitter.d.ts.map +1 -0
- package/dist/utils/factory.d.ts +112 -0
- package/dist/utils/factory.d.ts.map +1 -0
- package/dist/utils/function.d.ts +44 -0
- package/dist/utils/function.d.ts.map +1 -0
- package/dist/utils/hasNumericValue.d.ts +8 -0
- package/dist/utils/hasNumericValue.d.ts.map +1 -0
- package/dist/utils/is.d.ts +204 -0
- package/dist/utils/is.d.ts.map +1 -0
- package/dist/utils/isBounded.d.ts +6 -0
- package/dist/utils/isBounded.d.ts.map +1 -0
- package/dist/utils/isFinite.d.ts +10 -0
- package/dist/utils/isFinite.d.ts.map +1 -0
- package/dist/utils/isInteger.d.ts +8 -0
- package/dist/utils/isInteger.d.ts.map +1 -0
- package/dist/utils/isNaN.d.ts +7 -0
- package/dist/utils/isNaN.d.ts.map +1 -0
- package/dist/utils/isNegative.d.ts +9 -0
- package/dist/utils/isNegative.d.ts.map +1 -0
- package/dist/utils/isNumeric.d.ts +6 -0
- package/dist/utils/isNumeric.d.ts.map +1 -0
- package/dist/utils/isPositive.d.ts +9 -0
- package/dist/utils/isPositive.d.ts.map +1 -0
- package/dist/utils/isPrime.d.ts +7 -0
- package/dist/utils/isPrime.d.ts.map +1 -0
- package/dist/utils/isZero.d.ts +8 -0
- package/dist/utils/isZero.d.ts.map +1 -0
- package/dist/utils/log.d.ts +5 -0
- package/dist/utils/log.d.ts.map +1 -0
- package/dist/utils/lruQueue.d.ts +6 -0
- package/dist/utils/lruQueue.d.ts.map +1 -0
- package/dist/utils/map.d.ts +95 -0
- package/dist/utils/map.d.ts.map +1 -0
- package/dist/utils/node.d.ts +2 -0
- package/dist/utils/node.d.ts.map +1 -0
- package/dist/utils/noop.d.ts +6 -0
- package/dist/utils/noop.d.ts.map +1 -0
- package/dist/utils/number.d.ts +314 -0
- package/dist/utils/number.d.ts.map +1 -0
- package/dist/utils/numeric.d.ts +10 -0
- package/dist/utils/numeric.d.ts.map +1 -0
- package/dist/utils/object.d.ts +123 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/optimizeCallback.d.ts +22 -0
- package/dist/utils/optimizeCallback.d.ts.map +1 -0
- package/dist/utils/parseNumber.d.ts +2 -0
- package/dist/utils/parseNumber.d.ts.map +1 -0
- package/dist/utils/print.d.ts +2 -0
- package/dist/utils/print.d.ts.map +1 -0
- package/dist/utils/product.d.ts +6 -0
- package/dist/utils/product.d.ts.map +1 -0
- package/dist/utils/string.d.ts +66 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/switch.d.ts +8 -0
- package/dist/utils/switch.d.ts.map +1 -0
- package/dist/utils/typeOf.d.ts +7 -0
- package/dist/utils/typeOf.d.ts.map +1 -0
- package/dist/wasm/WasmLoader.d.ts +395 -0
- package/dist/wasm/WasmLoader.d.ts.map +1 -0
- package/dist/wasm/bitwise/wasm-bridge.d.ts +65 -0
- package/dist/wasm/bitwise/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/integrity.d.ts +48 -0
- package/dist/wasm/integrity.d.ts.map +1 -0
- package/dist/wasm/interpolation/wasm-bridge.d.ts +95 -0
- package/dist/wasm/interpolation/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/poly/wasm-bridge.d.ts +99 -0
- package/dist/wasm/poly/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/signal/wasm-bridge.d.ts +61 -0
- package/dist/wasm/signal/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/sort/wasm-bridge.d.ts +43 -0
- package/dist/wasm/sort/wasm-bridge.d.ts.map +1 -0
- package/dist/wasm/special/wasm-bridge.d.ts +133 -0
- package/dist/wasm/special/wasm-bridge.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed Special Functions
|
|
3
|
+
*
|
|
4
|
+
* Special mathematical functions using typed-function for runtime dispatch.
|
|
5
|
+
* Includes the error functions, beta/gamma functions, Bessel functions,
|
|
6
|
+
* elliptic integrals, orthogonal polynomials and integral functions.
|
|
7
|
+
*
|
|
8
|
+
* Each single-argument function has a `Float64Array` overload that evaluates
|
|
9
|
+
* the function across a whole array, parallelizing large inputs via the
|
|
10
|
+
* worker pool. Multi-argument functions take a `Float64Array` for their
|
|
11
|
+
* varying argument with the remaining parameters fixed.
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Complementary error function: erfc(x) = 1 - erf(x).
|
|
17
|
+
*
|
|
18
|
+
* @param x - Input value, or Float64Array of values
|
|
19
|
+
* @returns 1 - erf(x)
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* erfc(0) // 1
|
|
23
|
+
* erfc(1) // ~0.1573
|
|
24
|
+
*/
|
|
25
|
+
export declare const erfc: import("typed-function").TypedFunction;
|
|
26
|
+
/**
|
|
27
|
+
* Imaginary error function: erfi(x) = -i * erf(ix).
|
|
28
|
+
*
|
|
29
|
+
* @param x - Input value, or Float64Array of values
|
|
30
|
+
* @returns erfi(x)
|
|
31
|
+
*/
|
|
32
|
+
export declare const erfi: import("typed-function").TypedFunction;
|
|
33
|
+
/**
|
|
34
|
+
* Log-gamma function: lgamma(x) = log(|Γ(x)|).
|
|
35
|
+
*
|
|
36
|
+
* Poles at non-positive integers return +Infinity.
|
|
37
|
+
* Negative non-integer inputs use the reflection formula.
|
|
38
|
+
*
|
|
39
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
40
|
+
* WASM kernel (Rust via lgamma_f64, Slice 5.8; or AS via lgamma_f64_as).
|
|
41
|
+
*
|
|
42
|
+
* Reference values:
|
|
43
|
+
* lgamma(1) = 0
|
|
44
|
+
* lgamma(2) = 0
|
|
45
|
+
* lgamma(0.5) ≈ 0.5723649429247001 (ln(√π))
|
|
46
|
+
* lgamma(10) ≈ 12.801827480081469
|
|
47
|
+
* lgamma(100) ≈ 359.13420536957544
|
|
48
|
+
*
|
|
49
|
+
* @param x - Input value, or Float64Array of values
|
|
50
|
+
* @returns log(|Γ(x)|)
|
|
51
|
+
*/
|
|
52
|
+
export declare const lgamma: import("typed-function").TypedFunction;
|
|
53
|
+
/**
|
|
54
|
+
* Beta function: B(a, b) = Gamma(a) * Gamma(b) / Gamma(a + b).
|
|
55
|
+
*
|
|
56
|
+
* @param a - First parameter (positive), or Float64Array of values
|
|
57
|
+
* @param b - Second parameter (positive)
|
|
58
|
+
* @returns B(a, b)
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* beta(2, 3) // 1/12 ~ 0.08333
|
|
62
|
+
*/
|
|
63
|
+
export declare const beta: import("typed-function").TypedFunction;
|
|
64
|
+
/**
|
|
65
|
+
* Regularized lower incomplete gamma function P(a, x) = gamma(a, x) / Gamma(a).
|
|
66
|
+
*
|
|
67
|
+
* @param a - Shape parameter (positive)
|
|
68
|
+
* @param x - Integration upper limit, or Float64Array of limits
|
|
69
|
+
* @returns P(a, x)
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* gammainc(1, 1) // 1 - 1/e ~ 0.6321
|
|
73
|
+
*/
|
|
74
|
+
export declare const gammainc: import("typed-function").TypedFunction;
|
|
75
|
+
/**
|
|
76
|
+
* Upper (complementary) regularized incomplete gamma: Q(a, x) = 1 - P(a, x).
|
|
77
|
+
*
|
|
78
|
+
* @param a - Shape parameter (positive)
|
|
79
|
+
* @param x - Lower limit, or Float64Array of limits
|
|
80
|
+
* @returns Q(a, x)
|
|
81
|
+
*/
|
|
82
|
+
export declare const gammaincp: import("typed-function").TypedFunction;
|
|
83
|
+
/**
|
|
84
|
+
* Regularized incomplete beta function I_x(a, b).
|
|
85
|
+
*
|
|
86
|
+
* @param a - First parameter (positive)
|
|
87
|
+
* @param b - Second parameter (positive)
|
|
88
|
+
* @param x - Upper limit in [0, 1], or Float64Array of limits
|
|
89
|
+
* @returns I_x(a, b)
|
|
90
|
+
*/
|
|
91
|
+
export declare const betainc: import("typed-function").TypedFunction;
|
|
92
|
+
/**
|
|
93
|
+
* Digamma function: psi(x) = d/dx ln(Gamma(x)).
|
|
94
|
+
*
|
|
95
|
+
* @param x - Input value, or Float64Array of values
|
|
96
|
+
* @returns psi(x)
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* digamma(1) // -gamma ~ -0.5772
|
|
100
|
+
*/
|
|
101
|
+
export declare const digamma: import("typed-function").TypedFunction;
|
|
102
|
+
/**
|
|
103
|
+
* Bessel function of the first kind, order 0: J0(x).
|
|
104
|
+
*
|
|
105
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
106
|
+
* WASM kernel (Rust via bessel_j0_f64, Slice 3.10c-1); smaller inputs and
|
|
107
|
+
* scalars use the inline JS approximation.
|
|
108
|
+
*
|
|
109
|
+
* @param x - Input value, or Float64Array of values
|
|
110
|
+
* @returns J0(x)
|
|
111
|
+
*/
|
|
112
|
+
export declare const besselJ0: import("typed-function").TypedFunction;
|
|
113
|
+
/**
|
|
114
|
+
* Bessel function of the first kind, order 1: J1(x).
|
|
115
|
+
*
|
|
116
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
117
|
+
* WASM kernel (Rust via bessel_j1_f64, Slice 3.10c-1).
|
|
118
|
+
*
|
|
119
|
+
* @param x - Input value, or Float64Array of values
|
|
120
|
+
* @returns J1(x)
|
|
121
|
+
*/
|
|
122
|
+
export declare const besselJ1: import("typed-function").TypedFunction;
|
|
123
|
+
/**
|
|
124
|
+
* Bessel function of the second kind, order 0: Y0(x).
|
|
125
|
+
*
|
|
126
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
127
|
+
* WASM kernel (Rust via bessel_y0_f64, Slice 3.10c-1).
|
|
128
|
+
*
|
|
129
|
+
* @param x - Input value (must be positive), or Float64Array of values
|
|
130
|
+
* @returns Y0(x)
|
|
131
|
+
*/
|
|
132
|
+
export declare const besselY0: import("typed-function").TypedFunction;
|
|
133
|
+
/**
|
|
134
|
+
* Bessel function of the second kind, order 1: Y1(x).
|
|
135
|
+
*
|
|
136
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
137
|
+
* WASM kernel (Rust via bessel_y1_f64, Slice 3.10c-1).
|
|
138
|
+
*
|
|
139
|
+
* @param x - Input value (must be positive), or Float64Array of values
|
|
140
|
+
* @returns Y1(x)
|
|
141
|
+
*/
|
|
142
|
+
export declare const besselY1: import("typed-function").TypedFunction;
|
|
143
|
+
/**
|
|
144
|
+
* Bessel function of the first kind, general integer order n: J_n(x).
|
|
145
|
+
*
|
|
146
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
147
|
+
* WASM kernel (Rust via bessel_j_f64, Slice 3.10c-1).
|
|
148
|
+
*
|
|
149
|
+
* @param n - Order (integer)
|
|
150
|
+
* @param x - Input value, or Float64Array of values
|
|
151
|
+
* @returns J_n(x)
|
|
152
|
+
*/
|
|
153
|
+
export declare const besselJ: import("typed-function").TypedFunction;
|
|
154
|
+
/**
|
|
155
|
+
* Bessel function of the second kind, general integer order n: Y_n(x).
|
|
156
|
+
*
|
|
157
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
158
|
+
* WASM kernel (Rust via bessel_y_f64, Slice 3.10c-1).
|
|
159
|
+
*
|
|
160
|
+
* @param n - Order (integer)
|
|
161
|
+
* @param x - Input value (must be positive), or Float64Array of values
|
|
162
|
+
* @returns Y_n(x)
|
|
163
|
+
*/
|
|
164
|
+
export declare const besselY: import("typed-function").TypedFunction;
|
|
165
|
+
/**
|
|
166
|
+
* Modified Bessel function of the first kind, I_n(x).
|
|
167
|
+
*
|
|
168
|
+
* @param n - Order (integer)
|
|
169
|
+
* @param x - Input value, or Float64Array of values
|
|
170
|
+
* @returns I_n(x)
|
|
171
|
+
*/
|
|
172
|
+
export declare const besselI: import("typed-function").TypedFunction;
|
|
173
|
+
/**
|
|
174
|
+
* Modified Bessel function of the second kind, K_n(x).
|
|
175
|
+
*
|
|
176
|
+
* @param n - Order (integer)
|
|
177
|
+
* @param x - Input value (must be positive), or Float64Array of values
|
|
178
|
+
* @returns K_n(x)
|
|
179
|
+
*/
|
|
180
|
+
export declare const besselK: import("typed-function").TypedFunction;
|
|
181
|
+
/**
|
|
182
|
+
* Complete elliptic integral of the first kind K(m).
|
|
183
|
+
*
|
|
184
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
185
|
+
* WASM kernel (Rust via elliptic_k_f64, Slice 5.3; or AS via elliptic_k_f64_as).
|
|
186
|
+
*
|
|
187
|
+
* Algorithm: AGM (arithmetic-geometric mean) — K = π / (2·agm(1, √(1−m))).
|
|
188
|
+
* Converges quadratically; ~10 iterations for full f64 precision.
|
|
189
|
+
*
|
|
190
|
+
* Domain: m ∈ [0, 1). K(1) = +∞. m < 0 or m > 1 → NaN.
|
|
191
|
+
*
|
|
192
|
+
* Reference values (DLMF §19.6):
|
|
193
|
+
* K(0) = π/2 ≈ 1.5707963267948966
|
|
194
|
+
* K(0.5) ≈ 1.8540746773013719
|
|
195
|
+
* K(0.99) ≈ 3.6956373629898747
|
|
196
|
+
*
|
|
197
|
+
* @param m - Parameter (0 <= m < 1), or Float64Array of parameters
|
|
198
|
+
* @returns K(m)
|
|
199
|
+
*/
|
|
200
|
+
export declare const ellipticK: import("typed-function").TypedFunction;
|
|
201
|
+
/**
|
|
202
|
+
* Elliptic integral of the second kind E(phi, m) or complete form E(m).
|
|
203
|
+
*
|
|
204
|
+
* With one number argument, returns the complete integral E(m).
|
|
205
|
+
* With a Float64Array, dispatches the complete integral E(m) across the array.
|
|
206
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) use the WASM kernel
|
|
207
|
+
* (Rust via elliptic_e_f64, Slice 5.3; or AS via elliptic_e_f64_as).
|
|
208
|
+
*
|
|
209
|
+
* Algorithm: Carlson-Bulirsch AGM variant (complete form).
|
|
210
|
+
* Domain: m ∈ [0, 1]. E(0) = π/2, E(1) = 1. m < 0 or m > 1 → NaN.
|
|
211
|
+
*
|
|
212
|
+
* Reference values (DLMF §19.6):
|
|
213
|
+
* E(0) = π/2 ≈ 1.5707963267948966
|
|
214
|
+
* E(0.5) ≈ 1.3506438810476755
|
|
215
|
+
* E(1) = 1.0
|
|
216
|
+
*
|
|
217
|
+
* @param phi - Amplitude (radians), or Float64Array of m-values for complete form
|
|
218
|
+
* @param m - Parameter (0 <= m <= 1)
|
|
219
|
+
* @returns E(phi, m), or E(m) for the single-argument / array form
|
|
220
|
+
*/
|
|
221
|
+
export declare const ellipticE: import("typed-function").TypedFunction;
|
|
222
|
+
/**
|
|
223
|
+
* Chebyshev polynomial of the first kind T_n(x).
|
|
224
|
+
*
|
|
225
|
+
* @param n - Degree
|
|
226
|
+
* @param x - Input value, or Float64Array of values
|
|
227
|
+
* @returns T_n(x)
|
|
228
|
+
*/
|
|
229
|
+
export declare const chebyshevT: import("typed-function").TypedFunction;
|
|
230
|
+
/**
|
|
231
|
+
* Hermite polynomial H_n(x) (physicist's convention).
|
|
232
|
+
*
|
|
233
|
+
* @param n - Degree
|
|
234
|
+
* @param x - Input value, or Float64Array of values
|
|
235
|
+
* @returns H_n(x)
|
|
236
|
+
*/
|
|
237
|
+
export declare const hermiteH: import("typed-function").TypedFunction;
|
|
238
|
+
/**
|
|
239
|
+
* Laguerre polynomial L_n(x).
|
|
240
|
+
*
|
|
241
|
+
* @param n - Degree
|
|
242
|
+
* @param x - Input value, or Float64Array of values
|
|
243
|
+
* @returns L_n(x)
|
|
244
|
+
*/
|
|
245
|
+
export declare const laguerreL: import("typed-function").TypedFunction;
|
|
246
|
+
/**
|
|
247
|
+
* Legendre polynomial P_n(x).
|
|
248
|
+
*
|
|
249
|
+
* @param n - Degree
|
|
250
|
+
* @param x - Input value in [-1, 1], or Float64Array of values
|
|
251
|
+
* @returns P_n(x)
|
|
252
|
+
*/
|
|
253
|
+
export declare const legendreP: import("typed-function").TypedFunction;
|
|
254
|
+
/**
|
|
255
|
+
* Lambert W function (principal branch W_0).
|
|
256
|
+
*
|
|
257
|
+
* @param x - Input value (>= -1/e), or Float64Array of values
|
|
258
|
+
* @returns W_0(x)
|
|
259
|
+
*
|
|
260
|
+
* @example
|
|
261
|
+
* lambertW(1) // ~0.5671 (omega constant)
|
|
262
|
+
*/
|
|
263
|
+
export declare const lambertW: import("typed-function").TypedFunction;
|
|
264
|
+
/**
|
|
265
|
+
* Cosine integral Ci(x).
|
|
266
|
+
*
|
|
267
|
+
* @param x - Input value (positive), or Float64Array of values
|
|
268
|
+
* @returns Ci(x)
|
|
269
|
+
*/
|
|
270
|
+
export declare const cosIntegral: import("typed-function").TypedFunction;
|
|
271
|
+
/**
|
|
272
|
+
* Sine integral Si(x).
|
|
273
|
+
*
|
|
274
|
+
* @param x - Input value, or Float64Array of values
|
|
275
|
+
* @returns Si(x)
|
|
276
|
+
*/
|
|
277
|
+
export declare const sinIntegral: import("typed-function").TypedFunction;
|
|
278
|
+
/**
|
|
279
|
+
* Logarithmic integral li(x) = Ei(ln(x)).
|
|
280
|
+
*
|
|
281
|
+
* @param x - Input value (> 0, != 1), or Float64Array of values
|
|
282
|
+
* @returns li(x)
|
|
283
|
+
*/
|
|
284
|
+
export declare const logIntegral: import("typed-function").TypedFunction;
|
|
285
|
+
/**
|
|
286
|
+
* Exponential integral Ei(x).
|
|
287
|
+
*
|
|
288
|
+
* @param x - Input value (x != 0), or Float64Array of values
|
|
289
|
+
* @returns Ei(x)
|
|
290
|
+
*/
|
|
291
|
+
export declare const expIntegralEi: import("typed-function").TypedFunction;
|
|
292
|
+
/**
|
|
293
|
+
* Fresnel cosine integral C(x) = integral_0^x cos(pi*t^2/2) dt.
|
|
294
|
+
*
|
|
295
|
+
* @param x - Input value, or Float64Array of values
|
|
296
|
+
* @returns C(x)
|
|
297
|
+
*/
|
|
298
|
+
export declare const fresnelC: import("typed-function").TypedFunction;
|
|
299
|
+
/**
|
|
300
|
+
* Fresnel sine integral S(x) = integral_0^x sin(pi*t^2/2) dt.
|
|
301
|
+
*
|
|
302
|
+
* @param x - Input value, or Float64Array of values
|
|
303
|
+
* @returns S(x)
|
|
304
|
+
*/
|
|
305
|
+
export declare const fresnelS: import("typed-function").TypedFunction;
|
|
306
|
+
/**
|
|
307
|
+
* Airy function of the first kind Ai(x).
|
|
308
|
+
*
|
|
309
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
310
|
+
* WASM kernel (Rust via airy_ai_f64, Slice 4.9; or AS via airy_ai_f64_as).
|
|
311
|
+
*
|
|
312
|
+
* Algorithm:
|
|
313
|
+
* - |x| ≤ 4.5: power series (DLMF §9.2.2) — ~1e-10 relative error
|
|
314
|
+
* - x > 4.5: decaying asymptotic exp(−ζ)/... (DLMF §9.7.3) — ~1e-7
|
|
315
|
+
* - x < −4.5: oscillatory asymptotic sin/cos (DLMF §9.7.5) — ~1e-7
|
|
316
|
+
*
|
|
317
|
+
* Reference values (DLMF §9.2):
|
|
318
|
+
* Ai(0) ≈ 0.355028053887817
|
|
319
|
+
* Ai(1) ≈ 0.135292416312881
|
|
320
|
+
* Ai(−1) ≈ 0.535560883292352
|
|
321
|
+
*
|
|
322
|
+
* @param x - Input value, or Float64Array of values
|
|
323
|
+
* @returns Ai(x)
|
|
324
|
+
*/
|
|
325
|
+
export declare const airyAi: import("typed-function").TypedFunction;
|
|
326
|
+
/**
|
|
327
|
+
* Airy function of the second kind Bi(x).
|
|
328
|
+
*
|
|
329
|
+
* Arrays of length ≥ WASM_SPECIAL_THRESHOLD (1024) are dispatched to the
|
|
330
|
+
* WASM kernel (Rust via airy_bi_f64, Slice 4.9; or AS via airy_bi_f64_as).
|
|
331
|
+
*
|
|
332
|
+
* Reference values (DLMF §9.2):
|
|
333
|
+
* Bi(0) ≈ 0.614926627446001
|
|
334
|
+
* Bi(1) ≈ 1.207423594952871
|
|
335
|
+
* Bi(−1) ≈ 0.103997389496945
|
|
336
|
+
*
|
|
337
|
+
* @param x - Input value, or Float64Array of values
|
|
338
|
+
* @returns Bi(x)
|
|
339
|
+
*/
|
|
340
|
+
export declare const airyBi: import("typed-function").TypedFunction;
|
|
341
|
+
/**
|
|
342
|
+
* Carlson degenerate symmetric integral RC(x, y).
|
|
343
|
+
*
|
|
344
|
+
* RC(x, y) = ∫_0^∞ dt / ((t+x)^{1/2} (t+y))
|
|
345
|
+
*
|
|
346
|
+
* Identities: RC(0, 1) = π/2; RC(1, 1) = 1.
|
|
347
|
+
*
|
|
348
|
+
* Reference: DLMF §19.16.6; Numerical Recipes §6.11.
|
|
349
|
+
*
|
|
350
|
+
* @param x - First argument (≥ 0), or Float64Array of values
|
|
351
|
+
* @param y - Second argument (≠ 0), or Float64Array of values
|
|
352
|
+
*/
|
|
353
|
+
export declare const carlsonRC: import("typed-function").TypedFunction;
|
|
354
|
+
/**
|
|
355
|
+
* Carlson symmetric integral RF(x, y, z).
|
|
356
|
+
*
|
|
357
|
+
* RF(x, y, z) = (1/2) ∫_0^∞ dt / (√(t+x)·√(t+y)·√(t+z))
|
|
358
|
+
*
|
|
359
|
+
* Symmetry: RF is symmetric in all three arguments.
|
|
360
|
+
* Identity: RF(0, 1, 2) ≈ 1.3110287771461...
|
|
361
|
+
*
|
|
362
|
+
* Reference: DLMF §19.16.1; Numerical Recipes §6.11.
|
|
363
|
+
*/
|
|
364
|
+
export declare const carlsonRF: import("typed-function").TypedFunction;
|
|
365
|
+
/**
|
|
366
|
+
* Carlson symmetric integral RD(x, y, z).
|
|
367
|
+
*
|
|
368
|
+
* RD(x, y, z) = (3/2) ∫_0^∞ dt / (√(t+x)·√(t+y)·(t+z)^{3/2})
|
|
369
|
+
*
|
|
370
|
+
* Identity: RD(0, 2, 1) ≈ 1.7972103521033...
|
|
371
|
+
*
|
|
372
|
+
* Reference: DLMF §19.16.5; Numerical Recipes §6.11.
|
|
373
|
+
*/
|
|
374
|
+
export declare const carlsonRD: import("typed-function").TypedFunction;
|
|
375
|
+
/**
|
|
376
|
+
* Carlson symmetric integral RJ(x, y, z, p).
|
|
377
|
+
*
|
|
378
|
+
* RJ(x, y, z, p) = (3/2) ∫_0^∞ dt / ((t+p)·√(t+x)·√(t+y)·√(t+z))
|
|
379
|
+
*
|
|
380
|
+
* Reference: DLMF §19.16.2; Numerical Recipes §6.11.
|
|
381
|
+
*/
|
|
382
|
+
export declare const carlsonRJ: import("typed-function").TypedFunction;
|
|
383
|
+
/**
|
|
384
|
+
* Incomplete elliptic integral of the first kind F(φ, m).
|
|
385
|
+
*
|
|
386
|
+
* F(φ, m) = ∫_0^φ dθ / √(1 − m·sin²θ)
|
|
387
|
+
*
|
|
388
|
+
* Implemented via F(φ, m) = sin(φ)·RF(cos²φ, 1−m·sin²φ, 1) (DLMF §19.25.5).
|
|
389
|
+
*
|
|
390
|
+
* Special cases: F(0, m) = 0; F(π/2, m) = K(m).
|
|
391
|
+
*
|
|
392
|
+
* Reference values (DLMF §19.6): F(π/2, 0.5) = K(0.5) ≈ 1.8540746773013719.
|
|
393
|
+
*
|
|
394
|
+
* @param phi - Amplitude in [0, π/2]
|
|
395
|
+
* @param m - Parameter in [0, 1)
|
|
396
|
+
*/
|
|
397
|
+
export declare const ellipticF: import("typed-function").TypedFunction;
|
|
398
|
+
/**
|
|
399
|
+
* Incomplete elliptic integral of the second kind E(φ, m) — Carlson form.
|
|
400
|
+
*
|
|
401
|
+
* E(φ, m) = ∫_0^φ √(1 − m·sin²θ) dθ
|
|
402
|
+
*
|
|
403
|
+
* Implemented via Carlson forms (DLMF §19.25.7):
|
|
404
|
+
* E(φ, m) = sin(φ)·RF(c², 1−m·s², 1) − (m/3)·s³·RD(c², 1−m·s², 1)
|
|
405
|
+
*
|
|
406
|
+
* Special cases: E(0, m) = 0; E(π/2, m) = E(m) (complete second kind).
|
|
407
|
+
*
|
|
408
|
+
* Named `ellipticEIncomplete` to distinguish from the existing `ellipticE`
|
|
409
|
+
* export which handles both the complete form (1-arg) and the Simpson
|
|
410
|
+
* 2-arg form.
|
|
411
|
+
*/
|
|
412
|
+
export declare const ellipticEIncomplete: import("typed-function").TypedFunction;
|
|
413
|
+
/**
|
|
414
|
+
* Incomplete elliptic integral of the third kind Π(n, φ, m).
|
|
415
|
+
*
|
|
416
|
+
* Π(n, φ, m) = ∫_0^φ dθ / ((1 − n·sin²θ)·√(1 − m·sin²θ))
|
|
417
|
+
*
|
|
418
|
+
* Implemented via Carlson forms (DLMF §19.25.9):
|
|
419
|
+
* Π(n, φ, m) = sin(φ)·RF(c², 1−m·s², 1) + (n/3)·s³·RJ(c², 1−m·s², 1, 1−n·s²)
|
|
420
|
+
*
|
|
421
|
+
* Special cases: Π(n, 0, m) = 0; Π(n, π/2, m) = Π(n, m) (complete third kind).
|
|
422
|
+
*
|
|
423
|
+
* Reference: DLMF §19.6, Abramowitz & Stegun §17.7.
|
|
424
|
+
*/
|
|
425
|
+
export declare const ellipticPi: import("typed-function").TypedFunction;
|
|
426
|
+
/**
|
|
427
|
+
* All typed special functions.
|
|
428
|
+
*/
|
|
429
|
+
export declare const typedSpecial: {
|
|
430
|
+
erfc: import("typed-function").TypedFunction;
|
|
431
|
+
lgamma: import("typed-function").TypedFunction;
|
|
432
|
+
beta: import("typed-function").TypedFunction;
|
|
433
|
+
gammainc: import("typed-function").TypedFunction;
|
|
434
|
+
digamma: import("typed-function").TypedFunction;
|
|
435
|
+
besselJ0: import("typed-function").TypedFunction;
|
|
436
|
+
besselJ1: import("typed-function").TypedFunction;
|
|
437
|
+
besselY0: import("typed-function").TypedFunction;
|
|
438
|
+
besselY1: import("typed-function").TypedFunction;
|
|
439
|
+
besselJ: import("typed-function").TypedFunction;
|
|
440
|
+
besselY: import("typed-function").TypedFunction;
|
|
441
|
+
besselI: import("typed-function").TypedFunction;
|
|
442
|
+
besselK: import("typed-function").TypedFunction;
|
|
443
|
+
betainc: import("typed-function").TypedFunction;
|
|
444
|
+
gammaincp: import("typed-function").TypedFunction;
|
|
445
|
+
ellipticK: import("typed-function").TypedFunction;
|
|
446
|
+
ellipticE: import("typed-function").TypedFunction;
|
|
447
|
+
chebyshevT: import("typed-function").TypedFunction;
|
|
448
|
+
hermiteH: import("typed-function").TypedFunction;
|
|
449
|
+
laguerreL: import("typed-function").TypedFunction;
|
|
450
|
+
legendreP: import("typed-function").TypedFunction;
|
|
451
|
+
lambertW: import("typed-function").TypedFunction;
|
|
452
|
+
erfi: import("typed-function").TypedFunction;
|
|
453
|
+
cosIntegral: import("typed-function").TypedFunction;
|
|
454
|
+
sinIntegral: import("typed-function").TypedFunction;
|
|
455
|
+
logIntegral: import("typed-function").TypedFunction;
|
|
456
|
+
expIntegralEi: import("typed-function").TypedFunction;
|
|
457
|
+
fresnelC: import("typed-function").TypedFunction;
|
|
458
|
+
fresnelS: import("typed-function").TypedFunction;
|
|
459
|
+
airyAi: import("typed-function").TypedFunction;
|
|
460
|
+
airyBi: import("typed-function").TypedFunction;
|
|
461
|
+
carlsonRC: import("typed-function").TypedFunction;
|
|
462
|
+
carlsonRF: import("typed-function").TypedFunction;
|
|
463
|
+
carlsonRD: import("typed-function").TypedFunction;
|
|
464
|
+
carlsonRJ: import("typed-function").TypedFunction;
|
|
465
|
+
ellipticF: import("typed-function").TypedFunction;
|
|
466
|
+
ellipticEIncomplete: import("typed-function").TypedFunction;
|
|
467
|
+
ellipticPi: import("typed-function").TypedFunction;
|
|
468
|
+
};
|
|
469
|
+
//# sourceMappingURL=special.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"special.d.ts","sourceRoot":"","sources":["../../src/typed/special.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AAohCH;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,wCAIf,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,IAAI,wCAIf,CAAC;AAMH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,wCAQjB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,IAAI,wCAQf,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,wCAQnB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,wCASpB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,wCAQlB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,wCAIlB,CAAC;AAMH;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,wCAUnB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,wCAUnB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,wCAUnB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,wCAUnB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,wCAgBlB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO,wCAgBlB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,wCAQlB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,wCAYlB,CAAC;AAMH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,wCAUpB,CAAC;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,wCAWpB,CAAC;AAMH;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,wCAQrB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,wCAQnB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,wCAQpB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,wCAQpB,CAAC;AAMH;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,wCAInB,CAAC;AAMH;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wCAMtB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wCAMtB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wCAMtB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,aAAa,wCAMxB,CAAC;AAMH;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAInB,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,wCAInB,CAAC;AAMH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,wCAQjB,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM,wCAQjB,CAAC;AAUH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,wCAMpB,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,wCAMpB,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,wCAMpB,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,wCAMpB,CAAC;AAYH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,wCAMpB,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,wCAM9B,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,wCAMrB,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCxB,CAAC"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed Statistics Functions (Parallel-First)
|
|
3
|
+
*
|
|
4
|
+
* AssemblyScript-friendly TypeScript implementations with typed-function
|
|
5
|
+
* integration and workerpool parallel execution.
|
|
6
|
+
*
|
|
7
|
+
* Following the parallel-first philosophy per CLAUDE.md:
|
|
8
|
+
* - Use workers for ALL array transformations (Float64Array)
|
|
9
|
+
* - Use workers for ALL numerical computations that can be batched
|
|
10
|
+
* - Only fall back to sequential for trivial scalar operations
|
|
11
|
+
*
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
/** 64-bit float (default for decimals) */
|
|
15
|
+
type f64 = number;
|
|
16
|
+
/** 32-bit signed integer */
|
|
17
|
+
type i32 = number;
|
|
18
|
+
/**
|
|
19
|
+
* Normalization type for variance computation
|
|
20
|
+
*/
|
|
21
|
+
export type NormalizationType = 'unbiased' | 'uncorrected' | 'biased';
|
|
22
|
+
/**
|
|
23
|
+
* Parallel sum with typed-function dispatch
|
|
24
|
+
*/
|
|
25
|
+
export declare const parallelStatSum: import("typed-function").TypedFunction;
|
|
26
|
+
/**
|
|
27
|
+
* Parallel mean with typed-function dispatch
|
|
28
|
+
*/
|
|
29
|
+
export declare const parallelStatMean: import("typed-function").TypedFunction;
|
|
30
|
+
/**
|
|
31
|
+
* Parallel variance with typed-function dispatch
|
|
32
|
+
*
|
|
33
|
+
* Uses Welford's algorithm for numerical stability
|
|
34
|
+
*/
|
|
35
|
+
export declare const parallelStatVariance: import("typed-function").TypedFunction;
|
|
36
|
+
/**
|
|
37
|
+
* Parallel standard deviation with typed-function dispatch
|
|
38
|
+
*/
|
|
39
|
+
export declare const parallelStatStd: import("typed-function").TypedFunction;
|
|
40
|
+
/**
|
|
41
|
+
* Parallel minimum with typed-function dispatch
|
|
42
|
+
*/
|
|
43
|
+
export declare const parallelStatMin: import("typed-function").TypedFunction;
|
|
44
|
+
/**
|
|
45
|
+
* Parallel maximum with typed-function dispatch
|
|
46
|
+
*/
|
|
47
|
+
export declare const parallelStatMax: import("typed-function").TypedFunction;
|
|
48
|
+
/**
|
|
49
|
+
* Parallel minmax with typed-function dispatch
|
|
50
|
+
* Returns both min and max in a single pass
|
|
51
|
+
*/
|
|
52
|
+
export declare const parallelStatMinMax: import("typed-function").TypedFunction;
|
|
53
|
+
/**
|
|
54
|
+
* Parallel median with typed-function dispatch
|
|
55
|
+
*
|
|
56
|
+
* Note: Median requires sorting which is O(n log n)
|
|
57
|
+
*/
|
|
58
|
+
export declare const parallelStatMedian: import("typed-function").TypedFunction;
|
|
59
|
+
/**
|
|
60
|
+
* Parallel mode with typed-function dispatch
|
|
61
|
+
* Returns the most frequently occurring value(s)
|
|
62
|
+
*/
|
|
63
|
+
export declare const parallelStatMode: import("typed-function").TypedFunction;
|
|
64
|
+
/**
|
|
65
|
+
* Parallel product with typed-function dispatch
|
|
66
|
+
*/
|
|
67
|
+
export declare const parallelStatProd: import("typed-function").TypedFunction;
|
|
68
|
+
/**
|
|
69
|
+
* Parallel Euclidean norm (L2 norm) with typed-function dispatch
|
|
70
|
+
*/
|
|
71
|
+
export declare const parallelStatNorm: import("typed-function").TypedFunction;
|
|
72
|
+
/**
|
|
73
|
+
* Parallel Euclidean distance with typed-function dispatch
|
|
74
|
+
*/
|
|
75
|
+
export declare const parallelStatDistance: import("typed-function").TypedFunction;
|
|
76
|
+
/**
|
|
77
|
+
* Parallel Pearson correlation coefficient
|
|
78
|
+
*/
|
|
79
|
+
export declare const parallelStatCorr: import("typed-function").TypedFunction;
|
|
80
|
+
/**
|
|
81
|
+
* Parallel Mean Absolute Deviation
|
|
82
|
+
*/
|
|
83
|
+
export declare const parallelStatMAD: import("typed-function").TypedFunction;
|
|
84
|
+
/**
|
|
85
|
+
* Parallel cumulative sum
|
|
86
|
+
*/
|
|
87
|
+
export declare const parallelStatCumsum: import("typed-function").TypedFunction;
|
|
88
|
+
/**
|
|
89
|
+
* Parallel quantile computation
|
|
90
|
+
*/
|
|
91
|
+
export declare const parallelStatQuantile: import("typed-function").TypedFunction;
|
|
92
|
+
/**
|
|
93
|
+
* Compute the p-th percentile of a Float64Array.
|
|
94
|
+
*
|
|
95
|
+
* Identical to `parallelStatQuantile(data, p / 100)`.
|
|
96
|
+
* Uses WASM sort acceleration above WASM_SORT_THRESHOLD elements.
|
|
97
|
+
*
|
|
98
|
+
* @param data - Input data array.
|
|
99
|
+
* @param p - Percentile in [0, 100].
|
|
100
|
+
*/
|
|
101
|
+
export declare function parallelStatPercentile(data: Float64Array, p: f64): f64;
|
|
102
|
+
/**
|
|
103
|
+
* Parallel histogram computation
|
|
104
|
+
*/
|
|
105
|
+
export declare const parallelStatHistogram: import("typed-function").TypedFunction;
|
|
106
|
+
/**
|
|
107
|
+
* Select the k-th smallest element from an array using Hoare's quickselect algorithm.
|
|
108
|
+
* Average O(n) time complexity.
|
|
109
|
+
*
|
|
110
|
+
* @param arr - Input array (not modified)
|
|
111
|
+
* @param k - Zero-based index of the desired order statistic
|
|
112
|
+
* @returns The k-th smallest element
|
|
113
|
+
*/
|
|
114
|
+
export declare function quickSelect(arr: number[], k: i32): f64;
|
|
115
|
+
/**
|
|
116
|
+
* Find the median of an array in O(n) average time using quickselect.
|
|
117
|
+
*
|
|
118
|
+
* @param arr - Input array (not modified)
|
|
119
|
+
* @returns The median value
|
|
120
|
+
*/
|
|
121
|
+
export declare function medianSelect(arr: number[]): f64;
|
|
122
|
+
/**
|
|
123
|
+
* Find the k smallest elements from an array.
|
|
124
|
+
*
|
|
125
|
+
* @param arr - Input array (not modified)
|
|
126
|
+
* @param k - Number of smallest elements to return
|
|
127
|
+
* @returns Array of k smallest elements, sorted ascending
|
|
128
|
+
*/
|
|
129
|
+
export declare function minSelect(arr: number[], k: i32): number[];
|
|
130
|
+
/**
|
|
131
|
+
* Find the k largest elements from an array.
|
|
132
|
+
*
|
|
133
|
+
* @param arr - Input array (not modified)
|
|
134
|
+
* @param k - Number of largest elements to return
|
|
135
|
+
* @returns Array of k largest elements, sorted descending
|
|
136
|
+
*/
|
|
137
|
+
export declare function maxSelect(arr: number[], k: i32): number[];
|
|
138
|
+
/**
|
|
139
|
+
* Primary export: typed statistics functions
|
|
140
|
+
*/
|
|
141
|
+
export declare const typedStatistics: {
|
|
142
|
+
sum: import("typed-function").TypedFunction;
|
|
143
|
+
mean: import("typed-function").TypedFunction;
|
|
144
|
+
variance: import("typed-function").TypedFunction;
|
|
145
|
+
std: import("typed-function").TypedFunction;
|
|
146
|
+
min: import("typed-function").TypedFunction;
|
|
147
|
+
max: import("typed-function").TypedFunction;
|
|
148
|
+
minMax: import("typed-function").TypedFunction;
|
|
149
|
+
median: import("typed-function").TypedFunction;
|
|
150
|
+
mode: import("typed-function").TypedFunction;
|
|
151
|
+
prod: import("typed-function").TypedFunction;
|
|
152
|
+
norm: import("typed-function").TypedFunction;
|
|
153
|
+
distance: import("typed-function").TypedFunction;
|
|
154
|
+
corr: import("typed-function").TypedFunction;
|
|
155
|
+
mad: import("typed-function").TypedFunction;
|
|
156
|
+
cumsum: import("typed-function").TypedFunction;
|
|
157
|
+
quantile: import("typed-function").TypedFunction;
|
|
158
|
+
percentile: typeof parallelStatPercentile;
|
|
159
|
+
histogram: import("typed-function").TypedFunction;
|
|
160
|
+
quickSelect: typeof quickSelect;
|
|
161
|
+
medianSelect: typeof medianSelect;
|
|
162
|
+
minSelect: typeof minSelect;
|
|
163
|
+
maxSelect: typeof maxSelect;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Initialize statistics processing pool
|
|
167
|
+
*/
|
|
168
|
+
export declare function initializeStatistics(): Promise<void>;
|
|
169
|
+
/**
|
|
170
|
+
* Terminate statistics processing pool
|
|
171
|
+
*/
|
|
172
|
+
export declare function terminateStatistics(): Promise<void>;
|
|
173
|
+
export {};
|
|
174
|
+
//# sourceMappingURL=statistics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../src/typed/statistics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAUH,0CAA0C;AAC1C,KAAK,GAAG,GAAG,MAAM,CAAC;AAElB,4BAA4B;AAC5B,KAAK,GAAG,GAAG,MAAM,CAAC;AAMlB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,aAAa,GAAG,QAAQ,CAAC;AA0CtE;;GAEG;AACH,eAAO,MAAM,eAAe,wCAoB1B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wCAqB3B,CAAC;AAMH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,wCA2D/B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,eAAe,wCAgC1B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,eAAe,wCAuB1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,wCAuB1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,wCAe7B,CAAC;AAMH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,wCAgC7B,CAAC;AAMH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,wCA2B3B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wCA8B3B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wCA4D3B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,oBAAoB,wCAiB/B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wCAgC3B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,eAAe,wCAsB1B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,kBAAkB,wCAsB7B,CAAC;AAMH;;GAEG;AACH,eAAO,MAAM,oBAAoB,wCAgC/B,CAAC;AAMH;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,CAGtE;AAMD;;GAEG;AACH,eAAO,MAAM,qBAAqB,wCAsBhC,CAAC;AAMH;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,GAAG,CAMtD;AA8CD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAG,CAc/C;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CAWzD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,EAAE,CAWzD;AAMD;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAuB3B,CAAC;AAEF;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1D;AAED;;GAEG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEzD"}
|