mathjs 10.0.0 → 10.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1084) hide show
  1. package/CONTRIBUTING.md +14 -10
  2. package/HISTORY.md +209 -0
  3. package/NOTICE +1 -1
  4. package/README.md +23 -3
  5. package/bin/cli.js +1 -1
  6. package/lib/browser/math.js +9 -8
  7. package/lib/browser/math.js.map +1 -1
  8. package/lib/cjs/core/create.js +4 -4
  9. package/lib/cjs/core/function/import.js +3 -3
  10. package/lib/cjs/core/function/typed.js +2 -2
  11. package/lib/cjs/defaultInstance.js +3 -3
  12. package/lib/cjs/entry/allFactoriesAny.js +1 -1
  13. package/lib/cjs/entry/allFactoriesNumber.js +1 -1
  14. package/lib/cjs/entry/configReadonly.js +1 -1
  15. package/lib/cjs/entry/dependenciesAny/dependenciesCeil.generated.js +6 -0
  16. package/lib/cjs/entry/dependenciesAny/dependenciesCumSum.generated.js +26 -0
  17. package/lib/cjs/entry/dependenciesAny/dependenciesCumSumTransform.generated.js +26 -0
  18. package/lib/cjs/entry/dependenciesAny/dependenciesDet.generated.js +5 -2
  19. package/lib/cjs/entry/dependenciesAny/dependenciesFft.generated.js +41 -0
  20. package/lib/cjs/entry/dependenciesAny/dependenciesFix.generated.js +9 -0
  21. package/lib/cjs/entry/dependenciesAny/dependenciesFloor.generated.js +6 -0
  22. package/lib/cjs/entry/dependenciesAny/dependenciesIfft.generated.js +29 -0
  23. package/lib/cjs/entry/dependenciesAny/dependenciesIndexNode.generated.js +0 -3
  24. package/lib/cjs/entry/dependenciesAny/dependenciesIntersect.generated.js +6 -0
  25. package/lib/cjs/entry/dependenciesAny/dependenciesInvmod.generated.js +41 -0
  26. package/lib/cjs/entry/dependenciesAny/dependenciesLeafCount.generated.js +23 -0
  27. package/lib/cjs/entry/dependenciesAny/dependenciesLgamma.generated.js +23 -0
  28. package/lib/cjs/entry/dependenciesAny/dependenciesPinv.generated.js +53 -0
  29. package/lib/cjs/entry/dependenciesAny/dependenciesPow.generated.js +3 -0
  30. package/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js +18 -0
  31. package/lib/cjs/entry/dependenciesAny/dependenciesResolve.generated.js +32 -0
  32. package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +21 -0
  33. package/lib/cjs/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +65 -0
  34. package/lib/cjs/entry/dependenciesAny/dependenciesStirlingS2.generated.js +6 -0
  35. package/lib/cjs/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +29 -0
  36. package/lib/cjs/entry/dependenciesAny.generated.js +88 -0
  37. package/lib/cjs/entry/dependenciesNumber/dependenciesCeil.generated.js +3 -0
  38. package/lib/cjs/entry/dependenciesNumber/dependenciesCumSum.generated.js +26 -0
  39. package/lib/cjs/entry/dependenciesNumber/dependenciesCumSumTransform.generated.js +26 -0
  40. package/lib/cjs/entry/dependenciesNumber/dependenciesFix.generated.js +6 -0
  41. package/lib/cjs/entry/dependenciesNumber/dependenciesFloor.generated.js +3 -0
  42. package/lib/cjs/entry/dependenciesNumber/dependenciesIndexNode.generated.js +0 -3
  43. package/lib/cjs/entry/dependenciesNumber/dependenciesLgamma.generated.js +20 -0
  44. package/lib/cjs/entry/dependenciesNumber/dependenciesRationalize.generated.js +18 -0
  45. package/lib/cjs/entry/dependenciesNumber/dependenciesResolve.generated.js +32 -0
  46. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +21 -0
  47. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +65 -0
  48. package/lib/cjs/entry/dependenciesNumber/dependenciesStirlingS2.generated.js +3 -0
  49. package/lib/cjs/entry/dependenciesNumber.generated.js +40 -0
  50. package/lib/cjs/entry/impureFunctionsAny.generated.js +164 -98
  51. package/lib/cjs/entry/impureFunctionsNumber.generated.js +117 -69
  52. package/lib/cjs/entry/pureFunctionsAny.generated.js +418 -351
  53. package/lib/cjs/entry/pureFunctionsNumber.generated.js +80 -65
  54. package/lib/cjs/expression/Help.js +4 -0
  55. package/lib/cjs/expression/Parser.js +1 -1
  56. package/lib/cjs/expression/embeddedDocs/construction/fraction.js +3 -3
  57. package/lib/cjs/expression/embeddedDocs/core/typed.js +1 -1
  58. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +265 -233
  59. package/lib/cjs/expression/embeddedDocs/function/algebra/leafCount.js +15 -0
  60. package/lib/cjs/expression/embeddedDocs/function/algebra/resolve.js +16 -0
  61. package/lib/cjs/expression/embeddedDocs/function/algebra/simplify.js +1 -1
  62. package/lib/cjs/expression/embeddedDocs/function/algebra/simplifyCore.js +15 -0
  63. package/lib/cjs/expression/embeddedDocs/function/algebra/symbolicEqual.js +15 -0
  64. package/lib/cjs/expression/embeddedDocs/function/arithmetic/invmod.js +15 -0
  65. package/lib/cjs/expression/embeddedDocs/function/arithmetic/pow.js +1 -1
  66. package/lib/cjs/expression/embeddedDocs/function/matrix/fft.js +15 -0
  67. package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +1 -1
  68. package/lib/cjs/expression/embeddedDocs/function/matrix/ifft.js +15 -0
  69. package/lib/cjs/expression/embeddedDocs/function/matrix/pinv.js +15 -0
  70. package/lib/cjs/expression/embeddedDocs/function/matrix/subset.js +2 -2
  71. package/lib/cjs/expression/embeddedDocs/function/probability/lgamma.js +15 -0
  72. package/lib/cjs/expression/embeddedDocs/function/statistics/cumsum.js +15 -0
  73. package/lib/cjs/expression/node/FunctionNode.js +104 -63
  74. package/lib/cjs/expression/node/IndexNode.js +27 -62
  75. package/lib/cjs/expression/node/Node.js +3 -3
  76. package/lib/cjs/expression/node/ObjectNode.js +1 -1
  77. package/lib/cjs/expression/node/utils/access.js +1 -1
  78. package/lib/cjs/expression/node/utils/assign.js +1 -1
  79. package/lib/cjs/expression/parse.js +25 -21
  80. package/lib/cjs/expression/transform/cumsum.transform.js +57 -0
  81. package/lib/cjs/expression/transform/sum.transform.js +1 -1
  82. package/lib/cjs/factoriesAny.js +88 -0
  83. package/lib/cjs/factoriesNumber.js +77 -28
  84. package/lib/cjs/function/algebra/decomposition/qr.js +1 -1
  85. package/lib/cjs/function/algebra/derivative.js +1 -1
  86. package/lib/cjs/function/algebra/leafCount.js +66 -0
  87. package/lib/cjs/function/algebra/rationalize.js +36 -39
  88. package/lib/cjs/function/algebra/resolve.js +106 -0
  89. package/lib/cjs/function/algebra/simplify/simplifyConstant.js +226 -32
  90. package/lib/cjs/function/algebra/simplify/util.js +171 -33
  91. package/lib/cjs/function/algebra/simplify.js +619 -191
  92. package/lib/cjs/function/algebra/{simplify/simplifyCore.js → simplifyCore.js} +84 -32
  93. package/lib/cjs/function/algebra/solver/lsolveAll.js +2 -2
  94. package/lib/cjs/function/algebra/solver/usolveAll.js +2 -2
  95. package/lib/cjs/function/algebra/symbolicEqual.js +88 -0
  96. package/lib/cjs/function/arithmetic/ceil.js +76 -40
  97. package/lib/cjs/function/arithmetic/fix.js +54 -16
  98. package/lib/cjs/function/arithmetic/floor.js +80 -38
  99. package/lib/cjs/function/arithmetic/invmod.js +73 -0
  100. package/lib/cjs/function/arithmetic/norm.js +1 -1
  101. package/lib/cjs/function/arithmetic/nthRoot.js +1 -3
  102. package/lib/cjs/function/arithmetic/pow.js +25 -6
  103. package/lib/cjs/function/arithmetic/round.js +27 -47
  104. package/lib/cjs/function/arithmetic/sign.js +4 -0
  105. package/lib/cjs/function/combinatorics/stirlingS2.js +42 -12
  106. package/lib/cjs/function/geometry/intersect.js +12 -13
  107. package/lib/cjs/function/matrix/det.js +37 -31
  108. package/lib/cjs/function/matrix/eigs/complexEigs.js +44 -33
  109. package/lib/cjs/function/matrix/fft.js +128 -0
  110. package/lib/cjs/function/matrix/ifft.js +49 -0
  111. package/lib/cjs/function/matrix/map.js +53 -15
  112. package/lib/cjs/function/matrix/matrixFromColumns.js +1 -1
  113. package/lib/cjs/function/matrix/matrixFromRows.js +1 -1
  114. package/lib/cjs/function/matrix/pinv.js +223 -0
  115. package/lib/cjs/function/matrix/subset.js +15 -5
  116. package/lib/cjs/function/probability/gamma.js +28 -30
  117. package/lib/cjs/function/probability/lgamma.js +146 -0
  118. package/lib/cjs/function/probability/util/seededRNG.js +2 -2
  119. package/lib/cjs/function/relational/compareNatural.js +6 -6
  120. package/lib/cjs/function/statistics/cumsum.js +151 -0
  121. package/lib/cjs/function/statistics/sum.js +1 -1
  122. package/lib/cjs/function/string/format.js +4 -1
  123. package/lib/cjs/header.js +3 -3
  124. package/lib/cjs/plain/bignumber/index.js +1 -1
  125. package/lib/cjs/plain/number/arithmetic.js +17 -31
  126. package/lib/cjs/plain/number/combinations.js +18 -6
  127. package/lib/cjs/plain/number/probability.js +43 -3
  128. package/lib/cjs/type/bignumber/BigNumber.js +2 -2
  129. package/lib/cjs/type/bignumber/function/bignumber.js +1 -1
  130. package/lib/cjs/type/boolean.js +2 -2
  131. package/lib/cjs/type/complex/Complex.js +14 -14
  132. package/lib/cjs/type/complex/function/complex.js +1 -1
  133. package/lib/cjs/type/fraction/Fraction.js +6 -6
  134. package/lib/cjs/type/fraction/function/fraction.js +21 -9
  135. package/lib/cjs/type/matrix/DenseMatrix.js +5 -5
  136. package/lib/cjs/type/matrix/SparseMatrix.js +21 -17
  137. package/lib/cjs/type/matrix/function/sparse.js +6 -0
  138. package/lib/cjs/type/number.js +1 -1
  139. package/lib/cjs/type/string.js +2 -2
  140. package/lib/cjs/type/unit/Unit.js +76 -88
  141. package/lib/cjs/utils/collection.js +3 -27
  142. package/lib/cjs/utils/customs.js +2 -2
  143. package/lib/cjs/utils/emitter.js +1 -1
  144. package/lib/cjs/utils/function.js +2 -2
  145. package/lib/cjs/utils/is.js +6 -6
  146. package/lib/cjs/utils/latex.js +9 -3
  147. package/lib/cjs/utils/lruQueue.js +2 -4
  148. package/lib/cjs/utils/map.js +3 -3
  149. package/lib/cjs/utils/number.js +18 -3
  150. package/lib/cjs/utils/object.js +5 -3
  151. package/lib/cjs/utils/snapshot.js +8 -8
  152. package/lib/cjs/utils/string.js +19 -6
  153. package/lib/cjs/utils/switch.js +31 -0
  154. package/lib/cjs/version.js +1 -1
  155. package/lib/esm/entry/dependenciesAny/dependenciesCeil.generated.js +4 -0
  156. package/lib/esm/entry/dependenciesAny/dependenciesCumSum.generated.js +14 -0
  157. package/lib/esm/entry/dependenciesAny/dependenciesCumSumTransform.generated.js +14 -0
  158. package/lib/esm/entry/dependenciesAny/dependenciesDet.generated.js +4 -2
  159. package/lib/esm/entry/dependenciesAny/dependenciesFft.generated.js +24 -0
  160. package/lib/esm/entry/dependenciesAny/dependenciesFix.generated.js +6 -0
  161. package/lib/esm/entry/dependenciesAny/dependenciesFloor.generated.js +4 -0
  162. package/lib/esm/entry/dependenciesAny/dependenciesIfft.generated.js +16 -0
  163. package/lib/esm/entry/dependenciesAny/dependenciesIndexNode.generated.js +0 -2
  164. package/lib/esm/entry/dependenciesAny/dependenciesIntersect.generated.js +4 -0
  165. package/lib/esm/entry/dependenciesAny/dependenciesInvmod.generated.js +24 -0
  166. package/lib/esm/entry/dependenciesAny/dependenciesLeafCount.generated.js +12 -0
  167. package/lib/esm/entry/dependenciesAny/dependenciesLgamma.generated.js +12 -0
  168. package/lib/esm/entry/dependenciesAny/dependenciesPinv.generated.js +32 -0
  169. package/lib/esm/entry/dependenciesAny/dependenciesPow.generated.js +2 -0
  170. package/lib/esm/entry/dependenciesAny/dependenciesRationalize.generated.js +12 -0
  171. package/lib/esm/entry/dependenciesAny/dependenciesResolve.generated.js +18 -0
  172. package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +14 -0
  173. package/lib/esm/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +40 -0
  174. package/lib/esm/entry/dependenciesAny/dependenciesStirlingS2.generated.js +4 -0
  175. package/lib/esm/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +16 -0
  176. package/lib/esm/entry/dependenciesAny.generated.js +11 -0
  177. package/lib/esm/entry/dependenciesNumber/dependenciesCeil.generated.js +2 -0
  178. package/lib/esm/entry/dependenciesNumber/dependenciesCumSum.generated.js +14 -0
  179. package/lib/esm/entry/dependenciesNumber/dependenciesCumSumTransform.generated.js +14 -0
  180. package/lib/esm/entry/dependenciesNumber/dependenciesFix.generated.js +4 -0
  181. package/lib/esm/entry/dependenciesNumber/dependenciesFloor.generated.js +2 -0
  182. package/lib/esm/entry/dependenciesNumber/dependenciesIndexNode.generated.js +0 -2
  183. package/lib/esm/entry/dependenciesNumber/dependenciesLgamma.generated.js +10 -0
  184. package/lib/esm/entry/dependenciesNumber/dependenciesRationalize.generated.js +12 -0
  185. package/lib/esm/entry/dependenciesNumber/dependenciesResolve.generated.js +18 -0
  186. package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +14 -0
  187. package/lib/esm/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +40 -0
  188. package/lib/esm/entry/dependenciesNumber/dependenciesStirlingS2.generated.js +2 -0
  189. package/lib/esm/entry/dependenciesNumber.generated.js +5 -0
  190. package/lib/esm/entry/impureFunctionsAny.generated.js +150 -88
  191. package/lib/esm/entry/impureFunctionsNumber.generated.js +107 -61
  192. package/lib/esm/entry/pureFunctionsAny.generated.js +331 -268
  193. package/lib/esm/entry/pureFunctionsNumber.generated.js +56 -41
  194. package/lib/esm/expression/Help.js +4 -0
  195. package/lib/esm/expression/embeddedDocs/construction/fraction.js +3 -3
  196. package/lib/esm/expression/embeddedDocs/core/typed.js +1 -1
  197. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +233 -212
  198. package/lib/esm/expression/embeddedDocs/function/algebra/leafCount.js +8 -0
  199. package/lib/esm/expression/embeddedDocs/function/algebra/resolve.js +9 -0
  200. package/lib/esm/expression/embeddedDocs/function/algebra/simplify.js +1 -1
  201. package/lib/esm/expression/embeddedDocs/function/algebra/simplifyCore.js +8 -0
  202. package/lib/esm/expression/embeddedDocs/function/algebra/symbolicEqual.js +8 -0
  203. package/lib/esm/expression/embeddedDocs/function/arithmetic/invmod.js +8 -0
  204. package/lib/esm/expression/embeddedDocs/function/arithmetic/pow.js +1 -1
  205. package/lib/esm/expression/embeddedDocs/function/matrix/fft.js +8 -0
  206. package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +1 -1
  207. package/lib/esm/expression/embeddedDocs/function/matrix/ifft.js +8 -0
  208. package/lib/esm/expression/embeddedDocs/function/matrix/pinv.js +8 -0
  209. package/lib/esm/expression/embeddedDocs/function/matrix/subset.js +2 -2
  210. package/lib/esm/expression/embeddedDocs/function/probability/lgamma.js +8 -0
  211. package/lib/esm/expression/embeddedDocs/function/statistics/cumsum.js +8 -0
  212. package/lib/esm/expression/node/BlockNode.js +3 -3
  213. package/lib/esm/expression/node/FunctionNode.js +93 -56
  214. package/lib/esm/expression/node/IndexNode.js +22 -59
  215. package/lib/esm/expression/parse.js +17 -13
  216. package/lib/esm/expression/transform/cumsum.transform.js +48 -0
  217. package/lib/esm/expression/transform/sum.transform.js +1 -1
  218. package/lib/esm/factoriesAny.js +11 -0
  219. package/lib/esm/factoriesNumber.js +25 -8
  220. package/lib/esm/function/algebra/decomposition/qr.js +2 -2
  221. package/lib/esm/function/algebra/derivative.js +1 -1
  222. package/lib/esm/function/algebra/leafCount.js +59 -0
  223. package/lib/esm/function/algebra/rationalize.js +36 -38
  224. package/lib/esm/function/algebra/resolve.js +95 -0
  225. package/lib/esm/function/algebra/simplify/simplifyConstant.js +200 -32
  226. package/lib/esm/function/algebra/simplify/util.js +170 -34
  227. package/lib/esm/function/algebra/simplify.js +614 -186
  228. package/lib/esm/function/algebra/{simplify/simplifyCore.js → simplifyCore.js} +76 -32
  229. package/lib/esm/function/algebra/solver/utils/solveValidation.js +5 -5
  230. package/lib/esm/function/algebra/sparse/csChol.js +2 -2
  231. package/lib/esm/function/algebra/sparse/csLeaf.js +2 -2
  232. package/lib/esm/function/algebra/sparse/csLu.js +3 -3
  233. package/lib/esm/function/algebra/symbolicEqual.js +80 -0
  234. package/lib/esm/function/arithmetic/ceil.js +61 -24
  235. package/lib/esm/function/arithmetic/fix.js +51 -13
  236. package/lib/esm/function/arithmetic/floor.js +65 -23
  237. package/lib/esm/function/arithmetic/invmod.js +57 -0
  238. package/lib/esm/function/arithmetic/nthRoot.js +1 -3
  239. package/lib/esm/function/arithmetic/nthRoots.js +1 -1
  240. package/lib/esm/function/arithmetic/pow.js +25 -6
  241. package/lib/esm/function/arithmetic/round.js +25 -43
  242. package/lib/esm/function/arithmetic/sign.js +4 -0
  243. package/lib/esm/function/combinatorics/stirlingS2.js +41 -12
  244. package/lib/esm/function/geometry/intersect.js +12 -12
  245. package/lib/esm/function/matrix/det.js +35 -31
  246. package/lib/esm/function/matrix/eigs/complexEigs.js +36 -25
  247. package/lib/esm/function/matrix/expm.js +2 -2
  248. package/lib/esm/function/matrix/fft.js +104 -0
  249. package/lib/esm/function/matrix/ifft.js +38 -0
  250. package/lib/esm/function/matrix/map.js +53 -15
  251. package/lib/esm/function/matrix/pinv.js +205 -0
  252. package/lib/esm/function/matrix/subset.js +15 -5
  253. package/lib/esm/function/probability/gamma.js +29 -31
  254. package/lib/esm/function/probability/lgamma.js +137 -0
  255. package/lib/esm/function/statistics/cumsum.js +139 -0
  256. package/lib/esm/function/statistics/sum.js +1 -1
  257. package/lib/esm/function/string/bin.js +1 -1
  258. package/lib/esm/function/string/format.js +4 -1
  259. package/lib/esm/function/string/hex.js +1 -1
  260. package/lib/esm/function/string/oct.js +1 -1
  261. package/lib/esm/header.js +1 -1
  262. package/lib/esm/plain/number/arithmetic.js +16 -20
  263. package/lib/esm/plain/number/combinations.js +18 -6
  264. package/lib/esm/plain/number/probability.js +33 -1
  265. package/lib/esm/type/complex/Complex.js +2 -2
  266. package/lib/esm/type/fraction/function/fraction.js +20 -8
  267. package/lib/esm/type/matrix/DenseMatrix.js +2 -2
  268. package/lib/esm/type/matrix/FibonacciHeap.js +2 -2
  269. package/lib/esm/type/matrix/SparseMatrix.js +32 -28
  270. package/lib/esm/type/matrix/function/sparse.js +6 -0
  271. package/lib/esm/type/unit/Unit.js +76 -88
  272. package/lib/esm/utils/collection.js +1 -26
  273. package/lib/esm/utils/latex.js +6 -0
  274. package/lib/esm/utils/lruQueue.js +1 -2
  275. package/lib/esm/utils/number.js +17 -5
  276. package/lib/esm/utils/object.js +3 -1
  277. package/lib/esm/utils/snapshot.js +2 -2
  278. package/lib/esm/utils/string.js +18 -4
  279. package/lib/esm/utils/switch.js +24 -0
  280. package/lib/esm/version.js +1 -1
  281. package/package.json +52 -33
  282. package/types/index.d.ts +2741 -1306
  283. package/types/index.ts +1656 -242
  284. package/types/tsconfig.json +2 -1
  285. package/docs/command_line_interface.md +0 -87
  286. package/docs/core/chaining.md +0 -41
  287. package/docs/core/configuration.md +0 -144
  288. package/docs/core/extension.md +0 -263
  289. package/docs/core/index.md +0 -21
  290. package/docs/core/serialization.md +0 -50
  291. package/docs/custom_bundling.md +0 -116
  292. package/docs/datatypes/bignumbers.md +0 -102
  293. package/docs/datatypes/complex_numbers.md +0 -168
  294. package/docs/datatypes/fractions.md +0 -75
  295. package/docs/datatypes/index.md +0 -67
  296. package/docs/datatypes/matrices.md +0 -358
  297. package/docs/datatypes/numbers.md +0 -106
  298. package/docs/datatypes/units.md +0 -444
  299. package/docs/expressions/algebra.md +0 -83
  300. package/docs/expressions/customization.md +0 -379
  301. package/docs/expressions/expression_trees.md +0 -700
  302. package/docs/expressions/html_classes.md +0 -38
  303. package/docs/expressions/index.md +0 -21
  304. package/docs/expressions/parsing.md +0 -224
  305. package/docs/expressions/security.md +0 -89
  306. package/docs/expressions/syntax.md +0 -670
  307. package/docs/getting_started.md +0 -124
  308. package/docs/index.md +0 -39
  309. package/docs/reference/classes/densematrix.md +0 -247
  310. package/docs/reference/classes/fibonacciheap.md +0 -70
  311. package/docs/reference/classes/matrixindex.md +0 -133
  312. package/docs/reference/classes/matrixrange.md +0 -158
  313. package/docs/reference/classes/resultset.md +0 -47
  314. package/docs/reference/classes/sparsematrix.md +0 -245
  315. package/docs/reference/classes/unit.md +0 -242
  316. package/docs/reference/classes.md +0 -86
  317. package/docs/reference/constants.md +0 -29
  318. package/docs/reference/functions/abs.md +0 -40
  319. package/docs/reference/functions/acos.md +0 -43
  320. package/docs/reference/functions/acosh.md +0 -41
  321. package/docs/reference/functions/acot.md +0 -42
  322. package/docs/reference/functions/acoth.md +0 -40
  323. package/docs/reference/functions/acsc.md +0 -43
  324. package/docs/reference/functions/acsch.md +0 -40
  325. package/docs/reference/functions/add.md +0 -53
  326. package/docs/reference/functions/and.md +0 -47
  327. package/docs/reference/functions/apply.md +0 -50
  328. package/docs/reference/functions/arg.md +0 -47
  329. package/docs/reference/functions/asec.md +0 -43
  330. package/docs/reference/functions/asech.md +0 -40
  331. package/docs/reference/functions/asin.md +0 -43
  332. package/docs/reference/functions/asinh.md +0 -40
  333. package/docs/reference/functions/atan.md +0 -43
  334. package/docs/reference/functions/atan2.md +0 -50
  335. package/docs/reference/functions/atanh.md +0 -40
  336. package/docs/reference/functions/bellNumbers.md +0 -39
  337. package/docs/reference/functions/bignumber.md +0 -47
  338. package/docs/reference/functions/bin.md +0 -39
  339. package/docs/reference/functions/bitAnd.md +0 -45
  340. package/docs/reference/functions/bitNot.md +0 -45
  341. package/docs/reference/functions/bitOr.md +0 -46
  342. package/docs/reference/functions/bitXor.md +0 -45
  343. package/docs/reference/functions/boolean.md +0 -50
  344. package/docs/reference/functions/catalan.md +0 -39
  345. package/docs/reference/functions/cbrt.md +0 -54
  346. package/docs/reference/functions/ceil.md +0 -57
  347. package/docs/reference/functions/chain.md +0 -54
  348. package/docs/reference/functions/clone.md +0 -37
  349. package/docs/reference/functions/column.md +0 -39
  350. package/docs/reference/functions/combinations.md +0 -43
  351. package/docs/reference/functions/combinationsWithRep.md +0 -43
  352. package/docs/reference/functions/compare.md +0 -61
  353. package/docs/reference/functions/compareNatural.md +0 -86
  354. package/docs/reference/functions/compareText.md +0 -48
  355. package/docs/reference/functions/compile.md +0 -50
  356. package/docs/reference/functions/complex.md +0 -17
  357. package/docs/reference/functions/composition.md +0 -40
  358. package/docs/reference/functions/concat.md +0 -50
  359. package/docs/reference/functions/config.md +0 -44
  360. package/docs/reference/functions/conj.md +0 -44
  361. package/docs/reference/functions/cos.md +0 -45
  362. package/docs/reference/functions/cosh.md +0 -40
  363. package/docs/reference/functions/cot.md +0 -41
  364. package/docs/reference/functions/coth.md +0 -43
  365. package/docs/reference/functions/count.md +0 -39
  366. package/docs/reference/functions/createUnit.md +0 -52
  367. package/docs/reference/functions/cross.md +0 -52
  368. package/docs/reference/functions/csc.md +0 -41
  369. package/docs/reference/functions/csch.md +0 -43
  370. package/docs/reference/functions/ctranspose.md +0 -44
  371. package/docs/reference/functions/cube.md +0 -45
  372. package/docs/reference/functions/deepEqual.md +0 -47
  373. package/docs/reference/functions/derivative.md +0 -55
  374. package/docs/reference/functions/det.md +0 -43
  375. package/docs/reference/functions/diag.md +0 -55
  376. package/docs/reference/functions/diff.md +0 -64
  377. package/docs/reference/functions/distance.md +0 -74
  378. package/docs/reference/functions/divide.md +0 -49
  379. package/docs/reference/functions/dot.md +0 -42
  380. package/docs/reference/functions/dotDivide.md +0 -46
  381. package/docs/reference/functions/dotMultiply.md +0 -46
  382. package/docs/reference/functions/dotPow.md +0 -43
  383. package/docs/reference/functions/eigs.md +0 -48
  384. package/docs/reference/functions/equal.md +0 -69
  385. package/docs/reference/functions/equalText.md +0 -47
  386. package/docs/reference/functions/erf.md +0 -43
  387. package/docs/reference/functions/evaluate.md +0 -50
  388. package/docs/reference/functions/exp.md +0 -48
  389. package/docs/reference/functions/expm.md +0 -43
  390. package/docs/reference/functions/expm1.md +0 -48
  391. package/docs/reference/functions/factorial.md +0 -43
  392. package/docs/reference/functions/filter.md +0 -44
  393. package/docs/reference/functions/fix.md +0 -55
  394. package/docs/reference/functions/flatten.md +0 -40
  395. package/docs/reference/functions/floor.md +0 -56
  396. package/docs/reference/functions/forEach.md +0 -35
  397. package/docs/reference/functions/format.md +0 -118
  398. package/docs/reference/functions/fraction.md +0 -45
  399. package/docs/reference/functions/gamma.md +0 -43
  400. package/docs/reference/functions/gcd.md +0 -44
  401. package/docs/reference/functions/getMatrixDataType.md +0 -53
  402. package/docs/reference/functions/hasNumericValue.md +0 -49
  403. package/docs/reference/functions/help.md +0 -36
  404. package/docs/reference/functions/hex.md +0 -39
  405. package/docs/reference/functions/hypot.md +0 -45
  406. package/docs/reference/functions/identity.md +0 -51
  407. package/docs/reference/functions/im.md +0 -47
  408. package/docs/reference/functions/import.md +0 -68
  409. package/docs/reference/functions/index.md +0 -55
  410. package/docs/reference/functions/intersect.md +0 -44
  411. package/docs/reference/functions/inv.md +0 -39
  412. package/docs/reference/functions/isInteger.md +0 -49
  413. package/docs/reference/functions/isNaN.md +0 -50
  414. package/docs/reference/functions/isNegative.md +0 -49
  415. package/docs/reference/functions/isNumeric.md +0 -49
  416. package/docs/reference/functions/isPositive.md +0 -51
  417. package/docs/reference/functions/isPrime.md +0 -48
  418. package/docs/reference/functions/isZero.md +0 -53
  419. package/docs/reference/functions/kldivergence.md +0 -35
  420. package/docs/reference/functions/kron.md +0 -47
  421. package/docs/reference/functions/larger.md +0 -54
  422. package/docs/reference/functions/largerEq.md +0 -50
  423. package/docs/reference/functions/lcm.md +0 -48
  424. package/docs/reference/functions/leftShift.md +0 -46
  425. package/docs/reference/functions/log.md +0 -51
  426. package/docs/reference/functions/log10.md +0 -44
  427. package/docs/reference/functions/log1p.md +0 -48
  428. package/docs/reference/functions/log2.md +0 -44
  429. package/docs/reference/functions/lsolve.md +0 -45
  430. package/docs/reference/functions/lsolveAll.md +0 -45
  431. package/docs/reference/functions/lup.md +0 -46
  432. package/docs/reference/functions/lusolve.md +0 -53
  433. package/docs/reference/functions/mad.md +0 -44
  434. package/docs/reference/functions/map.md +0 -42
  435. package/docs/reference/functions/matrix.md +0 -56
  436. package/docs/reference/functions/matrixFromColumns.md +0 -43
  437. package/docs/reference/functions/matrixFromFunction.md +0 -48
  438. package/docs/reference/functions/matrixFromRows.md +0 -43
  439. package/docs/reference/functions/max.md +0 -55
  440. package/docs/reference/functions/mean.md +0 -51
  441. package/docs/reference/functions/median.md +0 -51
  442. package/docs/reference/functions/min.md +0 -55
  443. package/docs/reference/functions/mod.md +0 -53
  444. package/docs/reference/functions/mode.md +0 -44
  445. package/docs/reference/functions/multinomial.md +0 -40
  446. package/docs/reference/functions/multiply.md +0 -54
  447. package/docs/reference/functions/norm.md +0 -53
  448. package/docs/reference/functions/not.md +0 -44
  449. package/docs/reference/functions/nthRoot.md +0 -47
  450. package/docs/reference/functions/nthRoots.md +0 -52
  451. package/docs/reference/functions/number.md +0 -49
  452. package/docs/reference/functions/numeric.md +0 -46
  453. package/docs/reference/functions/oct.md +0 -39
  454. package/docs/reference/functions/ones.md +0 -53
  455. package/docs/reference/functions/or.md +0 -47
  456. package/docs/reference/functions/parse.md +0 -56
  457. package/docs/reference/functions/parser.md +0 -64
  458. package/docs/reference/functions/partitionSelect.md +0 -47
  459. package/docs/reference/functions/permutations.md +0 -45
  460. package/docs/reference/functions/pickRandom.md +0 -53
  461. package/docs/reference/functions/pow.md +0 -53
  462. package/docs/reference/functions/print.md +0 -58
  463. package/docs/reference/functions/prod.md +0 -49
  464. package/docs/reference/functions/qr.md +0 -59
  465. package/docs/reference/functions/quantileSeq.md +0 -56
  466. package/docs/reference/functions/random.md +0 -48
  467. package/docs/reference/functions/randomInt.md +0 -47
  468. package/docs/reference/functions/range.md +0 -64
  469. package/docs/reference/functions/rationalize.md +0 -62
  470. package/docs/reference/functions/re.md +0 -47
  471. package/docs/reference/functions/reshape.md +0 -53
  472. package/docs/reference/functions/resize.md +0 -45
  473. package/docs/reference/functions/rightArithShift.md +0 -46
  474. package/docs/reference/functions/rightLogShift.md +0 -46
  475. package/docs/reference/functions/rotate.md +0 -47
  476. package/docs/reference/functions/rotationMatrix.md +0 -51
  477. package/docs/reference/functions/round.md +0 -55
  478. package/docs/reference/functions/row.md +0 -39
  479. package/docs/reference/functions/sec.md +0 -41
  480. package/docs/reference/functions/sech.md +0 -43
  481. package/docs/reference/functions/setCartesian.md +0 -43
  482. package/docs/reference/functions/setDifference.md +0 -41
  483. package/docs/reference/functions/setDistinct.md +0 -37
  484. package/docs/reference/functions/setIntersect.md +0 -40
  485. package/docs/reference/functions/setIsSubset.md +0 -41
  486. package/docs/reference/functions/setMultiplicity.md +0 -40
  487. package/docs/reference/functions/setPowerset.md +0 -37
  488. package/docs/reference/functions/setSize.md +0 -41
  489. package/docs/reference/functions/setSymDifference.md +0 -41
  490. package/docs/reference/functions/setUnion.md +0 -40
  491. package/docs/reference/functions/sign.md +0 -46
  492. package/docs/reference/functions/simplify.md +0 -90
  493. package/docs/reference/functions/sin.md +0 -45
  494. package/docs/reference/functions/sinh.md +0 -40
  495. package/docs/reference/functions/size.md +0 -44
  496. package/docs/reference/functions/slu.md +0 -51
  497. package/docs/reference/functions/smaller.md +0 -54
  498. package/docs/reference/functions/smallerEq.md +0 -50
  499. package/docs/reference/functions/sort.md +0 -50
  500. package/docs/reference/functions/sparse.md +0 -51
  501. package/docs/reference/functions/splitUnit.md +0 -37
  502. package/docs/reference/functions/sqrt.md +0 -44
  503. package/docs/reference/functions/sqrtm.md +0 -40
  504. package/docs/reference/functions/square.md +0 -45
  505. package/docs/reference/functions/squeeze.md +0 -47
  506. package/docs/reference/functions/std.md +0 -70
  507. package/docs/reference/functions/stirlingS2.md +0 -42
  508. package/docs/reference/functions/string.md +0 -49
  509. package/docs/reference/functions/subset.md +0 -51
  510. package/docs/reference/functions/subtract.md +0 -48
  511. package/docs/reference/functions/sum.md +0 -47
  512. package/docs/reference/functions/tan.md +0 -43
  513. package/docs/reference/functions/tanh.md +0 -44
  514. package/docs/reference/functions/to.md +0 -41
  515. package/docs/reference/functions/trace.md +0 -44
  516. package/docs/reference/functions/transpose.md +0 -43
  517. package/docs/reference/functions/typeOf.md +0 -75
  518. package/docs/reference/functions/typed.md +0 -56
  519. package/docs/reference/functions/unaryMinus.md +0 -43
  520. package/docs/reference/functions/unaryPlus.md +0 -42
  521. package/docs/reference/functions/unequal.md +0 -68
  522. package/docs/reference/functions/unit.md +0 -48
  523. package/docs/reference/functions/usolve.md +0 -45
  524. package/docs/reference/functions/usolveAll.md +0 -45
  525. package/docs/reference/functions/variance.md +0 -72
  526. package/docs/reference/functions/xgcd.md +0 -41
  527. package/docs/reference/functions/xor.md +0 -47
  528. package/docs/reference/functions/zeros.md +0 -51
  529. package/docs/reference/functions.md +0 -289
  530. package/docs/reference/index.md +0 -5
  531. package/examples/advanced/convert_fraction_to_bignumber.js +0 -59
  532. package/examples/advanced/custom_argument_parsing.js +0 -98
  533. package/examples/advanced/custom_datatype.js +0 -56
  534. package/examples/advanced/custom_evaluate_using_factories.js +0 -19
  535. package/examples/advanced/custom_evaluate_using_import.js +0 -18
  536. package/examples/advanced/custom_loading.js +0 -33
  537. package/examples/advanced/custom_relational_functions.js +0 -62
  538. package/examples/advanced/custom_scope_objects.js +0 -115
  539. package/examples/advanced/expression_trees.js +0 -55
  540. package/examples/advanced/function_transform.js +0 -50
  541. package/examples/advanced/more_secure_eval.js +0 -36
  542. package/examples/advanced/use_bigint.js +0 -43
  543. package/examples/advanced/web_server/math_worker.js +0 -24
  544. package/examples/advanced/web_server/server.js +0 -80
  545. package/examples/algebra.js +0 -34
  546. package/examples/basic_usage.js +0 -49
  547. package/examples/bignumbers.js +0 -52
  548. package/examples/browser/angle_configuration.html +0 -134
  549. package/examples/browser/basic_usage.html +0 -39
  550. package/examples/browser/currency_conversion.html +0 -125
  551. package/examples/browser/custom_separators.html +0 -81
  552. package/examples/browser/plot.html +0 -78
  553. package/examples/browser/pretty_printing_with_mathjax.html +0 -122
  554. package/examples/browser/printing_html.html +0 -170
  555. package/examples/browser/requirejs_loading.html +0 -20
  556. package/examples/browser/rocket_trajectory_optimization.html +0 -301
  557. package/examples/browser/webworkers/webworkers.html +0 -80
  558. package/examples/browser/webworkers/worker.js +0 -28
  559. package/examples/chaining.js +0 -56
  560. package/examples/complex_numbers.js +0 -67
  561. package/examples/expressions.js +0 -188
  562. package/examples/fractions.js +0 -74
  563. package/examples/import.js +0 -95
  564. package/examples/matrices.js +0 -101
  565. package/examples/node_modules/.bin/envinfo +0 -15
  566. package/examples/node_modules/.bin/envinfo.cmd +0 -17
  567. package/examples/node_modules/.bin/envinfo.ps1 +0 -18
  568. package/examples/node_modules/.bin/import-local-fixture +0 -15
  569. package/examples/node_modules/.bin/import-local-fixture.cmd +0 -17
  570. package/examples/node_modules/.bin/import-local-fixture.ps1 +0 -18
  571. package/examples/node_modules/.bin/node-which +0 -15
  572. package/examples/node_modules/.bin/node-which.cmd +0 -17
  573. package/examples/node_modules/.bin/node-which.ps1 +0 -18
  574. package/examples/node_modules/.bin/webpack-cli +0 -15
  575. package/examples/node_modules/.bin/webpack-cli.cmd +0 -17
  576. package/examples/node_modules/.bin/webpack-cli.ps1 +0 -18
  577. package/examples/node_modules/@discoveryjs/json-ext/CHANGELOG.md +0 -42
  578. package/examples/node_modules/@discoveryjs/json-ext/LICENSE +0 -21
  579. package/examples/node_modules/@discoveryjs/json-ext/README.md +0 -255
  580. package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.js +0 -808
  581. package/examples/node_modules/@discoveryjs/json-ext/dist/json-ext.min.js +0 -1
  582. package/examples/node_modules/@discoveryjs/json-ext/package.json +0 -93
  583. package/examples/node_modules/@discoveryjs/json-ext/src/index.js +0 -6
  584. package/examples/node_modules/@discoveryjs/json-ext/src/parse-chunked.js +0 -339
  585. package/examples/node_modules/@discoveryjs/json-ext/src/stringify-info.js +0 -224
  586. package/examples/node_modules/@discoveryjs/json-ext/src/stringify-stream-browser.js +0 -3
  587. package/examples/node_modules/@discoveryjs/json-ext/src/stringify-stream.js +0 -394
  588. package/examples/node_modules/@discoveryjs/json-ext/src/text-decoder-browser.js +0 -1
  589. package/examples/node_modules/@discoveryjs/json-ext/src/text-decoder.js +0 -1
  590. package/examples/node_modules/@discoveryjs/json-ext/src/utils.js +0 -148
  591. package/examples/node_modules/@webpack-cli/configtest/CHANGELOG.md +0 -18
  592. package/examples/node_modules/@webpack-cli/configtest/LICENSE +0 -20
  593. package/examples/node_modules/@webpack-cli/configtest/lib/index.d.ts +0 -4
  594. package/examples/node_modules/@webpack-cli/configtest/lib/index.js +0 -62
  595. package/examples/node_modules/@webpack-cli/configtest/package.json +0 -45
  596. package/examples/node_modules/@webpack-cli/info/CHANGELOG.md +0 -61
  597. package/examples/node_modules/@webpack-cli/info/LICENSE +0 -20
  598. package/examples/node_modules/@webpack-cli/info/README.md +0 -49
  599. package/examples/node_modules/@webpack-cli/info/lib/index.d.ts +0 -4
  600. package/examples/node_modules/@webpack-cli/info/lib/index.js +0 -66
  601. package/examples/node_modules/@webpack-cli/info/package.json +0 -47
  602. package/examples/node_modules/@webpack-cli/serve/CHANGELOG.md +0 -93
  603. package/examples/node_modules/@webpack-cli/serve/LICENSE +0 -20
  604. package/examples/node_modules/@webpack-cli/serve/README.md +0 -26
  605. package/examples/node_modules/@webpack-cli/serve/lib/index.d.ts +0 -4
  606. package/examples/node_modules/@webpack-cli/serve/lib/index.js +0 -107
  607. package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.d.ts +0 -12
  608. package/examples/node_modules/@webpack-cli/serve/lib/startDevServer.js +0 -113
  609. package/examples/node_modules/@webpack-cli/serve/lib/types.d.ts +0 -48
  610. package/examples/node_modules/@webpack-cli/serve/lib/types.js +0 -12
  611. package/examples/node_modules/@webpack-cli/serve/package.json +0 -50
  612. package/examples/node_modules/ansi-colors/LICENSE +0 -21
  613. package/examples/node_modules/ansi-colors/README.md +0 -315
  614. package/examples/node_modules/ansi-colors/index.js +0 -177
  615. package/examples/node_modules/ansi-colors/package.json +0 -152
  616. package/examples/node_modules/ansi-colors/symbols.js +0 -70
  617. package/examples/node_modules/ansi-colors/types/index.d.ts +0 -161
  618. package/examples/node_modules/clone-deep/LICENSE +0 -21
  619. package/examples/node_modules/clone-deep/README.md +0 -106
  620. package/examples/node_modules/clone-deep/index.js +0 -49
  621. package/examples/node_modules/clone-deep/package.json +0 -112
  622. package/examples/node_modules/colorette/LICENSE.md +0 -7
  623. package/examples/node_modules/colorette/README.md +0 -102
  624. package/examples/node_modules/colorette/index.cjs +0 -73
  625. package/examples/node_modules/colorette/index.d.ts +0 -49
  626. package/examples/node_modules/colorette/index.js +0 -73
  627. package/examples/node_modules/colorette/package.json +0 -73
  628. package/examples/node_modules/commander/CHANGELOG.md +0 -440
  629. package/examples/node_modules/commander/LICENSE +0 -22
  630. package/examples/node_modules/commander/Readme.md +0 -917
  631. package/examples/node_modules/commander/esm.mjs +0 -4
  632. package/examples/node_modules/commander/index.js +0 -2217
  633. package/examples/node_modules/commander/package-support.json +0 -16
  634. package/examples/node_modules/commander/package.json +0 -100
  635. package/examples/node_modules/commander/typings/index.d.ts +0 -627
  636. package/examples/node_modules/cross-spawn/CHANGELOG.md +0 -130
  637. package/examples/node_modules/cross-spawn/LICENSE +0 -21
  638. package/examples/node_modules/cross-spawn/README.md +0 -96
  639. package/examples/node_modules/cross-spawn/index.js +0 -39
  640. package/examples/node_modules/cross-spawn/lib/enoent.js +0 -59
  641. package/examples/node_modules/cross-spawn/lib/parse.js +0 -91
  642. package/examples/node_modules/cross-spawn/lib/util/escape.js +0 -45
  643. package/examples/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  644. package/examples/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  645. package/examples/node_modules/cross-spawn/package.json +0 -104
  646. package/examples/node_modules/enquirer/CHANGELOG.md +0 -135
  647. package/examples/node_modules/enquirer/LICENSE +0 -21
  648. package/examples/node_modules/enquirer/README.md +0 -1752
  649. package/examples/node_modules/enquirer/index.d.ts +0 -151
  650. package/examples/node_modules/enquirer/index.js +0 -250
  651. package/examples/node_modules/enquirer/lib/ansi.js +0 -116
  652. package/examples/node_modules/enquirer/lib/combos.js +0 -75
  653. package/examples/node_modules/enquirer/lib/completer.js +0 -52
  654. package/examples/node_modules/enquirer/lib/interpolate.js +0 -266
  655. package/examples/node_modules/enquirer/lib/keypress.js +0 -243
  656. package/examples/node_modules/enquirer/lib/placeholder.js +0 -63
  657. package/examples/node_modules/enquirer/lib/prompt.js +0 -485
  658. package/examples/node_modules/enquirer/lib/prompts/autocomplete.js +0 -113
  659. package/examples/node_modules/enquirer/lib/prompts/basicauth.js +0 -41
  660. package/examples/node_modules/enquirer/lib/prompts/confirm.js +0 -13
  661. package/examples/node_modules/enquirer/lib/prompts/editable.js +0 -136
  662. package/examples/node_modules/enquirer/lib/prompts/form.js +0 -196
  663. package/examples/node_modules/enquirer/lib/prompts/index.js +0 -28
  664. package/examples/node_modules/enquirer/lib/prompts/input.js +0 -55
  665. package/examples/node_modules/enquirer/lib/prompts/invisible.js +0 -11
  666. package/examples/node_modules/enquirer/lib/prompts/list.js +0 -36
  667. package/examples/node_modules/enquirer/lib/prompts/multiselect.js +0 -11
  668. package/examples/node_modules/enquirer/lib/prompts/numeral.js +0 -1
  669. package/examples/node_modules/enquirer/lib/prompts/password.js +0 -18
  670. package/examples/node_modules/enquirer/lib/prompts/quiz.js +0 -37
  671. package/examples/node_modules/enquirer/lib/prompts/scale.js +0 -237
  672. package/examples/node_modules/enquirer/lib/prompts/select.js +0 -139
  673. package/examples/node_modules/enquirer/lib/prompts/snippet.js +0 -185
  674. package/examples/node_modules/enquirer/lib/prompts/sort.js +0 -37
  675. package/examples/node_modules/enquirer/lib/prompts/survey.js +0 -163
  676. package/examples/node_modules/enquirer/lib/prompts/text.js +0 -1
  677. package/examples/node_modules/enquirer/lib/prompts/toggle.js +0 -109
  678. package/examples/node_modules/enquirer/lib/render.js +0 -33
  679. package/examples/node_modules/enquirer/lib/roles.js +0 -46
  680. package/examples/node_modules/enquirer/lib/state.js +0 -69
  681. package/examples/node_modules/enquirer/lib/styles.js +0 -144
  682. package/examples/node_modules/enquirer/lib/symbols.js +0 -66
  683. package/examples/node_modules/enquirer/lib/theme.js +0 -11
  684. package/examples/node_modules/enquirer/lib/timer.js +0 -38
  685. package/examples/node_modules/enquirer/lib/types/array.js +0 -658
  686. package/examples/node_modules/enquirer/lib/types/auth.js +0 -29
  687. package/examples/node_modules/enquirer/lib/types/boolean.js +0 -88
  688. package/examples/node_modules/enquirer/lib/types/index.js +0 -7
  689. package/examples/node_modules/enquirer/lib/types/number.js +0 -86
  690. package/examples/node_modules/enquirer/lib/types/string.js +0 -185
  691. package/examples/node_modules/enquirer/lib/utils.js +0 -268
  692. package/examples/node_modules/enquirer/package.json +0 -148
  693. package/examples/node_modules/envinfo/LICENSE +0 -21
  694. package/examples/node_modules/envinfo/README.md +0 -285
  695. package/examples/node_modules/envinfo/dist/cli.js +0 -2
  696. package/examples/node_modules/envinfo/dist/envinfo.js +0 -1
  697. package/examples/node_modules/envinfo/package.json +0 -130
  698. package/examples/node_modules/execa/index.d.ts +0 -554
  699. package/examples/node_modules/execa/index.js +0 -258
  700. package/examples/node_modules/execa/lib/command.js +0 -32
  701. package/examples/node_modules/execa/lib/error.js +0 -86
  702. package/examples/node_modules/execa/lib/kill.js +0 -112
  703. package/examples/node_modules/execa/lib/promise.js +0 -46
  704. package/examples/node_modules/execa/lib/stdio.js +0 -52
  705. package/examples/node_modules/execa/lib/stream.js +0 -97
  706. package/examples/node_modules/execa/license +0 -9
  707. package/examples/node_modules/execa/package.json +0 -102
  708. package/examples/node_modules/execa/readme.md +0 -650
  709. package/examples/node_modules/fastest-levenshtein/.eslintrc.js +0 -27
  710. package/examples/node_modules/fastest-levenshtein/.prettierrc +0 -4
  711. package/examples/node_modules/fastest-levenshtein/.travis.yml +0 -17
  712. package/examples/node_modules/fastest-levenshtein/LICENSE.md +0 -21
  713. package/examples/node_modules/fastest-levenshtein/README.md +0 -55
  714. package/examples/node_modules/fastest-levenshtein/index.d.ts +0 -2
  715. package/examples/node_modules/fastest-levenshtein/index.js +0 -147
  716. package/examples/node_modules/fastest-levenshtein/package.json +0 -90
  717. package/examples/node_modules/fastest-levenshtein/test.js +0 -64
  718. package/examples/node_modules/find-up/index.d.ts +0 -137
  719. package/examples/node_modules/find-up/index.js +0 -89
  720. package/examples/node_modules/find-up/license +0 -9
  721. package/examples/node_modules/find-up/package.json +0 -85
  722. package/examples/node_modules/find-up/readme.md +0 -156
  723. package/examples/node_modules/function-bind/.editorconfig +0 -20
  724. package/examples/node_modules/function-bind/.eslintrc +0 -15
  725. package/examples/node_modules/function-bind/.jscs.json +0 -176
  726. package/examples/node_modules/function-bind/.travis.yml +0 -168
  727. package/examples/node_modules/function-bind/LICENSE +0 -20
  728. package/examples/node_modules/function-bind/README.md +0 -48
  729. package/examples/node_modules/function-bind/implementation.js +0 -52
  730. package/examples/node_modules/function-bind/index.js +0 -5
  731. package/examples/node_modules/function-bind/package.json +0 -94
  732. package/examples/node_modules/function-bind/test/.eslintrc +0 -9
  733. package/examples/node_modules/function-bind/test/index.js +0 -252
  734. package/examples/node_modules/get-stream/buffer-stream.js +0 -52
  735. package/examples/node_modules/get-stream/index.d.ts +0 -105
  736. package/examples/node_modules/get-stream/index.js +0 -61
  737. package/examples/node_modules/get-stream/license +0 -9
  738. package/examples/node_modules/get-stream/package.json +0 -79
  739. package/examples/node_modules/get-stream/readme.md +0 -124
  740. package/examples/node_modules/has/LICENSE-MIT +0 -22
  741. package/examples/node_modules/has/README.md +0 -18
  742. package/examples/node_modules/has/package.json +0 -73
  743. package/examples/node_modules/has/src/index.js +0 -5
  744. package/examples/node_modules/has/test/index.js +0 -10
  745. package/examples/node_modules/human-signals/CHANGELOG.md +0 -11
  746. package/examples/node_modules/human-signals/LICENSE +0 -201
  747. package/examples/node_modules/human-signals/README.md +0 -165
  748. package/examples/node_modules/human-signals/build/src/core.js +0 -273
  749. package/examples/node_modules/human-signals/build/src/core.js.map +0 -1
  750. package/examples/node_modules/human-signals/build/src/main.d.ts +0 -52
  751. package/examples/node_modules/human-signals/build/src/main.js +0 -71
  752. package/examples/node_modules/human-signals/build/src/main.js.map +0 -1
  753. package/examples/node_modules/human-signals/build/src/realtime.js +0 -19
  754. package/examples/node_modules/human-signals/build/src/realtime.js.map +0 -1
  755. package/examples/node_modules/human-signals/build/src/signals.js +0 -35
  756. package/examples/node_modules/human-signals/build/src/signals.js.map +0 -1
  757. package/examples/node_modules/human-signals/package.json +0 -96
  758. package/examples/node_modules/import-local/fixtures/cli.js +0 -7
  759. package/examples/node_modules/import-local/index.js +0 -19
  760. package/examples/node_modules/import-local/license +0 -9
  761. package/examples/node_modules/import-local/package.json +0 -83
  762. package/examples/node_modules/import-local/readme.md +0 -38
  763. package/examples/node_modules/interpret/CHANGELOG +0 -115
  764. package/examples/node_modules/interpret/LICENSE +0 -22
  765. package/examples/node_modules/interpret/README.md +0 -229
  766. package/examples/node_modules/interpret/index.js +0 -211
  767. package/examples/node_modules/interpret/mjs-stub.js +0 -1
  768. package/examples/node_modules/interpret/package.json +0 -118
  769. package/examples/node_modules/is-core-module/.eslintignore +0 -1
  770. package/examples/node_modules/is-core-module/.eslintrc +0 -18
  771. package/examples/node_modules/is-core-module/.github/FUNDING.yml +0 -12
  772. package/examples/node_modules/is-core-module/.github/workflows/node-4+.yml +0 -54
  773. package/examples/node_modules/is-core-module/.github/workflows/node-iojs.yml +0 -58
  774. package/examples/node_modules/is-core-module/.github/workflows/node-pretest.yml +0 -26
  775. package/examples/node_modules/is-core-module/.github/workflows/node-zero.yml +0 -58
  776. package/examples/node_modules/is-core-module/.github/workflows/rebase.yml +0 -15
  777. package/examples/node_modules/is-core-module/.github/workflows/require-allow-edits.yml +0 -14
  778. package/examples/node_modules/is-core-module/.nycrc +0 -13
  779. package/examples/node_modules/is-core-module/CHANGELOG.md +0 -58
  780. package/examples/node_modules/is-core-module/LICENSE +0 -20
  781. package/examples/node_modules/is-core-module/README.md +0 -37
  782. package/examples/node_modules/is-core-module/core.json +0 -83
  783. package/examples/node_modules/is-core-module/index.js +0 -69
  784. package/examples/node_modules/is-core-module/package.json +0 -94
  785. package/examples/node_modules/is-core-module/test/index.js +0 -83
  786. package/examples/node_modules/is-plain-object/LICENSE +0 -21
  787. package/examples/node_modules/is-plain-object/README.md +0 -104
  788. package/examples/node_modules/is-plain-object/index.d.ts +0 -5
  789. package/examples/node_modules/is-plain-object/index.js +0 -37
  790. package/examples/node_modules/is-plain-object/package.json +0 -121
  791. package/examples/node_modules/is-stream/index.d.ts +0 -80
  792. package/examples/node_modules/is-stream/index.js +0 -29
  793. package/examples/node_modules/is-stream/license +0 -9
  794. package/examples/node_modules/is-stream/package.json +0 -73
  795. package/examples/node_modules/is-stream/readme.md +0 -57
  796. package/examples/node_modules/isexe/LICENSE +0 -15
  797. package/examples/node_modules/isexe/README.md +0 -51
  798. package/examples/node_modules/isexe/index.js +0 -57
  799. package/examples/node_modules/isexe/mode.js +0 -41
  800. package/examples/node_modules/isexe/package.json +0 -60
  801. package/examples/node_modules/isexe/test/basic.js +0 -221
  802. package/examples/node_modules/isexe/windows.js +0 -42
  803. package/examples/node_modules/isobject/LICENSE +0 -21
  804. package/examples/node_modules/isobject/README.md +0 -122
  805. package/examples/node_modules/isobject/index.d.ts +0 -5
  806. package/examples/node_modules/isobject/index.js +0 -12
  807. package/examples/node_modules/isobject/package.json +0 -119
  808. package/examples/node_modules/kind-of/CHANGELOG.md +0 -160
  809. package/examples/node_modules/kind-of/LICENSE +0 -21
  810. package/examples/node_modules/kind-of/README.md +0 -367
  811. package/examples/node_modules/kind-of/index.js +0 -129
  812. package/examples/node_modules/kind-of/package.json +0 -144
  813. package/examples/node_modules/locate-path/index.d.ts +0 -83
  814. package/examples/node_modules/locate-path/index.js +0 -65
  815. package/examples/node_modules/locate-path/license +0 -9
  816. package/examples/node_modules/locate-path/package.json +0 -77
  817. package/examples/node_modules/locate-path/readme.md +0 -122
  818. package/examples/node_modules/merge-stream/LICENSE +0 -21
  819. package/examples/node_modules/merge-stream/README.md +0 -78
  820. package/examples/node_modules/merge-stream/index.js +0 -41
  821. package/examples/node_modules/merge-stream/package.json +0 -54
  822. package/examples/node_modules/mimic-fn/index.d.ts +0 -54
  823. package/examples/node_modules/mimic-fn/index.js +0 -13
  824. package/examples/node_modules/mimic-fn/license +0 -9
  825. package/examples/node_modules/mimic-fn/package.json +0 -74
  826. package/examples/node_modules/mimic-fn/readme.md +0 -69
  827. package/examples/node_modules/npm-run-path/index.d.ts +0 -89
  828. package/examples/node_modules/npm-run-path/index.js +0 -47
  829. package/examples/node_modules/npm-run-path/license +0 -9
  830. package/examples/node_modules/npm-run-path/package.json +0 -76
  831. package/examples/node_modules/npm-run-path/readme.md +0 -115
  832. package/examples/node_modules/onetime/index.d.ts +0 -64
  833. package/examples/node_modules/onetime/index.js +0 -44
  834. package/examples/node_modules/onetime/license +0 -9
  835. package/examples/node_modules/onetime/package.json +0 -75
  836. package/examples/node_modules/onetime/readme.md +0 -94
  837. package/examples/node_modules/p-limit/index.d.ts +0 -38
  838. package/examples/node_modules/p-limit/index.js +0 -57
  839. package/examples/node_modules/p-limit/license +0 -9
  840. package/examples/node_modules/p-limit/package.json +0 -84
  841. package/examples/node_modules/p-limit/readme.md +0 -101
  842. package/examples/node_modules/p-locate/index.d.ts +0 -64
  843. package/examples/node_modules/p-locate/index.js +0 -52
  844. package/examples/node_modules/p-locate/license +0 -9
  845. package/examples/node_modules/p-locate/package.json +0 -85
  846. package/examples/node_modules/p-locate/readme.md +0 -90
  847. package/examples/node_modules/p-try/index.d.ts +0 -39
  848. package/examples/node_modules/p-try/index.js +0 -9
  849. package/examples/node_modules/p-try/license +0 -9
  850. package/examples/node_modules/p-try/package.json +0 -74
  851. package/examples/node_modules/p-try/readme.md +0 -58
  852. package/examples/node_modules/path-exists/index.d.ts +0 -28
  853. package/examples/node_modules/path-exists/index.js +0 -23
  854. package/examples/node_modules/path-exists/license +0 -9
  855. package/examples/node_modules/path-exists/package.json +0 -71
  856. package/examples/node_modules/path-exists/readme.md +0 -52
  857. package/examples/node_modules/path-key/index.d.ts +0 -40
  858. package/examples/node_modules/path-key/index.js +0 -16
  859. package/examples/node_modules/path-key/license +0 -9
  860. package/examples/node_modules/path-key/package.json +0 -72
  861. package/examples/node_modules/path-key/readme.md +0 -61
  862. package/examples/node_modules/path-parse/.travis.yml +0 -9
  863. package/examples/node_modules/path-parse/LICENSE +0 -21
  864. package/examples/node_modules/path-parse/README.md +0 -42
  865. package/examples/node_modules/path-parse/index.js +0 -93
  866. package/examples/node_modules/path-parse/package.json +0 -61
  867. package/examples/node_modules/path-parse/test.js +0 -77
  868. package/examples/node_modules/pkg-dir/index.d.ts +0 -44
  869. package/examples/node_modules/pkg-dir/index.js +0 -17
  870. package/examples/node_modules/pkg-dir/license +0 -9
  871. package/examples/node_modules/pkg-dir/package.json +0 -88
  872. package/examples/node_modules/pkg-dir/readme.md +0 -66
  873. package/examples/node_modules/rechoir/LICENSE +0 -24
  874. package/examples/node_modules/rechoir/README.md +0 -74
  875. package/examples/node_modules/rechoir/index.js +0 -67
  876. package/examples/node_modules/rechoir/lib/extension.js +0 -19
  877. package/examples/node_modules/rechoir/lib/normalize.js +0 -13
  878. package/examples/node_modules/rechoir/lib/register.js +0 -15
  879. package/examples/node_modules/rechoir/package.json +0 -89
  880. package/examples/node_modules/resolve/.editorconfig +0 -37
  881. package/examples/node_modules/resolve/.eslintignore +0 -1
  882. package/examples/node_modules/resolve/.eslintrc +0 -39
  883. package/examples/node_modules/resolve/LICENSE +0 -21
  884. package/examples/node_modules/resolve/SECURITY.md +0 -3
  885. package/examples/node_modules/resolve/appveyor.yml +0 -74
  886. package/examples/node_modules/resolve/example/async.js +0 -5
  887. package/examples/node_modules/resolve/example/sync.js +0 -3
  888. package/examples/node_modules/resolve/index.js +0 -6
  889. package/examples/node_modules/resolve/lib/async.js +0 -320
  890. package/examples/node_modules/resolve/lib/caller.js +0 -8
  891. package/examples/node_modules/resolve/lib/core.js +0 -53
  892. package/examples/node_modules/resolve/lib/core.json +0 -83
  893. package/examples/node_modules/resolve/lib/is-core.js +0 -5
  894. package/examples/node_modules/resolve/lib/node-modules-paths.js +0 -42
  895. package/examples/node_modules/resolve/lib/normalize-options.js +0 -10
  896. package/examples/node_modules/resolve/lib/sync.js +0 -199
  897. package/examples/node_modules/resolve/package.json +0 -80
  898. package/examples/node_modules/resolve/readme.markdown +0 -279
  899. package/examples/node_modules/resolve/test/.eslintrc +0 -5
  900. package/examples/node_modules/resolve/test/core.js +0 -81
  901. package/examples/node_modules/resolve/test/dotdot/abc/index.js +0 -2
  902. package/examples/node_modules/resolve/test/dotdot/index.js +0 -1
  903. package/examples/node_modules/resolve/test/dotdot.js +0 -29
  904. package/examples/node_modules/resolve/test/faulty_basedir.js +0 -29
  905. package/examples/node_modules/resolve/test/filter.js +0 -34
  906. package/examples/node_modules/resolve/test/filter_sync.js +0 -33
  907. package/examples/node_modules/resolve/test/mock.js +0 -315
  908. package/examples/node_modules/resolve/test/mock_sync.js +0 -216
  909. package/examples/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
  910. package/examples/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
  911. package/examples/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
  912. package/examples/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
  913. package/examples/node_modules/resolve/test/module_dir.js +0 -56
  914. package/examples/node_modules/resolve/test/node-modules-paths.js +0 -143
  915. package/examples/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
  916. package/examples/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
  917. package/examples/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
  918. package/examples/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
  919. package/examples/node_modules/resolve/test/node_path.js +0 -70
  920. package/examples/node_modules/resolve/test/nonstring.js +0 -9
  921. package/examples/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  922. package/examples/node_modules/resolve/test/pathfilter.js +0 -75
  923. package/examples/node_modules/resolve/test/precedence/aaa/index.js +0 -1
  924. package/examples/node_modules/resolve/test/precedence/aaa/main.js +0 -1
  925. package/examples/node_modules/resolve/test/precedence/aaa.js +0 -1
  926. package/examples/node_modules/resolve/test/precedence/bbb/main.js +0 -1
  927. package/examples/node_modules/resolve/test/precedence/bbb.js +0 -1
  928. package/examples/node_modules/resolve/test/precedence.js +0 -23
  929. package/examples/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  930. package/examples/node_modules/resolve/test/resolver/baz/package.json +0 -4
  931. package/examples/node_modules/resolve/test/resolver/baz/quux.js +0 -1
  932. package/examples/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  933. package/examples/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  934. package/examples/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
  935. package/examples/node_modules/resolve/test/resolver/cup.coffee +0 -1
  936. package/examples/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
  937. package/examples/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
  938. package/examples/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
  939. package/examples/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
  940. package/examples/node_modules/resolve/test/resolver/foo.js +0 -1
  941. package/examples/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
  942. package/examples/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
  943. package/examples/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
  944. package/examples/node_modules/resolve/test/resolver/mug.coffee +0 -0
  945. package/examples/node_modules/resolve/test/resolver/mug.js +0 -0
  946. package/examples/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
  947. package/examples/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
  948. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
  949. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
  950. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  951. package/examples/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
  952. package/examples/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
  953. package/examples/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
  954. package/examples/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
  955. package/examples/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  956. package/examples/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  957. package/examples/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
  958. package/examples/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
  959. package/examples/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
  960. package/examples/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  961. package/examples/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  962. package/examples/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
  963. package/examples/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
  964. package/examples/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
  965. package/examples/node_modules/resolve/test/resolver.js +0 -450
  966. package/examples/node_modules/resolve/test/resolver_sync.js +0 -358
  967. package/examples/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  968. package/examples/node_modules/resolve/test/shadowed_core.js +0 -54
  969. package/examples/node_modules/resolve/test/subdirs.js +0 -13
  970. package/examples/node_modules/resolve/test/symlinks.js +0 -176
  971. package/examples/node_modules/resolve-cwd/index.d.ts +0 -48
  972. package/examples/node_modules/resolve-cwd/index.js +0 -5
  973. package/examples/node_modules/resolve-cwd/license +0 -9
  974. package/examples/node_modules/resolve-cwd/package.json +0 -75
  975. package/examples/node_modules/resolve-cwd/readme.md +0 -58
  976. package/examples/node_modules/resolve-from/index.d.ts +0 -31
  977. package/examples/node_modules/resolve-from/index.js +0 -47
  978. package/examples/node_modules/resolve-from/license +0 -9
  979. package/examples/node_modules/resolve-from/package.json +0 -68
  980. package/examples/node_modules/resolve-from/readme.md +0 -72
  981. package/examples/node_modules/shallow-clone/LICENSE +0 -21
  982. package/examples/node_modules/shallow-clone/README.md +0 -153
  983. package/examples/node_modules/shallow-clone/index.js +0 -83
  984. package/examples/node_modules/shallow-clone/package.json +0 -101
  985. package/examples/node_modules/shebang-command/index.js +0 -19
  986. package/examples/node_modules/shebang-command/license +0 -9
  987. package/examples/node_modules/shebang-command/package.json +0 -66
  988. package/examples/node_modules/shebang-command/readme.md +0 -34
  989. package/examples/node_modules/shebang-regex/index.d.ts +0 -22
  990. package/examples/node_modules/shebang-regex/index.js +0 -2
  991. package/examples/node_modules/shebang-regex/license +0 -9
  992. package/examples/node_modules/shebang-regex/package.json +0 -67
  993. package/examples/node_modules/shebang-regex/readme.md +0 -33
  994. package/examples/node_modules/signal-exit/CHANGELOG.md +0 -35
  995. package/examples/node_modules/signal-exit/LICENSE.txt +0 -16
  996. package/examples/node_modules/signal-exit/README.md +0 -39
  997. package/examples/node_modules/signal-exit/index.js +0 -163
  998. package/examples/node_modules/signal-exit/package.json +0 -66
  999. package/examples/node_modules/signal-exit/signals.js +0 -53
  1000. package/examples/node_modules/strip-final-newline/index.js +0 -16
  1001. package/examples/node_modules/strip-final-newline/license +0 -9
  1002. package/examples/node_modules/strip-final-newline/package.json +0 -72
  1003. package/examples/node_modules/strip-final-newline/readme.md +0 -30
  1004. package/examples/node_modules/v8-compile-cache/CHANGELOG.md +0 -53
  1005. package/examples/node_modules/v8-compile-cache/LICENSE +0 -21
  1006. package/examples/node_modules/v8-compile-cache/README.md +0 -55
  1007. package/examples/node_modules/v8-compile-cache/package.json +0 -66
  1008. package/examples/node_modules/v8-compile-cache/v8-compile-cache.js +0 -371
  1009. package/examples/node_modules/webpack-cli/CHANGELOG.md +0 -501
  1010. package/examples/node_modules/webpack-cli/LICENSE +0 -20
  1011. package/examples/node_modules/webpack-cli/README.md +0 -116
  1012. package/examples/node_modules/webpack-cli/bin/cli.js +0 -40
  1013. package/examples/node_modules/webpack-cli/lib/bootstrap.js +0 -18
  1014. package/examples/node_modules/webpack-cli/lib/index.js +0 -5
  1015. package/examples/node_modules/webpack-cli/lib/plugins/CLIPlugin.js +0 -99
  1016. package/examples/node_modules/webpack-cli/lib/utils/__tests__/get-package-manager.test.js +0 -108
  1017. package/examples/node_modules/webpack-cli/lib/utils/__tests__/prompt-installation.test.js +0 -118
  1018. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-all-lock/pnpm-lock.yaml +0 -0
  1019. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-all-lock/yarn.lock +0 -0
  1020. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-and-pnpm/pnpm-lock.yaml +0 -0
  1021. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-npm-and-yarn/yarn.lock +0 -0
  1022. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-pnpm-lock/pnpm-lock.yaml +0 -0
  1023. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/pnpm-lock.yaml +0 -0
  1024. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-yarn-and-pnpm/yarn.lock +0 -0
  1025. package/examples/node_modules/webpack-cli/lib/utils/__tests__/test-yarn-lock/yarn.lock +0 -0
  1026. package/examples/node_modules/webpack-cli/lib/utils/capitalize-first-letter.js +0 -9
  1027. package/examples/node_modules/webpack-cli/lib/utils/dynamic-import-loader.js +0 -13
  1028. package/examples/node_modules/webpack-cli/lib/utils/get-package-manager.js +0 -65
  1029. package/examples/node_modules/webpack-cli/lib/utils/index.js +0 -49
  1030. package/examples/node_modules/webpack-cli/lib/utils/logger.js +0 -11
  1031. package/examples/node_modules/webpack-cli/lib/utils/package-exists.js +0 -9
  1032. package/examples/node_modules/webpack-cli/lib/utils/prompt-installation.js +0 -58
  1033. package/examples/node_modules/webpack-cli/lib/utils/run-command.js +0 -13
  1034. package/examples/node_modules/webpack-cli/lib/utils/to-kebab-case.js +0 -5
  1035. package/examples/node_modules/webpack-cli/lib/webpack-cli.js +0 -1803
  1036. package/examples/node_modules/webpack-cli/package.json +0 -96
  1037. package/examples/node_modules/webpack-merge/CHANGELOG.md +0 -421
  1038. package/examples/node_modules/webpack-merge/LICENSE +0 -20
  1039. package/examples/node_modules/webpack-merge/README.md +0 -314
  1040. package/examples/node_modules/webpack-merge/dist/index.d.ts +0 -15
  1041. package/examples/node_modules/webpack-merge/dist/index.js +0 -262
  1042. package/examples/node_modules/webpack-merge/dist/index.js.map +0 -1
  1043. package/examples/node_modules/webpack-merge/dist/join-arrays.d.ts +0 -6
  1044. package/examples/node_modules/webpack-merge/dist/join-arrays.js +0 -69
  1045. package/examples/node_modules/webpack-merge/dist/join-arrays.js.map +0 -1
  1046. package/examples/node_modules/webpack-merge/dist/merge-with.d.ts +0 -2
  1047. package/examples/node_modules/webpack-merge/dist/merge-with.js +0 -38
  1048. package/examples/node_modules/webpack-merge/dist/merge-with.js.map +0 -1
  1049. package/examples/node_modules/webpack-merge/dist/types.d.ts +0 -13
  1050. package/examples/node_modules/webpack-merge/dist/types.js +0 -12
  1051. package/examples/node_modules/webpack-merge/dist/types.js.map +0 -1
  1052. package/examples/node_modules/webpack-merge/dist/unique.d.ts +0 -2
  1053. package/examples/node_modules/webpack-merge/dist/unique.js +0 -40
  1054. package/examples/node_modules/webpack-merge/dist/unique.js.map +0 -1
  1055. package/examples/node_modules/webpack-merge/dist/utils.d.ts +0 -5
  1056. package/examples/node_modules/webpack-merge/dist/utils.js +0 -24
  1057. package/examples/node_modules/webpack-merge/dist/utils.js.map +0 -1
  1058. package/examples/node_modules/webpack-merge/package.json +0 -86
  1059. package/examples/node_modules/which/CHANGELOG.md +0 -166
  1060. package/examples/node_modules/which/LICENSE +0 -15
  1061. package/examples/node_modules/which/README.md +0 -54
  1062. package/examples/node_modules/which/bin/node-which +0 -52
  1063. package/examples/node_modules/which/package.json +0 -76
  1064. package/examples/node_modules/which/which.js +0 -125
  1065. package/examples/node_modules/wildcard/.travis.yml +0 -9
  1066. package/examples/node_modules/wildcard/README.md +0 -99
  1067. package/examples/node_modules/wildcard/docs.json +0 -9
  1068. package/examples/node_modules/wildcard/examples/arrays.js +0 -10
  1069. package/examples/node_modules/wildcard/examples/objects.js +0 -10
  1070. package/examples/node_modules/wildcard/examples/strings.js +0 -7
  1071. package/examples/node_modules/wildcard/index.js +0 -114
  1072. package/examples/node_modules/wildcard/package.json +0 -82
  1073. package/examples/node_modules/wildcard/test/all.js +0 -3
  1074. package/examples/node_modules/wildcard/test/arrays.js +0 -33
  1075. package/examples/node_modules/wildcard/test/objects.js +0 -106
  1076. package/examples/node_modules/wildcard/test/strings.js +0 -46
  1077. package/examples/node_modules/wildcard/yarn.lock +0 -228
  1078. package/examples/objects.js +0 -35
  1079. package/examples/package.json +0 -3
  1080. package/examples/serialization.js +0 -16
  1081. package/examples/sparse_matrices.js +0 -19
  1082. package/examples/units.js +0 -108
  1083. package/lib/cjs/function/algebra/simplify/resolve.js +0 -76
  1084. package/lib/esm/function/algebra/simplify/resolve.js +0 -67
@@ -14,14 +14,15 @@ var _string = require("../../utils/string.js");
14
14
  var _factory = require("../../utils/factory.js");
15
15
 
16
16
  var name = 'det';
17
- var dependencies = ['typed', 'matrix', 'subtract', 'multiply', 'unaryMinus', 'lup'];
17
+ var dependencies = ['typed', 'matrix', 'subtract', 'multiply', 'divideScalar', 'isZero', 'unaryMinus'];
18
18
  var createDet = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {
19
19
  var typed = _ref.typed,
20
20
  matrix = _ref.matrix,
21
21
  subtract = _ref.subtract,
22
22
  multiply = _ref.multiply,
23
- unaryMinus = _ref.unaryMinus,
24
- lup = _ref.lup;
23
+ divideScalar = _ref.divideScalar,
24
+ isZero = _ref.isZero,
25
+ unaryMinus = _ref.unaryMinus;
25
26
 
26
27
  /**
27
28
  * Calculate the determinant of a matrix.
@@ -115,42 +116,47 @@ var createDet = /* #__PURE__ */(0, _factory.factory)(name, dependencies, functio
115
116
  // the determinant of [a11,a12;a21,a22] is det = a11*a22-a21*a12
116
117
  return subtract(multiply(matrix[0][0], matrix[1][1]), multiply(matrix[1][0], matrix[0][1]));
117
118
  } else {
118
- // Compute the LU decomposition
119
- var decomp = lup(matrix); // The determinant is the product of the diagonal entries of U (and those of L, but they are all 1)
120
-
121
- var det = decomp.U[0][0];
122
-
123
- for (var _i = 1; _i < rows; _i++) {
124
- det = multiply(det, decomp.U[_i][_i]);
125
- } // The determinant will be multiplied by 1 or -1 depending on the parity of the permutation matrix.
126
- // This can be determined by counting the cycles. This is roughly a linear time algorithm.
127
-
128
-
129
- var evenCycles = 0;
130
- var i = 0;
131
- var visited = [];
119
+ // Bareiss algorithm
120
+ // this algorithm have same complexity as LUP decomposition (O(n^3))
121
+ // but it preserve precision of floating point more relative to the LUP decomposition
122
+ var negated = false;
123
+ var rowIndices = new Array(rows).fill(0).map(function (_, i) {
124
+ return i;
125
+ }); // matrix index of row i
126
+
127
+ for (var k = 0; k < rows; k++) {
128
+ var k_ = rowIndices[k];
129
+
130
+ if (isZero(matrix[k_][k])) {
131
+ var _k = void 0;
132
+
133
+ for (_k = k + 1; _k < rows; _k++) {
134
+ if (!isZero(matrix[rowIndices[_k]][k])) {
135
+ k_ = rowIndices[_k];
136
+ rowIndices[_k] = rowIndices[k];
137
+ rowIndices[k] = k_;
138
+ negated = !negated;
139
+ break;
140
+ }
141
+ }
132
142
 
133
- while (true) {
134
- while (visited[i]) {
135
- i++;
143
+ if (_k === rows) return matrix[k_][k]; // some zero of the type
136
144
  }
137
145
 
138
- if (i >= rows) break;
139
- var j = i;
140
- var cycleLen = 0;
146
+ var piv = matrix[k_][k];
147
+ var piv_ = k === 0 ? 1 : matrix[rowIndices[k - 1]][k - 1];
141
148
 
142
- while (!visited[decomp.p[j]]) {
143
- visited[decomp.p[j]] = true;
144
- j = decomp.p[j];
145
- cycleLen++;
146
- }
149
+ for (var i = k + 1; i < rows; i++) {
150
+ var i_ = rowIndices[i];
147
151
 
148
- if (cycleLen % 2 === 0) {
149
- evenCycles++;
152
+ for (var j = k + 1; j < rows; j++) {
153
+ matrix[i_][j] = divideScalar(subtract(multiply(matrix[i_][j], piv), multiply(matrix[i_][k], matrix[k_][j])), piv_);
154
+ }
150
155
  }
151
156
  }
152
157
 
153
- return evenCycles % 2 === 0 ? det : unaryMinus(det);
158
+ var det = matrix[rowIndices[rows - 1]][rows - 1];
159
+ return negated ? unaryMinus(det) : det;
154
160
  }
155
161
  }
156
162
  });
@@ -11,7 +11,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
11
11
 
12
12
  var _object = require("../../../utils/object.js");
13
13
 
14
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
14
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
15
15
 
16
16
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17
17
 
@@ -54,33 +54,37 @@ function createComplexEigs(_ref) {
54
54
  } // TODO check if any row/col are zero except the diagonal
55
55
  // make sure corresponding rows and columns have similar magnitude
56
56
  // important because of numerical stability
57
+ // MODIFIES arr by side effect!
57
58
 
58
59
 
59
60
  var R = balance(arr, N, prec, type, findVectors); // R is the row transformation matrix
60
- // A' = R A R⁻¹, A is the original matrix
61
+ // arr = A' = R A R⁻¹, A is the original matrix
61
62
  // (if findVectors is false, R is undefined)
63
+ // (And so to return to original matrix: A = R⁻¹ arr R)
62
64
  // TODO if magnitudes of elements vary over many orders,
63
65
  // move greatest elements to the top left corner
64
66
  // using similarity transformations, reduce the matrix
65
67
  // to Hessenberg form (upper triangular plus one subdiagonal row)
66
68
  // updates the transformation matrix R with new row operationsq
69
+ // MODIFIES arr by side effect!
67
70
 
68
- reduceToHessenberg(arr, N, prec, type, findVectors, R); // find eigenvalues
71
+ reduceToHessenberg(arr, N, prec, type, findVectors, R); // still true that original A = R⁻¹ arr R)
72
+ // find eigenvalues
69
73
 
70
74
  var _iterateUntilTriangul = iterateUntilTriangular(arr, N, prec, type, findVectors),
71
75
  values = _iterateUntilTriangul.values,
72
76
  C = _iterateUntilTriangul.C; // values is the list of eigenvalues, C is the column
73
- // transformation matrix that transforms the hessenberg
74
- // matrix to upper triangular
75
- // compose transformations A hess. and hess. triang.
77
+ // transformation matrix that transforms arr, the hessenberg
78
+ // matrix, to upper triangular
79
+ // (So U = C⁻¹ arr C and the relationship between current arr
80
+ // and original A is unchanged.)
76
81
 
77
82
 
78
- C = multiply(inv(R), C);
79
83
  var vectors;
80
84
 
81
85
  if (findVectors) {
82
- vectors = findEigenvectors(arr, N, C, values, prec, type);
83
- vectors = matrixFromColumns.apply(void 0, (0, _toConsumableArray2["default"])(vectors));
86
+ vectors = findEigenvectors(arr, N, C, R, values, prec, type);
87
+ vectors = matrixFromColumns.apply(void 0, (0, _toConsumableArray2.default)(vectors));
84
88
  }
85
89
 
86
90
  return {
@@ -100,8 +104,9 @@ function createComplexEigs(_ref) {
100
104
  function balance(arr, N, prec, type, findVectors) {
101
105
  var big = type === 'BigNumber';
102
106
  var cplx = type === 'Complex';
103
- var zero = big ? bignumber(0) : cplx ? complex(0) : 0;
104
- var one = big ? bignumber(1) : cplx ? complex(1) : 1; // base of the floating-point arithmetic
107
+ var realzero = big ? bignumber(0) : 0;
108
+ var one = big ? bignumber(1) : cplx ? complex(1) : 1;
109
+ var realone = big ? bignumber(1) : 1; // base of the floating-point arithmetic
105
110
 
106
111
  var radix = big ? bignumber(10) : 2;
107
112
  var radixSq = multiplyScalar(radix, radix); // the diagonal transformation matrix R
@@ -122,12 +127,13 @@ function createComplexEigs(_ref) {
122
127
  for (var i = 0; i < N; i++) {
123
128
  // compute the taxicab norm of i-th column and row
124
129
  // TODO optimize for complex numbers
125
- var colNorm = zero;
126
- var rowNorm = zero;
130
+ var colNorm = realzero;
131
+ var rowNorm = realzero;
127
132
 
128
133
  for (var j = 0; j < N; j++) {
129
134
  if (i === j) continue;
130
- var c = abs(arr[i][j]);
135
+ var c = abs(arr[i][j]); // should be real
136
+
131
137
  colNorm = addScalar(colNorm, c);
132
138
  rowNorm = addScalar(rowNorm, c);
133
139
  }
@@ -136,7 +142,7 @@ function createComplexEigs(_ref) {
136
142
  // find integer power closest to balancing the matrix
137
143
  // (we want to scale only by integer powers of radix,
138
144
  // so that we don't lose any precision due to round-off)
139
- var f = one;
145
+ var f = realone;
140
146
  var _c = colNorm;
141
147
  var rowDivRadix = divideScalar(rowNorm, radix);
142
148
  var rowMulRadix = multiplyScalar(rowNorm, radix);
@@ -360,7 +366,7 @@ function createComplexEigs(_ref) {
360
366
  } else if (n === 2 || smaller(abs(arr[n - 2][n - 3]), prec)) {
361
367
  lastConvergenceBefore = 0;
362
368
  var ll = eigenvalues2x2(arr[n - 2][n - 2], arr[n - 2][n - 1], arr[n - 1][n - 2], arr[n - 1][n - 1]);
363
- lambdas.push.apply(lambdas, (0, _toConsumableArray2["default"])(ll)); // keep track of transformations
369
+ lambdas.push.apply(lambdas, (0, _toConsumableArray2.default)(ll)); // keep track of transformations
364
370
 
365
371
  if (findVectors) {
366
372
  Sdiag.unshift(jordanBase2x2(arr[n - 2][n - 2], arr[n - 2][n - 1], arr[n - 1][n - 2], arr[n - 1][n - 1], ll[0], ll[1], prec, type));
@@ -410,16 +416,17 @@ function createComplexEigs(_ref) {
410
416
  };
411
417
  }
412
418
  /**
413
- * @param {Matrix} A original matrix
419
+ * @param {Matrix} A hessenberg-form matrix
414
420
  * @param {number} N size of A
415
421
  * @param {Matrix} C column transformation matrix that turns A into upper triangular
422
+ * @param {Matrix} R similarity that turns original matrix into A
416
423
  * @param {number[]} values array of eigenvalues of A
417
424
  * @param {'number'|'BigNumber'|'Complex'} type
418
425
  * @returns {number[][]} eigenvalues
419
426
  */
420
427
 
421
428
 
422
- function findEigenvectors(A, N, C, values, prec, type) {
429
+ function findEigenvectors(A, N, C, R, values, prec, type) {
423
430
  var Cinv = inv(C);
424
431
  var U = multiply(Cinv, A, C);
425
432
  var big = type === 'BigNumber';
@@ -436,12 +443,12 @@ function createComplexEigs(_ref) {
436
443
 
437
444
  try {
438
445
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
439
- var _λ = _step.value;
446
+ var λ = _step.value;
440
447
 
441
- var _i4 = indexOf(uniqueValues, _λ, equal);
448
+ var _i4 = indexOf(uniqueValues, λ, equal);
442
449
 
443
450
  if (_i4 === -1) {
444
- uniqueValues.push(_λ);
451
+ uniqueValues.push(λ);
445
452
  multiplicities.push(1);
446
453
  } else {
447
454
  multiplicities[_i4] += 1;
@@ -463,21 +470,16 @@ function createComplexEigs(_ref) {
463
470
 
464
471
  var failedLambdas = [];
465
472
 
466
- for (var i = 0; i < len; i++) {
473
+ var _loop = function _loop(i) {
467
474
  var λ = uniqueValues[i];
475
+ var S = subtract(U, multiply(λ, E)); // the characteristic matrix
468
476
 
469
- var _A = subtract(U, multiply(λ, E)); // the characteristic matrix
470
-
471
-
472
- var solutions = usolveAll(_A, b);
473
- solutions = solutions.map(function (v) {
474
- return multiply(C, v);
475
- });
477
+ var solutions = usolveAll(S, b);
476
478
  solutions.shift(); // ignore the null vector
477
479
  // looks like we missed something, try inverse iteration
478
480
 
479
481
  while (solutions.length < multiplicities[i]) {
480
- var approxVec = inverseIterate(_A, N, solutions, prec, type);
482
+ var approxVec = inverseIterate(S, N, solutions, prec, type);
481
483
 
482
484
  if (approxVec == null) {
483
485
  // no more vectors were found
@@ -486,11 +488,20 @@ function createComplexEigs(_ref) {
486
488
  }
487
489
 
488
490
  solutions.push(approxVec);
489
- }
491
+ } // Transform back into original array coordinates
492
+
490
493
 
491
- vectors.push.apply(vectors, (0, _toConsumableArray2["default"])(solutions.map(function (v) {
494
+ var correction = multiply(inv(R), C);
495
+ solutions = solutions.map(function (v) {
496
+ return multiply(correction, v);
497
+ });
498
+ vectors.push.apply(vectors, (0, _toConsumableArray2.default)(solutions.map(function (v) {
492
499
  return flatten(v);
493
500
  })));
501
+ };
502
+
503
+ for (var i = 0; i < len; i++) {
504
+ _loop(i);
494
505
  }
495
506
 
496
507
  if (failedLambdas.length !== 0) {
@@ -568,7 +579,7 @@ function createComplexEigs(_ref) {
568
579
  for (var i = 0; i < arr.length; i++) {
569
580
  var _arr$i;
570
581
 
571
- (_arr$i = arr[i]).push.apply(_arr$i, (0, _toConsumableArray2["default"])(Array(N - arr[i].length).fill(0)));
582
+ (_arr$i = arr[i]).push.apply(_arr$i, (0, _toConsumableArray2.default)(Array(N - arr[i].length).fill(0)));
572
583
  } // add rows
573
584
 
574
585
 
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.createFft = void 0;
9
+
10
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
+
12
+ var _array = require("../../utils/array.js");
13
+
14
+ var _factory = require("../../utils/factory.js");
15
+
16
+ var name = 'fft';
17
+ var dependencies = ['typed', 'matrix', 'addScalar', 'multiplyScalar', 'divideScalar', 'exp', 'tau', 'i'];
18
+ var createFft = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {
19
+ var typed = _ref.typed,
20
+ matrix = _ref.matrix,
21
+ addScalar = _ref.addScalar,
22
+ multiplyScalar = _ref.multiplyScalar,
23
+ divideScalar = _ref.divideScalar,
24
+ exp = _ref.exp,
25
+ tau = _ref.tau,
26
+ I = _ref.i;
27
+
28
+ /**
29
+ * Calculate N-dimensional fourier transform
30
+ *
31
+ * Syntax:
32
+ *
33
+ * math.fft(arr)
34
+ *
35
+ * Examples:
36
+ *
37
+ * math.fft([[1, 0], [1, 0]]) // returns [[{re:2, im:0}, {re:2, im:0}], [{re:0, im:0}, {re:0, im:0}]]
38
+ *
39
+ *
40
+ * See Also:
41
+ *
42
+ * ifft
43
+ *
44
+ * @param {Array | Matrix} arr An array or matrix
45
+ * @return {Array | Matrix} N-dimensional fourier transformation of the array
46
+ */
47
+ return typed(name, {
48
+ Array: _ndFft,
49
+ Matrix: function Matrix(matrix) {
50
+ return matrix.create(_ndFft(matrix.toArray()));
51
+ }
52
+ });
53
+ /**
54
+ * Perform an N-dimensional Fourier transform
55
+ *
56
+ * @param {Array} arr The array
57
+ * @return {Array} resulting array
58
+ */
59
+
60
+ function _ndFft(arr) {
61
+ var size = (0, _array.arraySize)(arr);
62
+ if (size.length === 1) return _fft(arr, size[0]); // ndFft along dimension 1,...,N-1 then 1dFft along dimension 0
63
+
64
+ return _1dFft(arr.map(function (slice) {
65
+ return _ndFft(slice, size.slice(1));
66
+ }), 0);
67
+ }
68
+ /**
69
+ * Perform an 1-dimensional Fourier transform
70
+ *
71
+ * @param {Array} arr The array
72
+ * @param {number} dim dimension of the array to perform on
73
+ * @return {Array} resulting array
74
+ */
75
+
76
+
77
+ function _1dFft(arr, dim) {
78
+ var size = (0, _array.arraySize)(arr);
79
+ if (dim !== 0) return new Array(size[0]).fill(0).map(function (_, i) {
80
+ return _1dFft(arr[i], dim - 1);
81
+ });
82
+ if (size.length === 1) return _fft(arr);
83
+
84
+ function _transpose(arr) {
85
+ // Swap first 2 dimensions
86
+ var size = (0, _array.arraySize)(arr);
87
+ return new Array(size[1]).fill(0).map(function (_, j) {
88
+ return new Array(size[0]).fill(0).map(function (_, i) {
89
+ return arr[i][j];
90
+ });
91
+ });
92
+ }
93
+
94
+ return _transpose(_1dFft(_transpose(arr), 1));
95
+ }
96
+ /**
97
+ * Perform an 1-dimensional Fourier transform
98
+ *
99
+ * @param {Array} arr The array
100
+ * @return {Array} resulting array
101
+ */
102
+
103
+
104
+ function _fft(arr) {
105
+ var len = arr.length;
106
+ if (len === 1) return [arr[0]];
107
+
108
+ if (len % 2 === 0) {
109
+ var ret = [].concat((0, _toConsumableArray2.default)(_fft(arr.filter(function (_, i) {
110
+ return i % 2 === 0;
111
+ }), len / 2)), (0, _toConsumableArray2.default)(_fft(arr.filter(function (_, i) {
112
+ return i % 2 === 1;
113
+ }), len / 2)));
114
+
115
+ for (var k = 0; k < len / 2; k++) {
116
+ var p = ret[k];
117
+ var q = multiplyScalar(ret[k + len / 2], exp(multiplyScalar(multiplyScalar(tau, I), divideScalar(-k, len))));
118
+ ret[k] = addScalar(p, q);
119
+ ret[k + len / 2] = addScalar(p, multiplyScalar(-1, q));
120
+ }
121
+
122
+ return ret;
123
+ }
124
+
125
+ throw new Error('Can only calculate FFT of power-of-two size');
126
+ }
127
+ });
128
+ exports.createFft = createFft;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createIfft = void 0;
7
+
8
+ var _array = require("../../utils/array.js");
9
+
10
+ var _factory = require("../../utils/factory.js");
11
+
12
+ var _is = require("../../utils/is.js");
13
+
14
+ var name = 'ifft';
15
+ var dependencies = ['typed', 'fft', 'dotDivide', 'conj'];
16
+ var createIfft = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {
17
+ var typed = _ref.typed,
18
+ fft = _ref.fft,
19
+ dotDivide = _ref.dotDivide,
20
+ conj = _ref.conj;
21
+
22
+ /**
23
+ * Calculate N-dimensional inverse fourier transform
24
+ *
25
+ * Syntax:
26
+ *
27
+ * math.ifft(arr)
28
+ *
29
+ * Examples:
30
+ *
31
+ * math.ifft([[2, 2], [0, 0]]) // returns [[{re:1, im:0}, {re:0, im:0}], [{re:1, im:0}, {re:0, im:0}]]
32
+ *
33
+ * See Also:
34
+ *
35
+ * fft
36
+ *
37
+ * @param {Array | Matrix} arr An array or matrix
38
+ * @return {Array | Matrix} N-dimensional fourier transformation of the array
39
+ */
40
+ return typed(name, {
41
+ 'Array | Matrix': function ArrayMatrix(arr) {
42
+ var size = (0, _is.isMatrix)(arr) ? arr.size() : (0, _array.arraySize)(arr);
43
+ return dotDivide(conj(fft(conj(arr))), size.reduce(function (acc, curr) {
44
+ return acc * curr;
45
+ }, 1));
46
+ }
47
+ });
48
+ });
49
+ exports.createIfft = createIfft;
@@ -15,8 +15,15 @@ var createMap = /* #__PURE__ */(0, _factory.factory)(name, dependencies, functio
15
15
  var typed = _ref.typed;
16
16
 
17
17
  /**
18
- * Create a new matrix or array with the results of the callback function executed on
19
- * each entry of the matrix/array.
18
+ * Create a new matrix or array with the results of a callback function executed on
19
+ * each entry of a given matrix/array.
20
+ *
21
+ * For each entry of the input, the callback is invoked with three arguments:
22
+ * the value of the entry, the index at which that entry occurs, and the full
23
+ * matrix/array being traversed. Note that because the matrix/array might be
24
+ * multidimensional, the "index" argument is always an array of numbers giving
25
+ * the index in each dimension. This is true even for vectors: the "index"
26
+ * argument is an array of length 1, rather than simply a number.
20
27
  *
21
28
  * Syntax:
22
29
  *
@@ -28,15 +35,25 @@ var createMap = /* #__PURE__ */(0, _factory.factory)(name, dependencies, functio
28
35
  * return value * value
29
36
  * }) // returns [1, 4, 9]
30
37
  *
38
+ * // The calling convention for the callback can cause subtleties:
39
+ * math.map([1, 2, 3], math.format)
40
+ * // throws TypeError: map attempted to call 'format(1,[0])' but argument 2 of type Array does not match expected type number or function or Object or string or boolean
41
+ * // [This happens because `format` _can_ take a second argument,
42
+ * // but its semantics don't match that of the 2nd argument `map` provides]
43
+ *
44
+ * // To avoid this error, use a function that takes exactly the
45
+ * // desired arguments:
46
+ * math.map([1, 2, 3], x => math.format(x)) // returns ['1', '2', '3']
47
+ *
31
48
  * See also:
32
49
  *
33
50
  * filter, forEach, sort
34
51
  *
35
- * @param {Matrix | Array} x The matrix to iterate on.
36
- * @param {Function} callback The callback method is invoked with three
37
- * parameters: the value of the element, the index
38
- * of the element, and the matrix being traversed.
39
- * @return {Matrix | array} Transformed map of x
52
+ * @param {Matrix | Array} x The input to iterate on.
53
+ * @param {Function} callback
54
+ * The function to call (as described above) on each entry of the input
55
+ * @return {Matrix | array}
56
+ * Transformed map of x; always has the same type and shape as x
40
57
  */
41
58
  return typed(name, {
42
59
  'Array, function': _map,
@@ -66,14 +83,35 @@ function _map(array, callback) {
66
83
  return recurse(child, index.concat(i));
67
84
  });
68
85
  } else {
69
- // invoke the callback function with the right number of arguments
70
- if (args === 1) {
71
- return callback(value);
72
- } else if (args === 2) {
73
- return callback(value, index);
74
- } else {
75
- // 3 or -1
76
- return callback(value, index, array);
86
+ try {
87
+ // invoke the callback function with the right number of arguments
88
+ if (args === 1) {
89
+ return callback(value);
90
+ } else if (args === 2) {
91
+ return callback(value, index);
92
+ } else {
93
+ // 3 or -1
94
+ return callback(value, index, array);
95
+ }
96
+ } catch (err) {
97
+ // But maybe the arguments still weren't right
98
+ if (err instanceof TypeError && 'data' in err && err.data.category === 'wrongType') {
99
+ var newmsg = "map attempted to call '".concat(err.data.fn, "(").concat(value);
100
+ var indexString = JSON.stringify(index);
101
+
102
+ if (args === 2) {
103
+ newmsg += ',' + indexString;
104
+ } else if (args !== 1) {
105
+ newmsg += ",".concat(indexString, ",").concat(array);
106
+ }
107
+
108
+ newmsg += ")' but argument ".concat(err.data.index + 1, " of type ");
109
+ newmsg += "".concat(err.data.actual, " does not match expected type ");
110
+ newmsg += err.data.expected.join(' or ');
111
+ throw new TypeError(newmsg);
112
+ }
113
+
114
+ throw err;
77
115
  }
78
116
  }
79
117
  };
@@ -7,7 +7,7 @@ exports.createMatrixFromColumns = void 0;
7
7
 
8
8
  var _factory = require("../../utils/factory.js");
9
9
 
10
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
10
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
11
11
 
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
13
 
@@ -7,7 +7,7 @@ exports.createMatrixFromRows = void 0;
7
7
 
8
8
  var _factory = require("../../utils/factory.js");
9
9
 
10
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
10
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
11
11
 
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
13