mathjs-min 11.7.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mathjs-min might be problematic. Click here for more details.

Files changed (2401) hide show
  1. package/CONTRIBUTING.md +24 -0
  2. package/HISTORY.md +2872 -0
  3. package/LICENSE +176 -0
  4. package/NOTICE +16 -0
  5. package/README.md +235 -0
  6. package/bin/cli.js +432 -0
  7. package/bin/package.json +3 -0
  8. package/dist/math.js +3 -0
  9. package/dist/math.min.js +3 -0
  10. package/dist/package.json +3 -0
  11. package/lib/cjs/constants.js +127 -0
  12. package/lib/cjs/core/config.js +26 -0
  13. package/lib/cjs/core/create.js +207 -0
  14. package/lib/cjs/core/function/config.js +118 -0
  15. package/lib/cjs/core/function/import.js +340 -0
  16. package/lib/cjs/core/function/typed.js +421 -0
  17. package/lib/cjs/defaultInstance.js +13 -0
  18. package/lib/cjs/entry/allFactoriesAny.js +14 -0
  19. package/lib/cjs/entry/allFactoriesNumber.js +14 -0
  20. package/lib/cjs/entry/configReadonly.js +22 -0
  21. package/lib/cjs/entry/dependenciesAny/dependenciesAbs.generated.js +18 -0
  22. package/lib/cjs/entry/dependenciesAny/dependenciesAccessorNode.generated.js +20 -0
  23. package/lib/cjs/entry/dependenciesAny/dependenciesAcos.generated.js +20 -0
  24. package/lib/cjs/entry/dependenciesAny/dependenciesAcosh.generated.js +20 -0
  25. package/lib/cjs/entry/dependenciesAny/dependenciesAcot.generated.js +20 -0
  26. package/lib/cjs/entry/dependenciesAny/dependenciesAcoth.generated.js +22 -0
  27. package/lib/cjs/entry/dependenciesAny/dependenciesAcsc.generated.js +22 -0
  28. package/lib/cjs/entry/dependenciesAny/dependenciesAcsch.generated.js +20 -0
  29. package/lib/cjs/entry/dependenciesAny/dependenciesAdd.generated.js +30 -0
  30. package/lib/cjs/entry/dependenciesAny/dependenciesAddScalar.generated.js +18 -0
  31. package/lib/cjs/entry/dependenciesAny/dependenciesAnd.generated.js +28 -0
  32. package/lib/cjs/entry/dependenciesAny/dependenciesApply.generated.js +20 -0
  33. package/lib/cjs/entry/dependenciesAny/dependenciesApplyTransform.generated.js +20 -0
  34. package/lib/cjs/entry/dependenciesAny/dependenciesArg.generated.js +18 -0
  35. package/lib/cjs/entry/dependenciesAny/dependenciesArrayNode.generated.js +18 -0
  36. package/lib/cjs/entry/dependenciesAny/dependenciesAsec.generated.js +22 -0
  37. package/lib/cjs/entry/dependenciesAny/dependenciesAsech.generated.js +22 -0
  38. package/lib/cjs/entry/dependenciesAny/dependenciesAsin.generated.js +20 -0
  39. package/lib/cjs/entry/dependenciesAny/dependenciesAsinh.generated.js +18 -0
  40. package/lib/cjs/entry/dependenciesAny/dependenciesAssignmentNode.generated.js +22 -0
  41. package/lib/cjs/entry/dependenciesAny/dependenciesAtan.generated.js +18 -0
  42. package/lib/cjs/entry/dependenciesAny/dependenciesAtan2.generated.js +28 -0
  43. package/lib/cjs/entry/dependenciesAny/dependenciesAtanh.generated.js +20 -0
  44. package/lib/cjs/entry/dependenciesAny/dependenciesAtomicMass.generated.js +20 -0
  45. package/lib/cjs/entry/dependenciesAny/dependenciesAvogadro.generated.js +20 -0
  46. package/lib/cjs/entry/dependenciesAny/dependenciesBellNumbers.generated.js +26 -0
  47. package/lib/cjs/entry/dependenciesAny/dependenciesBigNumberClass.generated.js +16 -0
  48. package/lib/cjs/entry/dependenciesAny/dependenciesBignumber.generated.js +20 -0
  49. package/lib/cjs/entry/dependenciesAny/dependenciesBin.generated.js +20 -0
  50. package/lib/cjs/entry/dependenciesAny/dependenciesBitAnd.generated.js +24 -0
  51. package/lib/cjs/entry/dependenciesAny/dependenciesBitNot.generated.js +18 -0
  52. package/lib/cjs/entry/dependenciesAny/dependenciesBitOr.generated.js +26 -0
  53. package/lib/cjs/entry/dependenciesAny/dependenciesBitXor.generated.js +24 -0
  54. package/lib/cjs/entry/dependenciesAny/dependenciesBlockNode.generated.js +20 -0
  55. package/lib/cjs/entry/dependenciesAny/dependenciesBohrMagneton.generated.js +20 -0
  56. package/lib/cjs/entry/dependenciesAny/dependenciesBohrRadius.generated.js +20 -0
  57. package/lib/cjs/entry/dependenciesAny/dependenciesBoltzmann.generated.js +20 -0
  58. package/lib/cjs/entry/dependenciesAny/dependenciesBoolean.generated.js +18 -0
  59. package/lib/cjs/entry/dependenciesAny/dependenciesCatalan.generated.js +30 -0
  60. package/lib/cjs/entry/dependenciesAny/dependenciesCbrt.generated.js +30 -0
  61. package/lib/cjs/entry/dependenciesAny/dependenciesCeil.generated.js +28 -0
  62. package/lib/cjs/entry/dependenciesAny/dependenciesChain.generated.js +20 -0
  63. package/lib/cjs/entry/dependenciesAny/dependenciesChainClass.generated.js +18 -0
  64. package/lib/cjs/entry/dependenciesAny/dependenciesClassicalElectronRadius.generated.js +20 -0
  65. package/lib/cjs/entry/dependenciesAny/dependenciesClone.generated.js +18 -0
  66. package/lib/cjs/entry/dependenciesAny/dependenciesColumn.generated.js +24 -0
  67. package/lib/cjs/entry/dependenciesAny/dependenciesColumnTransform.generated.js +24 -0
  68. package/lib/cjs/entry/dependenciesAny/dependenciesCombinations.generated.js +18 -0
  69. package/lib/cjs/entry/dependenciesAny/dependenciesCombinationsWithRep.generated.js +18 -0
  70. package/lib/cjs/entry/dependenciesAny/dependenciesCompare.generated.js +30 -0
  71. package/lib/cjs/entry/dependenciesAny/dependenciesCompareNatural.generated.js +20 -0
  72. package/lib/cjs/entry/dependenciesAny/dependenciesCompareText.generated.js +22 -0
  73. package/lib/cjs/entry/dependenciesAny/dependenciesCompile.generated.js +20 -0
  74. package/lib/cjs/entry/dependenciesAny/dependenciesComplex.generated.js +20 -0
  75. package/lib/cjs/entry/dependenciesAny/dependenciesComplexClass.generated.js +16 -0
  76. package/lib/cjs/entry/dependenciesAny/dependenciesComposition.generated.js +30 -0
  77. package/lib/cjs/entry/dependenciesAny/dependenciesConcat.generated.js +22 -0
  78. package/lib/cjs/entry/dependenciesAny/dependenciesConcatTransform.generated.js +22 -0
  79. package/lib/cjs/entry/dependenciesAny/dependenciesConditionalNode.generated.js +18 -0
  80. package/lib/cjs/entry/dependenciesAny/dependenciesConductanceQuantum.generated.js +20 -0
  81. package/lib/cjs/entry/dependenciesAny/dependenciesConj.generated.js +18 -0
  82. package/lib/cjs/entry/dependenciesAny/dependenciesConstantNode.generated.js +18 -0
  83. package/lib/cjs/entry/dependenciesAny/dependenciesCos.generated.js +18 -0
  84. package/lib/cjs/entry/dependenciesAny/dependenciesCosh.generated.js +18 -0
  85. package/lib/cjs/entry/dependenciesAny/dependenciesCot.generated.js +20 -0
  86. package/lib/cjs/entry/dependenciesAny/dependenciesCoth.generated.js +20 -0
  87. package/lib/cjs/entry/dependenciesAny/dependenciesCoulomb.generated.js +20 -0
  88. package/lib/cjs/entry/dependenciesAny/dependenciesCount.generated.js +22 -0
  89. package/lib/cjs/entry/dependenciesAny/dependenciesCreateUnit.generated.js +20 -0
  90. package/lib/cjs/entry/dependenciesAny/dependenciesCross.generated.js +24 -0
  91. package/lib/cjs/entry/dependenciesAny/dependenciesCsc.generated.js +20 -0
  92. package/lib/cjs/entry/dependenciesAny/dependenciesCsch.generated.js +20 -0
  93. package/lib/cjs/entry/dependenciesAny/dependenciesCtranspose.generated.js +22 -0
  94. package/lib/cjs/entry/dependenciesAny/dependenciesCube.generated.js +18 -0
  95. package/lib/cjs/entry/dependenciesAny/dependenciesCumSum.generated.js +22 -0
  96. package/lib/cjs/entry/dependenciesAny/dependenciesCumSumTransform.generated.js +22 -0
  97. package/lib/cjs/entry/dependenciesAny/dependenciesDeepEqual.generated.js +20 -0
  98. package/lib/cjs/entry/dependenciesAny/dependenciesDenseMatrixClass.generated.js +18 -0
  99. package/lib/cjs/entry/dependenciesAny/dependenciesDerivative.generated.js +38 -0
  100. package/lib/cjs/entry/dependenciesAny/dependenciesDet.generated.js +30 -0
  101. package/lib/cjs/entry/dependenciesAny/dependenciesDeuteronMass.generated.js +20 -0
  102. package/lib/cjs/entry/dependenciesAny/dependenciesDiag.generated.js +24 -0
  103. package/lib/cjs/entry/dependenciesAny/dependenciesDiff.generated.js +24 -0
  104. package/lib/cjs/entry/dependenciesAny/dependenciesDiffTransform.generated.js +26 -0
  105. package/lib/cjs/entry/dependenciesAny/dependenciesDistance.generated.js +32 -0
  106. package/lib/cjs/entry/dependenciesAny/dependenciesDivide.generated.js +28 -0
  107. package/lib/cjs/entry/dependenciesAny/dependenciesDivideScalar.generated.js +20 -0
  108. package/lib/cjs/entry/dependenciesAny/dependenciesDot.generated.js +26 -0
  109. package/lib/cjs/entry/dependenciesAny/dependenciesDotDivide.generated.js +28 -0
  110. package/lib/cjs/entry/dependenciesAny/dependenciesDotMultiply.generated.js +26 -0
  111. package/lib/cjs/entry/dependenciesAny/dependenciesDotPow.generated.js +28 -0
  112. package/lib/cjs/entry/dependenciesAny/dependenciesE.generated.js +18 -0
  113. package/lib/cjs/entry/dependenciesAny/dependenciesEfimovFactor.generated.js +18 -0
  114. package/lib/cjs/entry/dependenciesAny/dependenciesEigs.generated.js +76 -0
  115. package/lib/cjs/entry/dependenciesAny/dependenciesElectricConstant.generated.js +20 -0
  116. package/lib/cjs/entry/dependenciesAny/dependenciesElectronMass.generated.js +20 -0
  117. package/lib/cjs/entry/dependenciesAny/dependenciesElementaryCharge.generated.js +20 -0
  118. package/lib/cjs/entry/dependenciesAny/dependenciesEqual.generated.js +26 -0
  119. package/lib/cjs/entry/dependenciesAny/dependenciesEqualScalar.generated.js +18 -0
  120. package/lib/cjs/entry/dependenciesAny/dependenciesEqualText.generated.js +22 -0
  121. package/lib/cjs/entry/dependenciesAny/dependenciesErf.generated.js +18 -0
  122. package/lib/cjs/entry/dependenciesAny/dependenciesEvaluate.generated.js +20 -0
  123. package/lib/cjs/entry/dependenciesAny/dependenciesExp.generated.js +18 -0
  124. package/lib/cjs/entry/dependenciesAny/dependenciesExpm.generated.js +28 -0
  125. package/lib/cjs/entry/dependenciesAny/dependenciesExpm1.generated.js +20 -0
  126. package/lib/cjs/entry/dependenciesAny/dependenciesFactorial.generated.js +20 -0
  127. package/lib/cjs/entry/dependenciesAny/dependenciesFalse.generated.js +16 -0
  128. package/lib/cjs/entry/dependenciesAny/dependenciesFaraday.generated.js +20 -0
  129. package/lib/cjs/entry/dependenciesAny/dependenciesFermiCoupling.generated.js +20 -0
  130. package/lib/cjs/entry/dependenciesAny/dependenciesFft.generated.js +42 -0
  131. package/lib/cjs/entry/dependenciesAny/dependenciesFibonacciHeapClass.generated.js +20 -0
  132. package/lib/cjs/entry/dependenciesAny/dependenciesFilter.generated.js +18 -0
  133. package/lib/cjs/entry/dependenciesAny/dependenciesFilterTransform.generated.js +18 -0
  134. package/lib/cjs/entry/dependenciesAny/dependenciesFineStructure.generated.js +18 -0
  135. package/lib/cjs/entry/dependenciesAny/dependenciesFirstRadiation.generated.js +20 -0
  136. package/lib/cjs/entry/dependenciesAny/dependenciesFix.generated.js +32 -0
  137. package/lib/cjs/entry/dependenciesAny/dependenciesFlatten.generated.js +20 -0
  138. package/lib/cjs/entry/dependenciesAny/dependenciesFloor.generated.js +28 -0
  139. package/lib/cjs/entry/dependenciesAny/dependenciesForEach.generated.js +18 -0
  140. package/lib/cjs/entry/dependenciesAny/dependenciesForEachTransform.generated.js +18 -0
  141. package/lib/cjs/entry/dependenciesAny/dependenciesFormat.generated.js +18 -0
  142. package/lib/cjs/entry/dependenciesAny/dependenciesFraction.generated.js +20 -0
  143. package/lib/cjs/entry/dependenciesAny/dependenciesFractionClass.generated.js +16 -0
  144. package/lib/cjs/entry/dependenciesAny/dependenciesFunctionAssignmentNode.generated.js +20 -0
  145. package/lib/cjs/entry/dependenciesAny/dependenciesFunctionNode.generated.js +20 -0
  146. package/lib/cjs/entry/dependenciesAny/dependenciesGamma.generated.js +26 -0
  147. package/lib/cjs/entry/dependenciesAny/dependenciesGasConstant.generated.js +20 -0
  148. package/lib/cjs/entry/dependenciesAny/dependenciesGcd.generated.js +28 -0
  149. package/lib/cjs/entry/dependenciesAny/dependenciesGetMatrixDataType.generated.js +18 -0
  150. package/lib/cjs/entry/dependenciesAny/dependenciesGravitationConstant.generated.js +20 -0
  151. package/lib/cjs/entry/dependenciesAny/dependenciesGravity.generated.js +20 -0
  152. package/lib/cjs/entry/dependenciesAny/dependenciesHartreeEnergy.generated.js +20 -0
  153. package/lib/cjs/entry/dependenciesAny/dependenciesHasNumericValue.generated.js +20 -0
  154. package/lib/cjs/entry/dependenciesAny/dependenciesHelp.generated.js +20 -0
  155. package/lib/cjs/entry/dependenciesAny/dependenciesHelpClass.generated.js +18 -0
  156. package/lib/cjs/entry/dependenciesAny/dependenciesHex.generated.js +20 -0
  157. package/lib/cjs/entry/dependenciesAny/dependenciesHypot.generated.js +32 -0
  158. package/lib/cjs/entry/dependenciesAny/dependenciesI.generated.js +18 -0
  159. package/lib/cjs/entry/dependenciesAny/dependenciesIdentity.generated.js +26 -0
  160. package/lib/cjs/entry/dependenciesAny/dependenciesIfft.generated.js +24 -0
  161. package/lib/cjs/entry/dependenciesAny/dependenciesIm.generated.js +18 -0
  162. package/lib/cjs/entry/dependenciesAny/dependenciesImmutableDenseMatrixClass.generated.js +20 -0
  163. package/lib/cjs/entry/dependenciesAny/dependenciesIndex.generated.js +20 -0
  164. package/lib/cjs/entry/dependenciesAny/dependenciesIndexClass.generated.js +18 -0
  165. package/lib/cjs/entry/dependenciesAny/dependenciesIndexNode.generated.js +20 -0
  166. package/lib/cjs/entry/dependenciesAny/dependenciesIndexTransform.generated.js +18 -0
  167. package/lib/cjs/entry/dependenciesAny/dependenciesInfinity.generated.js +18 -0
  168. package/lib/cjs/entry/dependenciesAny/dependenciesIntersect.generated.js +44 -0
  169. package/lib/cjs/entry/dependenciesAny/dependenciesInv.generated.js +34 -0
  170. package/lib/cjs/entry/dependenciesAny/dependenciesInverseConductanceQuantum.generated.js +20 -0
  171. package/lib/cjs/entry/dependenciesAny/dependenciesInvmod.generated.js +32 -0
  172. package/lib/cjs/entry/dependenciesAny/dependenciesIsInteger.generated.js +18 -0
  173. package/lib/cjs/entry/dependenciesAny/dependenciesIsNaN.generated.js +18 -0
  174. package/lib/cjs/entry/dependenciesAny/dependenciesIsNegative.generated.js +18 -0
  175. package/lib/cjs/entry/dependenciesAny/dependenciesIsNumeric.generated.js +18 -0
  176. package/lib/cjs/entry/dependenciesAny/dependenciesIsPositive.generated.js +18 -0
  177. package/lib/cjs/entry/dependenciesAny/dependenciesIsPrime.generated.js +18 -0
  178. package/lib/cjs/entry/dependenciesAny/dependenciesIsZero.generated.js +18 -0
  179. package/lib/cjs/entry/dependenciesAny/dependenciesKldivergence.generated.js +34 -0
  180. package/lib/cjs/entry/dependenciesAny/dependenciesKlitzing.generated.js +20 -0
  181. package/lib/cjs/entry/dependenciesAny/dependenciesKron.generated.js +22 -0
  182. package/lib/cjs/entry/dependenciesAny/dependenciesLN10.generated.js +18 -0
  183. package/lib/cjs/entry/dependenciesAny/dependenciesLN2.generated.js +18 -0
  184. package/lib/cjs/entry/dependenciesAny/dependenciesLOG10E.generated.js +18 -0
  185. package/lib/cjs/entry/dependenciesAny/dependenciesLOG2E.generated.js +18 -0
  186. package/lib/cjs/entry/dependenciesAny/dependenciesLarger.generated.js +24 -0
  187. package/lib/cjs/entry/dependenciesAny/dependenciesLargerEq.generated.js +24 -0
  188. package/lib/cjs/entry/dependenciesAny/dependenciesLcm.generated.js +24 -0
  189. package/lib/cjs/entry/dependenciesAny/dependenciesLeafCount.generated.js +20 -0
  190. package/lib/cjs/entry/dependenciesAny/dependenciesLeftShift.generated.js +28 -0
  191. package/lib/cjs/entry/dependenciesAny/dependenciesLgamma.generated.js +20 -0
  192. package/lib/cjs/entry/dependenciesAny/dependenciesLog.generated.js +22 -0
  193. package/lib/cjs/entry/dependenciesAny/dependenciesLog10.generated.js +20 -0
  194. package/lib/cjs/entry/dependenciesAny/dependenciesLog1p.generated.js +24 -0
  195. package/lib/cjs/entry/dependenciesAny/dependenciesLog2.generated.js +20 -0
  196. package/lib/cjs/entry/dependenciesAny/dependenciesLoschmidt.generated.js +20 -0
  197. package/lib/cjs/entry/dependenciesAny/dependenciesLsolve.generated.js +30 -0
  198. package/lib/cjs/entry/dependenciesAny/dependenciesLsolveAll.generated.js +30 -0
  199. package/lib/cjs/entry/dependenciesAny/dependenciesLup.generated.js +42 -0
  200. package/lib/cjs/entry/dependenciesAny/dependenciesLusolve.generated.js +30 -0
  201. package/lib/cjs/entry/dependenciesAny/dependenciesLyap.generated.js +26 -0
  202. package/lib/cjs/entry/dependenciesAny/dependenciesMad.generated.js +26 -0
  203. package/lib/cjs/entry/dependenciesAny/dependenciesMagneticConstant.generated.js +20 -0
  204. package/lib/cjs/entry/dependenciesAny/dependenciesMagneticFluxQuantum.generated.js +20 -0
  205. package/lib/cjs/entry/dependenciesAny/dependenciesMap.generated.js +18 -0
  206. package/lib/cjs/entry/dependenciesAny/dependenciesMapTransform.generated.js +18 -0
  207. package/lib/cjs/entry/dependenciesAny/dependenciesMatrix.generated.js +24 -0
  208. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixClass.generated.js +16 -0
  209. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +24 -0
  210. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +22 -0
  211. package/lib/cjs/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +24 -0
  212. package/lib/cjs/entry/dependenciesAny/dependenciesMax.generated.js +22 -0
  213. package/lib/cjs/entry/dependenciesAny/dependenciesMaxTransform.generated.js +22 -0
  214. package/lib/cjs/entry/dependenciesAny/dependenciesMean.generated.js +22 -0
  215. package/lib/cjs/entry/dependenciesAny/dependenciesMeanTransform.generated.js +22 -0
  216. package/lib/cjs/entry/dependenciesAny/dependenciesMedian.generated.js +26 -0
  217. package/lib/cjs/entry/dependenciesAny/dependenciesMin.generated.js +22 -0
  218. package/lib/cjs/entry/dependenciesAny/dependenciesMinTransform.generated.js +22 -0
  219. package/lib/cjs/entry/dependenciesAny/dependenciesMod.generated.js +26 -0
  220. package/lib/cjs/entry/dependenciesAny/dependenciesMode.generated.js +22 -0
  221. package/lib/cjs/entry/dependenciesAny/dependenciesMolarMass.generated.js +20 -0
  222. package/lib/cjs/entry/dependenciesAny/dependenciesMolarMassC12.generated.js +20 -0
  223. package/lib/cjs/entry/dependenciesAny/dependenciesMolarPlanckConstant.generated.js +20 -0
  224. package/lib/cjs/entry/dependenciesAny/dependenciesMolarVolume.generated.js +20 -0
  225. package/lib/cjs/entry/dependenciesAny/dependenciesMultinomial.generated.js +30 -0
  226. package/lib/cjs/entry/dependenciesAny/dependenciesMultiply.generated.js +28 -0
  227. package/lib/cjs/entry/dependenciesAny/dependenciesMultiplyScalar.generated.js +18 -0
  228. package/lib/cjs/entry/dependenciesAny/dependenciesNaN.generated.js +18 -0
  229. package/lib/cjs/entry/dependenciesAny/dependenciesNeutronMass.generated.js +20 -0
  230. package/lib/cjs/entry/dependenciesAny/dependenciesNode.generated.js +16 -0
  231. package/lib/cjs/entry/dependenciesAny/dependenciesNorm.generated.js +42 -0
  232. package/lib/cjs/entry/dependenciesAny/dependenciesNot.generated.js +18 -0
  233. package/lib/cjs/entry/dependenciesAny/dependenciesNthRoot.generated.js +26 -0
  234. package/lib/cjs/entry/dependenciesAny/dependenciesNthRoots.generated.js +22 -0
  235. package/lib/cjs/entry/dependenciesAny/dependenciesNuclearMagneton.generated.js +20 -0
  236. package/lib/cjs/entry/dependenciesAny/dependenciesNull.generated.js +16 -0
  237. package/lib/cjs/entry/dependenciesAny/dependenciesNumber.generated.js +18 -0
  238. package/lib/cjs/entry/dependenciesAny/dependenciesNumeric.generated.js +22 -0
  239. package/lib/cjs/entry/dependenciesAny/dependenciesObjectNode.generated.js +18 -0
  240. package/lib/cjs/entry/dependenciesAny/dependenciesOct.generated.js +20 -0
  241. package/lib/cjs/entry/dependenciesAny/dependenciesOnes.generated.js +22 -0
  242. package/lib/cjs/entry/dependenciesAny/dependenciesOperatorNode.generated.js +18 -0
  243. package/lib/cjs/entry/dependenciesAny/dependenciesOr.generated.js +26 -0
  244. package/lib/cjs/entry/dependenciesAny/dependenciesParenthesisNode.generated.js +18 -0
  245. package/lib/cjs/entry/dependenciesAny/dependenciesParse.generated.js +50 -0
  246. package/lib/cjs/entry/dependenciesAny/dependenciesParser.generated.js +20 -0
  247. package/lib/cjs/entry/dependenciesAny/dependenciesParserClass.generated.js +18 -0
  248. package/lib/cjs/entry/dependenciesAny/dependenciesPartitionSelect.generated.js +24 -0
  249. package/lib/cjs/entry/dependenciesAny/dependenciesPermutations.generated.js +20 -0
  250. package/lib/cjs/entry/dependenciesAny/dependenciesPhi.generated.js +18 -0
  251. package/lib/cjs/entry/dependenciesAny/dependenciesPi.generated.js +18 -0
  252. package/lib/cjs/entry/dependenciesAny/dependenciesPickRandom.generated.js +18 -0
  253. package/lib/cjs/entry/dependenciesAny/dependenciesPinv.generated.js +40 -0
  254. package/lib/cjs/entry/dependenciesAny/dependenciesPlanckCharge.generated.js +20 -0
  255. package/lib/cjs/entry/dependenciesAny/dependenciesPlanckConstant.generated.js +20 -0
  256. package/lib/cjs/entry/dependenciesAny/dependenciesPlanckLength.generated.js +20 -0
  257. package/lib/cjs/entry/dependenciesAny/dependenciesPlanckMass.generated.js +20 -0
  258. package/lib/cjs/entry/dependenciesAny/dependenciesPlanckTemperature.generated.js +20 -0
  259. package/lib/cjs/entry/dependenciesAny/dependenciesPlanckTime.generated.js +20 -0
  260. package/lib/cjs/entry/dependenciesAny/dependenciesPolynomialRoot.generated.js +42 -0
  261. package/lib/cjs/entry/dependenciesAny/dependenciesPow.generated.js +32 -0
  262. package/lib/cjs/entry/dependenciesAny/dependenciesPrint.generated.js +18 -0
  263. package/lib/cjs/entry/dependenciesAny/dependenciesProd.generated.js +22 -0
  264. package/lib/cjs/entry/dependenciesAny/dependenciesProtonMass.generated.js +20 -0
  265. package/lib/cjs/entry/dependenciesAny/dependenciesQr.generated.js +46 -0
  266. package/lib/cjs/entry/dependenciesAny/dependenciesQuantileSeq.generated.js +26 -0
  267. package/lib/cjs/entry/dependenciesAny/dependenciesQuantumOfCirculation.generated.js +20 -0
  268. package/lib/cjs/entry/dependenciesAny/dependenciesRandom.generated.js +18 -0
  269. package/lib/cjs/entry/dependenciesAny/dependenciesRandomInt.generated.js +18 -0
  270. package/lib/cjs/entry/dependenciesAny/dependenciesRange.generated.js +30 -0
  271. package/lib/cjs/entry/dependenciesAny/dependenciesRangeClass.generated.js +16 -0
  272. package/lib/cjs/entry/dependenciesAny/dependenciesRangeNode.generated.js +18 -0
  273. package/lib/cjs/entry/dependenciesAny/dependenciesRangeTransform.generated.js +30 -0
  274. package/lib/cjs/entry/dependenciesAny/dependenciesRationalize.generated.js +64 -0
  275. package/lib/cjs/entry/dependenciesAny/dependenciesRe.generated.js +18 -0
  276. package/lib/cjs/entry/dependenciesAny/dependenciesReducedPlanckConstant.generated.js +20 -0
  277. package/lib/cjs/entry/dependenciesAny/dependenciesRelationalNode.generated.js +18 -0
  278. package/lib/cjs/entry/dependenciesAny/dependenciesReplacer.generated.js +16 -0
  279. package/lib/cjs/entry/dependenciesAny/dependenciesReshape.generated.js +22 -0
  280. package/lib/cjs/entry/dependenciesAny/dependenciesResize.generated.js +18 -0
  281. package/lib/cjs/entry/dependenciesAny/dependenciesResolve.generated.js +28 -0
  282. package/lib/cjs/entry/dependenciesAny/dependenciesResultSet.generated.js +16 -0
  283. package/lib/cjs/entry/dependenciesAny/dependenciesReviver.generated.js +16 -0
  284. package/lib/cjs/entry/dependenciesAny/dependenciesRightArithShift.generated.js +28 -0
  285. package/lib/cjs/entry/dependenciesAny/dependenciesRightLogShift.generated.js +28 -0
  286. package/lib/cjs/entry/dependenciesAny/dependenciesRotate.generated.js +22 -0
  287. package/lib/cjs/entry/dependenciesAny/dependenciesRotationMatrix.generated.js +38 -0
  288. package/lib/cjs/entry/dependenciesAny/dependenciesRound.generated.js +28 -0
  289. package/lib/cjs/entry/dependenciesAny/dependenciesRow.generated.js +24 -0
  290. package/lib/cjs/entry/dependenciesAny/dependenciesRowTransform.generated.js +24 -0
  291. package/lib/cjs/entry/dependenciesAny/dependenciesRydberg.generated.js +20 -0
  292. package/lib/cjs/entry/dependenciesAny/dependenciesSQRT1_2.generated.js +21 -0
  293. package/lib/cjs/entry/dependenciesAny/dependenciesSQRT2.generated.js +18 -0
  294. package/lib/cjs/entry/dependenciesAny/dependenciesSackurTetrode.generated.js +18 -0
  295. package/lib/cjs/entry/dependenciesAny/dependenciesSchur.generated.js +30 -0
  296. package/lib/cjs/entry/dependenciesAny/dependenciesSec.generated.js +20 -0
  297. package/lib/cjs/entry/dependenciesAny/dependenciesSech.generated.js +20 -0
  298. package/lib/cjs/entry/dependenciesAny/dependenciesSecondRadiation.generated.js +20 -0
  299. package/lib/cjs/entry/dependenciesAny/dependenciesSetCartesian.generated.js +28 -0
  300. package/lib/cjs/entry/dependenciesAny/dependenciesSetDifference.generated.js +28 -0
  301. package/lib/cjs/entry/dependenciesAny/dependenciesSetDistinct.generated.js +28 -0
  302. package/lib/cjs/entry/dependenciesAny/dependenciesSetIntersect.generated.js +28 -0
  303. package/lib/cjs/entry/dependenciesAny/dependenciesSetIsSubset.generated.js +26 -0
  304. package/lib/cjs/entry/dependenciesAny/dependenciesSetMultiplicity.generated.js +26 -0
  305. package/lib/cjs/entry/dependenciesAny/dependenciesSetPowerset.generated.js +26 -0
  306. package/lib/cjs/entry/dependenciesAny/dependenciesSetSize.generated.js +20 -0
  307. package/lib/cjs/entry/dependenciesAny/dependenciesSetSymDifference.generated.js +28 -0
  308. package/lib/cjs/entry/dependenciesAny/dependenciesSetUnion.generated.js +30 -0
  309. package/lib/cjs/entry/dependenciesAny/dependenciesSign.generated.js +24 -0
  310. package/lib/cjs/entry/dependenciesAny/dependenciesSimplify.generated.js +64 -0
  311. package/lib/cjs/entry/dependenciesAny/dependenciesSimplifyConstant.generated.js +40 -0
  312. package/lib/cjs/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +52 -0
  313. package/lib/cjs/entry/dependenciesAny/dependenciesSin.generated.js +18 -0
  314. package/lib/cjs/entry/dependenciesAny/dependenciesSinh.generated.js +18 -0
  315. package/lib/cjs/entry/dependenciesAny/dependenciesSize.generated.js +20 -0
  316. package/lib/cjs/entry/dependenciesAny/dependenciesSlu.generated.js +36 -0
  317. package/lib/cjs/entry/dependenciesAny/dependenciesSmaller.generated.js +24 -0
  318. package/lib/cjs/entry/dependenciesAny/dependenciesSmallerEq.generated.js +24 -0
  319. package/lib/cjs/entry/dependenciesAny/dependenciesSort.generated.js +24 -0
  320. package/lib/cjs/entry/dependenciesAny/dependenciesSpaClass.generated.js +22 -0
  321. package/lib/cjs/entry/dependenciesAny/dependenciesSparse.generated.js +20 -0
  322. package/lib/cjs/entry/dependenciesAny/dependenciesSparseMatrixClass.generated.js +22 -0
  323. package/lib/cjs/entry/dependenciesAny/dependenciesSpeedOfLight.generated.js +20 -0
  324. package/lib/cjs/entry/dependenciesAny/dependenciesSplitUnit.generated.js +18 -0
  325. package/lib/cjs/entry/dependenciesAny/dependenciesSqrt.generated.js +20 -0
  326. package/lib/cjs/entry/dependenciesAny/dependenciesSqrtm.generated.js +38 -0
  327. package/lib/cjs/entry/dependenciesAny/dependenciesSquare.generated.js +18 -0
  328. package/lib/cjs/entry/dependenciesAny/dependenciesSqueeze.generated.js +20 -0
  329. package/lib/cjs/entry/dependenciesAny/dependenciesStd.generated.js +24 -0
  330. package/lib/cjs/entry/dependenciesAny/dependenciesStdTransform.generated.js +24 -0
  331. package/lib/cjs/entry/dependenciesAny/dependenciesStefanBoltzmann.generated.js +20 -0
  332. package/lib/cjs/entry/dependenciesAny/dependenciesStirlingS2.generated.js +42 -0
  333. package/lib/cjs/entry/dependenciesAny/dependenciesString.generated.js +18 -0
  334. package/lib/cjs/entry/dependenciesAny/dependenciesSubset.generated.js +20 -0
  335. package/lib/cjs/entry/dependenciesAny/dependenciesSubsetTransform.generated.js +20 -0
  336. package/lib/cjs/entry/dependenciesAny/dependenciesSubtract.generated.js +30 -0
  337. package/lib/cjs/entry/dependenciesAny/dependenciesSum.generated.js +22 -0
  338. package/lib/cjs/entry/dependenciesAny/dependenciesSumTransform.generated.js +22 -0
  339. package/lib/cjs/entry/dependenciesAny/dependenciesSylvester.generated.js +46 -0
  340. package/lib/cjs/entry/dependenciesAny/dependenciesSymbolNode.generated.js +20 -0
  341. package/lib/cjs/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +24 -0
  342. package/lib/cjs/entry/dependenciesAny/dependenciesTan.generated.js +18 -0
  343. package/lib/cjs/entry/dependenciesAny/dependenciesTanh.generated.js +18 -0
  344. package/lib/cjs/entry/dependenciesAny/dependenciesTau.generated.js +18 -0
  345. package/lib/cjs/entry/dependenciesAny/dependenciesThomsonCrossSection.generated.js +20 -0
  346. package/lib/cjs/entry/dependenciesAny/dependenciesTo.generated.js +22 -0
  347. package/lib/cjs/entry/dependenciesAny/dependenciesTrace.generated.js +22 -0
  348. package/lib/cjs/entry/dependenciesAny/dependenciesTranspose.generated.js +20 -0
  349. package/lib/cjs/entry/dependenciesAny/dependenciesTrue.generated.js +16 -0
  350. package/lib/cjs/entry/dependenciesAny/dependenciesTypeOf.generated.js +18 -0
  351. package/lib/cjs/entry/dependenciesAny/dependenciesTyped.generated.js +24 -0
  352. package/lib/cjs/entry/dependenciesAny/dependenciesUnaryMinus.generated.js +18 -0
  353. package/lib/cjs/entry/dependenciesAny/dependenciesUnaryPlus.generated.js +20 -0
  354. package/lib/cjs/entry/dependenciesAny/dependenciesUnequal.generated.js +26 -0
  355. package/lib/cjs/entry/dependenciesAny/dependenciesUnitClass.generated.js +46 -0
  356. package/lib/cjs/entry/dependenciesAny/dependenciesUnitFunction.generated.js +20 -0
  357. package/lib/cjs/entry/dependenciesAny/dependenciesUppercaseE.generated.js +18 -0
  358. package/lib/cjs/entry/dependenciesAny/dependenciesUppercasePi.generated.js +18 -0
  359. package/lib/cjs/entry/dependenciesAny/dependenciesUsolve.generated.js +30 -0
  360. package/lib/cjs/entry/dependenciesAny/dependenciesUsolveAll.generated.js +30 -0
  361. package/lib/cjs/entry/dependenciesAny/dependenciesVacuumImpedance.generated.js +20 -0
  362. package/lib/cjs/entry/dependenciesAny/dependenciesVariance.generated.js +30 -0
  363. package/lib/cjs/entry/dependenciesAny/dependenciesVarianceTransform.generated.js +30 -0
  364. package/lib/cjs/entry/dependenciesAny/dependenciesVersion.generated.js +16 -0
  365. package/lib/cjs/entry/dependenciesAny/dependenciesWeakMixingAngle.generated.js +18 -0
  366. package/lib/cjs/entry/dependenciesAny/dependenciesWienDisplacement.generated.js +20 -0
  367. package/lib/cjs/entry/dependenciesAny/dependenciesXgcd.generated.js +22 -0
  368. package/lib/cjs/entry/dependenciesAny/dependenciesXor.generated.js +24 -0
  369. package/lib/cjs/entry/dependenciesAny/dependenciesZeros.generated.js +22 -0
  370. package/lib/cjs/entry/dependenciesAny.generated.js +2455 -0
  371. package/lib/cjs/entry/dependenciesNumber/dependenciesAbs.generated.js +18 -0
  372. package/lib/cjs/entry/dependenciesNumber/dependenciesAccessorNode.generated.js +20 -0
  373. package/lib/cjs/entry/dependenciesNumber/dependenciesAcos.generated.js +18 -0
  374. package/lib/cjs/entry/dependenciesNumber/dependenciesAcosh.generated.js +18 -0
  375. package/lib/cjs/entry/dependenciesNumber/dependenciesAcot.generated.js +18 -0
  376. package/lib/cjs/entry/dependenciesNumber/dependenciesAcoth.generated.js +18 -0
  377. package/lib/cjs/entry/dependenciesNumber/dependenciesAcsc.generated.js +18 -0
  378. package/lib/cjs/entry/dependenciesNumber/dependenciesAcsch.generated.js +18 -0
  379. package/lib/cjs/entry/dependenciesNumber/dependenciesAdd.generated.js +18 -0
  380. package/lib/cjs/entry/dependenciesNumber/dependenciesAddScalar.generated.js +18 -0
  381. package/lib/cjs/entry/dependenciesNumber/dependenciesAnd.generated.js +18 -0
  382. package/lib/cjs/entry/dependenciesNumber/dependenciesApply.generated.js +20 -0
  383. package/lib/cjs/entry/dependenciesNumber/dependenciesApplyTransform.generated.js +20 -0
  384. package/lib/cjs/entry/dependenciesNumber/dependenciesArrayNode.generated.js +18 -0
  385. package/lib/cjs/entry/dependenciesNumber/dependenciesAsec.generated.js +18 -0
  386. package/lib/cjs/entry/dependenciesNumber/dependenciesAsech.generated.js +18 -0
  387. package/lib/cjs/entry/dependenciesNumber/dependenciesAsin.generated.js +18 -0
  388. package/lib/cjs/entry/dependenciesNumber/dependenciesAsinh.generated.js +18 -0
  389. package/lib/cjs/entry/dependenciesNumber/dependenciesAssignmentNode.generated.js +22 -0
  390. package/lib/cjs/entry/dependenciesNumber/dependenciesAtan.generated.js +18 -0
  391. package/lib/cjs/entry/dependenciesNumber/dependenciesAtan2.generated.js +18 -0
  392. package/lib/cjs/entry/dependenciesNumber/dependenciesAtanh.generated.js +18 -0
  393. package/lib/cjs/entry/dependenciesNumber/dependenciesBellNumbers.generated.js +26 -0
  394. package/lib/cjs/entry/dependenciesNumber/dependenciesBitAnd.generated.js +18 -0
  395. package/lib/cjs/entry/dependenciesNumber/dependenciesBitNot.generated.js +18 -0
  396. package/lib/cjs/entry/dependenciesNumber/dependenciesBitOr.generated.js +18 -0
  397. package/lib/cjs/entry/dependenciesNumber/dependenciesBitXor.generated.js +18 -0
  398. package/lib/cjs/entry/dependenciesNumber/dependenciesBlockNode.generated.js +20 -0
  399. package/lib/cjs/entry/dependenciesNumber/dependenciesBoolean.generated.js +18 -0
  400. package/lib/cjs/entry/dependenciesNumber/dependenciesCatalan.generated.js +30 -0
  401. package/lib/cjs/entry/dependenciesNumber/dependenciesCbrt.generated.js +18 -0
  402. package/lib/cjs/entry/dependenciesNumber/dependenciesCeil.generated.js +20 -0
  403. package/lib/cjs/entry/dependenciesNumber/dependenciesChain.generated.js +20 -0
  404. package/lib/cjs/entry/dependenciesNumber/dependenciesChainClass.generated.js +18 -0
  405. package/lib/cjs/entry/dependenciesNumber/dependenciesClone.generated.js +18 -0
  406. package/lib/cjs/entry/dependenciesNumber/dependenciesCombinations.generated.js +18 -0
  407. package/lib/cjs/entry/dependenciesNumber/dependenciesCombinationsWithRep.generated.js +18 -0
  408. package/lib/cjs/entry/dependenciesNumber/dependenciesCompare.generated.js +18 -0
  409. package/lib/cjs/entry/dependenciesNumber/dependenciesCompareNatural.generated.js +20 -0
  410. package/lib/cjs/entry/dependenciesNumber/dependenciesCompareText.generated.js +18 -0
  411. package/lib/cjs/entry/dependenciesNumber/dependenciesCompile.generated.js +20 -0
  412. package/lib/cjs/entry/dependenciesNumber/dependenciesComposition.generated.js +30 -0
  413. package/lib/cjs/entry/dependenciesNumber/dependenciesConditionalNode.generated.js +18 -0
  414. package/lib/cjs/entry/dependenciesNumber/dependenciesConstantNode.generated.js +18 -0
  415. package/lib/cjs/entry/dependenciesNumber/dependenciesCos.generated.js +18 -0
  416. package/lib/cjs/entry/dependenciesNumber/dependenciesCosh.generated.js +18 -0
  417. package/lib/cjs/entry/dependenciesNumber/dependenciesCot.generated.js +18 -0
  418. package/lib/cjs/entry/dependenciesNumber/dependenciesCoth.generated.js +18 -0
  419. package/lib/cjs/entry/dependenciesNumber/dependenciesCsc.generated.js +18 -0
  420. package/lib/cjs/entry/dependenciesNumber/dependenciesCsch.generated.js +18 -0
  421. package/lib/cjs/entry/dependenciesNumber/dependenciesCube.generated.js +18 -0
  422. package/lib/cjs/entry/dependenciesNumber/dependenciesCumSum.generated.js +22 -0
  423. package/lib/cjs/entry/dependenciesNumber/dependenciesCumSumTransform.generated.js +22 -0
  424. package/lib/cjs/entry/dependenciesNumber/dependenciesDeepEqual.generated.js +20 -0
  425. package/lib/cjs/entry/dependenciesNumber/dependenciesDerivative.generated.js +38 -0
  426. package/lib/cjs/entry/dependenciesNumber/dependenciesDivide.generated.js +18 -0
  427. package/lib/cjs/entry/dependenciesNumber/dependenciesDivideScalar.generated.js +18 -0
  428. package/lib/cjs/entry/dependenciesNumber/dependenciesE.generated.js +16 -0
  429. package/lib/cjs/entry/dependenciesNumber/dependenciesEqual.generated.js +20 -0
  430. package/lib/cjs/entry/dependenciesNumber/dependenciesEqualScalar.generated.js +18 -0
  431. package/lib/cjs/entry/dependenciesNumber/dependenciesEqualText.generated.js +22 -0
  432. package/lib/cjs/entry/dependenciesNumber/dependenciesErf.generated.js +18 -0
  433. package/lib/cjs/entry/dependenciesNumber/dependenciesEvaluate.generated.js +20 -0
  434. package/lib/cjs/entry/dependenciesNumber/dependenciesExp.generated.js +18 -0
  435. package/lib/cjs/entry/dependenciesNumber/dependenciesExpm1.generated.js +18 -0
  436. package/lib/cjs/entry/dependenciesNumber/dependenciesFactorial.generated.js +20 -0
  437. package/lib/cjs/entry/dependenciesNumber/dependenciesFalse.generated.js +16 -0
  438. package/lib/cjs/entry/dependenciesNumber/dependenciesFilter.generated.js +18 -0
  439. package/lib/cjs/entry/dependenciesNumber/dependenciesFilterTransform.generated.js +18 -0
  440. package/lib/cjs/entry/dependenciesNumber/dependenciesFix.generated.js +22 -0
  441. package/lib/cjs/entry/dependenciesNumber/dependenciesFloor.generated.js +20 -0
  442. package/lib/cjs/entry/dependenciesNumber/dependenciesForEach.generated.js +18 -0
  443. package/lib/cjs/entry/dependenciesNumber/dependenciesForEachTransform.generated.js +18 -0
  444. package/lib/cjs/entry/dependenciesNumber/dependenciesFormat.generated.js +18 -0
  445. package/lib/cjs/entry/dependenciesNumber/dependenciesFunctionAssignmentNode.generated.js +20 -0
  446. package/lib/cjs/entry/dependenciesNumber/dependenciesFunctionNode.generated.js +20 -0
  447. package/lib/cjs/entry/dependenciesNumber/dependenciesGamma.generated.js +18 -0
  448. package/lib/cjs/entry/dependenciesNumber/dependenciesGcd.generated.js +18 -0
  449. package/lib/cjs/entry/dependenciesNumber/dependenciesHasNumericValue.generated.js +20 -0
  450. package/lib/cjs/entry/dependenciesNumber/dependenciesHelp.generated.js +20 -0
  451. package/lib/cjs/entry/dependenciesNumber/dependenciesHelpClass.generated.js +18 -0
  452. package/lib/cjs/entry/dependenciesNumber/dependenciesHypot.generated.js +32 -0
  453. package/lib/cjs/entry/dependenciesNumber/dependenciesIndex.generated.js +16 -0
  454. package/lib/cjs/entry/dependenciesNumber/dependenciesIndexNode.generated.js +20 -0
  455. package/lib/cjs/entry/dependenciesNumber/dependenciesInfinity.generated.js +16 -0
  456. package/lib/cjs/entry/dependenciesNumber/dependenciesIsInteger.generated.js +18 -0
  457. package/lib/cjs/entry/dependenciesNumber/dependenciesIsNaN.generated.js +18 -0
  458. package/lib/cjs/entry/dependenciesNumber/dependenciesIsNegative.generated.js +18 -0
  459. package/lib/cjs/entry/dependenciesNumber/dependenciesIsNumeric.generated.js +18 -0
  460. package/lib/cjs/entry/dependenciesNumber/dependenciesIsPositive.generated.js +18 -0
  461. package/lib/cjs/entry/dependenciesNumber/dependenciesIsPrime.generated.js +18 -0
  462. package/lib/cjs/entry/dependenciesNumber/dependenciesIsZero.generated.js +18 -0
  463. package/lib/cjs/entry/dependenciesNumber/dependenciesLN10.generated.js +16 -0
  464. package/lib/cjs/entry/dependenciesNumber/dependenciesLN2.generated.js +16 -0
  465. package/lib/cjs/entry/dependenciesNumber/dependenciesLOG10E.generated.js +16 -0
  466. package/lib/cjs/entry/dependenciesNumber/dependenciesLOG2E.generated.js +16 -0
  467. package/lib/cjs/entry/dependenciesNumber/dependenciesLarger.generated.js +18 -0
  468. package/lib/cjs/entry/dependenciesNumber/dependenciesLargerEq.generated.js +18 -0
  469. package/lib/cjs/entry/dependenciesNumber/dependenciesLcm.generated.js +18 -0
  470. package/lib/cjs/entry/dependenciesNumber/dependenciesLeftShift.generated.js +18 -0
  471. package/lib/cjs/entry/dependenciesNumber/dependenciesLgamma.generated.js +18 -0
  472. package/lib/cjs/entry/dependenciesNumber/dependenciesLog.generated.js +18 -0
  473. package/lib/cjs/entry/dependenciesNumber/dependenciesLog10.generated.js +18 -0
  474. package/lib/cjs/entry/dependenciesNumber/dependenciesLog1p.generated.js +18 -0
  475. package/lib/cjs/entry/dependenciesNumber/dependenciesLog2.generated.js +18 -0
  476. package/lib/cjs/entry/dependenciesNumber/dependenciesMad.generated.js +26 -0
  477. package/lib/cjs/entry/dependenciesNumber/dependenciesMap.generated.js +18 -0
  478. package/lib/cjs/entry/dependenciesNumber/dependenciesMapTransform.generated.js +18 -0
  479. package/lib/cjs/entry/dependenciesNumber/dependenciesMatrix.generated.js +16 -0
  480. package/lib/cjs/entry/dependenciesNumber/dependenciesMax.generated.js +22 -0
  481. package/lib/cjs/entry/dependenciesNumber/dependenciesMaxTransform.generated.js +22 -0
  482. package/lib/cjs/entry/dependenciesNumber/dependenciesMean.generated.js +22 -0
  483. package/lib/cjs/entry/dependenciesNumber/dependenciesMeanTransform.generated.js +22 -0
  484. package/lib/cjs/entry/dependenciesNumber/dependenciesMedian.generated.js +26 -0
  485. package/lib/cjs/entry/dependenciesNumber/dependenciesMin.generated.js +22 -0
  486. package/lib/cjs/entry/dependenciesNumber/dependenciesMinTransform.generated.js +22 -0
  487. package/lib/cjs/entry/dependenciesNumber/dependenciesMod.generated.js +18 -0
  488. package/lib/cjs/entry/dependenciesNumber/dependenciesMode.generated.js +22 -0
  489. package/lib/cjs/entry/dependenciesNumber/dependenciesMultinomial.generated.js +30 -0
  490. package/lib/cjs/entry/dependenciesNumber/dependenciesMultiply.generated.js +18 -0
  491. package/lib/cjs/entry/dependenciesNumber/dependenciesMultiplyScalar.generated.js +18 -0
  492. package/lib/cjs/entry/dependenciesNumber/dependenciesNaN.generated.js +16 -0
  493. package/lib/cjs/entry/dependenciesNumber/dependenciesNode.generated.js +16 -0
  494. package/lib/cjs/entry/dependenciesNumber/dependenciesNorm.generated.js +18 -0
  495. package/lib/cjs/entry/dependenciesNumber/dependenciesNot.generated.js +18 -0
  496. package/lib/cjs/entry/dependenciesNumber/dependenciesNthRoot.generated.js +18 -0
  497. package/lib/cjs/entry/dependenciesNumber/dependenciesNull.generated.js +16 -0
  498. package/lib/cjs/entry/dependenciesNumber/dependenciesNumber.generated.js +18 -0
  499. package/lib/cjs/entry/dependenciesNumber/dependenciesNumeric.generated.js +18 -0
  500. package/lib/cjs/entry/dependenciesNumber/dependenciesObjectNode.generated.js +18 -0
  501. package/lib/cjs/entry/dependenciesNumber/dependenciesOperatorNode.generated.js +18 -0
  502. package/lib/cjs/entry/dependenciesNumber/dependenciesOr.generated.js +18 -0
  503. package/lib/cjs/entry/dependenciesNumber/dependenciesParenthesisNode.generated.js +18 -0
  504. package/lib/cjs/entry/dependenciesNumber/dependenciesParse.generated.js +50 -0
  505. package/lib/cjs/entry/dependenciesNumber/dependenciesParser.generated.js +20 -0
  506. package/lib/cjs/entry/dependenciesNumber/dependenciesParserClass.generated.js +18 -0
  507. package/lib/cjs/entry/dependenciesNumber/dependenciesPartitionSelect.generated.js +24 -0
  508. package/lib/cjs/entry/dependenciesNumber/dependenciesPermutations.generated.js +20 -0
  509. package/lib/cjs/entry/dependenciesNumber/dependenciesPhi.generated.js +16 -0
  510. package/lib/cjs/entry/dependenciesNumber/dependenciesPi.generated.js +16 -0
  511. package/lib/cjs/entry/dependenciesNumber/dependenciesPickRandom.generated.js +18 -0
  512. package/lib/cjs/entry/dependenciesNumber/dependenciesPow.generated.js +18 -0
  513. package/lib/cjs/entry/dependenciesNumber/dependenciesPrint.generated.js +18 -0
  514. package/lib/cjs/entry/dependenciesNumber/dependenciesProd.generated.js +22 -0
  515. package/lib/cjs/entry/dependenciesNumber/dependenciesQuantileSeq.generated.js +26 -0
  516. package/lib/cjs/entry/dependenciesNumber/dependenciesRandom.generated.js +18 -0
  517. package/lib/cjs/entry/dependenciesNumber/dependenciesRandomInt.generated.js +18 -0
  518. package/lib/cjs/entry/dependenciesNumber/dependenciesRange.generated.js +28 -0
  519. package/lib/cjs/entry/dependenciesNumber/dependenciesRangeClass.generated.js +16 -0
  520. package/lib/cjs/entry/dependenciesNumber/dependenciesRangeNode.generated.js +18 -0
  521. package/lib/cjs/entry/dependenciesNumber/dependenciesRangeTransform.generated.js +28 -0
  522. package/lib/cjs/entry/dependenciesNumber/dependenciesRationalize.generated.js +60 -0
  523. package/lib/cjs/entry/dependenciesNumber/dependenciesRelationalNode.generated.js +18 -0
  524. package/lib/cjs/entry/dependenciesNumber/dependenciesReplacer.generated.js +16 -0
  525. package/lib/cjs/entry/dependenciesNumber/dependenciesResolve.generated.js +28 -0
  526. package/lib/cjs/entry/dependenciesNumber/dependenciesResultSet.generated.js +16 -0
  527. package/lib/cjs/entry/dependenciesNumber/dependenciesReviver.generated.js +16 -0
  528. package/lib/cjs/entry/dependenciesNumber/dependenciesRightArithShift.generated.js +18 -0
  529. package/lib/cjs/entry/dependenciesNumber/dependenciesRightLogShift.generated.js +18 -0
  530. package/lib/cjs/entry/dependenciesNumber/dependenciesRound.generated.js +18 -0
  531. package/lib/cjs/entry/dependenciesNumber/dependenciesSQRT1_2.generated.js +18 -0
  532. package/lib/cjs/entry/dependenciesNumber/dependenciesSQRT2.generated.js +16 -0
  533. package/lib/cjs/entry/dependenciesNumber/dependenciesSec.generated.js +18 -0
  534. package/lib/cjs/entry/dependenciesNumber/dependenciesSech.generated.js +18 -0
  535. package/lib/cjs/entry/dependenciesNumber/dependenciesSign.generated.js +18 -0
  536. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplify.generated.js +60 -0
  537. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplifyConstant.generated.js +36 -0
  538. package/lib/cjs/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +52 -0
  539. package/lib/cjs/entry/dependenciesNumber/dependenciesSin.generated.js +18 -0
  540. package/lib/cjs/entry/dependenciesNumber/dependenciesSinh.generated.js +18 -0
  541. package/lib/cjs/entry/dependenciesNumber/dependenciesSize.generated.js +20 -0
  542. package/lib/cjs/entry/dependenciesNumber/dependenciesSmaller.generated.js +18 -0
  543. package/lib/cjs/entry/dependenciesNumber/dependenciesSmallerEq.generated.js +18 -0
  544. package/lib/cjs/entry/dependenciesNumber/dependenciesSqrt.generated.js +18 -0
  545. package/lib/cjs/entry/dependenciesNumber/dependenciesSquare.generated.js +18 -0
  546. package/lib/cjs/entry/dependenciesNumber/dependenciesStd.generated.js +24 -0
  547. package/lib/cjs/entry/dependenciesNumber/dependenciesStdTransform.generated.js +24 -0
  548. package/lib/cjs/entry/dependenciesNumber/dependenciesStirlingS2.generated.js +40 -0
  549. package/lib/cjs/entry/dependenciesNumber/dependenciesString.generated.js +18 -0
  550. package/lib/cjs/entry/dependenciesNumber/dependenciesSubset.generated.js +16 -0
  551. package/lib/cjs/entry/dependenciesNumber/dependenciesSubsetTransform.generated.js +16 -0
  552. package/lib/cjs/entry/dependenciesNumber/dependenciesSubtract.generated.js +18 -0
  553. package/lib/cjs/entry/dependenciesNumber/dependenciesSum.generated.js +22 -0
  554. package/lib/cjs/entry/dependenciesNumber/dependenciesSumTransform.generated.js +22 -0
  555. package/lib/cjs/entry/dependenciesNumber/dependenciesSymbolNode.generated.js +18 -0
  556. package/lib/cjs/entry/dependenciesNumber/dependenciesTan.generated.js +18 -0
  557. package/lib/cjs/entry/dependenciesNumber/dependenciesTanh.generated.js +18 -0
  558. package/lib/cjs/entry/dependenciesNumber/dependenciesTau.generated.js +16 -0
  559. package/lib/cjs/entry/dependenciesNumber/dependenciesTrue.generated.js +16 -0
  560. package/lib/cjs/entry/dependenciesNumber/dependenciesTypeOf.generated.js +18 -0
  561. package/lib/cjs/entry/dependenciesNumber/dependenciesTyped.generated.js +16 -0
  562. package/lib/cjs/entry/dependenciesNumber/dependenciesUnaryMinus.generated.js +18 -0
  563. package/lib/cjs/entry/dependenciesNumber/dependenciesUnaryPlus.generated.js +18 -0
  564. package/lib/cjs/entry/dependenciesNumber/dependenciesUnequal.generated.js +20 -0
  565. package/lib/cjs/entry/dependenciesNumber/dependenciesUppercaseE.generated.js +18 -0
  566. package/lib/cjs/entry/dependenciesNumber/dependenciesUppercasePi.generated.js +18 -0
  567. package/lib/cjs/entry/dependenciesNumber/dependenciesVariance.generated.js +30 -0
  568. package/lib/cjs/entry/dependenciesNumber/dependenciesVarianceTransform.generated.js +30 -0
  569. package/lib/cjs/entry/dependenciesNumber/dependenciesVersion.generated.js +16 -0
  570. package/lib/cjs/entry/dependenciesNumber/dependenciesXgcd.generated.js +18 -0
  571. package/lib/cjs/entry/dependenciesNumber/dependenciesXor.generated.js +18 -0
  572. package/lib/cjs/entry/dependenciesNumber.generated.js +1419 -0
  573. package/lib/cjs/entry/impureFunctionsAny.generated.js +734 -0
  574. package/lib/cjs/entry/impureFunctionsNumber.generated.js +541 -0
  575. package/lib/cjs/entry/mainAny.js +115 -0
  576. package/lib/cjs/entry/mainNumber.js +115 -0
  577. package/lib/cjs/entry/pureFunctionsAny.generated.js +2005 -0
  578. package/lib/cjs/entry/pureFunctionsNumber.generated.js +723 -0
  579. package/lib/cjs/entry/typeChecks.js +240 -0
  580. package/lib/cjs/error/ArgumentsError.js +30 -0
  581. package/lib/cjs/error/DimensionError.js +29 -0
  582. package/lib/cjs/error/IndexError.js +41 -0
  583. package/lib/cjs/expression/Help.js +122 -0
  584. package/lib/cjs/expression/Parser.js +146 -0
  585. package/lib/cjs/expression/embeddedDocs/constants/Infinity.js +15 -0
  586. package/lib/cjs/expression/embeddedDocs/constants/LN10.js +15 -0
  587. package/lib/cjs/expression/embeddedDocs/constants/LN2.js +15 -0
  588. package/lib/cjs/expression/embeddedDocs/constants/LOG10E.js +15 -0
  589. package/lib/cjs/expression/embeddedDocs/constants/LOG2E.js +15 -0
  590. package/lib/cjs/expression/embeddedDocs/constants/NaN.js +15 -0
  591. package/lib/cjs/expression/embeddedDocs/constants/SQRT1_2.js +15 -0
  592. package/lib/cjs/expression/embeddedDocs/constants/SQRT2.js +15 -0
  593. package/lib/cjs/expression/embeddedDocs/constants/e.js +15 -0
  594. package/lib/cjs/expression/embeddedDocs/constants/false.js +15 -0
  595. package/lib/cjs/expression/embeddedDocs/constants/i.js +15 -0
  596. package/lib/cjs/expression/embeddedDocs/constants/null.js +15 -0
  597. package/lib/cjs/expression/embeddedDocs/constants/phi.js +15 -0
  598. package/lib/cjs/expression/embeddedDocs/constants/pi.js +15 -0
  599. package/lib/cjs/expression/embeddedDocs/constants/tau.js +15 -0
  600. package/lib/cjs/expression/embeddedDocs/constants/true.js +15 -0
  601. package/lib/cjs/expression/embeddedDocs/constants/version.js +15 -0
  602. package/lib/cjs/expression/embeddedDocs/construction/bignumber.js +15 -0
  603. package/lib/cjs/expression/embeddedDocs/construction/boolean.js +15 -0
  604. package/lib/cjs/expression/embeddedDocs/construction/complex.js +15 -0
  605. package/lib/cjs/expression/embeddedDocs/construction/createUnit.js +15 -0
  606. package/lib/cjs/expression/embeddedDocs/construction/fraction.js +15 -0
  607. package/lib/cjs/expression/embeddedDocs/construction/index.js +15 -0
  608. package/lib/cjs/expression/embeddedDocs/construction/matrix.js +15 -0
  609. package/lib/cjs/expression/embeddedDocs/construction/number.js +15 -0
  610. package/lib/cjs/expression/embeddedDocs/construction/sparse.js +15 -0
  611. package/lib/cjs/expression/embeddedDocs/construction/splitUnit.js +15 -0
  612. package/lib/cjs/expression/embeddedDocs/construction/string.js +15 -0
  613. package/lib/cjs/expression/embeddedDocs/construction/unit.js +15 -0
  614. package/lib/cjs/expression/embeddedDocs/core/config.js +15 -0
  615. package/lib/cjs/expression/embeddedDocs/core/import.js +15 -0
  616. package/lib/cjs/expression/embeddedDocs/core/typed.js +15 -0
  617. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +713 -0
  618. package/lib/cjs/expression/embeddedDocs/function/algebra/derivative.js +15 -0
  619. package/lib/cjs/expression/embeddedDocs/function/algebra/leafCount.js +15 -0
  620. package/lib/cjs/expression/embeddedDocs/function/algebra/lsolve.js +15 -0
  621. package/lib/cjs/expression/embeddedDocs/function/algebra/lsolveAll.js +15 -0
  622. package/lib/cjs/expression/embeddedDocs/function/algebra/lup.js +15 -0
  623. package/lib/cjs/expression/embeddedDocs/function/algebra/lusolve.js +15 -0
  624. package/lib/cjs/expression/embeddedDocs/function/algebra/polynomialRoot.js +15 -0
  625. package/lib/cjs/expression/embeddedDocs/function/algebra/qr.js +15 -0
  626. package/lib/cjs/expression/embeddedDocs/function/algebra/rationalize.js +15 -0
  627. package/lib/cjs/expression/embeddedDocs/function/algebra/resolve.js +16 -0
  628. package/lib/cjs/expression/embeddedDocs/function/algebra/simplify.js +15 -0
  629. package/lib/cjs/expression/embeddedDocs/function/algebra/simplifyConstant.js +15 -0
  630. package/lib/cjs/expression/embeddedDocs/function/algebra/simplifyCore.js +15 -0
  631. package/lib/cjs/expression/embeddedDocs/function/algebra/slu.js +15 -0
  632. package/lib/cjs/expression/embeddedDocs/function/algebra/symbolicEqual.js +15 -0
  633. package/lib/cjs/expression/embeddedDocs/function/algebra/usolve.js +15 -0
  634. package/lib/cjs/expression/embeddedDocs/function/algebra/usolveAll.js +15 -0
  635. package/lib/cjs/expression/embeddedDocs/function/arithmetic/abs.js +15 -0
  636. package/lib/cjs/expression/embeddedDocs/function/arithmetic/add.js +15 -0
  637. package/lib/cjs/expression/embeddedDocs/function/arithmetic/cbrt.js +15 -0
  638. package/lib/cjs/expression/embeddedDocs/function/arithmetic/ceil.js +15 -0
  639. package/lib/cjs/expression/embeddedDocs/function/arithmetic/cube.js +15 -0
  640. package/lib/cjs/expression/embeddedDocs/function/arithmetic/divide.js +15 -0
  641. package/lib/cjs/expression/embeddedDocs/function/arithmetic/dotDivide.js +15 -0
  642. package/lib/cjs/expression/embeddedDocs/function/arithmetic/dotMultiply.js +15 -0
  643. package/lib/cjs/expression/embeddedDocs/function/arithmetic/dotPow.js +15 -0
  644. package/lib/cjs/expression/embeddedDocs/function/arithmetic/exp.js +15 -0
  645. package/lib/cjs/expression/embeddedDocs/function/arithmetic/expm.js +15 -0
  646. package/lib/cjs/expression/embeddedDocs/function/arithmetic/expm1.js +15 -0
  647. package/lib/cjs/expression/embeddedDocs/function/arithmetic/fix.js +15 -0
  648. package/lib/cjs/expression/embeddedDocs/function/arithmetic/floor.js +15 -0
  649. package/lib/cjs/expression/embeddedDocs/function/arithmetic/gcd.js +15 -0
  650. package/lib/cjs/expression/embeddedDocs/function/arithmetic/hypot.js +15 -0
  651. package/lib/cjs/expression/embeddedDocs/function/arithmetic/invmod.js +15 -0
  652. package/lib/cjs/expression/embeddedDocs/function/arithmetic/lcm.js +15 -0
  653. package/lib/cjs/expression/embeddedDocs/function/arithmetic/log.js +15 -0
  654. package/lib/cjs/expression/embeddedDocs/function/arithmetic/log10.js +15 -0
  655. package/lib/cjs/expression/embeddedDocs/function/arithmetic/log1p.js +15 -0
  656. package/lib/cjs/expression/embeddedDocs/function/arithmetic/log2.js +15 -0
  657. package/lib/cjs/expression/embeddedDocs/function/arithmetic/mod.js +15 -0
  658. package/lib/cjs/expression/embeddedDocs/function/arithmetic/multiply.js +15 -0
  659. package/lib/cjs/expression/embeddedDocs/function/arithmetic/norm.js +14 -0
  660. package/lib/cjs/expression/embeddedDocs/function/arithmetic/nthRoot.js +15 -0
  661. package/lib/cjs/expression/embeddedDocs/function/arithmetic/nthRoots.js +15 -0
  662. package/lib/cjs/expression/embeddedDocs/function/arithmetic/pow.js +15 -0
  663. package/lib/cjs/expression/embeddedDocs/function/arithmetic/round.js +15 -0
  664. package/lib/cjs/expression/embeddedDocs/function/arithmetic/sign.js +15 -0
  665. package/lib/cjs/expression/embeddedDocs/function/arithmetic/sqrt.js +15 -0
  666. package/lib/cjs/expression/embeddedDocs/function/arithmetic/sqrtm.js +15 -0
  667. package/lib/cjs/expression/embeddedDocs/function/arithmetic/square.js +15 -0
  668. package/lib/cjs/expression/embeddedDocs/function/arithmetic/subtract.js +15 -0
  669. package/lib/cjs/expression/embeddedDocs/function/arithmetic/unaryMinus.js +15 -0
  670. package/lib/cjs/expression/embeddedDocs/function/arithmetic/unaryPlus.js +15 -0
  671. package/lib/cjs/expression/embeddedDocs/function/arithmetic/xgcd.js +15 -0
  672. package/lib/cjs/expression/embeddedDocs/function/bitwise/bitAnd.js +15 -0
  673. package/lib/cjs/expression/embeddedDocs/function/bitwise/bitNot.js +15 -0
  674. package/lib/cjs/expression/embeddedDocs/function/bitwise/bitOr.js +15 -0
  675. package/lib/cjs/expression/embeddedDocs/function/bitwise/bitXor.js +15 -0
  676. package/lib/cjs/expression/embeddedDocs/function/bitwise/leftShift.js +15 -0
  677. package/lib/cjs/expression/embeddedDocs/function/bitwise/rightArithShift.js +15 -0
  678. package/lib/cjs/expression/embeddedDocs/function/bitwise/rightLogShift.js +15 -0
  679. package/lib/cjs/expression/embeddedDocs/function/combinatorics/bellNumbers.js +15 -0
  680. package/lib/cjs/expression/embeddedDocs/function/combinatorics/catalan.js +15 -0
  681. package/lib/cjs/expression/embeddedDocs/function/combinatorics/composition.js +15 -0
  682. package/lib/cjs/expression/embeddedDocs/function/combinatorics/stirlingS2.js +15 -0
  683. package/lib/cjs/expression/embeddedDocs/function/complex/arg.js +15 -0
  684. package/lib/cjs/expression/embeddedDocs/function/complex/conj.js +15 -0
  685. package/lib/cjs/expression/embeddedDocs/function/complex/im.js +15 -0
  686. package/lib/cjs/expression/embeddedDocs/function/complex/re.js +15 -0
  687. package/lib/cjs/expression/embeddedDocs/function/expression/evaluate.js +15 -0
  688. package/lib/cjs/expression/embeddedDocs/function/expression/help.js +15 -0
  689. package/lib/cjs/expression/embeddedDocs/function/geometry/distance.js +15 -0
  690. package/lib/cjs/expression/embeddedDocs/function/geometry/intersect.js +15 -0
  691. package/lib/cjs/expression/embeddedDocs/function/logical/and.js +15 -0
  692. package/lib/cjs/expression/embeddedDocs/function/logical/not.js +15 -0
  693. package/lib/cjs/expression/embeddedDocs/function/logical/or.js +15 -0
  694. package/lib/cjs/expression/embeddedDocs/function/logical/xor.js +15 -0
  695. package/lib/cjs/expression/embeddedDocs/function/matrix/column.js +15 -0
  696. package/lib/cjs/expression/embeddedDocs/function/matrix/concat.js +15 -0
  697. package/lib/cjs/expression/embeddedDocs/function/matrix/count.js +15 -0
  698. package/lib/cjs/expression/embeddedDocs/function/matrix/cross.js +15 -0
  699. package/lib/cjs/expression/embeddedDocs/function/matrix/ctranspose.js +15 -0
  700. package/lib/cjs/expression/embeddedDocs/function/matrix/det.js +15 -0
  701. package/lib/cjs/expression/embeddedDocs/function/matrix/diag.js +15 -0
  702. package/lib/cjs/expression/embeddedDocs/function/matrix/diff.js +15 -0
  703. package/lib/cjs/expression/embeddedDocs/function/matrix/dot.js +15 -0
  704. package/lib/cjs/expression/embeddedDocs/function/matrix/eigs.js +15 -0
  705. package/lib/cjs/expression/embeddedDocs/function/matrix/fft.js +15 -0
  706. package/lib/cjs/expression/embeddedDocs/function/matrix/filter.js +15 -0
  707. package/lib/cjs/expression/embeddedDocs/function/matrix/flatten.js +15 -0
  708. package/lib/cjs/expression/embeddedDocs/function/matrix/forEach.js +15 -0
  709. package/lib/cjs/expression/embeddedDocs/function/matrix/getMatrixDataType.js +15 -0
  710. package/lib/cjs/expression/embeddedDocs/function/matrix/identity.js +15 -0
  711. package/lib/cjs/expression/embeddedDocs/function/matrix/ifft.js +15 -0
  712. package/lib/cjs/expression/embeddedDocs/function/matrix/inv.js +15 -0
  713. package/lib/cjs/expression/embeddedDocs/function/matrix/kron.js +15 -0
  714. package/lib/cjs/expression/embeddedDocs/function/matrix/lyap.js +15 -0
  715. package/lib/cjs/expression/embeddedDocs/function/matrix/map.js +15 -0
  716. package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromColumns.js +15 -0
  717. package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromFunction.js +15 -0
  718. package/lib/cjs/expression/embeddedDocs/function/matrix/matrixFromRows.js +15 -0
  719. package/lib/cjs/expression/embeddedDocs/function/matrix/ones.js +15 -0
  720. package/lib/cjs/expression/embeddedDocs/function/matrix/partitionSelect.js +15 -0
  721. package/lib/cjs/expression/embeddedDocs/function/matrix/pinv.js +15 -0
  722. package/lib/cjs/expression/embeddedDocs/function/matrix/range.js +15 -0
  723. package/lib/cjs/expression/embeddedDocs/function/matrix/reshape.js +15 -0
  724. package/lib/cjs/expression/embeddedDocs/function/matrix/resize.js +15 -0
  725. package/lib/cjs/expression/embeddedDocs/function/matrix/rotate.js +15 -0
  726. package/lib/cjs/expression/embeddedDocs/function/matrix/rotationMatrix.js +15 -0
  727. package/lib/cjs/expression/embeddedDocs/function/matrix/row.js +15 -0
  728. package/lib/cjs/expression/embeddedDocs/function/matrix/schur.js +15 -0
  729. package/lib/cjs/expression/embeddedDocs/function/matrix/size.js +15 -0
  730. package/lib/cjs/expression/embeddedDocs/function/matrix/sort.js +15 -0
  731. package/lib/cjs/expression/embeddedDocs/function/matrix/squeeze.js +15 -0
  732. package/lib/cjs/expression/embeddedDocs/function/matrix/subset.js +15 -0
  733. package/lib/cjs/expression/embeddedDocs/function/matrix/sylvester.js +15 -0
  734. package/lib/cjs/expression/embeddedDocs/function/matrix/trace.js +15 -0
  735. package/lib/cjs/expression/embeddedDocs/function/matrix/transpose.js +15 -0
  736. package/lib/cjs/expression/embeddedDocs/function/matrix/zeros.js +15 -0
  737. package/lib/cjs/expression/embeddedDocs/function/probability/combinations.js +15 -0
  738. package/lib/cjs/expression/embeddedDocs/function/probability/combinationsWithRep.js +15 -0
  739. package/lib/cjs/expression/embeddedDocs/function/probability/distribution.js +15 -0
  740. package/lib/cjs/expression/embeddedDocs/function/probability/factorial.js +15 -0
  741. package/lib/cjs/expression/embeddedDocs/function/probability/gamma.js +15 -0
  742. package/lib/cjs/expression/embeddedDocs/function/probability/kldivergence.js +15 -0
  743. package/lib/cjs/expression/embeddedDocs/function/probability/lgamma.js +15 -0
  744. package/lib/cjs/expression/embeddedDocs/function/probability/multinomial.js +15 -0
  745. package/lib/cjs/expression/embeddedDocs/function/probability/permutations.js +15 -0
  746. package/lib/cjs/expression/embeddedDocs/function/probability/pickRandom.js +15 -0
  747. package/lib/cjs/expression/embeddedDocs/function/probability/random.js +15 -0
  748. package/lib/cjs/expression/embeddedDocs/function/probability/randomInt.js +15 -0
  749. package/lib/cjs/expression/embeddedDocs/function/relational/compare.js +15 -0
  750. package/lib/cjs/expression/embeddedDocs/function/relational/compareNatural.js +15 -0
  751. package/lib/cjs/expression/embeddedDocs/function/relational/compareText.js +15 -0
  752. package/lib/cjs/expression/embeddedDocs/function/relational/deepEqual.js +15 -0
  753. package/lib/cjs/expression/embeddedDocs/function/relational/equal.js +15 -0
  754. package/lib/cjs/expression/embeddedDocs/function/relational/equalText.js +15 -0
  755. package/lib/cjs/expression/embeddedDocs/function/relational/larger.js +15 -0
  756. package/lib/cjs/expression/embeddedDocs/function/relational/largerEq.js +15 -0
  757. package/lib/cjs/expression/embeddedDocs/function/relational/smaller.js +15 -0
  758. package/lib/cjs/expression/embeddedDocs/function/relational/smallerEq.js +15 -0
  759. package/lib/cjs/expression/embeddedDocs/function/relational/unequal.js +15 -0
  760. package/lib/cjs/expression/embeddedDocs/function/set/setCartesian.js +15 -0
  761. package/lib/cjs/expression/embeddedDocs/function/set/setDifference.js +15 -0
  762. package/lib/cjs/expression/embeddedDocs/function/set/setDistinct.js +15 -0
  763. package/lib/cjs/expression/embeddedDocs/function/set/setIntersect.js +15 -0
  764. package/lib/cjs/expression/embeddedDocs/function/set/setIsSubset.js +15 -0
  765. package/lib/cjs/expression/embeddedDocs/function/set/setMultiplicity.js +15 -0
  766. package/lib/cjs/expression/embeddedDocs/function/set/setPowerset.js +15 -0
  767. package/lib/cjs/expression/embeddedDocs/function/set/setSize.js +15 -0
  768. package/lib/cjs/expression/embeddedDocs/function/set/setSymDifference.js +15 -0
  769. package/lib/cjs/expression/embeddedDocs/function/set/setUnion.js +15 -0
  770. package/lib/cjs/expression/embeddedDocs/function/special/erf.js +15 -0
  771. package/lib/cjs/expression/embeddedDocs/function/statistics/cumsum.js +15 -0
  772. package/lib/cjs/expression/embeddedDocs/function/statistics/mad.js +15 -0
  773. package/lib/cjs/expression/embeddedDocs/function/statistics/max.js +15 -0
  774. package/lib/cjs/expression/embeddedDocs/function/statistics/mean.js +15 -0
  775. package/lib/cjs/expression/embeddedDocs/function/statistics/median.js +15 -0
  776. package/lib/cjs/expression/embeddedDocs/function/statistics/min.js +15 -0
  777. package/lib/cjs/expression/embeddedDocs/function/statistics/mode.js +15 -0
  778. package/lib/cjs/expression/embeddedDocs/function/statistics/prod.js +15 -0
  779. package/lib/cjs/expression/embeddedDocs/function/statistics/quantileSeq.js +15 -0
  780. package/lib/cjs/expression/embeddedDocs/function/statistics/std.js +15 -0
  781. package/lib/cjs/expression/embeddedDocs/function/statistics/sum.js +15 -0
  782. package/lib/cjs/expression/embeddedDocs/function/statistics/variance.js +15 -0
  783. package/lib/cjs/expression/embeddedDocs/function/trigonometry/acos.js +15 -0
  784. package/lib/cjs/expression/embeddedDocs/function/trigonometry/acosh.js +15 -0
  785. package/lib/cjs/expression/embeddedDocs/function/trigonometry/acot.js +15 -0
  786. package/lib/cjs/expression/embeddedDocs/function/trigonometry/acoth.js +15 -0
  787. package/lib/cjs/expression/embeddedDocs/function/trigonometry/acsc.js +15 -0
  788. package/lib/cjs/expression/embeddedDocs/function/trigonometry/acsch.js +15 -0
  789. package/lib/cjs/expression/embeddedDocs/function/trigonometry/asec.js +15 -0
  790. package/lib/cjs/expression/embeddedDocs/function/trigonometry/asech.js +15 -0
  791. package/lib/cjs/expression/embeddedDocs/function/trigonometry/asin.js +15 -0
  792. package/lib/cjs/expression/embeddedDocs/function/trigonometry/asinh.js +15 -0
  793. package/lib/cjs/expression/embeddedDocs/function/trigonometry/atan.js +15 -0
  794. package/lib/cjs/expression/embeddedDocs/function/trigonometry/atan2.js +15 -0
  795. package/lib/cjs/expression/embeddedDocs/function/trigonometry/atanh.js +15 -0
  796. package/lib/cjs/expression/embeddedDocs/function/trigonometry/cos.js +15 -0
  797. package/lib/cjs/expression/embeddedDocs/function/trigonometry/cosh.js +15 -0
  798. package/lib/cjs/expression/embeddedDocs/function/trigonometry/cot.js +15 -0
  799. package/lib/cjs/expression/embeddedDocs/function/trigonometry/coth.js +15 -0
  800. package/lib/cjs/expression/embeddedDocs/function/trigonometry/csc.js +15 -0
  801. package/lib/cjs/expression/embeddedDocs/function/trigonometry/csch.js +15 -0
  802. package/lib/cjs/expression/embeddedDocs/function/trigonometry/sec.js +15 -0
  803. package/lib/cjs/expression/embeddedDocs/function/trigonometry/sech.js +15 -0
  804. package/lib/cjs/expression/embeddedDocs/function/trigonometry/sin.js +15 -0
  805. package/lib/cjs/expression/embeddedDocs/function/trigonometry/sinh.js +15 -0
  806. package/lib/cjs/expression/embeddedDocs/function/trigonometry/tan.js +15 -0
  807. package/lib/cjs/expression/embeddedDocs/function/trigonometry/tanh.js +15 -0
  808. package/lib/cjs/expression/embeddedDocs/function/units/to.js +15 -0
  809. package/lib/cjs/expression/embeddedDocs/function/utils/bin.js +15 -0
  810. package/lib/cjs/expression/embeddedDocs/function/utils/clone.js +15 -0
  811. package/lib/cjs/expression/embeddedDocs/function/utils/format.js +15 -0
  812. package/lib/cjs/expression/embeddedDocs/function/utils/hasNumericValue.js +15 -0
  813. package/lib/cjs/expression/embeddedDocs/function/utils/hex.js +15 -0
  814. package/lib/cjs/expression/embeddedDocs/function/utils/isInteger.js +15 -0
  815. package/lib/cjs/expression/embeddedDocs/function/utils/isNaN.js +15 -0
  816. package/lib/cjs/expression/embeddedDocs/function/utils/isNegative.js +15 -0
  817. package/lib/cjs/expression/embeddedDocs/function/utils/isNumeric.js +15 -0
  818. package/lib/cjs/expression/embeddedDocs/function/utils/isPositive.js +15 -0
  819. package/lib/cjs/expression/embeddedDocs/function/utils/isPrime.js +15 -0
  820. package/lib/cjs/expression/embeddedDocs/function/utils/isZero.js +15 -0
  821. package/lib/cjs/expression/embeddedDocs/function/utils/numeric.js +15 -0
  822. package/lib/cjs/expression/embeddedDocs/function/utils/oct.js +15 -0
  823. package/lib/cjs/expression/embeddedDocs/function/utils/print.js +15 -0
  824. package/lib/cjs/expression/embeddedDocs/function/utils/typeOf.js +15 -0
  825. package/lib/cjs/expression/function/compile.js +59 -0
  826. package/lib/cjs/expression/function/evaluate.js +68 -0
  827. package/lib/cjs/expression/function/help.js +72 -0
  828. package/lib/cjs/expression/function/parser.js +62 -0
  829. package/lib/cjs/expression/keywords.js +9 -0
  830. package/lib/cjs/expression/node/AccessorNode.js +233 -0
  831. package/lib/cjs/expression/node/ArrayNode.js +218 -0
  832. package/lib/cjs/expression/node/AssignmentNode.js +350 -0
  833. package/lib/cjs/expression/node/BlockNode.js +227 -0
  834. package/lib/cjs/expression/node/ConditionalNode.js +267 -0
  835. package/lib/cjs/expression/node/ConstantNode.js +214 -0
  836. package/lib/cjs/expression/node/FunctionAssignmentNode.js +289 -0
  837. package/lib/cjs/expression/node/FunctionNode.js +533 -0
  838. package/lib/cjs/expression/node/IndexNode.js +268 -0
  839. package/lib/cjs/expression/node/Node.js +423 -0
  840. package/lib/cjs/expression/node/ObjectNode.js +238 -0
  841. package/lib/cjs/expression/node/OperatorNode.js +671 -0
  842. package/lib/cjs/expression/node/ParenthesisNode.js +196 -0
  843. package/lib/cjs/expression/node/RangeNode.js +294 -0
  844. package/lib/cjs/expression/node/RelationalNode.js +248 -0
  845. package/lib/cjs/expression/node/SymbolNode.js +237 -0
  846. package/lib/cjs/expression/node/utils/access.js +46 -0
  847. package/lib/cjs/expression/node/utils/assign.js +52 -0
  848. package/lib/cjs/expression/operators.js +386 -0
  849. package/lib/cjs/expression/parse.js +1650 -0
  850. package/lib/cjs/expression/transform/apply.transform.js +49 -0
  851. package/lib/cjs/expression/transform/column.transform.js +52 -0
  852. package/lib/cjs/expression/transform/concat.transform.js +50 -0
  853. package/lib/cjs/expression/transform/cumsum.transform.js +50 -0
  854. package/lib/cjs/expression/transform/diff.transform.js +46 -0
  855. package/lib/cjs/expression/transform/filter.transform.js +82 -0
  856. package/lib/cjs/expression/transform/forEach.transform.js +71 -0
  857. package/lib/cjs/expression/transform/index.transform.js +54 -0
  858. package/lib/cjs/expression/transform/map.transform.js +85 -0
  859. package/lib/cjs/expression/transform/max.transform.js +45 -0
  860. package/lib/cjs/expression/transform/mean.transform.js +43 -0
  861. package/lib/cjs/expression/transform/min.transform.js +45 -0
  862. package/lib/cjs/expression/transform/range.transform.js +51 -0
  863. package/lib/cjs/expression/transform/row.transform.js +52 -0
  864. package/lib/cjs/expression/transform/std.transform.js +45 -0
  865. package/lib/cjs/expression/transform/subset.transform.js +38 -0
  866. package/lib/cjs/expression/transform/sum.transform.js +44 -0
  867. package/lib/cjs/expression/transform/utils/compileInlineExpression.js +34 -0
  868. package/lib/cjs/expression/transform/utils/errorTransform.js +18 -0
  869. package/lib/cjs/expression/transform/utils/lastDimToZeroBase.js +22 -0
  870. package/lib/cjs/expression/transform/variance.transform.js +51 -0
  871. package/lib/cjs/factoriesAny.js +2381 -0
  872. package/lib/cjs/factoriesNumber.js +1098 -0
  873. package/lib/cjs/function/algebra/decomposition/lup.js +384 -0
  874. package/lib/cjs/function/algebra/decomposition/qr.js +228 -0
  875. package/lib/cjs/function/algebra/decomposition/schur.js +75 -0
  876. package/lib/cjs/function/algebra/decomposition/slu.js +106 -0
  877. package/lib/cjs/function/algebra/derivative.js +548 -0
  878. package/lib/cjs/function/algebra/leafCount.js +59 -0
  879. package/lib/cjs/function/algebra/lyap.js +57 -0
  880. package/lib/cjs/function/algebra/polynomialRoot.js +139 -0
  881. package/lib/cjs/function/algebra/rationalize.js +830 -0
  882. package/lib/cjs/function/algebra/resolve.js +132 -0
  883. package/lib/cjs/function/algebra/simplify/util.js +267 -0
  884. package/lib/cjs/function/algebra/simplify/wildcards.js +38 -0
  885. package/lib/cjs/function/algebra/simplify.js +1265 -0
  886. package/lib/cjs/function/algebra/simplifyConstant.js +490 -0
  887. package/lib/cjs/function/algebra/simplifyCore.js +302 -0
  888. package/lib/cjs/function/algebra/solver/lsolve.js +162 -0
  889. package/lib/cjs/function/algebra/solver/lsolveAll.js +207 -0
  890. package/lib/cjs/function/algebra/solver/lusolve.js +113 -0
  891. package/lib/cjs/function/algebra/solver/usolve.js +166 -0
  892. package/lib/cjs/function/algebra/solver/usolveAll.js +211 -0
  893. package/lib/cjs/function/algebra/solver/utils/solveValidation.js +119 -0
  894. package/lib/cjs/function/algebra/sparse/csAmd.js +586 -0
  895. package/lib/cjs/function/algebra/sparse/csChol.js +161 -0
  896. package/lib/cjs/function/algebra/sparse/csCounts.js +130 -0
  897. package/lib/cjs/function/algebra/sparse/csCumsum.js +32 -0
  898. package/lib/cjs/function/algebra/sparse/csDfs.js +80 -0
  899. package/lib/cjs/function/algebra/sparse/csEreach.js +67 -0
  900. package/lib/cjs/function/algebra/sparse/csEtree.js +75 -0
  901. package/lib/cjs/function/algebra/sparse/csFkeep.js +62 -0
  902. package/lib/cjs/function/algebra/sparse/csFlip.js +17 -0
  903. package/lib/cjs/function/algebra/sparse/csIpvec.js +35 -0
  904. package/lib/cjs/function/algebra/sparse/csLeaf.js +62 -0
  905. package/lib/cjs/function/algebra/sparse/csLu.js +185 -0
  906. package/lib/cjs/function/algebra/sparse/csMark.js +19 -0
  907. package/lib/cjs/function/algebra/sparse/csMarked.js +18 -0
  908. package/lib/cjs/function/algebra/sparse/csPermute.js +65 -0
  909. package/lib/cjs/function/algebra/sparse/csPost.js +56 -0
  910. package/lib/cjs/function/algebra/sparse/csReach.js +55 -0
  911. package/lib/cjs/function/algebra/sparse/csSpsolve.js +88 -0
  912. package/lib/cjs/function/algebra/sparse/csSqr.js +183 -0
  913. package/lib/cjs/function/algebra/sparse/csSymperm.js +97 -0
  914. package/lib/cjs/function/algebra/sparse/csTdfs.js +46 -0
  915. package/lib/cjs/function/algebra/sparse/csUnflip.js +18 -0
  916. package/lib/cjs/function/algebra/sylvester.js +127 -0
  917. package/lib/cjs/function/algebra/symbolicEqual.js +65 -0
  918. package/lib/cjs/function/arithmetic/abs.js +51 -0
  919. package/lib/cjs/function/arithmetic/add.js +90 -0
  920. package/lib/cjs/function/arithmetic/addScalar.js +53 -0
  921. package/lib/cjs/function/arithmetic/cbrt.js +136 -0
  922. package/lib/cjs/function/arithmetic/ceil.js +187 -0
  923. package/lib/cjs/function/arithmetic/cube.js +56 -0
  924. package/lib/cjs/function/arithmetic/divide.js +84 -0
  925. package/lib/cjs/function/arithmetic/divideScalar.js +46 -0
  926. package/lib/cjs/function/arithmetic/dotDivide.js +83 -0
  927. package/lib/cjs/function/arithmetic/dotMultiply.js +71 -0
  928. package/lib/cjs/function/arithmetic/dotPow.js +83 -0
  929. package/lib/cjs/function/arithmetic/exp.js +53 -0
  930. package/lib/cjs/function/arithmetic/expm1.js +58 -0
  931. package/lib/cjs/function/arithmetic/fix.js +140 -0
  932. package/lib/cjs/function/arithmetic/floor.js +190 -0
  933. package/lib/cjs/function/arithmetic/gcd.js +132 -0
  934. package/lib/cjs/function/arithmetic/hypot.js +84 -0
  935. package/lib/cjs/function/arithmetic/invmod.js +65 -0
  936. package/lib/cjs/function/arithmetic/lcm.js +119 -0
  937. package/lib/cjs/function/arithmetic/log.js +79 -0
  938. package/lib/cjs/function/arithmetic/log10.js +68 -0
  939. package/lib/cjs/function/arithmetic/log1p.js +92 -0
  940. package/lib/cjs/function/arithmetic/log2.js +77 -0
  941. package/lib/cjs/function/arithmetic/mod.js +106 -0
  942. package/lib/cjs/function/arithmetic/multiply.js +894 -0
  943. package/lib/cjs/function/arithmetic/multiplyScalar.js +44 -0
  944. package/lib/cjs/function/arithmetic/norm.js +292 -0
  945. package/lib/cjs/function/arithmetic/nthRoot.js +194 -0
  946. package/lib/cjs/function/arithmetic/nthRoots.js +117 -0
  947. package/lib/cjs/function/arithmetic/pow.js +196 -0
  948. package/lib/cjs/function/arithmetic/round.js +169 -0
  949. package/lib/cjs/function/arithmetic/sign.js +74 -0
  950. package/lib/cjs/function/arithmetic/sqrt.js +75 -0
  951. package/lib/cjs/function/arithmetic/square.js +57 -0
  952. package/lib/cjs/function/arithmetic/subtract.js +121 -0
  953. package/lib/cjs/function/arithmetic/unaryMinus.js +59 -0
  954. package/lib/cjs/function/arithmetic/unaryPlus.js +69 -0
  955. package/lib/cjs/function/arithmetic/xgcd.js +96 -0
  956. package/lib/cjs/function/bitwise/bitAnd.js +70 -0
  957. package/lib/cjs/function/bitwise/bitNot.js +47 -0
  958. package/lib/cjs/function/bitwise/bitOr.js +71 -0
  959. package/lib/cjs/function/bitwise/bitXor.js +69 -0
  960. package/lib/cjs/function/bitwise/leftShift.js +127 -0
  961. package/lib/cjs/function/bitwise/rightArithShift.js +127 -0
  962. package/lib/cjs/function/bitwise/rightLogShift.js +128 -0
  963. package/lib/cjs/function/bitwise/useMatrixForArrayScalar.js +34 -0
  964. package/lib/cjs/function/combinatorics/bellNumbers.js +52 -0
  965. package/lib/cjs/function/combinatorics/catalan.js +48 -0
  966. package/lib/cjs/function/combinatorics/composition.js +51 -0
  967. package/lib/cjs/function/combinatorics/stirlingS2.js +91 -0
  968. package/lib/cjs/function/complex/arg.js +59 -0
  969. package/lib/cjs/function/complex/conj.js +52 -0
  970. package/lib/cjs/function/complex/im.js +57 -0
  971. package/lib/cjs/function/complex/re.js +54 -0
  972. package/lib/cjs/function/geometry/distance.js +312 -0
  973. package/lib/cjs/function/geometry/intersect.js +207 -0
  974. package/lib/cjs/function/logical/and.js +142 -0
  975. package/lib/cjs/function/logical/not.js +62 -0
  976. package/lib/cjs/function/logical/or.js +85 -0
  977. package/lib/cjs/function/logical/xor.js +84 -0
  978. package/lib/cjs/function/matrix/apply.js +116 -0
  979. package/lib/cjs/function/matrix/column.js +64 -0
  980. package/lib/cjs/function/matrix/concat.js +136 -0
  981. package/lib/cjs/function/matrix/count.js +44 -0
  982. package/lib/cjs/function/matrix/cross.js +86 -0
  983. package/lib/cjs/function/matrix/ctranspose.js +42 -0
  984. package/lib/cjs/function/matrix/det.js +150 -0
  985. package/lib/cjs/function/matrix/diag.js +160 -0
  986. package/lib/cjs/function/matrix/diff.js +178 -0
  987. package/lib/cjs/function/matrix/dot.js +161 -0
  988. package/lib/cjs/function/matrix/eigs/complexEigs.js +739 -0
  989. package/lib/cjs/function/matrix/eigs/realSymetric.js +297 -0
  990. package/lib/cjs/function/matrix/eigs.js +259 -0
  991. package/lib/cjs/function/matrix/expm.js +159 -0
  992. package/lib/cjs/function/matrix/fft.js +153 -0
  993. package/lib/cjs/function/matrix/filter.js +77 -0
  994. package/lib/cjs/function/matrix/flatten.js +44 -0
  995. package/lib/cjs/function/matrix/forEach.js +74 -0
  996. package/lib/cjs/function/matrix/getMatrixDataType.js +57 -0
  997. package/lib/cjs/function/matrix/identity.js +141 -0
  998. package/lib/cjs/function/matrix/ifft.js +44 -0
  999. package/lib/cjs/function/matrix/inv.js +189 -0
  1000. package/lib/cjs/function/matrix/kron.js +90 -0
  1001. package/lib/cjs/function/matrix/map.js +110 -0
  1002. package/lib/cjs/function/matrix/matrixFromColumns.js +108 -0
  1003. package/lib/cjs/function/matrix/matrixFromFunction.js +79 -0
  1004. package/lib/cjs/function/matrix/matrixFromRows.js +96 -0
  1005. package/lib/cjs/function/matrix/ones.js +128 -0
  1006. package/lib/cjs/function/matrix/partitionSelect.js +151 -0
  1007. package/lib/cjs/function/matrix/pinv.js +191 -0
  1008. package/lib/cjs/function/matrix/range.js +263 -0
  1009. package/lib/cjs/function/matrix/reshape.js +68 -0
  1010. package/lib/cjs/function/matrix/resize.js +126 -0
  1011. package/lib/cjs/function/matrix/rotate.js +76 -0
  1012. package/lib/cjs/function/matrix/rotationMatrix.js +167 -0
  1013. package/lib/cjs/function/matrix/row.js +64 -0
  1014. package/lib/cjs/function/matrix/size.js +53 -0
  1015. package/lib/cjs/function/matrix/sort.js +120 -0
  1016. package/lib/cjs/function/matrix/sqrtm.js +104 -0
  1017. package/lib/cjs/function/matrix/squeeze.js +59 -0
  1018. package/lib/cjs/function/matrix/subset.js +218 -0
  1019. package/lib/cjs/function/matrix/trace.js +133 -0
  1020. package/lib/cjs/function/matrix/transpose.js +168 -0
  1021. package/lib/cjs/function/matrix/zeros.js +128 -0
  1022. package/lib/cjs/function/probability/combinations.js +74 -0
  1023. package/lib/cjs/function/probability/combinationsWithRep.js +89 -0
  1024. package/lib/cjs/function/probability/factorial.js +56 -0
  1025. package/lib/cjs/function/probability/gamma.js +125 -0
  1026. package/lib/cjs/function/probability/kldivergence.js +84 -0
  1027. package/lib/cjs/function/probability/lgamma.js +142 -0
  1028. package/lib/cjs/function/probability/multinomial.js +55 -0
  1029. package/lib/cjs/function/probability/permutations.js +83 -0
  1030. package/lib/cjs/function/probability/pickRandom.js +155 -0
  1031. package/lib/cjs/function/probability/random.js +120 -0
  1032. package/lib/cjs/function/probability/randomInt.js +86 -0
  1033. package/lib/cjs/function/probability/util/randomMatrix.js +26 -0
  1034. package/lib/cjs/function/probability/util/seededRNG.js +26 -0
  1035. package/lib/cjs/function/relational/compare.js +115 -0
  1036. package/lib/cjs/function/relational/compareNatural.js +280 -0
  1037. package/lib/cjs/function/relational/compareText.js +61 -0
  1038. package/lib/cjs/function/relational/compareUnits.js +21 -0
  1039. package/lib/cjs/function/relational/deepEqual.js +79 -0
  1040. package/lib/cjs/function/relational/equal.js +114 -0
  1041. package/lib/cjs/function/relational/equalScalar.js +57 -0
  1042. package/lib/cjs/function/relational/equalText.js +46 -0
  1043. package/lib/cjs/function/relational/larger.js +106 -0
  1044. package/lib/cjs/function/relational/largerEq.js +102 -0
  1045. package/lib/cjs/function/relational/smaller.js +106 -0
  1046. package/lib/cjs/function/relational/smallerEq.js +102 -0
  1047. package/lib/cjs/function/relational/unequal.js +117 -0
  1048. package/lib/cjs/function/set/setCartesian.js +63 -0
  1049. package/lib/cjs/function/set/setDifference.js +76 -0
  1050. package/lib/cjs/function/set/setDistinct.js +62 -0
  1051. package/lib/cjs/function/set/setIntersect.js +68 -0
  1052. package/lib/cjs/function/set/setIsSubset.js +67 -0
  1053. package/lib/cjs/function/set/setMultiplicity.js +55 -0
  1054. package/lib/cjs/function/set/setPowerset.js +80 -0
  1055. package/lib/cjs/function/set/setSize.js +56 -0
  1056. package/lib/cjs/function/set/setSymDifference.js +53 -0
  1057. package/lib/cjs/function/set/setUnion.js +54 -0
  1058. package/lib/cjs/function/special/erf.js +161 -0
  1059. package/lib/cjs/function/statistics/cumsum.js +128 -0
  1060. package/lib/cjs/function/statistics/mad.js +69 -0
  1061. package/lib/cjs/function/statistics/max.js +109 -0
  1062. package/lib/cjs/function/statistics/mean.js +99 -0
  1063. package/lib/cjs/function/statistics/median.js +114 -0
  1064. package/lib/cjs/function/statistics/min.js +109 -0
  1065. package/lib/cjs/function/statistics/mode.js +81 -0
  1066. package/lib/cjs/function/statistics/prod.js +84 -0
  1067. package/lib/cjs/function/statistics/quantileSeq.js +240 -0
  1068. package/lib/cjs/function/statistics/std.js +102 -0
  1069. package/lib/cjs/function/statistics/sum.js +89 -0
  1070. package/lib/cjs/function/statistics/utils/improveErrorMessage.js +30 -0
  1071. package/lib/cjs/function/statistics/variance.js +160 -0
  1072. package/lib/cjs/function/string/bin.js +49 -0
  1073. package/lib/cjs/function/string/format.js +136 -0
  1074. package/lib/cjs/function/string/hex.js +48 -0
  1075. package/lib/cjs/function/string/oct.js +50 -0
  1076. package/lib/cjs/function/string/print.js +91 -0
  1077. package/lib/cjs/function/trigonometry/acos.js +54 -0
  1078. package/lib/cjs/function/trigonometry/acosh.js +54 -0
  1079. package/lib/cjs/function/trigonometry/acot.js +47 -0
  1080. package/lib/cjs/function/trigonometry/acoth.js +53 -0
  1081. package/lib/cjs/function/trigonometry/acsc.js +54 -0
  1082. package/lib/cjs/function/trigonometry/acsch.js +46 -0
  1083. package/lib/cjs/function/trigonometry/asec.js +55 -0
  1084. package/lib/cjs/function/trigonometry/asech.js +58 -0
  1085. package/lib/cjs/function/trigonometry/asin.js +54 -0
  1086. package/lib/cjs/function/trigonometry/asinh.js +45 -0
  1087. package/lib/cjs/function/trigonometry/atan.js +47 -0
  1088. package/lib/cjs/function/trigonometry/atan2.js +96 -0
  1089. package/lib/cjs/function/trigonometry/atanh.js +52 -0
  1090. package/lib/cjs/function/trigonometry/cos.js +51 -0
  1091. package/lib/cjs/function/trigonometry/cosh.js +42 -0
  1092. package/lib/cjs/function/trigonometry/cot.js +51 -0
  1093. package/lib/cjs/function/trigonometry/coth.js +48 -0
  1094. package/lib/cjs/function/trigonometry/csc.js +51 -0
  1095. package/lib/cjs/function/trigonometry/csch.js +48 -0
  1096. package/lib/cjs/function/trigonometry/sec.js +51 -0
  1097. package/lib/cjs/function/trigonometry/sech.js +48 -0
  1098. package/lib/cjs/function/trigonometry/sin.js +51 -0
  1099. package/lib/cjs/function/trigonometry/sinh.js +42 -0
  1100. package/lib/cjs/function/trigonometry/tan.js +48 -0
  1101. package/lib/cjs/function/trigonometry/tanh.js +45 -0
  1102. package/lib/cjs/function/trigonometry/trigUnit.js +21 -0
  1103. package/lib/cjs/function/unit/to.js +53 -0
  1104. package/lib/cjs/function/utils/clone.js +35 -0
  1105. package/lib/cjs/function/utils/hasNumericValue.js +55 -0
  1106. package/lib/cjs/function/utils/isInteger.js +60 -0
  1107. package/lib/cjs/function/utils/isNaN.js +62 -0
  1108. package/lib/cjs/function/utils/isNegative.js +64 -0
  1109. package/lib/cjs/function/utils/isNumeric.js +56 -0
  1110. package/lib/cjs/function/utils/isPositive.js +65 -0
  1111. package/lib/cjs/function/utils/isPrime.js +133 -0
  1112. package/lib/cjs/function/utils/isZero.js +70 -0
  1113. package/lib/cjs/function/utils/numeric.js +84 -0
  1114. package/lib/cjs/function/utils/typeOf.js +69 -0
  1115. package/lib/cjs/header.js +26 -0
  1116. package/lib/cjs/index.js +16 -0
  1117. package/lib/cjs/json/replacer.js +34 -0
  1118. package/lib/cjs/json/reviver.js +26 -0
  1119. package/lib/cjs/number.js +16 -0
  1120. package/lib/cjs/package.json +3 -0
  1121. package/lib/cjs/plain/bignumber/arithmetic.js +32 -0
  1122. package/lib/cjs/plain/bignumber/index.js +29 -0
  1123. package/lib/cjs/plain/number/arithmetic.js +411 -0
  1124. package/lib/cjs/plain/number/bitwise.js +64 -0
  1125. package/lib/cjs/plain/number/combinations.js +39 -0
  1126. package/lib/cjs/plain/number/constants.js +14 -0
  1127. package/lib/cjs/plain/number/index.js +104 -0
  1128. package/lib/cjs/plain/number/logical.js +27 -0
  1129. package/lib/cjs/plain/number/probability.js +92 -0
  1130. package/lib/cjs/plain/number/relational.js +1 -0
  1131. package/lib/cjs/plain/number/trigonometry.js +142 -0
  1132. package/lib/cjs/plain/number/utils.js +32 -0
  1133. package/lib/cjs/type/bignumber/BigNumber.js +63 -0
  1134. package/lib/cjs/type/bignumber/function/bignumber.js +83 -0
  1135. package/lib/cjs/type/boolean.js +79 -0
  1136. package/lib/cjs/type/chain/Chain.js +220 -0
  1137. package/lib/cjs/type/chain/function/chain.js +57 -0
  1138. package/lib/cjs/type/complex/Complex.js +203 -0
  1139. package/lib/cjs/type/complex/function/complex.js +95 -0
  1140. package/lib/cjs/type/fraction/Fraction.js +49 -0
  1141. package/lib/cjs/type/fraction/function/fraction.js +84 -0
  1142. package/lib/cjs/type/matrix/DenseMatrix.js +1002 -0
  1143. package/lib/cjs/type/matrix/FibonacciHeap.js +356 -0
  1144. package/lib/cjs/type/matrix/ImmutableDenseMatrix.js +226 -0
  1145. package/lib/cjs/type/matrix/Matrix.js +249 -0
  1146. package/lib/cjs/type/matrix/MatrixIndex.js +271 -0
  1147. package/lib/cjs/type/matrix/Range.js +311 -0
  1148. package/lib/cjs/type/matrix/Spa.js +141 -0
  1149. package/lib/cjs/type/matrix/SparseMatrix.js +1524 -0
  1150. package/lib/cjs/type/matrix/function/index.js +67 -0
  1151. package/lib/cjs/type/matrix/function/matrix.js +87 -0
  1152. package/lib/cjs/type/matrix/function/sparse.js +61 -0
  1153. package/lib/cjs/type/matrix/utils/broadcast.js +84 -0
  1154. package/lib/cjs/type/matrix/utils/matAlgo01xDSid.js +117 -0
  1155. package/lib/cjs/type/matrix/utils/matAlgo02xDS0.js +121 -0
  1156. package/lib/cjs/type/matrix/utils/matAlgo03xDSf.js +127 -0
  1157. package/lib/cjs/type/matrix/utils/matAlgo04xSidSid.js +184 -0
  1158. package/lib/cjs/type/matrix/utils/matAlgo05xSfSf.js +176 -0
  1159. package/lib/cjs/type/matrix/utils/matAlgo06xS0S0.js +158 -0
  1160. package/lib/cjs/type/matrix/utils/matAlgo07xSSf.js +124 -0
  1161. package/lib/cjs/type/matrix/utils/matAlgo08xS0Sid.js +159 -0
  1162. package/lib/cjs/type/matrix/utils/matAlgo09xS0Sf.js +147 -0
  1163. package/lib/cjs/type/matrix/utils/matAlgo10xSids.js +110 -0
  1164. package/lib/cjs/type/matrix/utils/matAlgo11xS0s.js +108 -0
  1165. package/lib/cjs/type/matrix/utils/matAlgo12xSfs.js +110 -0
  1166. package/lib/cjs/type/matrix/utils/matAlgo13xDD.js +99 -0
  1167. package/lib/cjs/type/matrix/utils/matAlgo14xDs.js +81 -0
  1168. package/lib/cjs/type/matrix/utils/matrixAlgorithmSuite.js +223 -0
  1169. package/lib/cjs/type/number.js +154 -0
  1170. package/lib/cjs/type/resultset/ResultSet.js +75 -0
  1171. package/lib/cjs/type/string.js +63 -0
  1172. package/lib/cjs/type/unit/Unit.js +3863 -0
  1173. package/lib/cjs/type/unit/function/createUnit.js +84 -0
  1174. package/lib/cjs/type/unit/function/splitUnit.js +37 -0
  1175. package/lib/cjs/type/unit/function/unit.js +71 -0
  1176. package/lib/cjs/type/unit/physicalConstants.js +153 -0
  1177. package/lib/cjs/utils/array.js +607 -0
  1178. package/lib/cjs/utils/bignumber/bitwise.js +411 -0
  1179. package/lib/cjs/utils/bignumber/constants.js +66 -0
  1180. package/lib/cjs/utils/bignumber/formatter.js +259 -0
  1181. package/lib/cjs/utils/bignumber/nearlyEqual.js +47 -0
  1182. package/lib/cjs/utils/collection.js +186 -0
  1183. package/lib/cjs/utils/complex.js +18 -0
  1184. package/lib/cjs/utils/customs.js +161 -0
  1185. package/lib/cjs/utils/emitter.js +24 -0
  1186. package/lib/cjs/utils/factory.js +152 -0
  1187. package/lib/cjs/utils/function.js +107 -0
  1188. package/lib/cjs/utils/is.js +218 -0
  1189. package/lib/cjs/utils/latex.js +499 -0
  1190. package/lib/cjs/utils/log.js +24 -0
  1191. package/lib/cjs/utils/lruQueue.js +61 -0
  1192. package/lib/cjs/utils/map.js +167 -0
  1193. package/lib/cjs/utils/noop.js +25 -0
  1194. package/lib/cjs/utils/number.js +691 -0
  1195. package/lib/cjs/utils/object.js +397 -0
  1196. package/lib/cjs/utils/product.js +20 -0
  1197. package/lib/cjs/utils/scope.js +29 -0
  1198. package/lib/cjs/utils/snapshot.js +234 -0
  1199. package/lib/cjs/utils/string.js +209 -0
  1200. package/lib/cjs/utils/switch.js +26 -0
  1201. package/lib/cjs/version.js +10 -0
  1202. package/lib/esm/constants.js +124 -0
  1203. package/lib/esm/core/config.js +19 -0
  1204. package/lib/esm/core/create.js +198 -0
  1205. package/lib/esm/core/function/config.js +106 -0
  1206. package/lib/esm/core/function/import.js +327 -0
  1207. package/lib/esm/core/function/typed.js +410 -0
  1208. package/lib/esm/defaultInstance.js +3 -0
  1209. package/lib/esm/entry/allFactoriesAny.js +3 -0
  1210. package/lib/esm/entry/allFactoriesNumber.js +3 -0
  1211. package/lib/esm/entry/configReadonly.js +15 -0
  1212. package/lib/esm/entry/dependenciesAny/dependenciesAbs.generated.js +10 -0
  1213. package/lib/esm/entry/dependenciesAny/dependenciesAccessorNode.generated.js +12 -0
  1214. package/lib/esm/entry/dependenciesAny/dependenciesAcos.generated.js +12 -0
  1215. package/lib/esm/entry/dependenciesAny/dependenciesAcosh.generated.js +12 -0
  1216. package/lib/esm/entry/dependenciesAny/dependenciesAcot.generated.js +12 -0
  1217. package/lib/esm/entry/dependenciesAny/dependenciesAcoth.generated.js +14 -0
  1218. package/lib/esm/entry/dependenciesAny/dependenciesAcsc.generated.js +14 -0
  1219. package/lib/esm/entry/dependenciesAny/dependenciesAcsch.generated.js +12 -0
  1220. package/lib/esm/entry/dependenciesAny/dependenciesAdd.generated.js +22 -0
  1221. package/lib/esm/entry/dependenciesAny/dependenciesAddScalar.generated.js +10 -0
  1222. package/lib/esm/entry/dependenciesAny/dependenciesAnd.generated.js +20 -0
  1223. package/lib/esm/entry/dependenciesAny/dependenciesApply.generated.js +12 -0
  1224. package/lib/esm/entry/dependenciesAny/dependenciesApplyTransform.generated.js +12 -0
  1225. package/lib/esm/entry/dependenciesAny/dependenciesArg.generated.js +10 -0
  1226. package/lib/esm/entry/dependenciesAny/dependenciesArrayNode.generated.js +10 -0
  1227. package/lib/esm/entry/dependenciesAny/dependenciesAsec.generated.js +14 -0
  1228. package/lib/esm/entry/dependenciesAny/dependenciesAsech.generated.js +14 -0
  1229. package/lib/esm/entry/dependenciesAny/dependenciesAsin.generated.js +12 -0
  1230. package/lib/esm/entry/dependenciesAny/dependenciesAsinh.generated.js +10 -0
  1231. package/lib/esm/entry/dependenciesAny/dependenciesAssignmentNode.generated.js +14 -0
  1232. package/lib/esm/entry/dependenciesAny/dependenciesAtan.generated.js +10 -0
  1233. package/lib/esm/entry/dependenciesAny/dependenciesAtan2.generated.js +20 -0
  1234. package/lib/esm/entry/dependenciesAny/dependenciesAtanh.generated.js +12 -0
  1235. package/lib/esm/entry/dependenciesAny/dependenciesAtomicMass.generated.js +12 -0
  1236. package/lib/esm/entry/dependenciesAny/dependenciesAvogadro.generated.js +12 -0
  1237. package/lib/esm/entry/dependenciesAny/dependenciesBellNumbers.generated.js +18 -0
  1238. package/lib/esm/entry/dependenciesAny/dependenciesBigNumberClass.generated.js +8 -0
  1239. package/lib/esm/entry/dependenciesAny/dependenciesBignumber.generated.js +12 -0
  1240. package/lib/esm/entry/dependenciesAny/dependenciesBin.generated.js +12 -0
  1241. package/lib/esm/entry/dependenciesAny/dependenciesBitAnd.generated.js +16 -0
  1242. package/lib/esm/entry/dependenciesAny/dependenciesBitNot.generated.js +10 -0
  1243. package/lib/esm/entry/dependenciesAny/dependenciesBitOr.generated.js +18 -0
  1244. package/lib/esm/entry/dependenciesAny/dependenciesBitXor.generated.js +16 -0
  1245. package/lib/esm/entry/dependenciesAny/dependenciesBlockNode.generated.js +12 -0
  1246. package/lib/esm/entry/dependenciesAny/dependenciesBohrMagneton.generated.js +12 -0
  1247. package/lib/esm/entry/dependenciesAny/dependenciesBohrRadius.generated.js +12 -0
  1248. package/lib/esm/entry/dependenciesAny/dependenciesBoltzmann.generated.js +12 -0
  1249. package/lib/esm/entry/dependenciesAny/dependenciesBoolean.generated.js +10 -0
  1250. package/lib/esm/entry/dependenciesAny/dependenciesCatalan.generated.js +22 -0
  1251. package/lib/esm/entry/dependenciesAny/dependenciesCbrt.generated.js +22 -0
  1252. package/lib/esm/entry/dependenciesAny/dependenciesCeil.generated.js +20 -0
  1253. package/lib/esm/entry/dependenciesAny/dependenciesChain.generated.js +12 -0
  1254. package/lib/esm/entry/dependenciesAny/dependenciesChainClass.generated.js +10 -0
  1255. package/lib/esm/entry/dependenciesAny/dependenciesClassicalElectronRadius.generated.js +12 -0
  1256. package/lib/esm/entry/dependenciesAny/dependenciesClone.generated.js +10 -0
  1257. package/lib/esm/entry/dependenciesAny/dependenciesColumn.generated.js +16 -0
  1258. package/lib/esm/entry/dependenciesAny/dependenciesColumnTransform.generated.js +16 -0
  1259. package/lib/esm/entry/dependenciesAny/dependenciesCombinations.generated.js +10 -0
  1260. package/lib/esm/entry/dependenciesAny/dependenciesCombinationsWithRep.generated.js +10 -0
  1261. package/lib/esm/entry/dependenciesAny/dependenciesCompare.generated.js +22 -0
  1262. package/lib/esm/entry/dependenciesAny/dependenciesCompareNatural.generated.js +12 -0
  1263. package/lib/esm/entry/dependenciesAny/dependenciesCompareText.generated.js +14 -0
  1264. package/lib/esm/entry/dependenciesAny/dependenciesCompile.generated.js +12 -0
  1265. package/lib/esm/entry/dependenciesAny/dependenciesComplex.generated.js +12 -0
  1266. package/lib/esm/entry/dependenciesAny/dependenciesComplexClass.generated.js +8 -0
  1267. package/lib/esm/entry/dependenciesAny/dependenciesComposition.generated.js +22 -0
  1268. package/lib/esm/entry/dependenciesAny/dependenciesConcat.generated.js +14 -0
  1269. package/lib/esm/entry/dependenciesAny/dependenciesConcatTransform.generated.js +14 -0
  1270. package/lib/esm/entry/dependenciesAny/dependenciesConditionalNode.generated.js +10 -0
  1271. package/lib/esm/entry/dependenciesAny/dependenciesConductanceQuantum.generated.js +12 -0
  1272. package/lib/esm/entry/dependenciesAny/dependenciesConj.generated.js +10 -0
  1273. package/lib/esm/entry/dependenciesAny/dependenciesConstantNode.generated.js +10 -0
  1274. package/lib/esm/entry/dependenciesAny/dependenciesCos.generated.js +10 -0
  1275. package/lib/esm/entry/dependenciesAny/dependenciesCosh.generated.js +10 -0
  1276. package/lib/esm/entry/dependenciesAny/dependenciesCot.generated.js +12 -0
  1277. package/lib/esm/entry/dependenciesAny/dependenciesCoth.generated.js +12 -0
  1278. package/lib/esm/entry/dependenciesAny/dependenciesCoulomb.generated.js +12 -0
  1279. package/lib/esm/entry/dependenciesAny/dependenciesCount.generated.js +14 -0
  1280. package/lib/esm/entry/dependenciesAny/dependenciesCreateUnit.generated.js +12 -0
  1281. package/lib/esm/entry/dependenciesAny/dependenciesCross.generated.js +16 -0
  1282. package/lib/esm/entry/dependenciesAny/dependenciesCsc.generated.js +12 -0
  1283. package/lib/esm/entry/dependenciesAny/dependenciesCsch.generated.js +12 -0
  1284. package/lib/esm/entry/dependenciesAny/dependenciesCtranspose.generated.js +14 -0
  1285. package/lib/esm/entry/dependenciesAny/dependenciesCube.generated.js +10 -0
  1286. package/lib/esm/entry/dependenciesAny/dependenciesCumSum.generated.js +14 -0
  1287. package/lib/esm/entry/dependenciesAny/dependenciesCumSumTransform.generated.js +14 -0
  1288. package/lib/esm/entry/dependenciesAny/dependenciesDeepEqual.generated.js +12 -0
  1289. package/lib/esm/entry/dependenciesAny/dependenciesDenseMatrixClass.generated.js +10 -0
  1290. package/lib/esm/entry/dependenciesAny/dependenciesDerivative.generated.js +30 -0
  1291. package/lib/esm/entry/dependenciesAny/dependenciesDet.generated.js +22 -0
  1292. package/lib/esm/entry/dependenciesAny/dependenciesDeuteronMass.generated.js +12 -0
  1293. package/lib/esm/entry/dependenciesAny/dependenciesDiag.generated.js +16 -0
  1294. package/lib/esm/entry/dependenciesAny/dependenciesDiff.generated.js +16 -0
  1295. package/lib/esm/entry/dependenciesAny/dependenciesDiffTransform.generated.js +18 -0
  1296. package/lib/esm/entry/dependenciesAny/dependenciesDistance.generated.js +24 -0
  1297. package/lib/esm/entry/dependenciesAny/dependenciesDivide.generated.js +20 -0
  1298. package/lib/esm/entry/dependenciesAny/dependenciesDivideScalar.generated.js +12 -0
  1299. package/lib/esm/entry/dependenciesAny/dependenciesDot.generated.js +18 -0
  1300. package/lib/esm/entry/dependenciesAny/dependenciesDotDivide.generated.js +20 -0
  1301. package/lib/esm/entry/dependenciesAny/dependenciesDotMultiply.generated.js +18 -0
  1302. package/lib/esm/entry/dependenciesAny/dependenciesDotPow.generated.js +20 -0
  1303. package/lib/esm/entry/dependenciesAny/dependenciesE.generated.js +10 -0
  1304. package/lib/esm/entry/dependenciesAny/dependenciesEfimovFactor.generated.js +10 -0
  1305. package/lib/esm/entry/dependenciesAny/dependenciesEigs.generated.js +68 -0
  1306. package/lib/esm/entry/dependenciesAny/dependenciesElectricConstant.generated.js +12 -0
  1307. package/lib/esm/entry/dependenciesAny/dependenciesElectronMass.generated.js +12 -0
  1308. package/lib/esm/entry/dependenciesAny/dependenciesElementaryCharge.generated.js +12 -0
  1309. package/lib/esm/entry/dependenciesAny/dependenciesEqual.generated.js +18 -0
  1310. package/lib/esm/entry/dependenciesAny/dependenciesEqualScalar.generated.js +10 -0
  1311. package/lib/esm/entry/dependenciesAny/dependenciesEqualText.generated.js +14 -0
  1312. package/lib/esm/entry/dependenciesAny/dependenciesErf.generated.js +10 -0
  1313. package/lib/esm/entry/dependenciesAny/dependenciesEvaluate.generated.js +12 -0
  1314. package/lib/esm/entry/dependenciesAny/dependenciesExp.generated.js +10 -0
  1315. package/lib/esm/entry/dependenciesAny/dependenciesExpm.generated.js +20 -0
  1316. package/lib/esm/entry/dependenciesAny/dependenciesExpm1.generated.js +12 -0
  1317. package/lib/esm/entry/dependenciesAny/dependenciesFactorial.generated.js +12 -0
  1318. package/lib/esm/entry/dependenciesAny/dependenciesFalse.generated.js +8 -0
  1319. package/lib/esm/entry/dependenciesAny/dependenciesFaraday.generated.js +12 -0
  1320. package/lib/esm/entry/dependenciesAny/dependenciesFermiCoupling.generated.js +12 -0
  1321. package/lib/esm/entry/dependenciesAny/dependenciesFft.generated.js +34 -0
  1322. package/lib/esm/entry/dependenciesAny/dependenciesFibonacciHeapClass.generated.js +12 -0
  1323. package/lib/esm/entry/dependenciesAny/dependenciesFilter.generated.js +10 -0
  1324. package/lib/esm/entry/dependenciesAny/dependenciesFilterTransform.generated.js +10 -0
  1325. package/lib/esm/entry/dependenciesAny/dependenciesFineStructure.generated.js +10 -0
  1326. package/lib/esm/entry/dependenciesAny/dependenciesFirstRadiation.generated.js +12 -0
  1327. package/lib/esm/entry/dependenciesAny/dependenciesFix.generated.js +24 -0
  1328. package/lib/esm/entry/dependenciesAny/dependenciesFlatten.generated.js +12 -0
  1329. package/lib/esm/entry/dependenciesAny/dependenciesFloor.generated.js +20 -0
  1330. package/lib/esm/entry/dependenciesAny/dependenciesForEach.generated.js +10 -0
  1331. package/lib/esm/entry/dependenciesAny/dependenciesForEachTransform.generated.js +10 -0
  1332. package/lib/esm/entry/dependenciesAny/dependenciesFormat.generated.js +10 -0
  1333. package/lib/esm/entry/dependenciesAny/dependenciesFraction.generated.js +12 -0
  1334. package/lib/esm/entry/dependenciesAny/dependenciesFractionClass.generated.js +8 -0
  1335. package/lib/esm/entry/dependenciesAny/dependenciesFunctionAssignmentNode.generated.js +12 -0
  1336. package/lib/esm/entry/dependenciesAny/dependenciesFunctionNode.generated.js +12 -0
  1337. package/lib/esm/entry/dependenciesAny/dependenciesGamma.generated.js +18 -0
  1338. package/lib/esm/entry/dependenciesAny/dependenciesGasConstant.generated.js +12 -0
  1339. package/lib/esm/entry/dependenciesAny/dependenciesGcd.generated.js +20 -0
  1340. package/lib/esm/entry/dependenciesAny/dependenciesGetMatrixDataType.generated.js +10 -0
  1341. package/lib/esm/entry/dependenciesAny/dependenciesGravitationConstant.generated.js +12 -0
  1342. package/lib/esm/entry/dependenciesAny/dependenciesGravity.generated.js +12 -0
  1343. package/lib/esm/entry/dependenciesAny/dependenciesHartreeEnergy.generated.js +12 -0
  1344. package/lib/esm/entry/dependenciesAny/dependenciesHasNumericValue.generated.js +12 -0
  1345. package/lib/esm/entry/dependenciesAny/dependenciesHelp.generated.js +12 -0
  1346. package/lib/esm/entry/dependenciesAny/dependenciesHelpClass.generated.js +10 -0
  1347. package/lib/esm/entry/dependenciesAny/dependenciesHex.generated.js +12 -0
  1348. package/lib/esm/entry/dependenciesAny/dependenciesHypot.generated.js +24 -0
  1349. package/lib/esm/entry/dependenciesAny/dependenciesI.generated.js +10 -0
  1350. package/lib/esm/entry/dependenciesAny/dependenciesIdentity.generated.js +18 -0
  1351. package/lib/esm/entry/dependenciesAny/dependenciesIfft.generated.js +16 -0
  1352. package/lib/esm/entry/dependenciesAny/dependenciesIm.generated.js +10 -0
  1353. package/lib/esm/entry/dependenciesAny/dependenciesImmutableDenseMatrixClass.generated.js +12 -0
  1354. package/lib/esm/entry/dependenciesAny/dependenciesIndex.generated.js +12 -0
  1355. package/lib/esm/entry/dependenciesAny/dependenciesIndexClass.generated.js +10 -0
  1356. package/lib/esm/entry/dependenciesAny/dependenciesIndexNode.generated.js +12 -0
  1357. package/lib/esm/entry/dependenciesAny/dependenciesIndexTransform.generated.js +10 -0
  1358. package/lib/esm/entry/dependenciesAny/dependenciesInfinity.generated.js +10 -0
  1359. package/lib/esm/entry/dependenciesAny/dependenciesIntersect.generated.js +36 -0
  1360. package/lib/esm/entry/dependenciesAny/dependenciesInv.generated.js +26 -0
  1361. package/lib/esm/entry/dependenciesAny/dependenciesInverseConductanceQuantum.generated.js +12 -0
  1362. package/lib/esm/entry/dependenciesAny/dependenciesInvmod.generated.js +24 -0
  1363. package/lib/esm/entry/dependenciesAny/dependenciesIsInteger.generated.js +10 -0
  1364. package/lib/esm/entry/dependenciesAny/dependenciesIsNaN.generated.js +10 -0
  1365. package/lib/esm/entry/dependenciesAny/dependenciesIsNegative.generated.js +10 -0
  1366. package/lib/esm/entry/dependenciesAny/dependenciesIsNumeric.generated.js +10 -0
  1367. package/lib/esm/entry/dependenciesAny/dependenciesIsPositive.generated.js +10 -0
  1368. package/lib/esm/entry/dependenciesAny/dependenciesIsPrime.generated.js +10 -0
  1369. package/lib/esm/entry/dependenciesAny/dependenciesIsZero.generated.js +10 -0
  1370. package/lib/esm/entry/dependenciesAny/dependenciesKldivergence.generated.js +26 -0
  1371. package/lib/esm/entry/dependenciesAny/dependenciesKlitzing.generated.js +12 -0
  1372. package/lib/esm/entry/dependenciesAny/dependenciesKron.generated.js +14 -0
  1373. package/lib/esm/entry/dependenciesAny/dependenciesLN10.generated.js +10 -0
  1374. package/lib/esm/entry/dependenciesAny/dependenciesLN2.generated.js +10 -0
  1375. package/lib/esm/entry/dependenciesAny/dependenciesLOG10E.generated.js +10 -0
  1376. package/lib/esm/entry/dependenciesAny/dependenciesLOG2E.generated.js +10 -0
  1377. package/lib/esm/entry/dependenciesAny/dependenciesLarger.generated.js +16 -0
  1378. package/lib/esm/entry/dependenciesAny/dependenciesLargerEq.generated.js +16 -0
  1379. package/lib/esm/entry/dependenciesAny/dependenciesLcm.generated.js +16 -0
  1380. package/lib/esm/entry/dependenciesAny/dependenciesLeafCount.generated.js +12 -0
  1381. package/lib/esm/entry/dependenciesAny/dependenciesLeftShift.generated.js +20 -0
  1382. package/lib/esm/entry/dependenciesAny/dependenciesLgamma.generated.js +12 -0
  1383. package/lib/esm/entry/dependenciesAny/dependenciesLog.generated.js +14 -0
  1384. package/lib/esm/entry/dependenciesAny/dependenciesLog10.generated.js +12 -0
  1385. package/lib/esm/entry/dependenciesAny/dependenciesLog1p.generated.js +16 -0
  1386. package/lib/esm/entry/dependenciesAny/dependenciesLog2.generated.js +12 -0
  1387. package/lib/esm/entry/dependenciesAny/dependenciesLoschmidt.generated.js +12 -0
  1388. package/lib/esm/entry/dependenciesAny/dependenciesLsolve.generated.js +22 -0
  1389. package/lib/esm/entry/dependenciesAny/dependenciesLsolveAll.generated.js +22 -0
  1390. package/lib/esm/entry/dependenciesAny/dependenciesLup.generated.js +34 -0
  1391. package/lib/esm/entry/dependenciesAny/dependenciesLusolve.generated.js +22 -0
  1392. package/lib/esm/entry/dependenciesAny/dependenciesLyap.generated.js +18 -0
  1393. package/lib/esm/entry/dependenciesAny/dependenciesMad.generated.js +18 -0
  1394. package/lib/esm/entry/dependenciesAny/dependenciesMagneticConstant.generated.js +12 -0
  1395. package/lib/esm/entry/dependenciesAny/dependenciesMagneticFluxQuantum.generated.js +12 -0
  1396. package/lib/esm/entry/dependenciesAny/dependenciesMap.generated.js +10 -0
  1397. package/lib/esm/entry/dependenciesAny/dependenciesMapTransform.generated.js +10 -0
  1398. package/lib/esm/entry/dependenciesAny/dependenciesMatrix.generated.js +16 -0
  1399. package/lib/esm/entry/dependenciesAny/dependenciesMatrixClass.generated.js +8 -0
  1400. package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromColumns.generated.js +16 -0
  1401. package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromFunction.generated.js +14 -0
  1402. package/lib/esm/entry/dependenciesAny/dependenciesMatrixFromRows.generated.js +16 -0
  1403. package/lib/esm/entry/dependenciesAny/dependenciesMax.generated.js +14 -0
  1404. package/lib/esm/entry/dependenciesAny/dependenciesMaxTransform.generated.js +14 -0
  1405. package/lib/esm/entry/dependenciesAny/dependenciesMean.generated.js +14 -0
  1406. package/lib/esm/entry/dependenciesAny/dependenciesMeanTransform.generated.js +14 -0
  1407. package/lib/esm/entry/dependenciesAny/dependenciesMedian.generated.js +18 -0
  1408. package/lib/esm/entry/dependenciesAny/dependenciesMin.generated.js +14 -0
  1409. package/lib/esm/entry/dependenciesAny/dependenciesMinTransform.generated.js +14 -0
  1410. package/lib/esm/entry/dependenciesAny/dependenciesMod.generated.js +18 -0
  1411. package/lib/esm/entry/dependenciesAny/dependenciesMode.generated.js +14 -0
  1412. package/lib/esm/entry/dependenciesAny/dependenciesMolarMass.generated.js +12 -0
  1413. package/lib/esm/entry/dependenciesAny/dependenciesMolarMassC12.generated.js +12 -0
  1414. package/lib/esm/entry/dependenciesAny/dependenciesMolarPlanckConstant.generated.js +12 -0
  1415. package/lib/esm/entry/dependenciesAny/dependenciesMolarVolume.generated.js +12 -0
  1416. package/lib/esm/entry/dependenciesAny/dependenciesMultinomial.generated.js +22 -0
  1417. package/lib/esm/entry/dependenciesAny/dependenciesMultiply.generated.js +20 -0
  1418. package/lib/esm/entry/dependenciesAny/dependenciesMultiplyScalar.generated.js +10 -0
  1419. package/lib/esm/entry/dependenciesAny/dependenciesNaN.generated.js +10 -0
  1420. package/lib/esm/entry/dependenciesAny/dependenciesNeutronMass.generated.js +12 -0
  1421. package/lib/esm/entry/dependenciesAny/dependenciesNode.generated.js +8 -0
  1422. package/lib/esm/entry/dependenciesAny/dependenciesNorm.generated.js +34 -0
  1423. package/lib/esm/entry/dependenciesAny/dependenciesNot.generated.js +10 -0
  1424. package/lib/esm/entry/dependenciesAny/dependenciesNthRoot.generated.js +18 -0
  1425. package/lib/esm/entry/dependenciesAny/dependenciesNthRoots.generated.js +14 -0
  1426. package/lib/esm/entry/dependenciesAny/dependenciesNuclearMagneton.generated.js +12 -0
  1427. package/lib/esm/entry/dependenciesAny/dependenciesNull.generated.js +8 -0
  1428. package/lib/esm/entry/dependenciesAny/dependenciesNumber.generated.js +10 -0
  1429. package/lib/esm/entry/dependenciesAny/dependenciesNumeric.generated.js +14 -0
  1430. package/lib/esm/entry/dependenciesAny/dependenciesObjectNode.generated.js +10 -0
  1431. package/lib/esm/entry/dependenciesAny/dependenciesOct.generated.js +12 -0
  1432. package/lib/esm/entry/dependenciesAny/dependenciesOnes.generated.js +14 -0
  1433. package/lib/esm/entry/dependenciesAny/dependenciesOperatorNode.generated.js +10 -0
  1434. package/lib/esm/entry/dependenciesAny/dependenciesOr.generated.js +18 -0
  1435. package/lib/esm/entry/dependenciesAny/dependenciesParenthesisNode.generated.js +10 -0
  1436. package/lib/esm/entry/dependenciesAny/dependenciesParse.generated.js +42 -0
  1437. package/lib/esm/entry/dependenciesAny/dependenciesParser.generated.js +12 -0
  1438. package/lib/esm/entry/dependenciesAny/dependenciesParserClass.generated.js +10 -0
  1439. package/lib/esm/entry/dependenciesAny/dependenciesPartitionSelect.generated.js +16 -0
  1440. package/lib/esm/entry/dependenciesAny/dependenciesPermutations.generated.js +12 -0
  1441. package/lib/esm/entry/dependenciesAny/dependenciesPhi.generated.js +10 -0
  1442. package/lib/esm/entry/dependenciesAny/dependenciesPi.generated.js +10 -0
  1443. package/lib/esm/entry/dependenciesAny/dependenciesPickRandom.generated.js +10 -0
  1444. package/lib/esm/entry/dependenciesAny/dependenciesPinv.generated.js +32 -0
  1445. package/lib/esm/entry/dependenciesAny/dependenciesPlanckCharge.generated.js +12 -0
  1446. package/lib/esm/entry/dependenciesAny/dependenciesPlanckConstant.generated.js +12 -0
  1447. package/lib/esm/entry/dependenciesAny/dependenciesPlanckLength.generated.js +12 -0
  1448. package/lib/esm/entry/dependenciesAny/dependenciesPlanckMass.generated.js +12 -0
  1449. package/lib/esm/entry/dependenciesAny/dependenciesPlanckTemperature.generated.js +12 -0
  1450. package/lib/esm/entry/dependenciesAny/dependenciesPlanckTime.generated.js +12 -0
  1451. package/lib/esm/entry/dependenciesAny/dependenciesPolynomialRoot.generated.js +34 -0
  1452. package/lib/esm/entry/dependenciesAny/dependenciesPow.generated.js +24 -0
  1453. package/lib/esm/entry/dependenciesAny/dependenciesPrint.generated.js +10 -0
  1454. package/lib/esm/entry/dependenciesAny/dependenciesProd.generated.js +14 -0
  1455. package/lib/esm/entry/dependenciesAny/dependenciesProtonMass.generated.js +12 -0
  1456. package/lib/esm/entry/dependenciesAny/dependenciesQr.generated.js +38 -0
  1457. package/lib/esm/entry/dependenciesAny/dependenciesQuantileSeq.generated.js +18 -0
  1458. package/lib/esm/entry/dependenciesAny/dependenciesQuantumOfCirculation.generated.js +12 -0
  1459. package/lib/esm/entry/dependenciesAny/dependenciesRandom.generated.js +10 -0
  1460. package/lib/esm/entry/dependenciesAny/dependenciesRandomInt.generated.js +10 -0
  1461. package/lib/esm/entry/dependenciesAny/dependenciesRange.generated.js +22 -0
  1462. package/lib/esm/entry/dependenciesAny/dependenciesRangeClass.generated.js +8 -0
  1463. package/lib/esm/entry/dependenciesAny/dependenciesRangeNode.generated.js +10 -0
  1464. package/lib/esm/entry/dependenciesAny/dependenciesRangeTransform.generated.js +22 -0
  1465. package/lib/esm/entry/dependenciesAny/dependenciesRationalize.generated.js +56 -0
  1466. package/lib/esm/entry/dependenciesAny/dependenciesRe.generated.js +10 -0
  1467. package/lib/esm/entry/dependenciesAny/dependenciesReducedPlanckConstant.generated.js +12 -0
  1468. package/lib/esm/entry/dependenciesAny/dependenciesRelationalNode.generated.js +10 -0
  1469. package/lib/esm/entry/dependenciesAny/dependenciesReplacer.generated.js +8 -0
  1470. package/lib/esm/entry/dependenciesAny/dependenciesReshape.generated.js +14 -0
  1471. package/lib/esm/entry/dependenciesAny/dependenciesResize.generated.js +10 -0
  1472. package/lib/esm/entry/dependenciesAny/dependenciesResolve.generated.js +20 -0
  1473. package/lib/esm/entry/dependenciesAny/dependenciesResultSet.generated.js +8 -0
  1474. package/lib/esm/entry/dependenciesAny/dependenciesReviver.generated.js +8 -0
  1475. package/lib/esm/entry/dependenciesAny/dependenciesRightArithShift.generated.js +20 -0
  1476. package/lib/esm/entry/dependenciesAny/dependenciesRightLogShift.generated.js +20 -0
  1477. package/lib/esm/entry/dependenciesAny/dependenciesRotate.generated.js +14 -0
  1478. package/lib/esm/entry/dependenciesAny/dependenciesRotationMatrix.generated.js +30 -0
  1479. package/lib/esm/entry/dependenciesAny/dependenciesRound.generated.js +20 -0
  1480. package/lib/esm/entry/dependenciesAny/dependenciesRow.generated.js +16 -0
  1481. package/lib/esm/entry/dependenciesAny/dependenciesRowTransform.generated.js +16 -0
  1482. package/lib/esm/entry/dependenciesAny/dependenciesRydberg.generated.js +12 -0
  1483. package/lib/esm/entry/dependenciesAny/dependenciesSQRT1_2.generated.js +12 -0
  1484. package/lib/esm/entry/dependenciesAny/dependenciesSQRT2.generated.js +10 -0
  1485. package/lib/esm/entry/dependenciesAny/dependenciesSackurTetrode.generated.js +10 -0
  1486. package/lib/esm/entry/dependenciesAny/dependenciesSchur.generated.js +22 -0
  1487. package/lib/esm/entry/dependenciesAny/dependenciesSec.generated.js +12 -0
  1488. package/lib/esm/entry/dependenciesAny/dependenciesSech.generated.js +12 -0
  1489. package/lib/esm/entry/dependenciesAny/dependenciesSecondRadiation.generated.js +12 -0
  1490. package/lib/esm/entry/dependenciesAny/dependenciesSetCartesian.generated.js +20 -0
  1491. package/lib/esm/entry/dependenciesAny/dependenciesSetDifference.generated.js +20 -0
  1492. package/lib/esm/entry/dependenciesAny/dependenciesSetDistinct.generated.js +20 -0
  1493. package/lib/esm/entry/dependenciesAny/dependenciesSetIntersect.generated.js +20 -0
  1494. package/lib/esm/entry/dependenciesAny/dependenciesSetIsSubset.generated.js +18 -0
  1495. package/lib/esm/entry/dependenciesAny/dependenciesSetMultiplicity.generated.js +18 -0
  1496. package/lib/esm/entry/dependenciesAny/dependenciesSetPowerset.generated.js +18 -0
  1497. package/lib/esm/entry/dependenciesAny/dependenciesSetSize.generated.js +12 -0
  1498. package/lib/esm/entry/dependenciesAny/dependenciesSetSymDifference.generated.js +20 -0
  1499. package/lib/esm/entry/dependenciesAny/dependenciesSetUnion.generated.js +22 -0
  1500. package/lib/esm/entry/dependenciesAny/dependenciesSign.generated.js +16 -0
  1501. package/lib/esm/entry/dependenciesAny/dependenciesSimplify.generated.js +56 -0
  1502. package/lib/esm/entry/dependenciesAny/dependenciesSimplifyConstant.generated.js +32 -0
  1503. package/lib/esm/entry/dependenciesAny/dependenciesSimplifyCore.generated.js +44 -0
  1504. package/lib/esm/entry/dependenciesAny/dependenciesSin.generated.js +10 -0
  1505. package/lib/esm/entry/dependenciesAny/dependenciesSinh.generated.js +10 -0
  1506. package/lib/esm/entry/dependenciesAny/dependenciesSize.generated.js +12 -0
  1507. package/lib/esm/entry/dependenciesAny/dependenciesSlu.generated.js +28 -0
  1508. package/lib/esm/entry/dependenciesAny/dependenciesSmaller.generated.js +16 -0
  1509. package/lib/esm/entry/dependenciesAny/dependenciesSmallerEq.generated.js +16 -0
  1510. package/lib/esm/entry/dependenciesAny/dependenciesSort.generated.js +16 -0
  1511. package/lib/esm/entry/dependenciesAny/dependenciesSpaClass.generated.js +14 -0
  1512. package/lib/esm/entry/dependenciesAny/dependenciesSparse.generated.js +12 -0
  1513. package/lib/esm/entry/dependenciesAny/dependenciesSparseMatrixClass.generated.js +14 -0
  1514. package/lib/esm/entry/dependenciesAny/dependenciesSpeedOfLight.generated.js +12 -0
  1515. package/lib/esm/entry/dependenciesAny/dependenciesSplitUnit.generated.js +10 -0
  1516. package/lib/esm/entry/dependenciesAny/dependenciesSqrt.generated.js +12 -0
  1517. package/lib/esm/entry/dependenciesAny/dependenciesSqrtm.generated.js +30 -0
  1518. package/lib/esm/entry/dependenciesAny/dependenciesSquare.generated.js +10 -0
  1519. package/lib/esm/entry/dependenciesAny/dependenciesSqueeze.generated.js +12 -0
  1520. package/lib/esm/entry/dependenciesAny/dependenciesStd.generated.js +16 -0
  1521. package/lib/esm/entry/dependenciesAny/dependenciesStdTransform.generated.js +16 -0
  1522. package/lib/esm/entry/dependenciesAny/dependenciesStefanBoltzmann.generated.js +12 -0
  1523. package/lib/esm/entry/dependenciesAny/dependenciesStirlingS2.generated.js +34 -0
  1524. package/lib/esm/entry/dependenciesAny/dependenciesString.generated.js +10 -0
  1525. package/lib/esm/entry/dependenciesAny/dependenciesSubset.generated.js +12 -0
  1526. package/lib/esm/entry/dependenciesAny/dependenciesSubsetTransform.generated.js +12 -0
  1527. package/lib/esm/entry/dependenciesAny/dependenciesSubtract.generated.js +22 -0
  1528. package/lib/esm/entry/dependenciesAny/dependenciesSum.generated.js +14 -0
  1529. package/lib/esm/entry/dependenciesAny/dependenciesSumTransform.generated.js +14 -0
  1530. package/lib/esm/entry/dependenciesAny/dependenciesSylvester.generated.js +38 -0
  1531. package/lib/esm/entry/dependenciesAny/dependenciesSymbolNode.generated.js +12 -0
  1532. package/lib/esm/entry/dependenciesAny/dependenciesSymbolicEqual.generated.js +16 -0
  1533. package/lib/esm/entry/dependenciesAny/dependenciesTan.generated.js +10 -0
  1534. package/lib/esm/entry/dependenciesAny/dependenciesTanh.generated.js +10 -0
  1535. package/lib/esm/entry/dependenciesAny/dependenciesTau.generated.js +10 -0
  1536. package/lib/esm/entry/dependenciesAny/dependenciesThomsonCrossSection.generated.js +12 -0
  1537. package/lib/esm/entry/dependenciesAny/dependenciesTo.generated.js +14 -0
  1538. package/lib/esm/entry/dependenciesAny/dependenciesTrace.generated.js +14 -0
  1539. package/lib/esm/entry/dependenciesAny/dependenciesTranspose.generated.js +12 -0
  1540. package/lib/esm/entry/dependenciesAny/dependenciesTrue.generated.js +8 -0
  1541. package/lib/esm/entry/dependenciesAny/dependenciesTypeOf.generated.js +10 -0
  1542. package/lib/esm/entry/dependenciesAny/dependenciesTyped.generated.js +16 -0
  1543. package/lib/esm/entry/dependenciesAny/dependenciesUnaryMinus.generated.js +10 -0
  1544. package/lib/esm/entry/dependenciesAny/dependenciesUnaryPlus.generated.js +12 -0
  1545. package/lib/esm/entry/dependenciesAny/dependenciesUnequal.generated.js +18 -0
  1546. package/lib/esm/entry/dependenciesAny/dependenciesUnitClass.generated.js +38 -0
  1547. package/lib/esm/entry/dependenciesAny/dependenciesUnitFunction.generated.js +12 -0
  1548. package/lib/esm/entry/dependenciesAny/dependenciesUppercaseE.generated.js +10 -0
  1549. package/lib/esm/entry/dependenciesAny/dependenciesUppercasePi.generated.js +10 -0
  1550. package/lib/esm/entry/dependenciesAny/dependenciesUsolve.generated.js +22 -0
  1551. package/lib/esm/entry/dependenciesAny/dependenciesUsolveAll.generated.js +22 -0
  1552. package/lib/esm/entry/dependenciesAny/dependenciesVacuumImpedance.generated.js +12 -0
  1553. package/lib/esm/entry/dependenciesAny/dependenciesVariance.generated.js +22 -0
  1554. package/lib/esm/entry/dependenciesAny/dependenciesVarianceTransform.generated.js +22 -0
  1555. package/lib/esm/entry/dependenciesAny/dependenciesVersion.generated.js +8 -0
  1556. package/lib/esm/entry/dependenciesAny/dependenciesWeakMixingAngle.generated.js +10 -0
  1557. package/lib/esm/entry/dependenciesAny/dependenciesWienDisplacement.generated.js +12 -0
  1558. package/lib/esm/entry/dependenciesAny/dependenciesXgcd.generated.js +14 -0
  1559. package/lib/esm/entry/dependenciesAny/dependenciesXor.generated.js +16 -0
  1560. package/lib/esm/entry/dependenciesAny/dependenciesZeros.generated.js +14 -0
  1561. package/lib/esm/entry/dependenciesAny.generated.js +354 -0
  1562. package/lib/esm/entry/dependenciesNumber/dependenciesAbs.generated.js +10 -0
  1563. package/lib/esm/entry/dependenciesNumber/dependenciesAccessorNode.generated.js +12 -0
  1564. package/lib/esm/entry/dependenciesNumber/dependenciesAcos.generated.js +10 -0
  1565. package/lib/esm/entry/dependenciesNumber/dependenciesAcosh.generated.js +10 -0
  1566. package/lib/esm/entry/dependenciesNumber/dependenciesAcot.generated.js +10 -0
  1567. package/lib/esm/entry/dependenciesNumber/dependenciesAcoth.generated.js +10 -0
  1568. package/lib/esm/entry/dependenciesNumber/dependenciesAcsc.generated.js +10 -0
  1569. package/lib/esm/entry/dependenciesNumber/dependenciesAcsch.generated.js +10 -0
  1570. package/lib/esm/entry/dependenciesNumber/dependenciesAdd.generated.js +10 -0
  1571. package/lib/esm/entry/dependenciesNumber/dependenciesAddScalar.generated.js +10 -0
  1572. package/lib/esm/entry/dependenciesNumber/dependenciesAnd.generated.js +10 -0
  1573. package/lib/esm/entry/dependenciesNumber/dependenciesApply.generated.js +12 -0
  1574. package/lib/esm/entry/dependenciesNumber/dependenciesApplyTransform.generated.js +12 -0
  1575. package/lib/esm/entry/dependenciesNumber/dependenciesArrayNode.generated.js +10 -0
  1576. package/lib/esm/entry/dependenciesNumber/dependenciesAsec.generated.js +10 -0
  1577. package/lib/esm/entry/dependenciesNumber/dependenciesAsech.generated.js +10 -0
  1578. package/lib/esm/entry/dependenciesNumber/dependenciesAsin.generated.js +10 -0
  1579. package/lib/esm/entry/dependenciesNumber/dependenciesAsinh.generated.js +10 -0
  1580. package/lib/esm/entry/dependenciesNumber/dependenciesAssignmentNode.generated.js +14 -0
  1581. package/lib/esm/entry/dependenciesNumber/dependenciesAtan.generated.js +10 -0
  1582. package/lib/esm/entry/dependenciesNumber/dependenciesAtan2.generated.js +10 -0
  1583. package/lib/esm/entry/dependenciesNumber/dependenciesAtanh.generated.js +10 -0
  1584. package/lib/esm/entry/dependenciesNumber/dependenciesBellNumbers.generated.js +18 -0
  1585. package/lib/esm/entry/dependenciesNumber/dependenciesBitAnd.generated.js +10 -0
  1586. package/lib/esm/entry/dependenciesNumber/dependenciesBitNot.generated.js +10 -0
  1587. package/lib/esm/entry/dependenciesNumber/dependenciesBitOr.generated.js +10 -0
  1588. package/lib/esm/entry/dependenciesNumber/dependenciesBitXor.generated.js +10 -0
  1589. package/lib/esm/entry/dependenciesNumber/dependenciesBlockNode.generated.js +12 -0
  1590. package/lib/esm/entry/dependenciesNumber/dependenciesBoolean.generated.js +10 -0
  1591. package/lib/esm/entry/dependenciesNumber/dependenciesCatalan.generated.js +22 -0
  1592. package/lib/esm/entry/dependenciesNumber/dependenciesCbrt.generated.js +10 -0
  1593. package/lib/esm/entry/dependenciesNumber/dependenciesCeil.generated.js +12 -0
  1594. package/lib/esm/entry/dependenciesNumber/dependenciesChain.generated.js +12 -0
  1595. package/lib/esm/entry/dependenciesNumber/dependenciesChainClass.generated.js +10 -0
  1596. package/lib/esm/entry/dependenciesNumber/dependenciesClone.generated.js +10 -0
  1597. package/lib/esm/entry/dependenciesNumber/dependenciesCombinations.generated.js +10 -0
  1598. package/lib/esm/entry/dependenciesNumber/dependenciesCombinationsWithRep.generated.js +10 -0
  1599. package/lib/esm/entry/dependenciesNumber/dependenciesCompare.generated.js +10 -0
  1600. package/lib/esm/entry/dependenciesNumber/dependenciesCompareNatural.generated.js +12 -0
  1601. package/lib/esm/entry/dependenciesNumber/dependenciesCompareText.generated.js +10 -0
  1602. package/lib/esm/entry/dependenciesNumber/dependenciesCompile.generated.js +12 -0
  1603. package/lib/esm/entry/dependenciesNumber/dependenciesComposition.generated.js +22 -0
  1604. package/lib/esm/entry/dependenciesNumber/dependenciesConditionalNode.generated.js +10 -0
  1605. package/lib/esm/entry/dependenciesNumber/dependenciesConstantNode.generated.js +10 -0
  1606. package/lib/esm/entry/dependenciesNumber/dependenciesCos.generated.js +10 -0
  1607. package/lib/esm/entry/dependenciesNumber/dependenciesCosh.generated.js +10 -0
  1608. package/lib/esm/entry/dependenciesNumber/dependenciesCot.generated.js +10 -0
  1609. package/lib/esm/entry/dependenciesNumber/dependenciesCoth.generated.js +10 -0
  1610. package/lib/esm/entry/dependenciesNumber/dependenciesCsc.generated.js +10 -0
  1611. package/lib/esm/entry/dependenciesNumber/dependenciesCsch.generated.js +10 -0
  1612. package/lib/esm/entry/dependenciesNumber/dependenciesCube.generated.js +10 -0
  1613. package/lib/esm/entry/dependenciesNumber/dependenciesCumSum.generated.js +14 -0
  1614. package/lib/esm/entry/dependenciesNumber/dependenciesCumSumTransform.generated.js +14 -0
  1615. package/lib/esm/entry/dependenciesNumber/dependenciesDeepEqual.generated.js +12 -0
  1616. package/lib/esm/entry/dependenciesNumber/dependenciesDerivative.generated.js +30 -0
  1617. package/lib/esm/entry/dependenciesNumber/dependenciesDivide.generated.js +10 -0
  1618. package/lib/esm/entry/dependenciesNumber/dependenciesDivideScalar.generated.js +10 -0
  1619. package/lib/esm/entry/dependenciesNumber/dependenciesE.generated.js +8 -0
  1620. package/lib/esm/entry/dependenciesNumber/dependenciesEqual.generated.js +12 -0
  1621. package/lib/esm/entry/dependenciesNumber/dependenciesEqualScalar.generated.js +10 -0
  1622. package/lib/esm/entry/dependenciesNumber/dependenciesEqualText.generated.js +14 -0
  1623. package/lib/esm/entry/dependenciesNumber/dependenciesErf.generated.js +10 -0
  1624. package/lib/esm/entry/dependenciesNumber/dependenciesEvaluate.generated.js +12 -0
  1625. package/lib/esm/entry/dependenciesNumber/dependenciesExp.generated.js +10 -0
  1626. package/lib/esm/entry/dependenciesNumber/dependenciesExpm1.generated.js +10 -0
  1627. package/lib/esm/entry/dependenciesNumber/dependenciesFactorial.generated.js +12 -0
  1628. package/lib/esm/entry/dependenciesNumber/dependenciesFalse.generated.js +8 -0
  1629. package/lib/esm/entry/dependenciesNumber/dependenciesFilter.generated.js +10 -0
  1630. package/lib/esm/entry/dependenciesNumber/dependenciesFilterTransform.generated.js +10 -0
  1631. package/lib/esm/entry/dependenciesNumber/dependenciesFix.generated.js +14 -0
  1632. package/lib/esm/entry/dependenciesNumber/dependenciesFloor.generated.js +12 -0
  1633. package/lib/esm/entry/dependenciesNumber/dependenciesForEach.generated.js +10 -0
  1634. package/lib/esm/entry/dependenciesNumber/dependenciesForEachTransform.generated.js +10 -0
  1635. package/lib/esm/entry/dependenciesNumber/dependenciesFormat.generated.js +10 -0
  1636. package/lib/esm/entry/dependenciesNumber/dependenciesFunctionAssignmentNode.generated.js +12 -0
  1637. package/lib/esm/entry/dependenciesNumber/dependenciesFunctionNode.generated.js +12 -0
  1638. package/lib/esm/entry/dependenciesNumber/dependenciesGamma.generated.js +10 -0
  1639. package/lib/esm/entry/dependenciesNumber/dependenciesGcd.generated.js +10 -0
  1640. package/lib/esm/entry/dependenciesNumber/dependenciesHasNumericValue.generated.js +12 -0
  1641. package/lib/esm/entry/dependenciesNumber/dependenciesHelp.generated.js +12 -0
  1642. package/lib/esm/entry/dependenciesNumber/dependenciesHelpClass.generated.js +10 -0
  1643. package/lib/esm/entry/dependenciesNumber/dependenciesHypot.generated.js +24 -0
  1644. package/lib/esm/entry/dependenciesNumber/dependenciesIndex.generated.js +8 -0
  1645. package/lib/esm/entry/dependenciesNumber/dependenciesIndexNode.generated.js +12 -0
  1646. package/lib/esm/entry/dependenciesNumber/dependenciesInfinity.generated.js +8 -0
  1647. package/lib/esm/entry/dependenciesNumber/dependenciesIsInteger.generated.js +10 -0
  1648. package/lib/esm/entry/dependenciesNumber/dependenciesIsNaN.generated.js +10 -0
  1649. package/lib/esm/entry/dependenciesNumber/dependenciesIsNegative.generated.js +10 -0
  1650. package/lib/esm/entry/dependenciesNumber/dependenciesIsNumeric.generated.js +10 -0
  1651. package/lib/esm/entry/dependenciesNumber/dependenciesIsPositive.generated.js +10 -0
  1652. package/lib/esm/entry/dependenciesNumber/dependenciesIsPrime.generated.js +10 -0
  1653. package/lib/esm/entry/dependenciesNumber/dependenciesIsZero.generated.js +10 -0
  1654. package/lib/esm/entry/dependenciesNumber/dependenciesLN10.generated.js +8 -0
  1655. package/lib/esm/entry/dependenciesNumber/dependenciesLN2.generated.js +8 -0
  1656. package/lib/esm/entry/dependenciesNumber/dependenciesLOG10E.generated.js +8 -0
  1657. package/lib/esm/entry/dependenciesNumber/dependenciesLOG2E.generated.js +8 -0
  1658. package/lib/esm/entry/dependenciesNumber/dependenciesLarger.generated.js +10 -0
  1659. package/lib/esm/entry/dependenciesNumber/dependenciesLargerEq.generated.js +10 -0
  1660. package/lib/esm/entry/dependenciesNumber/dependenciesLcm.generated.js +10 -0
  1661. package/lib/esm/entry/dependenciesNumber/dependenciesLeftShift.generated.js +10 -0
  1662. package/lib/esm/entry/dependenciesNumber/dependenciesLgamma.generated.js +10 -0
  1663. package/lib/esm/entry/dependenciesNumber/dependenciesLog.generated.js +10 -0
  1664. package/lib/esm/entry/dependenciesNumber/dependenciesLog10.generated.js +10 -0
  1665. package/lib/esm/entry/dependenciesNumber/dependenciesLog1p.generated.js +10 -0
  1666. package/lib/esm/entry/dependenciesNumber/dependenciesLog2.generated.js +10 -0
  1667. package/lib/esm/entry/dependenciesNumber/dependenciesMad.generated.js +18 -0
  1668. package/lib/esm/entry/dependenciesNumber/dependenciesMap.generated.js +10 -0
  1669. package/lib/esm/entry/dependenciesNumber/dependenciesMapTransform.generated.js +10 -0
  1670. package/lib/esm/entry/dependenciesNumber/dependenciesMatrix.generated.js +8 -0
  1671. package/lib/esm/entry/dependenciesNumber/dependenciesMax.generated.js +14 -0
  1672. package/lib/esm/entry/dependenciesNumber/dependenciesMaxTransform.generated.js +14 -0
  1673. package/lib/esm/entry/dependenciesNumber/dependenciesMean.generated.js +14 -0
  1674. package/lib/esm/entry/dependenciesNumber/dependenciesMeanTransform.generated.js +14 -0
  1675. package/lib/esm/entry/dependenciesNumber/dependenciesMedian.generated.js +18 -0
  1676. package/lib/esm/entry/dependenciesNumber/dependenciesMin.generated.js +14 -0
  1677. package/lib/esm/entry/dependenciesNumber/dependenciesMinTransform.generated.js +14 -0
  1678. package/lib/esm/entry/dependenciesNumber/dependenciesMod.generated.js +10 -0
  1679. package/lib/esm/entry/dependenciesNumber/dependenciesMode.generated.js +14 -0
  1680. package/lib/esm/entry/dependenciesNumber/dependenciesMultinomial.generated.js +22 -0
  1681. package/lib/esm/entry/dependenciesNumber/dependenciesMultiply.generated.js +10 -0
  1682. package/lib/esm/entry/dependenciesNumber/dependenciesMultiplyScalar.generated.js +10 -0
  1683. package/lib/esm/entry/dependenciesNumber/dependenciesNaN.generated.js +8 -0
  1684. package/lib/esm/entry/dependenciesNumber/dependenciesNode.generated.js +8 -0
  1685. package/lib/esm/entry/dependenciesNumber/dependenciesNorm.generated.js +10 -0
  1686. package/lib/esm/entry/dependenciesNumber/dependenciesNot.generated.js +10 -0
  1687. package/lib/esm/entry/dependenciesNumber/dependenciesNthRoot.generated.js +10 -0
  1688. package/lib/esm/entry/dependenciesNumber/dependenciesNull.generated.js +8 -0
  1689. package/lib/esm/entry/dependenciesNumber/dependenciesNumber.generated.js +10 -0
  1690. package/lib/esm/entry/dependenciesNumber/dependenciesNumeric.generated.js +10 -0
  1691. package/lib/esm/entry/dependenciesNumber/dependenciesObjectNode.generated.js +10 -0
  1692. package/lib/esm/entry/dependenciesNumber/dependenciesOperatorNode.generated.js +10 -0
  1693. package/lib/esm/entry/dependenciesNumber/dependenciesOr.generated.js +10 -0
  1694. package/lib/esm/entry/dependenciesNumber/dependenciesParenthesisNode.generated.js +10 -0
  1695. package/lib/esm/entry/dependenciesNumber/dependenciesParse.generated.js +42 -0
  1696. package/lib/esm/entry/dependenciesNumber/dependenciesParser.generated.js +12 -0
  1697. package/lib/esm/entry/dependenciesNumber/dependenciesParserClass.generated.js +10 -0
  1698. package/lib/esm/entry/dependenciesNumber/dependenciesPartitionSelect.generated.js +16 -0
  1699. package/lib/esm/entry/dependenciesNumber/dependenciesPermutations.generated.js +12 -0
  1700. package/lib/esm/entry/dependenciesNumber/dependenciesPhi.generated.js +8 -0
  1701. package/lib/esm/entry/dependenciesNumber/dependenciesPi.generated.js +8 -0
  1702. package/lib/esm/entry/dependenciesNumber/dependenciesPickRandom.generated.js +10 -0
  1703. package/lib/esm/entry/dependenciesNumber/dependenciesPow.generated.js +10 -0
  1704. package/lib/esm/entry/dependenciesNumber/dependenciesPrint.generated.js +10 -0
  1705. package/lib/esm/entry/dependenciesNumber/dependenciesProd.generated.js +14 -0
  1706. package/lib/esm/entry/dependenciesNumber/dependenciesQuantileSeq.generated.js +18 -0
  1707. package/lib/esm/entry/dependenciesNumber/dependenciesRandom.generated.js +10 -0
  1708. package/lib/esm/entry/dependenciesNumber/dependenciesRandomInt.generated.js +10 -0
  1709. package/lib/esm/entry/dependenciesNumber/dependenciesRange.generated.js +20 -0
  1710. package/lib/esm/entry/dependenciesNumber/dependenciesRangeClass.generated.js +8 -0
  1711. package/lib/esm/entry/dependenciesNumber/dependenciesRangeNode.generated.js +10 -0
  1712. package/lib/esm/entry/dependenciesNumber/dependenciesRangeTransform.generated.js +20 -0
  1713. package/lib/esm/entry/dependenciesNumber/dependenciesRationalize.generated.js +52 -0
  1714. package/lib/esm/entry/dependenciesNumber/dependenciesRelationalNode.generated.js +10 -0
  1715. package/lib/esm/entry/dependenciesNumber/dependenciesReplacer.generated.js +8 -0
  1716. package/lib/esm/entry/dependenciesNumber/dependenciesResolve.generated.js +20 -0
  1717. package/lib/esm/entry/dependenciesNumber/dependenciesResultSet.generated.js +8 -0
  1718. package/lib/esm/entry/dependenciesNumber/dependenciesReviver.generated.js +8 -0
  1719. package/lib/esm/entry/dependenciesNumber/dependenciesRightArithShift.generated.js +10 -0
  1720. package/lib/esm/entry/dependenciesNumber/dependenciesRightLogShift.generated.js +10 -0
  1721. package/lib/esm/entry/dependenciesNumber/dependenciesRound.generated.js +10 -0
  1722. package/lib/esm/entry/dependenciesNumber/dependenciesSQRT1_2.generated.js +10 -0
  1723. package/lib/esm/entry/dependenciesNumber/dependenciesSQRT2.generated.js +8 -0
  1724. package/lib/esm/entry/dependenciesNumber/dependenciesSec.generated.js +10 -0
  1725. package/lib/esm/entry/dependenciesNumber/dependenciesSech.generated.js +10 -0
  1726. package/lib/esm/entry/dependenciesNumber/dependenciesSign.generated.js +10 -0
  1727. package/lib/esm/entry/dependenciesNumber/dependenciesSimplify.generated.js +52 -0
  1728. package/lib/esm/entry/dependenciesNumber/dependenciesSimplifyConstant.generated.js +28 -0
  1729. package/lib/esm/entry/dependenciesNumber/dependenciesSimplifyCore.generated.js +44 -0
  1730. package/lib/esm/entry/dependenciesNumber/dependenciesSin.generated.js +10 -0
  1731. package/lib/esm/entry/dependenciesNumber/dependenciesSinh.generated.js +10 -0
  1732. package/lib/esm/entry/dependenciesNumber/dependenciesSize.generated.js +12 -0
  1733. package/lib/esm/entry/dependenciesNumber/dependenciesSmaller.generated.js +10 -0
  1734. package/lib/esm/entry/dependenciesNumber/dependenciesSmallerEq.generated.js +10 -0
  1735. package/lib/esm/entry/dependenciesNumber/dependenciesSqrt.generated.js +10 -0
  1736. package/lib/esm/entry/dependenciesNumber/dependenciesSquare.generated.js +10 -0
  1737. package/lib/esm/entry/dependenciesNumber/dependenciesStd.generated.js +16 -0
  1738. package/lib/esm/entry/dependenciesNumber/dependenciesStdTransform.generated.js +16 -0
  1739. package/lib/esm/entry/dependenciesNumber/dependenciesStirlingS2.generated.js +32 -0
  1740. package/lib/esm/entry/dependenciesNumber/dependenciesString.generated.js +10 -0
  1741. package/lib/esm/entry/dependenciesNumber/dependenciesSubset.generated.js +8 -0
  1742. package/lib/esm/entry/dependenciesNumber/dependenciesSubsetTransform.generated.js +8 -0
  1743. package/lib/esm/entry/dependenciesNumber/dependenciesSubtract.generated.js +10 -0
  1744. package/lib/esm/entry/dependenciesNumber/dependenciesSum.generated.js +14 -0
  1745. package/lib/esm/entry/dependenciesNumber/dependenciesSumTransform.generated.js +14 -0
  1746. package/lib/esm/entry/dependenciesNumber/dependenciesSymbolNode.generated.js +10 -0
  1747. package/lib/esm/entry/dependenciesNumber/dependenciesTan.generated.js +10 -0
  1748. package/lib/esm/entry/dependenciesNumber/dependenciesTanh.generated.js +10 -0
  1749. package/lib/esm/entry/dependenciesNumber/dependenciesTau.generated.js +8 -0
  1750. package/lib/esm/entry/dependenciesNumber/dependenciesTrue.generated.js +8 -0
  1751. package/lib/esm/entry/dependenciesNumber/dependenciesTypeOf.generated.js +10 -0
  1752. package/lib/esm/entry/dependenciesNumber/dependenciesTyped.generated.js +8 -0
  1753. package/lib/esm/entry/dependenciesNumber/dependenciesUnaryMinus.generated.js +10 -0
  1754. package/lib/esm/entry/dependenciesNumber/dependenciesUnaryPlus.generated.js +10 -0
  1755. package/lib/esm/entry/dependenciesNumber/dependenciesUnequal.generated.js +12 -0
  1756. package/lib/esm/entry/dependenciesNumber/dependenciesUppercaseE.generated.js +10 -0
  1757. package/lib/esm/entry/dependenciesNumber/dependenciesUppercasePi.generated.js +10 -0
  1758. package/lib/esm/entry/dependenciesNumber/dependenciesVariance.generated.js +22 -0
  1759. package/lib/esm/entry/dependenciesNumber/dependenciesVarianceTransform.generated.js +22 -0
  1760. package/lib/esm/entry/dependenciesNumber/dependenciesVersion.generated.js +8 -0
  1761. package/lib/esm/entry/dependenciesNumber/dependenciesXgcd.generated.js +10 -0
  1762. package/lib/esm/entry/dependenciesNumber/dependenciesXor.generated.js +10 -0
  1763. package/lib/esm/entry/dependenciesNumber.generated.js +206 -0
  1764. package/lib/esm/entry/impureFunctionsAny.generated.js +687 -0
  1765. package/lib/esm/entry/impureFunctionsNumber.generated.js +496 -0
  1766. package/lib/esm/entry/mainAny.js +22 -0
  1767. package/lib/esm/entry/mainNumber.js +22 -0
  1768. package/lib/esm/entry/pureFunctionsAny.generated.js +1703 -0
  1769. package/lib/esm/entry/pureFunctionsNumber.generated.js +563 -0
  1770. package/lib/esm/entry/typeChecks.js +2 -0
  1771. package/lib/esm/error/ArgumentsError.js +24 -0
  1772. package/lib/esm/error/DimensionError.js +23 -0
  1773. package/lib/esm/error/IndexError.js +35 -0
  1774. package/lib/esm/expression/Help.js +115 -0
  1775. package/lib/esm/expression/Parser.js +141 -0
  1776. package/lib/esm/expression/embeddedDocs/constants/Infinity.js +8 -0
  1777. package/lib/esm/expression/embeddedDocs/constants/LN10.js +8 -0
  1778. package/lib/esm/expression/embeddedDocs/constants/LN2.js +8 -0
  1779. package/lib/esm/expression/embeddedDocs/constants/LOG10E.js +8 -0
  1780. package/lib/esm/expression/embeddedDocs/constants/LOG2E.js +8 -0
  1781. package/lib/esm/expression/embeddedDocs/constants/NaN.js +8 -0
  1782. package/lib/esm/expression/embeddedDocs/constants/SQRT1_2.js +8 -0
  1783. package/lib/esm/expression/embeddedDocs/constants/SQRT2.js +8 -0
  1784. package/lib/esm/expression/embeddedDocs/constants/e.js +8 -0
  1785. package/lib/esm/expression/embeddedDocs/constants/false.js +8 -0
  1786. package/lib/esm/expression/embeddedDocs/constants/i.js +8 -0
  1787. package/lib/esm/expression/embeddedDocs/constants/null.js +8 -0
  1788. package/lib/esm/expression/embeddedDocs/constants/phi.js +8 -0
  1789. package/lib/esm/expression/embeddedDocs/constants/pi.js +8 -0
  1790. package/lib/esm/expression/embeddedDocs/constants/tau.js +8 -0
  1791. package/lib/esm/expression/embeddedDocs/constants/true.js +8 -0
  1792. package/lib/esm/expression/embeddedDocs/constants/version.js +8 -0
  1793. package/lib/esm/expression/embeddedDocs/construction/bignumber.js +8 -0
  1794. package/lib/esm/expression/embeddedDocs/construction/boolean.js +8 -0
  1795. package/lib/esm/expression/embeddedDocs/construction/complex.js +8 -0
  1796. package/lib/esm/expression/embeddedDocs/construction/createUnit.js +8 -0
  1797. package/lib/esm/expression/embeddedDocs/construction/fraction.js +8 -0
  1798. package/lib/esm/expression/embeddedDocs/construction/index.js +8 -0
  1799. package/lib/esm/expression/embeddedDocs/construction/matrix.js +8 -0
  1800. package/lib/esm/expression/embeddedDocs/construction/number.js +8 -0
  1801. package/lib/esm/expression/embeddedDocs/construction/sparse.js +8 -0
  1802. package/lib/esm/expression/embeddedDocs/construction/splitUnit.js +8 -0
  1803. package/lib/esm/expression/embeddedDocs/construction/string.js +8 -0
  1804. package/lib/esm/expression/embeddedDocs/construction/unit.js +8 -0
  1805. package/lib/esm/expression/embeddedDocs/core/config.js +8 -0
  1806. package/lib/esm/expression/embeddedDocs/core/import.js +8 -0
  1807. package/lib/esm/expression/embeddedDocs/core/typed.js +8 -0
  1808. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +706 -0
  1809. package/lib/esm/expression/embeddedDocs/function/algebra/derivative.js +8 -0
  1810. package/lib/esm/expression/embeddedDocs/function/algebra/leafCount.js +8 -0
  1811. package/lib/esm/expression/embeddedDocs/function/algebra/lsolve.js +8 -0
  1812. package/lib/esm/expression/embeddedDocs/function/algebra/lsolveAll.js +8 -0
  1813. package/lib/esm/expression/embeddedDocs/function/algebra/lup.js +8 -0
  1814. package/lib/esm/expression/embeddedDocs/function/algebra/lusolve.js +8 -0
  1815. package/lib/esm/expression/embeddedDocs/function/algebra/polynomialRoot.js +8 -0
  1816. package/lib/esm/expression/embeddedDocs/function/algebra/qr.js +8 -0
  1817. package/lib/esm/expression/embeddedDocs/function/algebra/rationalize.js +8 -0
  1818. package/lib/esm/expression/embeddedDocs/function/algebra/resolve.js +9 -0
  1819. package/lib/esm/expression/embeddedDocs/function/algebra/simplify.js +8 -0
  1820. package/lib/esm/expression/embeddedDocs/function/algebra/simplifyConstant.js +8 -0
  1821. package/lib/esm/expression/embeddedDocs/function/algebra/simplifyCore.js +8 -0
  1822. package/lib/esm/expression/embeddedDocs/function/algebra/slu.js +8 -0
  1823. package/lib/esm/expression/embeddedDocs/function/algebra/symbolicEqual.js +8 -0
  1824. package/lib/esm/expression/embeddedDocs/function/algebra/usolve.js +8 -0
  1825. package/lib/esm/expression/embeddedDocs/function/algebra/usolveAll.js +8 -0
  1826. package/lib/esm/expression/embeddedDocs/function/arithmetic/abs.js +8 -0
  1827. package/lib/esm/expression/embeddedDocs/function/arithmetic/add.js +8 -0
  1828. package/lib/esm/expression/embeddedDocs/function/arithmetic/cbrt.js +8 -0
  1829. package/lib/esm/expression/embeddedDocs/function/arithmetic/ceil.js +8 -0
  1830. package/lib/esm/expression/embeddedDocs/function/arithmetic/cube.js +8 -0
  1831. package/lib/esm/expression/embeddedDocs/function/arithmetic/divide.js +8 -0
  1832. package/lib/esm/expression/embeddedDocs/function/arithmetic/dotDivide.js +8 -0
  1833. package/lib/esm/expression/embeddedDocs/function/arithmetic/dotMultiply.js +8 -0
  1834. package/lib/esm/expression/embeddedDocs/function/arithmetic/dotPow.js +8 -0
  1835. package/lib/esm/expression/embeddedDocs/function/arithmetic/exp.js +8 -0
  1836. package/lib/esm/expression/embeddedDocs/function/arithmetic/expm.js +8 -0
  1837. package/lib/esm/expression/embeddedDocs/function/arithmetic/expm1.js +8 -0
  1838. package/lib/esm/expression/embeddedDocs/function/arithmetic/fix.js +8 -0
  1839. package/lib/esm/expression/embeddedDocs/function/arithmetic/floor.js +8 -0
  1840. package/lib/esm/expression/embeddedDocs/function/arithmetic/gcd.js +8 -0
  1841. package/lib/esm/expression/embeddedDocs/function/arithmetic/hypot.js +8 -0
  1842. package/lib/esm/expression/embeddedDocs/function/arithmetic/invmod.js +8 -0
  1843. package/lib/esm/expression/embeddedDocs/function/arithmetic/lcm.js +8 -0
  1844. package/lib/esm/expression/embeddedDocs/function/arithmetic/log.js +8 -0
  1845. package/lib/esm/expression/embeddedDocs/function/arithmetic/log10.js +8 -0
  1846. package/lib/esm/expression/embeddedDocs/function/arithmetic/log1p.js +8 -0
  1847. package/lib/esm/expression/embeddedDocs/function/arithmetic/log2.js +8 -0
  1848. package/lib/esm/expression/embeddedDocs/function/arithmetic/mod.js +8 -0
  1849. package/lib/esm/expression/embeddedDocs/function/arithmetic/multiply.js +8 -0
  1850. package/lib/esm/expression/embeddedDocs/function/arithmetic/norm.js +7 -0
  1851. package/lib/esm/expression/embeddedDocs/function/arithmetic/nthRoot.js +8 -0
  1852. package/lib/esm/expression/embeddedDocs/function/arithmetic/nthRoots.js +8 -0
  1853. package/lib/esm/expression/embeddedDocs/function/arithmetic/pow.js +8 -0
  1854. package/lib/esm/expression/embeddedDocs/function/arithmetic/round.js +8 -0
  1855. package/lib/esm/expression/embeddedDocs/function/arithmetic/sign.js +8 -0
  1856. package/lib/esm/expression/embeddedDocs/function/arithmetic/sqrt.js +8 -0
  1857. package/lib/esm/expression/embeddedDocs/function/arithmetic/sqrtm.js +8 -0
  1858. package/lib/esm/expression/embeddedDocs/function/arithmetic/square.js +8 -0
  1859. package/lib/esm/expression/embeddedDocs/function/arithmetic/subtract.js +8 -0
  1860. package/lib/esm/expression/embeddedDocs/function/arithmetic/unaryMinus.js +8 -0
  1861. package/lib/esm/expression/embeddedDocs/function/arithmetic/unaryPlus.js +8 -0
  1862. package/lib/esm/expression/embeddedDocs/function/arithmetic/xgcd.js +8 -0
  1863. package/lib/esm/expression/embeddedDocs/function/bitwise/bitAnd.js +8 -0
  1864. package/lib/esm/expression/embeddedDocs/function/bitwise/bitNot.js +8 -0
  1865. package/lib/esm/expression/embeddedDocs/function/bitwise/bitOr.js +8 -0
  1866. package/lib/esm/expression/embeddedDocs/function/bitwise/bitXor.js +8 -0
  1867. package/lib/esm/expression/embeddedDocs/function/bitwise/leftShift.js +8 -0
  1868. package/lib/esm/expression/embeddedDocs/function/bitwise/rightArithShift.js +8 -0
  1869. package/lib/esm/expression/embeddedDocs/function/bitwise/rightLogShift.js +8 -0
  1870. package/lib/esm/expression/embeddedDocs/function/combinatorics/bellNumbers.js +8 -0
  1871. package/lib/esm/expression/embeddedDocs/function/combinatorics/catalan.js +8 -0
  1872. package/lib/esm/expression/embeddedDocs/function/combinatorics/composition.js +8 -0
  1873. package/lib/esm/expression/embeddedDocs/function/combinatorics/stirlingS2.js +8 -0
  1874. package/lib/esm/expression/embeddedDocs/function/complex/arg.js +8 -0
  1875. package/lib/esm/expression/embeddedDocs/function/complex/conj.js +8 -0
  1876. package/lib/esm/expression/embeddedDocs/function/complex/im.js +8 -0
  1877. package/lib/esm/expression/embeddedDocs/function/complex/re.js +8 -0
  1878. package/lib/esm/expression/embeddedDocs/function/expression/evaluate.js +8 -0
  1879. package/lib/esm/expression/embeddedDocs/function/expression/help.js +8 -0
  1880. package/lib/esm/expression/embeddedDocs/function/geometry/distance.js +8 -0
  1881. package/lib/esm/expression/embeddedDocs/function/geometry/intersect.js +8 -0
  1882. package/lib/esm/expression/embeddedDocs/function/logical/and.js +8 -0
  1883. package/lib/esm/expression/embeddedDocs/function/logical/not.js +8 -0
  1884. package/lib/esm/expression/embeddedDocs/function/logical/or.js +8 -0
  1885. package/lib/esm/expression/embeddedDocs/function/logical/xor.js +8 -0
  1886. package/lib/esm/expression/embeddedDocs/function/matrix/column.js +8 -0
  1887. package/lib/esm/expression/embeddedDocs/function/matrix/concat.js +8 -0
  1888. package/lib/esm/expression/embeddedDocs/function/matrix/count.js +8 -0
  1889. package/lib/esm/expression/embeddedDocs/function/matrix/cross.js +8 -0
  1890. package/lib/esm/expression/embeddedDocs/function/matrix/ctranspose.js +8 -0
  1891. package/lib/esm/expression/embeddedDocs/function/matrix/det.js +8 -0
  1892. package/lib/esm/expression/embeddedDocs/function/matrix/diag.js +8 -0
  1893. package/lib/esm/expression/embeddedDocs/function/matrix/diff.js +8 -0
  1894. package/lib/esm/expression/embeddedDocs/function/matrix/dot.js +8 -0
  1895. package/lib/esm/expression/embeddedDocs/function/matrix/eigs.js +8 -0
  1896. package/lib/esm/expression/embeddedDocs/function/matrix/fft.js +8 -0
  1897. package/lib/esm/expression/embeddedDocs/function/matrix/filter.js +8 -0
  1898. package/lib/esm/expression/embeddedDocs/function/matrix/flatten.js +8 -0
  1899. package/lib/esm/expression/embeddedDocs/function/matrix/forEach.js +8 -0
  1900. package/lib/esm/expression/embeddedDocs/function/matrix/getMatrixDataType.js +8 -0
  1901. package/lib/esm/expression/embeddedDocs/function/matrix/identity.js +8 -0
  1902. package/lib/esm/expression/embeddedDocs/function/matrix/ifft.js +8 -0
  1903. package/lib/esm/expression/embeddedDocs/function/matrix/inv.js +8 -0
  1904. package/lib/esm/expression/embeddedDocs/function/matrix/kron.js +8 -0
  1905. package/lib/esm/expression/embeddedDocs/function/matrix/lyap.js +8 -0
  1906. package/lib/esm/expression/embeddedDocs/function/matrix/map.js +8 -0
  1907. package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromColumns.js +8 -0
  1908. package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromFunction.js +8 -0
  1909. package/lib/esm/expression/embeddedDocs/function/matrix/matrixFromRows.js +8 -0
  1910. package/lib/esm/expression/embeddedDocs/function/matrix/ones.js +8 -0
  1911. package/lib/esm/expression/embeddedDocs/function/matrix/partitionSelect.js +8 -0
  1912. package/lib/esm/expression/embeddedDocs/function/matrix/pinv.js +8 -0
  1913. package/lib/esm/expression/embeddedDocs/function/matrix/range.js +8 -0
  1914. package/lib/esm/expression/embeddedDocs/function/matrix/reshape.js +8 -0
  1915. package/lib/esm/expression/embeddedDocs/function/matrix/resize.js +8 -0
  1916. package/lib/esm/expression/embeddedDocs/function/matrix/rotate.js +8 -0
  1917. package/lib/esm/expression/embeddedDocs/function/matrix/rotationMatrix.js +8 -0
  1918. package/lib/esm/expression/embeddedDocs/function/matrix/row.js +8 -0
  1919. package/lib/esm/expression/embeddedDocs/function/matrix/schur.js +8 -0
  1920. package/lib/esm/expression/embeddedDocs/function/matrix/size.js +8 -0
  1921. package/lib/esm/expression/embeddedDocs/function/matrix/sort.js +8 -0
  1922. package/lib/esm/expression/embeddedDocs/function/matrix/squeeze.js +8 -0
  1923. package/lib/esm/expression/embeddedDocs/function/matrix/subset.js +8 -0
  1924. package/lib/esm/expression/embeddedDocs/function/matrix/sylvester.js +8 -0
  1925. package/lib/esm/expression/embeddedDocs/function/matrix/trace.js +8 -0
  1926. package/lib/esm/expression/embeddedDocs/function/matrix/transpose.js +8 -0
  1927. package/lib/esm/expression/embeddedDocs/function/matrix/zeros.js +8 -0
  1928. package/lib/esm/expression/embeddedDocs/function/probability/combinations.js +8 -0
  1929. package/lib/esm/expression/embeddedDocs/function/probability/combinationsWithRep.js +8 -0
  1930. package/lib/esm/expression/embeddedDocs/function/probability/distribution.js +8 -0
  1931. package/lib/esm/expression/embeddedDocs/function/probability/factorial.js +8 -0
  1932. package/lib/esm/expression/embeddedDocs/function/probability/gamma.js +8 -0
  1933. package/lib/esm/expression/embeddedDocs/function/probability/kldivergence.js +8 -0
  1934. package/lib/esm/expression/embeddedDocs/function/probability/lgamma.js +8 -0
  1935. package/lib/esm/expression/embeddedDocs/function/probability/multinomial.js +8 -0
  1936. package/lib/esm/expression/embeddedDocs/function/probability/permutations.js +8 -0
  1937. package/lib/esm/expression/embeddedDocs/function/probability/pickRandom.js +8 -0
  1938. package/lib/esm/expression/embeddedDocs/function/probability/random.js +8 -0
  1939. package/lib/esm/expression/embeddedDocs/function/probability/randomInt.js +8 -0
  1940. package/lib/esm/expression/embeddedDocs/function/relational/compare.js +8 -0
  1941. package/lib/esm/expression/embeddedDocs/function/relational/compareNatural.js +8 -0
  1942. package/lib/esm/expression/embeddedDocs/function/relational/compareText.js +8 -0
  1943. package/lib/esm/expression/embeddedDocs/function/relational/deepEqual.js +8 -0
  1944. package/lib/esm/expression/embeddedDocs/function/relational/equal.js +8 -0
  1945. package/lib/esm/expression/embeddedDocs/function/relational/equalText.js +8 -0
  1946. package/lib/esm/expression/embeddedDocs/function/relational/larger.js +8 -0
  1947. package/lib/esm/expression/embeddedDocs/function/relational/largerEq.js +8 -0
  1948. package/lib/esm/expression/embeddedDocs/function/relational/smaller.js +8 -0
  1949. package/lib/esm/expression/embeddedDocs/function/relational/smallerEq.js +8 -0
  1950. package/lib/esm/expression/embeddedDocs/function/relational/unequal.js +8 -0
  1951. package/lib/esm/expression/embeddedDocs/function/set/setCartesian.js +8 -0
  1952. package/lib/esm/expression/embeddedDocs/function/set/setDifference.js +8 -0
  1953. package/lib/esm/expression/embeddedDocs/function/set/setDistinct.js +8 -0
  1954. package/lib/esm/expression/embeddedDocs/function/set/setIntersect.js +8 -0
  1955. package/lib/esm/expression/embeddedDocs/function/set/setIsSubset.js +8 -0
  1956. package/lib/esm/expression/embeddedDocs/function/set/setMultiplicity.js +8 -0
  1957. package/lib/esm/expression/embeddedDocs/function/set/setPowerset.js +8 -0
  1958. package/lib/esm/expression/embeddedDocs/function/set/setSize.js +8 -0
  1959. package/lib/esm/expression/embeddedDocs/function/set/setSymDifference.js +8 -0
  1960. package/lib/esm/expression/embeddedDocs/function/set/setUnion.js +8 -0
  1961. package/lib/esm/expression/embeddedDocs/function/special/erf.js +8 -0
  1962. package/lib/esm/expression/embeddedDocs/function/statistics/cumsum.js +8 -0
  1963. package/lib/esm/expression/embeddedDocs/function/statistics/mad.js +8 -0
  1964. package/lib/esm/expression/embeddedDocs/function/statistics/max.js +8 -0
  1965. package/lib/esm/expression/embeddedDocs/function/statistics/mean.js +8 -0
  1966. package/lib/esm/expression/embeddedDocs/function/statistics/median.js +8 -0
  1967. package/lib/esm/expression/embeddedDocs/function/statistics/min.js +8 -0
  1968. package/lib/esm/expression/embeddedDocs/function/statistics/mode.js +8 -0
  1969. package/lib/esm/expression/embeddedDocs/function/statistics/prod.js +8 -0
  1970. package/lib/esm/expression/embeddedDocs/function/statistics/quantileSeq.js +8 -0
  1971. package/lib/esm/expression/embeddedDocs/function/statistics/std.js +8 -0
  1972. package/lib/esm/expression/embeddedDocs/function/statistics/sum.js +8 -0
  1973. package/lib/esm/expression/embeddedDocs/function/statistics/variance.js +8 -0
  1974. package/lib/esm/expression/embeddedDocs/function/trigonometry/acos.js +8 -0
  1975. package/lib/esm/expression/embeddedDocs/function/trigonometry/acosh.js +8 -0
  1976. package/lib/esm/expression/embeddedDocs/function/trigonometry/acot.js +8 -0
  1977. package/lib/esm/expression/embeddedDocs/function/trigonometry/acoth.js +8 -0
  1978. package/lib/esm/expression/embeddedDocs/function/trigonometry/acsc.js +8 -0
  1979. package/lib/esm/expression/embeddedDocs/function/trigonometry/acsch.js +8 -0
  1980. package/lib/esm/expression/embeddedDocs/function/trigonometry/asec.js +8 -0
  1981. package/lib/esm/expression/embeddedDocs/function/trigonometry/asech.js +8 -0
  1982. package/lib/esm/expression/embeddedDocs/function/trigonometry/asin.js +8 -0
  1983. package/lib/esm/expression/embeddedDocs/function/trigonometry/asinh.js +8 -0
  1984. package/lib/esm/expression/embeddedDocs/function/trigonometry/atan.js +8 -0
  1985. package/lib/esm/expression/embeddedDocs/function/trigonometry/atan2.js +8 -0
  1986. package/lib/esm/expression/embeddedDocs/function/trigonometry/atanh.js +8 -0
  1987. package/lib/esm/expression/embeddedDocs/function/trigonometry/cos.js +8 -0
  1988. package/lib/esm/expression/embeddedDocs/function/trigonometry/cosh.js +8 -0
  1989. package/lib/esm/expression/embeddedDocs/function/trigonometry/cot.js +8 -0
  1990. package/lib/esm/expression/embeddedDocs/function/trigonometry/coth.js +8 -0
  1991. package/lib/esm/expression/embeddedDocs/function/trigonometry/csc.js +8 -0
  1992. package/lib/esm/expression/embeddedDocs/function/trigonometry/csch.js +8 -0
  1993. package/lib/esm/expression/embeddedDocs/function/trigonometry/sec.js +8 -0
  1994. package/lib/esm/expression/embeddedDocs/function/trigonometry/sech.js +8 -0
  1995. package/lib/esm/expression/embeddedDocs/function/trigonometry/sin.js +8 -0
  1996. package/lib/esm/expression/embeddedDocs/function/trigonometry/sinh.js +8 -0
  1997. package/lib/esm/expression/embeddedDocs/function/trigonometry/tan.js +8 -0
  1998. package/lib/esm/expression/embeddedDocs/function/trigonometry/tanh.js +8 -0
  1999. package/lib/esm/expression/embeddedDocs/function/units/to.js +8 -0
  2000. package/lib/esm/expression/embeddedDocs/function/utils/bin.js +8 -0
  2001. package/lib/esm/expression/embeddedDocs/function/utils/clone.js +8 -0
  2002. package/lib/esm/expression/embeddedDocs/function/utils/format.js +8 -0
  2003. package/lib/esm/expression/embeddedDocs/function/utils/hasNumericValue.js +8 -0
  2004. package/lib/esm/expression/embeddedDocs/function/utils/hex.js +8 -0
  2005. package/lib/esm/expression/embeddedDocs/function/utils/isInteger.js +8 -0
  2006. package/lib/esm/expression/embeddedDocs/function/utils/isNaN.js +8 -0
  2007. package/lib/esm/expression/embeddedDocs/function/utils/isNegative.js +8 -0
  2008. package/lib/esm/expression/embeddedDocs/function/utils/isNumeric.js +8 -0
  2009. package/lib/esm/expression/embeddedDocs/function/utils/isPositive.js +8 -0
  2010. package/lib/esm/expression/embeddedDocs/function/utils/isPrime.js +8 -0
  2011. package/lib/esm/expression/embeddedDocs/function/utils/isZero.js +8 -0
  2012. package/lib/esm/expression/embeddedDocs/function/utils/numeric.js +8 -0
  2013. package/lib/esm/expression/embeddedDocs/function/utils/oct.js +8 -0
  2014. package/lib/esm/expression/embeddedDocs/function/utils/print.js +8 -0
  2015. package/lib/esm/expression/embeddedDocs/function/utils/typeOf.js +8 -0
  2016. package/lib/esm/expression/function/compile.js +54 -0
  2017. package/lib/esm/expression/function/evaluate.js +63 -0
  2018. package/lib/esm/expression/function/help.js +67 -0
  2019. package/lib/esm/expression/function/parser.js +57 -0
  2020. package/lib/esm/expression/keywords.js +2 -0
  2021. package/lib/esm/expression/node/AccessorNode.js +189 -0
  2022. package/lib/esm/expression/node/ArrayNode.js +176 -0
  2023. package/lib/esm/expression/node/AssignmentNode.js +306 -0
  2024. package/lib/esm/expression/node/BlockNode.js +185 -0
  2025. package/lib/esm/expression/node/ConditionalNode.js +225 -0
  2026. package/lib/esm/expression/node/ConstantNode.js +172 -0
  2027. package/lib/esm/expression/node/FunctionAssignmentNode.js +235 -0
  2028. package/lib/esm/expression/node/FunctionNode.js +470 -0
  2029. package/lib/esm/expression/node/IndexNode.js +219 -0
  2030. package/lib/esm/expression/node/Node.js +361 -0
  2031. package/lib/esm/expression/node/ObjectNode.js +195 -0
  2032. package/lib/esm/expression/node/OperatorNode.js +623 -0
  2033. package/lib/esm/expression/node/ParenthesisNode.js +152 -0
  2034. package/lib/esm/expression/node/RangeNode.js +251 -0
  2035. package/lib/esm/expression/node/RelationalNode.js +198 -0
  2036. package/lib/esm/expression/node/SymbolNode.js +193 -0
  2037. package/lib/esm/expression/node/utils/access.js +40 -0
  2038. package/lib/esm/expression/node/utils/assign.js +46 -0
  2039. package/lib/esm/expression/operators.js +381 -0
  2040. package/lib/esm/expression/parse.js +1642 -0
  2041. package/lib/esm/expression/transform/apply.transform.js +44 -0
  2042. package/lib/esm/expression/transform/column.transform.js +47 -0
  2043. package/lib/esm/expression/transform/concat.transform.js +45 -0
  2044. package/lib/esm/expression/transform/cumsum.transform.js +46 -0
  2045. package/lib/esm/expression/transform/diff.transform.js +41 -0
  2046. package/lib/esm/expression/transform/filter.transform.js +77 -0
  2047. package/lib/esm/expression/transform/forEach.transform.js +66 -0
  2048. package/lib/esm/expression/transform/index.transform.js +49 -0
  2049. package/lib/esm/expression/transform/map.transform.js +80 -0
  2050. package/lib/esm/expression/transform/max.transform.js +40 -0
  2051. package/lib/esm/expression/transform/mean.transform.js +38 -0
  2052. package/lib/esm/expression/transform/min.transform.js +40 -0
  2053. package/lib/esm/expression/transform/range.transform.js +46 -0
  2054. package/lib/esm/expression/transform/row.transform.js +47 -0
  2055. package/lib/esm/expression/transform/std.transform.js +40 -0
  2056. package/lib/esm/expression/transform/subset.transform.js +33 -0
  2057. package/lib/esm/expression/transform/sum.transform.js +40 -0
  2058. package/lib/esm/expression/transform/utils/compileInlineExpression.js +29 -0
  2059. package/lib/esm/expression/transform/utils/errorTransform.js +13 -0
  2060. package/lib/esm/expression/transform/utils/lastDimToZeroBase.js +17 -0
  2061. package/lib/esm/expression/transform/variance.transform.js +46 -0
  2062. package/lib/esm/factoriesAny.js +284 -0
  2063. package/lib/esm/factoriesNumber.js +263 -0
  2064. package/lib/esm/function/algebra/decomposition/lup.js +379 -0
  2065. package/lib/esm/function/algebra/decomposition/qr.js +222 -0
  2066. package/lib/esm/function/algebra/decomposition/schur.js +70 -0
  2067. package/lib/esm/function/algebra/decomposition/slu.js +101 -0
  2068. package/lib/esm/function/algebra/derivative.js +543 -0
  2069. package/lib/esm/function/algebra/leafCount.js +54 -0
  2070. package/lib/esm/function/algebra/lyap.js +52 -0
  2071. package/lib/esm/function/algebra/polynomialRoot.js +122 -0
  2072. package/lib/esm/function/algebra/rationalize.js +823 -0
  2073. package/lib/esm/function/algebra/resolve.js +97 -0
  2074. package/lib/esm/function/algebra/simplify/util.js +261 -0
  2075. package/lib/esm/function/algebra/simplify/wildcards.js +20 -0
  2076. package/lib/esm/function/algebra/simplify.js +1254 -0
  2077. package/lib/esm/function/algebra/simplifyConstant.js +458 -0
  2078. package/lib/esm/function/algebra/simplifyCore.js +290 -0
  2079. package/lib/esm/function/algebra/solver/lsolve.js +157 -0
  2080. package/lib/esm/function/algebra/solver/lsolveAll.js +186 -0
  2081. package/lib/esm/function/algebra/solver/lusolve.js +108 -0
  2082. package/lib/esm/function/algebra/solver/usolve.js +161 -0
  2083. package/lib/esm/function/algebra/solver/usolveAll.js +190 -0
  2084. package/lib/esm/function/algebra/solver/utils/solveValidation.js +115 -0
  2085. package/lib/esm/function/algebra/sparse/csAmd.js +581 -0
  2086. package/lib/esm/function/algebra/sparse/csChol.js +156 -0
  2087. package/lib/esm/function/algebra/sparse/csCounts.js +125 -0
  2088. package/lib/esm/function/algebra/sparse/csCumsum.js +26 -0
  2089. package/lib/esm/function/algebra/sparse/csDfs.js +75 -0
  2090. package/lib/esm/function/algebra/sparse/csEreach.js +62 -0
  2091. package/lib/esm/function/algebra/sparse/csEtree.js +69 -0
  2092. package/lib/esm/function/algebra/sparse/csFkeep.js +56 -0
  2093. package/lib/esm/function/algebra/sparse/csFlip.js +11 -0
  2094. package/lib/esm/function/algebra/sparse/csIpvec.js +29 -0
  2095. package/lib/esm/function/algebra/sparse/csLeaf.js +56 -0
  2096. package/lib/esm/function/algebra/sparse/csLu.js +180 -0
  2097. package/lib/esm/function/algebra/sparse/csMark.js +14 -0
  2098. package/lib/esm/function/algebra/sparse/csMarked.js +12 -0
  2099. package/lib/esm/function/algebra/sparse/csPermute.js +59 -0
  2100. package/lib/esm/function/algebra/sparse/csPost.js +51 -0
  2101. package/lib/esm/function/algebra/sparse/csReach.js +50 -0
  2102. package/lib/esm/function/algebra/sparse/csSpsolve.js +83 -0
  2103. package/lib/esm/function/algebra/sparse/csSqr.js +178 -0
  2104. package/lib/esm/function/algebra/sparse/csSymperm.js +92 -0
  2105. package/lib/esm/function/algebra/sparse/csTdfs.js +40 -0
  2106. package/lib/esm/function/algebra/sparse/csUnflip.js +13 -0
  2107. package/lib/esm/function/algebra/sylvester.js +118 -0
  2108. package/lib/esm/function/algebra/symbolicEqual.js +60 -0
  2109. package/lib/esm/function/arithmetic/abs.js +40 -0
  2110. package/lib/esm/function/arithmetic/add.js +83 -0
  2111. package/lib/esm/function/arithmetic/addScalar.js +46 -0
  2112. package/lib/esm/function/arithmetic/cbrt.js +131 -0
  2113. package/lib/esm/function/arithmetic/ceil.js +161 -0
  2114. package/lib/esm/function/arithmetic/cube.js +51 -0
  2115. package/lib/esm/function/arithmetic/divide.js +79 -0
  2116. package/lib/esm/function/arithmetic/divideScalar.js +37 -0
  2117. package/lib/esm/function/arithmetic/dotDivide.js +78 -0
  2118. package/lib/esm/function/arithmetic/dotMultiply.js +66 -0
  2119. package/lib/esm/function/arithmetic/dotPow.js +78 -0
  2120. package/lib/esm/function/arithmetic/exp.js +48 -0
  2121. package/lib/esm/function/arithmetic/expm1.js +53 -0
  2122. package/lib/esm/function/arithmetic/fix.js +126 -0
  2123. package/lib/esm/function/arithmetic/floor.js +164 -0
  2124. package/lib/esm/function/arithmetic/gcd.js +117 -0
  2125. package/lib/esm/function/arithmetic/hypot.js +77 -0
  2126. package/lib/esm/function/arithmetic/invmod.js +55 -0
  2127. package/lib/esm/function/arithmetic/lcm.js +110 -0
  2128. package/lib/esm/function/arithmetic/log.js +72 -0
  2129. package/lib/esm/function/arithmetic/log10.js +59 -0
  2130. package/lib/esm/function/arithmetic/log1p.js +81 -0
  2131. package/lib/esm/function/arithmetic/log2.js +68 -0
  2132. package/lib/esm/function/arithmetic/mod.js +101 -0
  2133. package/lib/esm/function/arithmetic/multiply.js +879 -0
  2134. package/lib/esm/function/arithmetic/multiplyScalar.js +35 -0
  2135. package/lib/esm/function/arithmetic/norm.js +287 -0
  2136. package/lib/esm/function/arithmetic/nthRoot.js +166 -0
  2137. package/lib/esm/function/arithmetic/nthRoots.js +112 -0
  2138. package/lib/esm/function/arithmetic/pow.js +191 -0
  2139. package/lib/esm/function/arithmetic/round.js +148 -0
  2140. package/lib/esm/function/arithmetic/sign.js +63 -0
  2141. package/lib/esm/function/arithmetic/sqrt.js +70 -0
  2142. package/lib/esm/function/arithmetic/square.js +52 -0
  2143. package/lib/esm/function/arithmetic/subtract.js +106 -0
  2144. package/lib/esm/function/arithmetic/unaryMinus.js +46 -0
  2145. package/lib/esm/function/arithmetic/unaryPlus.js +60 -0
  2146. package/lib/esm/function/arithmetic/xgcd.js +91 -0
  2147. package/lib/esm/function/bitwise/bitAnd.js +65 -0
  2148. package/lib/esm/function/bitwise/bitNot.js +38 -0
  2149. package/lib/esm/function/bitwise/bitOr.js +66 -0
  2150. package/lib/esm/function/bitwise/bitXor.js +64 -0
  2151. package/lib/esm/function/bitwise/leftShift.js +114 -0
  2152. package/lib/esm/function/bitwise/rightArithShift.js +114 -0
  2153. package/lib/esm/function/bitwise/rightLogShift.js +115 -0
  2154. package/lib/esm/function/bitwise/useMatrixForArrayScalar.js +13 -0
  2155. package/lib/esm/function/combinatorics/bellNumbers.js +47 -0
  2156. package/lib/esm/function/combinatorics/catalan.js +43 -0
  2157. package/lib/esm/function/combinatorics/composition.js +46 -0
  2158. package/lib/esm/function/combinatorics/stirlingS2.js +86 -0
  2159. package/lib/esm/function/complex/arg.js +50 -0
  2160. package/lib/esm/function/complex/conj.js +39 -0
  2161. package/lib/esm/function/complex/im.js +42 -0
  2162. package/lib/esm/function/complex/re.js +41 -0
  2163. package/lib/esm/function/geometry/distance.js +303 -0
  2164. package/lib/esm/function/geometry/intersect.js +200 -0
  2165. package/lib/esm/function/logical/and.js +121 -0
  2166. package/lib/esm/function/logical/not.js +47 -0
  2167. package/lib/esm/function/logical/or.js +76 -0
  2168. package/lib/esm/function/logical/xor.js +75 -0
  2169. package/lib/esm/function/matrix/apply.js +111 -0
  2170. package/lib/esm/function/matrix/column.js +59 -0
  2171. package/lib/esm/function/matrix/concat.js +131 -0
  2172. package/lib/esm/function/matrix/count.js +39 -0
  2173. package/lib/esm/function/matrix/cross.js +81 -0
  2174. package/lib/esm/function/matrix/ctranspose.js +37 -0
  2175. package/lib/esm/function/matrix/det.js +143 -0
  2176. package/lib/esm/function/matrix/diag.js +155 -0
  2177. package/lib/esm/function/matrix/diff.js +165 -0
  2178. package/lib/esm/function/matrix/dot.js +156 -0
  2179. package/lib/esm/function/matrix/eigs/complexEigs.js +693 -0
  2180. package/lib/esm/function/matrix/eigs/realSymetric.js +293 -0
  2181. package/lib/esm/function/matrix/eigs.js +256 -0
  2182. package/lib/esm/function/matrix/expm.js +154 -0
  2183. package/lib/esm/function/matrix/fft.js +128 -0
  2184. package/lib/esm/function/matrix/filter.js +72 -0
  2185. package/lib/esm/function/matrix/flatten.js +39 -0
  2186. package/lib/esm/function/matrix/forEach.js +69 -0
  2187. package/lib/esm/function/matrix/getMatrixDataType.js +52 -0
  2188. package/lib/esm/function/matrix/identity.js +136 -0
  2189. package/lib/esm/function/matrix/ifft.js +37 -0
  2190. package/lib/esm/function/matrix/inv.js +184 -0
  2191. package/lib/esm/function/matrix/kron.js +85 -0
  2192. package/lib/esm/function/matrix/map.js +105 -0
  2193. package/lib/esm/function/matrix/matrixFromColumns.js +89 -0
  2194. package/lib/esm/function/matrix/matrixFromFunction.js +74 -0
  2195. package/lib/esm/function/matrix/matrixFromRows.js +77 -0
  2196. package/lib/esm/function/matrix/ones.js +123 -0
  2197. package/lib/esm/function/matrix/partitionSelect.js +144 -0
  2198. package/lib/esm/function/matrix/pinv.js +179 -0
  2199. package/lib/esm/function/matrix/range.js +258 -0
  2200. package/lib/esm/function/matrix/reshape.js +63 -0
  2201. package/lib/esm/function/matrix/resize.js +121 -0
  2202. package/lib/esm/function/matrix/rotate.js +71 -0
  2203. package/lib/esm/function/matrix/rotationMatrix.js +160 -0
  2204. package/lib/esm/function/matrix/row.js +59 -0
  2205. package/lib/esm/function/matrix/size.js +48 -0
  2206. package/lib/esm/function/matrix/sort.js +113 -0
  2207. package/lib/esm/function/matrix/sqrtm.js +99 -0
  2208. package/lib/esm/function/matrix/squeeze.js +54 -0
  2209. package/lib/esm/function/matrix/subset.js +213 -0
  2210. package/lib/esm/function/matrix/trace.js +128 -0
  2211. package/lib/esm/function/matrix/transpose.js +161 -0
  2212. package/lib/esm/function/matrix/zeros.js +123 -0
  2213. package/lib/esm/function/probability/combinations.js +69 -0
  2214. package/lib/esm/function/probability/combinationsWithRep.js +84 -0
  2215. package/lib/esm/function/probability/factorial.js +47 -0
  2216. package/lib/esm/function/probability/gamma.js +120 -0
  2217. package/lib/esm/function/probability/kldivergence.js +77 -0
  2218. package/lib/esm/function/probability/lgamma.js +137 -0
  2219. package/lib/esm/function/probability/multinomial.js +50 -0
  2220. package/lib/esm/function/probability/permutations.js +78 -0
  2221. package/lib/esm/function/probability/pickRandom.js +151 -0
  2222. package/lib/esm/function/probability/random.js +96 -0
  2223. package/lib/esm/function/probability/randomInt.js +67 -0
  2224. package/lib/esm/function/probability/util/randomMatrix.js +20 -0
  2225. package/lib/esm/function/probability/util/seededRNG.js +19 -0
  2226. package/lib/esm/function/relational/compare.js +111 -0
  2227. package/lib/esm/function/relational/compareNatural.js +274 -0
  2228. package/lib/esm/function/relational/compareText.js +57 -0
  2229. package/lib/esm/function/relational/compareUnits.js +14 -0
  2230. package/lib/esm/function/relational/deepEqual.js +74 -0
  2231. package/lib/esm/function/relational/equal.js +110 -0
  2232. package/lib/esm/function/relational/equalScalar.js +53 -0
  2233. package/lib/esm/function/relational/equalText.js +41 -0
  2234. package/lib/esm/function/relational/larger.js +98 -0
  2235. package/lib/esm/function/relational/largerEq.js +94 -0
  2236. package/lib/esm/function/relational/smaller.js +98 -0
  2237. package/lib/esm/function/relational/smallerEq.js +94 -0
  2238. package/lib/esm/function/relational/unequal.js +113 -0
  2239. package/lib/esm/function/set/setCartesian.js +58 -0
  2240. package/lib/esm/function/set/setDifference.js +71 -0
  2241. package/lib/esm/function/set/setDistinct.js +57 -0
  2242. package/lib/esm/function/set/setIntersect.js +63 -0
  2243. package/lib/esm/function/set/setIsSubset.js +62 -0
  2244. package/lib/esm/function/set/setMultiplicity.js +50 -0
  2245. package/lib/esm/function/set/setPowerset.js +75 -0
  2246. package/lib/esm/function/set/setSize.js +51 -0
  2247. package/lib/esm/function/set/setSymDifference.js +48 -0
  2248. package/lib/esm/function/set/setUnion.js +49 -0
  2249. package/lib/esm/function/special/erf.js +152 -0
  2250. package/lib/esm/function/statistics/cumsum.js +123 -0
  2251. package/lib/esm/function/statistics/mad.js +64 -0
  2252. package/lib/esm/function/statistics/max.js +104 -0
  2253. package/lib/esm/function/statistics/mean.js +94 -0
  2254. package/lib/esm/function/statistics/median.js +109 -0
  2255. package/lib/esm/function/statistics/min.js +104 -0
  2256. package/lib/esm/function/statistics/mode.js +76 -0
  2257. package/lib/esm/function/statistics/prod.js +79 -0
  2258. package/lib/esm/function/statistics/quantileSeq.js +235 -0
  2259. package/lib/esm/function/statistics/std.js +97 -0
  2260. package/lib/esm/function/statistics/sum.js +84 -0
  2261. package/lib/esm/function/statistics/utils/improveErrorMessage.js +25 -0
  2262. package/lib/esm/function/statistics/variance.js +153 -0
  2263. package/lib/esm/function/string/bin.js +44 -0
  2264. package/lib/esm/function/string/format.js +131 -0
  2265. package/lib/esm/function/string/hex.js +43 -0
  2266. package/lib/esm/function/string/oct.js +45 -0
  2267. package/lib/esm/function/string/print.js +86 -0
  2268. package/lib/esm/function/trigonometry/acos.js +49 -0
  2269. package/lib/esm/function/trigonometry/acosh.js +49 -0
  2270. package/lib/esm/function/trigonometry/acot.js +42 -0
  2271. package/lib/esm/function/trigonometry/acoth.js +48 -0
  2272. package/lib/esm/function/trigonometry/acsc.js +49 -0
  2273. package/lib/esm/function/trigonometry/acsch.js +41 -0
  2274. package/lib/esm/function/trigonometry/asec.js +50 -0
  2275. package/lib/esm/function/trigonometry/asech.js +53 -0
  2276. package/lib/esm/function/trigonometry/asin.js +49 -0
  2277. package/lib/esm/function/trigonometry/asinh.js +40 -0
  2278. package/lib/esm/function/trigonometry/atan.js +42 -0
  2279. package/lib/esm/function/trigonometry/atan2.js +89 -0
  2280. package/lib/esm/function/trigonometry/atanh.js +47 -0
  2281. package/lib/esm/function/trigonometry/cos.js +44 -0
  2282. package/lib/esm/function/trigonometry/cosh.js +35 -0
  2283. package/lib/esm/function/trigonometry/cot.js +42 -0
  2284. package/lib/esm/function/trigonometry/coth.js +39 -0
  2285. package/lib/esm/function/trigonometry/csc.js +42 -0
  2286. package/lib/esm/function/trigonometry/csch.js +39 -0
  2287. package/lib/esm/function/trigonometry/sec.js +42 -0
  2288. package/lib/esm/function/trigonometry/sech.js +39 -0
  2289. package/lib/esm/function/trigonometry/sin.js +44 -0
  2290. package/lib/esm/function/trigonometry/sinh.js +35 -0
  2291. package/lib/esm/function/trigonometry/tan.js +41 -0
  2292. package/lib/esm/function/trigonometry/tanh.js +38 -0
  2293. package/lib/esm/function/trigonometry/trigUnit.js +14 -0
  2294. package/lib/esm/function/unit/to.js +46 -0
  2295. package/lib/esm/function/utils/clone.js +30 -0
  2296. package/lib/esm/function/utils/hasNumericValue.js +48 -0
  2297. package/lib/esm/function/utils/isInteger.js +51 -0
  2298. package/lib/esm/function/utils/isNaN.js +57 -0
  2299. package/lib/esm/function/utils/isNegative.js +51 -0
  2300. package/lib/esm/function/utils/isNumeric.js +43 -0
  2301. package/lib/esm/function/utils/isPositive.js +52 -0
  2302. package/lib/esm/function/utils/isPrime.js +122 -0
  2303. package/lib/esm/function/utils/isZero.js +57 -0
  2304. package/lib/esm/function/utils/numeric.js +73 -0
  2305. package/lib/esm/function/utils/typeOf.js +64 -0
  2306. package/lib/esm/header.js +26 -0
  2307. package/lib/esm/index.js +1 -0
  2308. package/lib/esm/json/replacer.js +27 -0
  2309. package/lib/esm/json/reviver.js +21 -0
  2310. package/lib/esm/number.js +1 -0
  2311. package/lib/esm/plain/bignumber/arithmetic.js +22 -0
  2312. package/lib/esm/plain/bignumber/index.js +9 -0
  2313. package/lib/esm/plain/number/arithmetic.js +374 -0
  2314. package/lib/esm/plain/number/bitwise.js +52 -0
  2315. package/lib/esm/plain/number/combinations.js +33 -0
  2316. package/lib/esm/plain/number/constants.js +4 -0
  2317. package/lib/esm/plain/number/index.js +9 -0
  2318. package/lib/esm/plain/number/logical.js +18 -0
  2319. package/lib/esm/plain/number/probability.js +77 -0
  2320. package/lib/esm/plain/number/relational.js +0 -0
  2321. package/lib/esm/plain/number/trigonometry.js +112 -0
  2322. package/lib/esm/plain/number/utils.js +22 -0
  2323. package/lib/esm/type/bignumber/BigNumber.js +57 -0
  2324. package/lib/esm/type/bignumber/function/bignumber.js +74 -0
  2325. package/lib/esm/type/boolean.js +70 -0
  2326. package/lib/esm/type/chain/Chain.js +213 -0
  2327. package/lib/esm/type/chain/function/chain.js +52 -0
  2328. package/lib/esm/type/complex/Complex.js +194 -0
  2329. package/lib/esm/type/complex/function/complex.js +86 -0
  2330. package/lib/esm/type/fraction/Fraction.js +41 -0
  2331. package/lib/esm/type/fraction/function/fraction.js +75 -0
  2332. package/lib/esm/type/matrix/DenseMatrix.js +943 -0
  2333. package/lib/esm/type/matrix/FibonacciHeap.js +351 -0
  2334. package/lib/esm/type/matrix/ImmutableDenseMatrix.js +221 -0
  2335. package/lib/esm/type/matrix/Matrix.js +242 -0
  2336. package/lib/esm/type/matrix/MatrixIndex.js +266 -0
  2337. package/lib/esm/type/matrix/Range.js +304 -0
  2338. package/lib/esm/type/matrix/Spa.js +136 -0
  2339. package/lib/esm/type/matrix/SparseMatrix.js +1486 -0
  2340. package/lib/esm/type/matrix/function/index.js +62 -0
  2341. package/lib/esm/type/matrix/function/matrix.js +82 -0
  2342. package/lib/esm/type/matrix/function/sparse.js +56 -0
  2343. package/lib/esm/type/matrix/utils/broadcast.js +75 -0
  2344. package/lib/esm/type/matrix/utils/matAlgo01xDSid.js +112 -0
  2345. package/lib/esm/type/matrix/utils/matAlgo02xDS0.js +116 -0
  2346. package/lib/esm/type/matrix/utils/matAlgo03xDSf.js +122 -0
  2347. package/lib/esm/type/matrix/utils/matAlgo04xSidSid.js +179 -0
  2348. package/lib/esm/type/matrix/utils/matAlgo05xSfSf.js +171 -0
  2349. package/lib/esm/type/matrix/utils/matAlgo06xS0S0.js +153 -0
  2350. package/lib/esm/type/matrix/utils/matAlgo07xSSf.js +119 -0
  2351. package/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js +154 -0
  2352. package/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js +142 -0
  2353. package/lib/esm/type/matrix/utils/matAlgo10xSids.js +105 -0
  2354. package/lib/esm/type/matrix/utils/matAlgo11xS0s.js +103 -0
  2355. package/lib/esm/type/matrix/utils/matAlgo12xSfs.js +105 -0
  2356. package/lib/esm/type/matrix/utils/matAlgo13xDD.js +94 -0
  2357. package/lib/esm/type/matrix/utils/matAlgo14xDs.js +76 -0
  2358. package/lib/esm/type/matrix/utils/matrixAlgorithmSuite.js +156 -0
  2359. package/lib/esm/type/number.js +145 -0
  2360. package/lib/esm/type/resultset/ResultSet.js +68 -0
  2361. package/lib/esm/type/string.js +54 -0
  2362. package/lib/esm/type/unit/Unit.js +3848 -0
  2363. package/lib/esm/type/unit/function/createUnit.js +79 -0
  2364. package/lib/esm/type/unit/function/splitUnit.js +32 -0
  2365. package/lib/esm/type/unit/function/unit.js +62 -0
  2366. package/lib/esm/type/unit/physicalConstants.js +101 -0
  2367. package/lib/esm/utils/array.js +579 -0
  2368. package/lib/esm/utils/bignumber/bitwise.js +399 -0
  2369. package/lib/esm/utils/bignumber/constants.js +57 -0
  2370. package/lib/esm/utils/bignumber/formatter.js +251 -0
  2371. package/lib/esm/utils/bignumber/nearlyEqual.js +41 -0
  2372. package/lib/esm/utils/collection.js +177 -0
  2373. package/lib/esm/utils/complex.js +13 -0
  2374. package/lib/esm/utils/customs.js +153 -0
  2375. package/lib/esm/utils/emitter.js +18 -0
  2376. package/lib/esm/utils/factory.js +127 -0
  2377. package/lib/esm/utils/function.js +99 -0
  2378. package/lib/esm/utils/is.js +169 -0
  2379. package/lib/esm/utils/latex.js +485 -0
  2380. package/lib/esm/utils/log.js +16 -0
  2381. package/lib/esm/utils/lruQueue.js +55 -0
  2382. package/lib/esm/utils/map.js +120 -0
  2383. package/lib/esm/utils/noop.js +15 -0
  2384. package/lib/esm/utils/number.js +657 -0
  2385. package/lib/esm/utils/object.js +373 -0
  2386. package/lib/esm/utils/product.js +14 -0
  2387. package/lib/esm/utils/scope.js +24 -0
  2388. package/lib/esm/utils/snapshot.js +227 -0
  2389. package/lib/esm/utils/string.js +198 -0
  2390. package/lib/esm/utils/switch.js +20 -0
  2391. package/lib/esm/version.js +3 -0
  2392. package/main/es5/index.js +3 -0
  2393. package/main/es5/number.js +3 -0
  2394. package/main/es5/package.json +3 -0
  2395. package/main/esm/index.js +3 -0
  2396. package/main/esm/number.js +3 -0
  2397. package/main/esm/package.json +3 -0
  2398. package/number.cjs +3 -0
  2399. package/package.json +178 -0
  2400. package/types/index.d.ts +6429 -0
  2401. package/types/tslint.json +6 -0
@@ -0,0 +1,3848 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ import { isComplex, isUnit, typeOf } from '../../utils/is.js';
6
+ import { factory } from '../../utils/factory.js';
7
+ import { memoize } from '../../utils/function.js';
8
+ import { endsWith } from '../../utils/string.js';
9
+ import { clone, hasOwnProperty } from '../../utils/object.js';
10
+ import { createBigNumberPi as createPi } from '../../utils/bignumber/constants.js';
11
+ var name = 'Unit';
12
+ var dependencies = ['?on', 'config', 'addScalar', 'subtract', 'multiplyScalar', 'divideScalar', 'pow', 'abs', 'fix', 'round', 'equal', 'isNumeric', 'format', 'number', 'Complex', 'BigNumber', 'Fraction'];
13
+ export var createUnitClass = /* #__PURE__ */factory(name, dependencies, _ref => {
14
+ var {
15
+ on,
16
+ config,
17
+ addScalar,
18
+ subtract,
19
+ multiplyScalar,
20
+ divideScalar,
21
+ pow,
22
+ abs,
23
+ fix,
24
+ round,
25
+ equal,
26
+ isNumeric,
27
+ format,
28
+ number,
29
+ Complex,
30
+ BigNumber: _BigNumber,
31
+ Fraction: _Fraction
32
+ } = _ref;
33
+ var toNumber = number;
34
+ /**
35
+ * A unit can be constructed in the following ways:
36
+ *
37
+ * const a = new Unit(value, valuelessUnit)
38
+ * const b = new Unit(null, valuelessUnit)
39
+ * const c = Unit.parse(str)
40
+ *
41
+ * Example usage:
42
+ *
43
+ * const a = new Unit(5, 'cm') // 50 mm
44
+ * const b = Unit.parse('23 kg') // 23 kg
45
+ * const c = math.in(a, new Unit(null, 'm') // 0.05 m
46
+ * const d = new Unit(9.81, "m/s^2") // 9.81 m/s^2
47
+ *
48
+ * @class Unit
49
+ * @constructor Unit
50
+ * @param {number | BigNumber | Fraction | Complex | boolean} [value] A value like 5.2
51
+ * @param {string | Unit} valuelessUnit A unit without value. Can have prefix, like "cm"
52
+ */
53
+ function Unit(value, valuelessUnit) {
54
+ if (!(this instanceof Unit)) {
55
+ throw new Error('Constructor must be called with the new operator');
56
+ }
57
+ if (!(value === null || value === undefined || isNumeric(value) || isComplex(value))) {
58
+ throw new TypeError('First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined');
59
+ }
60
+ this.fixPrefix = false; // if true, function format will not search for the
61
+ // best prefix but leave it as initially provided.
62
+ // fixPrefix is set true by the method Unit.to
63
+
64
+ // The justification behind this is that if the constructor is explicitly called,
65
+ // the caller wishes the units to be returned exactly as supplied.
66
+ this.skipAutomaticSimplification = true;
67
+ if (valuelessUnit === undefined) {
68
+ this.units = [];
69
+ this.dimensions = BASE_DIMENSIONS.map(x => 0);
70
+ } else if (typeof valuelessUnit === 'string') {
71
+ var u = Unit.parse(valuelessUnit);
72
+ this.units = u.units;
73
+ this.dimensions = u.dimensions;
74
+ } else if (isUnit(valuelessUnit) && valuelessUnit.value === null) {
75
+ // clone from valuelessUnit
76
+ this.fixPrefix = valuelessUnit.fixPrefix;
77
+ this.skipAutomaticSimplification = valuelessUnit.skipAutomaticSimplification;
78
+ this.dimensions = valuelessUnit.dimensions.slice(0);
79
+ this.units = valuelessUnit.units.map(u => _extends({}, u));
80
+ } else {
81
+ throw new TypeError('Second parameter in Unit constructor must be a string or valueless Unit');
82
+ }
83
+ this.value = this._normalize(value);
84
+ }
85
+
86
+ /**
87
+ * Attach type information
88
+ */
89
+ Object.defineProperty(Unit, 'name', {
90
+ value: 'Unit'
91
+ });
92
+ Unit.prototype.constructor = Unit;
93
+ Unit.prototype.type = 'Unit';
94
+ Unit.prototype.isUnit = true;
95
+
96
+ // private variables and functions for the Unit parser
97
+ var text, index, c;
98
+ function skipWhitespace() {
99
+ while (c === ' ' || c === '\t') {
100
+ next();
101
+ }
102
+ }
103
+ function isDigitDot(c) {
104
+ return c >= '0' && c <= '9' || c === '.';
105
+ }
106
+ function isDigit(c) {
107
+ return c >= '0' && c <= '9';
108
+ }
109
+ function next() {
110
+ index++;
111
+ c = text.charAt(index);
112
+ }
113
+ function revert(oldIndex) {
114
+ index = oldIndex;
115
+ c = text.charAt(index);
116
+ }
117
+ function parseNumber() {
118
+ var number = '';
119
+ var oldIndex = index;
120
+ if (c === '+') {
121
+ next();
122
+ } else if (c === '-') {
123
+ number += c;
124
+ next();
125
+ }
126
+ if (!isDigitDot(c)) {
127
+ // a + or - must be followed by a digit
128
+ revert(oldIndex);
129
+ return null;
130
+ }
131
+
132
+ // get number, can have a single dot
133
+ if (c === '.') {
134
+ number += c;
135
+ next();
136
+ if (!isDigit(c)) {
137
+ // this is no legal number, it is just a dot
138
+ revert(oldIndex);
139
+ return null;
140
+ }
141
+ } else {
142
+ while (isDigit(c)) {
143
+ number += c;
144
+ next();
145
+ }
146
+ if (c === '.') {
147
+ number += c;
148
+ next();
149
+ }
150
+ }
151
+ while (isDigit(c)) {
152
+ number += c;
153
+ next();
154
+ }
155
+
156
+ // check for exponential notation like "2.3e-4" or "1.23e50"
157
+ if (c === 'E' || c === 'e') {
158
+ // The grammar branches here. This could either be part of an exponent or the start of a unit that begins with the letter e, such as "4exabytes"
159
+
160
+ var tentativeNumber = '';
161
+ var tentativeIndex = index;
162
+ tentativeNumber += c;
163
+ next();
164
+ if (c === '+' || c === '-') {
165
+ tentativeNumber += c;
166
+ next();
167
+ }
168
+
169
+ // Scientific notation MUST be followed by an exponent (otherwise we assume it is not scientific notation)
170
+ if (!isDigit(c)) {
171
+ // The e or E must belong to something else, so return the number without the e or E.
172
+ revert(tentativeIndex);
173
+ return number;
174
+ }
175
+
176
+ // We can now safely say that this is scientific notation.
177
+ number = number + tentativeNumber;
178
+ while (isDigit(c)) {
179
+ number += c;
180
+ next();
181
+ }
182
+ }
183
+ return number;
184
+ }
185
+ function parseUnit() {
186
+ var unitName = '';
187
+
188
+ // Alphanumeric characters only; matches [a-zA-Z0-9]
189
+ while (isDigit(c) || Unit.isValidAlpha(c)) {
190
+ unitName += c;
191
+ next();
192
+ }
193
+
194
+ // Must begin with [a-zA-Z]
195
+ var firstC = unitName.charAt(0);
196
+ if (Unit.isValidAlpha(firstC)) {
197
+ return unitName;
198
+ } else {
199
+ return null;
200
+ }
201
+ }
202
+ function parseCharacter(toFind) {
203
+ if (c === toFind) {
204
+ next();
205
+ return toFind;
206
+ } else {
207
+ return null;
208
+ }
209
+ }
210
+
211
+ /**
212
+ * Parse a string into a unit. The value of the unit is parsed as number,
213
+ * BigNumber, or Fraction depending on the math.js config setting `number`.
214
+ *
215
+ * Throws an exception if the provided string does not contain a valid unit or
216
+ * cannot be parsed.
217
+ * @memberof Unit
218
+ * @param {string} str A string like "5.2 inch", "4e2 cm/s^2"
219
+ * @return {Unit} unit
220
+ */
221
+ Unit.parse = function (str, options) {
222
+ options = options || {};
223
+ text = str;
224
+ index = -1;
225
+ c = '';
226
+ if (typeof text !== 'string') {
227
+ throw new TypeError('Invalid argument in Unit.parse, string expected');
228
+ }
229
+ var unit = new Unit();
230
+ unit.units = [];
231
+ var powerMultiplierCurrent = 1;
232
+ var expectingUnit = false;
233
+
234
+ // A unit should follow this pattern:
235
+ // [number] ...[ [*/] unit[^number] ]
236
+ // unit[^number] ... [ [*/] unit[^number] ]
237
+
238
+ // Rules:
239
+ // number is any floating point number.
240
+ // unit is any alphanumeric string beginning with an alpha. Units with names like e3 should be avoided because they look like the exponent of a floating point number!
241
+ // The string may optionally begin with a number.
242
+ // Each unit may optionally be followed by ^number.
243
+ // Whitespace or a forward slash is recommended between consecutive units, although the following technically is parseable:
244
+ // 2m^2kg/s^2
245
+ // it is not good form. If a unit starts with e, then it could be confused as a floating point number:
246
+ // 4erg
247
+
248
+ next();
249
+ skipWhitespace();
250
+
251
+ // Optional number at the start of the string
252
+ var valueStr = parseNumber();
253
+ var value = null;
254
+ if (valueStr) {
255
+ if (config.number === 'BigNumber') {
256
+ value = new _BigNumber(valueStr);
257
+ } else if (config.number === 'Fraction') {
258
+ try {
259
+ // not all numbers can be turned in Fractions, for example very small numbers not
260
+ value = new _Fraction(valueStr);
261
+ } catch (err) {
262
+ value = parseFloat(valueStr);
263
+ }
264
+ } else {
265
+ // number
266
+ value = parseFloat(valueStr);
267
+ }
268
+ skipWhitespace(); // Whitespace is not required here
269
+
270
+ // handle multiplication or division right after the value, like '1/s'
271
+ if (parseCharacter('*')) {
272
+ powerMultiplierCurrent = 1;
273
+ expectingUnit = true;
274
+ } else if (parseCharacter('/')) {
275
+ powerMultiplierCurrent = -1;
276
+ expectingUnit = true;
277
+ }
278
+ }
279
+
280
+ // Stack to keep track of powerMultipliers applied to each parentheses group
281
+ var powerMultiplierStack = [];
282
+
283
+ // Running product of all elements in powerMultiplierStack
284
+ var powerMultiplierStackProduct = 1;
285
+ while (true) {
286
+ skipWhitespace();
287
+
288
+ // Check for and consume opening parentheses, pushing powerMultiplierCurrent to the stack
289
+ // A '(' will always appear directly before a unit.
290
+ while (c === '(') {
291
+ powerMultiplierStack.push(powerMultiplierCurrent);
292
+ powerMultiplierStackProduct *= powerMultiplierCurrent;
293
+ powerMultiplierCurrent = 1;
294
+ next();
295
+ skipWhitespace();
296
+ }
297
+
298
+ // Is there something here?
299
+ var uStr = void 0;
300
+ if (c) {
301
+ var oldC = c;
302
+ uStr = parseUnit();
303
+ if (uStr === null) {
304
+ throw new SyntaxError('Unexpected "' + oldC + '" in "' + text + '" at index ' + index.toString());
305
+ }
306
+ } else {
307
+ // End of input.
308
+ break;
309
+ }
310
+
311
+ // Verify the unit exists and get the prefix (if any)
312
+ var res = _findUnit(uStr);
313
+ if (res === null) {
314
+ // Unit not found.
315
+ throw new SyntaxError('Unit "' + uStr + '" not found.');
316
+ }
317
+ var power = powerMultiplierCurrent * powerMultiplierStackProduct;
318
+ // Is there a "^ number"?
319
+ skipWhitespace();
320
+ if (parseCharacter('^')) {
321
+ skipWhitespace();
322
+ var p = parseNumber();
323
+ if (p === null) {
324
+ // No valid number found for the power!
325
+ throw new SyntaxError('In "' + str + '", "^" must be followed by a floating-point number');
326
+ }
327
+ power *= p;
328
+ }
329
+
330
+ // Add the unit to the list
331
+ unit.units.push({
332
+ unit: res.unit,
333
+ prefix: res.prefix,
334
+ power
335
+ });
336
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
337
+ unit.dimensions[i] += (res.unit.dimensions[i] || 0) * power;
338
+ }
339
+
340
+ // Check for and consume closing parentheses, popping from the stack.
341
+ // A ')' will always follow a unit.
342
+ skipWhitespace();
343
+ while (c === ')') {
344
+ if (powerMultiplierStack.length === 0) {
345
+ throw new SyntaxError('Unmatched ")" in "' + text + '" at index ' + index.toString());
346
+ }
347
+ powerMultiplierStackProduct /= powerMultiplierStack.pop();
348
+ next();
349
+ skipWhitespace();
350
+ }
351
+
352
+ // "*" and "/" should mean we are expecting something to come next.
353
+ // Is there a forward slash? If so, negate powerMultiplierCurrent. The next unit or paren group is in the denominator.
354
+ expectingUnit = false;
355
+ if (parseCharacter('*')) {
356
+ // explicit multiplication
357
+ powerMultiplierCurrent = 1;
358
+ expectingUnit = true;
359
+ } else if (parseCharacter('/')) {
360
+ // division
361
+ powerMultiplierCurrent = -1;
362
+ expectingUnit = true;
363
+ } else {
364
+ // implicit multiplication
365
+ powerMultiplierCurrent = 1;
366
+ }
367
+
368
+ // Replace the unit into the auto unit system
369
+ if (res.unit.base) {
370
+ var baseDim = res.unit.base.key;
371
+ UNIT_SYSTEMS.auto[baseDim] = {
372
+ unit: res.unit,
373
+ prefix: res.prefix
374
+ };
375
+ }
376
+ }
377
+
378
+ // Has the string been entirely consumed?
379
+ skipWhitespace();
380
+ if (c) {
381
+ throw new SyntaxError('Could not parse: "' + str + '"');
382
+ }
383
+
384
+ // Is there a trailing slash?
385
+ if (expectingUnit) {
386
+ throw new SyntaxError('Trailing characters: "' + str + '"');
387
+ }
388
+
389
+ // Is the parentheses stack empty?
390
+ if (powerMultiplierStack.length !== 0) {
391
+ throw new SyntaxError('Unmatched "(" in "' + text + '"');
392
+ }
393
+
394
+ // Are there any units at all?
395
+ if (unit.units.length === 0 && !options.allowNoUnits) {
396
+ throw new SyntaxError('"' + str + '" contains no units');
397
+ }
398
+ unit.value = value !== undefined ? unit._normalize(value) : null;
399
+ return unit;
400
+ };
401
+
402
+ /**
403
+ * create a copy of this unit
404
+ * @memberof Unit
405
+ * @return {Unit} Returns a cloned version of the unit
406
+ */
407
+ Unit.prototype.clone = function () {
408
+ var unit = new Unit();
409
+ unit.fixPrefix = this.fixPrefix;
410
+ unit.skipAutomaticSimplification = this.skipAutomaticSimplification;
411
+ unit.value = clone(this.value);
412
+ unit.dimensions = this.dimensions.slice(0);
413
+ unit.units = [];
414
+ for (var i = 0; i < this.units.length; i++) {
415
+ unit.units[i] = {};
416
+ for (var p in this.units[i]) {
417
+ if (hasOwnProperty(this.units[i], p)) {
418
+ unit.units[i][p] = this.units[i][p];
419
+ }
420
+ }
421
+ }
422
+ return unit;
423
+ };
424
+
425
+ /**
426
+ * Return the type of the value of this unit
427
+ *
428
+ * @memberof Unit
429
+ * @ return {string} type of the value of the unit
430
+ */
431
+ Unit.prototype.valueType = function () {
432
+ return typeOf(this.value);
433
+ };
434
+
435
+ /**
436
+ * Return whether the unit is derived (such as m/s, or cm^2, but not N)
437
+ * @memberof Unit
438
+ * @return {boolean} True if the unit is derived
439
+ */
440
+ Unit.prototype._isDerived = function () {
441
+ if (this.units.length === 0) {
442
+ return false;
443
+ }
444
+ return this.units.length > 1 || Math.abs(this.units[0].power - 1.0) > 1e-15;
445
+ };
446
+
447
+ /**
448
+ * Normalize a value, based on its currently set unit(s)
449
+ * @memberof Unit
450
+ * @param {number | BigNumber | Fraction | boolean} value
451
+ * @return {number | BigNumber | Fraction | boolean} normalized value
452
+ * @private
453
+ */
454
+ Unit.prototype._normalize = function (value) {
455
+ if (value === null || value === undefined || this.units.length === 0) {
456
+ return value;
457
+ }
458
+ var res = value;
459
+ var convert = Unit._getNumberConverter(typeOf(value)); // convert to Fraction or BigNumber if needed
460
+
461
+ for (var i = 0; i < this.units.length; i++) {
462
+ var unitValue = convert(this.units[i].unit.value);
463
+ var unitPrefixValue = convert(this.units[i].prefix.value);
464
+ var unitPower = convert(this.units[i].power);
465
+ res = multiplyScalar(res, pow(multiplyScalar(unitValue, unitPrefixValue), unitPower));
466
+ }
467
+ return res;
468
+ };
469
+
470
+ /**
471
+ * Denormalize a value, based on its currently set unit(s)
472
+ * @memberof Unit
473
+ * @param {number} value
474
+ * @param {number} [prefixValue] Optional prefix value to be used (ignored if this is a derived unit)
475
+ * @return {number} denormalized value
476
+ * @private
477
+ */
478
+ Unit.prototype._denormalize = function (value, prefixValue) {
479
+ if (value === null || value === undefined || this.units.length === 0) {
480
+ return value;
481
+ }
482
+ var res = value;
483
+ var convert = Unit._getNumberConverter(typeOf(value)); // convert to Fraction or BigNumber if needed
484
+
485
+ for (var i = 0; i < this.units.length; i++) {
486
+ var unitValue = convert(this.units[i].unit.value);
487
+ var unitPrefixValue = convert(this.units[i].prefix.value);
488
+ var unitPower = convert(this.units[i].power);
489
+ res = divideScalar(res, pow(multiplyScalar(unitValue, unitPrefixValue), unitPower));
490
+ }
491
+ return res;
492
+ };
493
+
494
+ /**
495
+ * Find a unit from a string
496
+ * @memberof Unit
497
+ * @param {string} str A string like 'cm' or 'inch'
498
+ * @returns {Object | null} result When found, an object with fields unit and
499
+ * prefix is returned. Else, null is returned.
500
+ * @private
501
+ */
502
+ var _findUnit = memoize(str => {
503
+ // First, match units names exactly. For example, a user could define 'mm' as 10^-4 m, which is silly, but then we would want 'mm' to match the user-defined unit.
504
+ if (hasOwnProperty(UNITS, str)) {
505
+ var unit = UNITS[str];
506
+ var prefix = unit.prefixes[''];
507
+ return {
508
+ unit,
509
+ prefix
510
+ };
511
+ }
512
+ for (var _name in UNITS) {
513
+ if (hasOwnProperty(UNITS, _name)) {
514
+ if (endsWith(str, _name)) {
515
+ var _unit = UNITS[_name];
516
+ var prefixLen = str.length - _name.length;
517
+ var prefixName = str.substring(0, prefixLen);
518
+ var _prefix = hasOwnProperty(_unit.prefixes, prefixName) ? _unit.prefixes[prefixName] : undefined;
519
+ if (_prefix !== undefined) {
520
+ // store unit, prefix, and value
521
+ return {
522
+ unit: _unit,
523
+ prefix: _prefix
524
+ };
525
+ }
526
+ }
527
+ }
528
+ }
529
+ return null;
530
+ }, {
531
+ hasher: args => args[0],
532
+ limit: 100
533
+ });
534
+
535
+ /**
536
+ * Test if the given expression is a unit.
537
+ * The unit can have a prefix but cannot have a value.
538
+ * @memberof Unit
539
+ * @param {string} name A string to be tested whether it is a value less unit.
540
+ * The unit can have prefix, like "cm"
541
+ * @return {boolean} true if the given string is a unit
542
+ */
543
+ Unit.isValuelessUnit = function (name) {
544
+ return _findUnit(name) !== null;
545
+ };
546
+
547
+ /**
548
+ * check if this unit has given base unit
549
+ * If this unit is a derived unit, this will ALWAYS return false, since by definition base units are not derived.
550
+ * @memberof Unit
551
+ * @param {BASE_UNITS | string | undefined} base
552
+ */
553
+ Unit.prototype.hasBase = function (base) {
554
+ if (typeof base === 'string') {
555
+ base = BASE_UNITS[base];
556
+ }
557
+ if (!base) {
558
+ return false;
559
+ }
560
+
561
+ // All dimensions must be the same
562
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
563
+ if (Math.abs((this.dimensions[i] || 0) - (base.dimensions[i] || 0)) > 1e-12) {
564
+ return false;
565
+ }
566
+ }
567
+ return true;
568
+ };
569
+
570
+ /**
571
+ * Check if this unit has a base or bases equal to another base or bases
572
+ * For derived units, the exponent on each base also must match
573
+ * @memberof Unit
574
+ * @param {Unit} other
575
+ * @return {boolean} true if equal base
576
+ */
577
+ Unit.prototype.equalBase = function (other) {
578
+ // All dimensions must be the same
579
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
580
+ if (Math.abs((this.dimensions[i] || 0) - (other.dimensions[i] || 0)) > 1e-12) {
581
+ return false;
582
+ }
583
+ }
584
+ return true;
585
+ };
586
+
587
+ /**
588
+ * Check if this unit equals another unit
589
+ * @memberof Unit
590
+ * @param {Unit} other
591
+ * @return {boolean} true if both units are equal
592
+ */
593
+ Unit.prototype.equals = function (other) {
594
+ return this.equalBase(other) && equal(this.value, other.value);
595
+ };
596
+
597
+ /**
598
+ * Multiply this unit with another one or with a scalar
599
+ * @memberof Unit
600
+ * @param {Unit} other
601
+ * @return {Unit} product of this unit and the other unit
602
+ */
603
+ Unit.prototype.multiply = function (_other) {
604
+ var res = this.clone();
605
+ var other = isUnit(_other) ? _other : new Unit(_other);
606
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
607
+ // Dimensions arrays may be of different lengths. Default to 0.
608
+ res.dimensions[i] = (this.dimensions[i] || 0) + (other.dimensions[i] || 0);
609
+ }
610
+
611
+ // Append other's units list onto res
612
+ for (var _i = 0; _i < other.units.length; _i++) {
613
+ // Make a shallow copy of every unit
614
+ var inverted = _objectSpread({}, other.units[_i]);
615
+ res.units.push(inverted);
616
+ }
617
+
618
+ // If at least one operand has a value, then the result should also have a value
619
+ if (this.value !== null || other.value !== null) {
620
+ var valThis = this.value === null ? this._normalize(1) : this.value;
621
+ var valOther = other.value === null ? other._normalize(1) : other.value;
622
+ res.value = multiplyScalar(valThis, valOther);
623
+ } else {
624
+ res.value = null;
625
+ }
626
+ if (isUnit(_other)) {
627
+ res.skipAutomaticSimplification = false;
628
+ }
629
+ return getNumericIfUnitless(res);
630
+ };
631
+
632
+ /**
633
+ * Divide a number by this unit
634
+ *
635
+ * @memberof Unit
636
+ * @param {numeric} numerator
637
+ * @param {unit} result of dividing numerator by this unit
638
+ */
639
+ Unit.prototype.divideInto = function (numerator) {
640
+ return new Unit(numerator).divide(this);
641
+ };
642
+
643
+ /**
644
+ * Divide this unit by another one
645
+ * @memberof Unit
646
+ * @param {Unit | numeric} other
647
+ * @return {Unit} result of dividing this unit by the other unit
648
+ */
649
+ Unit.prototype.divide = function (_other) {
650
+ var res = this.clone();
651
+ var other = isUnit(_other) ? _other : new Unit(_other);
652
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
653
+ // Dimensions arrays may be of different lengths. Default to 0.
654
+ res.dimensions[i] = (this.dimensions[i] || 0) - (other.dimensions[i] || 0);
655
+ }
656
+
657
+ // Invert and append other's units list onto res
658
+ for (var _i2 = 0; _i2 < other.units.length; _i2++) {
659
+ // Make a shallow copy of every unit
660
+ var inverted = _objectSpread(_objectSpread({}, other.units[_i2]), {}, {
661
+ power: -other.units[_i2].power
662
+ });
663
+ res.units.push(inverted);
664
+ }
665
+
666
+ // If at least one operand has a value, the result should have a value
667
+ if (this.value !== null || other.value !== null) {
668
+ var valThis = this.value === null ? this._normalize(1) : this.value;
669
+ var valOther = other.value === null ? other._normalize(1) : other.value;
670
+ res.value = divideScalar(valThis, valOther);
671
+ } else {
672
+ res.value = null;
673
+ }
674
+ if (isUnit(_other)) {
675
+ res.skipAutomaticSimplification = false;
676
+ }
677
+ return getNumericIfUnitless(res);
678
+ };
679
+
680
+ /**
681
+ * Calculate the power of a unit
682
+ * @memberof Unit
683
+ * @param {number | Fraction | BigNumber} p
684
+ * @returns {Unit} The result: this^p
685
+ */
686
+ Unit.prototype.pow = function (p) {
687
+ var res = this.clone();
688
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
689
+ // Dimensions arrays may be of different lengths. Default to 0.
690
+ res.dimensions[i] = (this.dimensions[i] || 0) * p;
691
+ }
692
+
693
+ // Adjust the power of each unit in the list
694
+ for (var _i3 = 0; _i3 < res.units.length; _i3++) {
695
+ res.units[_i3].power *= p;
696
+ }
697
+ if (res.value !== null) {
698
+ res.value = pow(res.value, p);
699
+
700
+ // only allow numeric output, we don't want to return a Complex number
701
+ // if (!isNumeric(res.value)) {
702
+ // res.value = NaN
703
+ // }
704
+ // Update: Complex supported now
705
+ } else {
706
+ res.value = null;
707
+ }
708
+ res.skipAutomaticSimplification = false;
709
+ return getNumericIfUnitless(res);
710
+ };
711
+
712
+ /**
713
+ * Return the numeric value of this unit if it is dimensionless, has a value, and config.predictable == false; or the original unit otherwise
714
+ * @param {Unit} unit
715
+ * @returns {number | Fraction | BigNumber | Unit} The numeric value of the unit if conditions are met, or the original unit otherwise
716
+ */
717
+ function getNumericIfUnitless(unit) {
718
+ if (unit.equalBase(BASE_UNITS.NONE) && unit.value !== null && !config.predictable) {
719
+ return unit.value;
720
+ } else {
721
+ return unit;
722
+ }
723
+ }
724
+
725
+ /**
726
+ * Calculate the absolute value of a unit
727
+ * @memberof Unit
728
+ * @param {number | Fraction | BigNumber} x
729
+ * @returns {Unit} The result: |x|, absolute value of x
730
+ */
731
+ Unit.prototype.abs = function () {
732
+ var ret = this.clone();
733
+ if (ret.value !== null) {
734
+ if (ret._isDerived() || ret.units[0].unit.offset === 0) {
735
+ ret.value = abs(ret.value);
736
+ } else {
737
+ // To give the correct, but unexpected, results for units with an offset.
738
+ // For example, abs(-283.15 degC) = -263.15 degC !!!
739
+ // We must take the offset into consideration here
740
+ var convert = ret._numberConverter(); // convert to Fraction or BigNumber if needed
741
+ var unitValue = convert(ret.units[0].unit.value);
742
+ var nominalOffset = convert(ret.units[0].unit.offset);
743
+ var unitOffset = multiplyScalar(unitValue, nominalOffset);
744
+ ret.value = subtract(abs(addScalar(ret.value, unitOffset)), unitOffset);
745
+ }
746
+ }
747
+ for (var i in ret.units) {
748
+ if (ret.units[i].unit.name === 'VA' || ret.units[i].unit.name === 'VAR') {
749
+ ret.units[i].unit = UNITS.W;
750
+ }
751
+ }
752
+ return ret;
753
+ };
754
+
755
+ /**
756
+ * Convert the unit to a specific unit name.
757
+ * @memberof Unit
758
+ * @param {string | Unit} valuelessUnit A unit without value. Can have prefix, like "cm"
759
+ * @returns {Unit} Returns a clone of the unit with a fixed prefix and unit.
760
+ */
761
+ Unit.prototype.to = function (valuelessUnit) {
762
+ var value = this.value === null ? this._normalize(1) : this.value;
763
+ var other;
764
+ if (typeof valuelessUnit === 'string') {
765
+ other = Unit.parse(valuelessUnit);
766
+ } else if (isUnit(valuelessUnit)) {
767
+ other = valuelessUnit.clone();
768
+ } else {
769
+ throw new Error('String or Unit expected as parameter');
770
+ }
771
+ if (!this.equalBase(other)) {
772
+ throw new Error("Units do not match ('".concat(other.toString(), "' != '").concat(this.toString(), "')"));
773
+ }
774
+ if (other.value !== null) {
775
+ throw new Error('Cannot convert to a unit with a value');
776
+ }
777
+ if (this.value === null || this._isDerived() || this.units[0].unit.offset === other.units[0].unit.offset) {
778
+ other.value = clone(value);
779
+ } else {
780
+ /* Need to adjust value by difference in offset to convert */
781
+ var convert = Unit._getNumberConverter(typeOf(value)); // convert to Fraction or BigNumber if needed
782
+
783
+ var thisUnitValue = convert(this.units[0].unit.value);
784
+ var thisNominalOffset = convert(this.units[0].unit.offset);
785
+ var thisUnitOffset = multiplyScalar(thisUnitValue, thisNominalOffset);
786
+ var otherUnitValue = convert(other.units[0].unit.value);
787
+ var otherNominalOffset = convert(other.units[0].unit.offset);
788
+ var otherUnitOffset = multiplyScalar(otherUnitValue, otherNominalOffset);
789
+ other.value = subtract(addScalar(value, thisUnitOffset), otherUnitOffset);
790
+ }
791
+ other.fixPrefix = true;
792
+ other.skipAutomaticSimplification = true;
793
+ return other;
794
+ };
795
+
796
+ /**
797
+ * Return the value of the unit when represented with given valueless unit
798
+ * @memberof Unit
799
+ * @param {string | Unit} valuelessUnit For example 'cm' or 'inch'
800
+ * @return {number} Returns the unit value as number.
801
+ */
802
+ // TODO: deprecate Unit.toNumber? It's always better to use toNumeric
803
+ Unit.prototype.toNumber = function (valuelessUnit) {
804
+ return toNumber(this.toNumeric(valuelessUnit));
805
+ };
806
+
807
+ /**
808
+ * Return the value of the unit in the original numeric type
809
+ * @memberof Unit
810
+ * @param {string | Unit} valuelessUnit For example 'cm' or 'inch'
811
+ * @return {number | BigNumber | Fraction} Returns the unit value
812
+ */
813
+ Unit.prototype.toNumeric = function (valuelessUnit) {
814
+ var other;
815
+ if (valuelessUnit) {
816
+ // Allow getting the numeric value without converting to a different unit
817
+ other = this.to(valuelessUnit);
818
+ } else {
819
+ other = this.clone();
820
+ }
821
+ if (other._isDerived() || other.units.length === 0) {
822
+ return other._denormalize(other.value);
823
+ } else {
824
+ return other._denormalize(other.value, other.units[0].prefix.value);
825
+ }
826
+ };
827
+
828
+ /**
829
+ * Get a string representation of the unit.
830
+ * @memberof Unit
831
+ * @return {string}
832
+ */
833
+ Unit.prototype.toString = function () {
834
+ return this.format();
835
+ };
836
+
837
+ /**
838
+ * Get a JSON representation of the unit
839
+ * @memberof Unit
840
+ * @returns {Object} Returns a JSON object structured as:
841
+ * `{"mathjs": "Unit", "value": 2, "unit": "cm", "fixPrefix": false}`
842
+ */
843
+ Unit.prototype.toJSON = function () {
844
+ return {
845
+ mathjs: 'Unit',
846
+ value: this._denormalize(this.value),
847
+ unit: this.formatUnits(),
848
+ fixPrefix: this.fixPrefix
849
+ };
850
+ };
851
+
852
+ /**
853
+ * Instantiate a Unit from a JSON object
854
+ * @memberof Unit
855
+ * @param {Object} json A JSON object structured as:
856
+ * `{"mathjs": "Unit", "value": 2, "unit": "cm", "fixPrefix": false}`
857
+ * @return {Unit}
858
+ */
859
+ Unit.fromJSON = function (json) {
860
+ var unit = new Unit(json.value, json.unit);
861
+ unit.fixPrefix = json.fixPrefix || false;
862
+ return unit;
863
+ };
864
+
865
+ /**
866
+ * Returns the string representation of the unit.
867
+ * @memberof Unit
868
+ * @return {string}
869
+ */
870
+ Unit.prototype.valueOf = Unit.prototype.toString;
871
+
872
+ /**
873
+ * Simplify this Unit's unit list and return a new Unit with the simplified list.
874
+ * The returned Unit will contain a list of the "best" units for formatting.
875
+ */
876
+ Unit.prototype.simplify = function () {
877
+ var ret = this.clone();
878
+ var proposedUnitList = [];
879
+
880
+ // Search for a matching base
881
+ var matchingBase;
882
+ for (var key in currentUnitSystem) {
883
+ if (hasOwnProperty(currentUnitSystem, key)) {
884
+ if (ret.hasBase(BASE_UNITS[key])) {
885
+ matchingBase = key;
886
+ break;
887
+ }
888
+ }
889
+ }
890
+ if (matchingBase === 'NONE') {
891
+ ret.units = [];
892
+ } else {
893
+ var matchingUnit;
894
+ if (matchingBase) {
895
+ // Does the unit system have a matching unit?
896
+ if (hasOwnProperty(currentUnitSystem, matchingBase)) {
897
+ matchingUnit = currentUnitSystem[matchingBase];
898
+ }
899
+ }
900
+ if (matchingUnit) {
901
+ ret.units = [{
902
+ unit: matchingUnit.unit,
903
+ prefix: matchingUnit.prefix,
904
+ power: 1.0
905
+ }];
906
+ } else {
907
+ // Multiple units or units with powers are formatted like this:
908
+ // 5 (kg m^2) / (s^3 mol)
909
+ // Build an representation from the base units of the current unit system
910
+ var missingBaseDim = false;
911
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
912
+ var baseDim = BASE_DIMENSIONS[i];
913
+ if (Math.abs(ret.dimensions[i] || 0) > 1e-12) {
914
+ if (hasOwnProperty(currentUnitSystem, baseDim)) {
915
+ proposedUnitList.push({
916
+ unit: currentUnitSystem[baseDim].unit,
917
+ prefix: currentUnitSystem[baseDim].prefix,
918
+ power: ret.dimensions[i] || 0
919
+ });
920
+ } else {
921
+ missingBaseDim = true;
922
+ }
923
+ }
924
+ }
925
+
926
+ // Is the proposed unit list "simpler" than the existing one?
927
+ if (proposedUnitList.length < ret.units.length && !missingBaseDim) {
928
+ // Replace this unit list with the proposed list
929
+ ret.units = proposedUnitList;
930
+ }
931
+ }
932
+ }
933
+ return ret;
934
+ };
935
+
936
+ /**
937
+ * Returns a new Unit in the SI system with the same value as this one
938
+ */
939
+ Unit.prototype.toSI = function () {
940
+ var ret = this.clone();
941
+ var proposedUnitList = [];
942
+
943
+ // Multiple units or units with powers are formatted like this:
944
+ // 5 (kg m^2) / (s^3 mol)
945
+ // Build an representation from the base units of the SI unit system
946
+ for (var i = 0; i < BASE_DIMENSIONS.length; i++) {
947
+ var baseDim = BASE_DIMENSIONS[i];
948
+ if (Math.abs(ret.dimensions[i] || 0) > 1e-12) {
949
+ if (hasOwnProperty(UNIT_SYSTEMS.si, baseDim)) {
950
+ proposedUnitList.push({
951
+ unit: UNIT_SYSTEMS.si[baseDim].unit,
952
+ prefix: UNIT_SYSTEMS.si[baseDim].prefix,
953
+ power: ret.dimensions[i] || 0
954
+ });
955
+ } else {
956
+ throw new Error('Cannot express custom unit ' + baseDim + ' in SI units');
957
+ }
958
+ }
959
+ }
960
+
961
+ // Replace this unit list with the proposed list
962
+ ret.units = proposedUnitList;
963
+ ret.fixPrefix = true;
964
+ ret.skipAutomaticSimplification = true;
965
+ return ret;
966
+ };
967
+
968
+ /**
969
+ * Get a string representation of the units of this Unit, without the value. The unit list is formatted as-is without first being simplified.
970
+ * @memberof Unit
971
+ * @return {string}
972
+ */
973
+ Unit.prototype.formatUnits = function () {
974
+ var strNum = '';
975
+ var strDen = '';
976
+ var nNum = 0;
977
+ var nDen = 0;
978
+ for (var i = 0; i < this.units.length; i++) {
979
+ if (this.units[i].power > 0) {
980
+ nNum++;
981
+ strNum += ' ' + this.units[i].prefix.name + this.units[i].unit.name;
982
+ if (Math.abs(this.units[i].power - 1.0) > 1e-15) {
983
+ strNum += '^' + this.units[i].power;
984
+ }
985
+ } else if (this.units[i].power < 0) {
986
+ nDen++;
987
+ }
988
+ }
989
+ if (nDen > 0) {
990
+ for (var _i4 = 0; _i4 < this.units.length; _i4++) {
991
+ if (this.units[_i4].power < 0) {
992
+ if (nNum > 0) {
993
+ strDen += ' ' + this.units[_i4].prefix.name + this.units[_i4].unit.name;
994
+ if (Math.abs(this.units[_i4].power + 1.0) > 1e-15) {
995
+ strDen += '^' + -this.units[_i4].power;
996
+ }
997
+ } else {
998
+ strDen += ' ' + this.units[_i4].prefix.name + this.units[_i4].unit.name;
999
+ strDen += '^' + this.units[_i4].power;
1000
+ }
1001
+ }
1002
+ }
1003
+ }
1004
+ // Remove leading " "
1005
+ strNum = strNum.substr(1);
1006
+ strDen = strDen.substr(1);
1007
+
1008
+ // Add parans for better copy/paste back into evaluate, for example, or for better pretty print formatting
1009
+ if (nNum > 1 && nDen > 0) {
1010
+ strNum = '(' + strNum + ')';
1011
+ }
1012
+ if (nDen > 1 && nNum > 0) {
1013
+ strDen = '(' + strDen + ')';
1014
+ }
1015
+ var str = strNum;
1016
+ if (nNum > 0 && nDen > 0) {
1017
+ str += ' / ';
1018
+ }
1019
+ str += strDen;
1020
+ return str;
1021
+ };
1022
+
1023
+ /**
1024
+ * Get a string representation of the Unit, with optional formatting options.
1025
+ * @memberof Unit
1026
+ * @param {Object | number | Function} [options] Formatting options. See
1027
+ * lib/utils/number:format for a
1028
+ * description of the available
1029
+ * options.
1030
+ * @return {string}
1031
+ */
1032
+ Unit.prototype.format = function (options) {
1033
+ // Simplfy the unit list, unless it is valueless or was created directly in the
1034
+ // constructor or as the result of to or toSI
1035
+ var simp = this.skipAutomaticSimplification || this.value === null ? this.clone() : this.simplify();
1036
+
1037
+ // Apply some custom logic for handling VA and VAR. The goal is to express the value of the unit as a real value, if possible. Otherwise, use a real-valued unit instead of a complex-valued one.
1038
+ var isImaginary = false;
1039
+ if (typeof simp.value !== 'undefined' && simp.value !== null && isComplex(simp.value)) {
1040
+ // TODO: Make this better, for example, use relative magnitude of re and im rather than absolute
1041
+ isImaginary = Math.abs(simp.value.re) < 1e-14;
1042
+ }
1043
+ for (var i in simp.units) {
1044
+ if (hasOwnProperty(simp.units, i)) {
1045
+ if (simp.units[i].unit) {
1046
+ if (simp.units[i].unit.name === 'VA' && isImaginary) {
1047
+ simp.units[i].unit = UNITS.VAR;
1048
+ } else if (simp.units[i].unit.name === 'VAR' && !isImaginary) {
1049
+ simp.units[i].unit = UNITS.VA;
1050
+ }
1051
+ }
1052
+ }
1053
+ }
1054
+
1055
+ // Now apply the best prefix
1056
+ // Units must have only one unit and not have the fixPrefix flag set
1057
+ if (simp.units.length === 1 && !simp.fixPrefix) {
1058
+ // Units must have integer powers, otherwise the prefix will change the
1059
+ // outputted value by not-an-integer-power-of-ten
1060
+ if (Math.abs(simp.units[0].power - Math.round(simp.units[0].power)) < 1e-14) {
1061
+ // Apply the best prefix
1062
+ simp.units[0].prefix = simp._bestPrefix();
1063
+ }
1064
+ }
1065
+ var value = simp._denormalize(simp.value);
1066
+ var str = simp.value !== null ? format(value, options || {}) : '';
1067
+ var unitStr = simp.formatUnits();
1068
+ if (simp.value && isComplex(simp.value)) {
1069
+ str = '(' + str + ')'; // Surround complex values with ( ) to enable better parsing
1070
+ }
1071
+
1072
+ if (unitStr.length > 0 && str.length > 0) {
1073
+ str += ' ';
1074
+ }
1075
+ str += unitStr;
1076
+ return str;
1077
+ };
1078
+
1079
+ /**
1080
+ * Calculate the best prefix using current value.
1081
+ * @memberof Unit
1082
+ * @returns {Object} prefix
1083
+ * @private
1084
+ */
1085
+ Unit.prototype._bestPrefix = function () {
1086
+ if (this.units.length !== 1) {
1087
+ throw new Error('Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!');
1088
+ }
1089
+ if (Math.abs(this.units[0].power - Math.round(this.units[0].power)) >= 1e-14) {
1090
+ throw new Error('Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!');
1091
+ }
1092
+
1093
+ // find the best prefix value (resulting in the value of which
1094
+ // the absolute value of the log10 is closest to zero,
1095
+ // though with a little offset of 1.2 for nicer values: you get a
1096
+ // sequence 1mm 100mm 500mm 0.6m 1m 10m 100m 500m 0.6km 1km ...
1097
+
1098
+ // Note: the units value can be any numeric type, but to find the best
1099
+ // prefix it's enough to work with limited precision of a regular number
1100
+ // Update: using mathjs abs since we also allow complex numbers
1101
+ var absValue = this.value !== null ? abs(this.value) : 0;
1102
+ var absUnitValue = abs(this.units[0].unit.value);
1103
+ var bestPrefix = this.units[0].prefix;
1104
+ if (absValue === 0) {
1105
+ return bestPrefix;
1106
+ }
1107
+ var power = this.units[0].power;
1108
+ var bestDiff = Math.log(absValue / Math.pow(bestPrefix.value * absUnitValue, power)) / Math.LN10 - 1.2;
1109
+ if (bestDiff > -2.200001 && bestDiff < 1.800001) return bestPrefix; // Allow the original prefix
1110
+ bestDiff = Math.abs(bestDiff);
1111
+ var prefixes = this.units[0].unit.prefixes;
1112
+ for (var p in prefixes) {
1113
+ if (hasOwnProperty(prefixes, p)) {
1114
+ var prefix = prefixes[p];
1115
+ if (prefix.scientific) {
1116
+ var diff = Math.abs(Math.log(absValue / Math.pow(prefix.value * absUnitValue, power)) / Math.LN10 - 1.2);
1117
+ if (diff < bestDiff || diff === bestDiff && prefix.name.length < bestPrefix.name.length) {
1118
+ // choose the prefix with the smallest diff, or if equal, choose the one
1119
+ // with the shortest name (can happen with SHORTLONG for example)
1120
+ bestPrefix = prefix;
1121
+ bestDiff = diff;
1122
+ }
1123
+ }
1124
+ }
1125
+ }
1126
+ return bestPrefix;
1127
+ };
1128
+
1129
+ /**
1130
+ * Returns an array of units whose sum is equal to this unit
1131
+ * @memberof Unit
1132
+ * @param {Array} [parts] An array of strings or valueless units.
1133
+ *
1134
+ * Example:
1135
+ *
1136
+ * const u = new Unit(1, 'm')
1137
+ * u.splitUnit(['feet', 'inch'])
1138
+ * [ 3 feet, 3.3700787401575 inch ]
1139
+ *
1140
+ * @return {Array} An array of units.
1141
+ */
1142
+ Unit.prototype.splitUnit = function (parts) {
1143
+ var x = this.clone();
1144
+ var ret = [];
1145
+ for (var i = 0; i < parts.length; i++) {
1146
+ // Convert x to the requested unit
1147
+ x = x.to(parts[i]);
1148
+ if (i === parts.length - 1) break;
1149
+
1150
+ // Get the numeric value of this unit
1151
+ var xNumeric = x.toNumeric();
1152
+
1153
+ // Check to see if xNumeric is nearly equal to an integer,
1154
+ // since fix can incorrectly round down if there is round-off error
1155
+ var xRounded = round(xNumeric);
1156
+ var xFixed = void 0;
1157
+ var isNearlyEqual = equal(xRounded, xNumeric);
1158
+ if (isNearlyEqual) {
1159
+ xFixed = xRounded;
1160
+ } else {
1161
+ xFixed = fix(x.toNumeric());
1162
+ }
1163
+ var y = new Unit(xFixed, parts[i].toString());
1164
+ ret.push(y);
1165
+ x = subtract(x, y);
1166
+ }
1167
+
1168
+ // This little bit fixes a bug where the remainder should be 0 but is a little bit off.
1169
+ // But instead of comparing x, the remainder, with zero--we will compare the sum of
1170
+ // all the parts so far with the original value. If they are nearly equal,
1171
+ // we set the remainder to 0.
1172
+ var testSum = 0;
1173
+ for (var _i5 = 0; _i5 < ret.length; _i5++) {
1174
+ testSum = addScalar(testSum, ret[_i5].value);
1175
+ }
1176
+ if (equal(testSum, this.value)) {
1177
+ x.value = 0;
1178
+ }
1179
+ ret.push(x);
1180
+ return ret;
1181
+ };
1182
+ var PREFIXES = {
1183
+ NONE: {
1184
+ '': {
1185
+ name: '',
1186
+ value: 1,
1187
+ scientific: true
1188
+ }
1189
+ },
1190
+ SHORT: {
1191
+ '': {
1192
+ name: '',
1193
+ value: 1,
1194
+ scientific: true
1195
+ },
1196
+ da: {
1197
+ name: 'da',
1198
+ value: 1e1,
1199
+ scientific: false
1200
+ },
1201
+ h: {
1202
+ name: 'h',
1203
+ value: 1e2,
1204
+ scientific: false
1205
+ },
1206
+ k: {
1207
+ name: 'k',
1208
+ value: 1e3,
1209
+ scientific: true
1210
+ },
1211
+ M: {
1212
+ name: 'M',
1213
+ value: 1e6,
1214
+ scientific: true
1215
+ },
1216
+ G: {
1217
+ name: 'G',
1218
+ value: 1e9,
1219
+ scientific: true
1220
+ },
1221
+ T: {
1222
+ name: 'T',
1223
+ value: 1e12,
1224
+ scientific: true
1225
+ },
1226
+ P: {
1227
+ name: 'P',
1228
+ value: 1e15,
1229
+ scientific: true
1230
+ },
1231
+ E: {
1232
+ name: 'E',
1233
+ value: 1e18,
1234
+ scientific: true
1235
+ },
1236
+ Z: {
1237
+ name: 'Z',
1238
+ value: 1e21,
1239
+ scientific: true
1240
+ },
1241
+ Y: {
1242
+ name: 'Y',
1243
+ value: 1e24,
1244
+ scientific: true
1245
+ },
1246
+ d: {
1247
+ name: 'd',
1248
+ value: 1e-1,
1249
+ scientific: false
1250
+ },
1251
+ c: {
1252
+ name: 'c',
1253
+ value: 1e-2,
1254
+ scientific: false
1255
+ },
1256
+ m: {
1257
+ name: 'm',
1258
+ value: 1e-3,
1259
+ scientific: true
1260
+ },
1261
+ u: {
1262
+ name: 'u',
1263
+ value: 1e-6,
1264
+ scientific: true
1265
+ },
1266
+ n: {
1267
+ name: 'n',
1268
+ value: 1e-9,
1269
+ scientific: true
1270
+ },
1271
+ p: {
1272
+ name: 'p',
1273
+ value: 1e-12,
1274
+ scientific: true
1275
+ },
1276
+ f: {
1277
+ name: 'f',
1278
+ value: 1e-15,
1279
+ scientific: true
1280
+ },
1281
+ a: {
1282
+ name: 'a',
1283
+ value: 1e-18,
1284
+ scientific: true
1285
+ },
1286
+ z: {
1287
+ name: 'z',
1288
+ value: 1e-21,
1289
+ scientific: true
1290
+ },
1291
+ y: {
1292
+ name: 'y',
1293
+ value: 1e-24,
1294
+ scientific: true
1295
+ }
1296
+ },
1297
+ LONG: {
1298
+ '': {
1299
+ name: '',
1300
+ value: 1,
1301
+ scientific: true
1302
+ },
1303
+ deca: {
1304
+ name: 'deca',
1305
+ value: 1e1,
1306
+ scientific: false
1307
+ },
1308
+ hecto: {
1309
+ name: 'hecto',
1310
+ value: 1e2,
1311
+ scientific: false
1312
+ },
1313
+ kilo: {
1314
+ name: 'kilo',
1315
+ value: 1e3,
1316
+ scientific: true
1317
+ },
1318
+ mega: {
1319
+ name: 'mega',
1320
+ value: 1e6,
1321
+ scientific: true
1322
+ },
1323
+ giga: {
1324
+ name: 'giga',
1325
+ value: 1e9,
1326
+ scientific: true
1327
+ },
1328
+ tera: {
1329
+ name: 'tera',
1330
+ value: 1e12,
1331
+ scientific: true
1332
+ },
1333
+ peta: {
1334
+ name: 'peta',
1335
+ value: 1e15,
1336
+ scientific: true
1337
+ },
1338
+ exa: {
1339
+ name: 'exa',
1340
+ value: 1e18,
1341
+ scientific: true
1342
+ },
1343
+ zetta: {
1344
+ name: 'zetta',
1345
+ value: 1e21,
1346
+ scientific: true
1347
+ },
1348
+ yotta: {
1349
+ name: 'yotta',
1350
+ value: 1e24,
1351
+ scientific: true
1352
+ },
1353
+ deci: {
1354
+ name: 'deci',
1355
+ value: 1e-1,
1356
+ scientific: false
1357
+ },
1358
+ centi: {
1359
+ name: 'centi',
1360
+ value: 1e-2,
1361
+ scientific: false
1362
+ },
1363
+ milli: {
1364
+ name: 'milli',
1365
+ value: 1e-3,
1366
+ scientific: true
1367
+ },
1368
+ micro: {
1369
+ name: 'micro',
1370
+ value: 1e-6,
1371
+ scientific: true
1372
+ },
1373
+ nano: {
1374
+ name: 'nano',
1375
+ value: 1e-9,
1376
+ scientific: true
1377
+ },
1378
+ pico: {
1379
+ name: 'pico',
1380
+ value: 1e-12,
1381
+ scientific: true
1382
+ },
1383
+ femto: {
1384
+ name: 'femto',
1385
+ value: 1e-15,
1386
+ scientific: true
1387
+ },
1388
+ atto: {
1389
+ name: 'atto',
1390
+ value: 1e-18,
1391
+ scientific: true
1392
+ },
1393
+ zepto: {
1394
+ name: 'zepto',
1395
+ value: 1e-21,
1396
+ scientific: true
1397
+ },
1398
+ yocto: {
1399
+ name: 'yocto',
1400
+ value: 1e-24,
1401
+ scientific: true
1402
+ }
1403
+ },
1404
+ SQUARED: {
1405
+ '': {
1406
+ name: '',
1407
+ value: 1,
1408
+ scientific: true
1409
+ },
1410
+ da: {
1411
+ name: 'da',
1412
+ value: 1e2,
1413
+ scientific: false
1414
+ },
1415
+ h: {
1416
+ name: 'h',
1417
+ value: 1e4,
1418
+ scientific: false
1419
+ },
1420
+ k: {
1421
+ name: 'k',
1422
+ value: 1e6,
1423
+ scientific: true
1424
+ },
1425
+ M: {
1426
+ name: 'M',
1427
+ value: 1e12,
1428
+ scientific: true
1429
+ },
1430
+ G: {
1431
+ name: 'G',
1432
+ value: 1e18,
1433
+ scientific: true
1434
+ },
1435
+ T: {
1436
+ name: 'T',
1437
+ value: 1e24,
1438
+ scientific: true
1439
+ },
1440
+ P: {
1441
+ name: 'P',
1442
+ value: 1e30,
1443
+ scientific: true
1444
+ },
1445
+ E: {
1446
+ name: 'E',
1447
+ value: 1e36,
1448
+ scientific: true
1449
+ },
1450
+ Z: {
1451
+ name: 'Z',
1452
+ value: 1e42,
1453
+ scientific: true
1454
+ },
1455
+ Y: {
1456
+ name: 'Y',
1457
+ value: 1e48,
1458
+ scientific: true
1459
+ },
1460
+ d: {
1461
+ name: 'd',
1462
+ value: 1e-2,
1463
+ scientific: false
1464
+ },
1465
+ c: {
1466
+ name: 'c',
1467
+ value: 1e-4,
1468
+ scientific: false
1469
+ },
1470
+ m: {
1471
+ name: 'm',
1472
+ value: 1e-6,
1473
+ scientific: true
1474
+ },
1475
+ u: {
1476
+ name: 'u',
1477
+ value: 1e-12,
1478
+ scientific: true
1479
+ },
1480
+ n: {
1481
+ name: 'n',
1482
+ value: 1e-18,
1483
+ scientific: true
1484
+ },
1485
+ p: {
1486
+ name: 'p',
1487
+ value: 1e-24,
1488
+ scientific: true
1489
+ },
1490
+ f: {
1491
+ name: 'f',
1492
+ value: 1e-30,
1493
+ scientific: true
1494
+ },
1495
+ a: {
1496
+ name: 'a',
1497
+ value: 1e-36,
1498
+ scientific: true
1499
+ },
1500
+ z: {
1501
+ name: 'z',
1502
+ value: 1e-42,
1503
+ scientific: true
1504
+ },
1505
+ y: {
1506
+ name: 'y',
1507
+ value: 1e-48,
1508
+ scientific: true
1509
+ }
1510
+ },
1511
+ CUBIC: {
1512
+ '': {
1513
+ name: '',
1514
+ value: 1,
1515
+ scientific: true
1516
+ },
1517
+ da: {
1518
+ name: 'da',
1519
+ value: 1e3,
1520
+ scientific: false
1521
+ },
1522
+ h: {
1523
+ name: 'h',
1524
+ value: 1e6,
1525
+ scientific: false
1526
+ },
1527
+ k: {
1528
+ name: 'k',
1529
+ value: 1e9,
1530
+ scientific: true
1531
+ },
1532
+ M: {
1533
+ name: 'M',
1534
+ value: 1e18,
1535
+ scientific: true
1536
+ },
1537
+ G: {
1538
+ name: 'G',
1539
+ value: 1e27,
1540
+ scientific: true
1541
+ },
1542
+ T: {
1543
+ name: 'T',
1544
+ value: 1e36,
1545
+ scientific: true
1546
+ },
1547
+ P: {
1548
+ name: 'P',
1549
+ value: 1e45,
1550
+ scientific: true
1551
+ },
1552
+ E: {
1553
+ name: 'E',
1554
+ value: 1e54,
1555
+ scientific: true
1556
+ },
1557
+ Z: {
1558
+ name: 'Z',
1559
+ value: 1e63,
1560
+ scientific: true
1561
+ },
1562
+ Y: {
1563
+ name: 'Y',
1564
+ value: 1e72,
1565
+ scientific: true
1566
+ },
1567
+ d: {
1568
+ name: 'd',
1569
+ value: 1e-3,
1570
+ scientific: false
1571
+ },
1572
+ c: {
1573
+ name: 'c',
1574
+ value: 1e-6,
1575
+ scientific: false
1576
+ },
1577
+ m: {
1578
+ name: 'm',
1579
+ value: 1e-9,
1580
+ scientific: true
1581
+ },
1582
+ u: {
1583
+ name: 'u',
1584
+ value: 1e-18,
1585
+ scientific: true
1586
+ },
1587
+ n: {
1588
+ name: 'n',
1589
+ value: 1e-27,
1590
+ scientific: true
1591
+ },
1592
+ p: {
1593
+ name: 'p',
1594
+ value: 1e-36,
1595
+ scientific: true
1596
+ },
1597
+ f: {
1598
+ name: 'f',
1599
+ value: 1e-45,
1600
+ scientific: true
1601
+ },
1602
+ a: {
1603
+ name: 'a',
1604
+ value: 1e-54,
1605
+ scientific: true
1606
+ },
1607
+ z: {
1608
+ name: 'z',
1609
+ value: 1e-63,
1610
+ scientific: true
1611
+ },
1612
+ y: {
1613
+ name: 'y',
1614
+ value: 1e-72,
1615
+ scientific: true
1616
+ }
1617
+ },
1618
+ BINARY_SHORT_SI: {
1619
+ '': {
1620
+ name: '',
1621
+ value: 1,
1622
+ scientific: true
1623
+ },
1624
+ k: {
1625
+ name: 'k',
1626
+ value: 1e3,
1627
+ scientific: true
1628
+ },
1629
+ M: {
1630
+ name: 'M',
1631
+ value: 1e6,
1632
+ scientific: true
1633
+ },
1634
+ G: {
1635
+ name: 'G',
1636
+ value: 1e9,
1637
+ scientific: true
1638
+ },
1639
+ T: {
1640
+ name: 'T',
1641
+ value: 1e12,
1642
+ scientific: true
1643
+ },
1644
+ P: {
1645
+ name: 'P',
1646
+ value: 1e15,
1647
+ scientific: true
1648
+ },
1649
+ E: {
1650
+ name: 'E',
1651
+ value: 1e18,
1652
+ scientific: true
1653
+ },
1654
+ Z: {
1655
+ name: 'Z',
1656
+ value: 1e21,
1657
+ scientific: true
1658
+ },
1659
+ Y: {
1660
+ name: 'Y',
1661
+ value: 1e24,
1662
+ scientific: true
1663
+ }
1664
+ },
1665
+ BINARY_SHORT_IEC: {
1666
+ '': {
1667
+ name: '',
1668
+ value: 1,
1669
+ scientific: true
1670
+ },
1671
+ Ki: {
1672
+ name: 'Ki',
1673
+ value: 1024,
1674
+ scientific: true
1675
+ },
1676
+ Mi: {
1677
+ name: 'Mi',
1678
+ value: Math.pow(1024, 2),
1679
+ scientific: true
1680
+ },
1681
+ Gi: {
1682
+ name: 'Gi',
1683
+ value: Math.pow(1024, 3),
1684
+ scientific: true
1685
+ },
1686
+ Ti: {
1687
+ name: 'Ti',
1688
+ value: Math.pow(1024, 4),
1689
+ scientific: true
1690
+ },
1691
+ Pi: {
1692
+ name: 'Pi',
1693
+ value: Math.pow(1024, 5),
1694
+ scientific: true
1695
+ },
1696
+ Ei: {
1697
+ name: 'Ei',
1698
+ value: Math.pow(1024, 6),
1699
+ scientific: true
1700
+ },
1701
+ Zi: {
1702
+ name: 'Zi',
1703
+ value: Math.pow(1024, 7),
1704
+ scientific: true
1705
+ },
1706
+ Yi: {
1707
+ name: 'Yi',
1708
+ value: Math.pow(1024, 8),
1709
+ scientific: true
1710
+ }
1711
+ },
1712
+ BINARY_LONG_SI: {
1713
+ '': {
1714
+ name: '',
1715
+ value: 1,
1716
+ scientific: true
1717
+ },
1718
+ kilo: {
1719
+ name: 'kilo',
1720
+ value: 1e3,
1721
+ scientific: true
1722
+ },
1723
+ mega: {
1724
+ name: 'mega',
1725
+ value: 1e6,
1726
+ scientific: true
1727
+ },
1728
+ giga: {
1729
+ name: 'giga',
1730
+ value: 1e9,
1731
+ scientific: true
1732
+ },
1733
+ tera: {
1734
+ name: 'tera',
1735
+ value: 1e12,
1736
+ scientific: true
1737
+ },
1738
+ peta: {
1739
+ name: 'peta',
1740
+ value: 1e15,
1741
+ scientific: true
1742
+ },
1743
+ exa: {
1744
+ name: 'exa',
1745
+ value: 1e18,
1746
+ scientific: true
1747
+ },
1748
+ zetta: {
1749
+ name: 'zetta',
1750
+ value: 1e21,
1751
+ scientific: true
1752
+ },
1753
+ yotta: {
1754
+ name: 'yotta',
1755
+ value: 1e24,
1756
+ scientific: true
1757
+ }
1758
+ },
1759
+ BINARY_LONG_IEC: {
1760
+ '': {
1761
+ name: '',
1762
+ value: 1,
1763
+ scientific: true
1764
+ },
1765
+ kibi: {
1766
+ name: 'kibi',
1767
+ value: 1024,
1768
+ scientific: true
1769
+ },
1770
+ mebi: {
1771
+ name: 'mebi',
1772
+ value: Math.pow(1024, 2),
1773
+ scientific: true
1774
+ },
1775
+ gibi: {
1776
+ name: 'gibi',
1777
+ value: Math.pow(1024, 3),
1778
+ scientific: true
1779
+ },
1780
+ tebi: {
1781
+ name: 'tebi',
1782
+ value: Math.pow(1024, 4),
1783
+ scientific: true
1784
+ },
1785
+ pebi: {
1786
+ name: 'pebi',
1787
+ value: Math.pow(1024, 5),
1788
+ scientific: true
1789
+ },
1790
+ exi: {
1791
+ name: 'exi',
1792
+ value: Math.pow(1024, 6),
1793
+ scientific: true
1794
+ },
1795
+ zebi: {
1796
+ name: 'zebi',
1797
+ value: Math.pow(1024, 7),
1798
+ scientific: true
1799
+ },
1800
+ yobi: {
1801
+ name: 'yobi',
1802
+ value: Math.pow(1024, 8),
1803
+ scientific: true
1804
+ }
1805
+ },
1806
+ BTU: {
1807
+ '': {
1808
+ name: '',
1809
+ value: 1,
1810
+ scientific: true
1811
+ },
1812
+ MM: {
1813
+ name: 'MM',
1814
+ value: 1e6,
1815
+ scientific: true
1816
+ }
1817
+ }
1818
+ };
1819
+ PREFIXES.SHORTLONG = _extends({}, PREFIXES.SHORT, PREFIXES.LONG);
1820
+ PREFIXES.BINARY_SHORT = _extends({}, PREFIXES.BINARY_SHORT_SI, PREFIXES.BINARY_SHORT_IEC);
1821
+ PREFIXES.BINARY_LONG = _extends({}, PREFIXES.BINARY_LONG_SI, PREFIXES.BINARY_LONG_IEC);
1822
+
1823
+ /* Internally, each unit is represented by a value and a dimension array. The elements of the dimensions array have the following meaning:
1824
+ * Index Dimension
1825
+ * ----- ---------
1826
+ * 0 Length
1827
+ * 1 Mass
1828
+ * 2 Time
1829
+ * 3 Current
1830
+ * 4 Temperature
1831
+ * 5 Luminous intensity
1832
+ * 6 Amount of substance
1833
+ * 7 Angle
1834
+ * 8 Bit (digital)
1835
+ * For example, the unit "298.15 K" is a pure temperature and would have a value of 298.15 and a dimension array of [0, 0, 0, 0, 1, 0, 0, 0, 0]. The unit "1 cal / (gm °C)" can be written in terms of the 9 fundamental dimensions as [length^2] / ([time^2] * [temperature]), and would a value of (after conversion to SI) 4184.0 and a dimensions array of [2, 0, -2, 0, -1, 0, 0, 0, 0].
1836
+ *
1837
+ */
1838
+
1839
+ var BASE_DIMENSIONS = ['MASS', 'LENGTH', 'TIME', 'CURRENT', 'TEMPERATURE', 'LUMINOUS_INTENSITY', 'AMOUNT_OF_SUBSTANCE', 'ANGLE', 'BIT'];
1840
+ var BASE_UNITS = {
1841
+ NONE: {
1842
+ dimensions: [0, 0, 0, 0, 0, 0, 0, 0, 0]
1843
+ },
1844
+ MASS: {
1845
+ dimensions: [1, 0, 0, 0, 0, 0, 0, 0, 0]
1846
+ },
1847
+ LENGTH: {
1848
+ dimensions: [0, 1, 0, 0, 0, 0, 0, 0, 0]
1849
+ },
1850
+ TIME: {
1851
+ dimensions: [0, 0, 1, 0, 0, 0, 0, 0, 0]
1852
+ },
1853
+ CURRENT: {
1854
+ dimensions: [0, 0, 0, 1, 0, 0, 0, 0, 0]
1855
+ },
1856
+ TEMPERATURE: {
1857
+ dimensions: [0, 0, 0, 0, 1, 0, 0, 0, 0]
1858
+ },
1859
+ LUMINOUS_INTENSITY: {
1860
+ dimensions: [0, 0, 0, 0, 0, 1, 0, 0, 0]
1861
+ },
1862
+ AMOUNT_OF_SUBSTANCE: {
1863
+ dimensions: [0, 0, 0, 0, 0, 0, 1, 0, 0]
1864
+ },
1865
+ FORCE: {
1866
+ dimensions: [1, 1, -2, 0, 0, 0, 0, 0, 0]
1867
+ },
1868
+ SURFACE: {
1869
+ dimensions: [0, 2, 0, 0, 0, 0, 0, 0, 0]
1870
+ },
1871
+ VOLUME: {
1872
+ dimensions: [0, 3, 0, 0, 0, 0, 0, 0, 0]
1873
+ },
1874
+ ENERGY: {
1875
+ dimensions: [1, 2, -2, 0, 0, 0, 0, 0, 0]
1876
+ },
1877
+ POWER: {
1878
+ dimensions: [1, 2, -3, 0, 0, 0, 0, 0, 0]
1879
+ },
1880
+ PRESSURE: {
1881
+ dimensions: [1, -1, -2, 0, 0, 0, 0, 0, 0]
1882
+ },
1883
+ ELECTRIC_CHARGE: {
1884
+ dimensions: [0, 0, 1, 1, 0, 0, 0, 0, 0]
1885
+ },
1886
+ ELECTRIC_CAPACITANCE: {
1887
+ dimensions: [-1, -2, 4, 2, 0, 0, 0, 0, 0]
1888
+ },
1889
+ ELECTRIC_POTENTIAL: {
1890
+ dimensions: [1, 2, -3, -1, 0, 0, 0, 0, 0]
1891
+ },
1892
+ ELECTRIC_RESISTANCE: {
1893
+ dimensions: [1, 2, -3, -2, 0, 0, 0, 0, 0]
1894
+ },
1895
+ ELECTRIC_INDUCTANCE: {
1896
+ dimensions: [1, 2, -2, -2, 0, 0, 0, 0, 0]
1897
+ },
1898
+ ELECTRIC_CONDUCTANCE: {
1899
+ dimensions: [-1, -2, 3, 2, 0, 0, 0, 0, 0]
1900
+ },
1901
+ MAGNETIC_FLUX: {
1902
+ dimensions: [1, 2, -2, -1, 0, 0, 0, 0, 0]
1903
+ },
1904
+ MAGNETIC_FLUX_DENSITY: {
1905
+ dimensions: [1, 0, -2, -1, 0, 0, 0, 0, 0]
1906
+ },
1907
+ FREQUENCY: {
1908
+ dimensions: [0, 0, -1, 0, 0, 0, 0, 0, 0]
1909
+ },
1910
+ ANGLE: {
1911
+ dimensions: [0, 0, 0, 0, 0, 0, 0, 1, 0]
1912
+ },
1913
+ BIT: {
1914
+ dimensions: [0, 0, 0, 0, 0, 0, 0, 0, 1]
1915
+ }
1916
+ };
1917
+ for (var key in BASE_UNITS) {
1918
+ if (hasOwnProperty(BASE_UNITS, key)) {
1919
+ BASE_UNITS[key].key = key;
1920
+ }
1921
+ }
1922
+ var BASE_UNIT_NONE = {};
1923
+ var UNIT_NONE = {
1924
+ name: '',
1925
+ base: BASE_UNIT_NONE,
1926
+ value: 1,
1927
+ offset: 0,
1928
+ dimensions: BASE_DIMENSIONS.map(x => 0)
1929
+ };
1930
+ var UNITS = {
1931
+ // length
1932
+ meter: {
1933
+ name: 'meter',
1934
+ base: BASE_UNITS.LENGTH,
1935
+ prefixes: PREFIXES.LONG,
1936
+ value: 1,
1937
+ offset: 0
1938
+ },
1939
+ inch: {
1940
+ name: 'inch',
1941
+ base: BASE_UNITS.LENGTH,
1942
+ prefixes: PREFIXES.NONE,
1943
+ value: 0.0254,
1944
+ offset: 0
1945
+ },
1946
+ foot: {
1947
+ name: 'foot',
1948
+ base: BASE_UNITS.LENGTH,
1949
+ prefixes: PREFIXES.NONE,
1950
+ value: 0.3048,
1951
+ offset: 0
1952
+ },
1953
+ yard: {
1954
+ name: 'yard',
1955
+ base: BASE_UNITS.LENGTH,
1956
+ prefixes: PREFIXES.NONE,
1957
+ value: 0.9144,
1958
+ offset: 0
1959
+ },
1960
+ mile: {
1961
+ name: 'mile',
1962
+ base: BASE_UNITS.LENGTH,
1963
+ prefixes: PREFIXES.NONE,
1964
+ value: 1609.344,
1965
+ offset: 0
1966
+ },
1967
+ link: {
1968
+ name: 'link',
1969
+ base: BASE_UNITS.LENGTH,
1970
+ prefixes: PREFIXES.NONE,
1971
+ value: 0.201168,
1972
+ offset: 0
1973
+ },
1974
+ rod: {
1975
+ name: 'rod',
1976
+ base: BASE_UNITS.LENGTH,
1977
+ prefixes: PREFIXES.NONE,
1978
+ value: 5.0292,
1979
+ offset: 0
1980
+ },
1981
+ chain: {
1982
+ name: 'chain',
1983
+ base: BASE_UNITS.LENGTH,
1984
+ prefixes: PREFIXES.NONE,
1985
+ value: 20.1168,
1986
+ offset: 0
1987
+ },
1988
+ angstrom: {
1989
+ name: 'angstrom',
1990
+ base: BASE_UNITS.LENGTH,
1991
+ prefixes: PREFIXES.NONE,
1992
+ value: 1e-10,
1993
+ offset: 0
1994
+ },
1995
+ m: {
1996
+ name: 'm',
1997
+ base: BASE_UNITS.LENGTH,
1998
+ prefixes: PREFIXES.SHORT,
1999
+ value: 1,
2000
+ offset: 0
2001
+ },
2002
+ in: {
2003
+ name: 'in',
2004
+ base: BASE_UNITS.LENGTH,
2005
+ prefixes: PREFIXES.NONE,
2006
+ value: 0.0254,
2007
+ offset: 0
2008
+ },
2009
+ ft: {
2010
+ name: 'ft',
2011
+ base: BASE_UNITS.LENGTH,
2012
+ prefixes: PREFIXES.NONE,
2013
+ value: 0.3048,
2014
+ offset: 0
2015
+ },
2016
+ yd: {
2017
+ name: 'yd',
2018
+ base: BASE_UNITS.LENGTH,
2019
+ prefixes: PREFIXES.NONE,
2020
+ value: 0.9144,
2021
+ offset: 0
2022
+ },
2023
+ mi: {
2024
+ name: 'mi',
2025
+ base: BASE_UNITS.LENGTH,
2026
+ prefixes: PREFIXES.NONE,
2027
+ value: 1609.344,
2028
+ offset: 0
2029
+ },
2030
+ li: {
2031
+ name: 'li',
2032
+ base: BASE_UNITS.LENGTH,
2033
+ prefixes: PREFIXES.NONE,
2034
+ value: 0.201168,
2035
+ offset: 0
2036
+ },
2037
+ rd: {
2038
+ name: 'rd',
2039
+ base: BASE_UNITS.LENGTH,
2040
+ prefixes: PREFIXES.NONE,
2041
+ value: 5.029210,
2042
+ offset: 0
2043
+ },
2044
+ ch: {
2045
+ name: 'ch',
2046
+ base: BASE_UNITS.LENGTH,
2047
+ prefixes: PREFIXES.NONE,
2048
+ value: 20.1168,
2049
+ offset: 0
2050
+ },
2051
+ mil: {
2052
+ name: 'mil',
2053
+ base: BASE_UNITS.LENGTH,
2054
+ prefixes: PREFIXES.NONE,
2055
+ value: 0.0000254,
2056
+ offset: 0
2057
+ },
2058
+ // 1/1000 inch
2059
+
2060
+ // Surface
2061
+ m2: {
2062
+ name: 'm2',
2063
+ base: BASE_UNITS.SURFACE,
2064
+ prefixes: PREFIXES.SQUARED,
2065
+ value: 1,
2066
+ offset: 0
2067
+ },
2068
+ sqin: {
2069
+ name: 'sqin',
2070
+ base: BASE_UNITS.SURFACE,
2071
+ prefixes: PREFIXES.NONE,
2072
+ value: 0.00064516,
2073
+ offset: 0
2074
+ },
2075
+ // 645.16 mm2
2076
+ sqft: {
2077
+ name: 'sqft',
2078
+ base: BASE_UNITS.SURFACE,
2079
+ prefixes: PREFIXES.NONE,
2080
+ value: 0.09290304,
2081
+ offset: 0
2082
+ },
2083
+ // 0.09290304 m2
2084
+ sqyd: {
2085
+ name: 'sqyd',
2086
+ base: BASE_UNITS.SURFACE,
2087
+ prefixes: PREFIXES.NONE,
2088
+ value: 0.83612736,
2089
+ offset: 0
2090
+ },
2091
+ // 0.83612736 m2
2092
+ sqmi: {
2093
+ name: 'sqmi',
2094
+ base: BASE_UNITS.SURFACE,
2095
+ prefixes: PREFIXES.NONE,
2096
+ value: 2589988.110336,
2097
+ offset: 0
2098
+ },
2099
+ // 2.589988110336 km2
2100
+ sqrd: {
2101
+ name: 'sqrd',
2102
+ base: BASE_UNITS.SURFACE,
2103
+ prefixes: PREFIXES.NONE,
2104
+ value: 25.29295,
2105
+ offset: 0
2106
+ },
2107
+ // 25.29295 m2
2108
+ sqch: {
2109
+ name: 'sqch',
2110
+ base: BASE_UNITS.SURFACE,
2111
+ prefixes: PREFIXES.NONE,
2112
+ value: 404.6873,
2113
+ offset: 0
2114
+ },
2115
+ // 404.6873 m2
2116
+ sqmil: {
2117
+ name: 'sqmil',
2118
+ base: BASE_UNITS.SURFACE,
2119
+ prefixes: PREFIXES.NONE,
2120
+ value: 6.4516e-10,
2121
+ offset: 0
2122
+ },
2123
+ // 6.4516 * 10^-10 m2
2124
+ acre: {
2125
+ name: 'acre',
2126
+ base: BASE_UNITS.SURFACE,
2127
+ prefixes: PREFIXES.NONE,
2128
+ value: 4046.86,
2129
+ offset: 0
2130
+ },
2131
+ // 4046.86 m2
2132
+ hectare: {
2133
+ name: 'hectare',
2134
+ base: BASE_UNITS.SURFACE,
2135
+ prefixes: PREFIXES.NONE,
2136
+ value: 10000,
2137
+ offset: 0
2138
+ },
2139
+ // 10000 m2
2140
+
2141
+ // Volume
2142
+ m3: {
2143
+ name: 'm3',
2144
+ base: BASE_UNITS.VOLUME,
2145
+ prefixes: PREFIXES.CUBIC,
2146
+ value: 1,
2147
+ offset: 0
2148
+ },
2149
+ L: {
2150
+ name: 'L',
2151
+ base: BASE_UNITS.VOLUME,
2152
+ prefixes: PREFIXES.SHORT,
2153
+ value: 0.001,
2154
+ offset: 0
2155
+ },
2156
+ // litre
2157
+ l: {
2158
+ name: 'l',
2159
+ base: BASE_UNITS.VOLUME,
2160
+ prefixes: PREFIXES.SHORT,
2161
+ value: 0.001,
2162
+ offset: 0
2163
+ },
2164
+ // litre
2165
+ litre: {
2166
+ name: 'litre',
2167
+ base: BASE_UNITS.VOLUME,
2168
+ prefixes: PREFIXES.LONG,
2169
+ value: 0.001,
2170
+ offset: 0
2171
+ },
2172
+ cuin: {
2173
+ name: 'cuin',
2174
+ base: BASE_UNITS.VOLUME,
2175
+ prefixes: PREFIXES.NONE,
2176
+ value: 1.6387064e-5,
2177
+ offset: 0
2178
+ },
2179
+ // 1.6387064e-5 m3
2180
+ cuft: {
2181
+ name: 'cuft',
2182
+ base: BASE_UNITS.VOLUME,
2183
+ prefixes: PREFIXES.NONE,
2184
+ value: 0.028316846592,
2185
+ offset: 0
2186
+ },
2187
+ // 28.316 846 592 L
2188
+ cuyd: {
2189
+ name: 'cuyd',
2190
+ base: BASE_UNITS.VOLUME,
2191
+ prefixes: PREFIXES.NONE,
2192
+ value: 0.764554857984,
2193
+ offset: 0
2194
+ },
2195
+ // 764.554 857 984 L
2196
+ teaspoon: {
2197
+ name: 'teaspoon',
2198
+ base: BASE_UNITS.VOLUME,
2199
+ prefixes: PREFIXES.NONE,
2200
+ value: 0.000005,
2201
+ offset: 0
2202
+ },
2203
+ // 5 mL
2204
+ tablespoon: {
2205
+ name: 'tablespoon',
2206
+ base: BASE_UNITS.VOLUME,
2207
+ prefixes: PREFIXES.NONE,
2208
+ value: 0.000015,
2209
+ offset: 0
2210
+ },
2211
+ // 15 mL
2212
+ // {name: 'cup', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.000240, offset: 0}, // 240 mL // not possible, we have already another cup
2213
+ drop: {
2214
+ name: 'drop',
2215
+ base: BASE_UNITS.VOLUME,
2216
+ prefixes: PREFIXES.NONE,
2217
+ value: 5e-8,
2218
+ offset: 0
2219
+ },
2220
+ // 0.05 mL = 5e-8 m3
2221
+ gtt: {
2222
+ name: 'gtt',
2223
+ base: BASE_UNITS.VOLUME,
2224
+ prefixes: PREFIXES.NONE,
2225
+ value: 5e-8,
2226
+ offset: 0
2227
+ },
2228
+ // 0.05 mL = 5e-8 m3
2229
+
2230
+ // Liquid volume
2231
+ minim: {
2232
+ name: 'minim',
2233
+ base: BASE_UNITS.VOLUME,
2234
+ prefixes: PREFIXES.NONE,
2235
+ value: 0.00000006161152,
2236
+ offset: 0
2237
+ },
2238
+ // 0.06161152 mL
2239
+ fluiddram: {
2240
+ name: 'fluiddram',
2241
+ base: BASE_UNITS.VOLUME,
2242
+ prefixes: PREFIXES.NONE,
2243
+ value: 0.0000036966911,
2244
+ offset: 0
2245
+ },
2246
+ // 3.696691 mL
2247
+ fluidounce: {
2248
+ name: 'fluidounce',
2249
+ base: BASE_UNITS.VOLUME,
2250
+ prefixes: PREFIXES.NONE,
2251
+ value: 0.00002957353,
2252
+ offset: 0
2253
+ },
2254
+ // 29.57353 mL
2255
+ gill: {
2256
+ name: 'gill',
2257
+ base: BASE_UNITS.VOLUME,
2258
+ prefixes: PREFIXES.NONE,
2259
+ value: 0.0001182941,
2260
+ offset: 0
2261
+ },
2262
+ // 118.2941 mL
2263
+ cc: {
2264
+ name: 'cc',
2265
+ base: BASE_UNITS.VOLUME,
2266
+ prefixes: PREFIXES.NONE,
2267
+ value: 1e-6,
2268
+ offset: 0
2269
+ },
2270
+ // 1e-6 L
2271
+ cup: {
2272
+ name: 'cup',
2273
+ base: BASE_UNITS.VOLUME,
2274
+ prefixes: PREFIXES.NONE,
2275
+ value: 0.0002365882,
2276
+ offset: 0
2277
+ },
2278
+ // 236.5882 mL
2279
+ pint: {
2280
+ name: 'pint',
2281
+ base: BASE_UNITS.VOLUME,
2282
+ prefixes: PREFIXES.NONE,
2283
+ value: 0.0004731765,
2284
+ offset: 0
2285
+ },
2286
+ // 473.1765 mL
2287
+ quart: {
2288
+ name: 'quart',
2289
+ base: BASE_UNITS.VOLUME,
2290
+ prefixes: PREFIXES.NONE,
2291
+ value: 0.0009463529,
2292
+ offset: 0
2293
+ },
2294
+ // 946.3529 mL
2295
+ gallon: {
2296
+ name: 'gallon',
2297
+ base: BASE_UNITS.VOLUME,
2298
+ prefixes: PREFIXES.NONE,
2299
+ value: 0.003785412,
2300
+ offset: 0
2301
+ },
2302
+ // 3.785412 L
2303
+ beerbarrel: {
2304
+ name: 'beerbarrel',
2305
+ base: BASE_UNITS.VOLUME,
2306
+ prefixes: PREFIXES.NONE,
2307
+ value: 0.1173478,
2308
+ offset: 0
2309
+ },
2310
+ // 117.3478 L
2311
+ oilbarrel: {
2312
+ name: 'oilbarrel',
2313
+ base: BASE_UNITS.VOLUME,
2314
+ prefixes: PREFIXES.NONE,
2315
+ value: 0.1589873,
2316
+ offset: 0
2317
+ },
2318
+ // 158.9873 L
2319
+ hogshead: {
2320
+ name: 'hogshead',
2321
+ base: BASE_UNITS.VOLUME,
2322
+ prefixes: PREFIXES.NONE,
2323
+ value: 0.2384810,
2324
+ offset: 0
2325
+ },
2326
+ // 238.4810 L
2327
+
2328
+ // {name: 'min', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00000006161152, offset: 0}, // 0.06161152 mL // min is already in use as minute
2329
+ fldr: {
2330
+ name: 'fldr',
2331
+ base: BASE_UNITS.VOLUME,
2332
+ prefixes: PREFIXES.NONE,
2333
+ value: 0.0000036966911,
2334
+ offset: 0
2335
+ },
2336
+ // 3.696691 mL
2337
+ floz: {
2338
+ name: 'floz',
2339
+ base: BASE_UNITS.VOLUME,
2340
+ prefixes: PREFIXES.NONE,
2341
+ value: 0.00002957353,
2342
+ offset: 0
2343
+ },
2344
+ // 29.57353 mL
2345
+ gi: {
2346
+ name: 'gi',
2347
+ base: BASE_UNITS.VOLUME,
2348
+ prefixes: PREFIXES.NONE,
2349
+ value: 0.0001182941,
2350
+ offset: 0
2351
+ },
2352
+ // 118.2941 mL
2353
+ cp: {
2354
+ name: 'cp',
2355
+ base: BASE_UNITS.VOLUME,
2356
+ prefixes: PREFIXES.NONE,
2357
+ value: 0.0002365882,
2358
+ offset: 0
2359
+ },
2360
+ // 236.5882 mL
2361
+ pt: {
2362
+ name: 'pt',
2363
+ base: BASE_UNITS.VOLUME,
2364
+ prefixes: PREFIXES.NONE,
2365
+ value: 0.0004731765,
2366
+ offset: 0
2367
+ },
2368
+ // 473.1765 mL
2369
+ qt: {
2370
+ name: 'qt',
2371
+ base: BASE_UNITS.VOLUME,
2372
+ prefixes: PREFIXES.NONE,
2373
+ value: 0.0009463529,
2374
+ offset: 0
2375
+ },
2376
+ // 946.3529 mL
2377
+ gal: {
2378
+ name: 'gal',
2379
+ base: BASE_UNITS.VOLUME,
2380
+ prefixes: PREFIXES.NONE,
2381
+ value: 0.003785412,
2382
+ offset: 0
2383
+ },
2384
+ // 3.785412 L
2385
+ bbl: {
2386
+ name: 'bbl',
2387
+ base: BASE_UNITS.VOLUME,
2388
+ prefixes: PREFIXES.NONE,
2389
+ value: 0.1173478,
2390
+ offset: 0
2391
+ },
2392
+ // 117.3478 L
2393
+ obl: {
2394
+ name: 'obl',
2395
+ base: BASE_UNITS.VOLUME,
2396
+ prefixes: PREFIXES.NONE,
2397
+ value: 0.1589873,
2398
+ offset: 0
2399
+ },
2400
+ // 158.9873 L
2401
+ // {name: 'hogshead', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.2384810, offset: 0}, // 238.4810 L // TODO: hh?
2402
+
2403
+ // Mass
2404
+ g: {
2405
+ name: 'g',
2406
+ base: BASE_UNITS.MASS,
2407
+ prefixes: PREFIXES.SHORT,
2408
+ value: 0.001,
2409
+ offset: 0
2410
+ },
2411
+ gram: {
2412
+ name: 'gram',
2413
+ base: BASE_UNITS.MASS,
2414
+ prefixes: PREFIXES.LONG,
2415
+ value: 0.001,
2416
+ offset: 0
2417
+ },
2418
+ ton: {
2419
+ name: 'ton',
2420
+ base: BASE_UNITS.MASS,
2421
+ prefixes: PREFIXES.SHORT,
2422
+ value: 907.18474,
2423
+ offset: 0
2424
+ },
2425
+ t: {
2426
+ name: 't',
2427
+ base: BASE_UNITS.MASS,
2428
+ prefixes: PREFIXES.SHORT,
2429
+ value: 1000,
2430
+ offset: 0
2431
+ },
2432
+ tonne: {
2433
+ name: 'tonne',
2434
+ base: BASE_UNITS.MASS,
2435
+ prefixes: PREFIXES.LONG,
2436
+ value: 1000,
2437
+ offset: 0
2438
+ },
2439
+ grain: {
2440
+ name: 'grain',
2441
+ base: BASE_UNITS.MASS,
2442
+ prefixes: PREFIXES.NONE,
2443
+ value: 64.79891e-6,
2444
+ offset: 0
2445
+ },
2446
+ dram: {
2447
+ name: 'dram',
2448
+ base: BASE_UNITS.MASS,
2449
+ prefixes: PREFIXES.NONE,
2450
+ value: 1.7718451953125e-3,
2451
+ offset: 0
2452
+ },
2453
+ ounce: {
2454
+ name: 'ounce',
2455
+ base: BASE_UNITS.MASS,
2456
+ prefixes: PREFIXES.NONE,
2457
+ value: 28.349523125e-3,
2458
+ offset: 0
2459
+ },
2460
+ poundmass: {
2461
+ name: 'poundmass',
2462
+ base: BASE_UNITS.MASS,
2463
+ prefixes: PREFIXES.NONE,
2464
+ value: 453.59237e-3,
2465
+ offset: 0
2466
+ },
2467
+ hundredweight: {
2468
+ name: 'hundredweight',
2469
+ base: BASE_UNITS.MASS,
2470
+ prefixes: PREFIXES.NONE,
2471
+ value: 45.359237,
2472
+ offset: 0
2473
+ },
2474
+ stick: {
2475
+ name: 'stick',
2476
+ base: BASE_UNITS.MASS,
2477
+ prefixes: PREFIXES.NONE,
2478
+ value: 115e-3,
2479
+ offset: 0
2480
+ },
2481
+ stone: {
2482
+ name: 'stone',
2483
+ base: BASE_UNITS.MASS,
2484
+ prefixes: PREFIXES.NONE,
2485
+ value: 6.35029318,
2486
+ offset: 0
2487
+ },
2488
+ gr: {
2489
+ name: 'gr',
2490
+ base: BASE_UNITS.MASS,
2491
+ prefixes: PREFIXES.NONE,
2492
+ value: 64.79891e-6,
2493
+ offset: 0
2494
+ },
2495
+ dr: {
2496
+ name: 'dr',
2497
+ base: BASE_UNITS.MASS,
2498
+ prefixes: PREFIXES.NONE,
2499
+ value: 1.7718451953125e-3,
2500
+ offset: 0
2501
+ },
2502
+ oz: {
2503
+ name: 'oz',
2504
+ base: BASE_UNITS.MASS,
2505
+ prefixes: PREFIXES.NONE,
2506
+ value: 28.349523125e-3,
2507
+ offset: 0
2508
+ },
2509
+ lbm: {
2510
+ name: 'lbm',
2511
+ base: BASE_UNITS.MASS,
2512
+ prefixes: PREFIXES.NONE,
2513
+ value: 453.59237e-3,
2514
+ offset: 0
2515
+ },
2516
+ cwt: {
2517
+ name: 'cwt',
2518
+ base: BASE_UNITS.MASS,
2519
+ prefixes: PREFIXES.NONE,
2520
+ value: 45.359237,
2521
+ offset: 0
2522
+ },
2523
+ // Time
2524
+ s: {
2525
+ name: 's',
2526
+ base: BASE_UNITS.TIME,
2527
+ prefixes: PREFIXES.SHORT,
2528
+ value: 1,
2529
+ offset: 0
2530
+ },
2531
+ min: {
2532
+ name: 'min',
2533
+ base: BASE_UNITS.TIME,
2534
+ prefixes: PREFIXES.NONE,
2535
+ value: 60,
2536
+ offset: 0
2537
+ },
2538
+ h: {
2539
+ name: 'h',
2540
+ base: BASE_UNITS.TIME,
2541
+ prefixes: PREFIXES.NONE,
2542
+ value: 3600,
2543
+ offset: 0
2544
+ },
2545
+ second: {
2546
+ name: 'second',
2547
+ base: BASE_UNITS.TIME,
2548
+ prefixes: PREFIXES.LONG,
2549
+ value: 1,
2550
+ offset: 0
2551
+ },
2552
+ sec: {
2553
+ name: 'sec',
2554
+ base: BASE_UNITS.TIME,
2555
+ prefixes: PREFIXES.LONG,
2556
+ value: 1,
2557
+ offset: 0
2558
+ },
2559
+ minute: {
2560
+ name: 'minute',
2561
+ base: BASE_UNITS.TIME,
2562
+ prefixes: PREFIXES.NONE,
2563
+ value: 60,
2564
+ offset: 0
2565
+ },
2566
+ hour: {
2567
+ name: 'hour',
2568
+ base: BASE_UNITS.TIME,
2569
+ prefixes: PREFIXES.NONE,
2570
+ value: 3600,
2571
+ offset: 0
2572
+ },
2573
+ day: {
2574
+ name: 'day',
2575
+ base: BASE_UNITS.TIME,
2576
+ prefixes: PREFIXES.NONE,
2577
+ value: 86400,
2578
+ offset: 0
2579
+ },
2580
+ week: {
2581
+ name: 'week',
2582
+ base: BASE_UNITS.TIME,
2583
+ prefixes: PREFIXES.NONE,
2584
+ value: 7 * 86400,
2585
+ offset: 0
2586
+ },
2587
+ month: {
2588
+ name: 'month',
2589
+ base: BASE_UNITS.TIME,
2590
+ prefixes: PREFIXES.NONE,
2591
+ value: 2629800,
2592
+ // 1/12th of Julian year
2593
+ offset: 0
2594
+ },
2595
+ year: {
2596
+ name: 'year',
2597
+ base: BASE_UNITS.TIME,
2598
+ prefixes: PREFIXES.NONE,
2599
+ value: 31557600,
2600
+ // Julian year
2601
+ offset: 0
2602
+ },
2603
+ decade: {
2604
+ name: 'decade',
2605
+ base: BASE_UNITS.TIME,
2606
+ prefixes: PREFIXES.NONE,
2607
+ value: 315576000,
2608
+ // Julian decade
2609
+ offset: 0
2610
+ },
2611
+ century: {
2612
+ name: 'century',
2613
+ base: BASE_UNITS.TIME,
2614
+ prefixes: PREFIXES.NONE,
2615
+ value: 3155760000,
2616
+ // Julian century
2617
+ offset: 0
2618
+ },
2619
+ millennium: {
2620
+ name: 'millennium',
2621
+ base: BASE_UNITS.TIME,
2622
+ prefixes: PREFIXES.NONE,
2623
+ value: 31557600000,
2624
+ // Julian millennium
2625
+ offset: 0
2626
+ },
2627
+ // Frequency
2628
+ hertz: {
2629
+ name: 'Hertz',
2630
+ base: BASE_UNITS.FREQUENCY,
2631
+ prefixes: PREFIXES.LONG,
2632
+ value: 1,
2633
+ offset: 0,
2634
+ reciprocal: true
2635
+ },
2636
+ Hz: {
2637
+ name: 'Hz',
2638
+ base: BASE_UNITS.FREQUENCY,
2639
+ prefixes: PREFIXES.SHORT,
2640
+ value: 1,
2641
+ offset: 0,
2642
+ reciprocal: true
2643
+ },
2644
+ // Angle
2645
+ rad: {
2646
+ name: 'rad',
2647
+ base: BASE_UNITS.ANGLE,
2648
+ prefixes: PREFIXES.SHORT,
2649
+ value: 1,
2650
+ offset: 0
2651
+ },
2652
+ radian: {
2653
+ name: 'radian',
2654
+ base: BASE_UNITS.ANGLE,
2655
+ prefixes: PREFIXES.LONG,
2656
+ value: 1,
2657
+ offset: 0
2658
+ },
2659
+ // deg = rad / (2*pi) * 360 = rad / 0.017453292519943295769236907684888
2660
+ deg: {
2661
+ name: 'deg',
2662
+ base: BASE_UNITS.ANGLE,
2663
+ prefixes: PREFIXES.SHORT,
2664
+ value: null,
2665
+ // will be filled in by calculateAngleValues()
2666
+ offset: 0
2667
+ },
2668
+ degree: {
2669
+ name: 'degree',
2670
+ base: BASE_UNITS.ANGLE,
2671
+ prefixes: PREFIXES.LONG,
2672
+ value: null,
2673
+ // will be filled in by calculateAngleValues()
2674
+ offset: 0
2675
+ },
2676
+ // grad = rad / (2*pi) * 400 = rad / 0.015707963267948966192313216916399
2677
+ grad: {
2678
+ name: 'grad',
2679
+ base: BASE_UNITS.ANGLE,
2680
+ prefixes: PREFIXES.SHORT,
2681
+ value: null,
2682
+ // will be filled in by calculateAngleValues()
2683
+ offset: 0
2684
+ },
2685
+ gradian: {
2686
+ name: 'gradian',
2687
+ base: BASE_UNITS.ANGLE,
2688
+ prefixes: PREFIXES.LONG,
2689
+ value: null,
2690
+ // will be filled in by calculateAngleValues()
2691
+ offset: 0
2692
+ },
2693
+ // cycle = rad / (2*pi) = rad / 6.2831853071795864769252867665793
2694
+ cycle: {
2695
+ name: 'cycle',
2696
+ base: BASE_UNITS.ANGLE,
2697
+ prefixes: PREFIXES.NONE,
2698
+ value: null,
2699
+ // will be filled in by calculateAngleValues()
2700
+ offset: 0
2701
+ },
2702
+ // arcsec = rad / (3600 * (360 / 2 * pi)) = rad / 0.0000048481368110953599358991410235795
2703
+ arcsec: {
2704
+ name: 'arcsec',
2705
+ base: BASE_UNITS.ANGLE,
2706
+ prefixes: PREFIXES.NONE,
2707
+ value: null,
2708
+ // will be filled in by calculateAngleValues()
2709
+ offset: 0
2710
+ },
2711
+ // arcmin = rad / (60 * (360 / 2 * pi)) = rad / 0.00029088820866572159615394846141477
2712
+ arcmin: {
2713
+ name: 'arcmin',
2714
+ base: BASE_UNITS.ANGLE,
2715
+ prefixes: PREFIXES.NONE,
2716
+ value: null,
2717
+ // will be filled in by calculateAngleValues()
2718
+ offset: 0
2719
+ },
2720
+ // Electric current
2721
+ A: {
2722
+ name: 'A',
2723
+ base: BASE_UNITS.CURRENT,
2724
+ prefixes: PREFIXES.SHORT,
2725
+ value: 1,
2726
+ offset: 0
2727
+ },
2728
+ ampere: {
2729
+ name: 'ampere',
2730
+ base: BASE_UNITS.CURRENT,
2731
+ prefixes: PREFIXES.LONG,
2732
+ value: 1,
2733
+ offset: 0
2734
+ },
2735
+ // Temperature
2736
+ // K(C) = °C + 273.15
2737
+ // K(F) = (°F + 459.67) / 1.8
2738
+ // K(R) = °R / 1.8
2739
+ K: {
2740
+ name: 'K',
2741
+ base: BASE_UNITS.TEMPERATURE,
2742
+ prefixes: PREFIXES.SHORT,
2743
+ value: 1,
2744
+ offset: 0
2745
+ },
2746
+ degC: {
2747
+ name: 'degC',
2748
+ base: BASE_UNITS.TEMPERATURE,
2749
+ prefixes: PREFIXES.SHORT,
2750
+ value: 1,
2751
+ offset: 273.15
2752
+ },
2753
+ degF: {
2754
+ name: 'degF',
2755
+ base: BASE_UNITS.TEMPERATURE,
2756
+ prefixes: PREFIXES.SHORT,
2757
+ value: 1 / 1.8,
2758
+ offset: 459.67
2759
+ },
2760
+ degR: {
2761
+ name: 'degR',
2762
+ base: BASE_UNITS.TEMPERATURE,
2763
+ prefixes: PREFIXES.SHORT,
2764
+ value: 1 / 1.8,
2765
+ offset: 0
2766
+ },
2767
+ kelvin: {
2768
+ name: 'kelvin',
2769
+ base: BASE_UNITS.TEMPERATURE,
2770
+ prefixes: PREFIXES.LONG,
2771
+ value: 1,
2772
+ offset: 0
2773
+ },
2774
+ celsius: {
2775
+ name: 'celsius',
2776
+ base: BASE_UNITS.TEMPERATURE,
2777
+ prefixes: PREFIXES.LONG,
2778
+ value: 1,
2779
+ offset: 273.15
2780
+ },
2781
+ fahrenheit: {
2782
+ name: 'fahrenheit',
2783
+ base: BASE_UNITS.TEMPERATURE,
2784
+ prefixes: PREFIXES.LONG,
2785
+ value: 1 / 1.8,
2786
+ offset: 459.67
2787
+ },
2788
+ rankine: {
2789
+ name: 'rankine',
2790
+ base: BASE_UNITS.TEMPERATURE,
2791
+ prefixes: PREFIXES.LONG,
2792
+ value: 1 / 1.8,
2793
+ offset: 0
2794
+ },
2795
+ // amount of substance
2796
+ mol: {
2797
+ name: 'mol',
2798
+ base: BASE_UNITS.AMOUNT_OF_SUBSTANCE,
2799
+ prefixes: PREFIXES.SHORT,
2800
+ value: 1,
2801
+ offset: 0
2802
+ },
2803
+ mole: {
2804
+ name: 'mole',
2805
+ base: BASE_UNITS.AMOUNT_OF_SUBSTANCE,
2806
+ prefixes: PREFIXES.LONG,
2807
+ value: 1,
2808
+ offset: 0
2809
+ },
2810
+ // luminous intensity
2811
+ cd: {
2812
+ name: 'cd',
2813
+ base: BASE_UNITS.LUMINOUS_INTENSITY,
2814
+ prefixes: PREFIXES.SHORT,
2815
+ value: 1,
2816
+ offset: 0
2817
+ },
2818
+ candela: {
2819
+ name: 'candela',
2820
+ base: BASE_UNITS.LUMINOUS_INTENSITY,
2821
+ prefixes: PREFIXES.LONG,
2822
+ value: 1,
2823
+ offset: 0
2824
+ },
2825
+ // TODO: units STERADIAN
2826
+ // {name: 'sr', base: BASE_UNITS.STERADIAN, prefixes: PREFIXES.NONE, value: 1, offset: 0},
2827
+ // {name: 'steradian', base: BASE_UNITS.STERADIAN, prefixes: PREFIXES.NONE, value: 1, offset: 0},
2828
+
2829
+ // Force
2830
+ N: {
2831
+ name: 'N',
2832
+ base: BASE_UNITS.FORCE,
2833
+ prefixes: PREFIXES.SHORT,
2834
+ value: 1,
2835
+ offset: 0
2836
+ },
2837
+ newton: {
2838
+ name: 'newton',
2839
+ base: BASE_UNITS.FORCE,
2840
+ prefixes: PREFIXES.LONG,
2841
+ value: 1,
2842
+ offset: 0
2843
+ },
2844
+ dyn: {
2845
+ name: 'dyn',
2846
+ base: BASE_UNITS.FORCE,
2847
+ prefixes: PREFIXES.SHORT,
2848
+ value: 0.00001,
2849
+ offset: 0
2850
+ },
2851
+ dyne: {
2852
+ name: 'dyne',
2853
+ base: BASE_UNITS.FORCE,
2854
+ prefixes: PREFIXES.LONG,
2855
+ value: 0.00001,
2856
+ offset: 0
2857
+ },
2858
+ lbf: {
2859
+ name: 'lbf',
2860
+ base: BASE_UNITS.FORCE,
2861
+ prefixes: PREFIXES.NONE,
2862
+ value: 4.4482216152605,
2863
+ offset: 0
2864
+ },
2865
+ poundforce: {
2866
+ name: 'poundforce',
2867
+ base: BASE_UNITS.FORCE,
2868
+ prefixes: PREFIXES.NONE,
2869
+ value: 4.4482216152605,
2870
+ offset: 0
2871
+ },
2872
+ kip: {
2873
+ name: 'kip',
2874
+ base: BASE_UNITS.FORCE,
2875
+ prefixes: PREFIXES.LONG,
2876
+ value: 4448.2216,
2877
+ offset: 0
2878
+ },
2879
+ kilogramforce: {
2880
+ name: 'kilogramforce',
2881
+ base: BASE_UNITS.FORCE,
2882
+ prefixes: PREFIXES.NONE,
2883
+ value: 9.80665,
2884
+ offset: 0
2885
+ },
2886
+ // Energy
2887
+ J: {
2888
+ name: 'J',
2889
+ base: BASE_UNITS.ENERGY,
2890
+ prefixes: PREFIXES.SHORT,
2891
+ value: 1,
2892
+ offset: 0
2893
+ },
2894
+ joule: {
2895
+ name: 'joule',
2896
+ base: BASE_UNITS.ENERGY,
2897
+ prefixes: PREFIXES.SHORT,
2898
+ value: 1,
2899
+ offset: 0
2900
+ },
2901
+ erg: {
2902
+ name: 'erg',
2903
+ base: BASE_UNITS.ENERGY,
2904
+ prefixes: PREFIXES.NONE,
2905
+ value: 1e-7,
2906
+ offset: 0
2907
+ },
2908
+ Wh: {
2909
+ name: 'Wh',
2910
+ base: BASE_UNITS.ENERGY,
2911
+ prefixes: PREFIXES.SHORT,
2912
+ value: 3600,
2913
+ offset: 0
2914
+ },
2915
+ BTU: {
2916
+ name: 'BTU',
2917
+ base: BASE_UNITS.ENERGY,
2918
+ prefixes: PREFIXES.BTU,
2919
+ value: 1055.05585262,
2920
+ offset: 0
2921
+ },
2922
+ eV: {
2923
+ name: 'eV',
2924
+ base: BASE_UNITS.ENERGY,
2925
+ prefixes: PREFIXES.SHORT,
2926
+ value: 1.602176565e-19,
2927
+ offset: 0
2928
+ },
2929
+ electronvolt: {
2930
+ name: 'electronvolt',
2931
+ base: BASE_UNITS.ENERGY,
2932
+ prefixes: PREFIXES.LONG,
2933
+ value: 1.602176565e-19,
2934
+ offset: 0
2935
+ },
2936
+ // Power
2937
+ W: {
2938
+ name: 'W',
2939
+ base: BASE_UNITS.POWER,
2940
+ prefixes: PREFIXES.SHORT,
2941
+ value: 1,
2942
+ offset: 0
2943
+ },
2944
+ watt: {
2945
+ name: 'watt',
2946
+ base: BASE_UNITS.POWER,
2947
+ prefixes: PREFIXES.LONG,
2948
+ value: 1,
2949
+ offset: 0
2950
+ },
2951
+ hp: {
2952
+ name: 'hp',
2953
+ base: BASE_UNITS.POWER,
2954
+ prefixes: PREFIXES.NONE,
2955
+ value: 745.6998715386,
2956
+ offset: 0
2957
+ },
2958
+ // Electrical power units
2959
+ VAR: {
2960
+ name: 'VAR',
2961
+ base: BASE_UNITS.POWER,
2962
+ prefixes: PREFIXES.SHORT,
2963
+ value: Complex.I,
2964
+ offset: 0
2965
+ },
2966
+ VA: {
2967
+ name: 'VA',
2968
+ base: BASE_UNITS.POWER,
2969
+ prefixes: PREFIXES.SHORT,
2970
+ value: 1,
2971
+ offset: 0
2972
+ },
2973
+ // Pressure
2974
+ Pa: {
2975
+ name: 'Pa',
2976
+ base: BASE_UNITS.PRESSURE,
2977
+ prefixes: PREFIXES.SHORT,
2978
+ value: 1,
2979
+ offset: 0
2980
+ },
2981
+ psi: {
2982
+ name: 'psi',
2983
+ base: BASE_UNITS.PRESSURE,
2984
+ prefixes: PREFIXES.NONE,
2985
+ value: 6894.75729276459,
2986
+ offset: 0
2987
+ },
2988
+ atm: {
2989
+ name: 'atm',
2990
+ base: BASE_UNITS.PRESSURE,
2991
+ prefixes: PREFIXES.NONE,
2992
+ value: 101325,
2993
+ offset: 0
2994
+ },
2995
+ bar: {
2996
+ name: 'bar',
2997
+ base: BASE_UNITS.PRESSURE,
2998
+ prefixes: PREFIXES.SHORTLONG,
2999
+ value: 100000,
3000
+ offset: 0
3001
+ },
3002
+ torr: {
3003
+ name: 'torr',
3004
+ base: BASE_UNITS.PRESSURE,
3005
+ prefixes: PREFIXES.NONE,
3006
+ value: 133.322,
3007
+ offset: 0
3008
+ },
3009
+ mmHg: {
3010
+ name: 'mmHg',
3011
+ base: BASE_UNITS.PRESSURE,
3012
+ prefixes: PREFIXES.NONE,
3013
+ value: 133.322,
3014
+ offset: 0
3015
+ },
3016
+ mmH2O: {
3017
+ name: 'mmH2O',
3018
+ base: BASE_UNITS.PRESSURE,
3019
+ prefixes: PREFIXES.NONE,
3020
+ value: 9.80665,
3021
+ offset: 0
3022
+ },
3023
+ cmH2O: {
3024
+ name: 'cmH2O',
3025
+ base: BASE_UNITS.PRESSURE,
3026
+ prefixes: PREFIXES.NONE,
3027
+ value: 98.0665,
3028
+ offset: 0
3029
+ },
3030
+ // Electric charge
3031
+ coulomb: {
3032
+ name: 'coulomb',
3033
+ base: BASE_UNITS.ELECTRIC_CHARGE,
3034
+ prefixes: PREFIXES.LONG,
3035
+ value: 1,
3036
+ offset: 0
3037
+ },
3038
+ C: {
3039
+ name: 'C',
3040
+ base: BASE_UNITS.ELECTRIC_CHARGE,
3041
+ prefixes: PREFIXES.SHORT,
3042
+ value: 1,
3043
+ offset: 0
3044
+ },
3045
+ // Electric capacitance
3046
+ farad: {
3047
+ name: 'farad',
3048
+ base: BASE_UNITS.ELECTRIC_CAPACITANCE,
3049
+ prefixes: PREFIXES.LONG,
3050
+ value: 1,
3051
+ offset: 0
3052
+ },
3053
+ F: {
3054
+ name: 'F',
3055
+ base: BASE_UNITS.ELECTRIC_CAPACITANCE,
3056
+ prefixes: PREFIXES.SHORT,
3057
+ value: 1,
3058
+ offset: 0
3059
+ },
3060
+ // Electric potential
3061
+ volt: {
3062
+ name: 'volt',
3063
+ base: BASE_UNITS.ELECTRIC_POTENTIAL,
3064
+ prefixes: PREFIXES.LONG,
3065
+ value: 1,
3066
+ offset: 0
3067
+ },
3068
+ V: {
3069
+ name: 'V',
3070
+ base: BASE_UNITS.ELECTRIC_POTENTIAL,
3071
+ prefixes: PREFIXES.SHORT,
3072
+ value: 1,
3073
+ offset: 0
3074
+ },
3075
+ // Electric resistance
3076
+ ohm: {
3077
+ name: 'ohm',
3078
+ base: BASE_UNITS.ELECTRIC_RESISTANCE,
3079
+ prefixes: PREFIXES.SHORTLONG,
3080
+ // Both Mohm and megaohm are acceptable
3081
+ value: 1,
3082
+ offset: 0
3083
+ },
3084
+ /*
3085
+ * Unicode breaks in browsers if charset is not specified
3086
+ Ω: {
3087
+ name: 'Ω',
3088
+ base: BASE_UNITS.ELECTRIC_RESISTANCE,
3089
+ prefixes: PREFIXES.SHORT,
3090
+ value: 1,
3091
+ offset: 0
3092
+ },
3093
+ */
3094
+ // Electric inductance
3095
+ henry: {
3096
+ name: 'henry',
3097
+ base: BASE_UNITS.ELECTRIC_INDUCTANCE,
3098
+ prefixes: PREFIXES.LONG,
3099
+ value: 1,
3100
+ offset: 0
3101
+ },
3102
+ H: {
3103
+ name: 'H',
3104
+ base: BASE_UNITS.ELECTRIC_INDUCTANCE,
3105
+ prefixes: PREFIXES.SHORT,
3106
+ value: 1,
3107
+ offset: 0
3108
+ },
3109
+ // Electric conductance
3110
+ siemens: {
3111
+ name: 'siemens',
3112
+ base: BASE_UNITS.ELECTRIC_CONDUCTANCE,
3113
+ prefixes: PREFIXES.LONG,
3114
+ value: 1,
3115
+ offset: 0
3116
+ },
3117
+ S: {
3118
+ name: 'S',
3119
+ base: BASE_UNITS.ELECTRIC_CONDUCTANCE,
3120
+ prefixes: PREFIXES.SHORT,
3121
+ value: 1,
3122
+ offset: 0
3123
+ },
3124
+ // Magnetic flux
3125
+ weber: {
3126
+ name: 'weber',
3127
+ base: BASE_UNITS.MAGNETIC_FLUX,
3128
+ prefixes: PREFIXES.LONG,
3129
+ value: 1,
3130
+ offset: 0
3131
+ },
3132
+ Wb: {
3133
+ name: 'Wb',
3134
+ base: BASE_UNITS.MAGNETIC_FLUX,
3135
+ prefixes: PREFIXES.SHORT,
3136
+ value: 1,
3137
+ offset: 0
3138
+ },
3139
+ // Magnetic flux density
3140
+ tesla: {
3141
+ name: 'tesla',
3142
+ base: BASE_UNITS.MAGNETIC_FLUX_DENSITY,
3143
+ prefixes: PREFIXES.LONG,
3144
+ value: 1,
3145
+ offset: 0
3146
+ },
3147
+ T: {
3148
+ name: 'T',
3149
+ base: BASE_UNITS.MAGNETIC_FLUX_DENSITY,
3150
+ prefixes: PREFIXES.SHORT,
3151
+ value: 1,
3152
+ offset: 0
3153
+ },
3154
+ // Binary
3155
+ b: {
3156
+ name: 'b',
3157
+ base: BASE_UNITS.BIT,
3158
+ prefixes: PREFIXES.BINARY_SHORT,
3159
+ value: 1,
3160
+ offset: 0
3161
+ },
3162
+ bits: {
3163
+ name: 'bits',
3164
+ base: BASE_UNITS.BIT,
3165
+ prefixes: PREFIXES.BINARY_LONG,
3166
+ value: 1,
3167
+ offset: 0
3168
+ },
3169
+ B: {
3170
+ name: 'B',
3171
+ base: BASE_UNITS.BIT,
3172
+ prefixes: PREFIXES.BINARY_SHORT,
3173
+ value: 8,
3174
+ offset: 0
3175
+ },
3176
+ bytes: {
3177
+ name: 'bytes',
3178
+ base: BASE_UNITS.BIT,
3179
+ prefixes: PREFIXES.BINARY_LONG,
3180
+ value: 8,
3181
+ offset: 0
3182
+ }
3183
+ };
3184
+
3185
+ // aliases (formerly plurals)
3186
+ var ALIASES = {
3187
+ meters: 'meter',
3188
+ inches: 'inch',
3189
+ feet: 'foot',
3190
+ yards: 'yard',
3191
+ miles: 'mile',
3192
+ links: 'link',
3193
+ rods: 'rod',
3194
+ chains: 'chain',
3195
+ angstroms: 'angstrom',
3196
+ lt: 'l',
3197
+ litres: 'litre',
3198
+ liter: 'litre',
3199
+ liters: 'litre',
3200
+ teaspoons: 'teaspoon',
3201
+ tablespoons: 'tablespoon',
3202
+ minims: 'minim',
3203
+ fluiddrams: 'fluiddram',
3204
+ fluidounces: 'fluidounce',
3205
+ gills: 'gill',
3206
+ cups: 'cup',
3207
+ pints: 'pint',
3208
+ quarts: 'quart',
3209
+ gallons: 'gallon',
3210
+ beerbarrels: 'beerbarrel',
3211
+ oilbarrels: 'oilbarrel',
3212
+ hogsheads: 'hogshead',
3213
+ gtts: 'gtt',
3214
+ grams: 'gram',
3215
+ tons: 'ton',
3216
+ tonnes: 'tonne',
3217
+ grains: 'grain',
3218
+ drams: 'dram',
3219
+ ounces: 'ounce',
3220
+ poundmasses: 'poundmass',
3221
+ hundredweights: 'hundredweight',
3222
+ sticks: 'stick',
3223
+ lb: 'lbm',
3224
+ lbs: 'lbm',
3225
+ kips: 'kip',
3226
+ kgf: 'kilogramforce',
3227
+ acres: 'acre',
3228
+ hectares: 'hectare',
3229
+ sqfeet: 'sqft',
3230
+ sqyard: 'sqyd',
3231
+ sqmile: 'sqmi',
3232
+ sqmiles: 'sqmi',
3233
+ mmhg: 'mmHg',
3234
+ mmh2o: 'mmH2O',
3235
+ cmh2o: 'cmH2O',
3236
+ seconds: 'second',
3237
+ secs: 'second',
3238
+ minutes: 'minute',
3239
+ mins: 'minute',
3240
+ hours: 'hour',
3241
+ hr: 'hour',
3242
+ hrs: 'hour',
3243
+ days: 'day',
3244
+ weeks: 'week',
3245
+ months: 'month',
3246
+ years: 'year',
3247
+ decades: 'decade',
3248
+ centuries: 'century',
3249
+ millennia: 'millennium',
3250
+ hertz: 'hertz',
3251
+ radians: 'radian',
3252
+ degrees: 'degree',
3253
+ gradians: 'gradian',
3254
+ cycles: 'cycle',
3255
+ arcsecond: 'arcsec',
3256
+ arcseconds: 'arcsec',
3257
+ arcminute: 'arcmin',
3258
+ arcminutes: 'arcmin',
3259
+ BTUs: 'BTU',
3260
+ watts: 'watt',
3261
+ joules: 'joule',
3262
+ amperes: 'ampere',
3263
+ amps: 'ampere',
3264
+ amp: 'ampere',
3265
+ coulombs: 'coulomb',
3266
+ volts: 'volt',
3267
+ ohms: 'ohm',
3268
+ farads: 'farad',
3269
+ webers: 'weber',
3270
+ teslas: 'tesla',
3271
+ electronvolts: 'electronvolt',
3272
+ moles: 'mole',
3273
+ bit: 'bits',
3274
+ byte: 'bytes'
3275
+ };
3276
+
3277
+ /**
3278
+ * Calculate the values for the angle units.
3279
+ * Value is calculated as number or BigNumber depending on the configuration
3280
+ * @param {{number: 'number' | 'BigNumber'}} config
3281
+ */
3282
+ function calculateAngleValues(config) {
3283
+ if (config.number === 'BigNumber') {
3284
+ var pi = createPi(_BigNumber);
3285
+ UNITS.rad.value = new _BigNumber(1);
3286
+ UNITS.deg.value = pi.div(180); // 2 * pi / 360
3287
+ UNITS.grad.value = pi.div(200); // 2 * pi / 400
3288
+ UNITS.cycle.value = pi.times(2); // 2 * pi
3289
+ UNITS.arcsec.value = pi.div(648000); // 2 * pi / 360 / 3600
3290
+ UNITS.arcmin.value = pi.div(10800); // 2 * pi / 360 / 60
3291
+ } else {
3292
+ // number
3293
+ UNITS.rad.value = 1;
3294
+ UNITS.deg.value = Math.PI / 180; // 2 * pi / 360
3295
+ UNITS.grad.value = Math.PI / 200; // 2 * pi / 400
3296
+ UNITS.cycle.value = Math.PI * 2; // 2 * pi
3297
+ UNITS.arcsec.value = Math.PI / 648000; // 2 * pi / 360 / 3600
3298
+ UNITS.arcmin.value = Math.PI / 10800; // 2 * pi / 360 / 60
3299
+ }
3300
+
3301
+ // copy to the full names of the angles
3302
+ UNITS.radian.value = UNITS.rad.value;
3303
+ UNITS.degree.value = UNITS.deg.value;
3304
+ UNITS.gradian.value = UNITS.grad.value;
3305
+ }
3306
+
3307
+ // apply the angle values now
3308
+ calculateAngleValues(config);
3309
+ if (on) {
3310
+ // recalculate the values on change of configuration
3311
+ on('config', function (curr, prev) {
3312
+ if (curr.number !== prev.number) {
3313
+ calculateAngleValues(curr);
3314
+ }
3315
+ });
3316
+ }
3317
+
3318
+ /**
3319
+ * A unit system is a set of dimensionally independent base units plus a set of derived units, formed by multiplication and division of the base units, that are by convention used with the unit system.
3320
+ * A user perhaps could issue a command to select a preferred unit system, or use the default (see below).
3321
+ * Auto unit system: The default unit system is updated on the fly anytime a unit is parsed. The corresponding unit in the default unit system is updated, so that answers are given in the same units the user supplies.
3322
+ */
3323
+ var UNIT_SYSTEMS = {
3324
+ si: {
3325
+ // Base units
3326
+ NONE: {
3327
+ unit: UNIT_NONE,
3328
+ prefix: PREFIXES.NONE['']
3329
+ },
3330
+ LENGTH: {
3331
+ unit: UNITS.m,
3332
+ prefix: PREFIXES.SHORT['']
3333
+ },
3334
+ MASS: {
3335
+ unit: UNITS.g,
3336
+ prefix: PREFIXES.SHORT.k
3337
+ },
3338
+ TIME: {
3339
+ unit: UNITS.s,
3340
+ prefix: PREFIXES.SHORT['']
3341
+ },
3342
+ CURRENT: {
3343
+ unit: UNITS.A,
3344
+ prefix: PREFIXES.SHORT['']
3345
+ },
3346
+ TEMPERATURE: {
3347
+ unit: UNITS.K,
3348
+ prefix: PREFIXES.SHORT['']
3349
+ },
3350
+ LUMINOUS_INTENSITY: {
3351
+ unit: UNITS.cd,
3352
+ prefix: PREFIXES.SHORT['']
3353
+ },
3354
+ AMOUNT_OF_SUBSTANCE: {
3355
+ unit: UNITS.mol,
3356
+ prefix: PREFIXES.SHORT['']
3357
+ },
3358
+ ANGLE: {
3359
+ unit: UNITS.rad,
3360
+ prefix: PREFIXES.SHORT['']
3361
+ },
3362
+ BIT: {
3363
+ unit: UNITS.bits,
3364
+ prefix: PREFIXES.SHORT['']
3365
+ },
3366
+ // Derived units
3367
+ FORCE: {
3368
+ unit: UNITS.N,
3369
+ prefix: PREFIXES.SHORT['']
3370
+ },
3371
+ ENERGY: {
3372
+ unit: UNITS.J,
3373
+ prefix: PREFIXES.SHORT['']
3374
+ },
3375
+ POWER: {
3376
+ unit: UNITS.W,
3377
+ prefix: PREFIXES.SHORT['']
3378
+ },
3379
+ PRESSURE: {
3380
+ unit: UNITS.Pa,
3381
+ prefix: PREFIXES.SHORT['']
3382
+ },
3383
+ ELECTRIC_CHARGE: {
3384
+ unit: UNITS.C,
3385
+ prefix: PREFIXES.SHORT['']
3386
+ },
3387
+ ELECTRIC_CAPACITANCE: {
3388
+ unit: UNITS.F,
3389
+ prefix: PREFIXES.SHORT['']
3390
+ },
3391
+ ELECTRIC_POTENTIAL: {
3392
+ unit: UNITS.V,
3393
+ prefix: PREFIXES.SHORT['']
3394
+ },
3395
+ ELECTRIC_RESISTANCE: {
3396
+ unit: UNITS.ohm,
3397
+ prefix: PREFIXES.SHORT['']
3398
+ },
3399
+ ELECTRIC_INDUCTANCE: {
3400
+ unit: UNITS.H,
3401
+ prefix: PREFIXES.SHORT['']
3402
+ },
3403
+ ELECTRIC_CONDUCTANCE: {
3404
+ unit: UNITS.S,
3405
+ prefix: PREFIXES.SHORT['']
3406
+ },
3407
+ MAGNETIC_FLUX: {
3408
+ unit: UNITS.Wb,
3409
+ prefix: PREFIXES.SHORT['']
3410
+ },
3411
+ MAGNETIC_FLUX_DENSITY: {
3412
+ unit: UNITS.T,
3413
+ prefix: PREFIXES.SHORT['']
3414
+ },
3415
+ FREQUENCY: {
3416
+ unit: UNITS.Hz,
3417
+ prefix: PREFIXES.SHORT['']
3418
+ }
3419
+ }
3420
+ };
3421
+
3422
+ // Clone to create the other unit systems
3423
+ UNIT_SYSTEMS.cgs = JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));
3424
+ UNIT_SYSTEMS.cgs.LENGTH = {
3425
+ unit: UNITS.m,
3426
+ prefix: PREFIXES.SHORT.c
3427
+ };
3428
+ UNIT_SYSTEMS.cgs.MASS = {
3429
+ unit: UNITS.g,
3430
+ prefix: PREFIXES.SHORT['']
3431
+ };
3432
+ UNIT_SYSTEMS.cgs.FORCE = {
3433
+ unit: UNITS.dyn,
3434
+ prefix: PREFIXES.SHORT['']
3435
+ };
3436
+ UNIT_SYSTEMS.cgs.ENERGY = {
3437
+ unit: UNITS.erg,
3438
+ prefix: PREFIXES.NONE['']
3439
+ };
3440
+ // there are wholly 4 unique cgs systems for electricity and magnetism,
3441
+ // so let's not worry about it unless somebody complains
3442
+
3443
+ UNIT_SYSTEMS.us = JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));
3444
+ UNIT_SYSTEMS.us.LENGTH = {
3445
+ unit: UNITS.ft,
3446
+ prefix: PREFIXES.NONE['']
3447
+ };
3448
+ UNIT_SYSTEMS.us.MASS = {
3449
+ unit: UNITS.lbm,
3450
+ prefix: PREFIXES.NONE['']
3451
+ };
3452
+ UNIT_SYSTEMS.us.TEMPERATURE = {
3453
+ unit: UNITS.degF,
3454
+ prefix: PREFIXES.NONE['']
3455
+ };
3456
+ UNIT_SYSTEMS.us.FORCE = {
3457
+ unit: UNITS.lbf,
3458
+ prefix: PREFIXES.NONE['']
3459
+ };
3460
+ UNIT_SYSTEMS.us.ENERGY = {
3461
+ unit: UNITS.BTU,
3462
+ prefix: PREFIXES.BTU['']
3463
+ };
3464
+ UNIT_SYSTEMS.us.POWER = {
3465
+ unit: UNITS.hp,
3466
+ prefix: PREFIXES.NONE['']
3467
+ };
3468
+ UNIT_SYSTEMS.us.PRESSURE = {
3469
+ unit: UNITS.psi,
3470
+ prefix: PREFIXES.NONE['']
3471
+ };
3472
+
3473
+ // Add additional unit systems here.
3474
+
3475
+ // Choose a unit system to seed the auto unit system.
3476
+ UNIT_SYSTEMS.auto = JSON.parse(JSON.stringify(UNIT_SYSTEMS.si));
3477
+
3478
+ // Set the current unit system
3479
+ var currentUnitSystem = UNIT_SYSTEMS.auto;
3480
+
3481
+ /**
3482
+ * Set a unit system for formatting derived units.
3483
+ * @param {string} [name] The name of the unit system.
3484
+ */
3485
+ Unit.setUnitSystem = function (name) {
3486
+ if (hasOwnProperty(UNIT_SYSTEMS, name)) {
3487
+ currentUnitSystem = UNIT_SYSTEMS[name];
3488
+ } else {
3489
+ throw new Error('Unit system ' + name + ' does not exist. Choices are: ' + Object.keys(UNIT_SYSTEMS).join(', '));
3490
+ }
3491
+ };
3492
+
3493
+ /**
3494
+ * Return the current unit system.
3495
+ * @return {string} The current unit system.
3496
+ */
3497
+ Unit.getUnitSystem = function () {
3498
+ for (var _key in UNIT_SYSTEMS) {
3499
+ if (hasOwnProperty(UNIT_SYSTEMS, _key)) {
3500
+ if (UNIT_SYSTEMS[_key] === currentUnitSystem) {
3501
+ return _key;
3502
+ }
3503
+ }
3504
+ }
3505
+ };
3506
+
3507
+ /**
3508
+ * Converters to convert from number to an other numeric type like BigNumber
3509
+ * or Fraction
3510
+ */
3511
+ Unit.typeConverters = {
3512
+ BigNumber: function BigNumber(x) {
3513
+ return new _BigNumber(x + ''); // stringify to prevent constructor error
3514
+ },
3515
+
3516
+ Fraction: function Fraction(x) {
3517
+ return new _Fraction(x);
3518
+ },
3519
+ Complex: function Complex(x) {
3520
+ return x;
3521
+ },
3522
+ number: function number(x) {
3523
+ return x;
3524
+ }
3525
+ };
3526
+
3527
+ /**
3528
+ * Retrieve the right converter function corresponding with this unit's
3529
+ * value
3530
+ *
3531
+ * @memberof Unit
3532
+ * @return {Function}
3533
+ */
3534
+ Unit.prototype._numberConverter = function () {
3535
+ var convert = Unit.typeConverters[this.valueType()];
3536
+ if (convert) {
3537
+ return convert;
3538
+ }
3539
+ throw new TypeError('Unsupported Unit value type "' + this.valueType() + '"');
3540
+ };
3541
+
3542
+ /**
3543
+ * Retrieve the right convertor function corresponding with the type
3544
+ * of provided exampleValue.
3545
+ *
3546
+ * @param {string} type A string 'number', 'BigNumber', or 'Fraction'
3547
+ * In case of an unknown type,
3548
+ * @return {Function}
3549
+ */
3550
+ Unit._getNumberConverter = function (type) {
3551
+ if (!Unit.typeConverters[type]) {
3552
+ throw new TypeError('Unsupported type "' + type + '"');
3553
+ }
3554
+ return Unit.typeConverters[type];
3555
+ };
3556
+
3557
+ // Add dimensions to each built-in unit
3558
+ for (var _key2 in UNITS) {
3559
+ if (hasOwnProperty(UNITS, _key2)) {
3560
+ var unit = UNITS[_key2];
3561
+ unit.dimensions = unit.base.dimensions;
3562
+ }
3563
+ }
3564
+
3565
+ // Create aliases
3566
+ for (var _name2 in ALIASES) {
3567
+ if (hasOwnProperty(ALIASES, _name2)) {
3568
+ var _unit2 = UNITS[ALIASES[_name2]];
3569
+ var alias = {};
3570
+ for (var _key3 in _unit2) {
3571
+ if (hasOwnProperty(_unit2, _key3)) {
3572
+ alias[_key3] = _unit2[_key3];
3573
+ }
3574
+ }
3575
+ alias.name = _name2;
3576
+ UNITS[_name2] = alias;
3577
+ }
3578
+ }
3579
+
3580
+ /**
3581
+ * Checks if a character is a valid latin letter (upper or lower case).
3582
+ * Note that this function can be overridden, for example to allow support of other alphabets.
3583
+ * @param {string} c Tested character
3584
+ */
3585
+ Unit.isValidAlpha = function isValidAlpha(c) {
3586
+ return /^[a-zA-Z]$/.test(c);
3587
+ };
3588
+ function assertUnitNameIsValid(name) {
3589
+ for (var i = 0; i < name.length; i++) {
3590
+ c = name.charAt(i);
3591
+ if (i === 0 && !Unit.isValidAlpha(c)) {
3592
+ throw new Error('Invalid unit name (must begin with alpha character): "' + name + '"');
3593
+ }
3594
+ if (i > 0 && !(Unit.isValidAlpha(c) || isDigit(c))) {
3595
+ throw new Error('Invalid unit name (only alphanumeric characters are allowed): "' + name + '"');
3596
+ }
3597
+ }
3598
+ }
3599
+
3600
+ /**
3601
+ * Wrapper around createUnitSingle.
3602
+ * Example:
3603
+ * createUnit({
3604
+ * foo: { },
3605
+ * bar: {
3606
+ * definition: 'kg/foo',
3607
+ * aliases: ['ba', 'barr', 'bars'],
3608
+ * offset: 200
3609
+ * },
3610
+ * baz: '4 bar'
3611
+ * },
3612
+ * {
3613
+ * override: true
3614
+ * })
3615
+ * @param {object} obj Object map. Each key becomes a unit which is defined by its value.
3616
+ * @param {object} options
3617
+ */
3618
+ Unit.createUnit = function (obj, options) {
3619
+ if (typeof obj !== 'object') {
3620
+ throw new TypeError("createUnit expects first parameter to be of type 'Object'");
3621
+ }
3622
+
3623
+ // Remove all units and aliases we are overriding
3624
+ if (options && options.override) {
3625
+ for (var _key4 in obj) {
3626
+ if (hasOwnProperty(obj, _key4)) {
3627
+ Unit.deleteUnit(_key4);
3628
+ }
3629
+ if (obj[_key4].aliases) {
3630
+ for (var i = 0; i < obj[_key4].aliases.length; i++) {
3631
+ Unit.deleteUnit(obj[_key4].aliases[i]);
3632
+ }
3633
+ }
3634
+ }
3635
+ }
3636
+
3637
+ // TODO: traverse multiple times until all units have been added
3638
+ var lastUnit;
3639
+ for (var _key5 in obj) {
3640
+ if (hasOwnProperty(obj, _key5)) {
3641
+ lastUnit = Unit.createUnitSingle(_key5, obj[_key5]);
3642
+ }
3643
+ }
3644
+ return lastUnit;
3645
+ };
3646
+
3647
+ /**
3648
+ * Create a user-defined unit and register it with the Unit type.
3649
+ * Example:
3650
+ * createUnitSingle('knot', '0.514444444 m/s')
3651
+ * createUnitSingle('acre', new Unit(43560, 'ft^2'))
3652
+ *
3653
+ * @param {string} name The name of the new unit. Must be unique. Example: 'knot'
3654
+ * @param {string, Unit, Object} definition Definition of the unit in terms
3655
+ * of existing units. For example, '0.514444444 m / s'. Can be a Unit, a string,
3656
+ * or an Object. If an Object, may have the following properties:
3657
+ * - definition {string|Unit} The definition of this unit.
3658
+ * - prefixes {string} "none", "short", "long", "binary_short", or "binary_long".
3659
+ * The default is "none".
3660
+ * - aliases {Array} Array of strings. Example: ['knots', 'kt', 'kts']
3661
+ * - offset {Numeric} An offset to apply when converting from the unit. For
3662
+ * example, the offset for celsius is 273.15 and the offset for farhenheit
3663
+ * is 459.67. Default is 0.
3664
+ * - baseName {string} If the unit's dimension does not match that of any other
3665
+ * base unit, the name of the newly create base unit. Otherwise, this property
3666
+ * has no effect.
3667
+ *
3668
+ * @return {Unit}
3669
+ */
3670
+ Unit.createUnitSingle = function (name, obj) {
3671
+ if (typeof obj === 'undefined' || obj === null) {
3672
+ obj = {};
3673
+ }
3674
+ if (typeof name !== 'string') {
3675
+ throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");
3676
+ }
3677
+
3678
+ // Check collisions with existing units
3679
+ if (hasOwnProperty(UNITS, name)) {
3680
+ throw new Error('Cannot create unit "' + name + '": a unit with that name already exists');
3681
+ }
3682
+
3683
+ // TODO: Validate name for collisions with other built-in functions (like abs or cos, for example), and for acceptable variable names. For example, '42' is probably not a valid unit. Nor is '%', since it is also an operator.
3684
+
3685
+ assertUnitNameIsValid(name);
3686
+ var defUnit = null; // The Unit from which the new unit will be created.
3687
+ var aliases = [];
3688
+ var offset = 0;
3689
+ var definition;
3690
+ var prefixes;
3691
+ var baseName;
3692
+ if (obj && obj.type === 'Unit') {
3693
+ defUnit = obj.clone();
3694
+ } else if (typeof obj === 'string') {
3695
+ if (obj !== '') {
3696
+ definition = obj;
3697
+ }
3698
+ } else if (typeof obj === 'object') {
3699
+ definition = obj.definition;
3700
+ prefixes = obj.prefixes;
3701
+ offset = obj.offset;
3702
+ baseName = obj.baseName;
3703
+ if (obj.aliases) {
3704
+ aliases = obj.aliases.valueOf(); // aliases could be a Matrix, so convert to Array
3705
+ }
3706
+ } else {
3707
+ throw new TypeError('Cannot create unit "' + name + '" from "' + obj.toString() + '": expecting "string" or "Unit" or "Object"');
3708
+ }
3709
+ if (aliases) {
3710
+ for (var i = 0; i < aliases.length; i++) {
3711
+ if (hasOwnProperty(UNITS, aliases[i])) {
3712
+ throw new Error('Cannot create alias "' + aliases[i] + '": a unit with that name already exists');
3713
+ }
3714
+ }
3715
+ }
3716
+ if (definition && typeof definition === 'string' && !defUnit) {
3717
+ try {
3718
+ defUnit = Unit.parse(definition, {
3719
+ allowNoUnits: true
3720
+ });
3721
+ } catch (ex) {
3722
+ ex.message = 'Could not create unit "' + name + '" from "' + definition + '": ' + ex.message;
3723
+ throw ex;
3724
+ }
3725
+ } else if (definition && definition.type === 'Unit') {
3726
+ defUnit = definition.clone();
3727
+ }
3728
+ aliases = aliases || [];
3729
+ offset = offset || 0;
3730
+ if (prefixes && prefixes.toUpperCase) {
3731
+ prefixes = PREFIXES[prefixes.toUpperCase()] || PREFIXES.NONE;
3732
+ } else {
3733
+ prefixes = PREFIXES.NONE;
3734
+ }
3735
+
3736
+ // If defUnit is null, it is because the user did not
3737
+ // specify a defintion. So create a new base dimension.
3738
+ var newUnit = {};
3739
+ if (!defUnit) {
3740
+ // Add a new base dimension
3741
+ baseName = baseName || name + '_STUFF'; // foo --> foo_STUFF, or the essence of foo
3742
+ if (BASE_DIMENSIONS.indexOf(baseName) >= 0) {
3743
+ throw new Error('Cannot create new base unit "' + name + '": a base unit with that name already exists (and cannot be overridden)');
3744
+ }
3745
+ BASE_DIMENSIONS.push(baseName);
3746
+
3747
+ // Push 0 onto existing base units
3748
+ for (var b in BASE_UNITS) {
3749
+ if (hasOwnProperty(BASE_UNITS, b)) {
3750
+ BASE_UNITS[b].dimensions[BASE_DIMENSIONS.length - 1] = 0;
3751
+ }
3752
+ }
3753
+
3754
+ // Add the new base unit
3755
+ var newBaseUnit = {
3756
+ dimensions: []
3757
+ };
3758
+ for (var _i6 = 0; _i6 < BASE_DIMENSIONS.length; _i6++) {
3759
+ newBaseUnit.dimensions[_i6] = 0;
3760
+ }
3761
+ newBaseUnit.dimensions[BASE_DIMENSIONS.length - 1] = 1;
3762
+ newBaseUnit.key = baseName;
3763
+ BASE_UNITS[baseName] = newBaseUnit;
3764
+ newUnit = {
3765
+ name,
3766
+ value: 1,
3767
+ dimensions: BASE_UNITS[baseName].dimensions.slice(0),
3768
+ prefixes,
3769
+ offset,
3770
+ base: BASE_UNITS[baseName]
3771
+ };
3772
+ currentUnitSystem[baseName] = {
3773
+ unit: newUnit,
3774
+ prefix: PREFIXES.NONE['']
3775
+ };
3776
+ } else {
3777
+ newUnit = {
3778
+ name,
3779
+ value: defUnit.value,
3780
+ dimensions: defUnit.dimensions.slice(0),
3781
+ prefixes,
3782
+ offset
3783
+ };
3784
+
3785
+ // Create a new base if no matching base exists
3786
+ var anyMatch = false;
3787
+ for (var _i7 in BASE_UNITS) {
3788
+ if (hasOwnProperty(BASE_UNITS, _i7)) {
3789
+ var match = true;
3790
+ for (var j = 0; j < BASE_DIMENSIONS.length; j++) {
3791
+ if (Math.abs((newUnit.dimensions[j] || 0) - (BASE_UNITS[_i7].dimensions[j] || 0)) > 1e-12) {
3792
+ match = false;
3793
+ break;
3794
+ }
3795
+ }
3796
+ if (match) {
3797
+ anyMatch = true;
3798
+ newUnit.base = BASE_UNITS[_i7];
3799
+ break;
3800
+ }
3801
+ }
3802
+ }
3803
+ if (!anyMatch) {
3804
+ baseName = baseName || name + '_STUFF'; // foo --> foo_STUFF, or the essence of foo
3805
+ // Add the new base unit
3806
+ var _newBaseUnit = {
3807
+ dimensions: defUnit.dimensions.slice(0)
3808
+ };
3809
+ _newBaseUnit.key = baseName;
3810
+ BASE_UNITS[baseName] = _newBaseUnit;
3811
+ currentUnitSystem[baseName] = {
3812
+ unit: newUnit,
3813
+ prefix: PREFIXES.NONE['']
3814
+ };
3815
+ newUnit.base = BASE_UNITS[baseName];
3816
+ }
3817
+ }
3818
+ Unit.UNITS[name] = newUnit;
3819
+ for (var _i8 = 0; _i8 < aliases.length; _i8++) {
3820
+ var aliasName = aliases[_i8];
3821
+ var _alias = {};
3822
+ for (var _key6 in newUnit) {
3823
+ if (hasOwnProperty(newUnit, _key6)) {
3824
+ _alias[_key6] = newUnit[_key6];
3825
+ }
3826
+ }
3827
+ _alias.name = aliasName;
3828
+ Unit.UNITS[aliasName] = _alias;
3829
+ }
3830
+ // delete the memoization cache, since adding a new unit to the array
3831
+ // invalidates all old results
3832
+ delete _findUnit.cache;
3833
+ return new Unit(null, name);
3834
+ };
3835
+ Unit.deleteUnit = function (name) {
3836
+ delete Unit.UNITS[name];
3837
+ };
3838
+
3839
+ // expose arrays with prefixes, dimensions, units, systems
3840
+ Unit.PREFIXES = PREFIXES;
3841
+ Unit.BASE_DIMENSIONS = BASE_DIMENSIONS;
3842
+ Unit.BASE_UNITS = BASE_UNITS;
3843
+ Unit.UNIT_SYSTEMS = UNIT_SYSTEMS;
3844
+ Unit.UNITS = UNITS;
3845
+ return Unit;
3846
+ }, {
3847
+ isClass: true
3848
+ });