math-exercises 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (500) hide show
  1. package/lib/exercises/exercise.d.ts +2 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/digitDecimalRank.js +4 -4
  4. package/lib/exercises/math/calcul/digitRank.js +4 -4
  5. package/lib/exercises/math/calcul/digitRankNumber.d.ts +8 -0
  6. package/lib/exercises/math/calcul/digitRankNumber.d.ts.map +1 -0
  7. package/lib/exercises/math/calcul/digitRankNumber.js +57 -0
  8. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  9. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +34 -0
  10. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  11. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +17 -0
  12. package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  13. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +23 -0
  14. package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  15. package/lib/exercises/math/calcul/fractions/fractionsProduct.js +15 -0
  16. package/lib/exercises/math/calcul/index.d.ts +1 -0
  17. package/lib/exercises/math/calcul/index.d.ts.map +1 -1
  18. package/lib/exercises/math/calcul/index.js +1 -0
  19. package/lib/exercises/math/calcul/proportionality/index.d.ts +2 -0
  20. package/lib/exercises/math/calcul/proportionality/index.d.ts.map +1 -1
  21. package/lib/exercises/math/calcul/proportionality/index.js +2 -0
  22. package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts +9 -0
  23. package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts.map +1 -0
  24. package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +90 -0
  25. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts +9 -0
  26. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -0
  27. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +95 -0
  28. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  29. package/lib/exercises/math/calcul/rounding/rounding.js +18 -0
  30. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
  31. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +1 -0
  32. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts +7 -0
  33. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -0
  34. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +60 -0
  35. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +31 -1
  37. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts +9 -0
  38. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts.map +1 -0
  39. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +86 -0
  40. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  41. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +21 -2
  42. package/lib/exercises/math/calculLitteral/distributivity/index.d.ts +2 -0
  43. package/lib/exercises/math/calculLitteral/distributivity/index.d.ts.map +1 -1
  44. package/lib/exercises/math/calculLitteral/distributivity/index.js +2 -0
  45. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  46. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +23 -2
  47. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  48. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +17 -2
  49. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  50. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +21 -2
  51. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  52. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +26 -1
  53. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  54. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +18 -2
  55. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  56. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +19 -2
  57. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  58. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +15 -2
  59. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  60. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +20 -5
  61. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  62. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +24 -1
  63. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.d.ts.map +1 -1
  64. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +20 -1
  65. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.d.ts.map +1 -1
  66. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.js +19 -3
  67. package/lib/exercises/math/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  68. package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +24 -8
  69. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  70. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +21 -2
  71. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  72. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +24 -4
  73. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  74. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +25 -5
  75. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  76. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +19 -0
  77. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  78. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +1 -0
  79. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts +8 -0
  80. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -0
  81. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +77 -0
  82. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts +8 -0
  83. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -0
  84. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +80 -0
  85. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +2 -0
  86. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
  87. package/lib/exercises/math/calculLitteral/factorisation/index.js +2 -0
  88. package/lib/exercises/math/conversion/lengthConversion.d.ts.map +1 -1
  89. package/lib/exercises/math/conversion/lengthConversion.js +18 -4
  90. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.d.ts.map +1 -1
  91. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.js +1 -0
  92. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts +10 -0
  93. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -0
  94. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +81 -0
  95. package/lib/exercises/math/functions/affines/index.d.ts +1 -0
  96. package/lib/exercises/math/functions/affines/index.d.ts.map +1 -1
  97. package/lib/exercises/math/functions/affines/index.js +1 -0
  98. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
  99. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +12 -2
  100. package/lib/exercises/math/functions/trinoms/index.d.ts +2 -0
  101. package/lib/exercises/math/functions/trinoms/index.d.ts.map +1 -1
  102. package/lib/exercises/math/functions/trinoms/index.js +2 -0
  103. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.d.ts +5 -0
  104. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.d.ts.map +1 -0
  105. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.js +44 -0
  106. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.d.ts +9 -0
  107. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.d.ts.map +1 -0
  108. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.js +134 -0
  109. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.d.ts +7 -0
  110. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.d.ts.map +1 -0
  111. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.js +59 -0
  112. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  113. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +1 -0
  114. package/lib/exercises/math/index.d.ts +1 -0
  115. package/lib/exercises/math/index.d.ts.map +1 -1
  116. package/lib/exercises/math/index.js +1 -0
  117. package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
  118. package/lib/exercises/math/percent/applyPercent.js +20 -2
  119. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts +11 -0
  120. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -0
  121. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +49 -0
  122. package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -0
  123. package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
  124. package/lib/exercises/math/sequences/arithmetic/index.js +1 -0
  125. package/lib/exercises/math/spaceGeometry/index.d.ts +2 -0
  126. package/lib/exercises/math/spaceGeometry/index.d.ts.map +1 -0
  127. package/lib/exercises/math/spaceGeometry/index.js +17 -0
  128. package/lib/exercises/math/spaceGeometry/vectors/index.d.ts +4 -0
  129. package/lib/exercises/math/spaceGeometry/vectors/index.d.ts.map +1 -0
  130. package/lib/exercises/math/spaceGeometry/vectors/index.js +19 -0
  131. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts +5 -0
  132. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -0
  133. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +52 -0
  134. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.d.ts +5 -0
  135. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.d.ts.map +1 -0
  136. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.js +62 -0
  137. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts +9 -0
  138. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts.map +1 -0
  139. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.js +54 -0
  140. package/lib/exercises/math/squareRoots/squareRootIdentities.js +3 -3
  141. package/lib/exercises/math/suites/sequencePlot.d.ts.map +1 -1
  142. package/lib/exercises/math/suites/sequencePlot.js +1 -2
  143. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts.map +1 -1
  144. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -0
  145. package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
  146. package/lib/exercises/pc/calibrationCurveOfSolution.js +2 -1
  147. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts +1 -1
  148. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -1
  149. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +1 -1
  150. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts +1 -1
  151. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts.map +1 -1
  152. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.js +3 -3
  153. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.d.ts.map +1 -1
  154. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.js +29 -4
  155. package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.d.ts +1 -1
  156. package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.d.ts.map +1 -1
  157. package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.js +6 -6
  158. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts +1 -1
  159. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts.map +1 -1
  160. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +2 -1
  161. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts +1 -1
  162. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts.map +1 -1
  163. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.js +1 -1
  164. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts +1 -1
  165. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts.map +1 -1
  166. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.js +1 -1
  167. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts +1 -1
  168. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -1
  169. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +1 -1
  170. package/lib/exercises/pc/chemicalElements/index.d.ts +1 -0
  171. package/lib/exercises/pc/chemicalElements/index.d.ts.map +1 -1
  172. package/lib/exercises/pc/chemicalElements/index.js +1 -0
  173. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.d.ts +11 -0
  174. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.d.ts.map +1 -0
  175. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +100 -0
  176. package/lib/exercises/pc/chemicalEquations.d.ts +1 -1
  177. package/lib/exercises/pc/chemicalEquations.d.ts.map +1 -1
  178. package/lib/exercises/pc/chemicalEquations.js +1 -1
  179. package/lib/exercises/pc/chemicalReactions/calculateSynthesisEfficiency.d.ts.map +1 -1
  180. package/lib/exercises/pc/chemicalReactions/calculateSynthesisEfficiency.js +1 -0
  181. package/lib/exercises/pc/chemicalReactions/index.d.ts +2 -0
  182. package/lib/exercises/pc/chemicalReactions/index.d.ts.map +1 -1
  183. package/lib/exercises/pc/chemicalReactions/index.js +2 -0
  184. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts +5 -0
  185. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts.map +1 -0
  186. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +69 -0
  187. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.d.ts +11 -0
  188. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.d.ts.map +1 -0
  189. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.js +181 -0
  190. package/lib/exercises/pc/chemicalReactionsProduct.d.ts +1 -1
  191. package/lib/exercises/pc/chemicalReactionsProduct.d.ts.map +1 -1
  192. package/lib/exercises/pc/chemicalReactionsProduct.js +1 -1
  193. package/lib/exercises/pc/dosage/beerLambertRandomValue.d.ts.map +1 -1
  194. package/lib/exercises/pc/dosage/beerLambertRandomValue.js +2 -1
  195. package/lib/exercises/pc/dosage/concentrationCalculation.d.ts +10 -0
  196. package/lib/exercises/pc/dosage/concentrationCalculation.d.ts.map +1 -0
  197. package/lib/exercises/pc/dosage/concentrationCalculation.js +119 -0
  198. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts +10 -0
  199. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts.map +1 -0
  200. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.js +117 -0
  201. package/lib/exercises/pc/dosage/index.d.ts +2 -0
  202. package/lib/exercises/pc/dosage/index.d.ts.map +1 -1
  203. package/lib/exercises/pc/dosage/index.js +2 -0
  204. package/lib/exercises/pc/electricity/calculateIntensity.d.ts +8 -0
  205. package/lib/exercises/pc/electricity/calculateIntensity.d.ts.map +1 -0
  206. package/lib/exercises/pc/electricity/calculateIntensity.js +60 -0
  207. package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.d.ts +10 -0
  208. package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.d.ts.map +1 -0
  209. package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.js +105 -0
  210. package/lib/exercises/pc/electricity/calculateVoltage.d.ts +11 -0
  211. package/lib/exercises/pc/electricity/calculateVoltage.d.ts.map +1 -0
  212. package/lib/exercises/pc/electricity/calculateVoltage.js +144 -0
  213. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.d.ts +9 -0
  214. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.d.ts.map +1 -0
  215. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +81 -0
  216. package/lib/exercises/pc/electricity/index.d.ts +7 -0
  217. package/lib/exercises/pc/electricity/index.d.ts.map +1 -1
  218. package/lib/exercises/pc/electricity/index.js +7 -0
  219. package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.d.ts +10 -0
  220. package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.d.ts.map +1 -0
  221. package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.js +110 -0
  222. package/lib/exercises/pc/electricity/ohmLaw.d.ts +11 -0
  223. package/lib/exercises/pc/electricity/ohmLaw.d.ts.map +1 -0
  224. package/lib/exercises/pc/electricity/ohmLaw.js +123 -0
  225. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts +5 -0
  226. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -0
  227. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +95 -0
  228. package/lib/exercises/pc/energy/calorificValue.d.ts +8 -0
  229. package/lib/exercises/pc/energy/calorificValue.d.ts.map +1 -0
  230. package/lib/exercises/pc/energy/calorificValue.js +78 -0
  231. package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts +8 -0
  232. package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts.map +1 -0
  233. package/lib/exercises/pc/energy/combustionTransferEnergy.js +78 -0
  234. package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts +11 -0
  235. package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts.map +1 -0
  236. package/lib/exercises/pc/energy/combustionTransferEnergy2.js +141 -0
  237. package/lib/exercises/pc/energy/efficencyOfConverter.d.ts +8 -0
  238. package/lib/exercises/pc/energy/efficencyOfConverter.d.ts.map +1 -0
  239. package/lib/exercises/pc/energy/efficencyOfConverter.js +84 -0
  240. package/lib/exercises/pc/energy/efficiencyCalculation.d.ts +10 -0
  241. package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -0
  242. package/lib/exercises/pc/energy/efficiencyCalculation.js +122 -0
  243. package/lib/exercises/pc/energy/energyTransfer.d.ts +10 -0
  244. package/lib/exercises/pc/energy/energyTransfer.d.ts.map +1 -0
  245. package/lib/exercises/pc/energy/energyTransfer.js +67 -0
  246. package/lib/exercises/pc/energy/index.d.ts +9 -0
  247. package/lib/exercises/pc/energy/index.d.ts.map +1 -0
  248. package/lib/exercises/pc/energy/index.js +24 -0
  249. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts +10 -0
  250. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts.map +1 -0
  251. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +168 -0
  252. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts +11 -0
  253. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -0
  254. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +143 -0
  255. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts +8 -0
  256. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -0
  257. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +102 -0
  258. package/lib/exercises/pc/forces/electroStaticForce.d.ts +13 -0
  259. package/lib/exercises/pc/forces/electroStaticForce.d.ts.map +1 -0
  260. package/lib/exercises/pc/forces/electroStaticForce.js +117 -0
  261. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts +9 -0
  262. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts.map +1 -0
  263. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +132 -0
  264. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts +1 -0
  265. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts.map +1 -1
  266. package/lib/exercises/pc/forces/gravitationalAttractionValue.js +31 -27
  267. package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts +10 -0
  268. package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts.map +1 -0
  269. package/lib/exercises/pc/forces/gravitationalForcePlanets.js +118 -0
  270. package/lib/exercises/pc/forces/index.d.ts +5 -0
  271. package/lib/exercises/pc/forces/index.d.ts.map +1 -1
  272. package/lib/exercises/pc/forces/index.js +6 -0
  273. package/lib/exercises/pc/forces/massWeight.d.ts +9 -0
  274. package/lib/exercises/pc/forces/massWeight.d.ts.map +1 -0
  275. package/lib/exercises/pc/forces/massWeight.js +68 -0
  276. package/lib/exercises/pc/forces/pressureDifferenceCalculation.d.ts +1 -0
  277. package/lib/exercises/pc/forces/pressureDifferenceCalculation.d.ts.map +1 -0
  278. package/lib/exercises/pc/forces/pressureDifferenceCalculation.js +106 -0
  279. package/lib/exercises/pc/formulaFromComposition.js +2 -2
  280. package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.d.ts +8 -0
  281. package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.d.ts.map +1 -0
  282. package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.js +72 -0
  283. package/lib/exercises/pc/index.d.ts +6 -0
  284. package/lib/exercises/pc/index.d.ts.map +1 -1
  285. package/lib/exercises/pc/index.js +6 -0
  286. package/lib/exercises/pc/molarQuantity.js +2 -2
  287. package/lib/exercises/pc/mole/index.d.ts +2 -0
  288. package/lib/exercises/pc/mole/index.d.ts.map +1 -1
  289. package/lib/exercises/pc/mole/index.js +2 -0
  290. package/lib/exercises/pc/mole/molarMass.js +1 -1
  291. package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.d.ts +9 -0
  292. package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.d.ts.map +1 -0
  293. package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.js +75 -0
  294. package/lib/exercises/pc/mole/moleculeCountFromMol.d.ts +7 -0
  295. package/lib/exercises/pc/mole/moleculeCountFromMol.d.ts.map +1 -0
  296. package/lib/exercises/pc/mole/moleculeCountFromMol.js +66 -0
  297. package/lib/exercises/pc/moleculeFormula.js +1 -1
  298. package/lib/exercises/pc/moleculeNomenclature.js +1 -1
  299. package/lib/exercises/pc/motion/averageSpeed.d.ts +12 -0
  300. package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -0
  301. package/lib/exercises/pc/motion/averageSpeed.js +122 -0
  302. package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts +10 -0
  303. package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts.map +1 -0
  304. package/lib/exercises/pc/motion/averageSpeedCalculation.js +146 -0
  305. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts +7 -0
  306. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts.map +1 -0
  307. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +86 -0
  308. package/lib/exercises/pc/motion/index.d.ts +7 -0
  309. package/lib/exercises/pc/motion/index.d.ts.map +1 -0
  310. package/lib/exercises/pc/motion/index.js +22 -0
  311. package/lib/exercises/pc/motion/motionReference.d.ts +9 -0
  312. package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -0
  313. package/lib/exercises/pc/motion/motionReference.js +168 -0
  314. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts +5 -0
  315. package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -0
  316. package/lib/exercises/pc/motion/typeOfAcceleration.js +97 -0
  317. package/lib/exercises/pc/motion/typeOfMovement.d.ts +5 -0
  318. package/lib/exercises/pc/motion/typeOfMovement.d.ts.map +1 -0
  319. package/lib/exercises/pc/motion/typeOfMovement.js +111 -0
  320. package/lib/exercises/pc/orderOfMagnitude.d.ts +8 -0
  321. package/lib/exercises/pc/orderOfMagnitude.d.ts.map +1 -0
  322. package/lib/exercises/pc/orderOfMagnitude.js +68 -0
  323. package/lib/exercises/pc/pH.d.ts.map +1 -1
  324. package/lib/exercises/pc/pH.js +1 -0
  325. package/lib/exercises/pc/potentialEnergy.d.ts.map +1 -1
  326. package/lib/exercises/pc/potentialEnergy.js +17 -5
  327. package/lib/exercises/pc/power/calculatePowerOfLight.d.ts +8 -0
  328. package/lib/exercises/pc/power/calculatePowerOfLight.d.ts.map +1 -0
  329. package/lib/exercises/pc/power/calculatePowerOfLight.js +86 -0
  330. package/lib/exercises/pc/power/index.d.ts +2 -0
  331. package/lib/exercises/pc/power/index.d.ts.map +1 -0
  332. package/lib/exercises/pc/power/index.js +17 -0
  333. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts +5 -0
  334. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts.map +1 -0
  335. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +117 -0
  336. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts +9 -0
  337. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts.map +1 -0
  338. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +95 -0
  339. package/lib/exercises/pc/sound/index.d.ts +1 -0
  340. package/lib/exercises/pc/sound/index.d.ts.map +1 -1
  341. package/lib/exercises/pc/sound/index.js +1 -0
  342. package/lib/exercises/pc/spectral/spectralEnergy.d.ts.map +1 -1
  343. package/lib/exercises/pc/spectral/spectralEnergy.js +1 -0
  344. package/lib/exercises/pc/waves/index.d.ts +1 -0
  345. package/lib/exercises/pc/waves/index.d.ts.map +1 -1
  346. package/lib/exercises/pc/waves/index.js +1 -0
  347. package/lib/exercises/pc/waves/lightDistanceConversion.d.ts +10 -0
  348. package/lib/exercises/pc/waves/lightDistanceConversion.d.ts.map +1 -0
  349. package/lib/exercises/pc/waves/lightDistanceConversion.js +161 -0
  350. package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts.map +1 -1
  351. package/lib/exercises/pc/waves/periodicWaveCelerity.js +1 -0
  352. package/lib/exercises/pc/weight/calculateWeight.d.ts +7 -0
  353. package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -0
  354. package/lib/exercises/pc/weight/calculateWeight.js +73 -0
  355. package/lib/exercises/pc/weight/index.d.ts +1 -0
  356. package/lib/exercises/pc/weight/index.d.ts.map +1 -1
  357. package/lib/exercises/pc/weight/index.js +1 -0
  358. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -1
  359. package/lib/exercises/pc/weight/weightOnTheMoon.js +7 -6
  360. package/lib/exercises/utils/getAtoms.d.ts +1 -1
  361. package/lib/exercises/utils/getAtoms.d.ts.map +1 -1
  362. package/lib/exercises/utils/getAtoms.js +1 -1
  363. package/lib/index.d.ts +216 -75
  364. package/lib/index.d.ts.map +1 -1
  365. package/lib/index.js +4 -0
  366. package/lib/math/geometry/spacePoint.d.ts +27 -0
  367. package/lib/math/geometry/spacePoint.d.ts.map +1 -0
  368. package/lib/math/geometry/spacePoint.js +80 -0
  369. package/lib/math/geometry/spaceVector.d.ts +28 -0
  370. package/lib/math/geometry/spaceVector.d.ts.map +1 -0
  371. package/lib/math/geometry/spaceVector.js +83 -0
  372. package/lib/math/numbers/decimals/decimal.d.ts +1 -0
  373. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
  374. package/lib/math/numbers/decimals/decimal.js +8 -0
  375. package/lib/math/numbers/rationals/rational.d.ts +1 -0
  376. package/lib/math/numbers/rationals/rational.d.ts.map +1 -1
  377. package/lib/math/numbers/rationals/rational.js +4 -0
  378. package/lib/math/numbers/reals/extendedRingElement.d.ts +1 -2
  379. package/lib/math/numbers/reals/extendedRingElement.d.ts.map +1 -1
  380. package/lib/math/polynomials/affine.d.ts +4 -0
  381. package/lib/math/polynomials/affine.d.ts.map +1 -1
  382. package/lib/math/polynomials/affine.js +10 -0
  383. package/lib/math/polynomials/trinom.d.ts +2 -1
  384. package/lib/math/polynomials/trinom.d.ts.map +1 -1
  385. package/lib/math/polynomials/trinom.js +3 -0
  386. package/lib/pc/constants/atoms.d.ts +0 -1
  387. package/lib/pc/constants/atoms.d.ts.map +1 -1
  388. package/lib/pc/constants/atoms.js +2 -2
  389. package/lib/pc/constants/coulomb.d.ts +3 -0
  390. package/lib/pc/constants/coulomb.d.ts.map +1 -0
  391. package/lib/pc/constants/coulomb.js +13 -0
  392. package/lib/pc/constants/earth.d.ts +0 -1
  393. package/lib/pc/constants/earth.d.ts.map +1 -1
  394. package/lib/pc/constants/earth.js +4 -4
  395. package/lib/pc/constants/gravity.d.ts +1 -1
  396. package/lib/pc/constants/gravity.d.ts.map +1 -1
  397. package/lib/pc/constants/gravity.js +16 -7
  398. package/lib/pc/constants/mechanics/gravitational.d.ts +14 -0
  399. package/lib/pc/constants/mechanics/gravitational.d.ts.map +1 -0
  400. package/lib/pc/constants/mechanics/gravitational.js +37 -0
  401. package/lib/pc/constants/mechanics/planets.d.ts +15 -0
  402. package/lib/pc/constants/mechanics/planets.d.ts.map +1 -0
  403. package/lib/pc/constants/mechanics/planets.js +35 -0
  404. package/lib/pc/constants/mechanics/waves.d.ts +8 -0
  405. package/lib/pc/constants/mechanics/waves.d.ts.map +1 -0
  406. package/lib/pc/constants/mechanics/waves.js +8 -0
  407. package/lib/pc/constants/molecularChemistry/atomSymbols.d.ts +2 -0
  408. package/lib/pc/constants/molecularChemistry/atomSymbols.d.ts.map +1 -0
  409. package/lib/pc/constants/molecularChemistry/atomSymbols.js +2 -0
  410. package/lib/pc/constants/molecularChemistry/atome.d.ts +18 -0
  411. package/lib/pc/constants/molecularChemistry/atome.d.ts.map +1 -0
  412. package/lib/pc/constants/molecularChemistry/atome.js +174 -0
  413. package/lib/pc/constants/molecularChemistry/atoms.d.ts +9 -0
  414. package/lib/pc/constants/molecularChemistry/atoms.d.ts.map +1 -0
  415. package/lib/pc/constants/molecularChemistry/atoms.js +15 -0
  416. package/lib/pc/constants/molecularChemistry/molecule.d.ts +25 -0
  417. package/lib/pc/constants/molecularChemistry/molecule.d.ts.map +1 -0
  418. package/lib/pc/constants/molecularChemistry/molecule.js +579 -0
  419. package/lib/pc/constants/molecularChemistry/reaction.d.ts +27 -0
  420. package/lib/pc/constants/molecularChemistry/reaction.d.ts.map +1 -0
  421. package/lib/pc/constants/molecularChemistry/reaction.js +471 -0
  422. package/lib/pc/measure/measure.d.ts +16 -6
  423. package/lib/pc/measure/measure.d.ts.map +1 -1
  424. package/lib/pc/measure/measure.js +112 -16
  425. package/lib/pc/units/AmountOfSubstance.d.ts +17 -0
  426. package/lib/pc/units/AmountOfSubstance.d.ts.map +1 -0
  427. package/lib/pc/units/AmountOfSubstance.js +40 -0
  428. package/lib/pc/units/PressionUnit.d.ts +17 -0
  429. package/lib/pc/units/PressionUnit.d.ts.map +1 -0
  430. package/lib/pc/units/PressionUnit.js +32 -0
  431. package/lib/pc/units/distanceUnits.d.ts +16 -0
  432. package/lib/pc/units/distanceUnits.d.ts.map +1 -0
  433. package/lib/pc/units/distanceUnits.js +32 -0
  434. package/lib/pc/units/divideUnit.d.ts +13 -0
  435. package/lib/pc/units/divideUnit.d.ts.map +1 -0
  436. package/lib/pc/units/divideUnit.js +32 -0
  437. package/lib/pc/units/electricalChargeUnit.d.ts +17 -0
  438. package/lib/pc/units/electricalChargeUnit.d.ts.map +1 -0
  439. package/lib/pc/units/electricalChargeUnit.js +40 -0
  440. package/lib/pc/units/electricalResistanceUnit.d.ts +18 -0
  441. package/lib/pc/units/electricalResistanceUnit.d.ts.map +1 -0
  442. package/lib/pc/units/electricalResistanceUnit.js +32 -0
  443. package/lib/pc/units/electricalUnit.d.ts +18 -0
  444. package/lib/pc/units/electricalUnit.d.ts.map +1 -0
  445. package/lib/pc/units/electricalUnit.js +32 -0
  446. package/lib/pc/units/energyUnit.d.ts +16 -0
  447. package/lib/pc/units/energyUnit.d.ts.map +1 -0
  448. package/lib/pc/units/energyUnit.js +32 -0
  449. package/lib/pc/units/forceUnits.d.ts +16 -0
  450. package/lib/pc/units/forceUnits.d.ts.map +1 -0
  451. package/lib/pc/units/forceUnits.js +32 -0
  452. package/lib/pc/units/frequenceUnit.d.ts +17 -0
  453. package/lib/pc/units/frequenceUnit.d.ts.map +1 -0
  454. package/lib/pc/units/frequenceUnit.js +40 -0
  455. package/lib/pc/units/interfaces/baseTenUnit.d.ts +10 -0
  456. package/lib/pc/units/interfaces/baseTenUnit.d.ts.map +1 -0
  457. package/lib/pc/units/interfaces/baseTenUnit.js +16 -0
  458. package/lib/pc/units/interfaces/basicUnit.d.ts +13 -0
  459. package/lib/pc/units/interfaces/basicUnit.d.ts.map +1 -0
  460. package/lib/pc/units/interfaces/basicUnit.js +19 -0
  461. package/lib/pc/units/interfaces/unit.d.ts +13 -0
  462. package/lib/pc/units/interfaces/unit.d.ts.map +1 -0
  463. package/lib/pc/units/interfaces/unit.js +2 -0
  464. package/lib/pc/units/massUnits.d.ts +17 -0
  465. package/lib/pc/units/massUnits.d.ts.map +1 -0
  466. package/lib/pc/units/massUnits.js +32 -0
  467. package/lib/pc/units/mulitplyUnits.d.ts +13 -0
  468. package/lib/pc/units/mulitplyUnits.d.ts.map +1 -0
  469. package/lib/pc/units/mulitplyUnits.js +26 -0
  470. package/lib/pc/units/powerUnits.d.ts +14 -0
  471. package/lib/pc/units/powerUnits.d.ts.map +1 -0
  472. package/lib/pc/units/powerUnits.js +26 -0
  473. package/lib/pc/units/timeUnits.d.ts +13 -0
  474. package/lib/pc/units/timeUnits.d.ts.map +1 -0
  475. package/lib/pc/units/timeUnits.js +42 -0
  476. package/lib/pc/units/volumeUnit.d.ts +17 -0
  477. package/lib/pc/units/volumeUnit.d.ts.map +1 -0
  478. package/lib/pc/units/volumeUnit.js +32 -0
  479. package/lib/pc/units/wattUnit.d.ts +17 -0
  480. package/lib/pc/units/wattUnit.d.ts.map +1 -0
  481. package/lib/pc/units/wattUnit.js +32 -0
  482. package/lib/playground.d.ts +2 -0
  483. package/lib/playground.d.ts.map +1 -0
  484. package/lib/playground.js +19 -0
  485. package/lib/server.d.ts +3 -0
  486. package/lib/server.d.ts.map +1 -1
  487. package/lib/server.js +11 -5
  488. package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -1
  489. package/lib/tree/nodes/equations/equationSolutionNode.js +8 -0
  490. package/lib/tree/nodes/node.d.ts +4 -0
  491. package/lib/tree/nodes/node.d.ts.map +1 -1
  492. package/lib/tree/nodes/operators/addNode.js +2 -2
  493. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  494. package/lib/tree/nodes/operators/multiplyNode.js +40 -12
  495. package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
  496. package/lib/tree/nodes/operators/powerNode.js +12 -0
  497. package/lib/utils/alignTex.d.ts +2 -0
  498. package/lib/utils/alignTex.d.ts.map +1 -0
  499. package/lib/utils/alignTex.js +18 -0
  500. package/package.json +1 -1
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpaceVector = exports.SpaceVectorConstructor = void 0;
4
+ const sqrtNode_1 = require("../../tree/nodes/functions/sqrtNode");
5
+ const addNode_1 = require("../../tree/nodes/operators/addNode");
6
+ const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
7
+ const powerNode_1 = require("../../tree/nodes/operators/powerNode");
8
+ const substractNode_1 = require("../../tree/nodes/operators/substractNode");
9
+ const randint_1 = require("../utils/random/randint");
10
+ const spacePoint_1 = require("./spacePoint");
11
+ class SpaceVectorConstructor {
12
+ static fromPoints(origin, end) {
13
+ return new SpaceVector(`${origin.name}${end.name}`, new substractNode_1.SubstractNode(end.x, origin.x).simplify(), new substractNode_1.SubstractNode(end.y, origin.y).simplify(), new substractNode_1.SubstractNode(end.z, origin.z).simplify());
14
+ }
15
+ static random(name, allowNull = true) {
16
+ let x;
17
+ let y;
18
+ let z;
19
+ do {
20
+ x = (0, randint_1.randint)(-10, 11);
21
+ y = (0, randint_1.randint)(-10, 11);
22
+ z = (0, randint_1.randint)(-10, 11);
23
+ } while (!allowNull && x === 0 && y === 0 && z === 0);
24
+ return new SpaceVector(name, x.toTree(), y.toTree(), z.toTree());
25
+ }
26
+ static randomDifferents(names, allowNull = true) {
27
+ const res = [];
28
+ for (let i = 0; i < names.length; i++) {
29
+ let vec;
30
+ do {
31
+ vec = SpaceVectorConstructor.random(names[i], allowNull);
32
+ } while (res.some((v) => v.equals(vec)));
33
+ res.push(vec);
34
+ }
35
+ return res;
36
+ }
37
+ }
38
+ exports.SpaceVectorConstructor = SpaceVectorConstructor;
39
+ class SpaceVector {
40
+ constructor(name, x, y, z) {
41
+ this.name = name;
42
+ this.tex = `\\overrightarrow{${name}}`;
43
+ this.x = x;
44
+ this.y = y;
45
+ this.z = z;
46
+ }
47
+ toTex() {
48
+ return `\\overrightarrow{${this.name}}`;
49
+ }
50
+ toInlineCoordsTex() {
51
+ return `\\left(${this.x.simplify().toTex()};${this.y
52
+ .simplify()
53
+ .toTex()};${this.z.simplify().toTex()}\\right)`;
54
+ }
55
+ toTexWithCoords() {
56
+ return `\\overrightarrow{${this.name}}\\begin{pmatrix}${this.x.toTex()} \\\\ ${this.y.toTex()} \\\\ ${this.z.toTex()} \\end{pmatrix}`;
57
+ }
58
+ isColinear(v) {
59
+ throw Error("unimplemented");
60
+ }
61
+ determinant(v) {
62
+ throw Error("unimplemented");
63
+ }
64
+ times(k, name) {
65
+ return new SpaceVector(name ?? "v", new multiplyNode_1.MultiplyNode(this.x, k).simplify(), new multiplyNode_1.MultiplyNode(this.y, k).simplify(), new multiplyNode_1.MultiplyNode(this.z, k).simplify());
66
+ }
67
+ scalarProduct(v) {
68
+ throw Error("unimplemented");
69
+ }
70
+ add(v) {
71
+ return new SpaceVector(`${this.name}+${v.name}`, new addNode_1.AddNode(this.x, v.x).simplify(), new addNode_1.AddNode(this.y, v.y).simplify(), new addNode_1.AddNode(this.z, v.z).simplify());
72
+ }
73
+ getNorm() {
74
+ return new sqrtNode_1.SqrtNode(new addNode_1.AddNode(new powerNode_1.SquareNode(this.x), new addNode_1.AddNode(new powerNode_1.SquareNode(this.y), new powerNode_1.SquareNode(this.z)))).simplify();
75
+ }
76
+ getEndPoint(startPoint, name) {
77
+ return new spacePoint_1.SpacePoint(name ?? "B", new addNode_1.AddNode(startPoint.x, this.x).simplify(), new addNode_1.AddNode(startPoint.y, this.y).simplify(), new addNode_1.AddNode(startPoint.z, this.z).simplify());
78
+ }
79
+ equals(v) {
80
+ return this.x.equals(v.x) && this.y.equals(v.y) && this.z.equals(v.z);
81
+ }
82
+ }
83
+ exports.SpaceVector = SpaceVector;
@@ -28,6 +28,7 @@ export declare class Decimal implements Nombre {
28
28
  multiplyByPowerOfTen(power: number): Decimal;
29
29
  toScientificPart(): number;
30
30
  toScientificNotation(decimals?: number): NumberNode | MultiplyNode;
31
+ getDigitAtRank(rank: number): number;
31
32
  toRational(): Rational | import("../integer/integer").Integer;
32
33
  toTree(): NumberNode;
33
34
  toPercentNode(): PercentNode;
@@ -1 +1 @@
1
- {"version":3,"file":"decimal.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/decimals/decimal.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,UAAyC,CAAC;AACxE,8BAAsB,kBAAkB;IACtC,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,MAAU,GAAG,MAAM;IAY1E,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO;IAMpE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO;IAK/D,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO;CAMrD;AAED,qBAAa,OAAQ,YAAW,MAAM;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,aAAsB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;gBACR,KAAK,EAAE,MAAM,GAAG,MAAM;IASlC,MAAM,CAAC,CAAC,EAAE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AM;IASlC,MAAM,CAAC,CAAC,EAAE,MAAM;IAIhB;;;;OAIG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAIhC,oBAAoB,CAAC,KAAK,EAAE,MAAM;IAkClC,gBAAgB;IA6BhB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM;IAwCtC,cAAc,CAAC,IAAI,EAAE,MAAM;IAS3B,UAAU;IAMV,MAAM;IAIN,aAAa;CAGd"}
@@ -154,6 +154,14 @@ class Decimal {
154
154
  return new multiplyNode_1.MultiplyNode(decNode, new numberNode_1.NumberNode(10));
155
155
  return new multiplyNode_1.MultiplyNode(decNode, new powerNode_1.PowerNode(new numberNode_1.NumberNode(10), new numberNode_1.NumberNode(power)));
156
156
  }
157
+ getDigitAtRank(rank) {
158
+ if (rank >= 0) {
159
+ return Number(this.intPart.toString()[this.intPart.toString().length - 1 - rank]);
160
+ }
161
+ else {
162
+ return Number(this.decimalPart[-rank - 1]);
163
+ }
164
+ }
157
165
  toRational() {
158
166
  return new rational_1.Rational(this.multiplyByPowerOfTen(this.precision).value, 10 ** this.precision).simplify();
159
167
  }
@@ -23,6 +23,7 @@ export declare class Rational implements Nombre {
23
23
  toTex(): string;
24
24
  add(nb: Nombre): Nombre;
25
25
  multiply(nb: Nombre): Rational | Integer;
26
+ reverse(shouldSimplify: boolean): Nombre;
26
27
  divide(nb: Nombre): Nombre;
27
28
  opposite(): Rational;
28
29
  toTree(opts?: NodeOptions): FractionNode | OppositeNode;
@@ -1 +1 @@
1
- {"version":3,"file":"rational.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/rationals/rational.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAQ,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAIvE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;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AmB;IACvC;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,MAAM,GAAE,MAAW;IAW7C,MAAM,CAAC,kBAAkB,CAAC,GAAG,GAAE,MAAW;IAO1C,MAAM,CAAC,0BAA0B,CAAC,GAAG,GAAE,MAAW;CAQnD;AAED,qBAAa,QAAS,YAAW,MAAM;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;gBAEL,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAYlD,MAAM,CAAC,CAAC,EAAE,MAAM;IAGhB,KAAK;IAML,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAkBvB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IAgBxC,OAAO,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM;IAIxC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgB1B,QAAQ,IAAI,QAAQ;IAIpB,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW;IAgBzB,cAAc;IAId,QAAQ,IAAI,OAAO,GAAG,QAAQ;CAS/B"}
@@ -96,6 +96,10 @@ class Rational {
96
96
  }
97
97
  throw Error("not implemented yet");
98
98
  }
99
+ reverse(shouldSimplify) {
100
+ const frac = new Rational(this.denum, this.num);
101
+ return shouldSimplify ? frac.simplify() : frac;
102
+ }
99
103
  divide(nb) {
100
104
  switch (nb.type) {
101
105
  case nombre_1.NumberType.Integer: {
@@ -1,6 +1,5 @@
1
1
  import { OppositeNode } from '../../../tree/nodes/functions/oppositeNode';
2
2
  import { NumberNode } from '../../../tree/nodes/numbers/numberNode';
3
- import { MultiplyNode } from '../../../tree/nodes/operators/multiplyNode';
4
3
  import { SubstractNode } from '../../../tree/nodes/operators/substractNode';
5
4
  import { Nombre } from '../nombre';
6
5
  /**
@@ -12,6 +11,6 @@ export declare class ExtendedRingElement {
12
11
  b: number;
13
12
  algebraicElement: Nombre;
14
13
  constructor(a: number, b: number, algebraicElement: Nombre);
15
- toTree(): import("../../../tree/nodes/algebraicNode").AlgebraicNode | NumberNode | MultiplyNode | OppositeNode | SubstractNode;
14
+ toTree(): import("../../../tree/nodes/algebraicNode").AlgebraicNode | NumberNode | OppositeNode | SubstractNode;
16
15
  }
17
16
  //# sourceMappingURL=extendedRingElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extendedRingElement.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/extendedRingElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;GAGG;AACH,qBAAa,mBAAmB;IAM9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,MAAM,CAAC;gBACb,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAM1D,MAAM;CAeP"}
1
+ {"version":3,"file":"extendedRingElement.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/extendedRingElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;GAGG;AACH,qBAAa,mBAAmB;IAM9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,MAAM,CAAC;gBACb,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAM1D,MAAM;CAeP"}
@@ -1,6 +1,8 @@
1
1
  import { Nombre } from "../numbers/nombre";
2
2
  import { Polynomial } from "./polynomial";
3
+ import { Trinom } from "./trinom";
3
4
  export declare abstract class AffineConstructor {
5
+ static fromCoeffs(coeffs: number[]): Affine;
4
6
  static random(aOpts?: {
5
7
  min?: number;
6
8
  max?: number;
@@ -26,6 +28,8 @@ export declare class Affine extends Polynomial {
26
28
  variable: string;
27
29
  constructor(a: number, b: number, variable?: string);
28
30
  getRoot(): Nombre;
31
+ square(): Trinom;
32
+ times(n: number): Affine;
29
33
  toString(): string;
30
34
  }
31
35
  //# sourceMappingURL=affine.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"affine.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/affine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM,CACX,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAC3D,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAC1D,MAAM;IAcT,MAAM,CAAC,gBAAgB,CACrB,EAAE,EAAE,MAAM,EACV,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC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ACV,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAC3D,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAC1D,MAAM,EAAE;CAWZ;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;gBAEL,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAY;IAOxD,OAAO,IAAI,MAAM;IAIjB,MAAM,IAAI,MAAM;IAShB,KAAK,CAAC,CAAC,EAAE,MAAM;IAIf,QAAQ,IAAI,MAAM;CAGnB"}
@@ -4,7 +4,11 @@ exports.Affine = exports.AffineConstructor = void 0;
4
4
  const rational_1 = require("../numbers/rationals/rational");
5
5
  const randint_1 = require("../utils/random/randint");
6
6
  const polynomial_1 = require("./polynomial");
7
+ const trinom_1 = require("./trinom");
7
8
  class AffineConstructor {
9
+ static fromCoeffs(coeffs) {
10
+ return new Affine(coeffs[1], coeffs[0]);
11
+ }
8
12
  static random(aOpts, bOpts) {
9
13
  const a = (0, randint_1.randint)(aOpts?.min ?? -9, aOpts?.max ?? 10, aOpts?.excludes ?? [0]);
10
14
  const b = (0, randint_1.randint)(bOpts?.min ?? -9, bOpts?.max ?? 10, bOpts?.excludes ?? []);
@@ -33,6 +37,12 @@ class Affine extends polynomial_1.Polynomial {
33
37
  getRoot() {
34
38
  return new rational_1.Rational(-this.b, this.a).simplify();
35
39
  }
40
+ square() {
41
+ return new trinom_1.Trinom(this.a ** 2, 2 * this.a * this.b, this.b ** 2, this.variable);
42
+ }
43
+ times(n) {
44
+ return new Affine(this.a * n, this.b * n);
45
+ }
36
46
  toString() {
37
47
  return super.toTex();
38
48
  }
@@ -48,6 +48,7 @@ export declare abstract class TrinomConstructor {
48
48
  excludes?: number[];
49
49
  }): Trinom;
50
50
  static randomNiceRoots(nbOfRoots?: number): Trinom;
51
+ static fromCoeffs(coeffs: number[]): Trinom;
51
52
  }
52
53
  export declare class Trinom extends Polynomial {
53
54
  a: number;
@@ -64,7 +65,7 @@ export declare class Trinom extends Polynomial {
64
65
  getAlphaNode(): NumberNode | FractionNode | OppositeNode;
65
66
  getBeta(): number;
66
67
  getBetaNode(): NumberNode | FractionNode | OppositeNode;
67
- getFactorizedForm(): AlgebraicNode | MultiplyNode;
68
+ getFactorizedForm(): AlgebraicNode;
68
69
  getCanonicalForm(): MultiplyNode | AddNode;
69
70
  getSommet(): Point;
70
71
  getCoords(): number[];
@@ -1 +1 @@
1
- {"version":3,"file":"trinom.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/trinom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAIvE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM,CACX,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;K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GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAC3D,MAAM;IAoBT,MAAM,CAAC,eAAe,CAAC,SAAS,GAAE,MAAU;IAqB5C,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE;CAGnC;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;gBACL,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAY;IAQnE,QAAQ;IAGR,YAAY,IAAI,UAAU;IAI1B,QAAQ;IAUR,YAAY,IAAI,aAAa,EAAE;IAoD/B,2BAA2B;IAO3B,QAAQ;IAGR,YAAY;IAIZ,OAAO;IAIP,WAAW;IAIX,iBAAiB;IA4CjB,gBAAgB;IAsBhB,SAAS;IAIT,SAAS;IAYT,QAAQ;CAkCT"}
@@ -62,6 +62,9 @@ class TrinomConstructor {
62
62
  return new Trinom(a, -a * (x1 + x2), a * x1 * x2);
63
63
  }
64
64
  }
65
+ static fromCoeffs(coeffs) {
66
+ return new Trinom(coeffs[2], coeffs[1], coeffs[0]);
67
+ }
65
68
  }
66
69
  exports.TrinomConstructor = TrinomConstructor;
67
70
  class Trinom extends polynomial_1.Polynomial {
@@ -1,7 +1,6 @@
1
1
  import { Measure } from "../measure/measure";
2
2
  type PhysicalConstant = {
3
3
  value: Measure;
4
- unit: string;
5
4
  };
6
5
  export declare const nucleonMass: PhysicalConstant;
7
6
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/atoms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAIzB,CAAC"}
1
+ {"version":3,"file":"atoms.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/atoms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAGzB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nucleonMass = void 0;
4
+ const massUnits_1 = require("../units/massUnits");
4
5
  const measure_1 = require("../measure/measure");
5
6
  exports.nucleonMass = {
6
- value: new measure_1.Measure(1.67, -27),
7
+ value: new measure_1.Measure(1.67, -27, massUnits_1.MassUnit.kg),
7
8
  // value: 1.67 * Math.pow(10, -27),
8
- unit: "\\text{kg}",
9
9
  };
@@ -0,0 +1,3 @@
1
+ import { Measure } from "../measure/measure";
2
+ export declare const coulombConstant: Measure<string>;
3
+ //# sourceMappingURL=coulomb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coulomb.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/coulomb.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAU7C,eAAO,MAAM,eAAe,iBAO3B,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.coulombConstant = void 0;
4
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
5
+ const measure_1 = require("../measure/measure");
6
+ const distanceUnits_1 = require("../units/distanceUnits");
7
+ const divideUnit_1 = require("../units/divideUnit");
8
+ const electricalChargeUnit_1 = require("../units/electricalChargeUnit");
9
+ const forceUnits_1 = require("../units/forceUnits");
10
+ const mulitplyUnits_1 = require("../units/mulitplyUnits");
11
+ const powerUnits_1 = require("../units/powerUnits");
12
+ const two = new numberNode_1.NumberNode(2);
13
+ exports.coulombConstant = new measure_1.Measure(8.99, 9, new divideUnit_1.DivideUnit(new mulitplyUnits_1.MultiplyUnit(forceUnits_1.ForceUnit.N, new powerUnits_1.PowerUnit(distanceUnits_1.DistanceUnit.m, two)), new powerUnits_1.PowerUnit(electricalChargeUnit_1.ElectricalChargeUnit.C, two)));
@@ -1,7 +1,6 @@
1
1
  import { Measure } from "../measure/measure";
2
2
  type PhysicalConstant = {
3
3
  measure: Measure;
4
- unit: string;
5
4
  };
6
5
  export declare const earthRayon: PhysicalConstant;
7
6
  export declare const earthMass: PhysicalConstant;
@@ -1 +1 @@
1
- {"version":3,"file":"earth.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/earth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,gBAGxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,gBAGvB,CAAC"}
1
+ {"version":3,"file":"earth.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/earth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI7C,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,gBAExB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,gBAEvB,CAAC"}
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.earthMass = exports.earthRayon = void 0;
4
4
  const measure_1 = require("../measure/measure");
5
+ const distanceUnits_1 = require("../units/distanceUnits");
6
+ const massUnits_1 = require("../units/massUnits");
5
7
  exports.earthRayon = {
6
- measure: new measure_1.Measure(6.38, 3),
7
- unit: "\\text{km}",
8
+ measure: new measure_1.Measure(6.38, 3, distanceUnits_1.DistanceUnit.km),
8
9
  };
9
10
  exports.earthMass = {
10
- measure: new measure_1.Measure(5.97, 24),
11
- unit: "\\text{kg}",
11
+ measure: new measure_1.Measure(5.97, 24, massUnits_1.MassUnit.kg),
12
12
  };
@@ -1,9 +1,9 @@
1
1
  import { Measure } from "../measure/measure";
2
2
  type PhysicalConstant = {
3
3
  measure: Measure;
4
- unit: string;
5
4
  };
6
5
  export declare const earthGravity: PhysicalConstant;
6
+ export declare const earthGravityAcceleration: PhysicalConstant;
7
7
  export declare const moonGravity: PhysicalConstant;
8
8
  export declare const earthG: PhysicalConstant;
9
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"gravity.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/gravity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,gBAGzB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,gBAGpB,CAAC"}
1
+ {"version":3,"file":"gravity.d.ts","sourceRoot":"","sources":["../../../src/pc/constants/gravity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAS7C,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAIF,eAAO,MAAM,YAAY,EAAE,gBAE1B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,gBAStC,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,gBAEzB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,gBAYpB,CAAC"}
@@ -1,16 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.earthG = exports.moonGravity = exports.earthGravity = void 0;
3
+ exports.earthG = exports.moonGravity = exports.earthGravityAcceleration = exports.earthGravity = void 0;
4
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
4
5
  const measure_1 = require("../measure/measure");
6
+ const distanceUnits_1 = require("../units/distanceUnits");
7
+ const divideUnit_1 = require("../units/divideUnit");
8
+ const forceUnits_1 = require("../units/forceUnits");
9
+ const massUnits_1 = require("../units/massUnits");
10
+ const mulitplyUnits_1 = require("../units/mulitplyUnits");
11
+ const powerUnits_1 = require("../units/powerUnits");
12
+ const timeUnits_1 = require("../units/timeUnits");
13
+ const two = new numberNode_1.NumberNode(2);
5
14
  exports.earthGravity = {
6
- measure: new measure_1.Measure(9.80665, 0),
7
- unit: "\\text{N}\\cdot\\text{kg}^{-1}",
15
+ measure: new measure_1.Measure(9.80665, 0, new divideUnit_1.DivideUnit(forceUnits_1.ForceUnit.N, massUnits_1.MassUnit.kg)),
16
+ };
17
+ exports.earthGravityAcceleration = {
18
+ measure: new measure_1.Measure(9.80665, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))),
8
19
  };
9
20
  exports.moonGravity = {
10
- measure: new measure_1.Measure(1.622),
11
- unit: "\\text{N}\\cdot\\text{kg}^{-1}",
21
+ measure: new measure_1.Measure(1.622, 0, new divideUnit_1.DivideUnit(forceUnits_1.ForceUnit.N, massUnits_1.MassUnit.kg)),
12
22
  };
13
23
  exports.earthG = {
14
- measure: new measure_1.Measure(6.67, -11),
15
- unit: "\\text{N}\\cdot\\text{m}^2\\cdot\\text{kg}^{-2}",
24
+ measure: new measure_1.Measure(6.67, -11, new divideUnit_1.DivideUnit(new mulitplyUnits_1.MultiplyUnit(forceUnits_1.ForceUnit.N, new mulitplyUnits_1.MultiplyUnit(distanceUnits_1.DistanceUnit.m, distanceUnits_1.DistanceUnit.m)), new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg))),
16
25
  };
@@ -0,0 +1,14 @@
1
+ import { Measure } from "../../measure/measure";
2
+ type PhysicalConstant = {
3
+ measure: Measure;
4
+ unit: string;
5
+ };
6
+ export declare const earthGravity: PhysicalConstant;
7
+ export declare const moonGravity: PhysicalConstant;
8
+ export declare const earthG: PhysicalConstant;
9
+ export declare const sunMass: PhysicalConstant;
10
+ export declare const sunRadius: PhysicalConstant;
11
+ export declare const sunSurfaceArea: PhysicalConstant;
12
+ export declare const sunLuminosity: PhysicalConstant;
13
+ export {};
14
+ //# sourceMappingURL=gravitational.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gravitational.d.ts","sourceRoot":"","sources":["../../../../src/pc/constants/mechanics/gravitational.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,gBAG1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAGzB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,gBAapB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,gBAGrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,gBAGvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAO5B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,gBAG3B,CAAC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sunLuminosity = exports.sunSurfaceArea = exports.sunRadius = exports.sunMass = exports.earthG = exports.moonGravity = exports.earthGravity = void 0;
4
+ const distanceUnits_1 = require("../../../pc/units/distanceUnits");
5
+ const divideUnit_1 = require("../../../pc/units/divideUnit");
6
+ const forceUnits_1 = require("../../../pc/units/forceUnits");
7
+ const massUnits_1 = require("../../../pc/units/massUnits");
8
+ const mulitplyUnits_1 = require("../../../pc/units/mulitplyUnits");
9
+ const measure_1 = require("../../measure/measure");
10
+ exports.earthGravity = {
11
+ measure: new measure_1.Measure(9.80665, 0, new divideUnit_1.DivideUnit(forceUnits_1.ForceUnit.N, massUnits_1.MassUnit.kg)),
12
+ unit: "\\text{N}\\cdot\\text{kg}^{-1}",
13
+ };
14
+ exports.moonGravity = {
15
+ measure: new measure_1.Measure(1.622, 0, new divideUnit_1.DivideUnit(forceUnits_1.ForceUnit.N, massUnits_1.MassUnit.kg)),
16
+ unit: "\\text{N}\\cdot\\text{kg}^{-1}",
17
+ };
18
+ exports.earthG = {
19
+ measure: new measure_1.Measure(6.67, -11, new divideUnit_1.DivideUnit(new mulitplyUnits_1.MultiplyUnit(forceUnits_1.ForceUnit.N, new mulitplyUnits_1.MultiplyUnit(distanceUnits_1.DistanceUnit.m, distanceUnits_1.DistanceUnit.m)), new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg))),
20
+ unit: "\\text{N}\\cdot\\text{m}^2\\cdot\\text{kg}^{-2}",
21
+ };
22
+ exports.sunMass = {
23
+ measure: new measure_1.Measure(1.989, 30, massUnits_1.MassUnit.kg),
24
+ unit: "\\text{kg}",
25
+ };
26
+ exports.sunRadius = {
27
+ measure: new measure_1.Measure(6.96342, 8, distanceUnits_1.DistanceUnit.m),
28
+ unit: "\\text{m}",
29
+ };
30
+ exports.sunSurfaceArea = {
31
+ measure: new measure_1.Measure(6.09, 18, new mulitplyUnits_1.MultiplyUnit(distanceUnits_1.DistanceUnit.m, distanceUnits_1.DistanceUnit.m)),
32
+ unit: "\\text{m}^2",
33
+ };
34
+ exports.sunLuminosity = {
35
+ measure: new measure_1.Measure(3.828, 26),
36
+ unit: "\\text{W}",
37
+ };
@@ -0,0 +1,15 @@
1
+ import { Measure } from "../../../pc/measure/measure";
2
+ export declare class Planet {
3
+ name: string;
4
+ scientificName: string;
5
+ galaxy: string;
6
+ system: string;
7
+ radius: Measure;
8
+ mass: Measure;
9
+ surfaceArea: Measure;
10
+ gravity: Measure;
11
+ distanceFromSun: Measure;
12
+ constructor(name: string, scientificName: string, galaxy: string, system: string, radius: Measure, mass: Measure, surfaceArea: Measure, gravity: Measure, distanceFromSun: Measure);
13
+ }
14
+ export declare const planets: Planet[];
15
+ //# sourceMappingURL=planets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planets.d.ts","sourceRoot":"","sources":["../../../../src/pc/constants/mechanics/planets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AASnD,qBAAa,MAAM;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;gBAGvB,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,OAAO,EACpB,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,OAAO;CAY3B;AAED,eAAO,MAAM,OAAO,EAAE,MAAM,EAiJ3B,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.planets = exports.Planet = void 0;
4
+ const measure_1 = require("../../../pc/measure/measure");
5
+ const distanceUnits_1 = require("../../../pc/units/distanceUnits");
6
+ const divideUnit_1 = require("../../../pc/units/divideUnit");
7
+ const massUnits_1 = require("../../../pc/units/massUnits");
8
+ const mulitplyUnits_1 = require("../../../pc/units/mulitplyUnits");
9
+ const powerUnits_1 = require("../../../pc/units/powerUnits");
10
+ const timeUnits_1 = require("../../../pc/units/timeUnits");
11
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
12
+ class Planet {
13
+ constructor(name, scientificName, galaxy, system, radius, mass, surfaceArea, gravity, distanceFromSun) {
14
+ this.name = name;
15
+ this.scientificName = scientificName;
16
+ this.galaxy = galaxy;
17
+ this.system = system;
18
+ this.radius = radius;
19
+ this.mass = mass;
20
+ this.surfaceArea = surfaceArea;
21
+ this.gravity = gravity;
22
+ this.distanceFromSun = distanceFromSun;
23
+ }
24
+ }
25
+ exports.Planet = Planet;
26
+ exports.planets = [
27
+ new Planet("Mercure", "Mercury", "Voie Lactée", "Système Solaire", new measure_1.Measure(2.4397, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(3.3011, 23, massUnits_1.MassUnit.kg), new measure_1.Measure(7.48, 7, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(3.7, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(5.79, 7, distanceUnits_1.DistanceUnit.km)),
28
+ new Planet("Vénus", "Venus", "Voie Lactée", "Système Solaire", new measure_1.Measure(6.0518, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(48.675, 23, massUnits_1.MassUnit.kg), new measure_1.Measure(46.0, 7, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(8.87, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(10.82, 7, distanceUnits_1.DistanceUnit.km)),
29
+ new Planet("Terre", "Earth", "Voie Lactée", "Système Solaire", new measure_1.Measure(6.371, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(5.972, 24, massUnits_1.MassUnit.kg), new measure_1.Measure(51.0, 7, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(9.81, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(14.96, 7, distanceUnits_1.DistanceUnit.km)),
30
+ new Planet("Mars", "Mars", "Voie Lactée", "Système Solaire", new measure_1.Measure(3.3895, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(0.64171, 24, massUnits_1.MassUnit.kg), new measure_1.Measure(14.48, 6, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(3.71, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(22.79, 7, distanceUnits_1.DistanceUnit.km)),
31
+ new Planet("Jupiter", "Jupiter", "Voie Lactée", "Système Solaire", new measure_1.Measure(69.911, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(18986, 23, massUnits_1.MassUnit.kg), new measure_1.Measure(614.19, 6, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(24.79, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(77.84, 7, distanceUnits_1.DistanceUnit.km)),
32
+ new Planet("Saturne", "Saturn", "Voie Lactée", "Système Solaire", new measure_1.Measure(58.232, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(5683, 23, massUnits_1.MassUnit.kg), new measure_1.Measure(427.0, 6, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(10.44, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(143.35, 7, distanceUnits_1.DistanceUnit.km)),
33
+ new Planet("Uranus", "Uranus", "Voie Lactée", "Système Solaire", new measure_1.Measure(25.362, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(868.13, 23, massUnits_1.MassUnit.kg), new measure_1.Measure(808.3, 6, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(8.69, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(287.25, 7, distanceUnits_1.DistanceUnit.km)),
34
+ new Planet("Neptune", "Neptune", "Voie Lactée", "Système Solaire", new measure_1.Measure(24.622, 3, distanceUnits_1.DistanceUnit.km), new measure_1.Measure(1024.13, 23, massUnits_1.MassUnit.kg), new measure_1.Measure(761.8, 6, new mulitplyUnits_1.MultiplyUnit(massUnits_1.MassUnit.kg, massUnits_1.MassUnit.kg)), new measure_1.Measure(11.15, 0, new divideUnit_1.DivideUnit(distanceUnits_1.DistanceUnit.m, new powerUnits_1.PowerUnit(timeUnits_1.TimeUnit.s, new numberNode_1.NumberNode(2)))), new measure_1.Measure(449.51, 7, distanceUnits_1.DistanceUnit.km)),
35
+ ];
@@ -0,0 +1,8 @@
1
+ import { Measure } from "../../measure/measure";
2
+ type PhysicalConstant = {
3
+ measure: Measure;
4
+ unit: string;
5
+ };
6
+ export declare const lightSpeed: PhysicalConstant;
7
+ export {};
8
+ //# sourceMappingURL=waves.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waves.d.ts","sourceRoot":"","sources":["../../../../src/pc/constants/mechanics/waves.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,KAAK,gBAAgB,GAAG;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,gBAGxB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lightSpeed = void 0;
4
+ const measure_1 = require("../../measure/measure");
5
+ exports.lightSpeed = {
6
+ measure: new measure_1.Measure(3, 8),
7
+ unit: "\\text{m}\\cdot\\text{s}^{-1}",
8
+ };
@@ -0,0 +1,2 @@
1
+ export type AtomSymbols = "H" | "He" | "Li" | "Be" | "B" | "C" | "N" | "O" | "F" | "Ne" | "Na" | "Mg" | "Al" | "Si" | "P" | "S" | "Cl" | "Ar" | "K" | "Ca" | "Sc" | "Ti" | "V" | "Cr" | "Mn" | "Fe" | "Co" | "Ni" | "Cu" | "Zn" | "Ga" | "Ge" | "As" | "Se" | "Br" | "Kr" | "Rb" | "Sr" | "Y" | "Zr" | "Nb" | "Mo" | "Tc" | "Ru" | "Rh" | "Pd" | "Ag" | "Cd" | "In" | "Sn" | "Sb" | "Te" | "I" | "Xe" | "Cs" | "Ba" | "La" | "Ce" | "Pr" | "Nd" | "Pm" | "Sm" | "Eu" | "Gd" | "Tb" | "Dy" | "Ho" | "Er" | "Tm" | "Yb" | "Lu" | "Hf" | "Ta" | "W" | "Re" | "Os" | "Ir" | "Pt" | "Au" | "Hg" | "Tl" | "Pb" | "Bi" | "Po" | "At" | "Rn" | "Fr" | "Ra" | "Ac" | "Th" | "Pa" | "U" | "Np" | "Pu" | "Am" | "Cm" | "Bk" | "Cf" | "Es" | "Fm" | "Md" | "No" | "Lr" | "Rf" | "Db" | "Sg" | "Bh" | "Hs" | "Mt" | "Ds" | "Rg" | "Cn" | "Nh" | "Fl" | "Mc" | "Lv" | "Ts" | "Og";
2
+ //# sourceMappingURL=atomSymbols.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atomSymbols.d.ts","sourceRoot":"","sources":["../../../../src/pc/constants/molecularChemistry/atomSymbols.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACnB,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { KeyId } from "../../../types/keyIds";
2
+ import { AtomSymbols } from "./atomSymbols";
3
+ export declare class Atome {
4
+ name: KeyId;
5
+ symbole: AtomSymbols;
6
+ numeroAtomique: number;
7
+ masseAtomique: number;
8
+ electronsShells?: number[];
9
+ famille: string;
10
+ etatStandard: string;
11
+ couleur: string;
12
+ masseVolumique: number;
13
+ pointFusion: number;
14
+ valenceElectronsNumber?: number;
15
+ constructor(name: KeyId, symbole: AtomSymbols, numeroAtomique: number, masseAtomique: number, famille: string, etatStandard: string, couleur: string, masseVolumique: number, pointFusion: number, electronsShells?: number[], valenceElectronsNumber?: number);
16
+ }
17
+ export declare const atomes: Atome[];
18
+ //# sourceMappingURL=atome.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atome.d.ts","sourceRoot":"","sources":["../../../../src/pc/constants/molecularChemistry/atome.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,KAAK;IAChB,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;gBAG9B,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,WAAW,EACpB,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,eAAe,CAAC,EAAE,MAAM,EAAE,EAC1B,sBAAsB,CAAC,EAAE,MAAM;CAclC;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,EA86CzB,CAAC"}