math-exercises 2.1.0 → 2.1.2

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 (160) hide show
  1. package/lib/exercises/exercise.d.ts +1 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
  4. package/lib/exercises/math/functions/affines/affineExpressionReading.js +1 -0
  5. package/lib/exercises/math/functions/affines/interceptReading.d.ts.map +1 -1
  6. package/lib/exercises/math/functions/affines/interceptReading.js +1 -0
  7. package/lib/exercises/math/percent/findProportion.d.ts +8 -0
  8. package/lib/exercises/math/percent/findProportion.d.ts.map +1 -0
  9. package/lib/exercises/math/percent/findProportion.js +48 -0
  10. package/lib/exercises/math/percent/index.d.ts +1 -0
  11. package/lib/exercises/math/percent/index.d.ts.map +1 -1
  12. package/lib/exercises/math/percent/index.js +1 -0
  13. package/lib/exercises/math/powers/decimalToScientific.js +4 -4
  14. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
  15. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +4 -1
  16. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.d.ts.map +1 -1
  17. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +4 -1
  18. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts +8 -0
  19. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -0
  20. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +58 -0
  21. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts +8 -0
  22. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts.map +1 -0
  23. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.js +63 -0
  24. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.d.ts +5 -0
  25. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.d.ts.map +1 -0
  26. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.js +76 -0
  27. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts +10 -0
  28. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts.map +1 -0
  29. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +68 -0
  30. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts +8 -0
  31. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts.map +1 -0
  32. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.js +58 -0
  33. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts +8 -0
  34. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts.map +1 -0
  35. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.js +59 -0
  36. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts +8 -0
  37. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -0
  38. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +101 -0
  39. package/lib/exercises/pc/chemicalElements/index.d.ts +9 -0
  40. package/lib/exercises/pc/chemicalElements/index.d.ts.map +1 -0
  41. package/lib/exercises/pc/chemicalElements/index.js +24 -0
  42. package/lib/exercises/pc/chemicalElements/weightPercent.d.ts +10 -0
  43. package/lib/exercises/pc/chemicalElements/weightPercent.d.ts.map +1 -0
  44. package/lib/exercises/pc/chemicalElements/weightPercent.js +107 -0
  45. package/lib/exercises/pc/chemicalEquations.js +1 -1
  46. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts +7 -0
  47. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts.map +1 -0
  48. package/lib/exercises/pc/forces/gravitationalAttractionValue.js +71 -0
  49. package/lib/exercises/pc/forces/index.d.ts +2 -0
  50. package/lib/exercises/pc/forces/index.d.ts.map +1 -0
  51. package/lib/exercises/pc/forces/index.js +17 -0
  52. package/lib/exercises/pc/index.d.ts +12 -0
  53. package/lib/exercises/pc/index.d.ts.map +1 -1
  54. package/lib/exercises/pc/index.js +14 -0
  55. package/lib/exercises/pc/math/index.d.ts +2 -0
  56. package/lib/exercises/pc/math/index.d.ts.map +1 -0
  57. package/lib/exercises/pc/math/index.js +18 -0
  58. package/lib/exercises/pc/math/isolateVariables.d.ts +8 -0
  59. package/lib/exercises/pc/math/isolateVariables.d.ts.map +1 -0
  60. package/lib/exercises/pc/math/isolateVariables.js +304 -0
  61. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts +10 -0
  62. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -0
  63. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +81 -0
  64. package/lib/exercises/pc/motion/recognizeFreeFall.d.ts +1 -0
  65. package/lib/exercises/pc/motion/recognizeFreeFall.d.ts.map +1 -0
  66. package/lib/exercises/pc/motion/recognizeFreeFall.js +53 -0
  67. package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts +8 -0
  68. package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts.map +1 -0
  69. package/lib/exercises/pc/sound/findPeriodFromGraph.js +80 -0
  70. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.d.ts +7 -0
  71. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.d.ts.map +1 -0
  72. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.js +51 -0
  73. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.d.ts +7 -0
  74. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.d.ts.map +1 -0
  75. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.js +58 -0
  76. package/lib/exercises/pc/sound/frequencyComparison.d.ts +9 -0
  77. package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -0
  78. package/lib/exercises/pc/sound/frequencyComparison.js +51 -0
  79. package/lib/exercises/pc/sound/index.d.ts +5 -0
  80. package/lib/exercises/pc/sound/index.d.ts.map +1 -0
  81. package/lib/exercises/pc/sound/index.js +20 -0
  82. package/lib/exercises/pc/waves/findDistanceFromEarth.d.ts +7 -0
  83. package/lib/exercises/pc/waves/findDistanceFromEarth.d.ts.map +1 -0
  84. package/lib/exercises/pc/waves/findDistanceFromEarth.js +66 -0
  85. package/lib/exercises/pc/waves/index.d.ts +2 -0
  86. package/lib/exercises/pc/waves/index.d.ts.map +1 -0
  87. package/lib/exercises/pc/waves/index.js +17 -0
  88. package/lib/exercises/pc/weight/index.d.ts +2 -0
  89. package/lib/exercises/pc/weight/index.d.ts.map +1 -0
  90. package/lib/exercises/pc/weight/index.js +17 -0
  91. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts +8 -0
  92. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -0
  93. package/lib/exercises/pc/weight/weightOnTheMoon.js +64 -0
  94. package/lib/exercises/utils/getAtoms.d.ts +2 -0
  95. package/lib/exercises/utils/getAtoms.d.ts.map +1 -0
  96. package/lib/exercises/utils/getAtoms.js +11 -0
  97. package/lib/exercises/utils/getElectronicConfigurationFromShells.d.ts +2 -0
  98. package/lib/exercises/utils/getElectronicConfigurationFromShells.d.ts.map +1 -0
  99. package/lib/exercises/utils/getElectronicConfigurationFromShells.js +19 -0
  100. package/lib/geogebra/geogebraConstructor.d.ts +2 -0
  101. package/lib/geogebra/geogebraConstructor.d.ts.map +1 -1
  102. package/lib/geogebra/geogebraConstructor.js +2 -0
  103. package/lib/index.d.ts +126 -0
  104. package/lib/index.d.ts.map +1 -1
  105. package/lib/index.js +4 -0
  106. package/lib/math/numbers/decimals/decimal.d.ts +3 -3
  107. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
  108. package/lib/math/numbers/decimals/decimal.js +39 -19
  109. package/lib/math/utils/random/randfloat.d.ts +1 -1
  110. package/lib/math/utils/random/randfloat.d.ts.map +1 -1
  111. package/lib/math/utils/random/randfloat.js +4 -7
  112. package/lib/math/utils/round.d.ts +2 -1
  113. package/lib/math/utils/round.d.ts.map +1 -1
  114. package/lib/math/utils/round.js +10 -3
  115. package/lib/pc/constants/atoms.d.ts +8 -0
  116. package/lib/pc/constants/atoms.d.ts.map +1 -0
  117. package/lib/pc/constants/atoms.js +9 -0
  118. package/lib/pc/constants/earth.d.ts +9 -0
  119. package/lib/pc/constants/earth.d.ts.map +1 -0
  120. package/lib/pc/constants/earth.js +12 -0
  121. package/lib/pc/constants/gravity.d.ts +10 -0
  122. package/lib/pc/constants/gravity.d.ts.map +1 -0
  123. package/lib/pc/constants/gravity.js +16 -0
  124. package/lib/pc/measure/measure.d.ts +15 -0
  125. package/lib/pc/measure/measure.d.ts.map +1 -0
  126. package/lib/pc/measure/measure.js +97 -0
  127. package/lib/pc/molecularChemistry/atome.d.ts +3 -2
  128. package/lib/pc/molecularChemistry/atome.d.ts.map +1 -1
  129. package/lib/pc/molecularChemistry/atome.js +156 -120
  130. package/lib/pc/molecularChemistry/molecule.d.ts +3 -2
  131. package/lib/pc/molecularChemistry/molecule.d.ts.map +1 -1
  132. package/lib/pc/molecularChemistry/molecule.js +11 -0
  133. package/lib/pc/molecularChemistry/reaction.d.ts +2 -1
  134. package/lib/pc/molecularChemistry/reaction.d.ts.map +1 -1
  135. package/lib/pc/molecularChemistry/reaction.js +9 -0
  136. package/lib/server.d.ts +1 -0
  137. package/lib/server.d.ts.map +1 -1
  138. package/lib/server.js +5 -0
  139. package/lib/tree/nodes/algebraicNode.d.ts +1 -0
  140. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  141. package/lib/tree/nodes/complex/complexNode.d.ts.map +1 -1
  142. package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -1
  143. package/lib/tree/nodes/equations/equalNode.js +0 -1
  144. package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -1
  145. package/lib/tree/nodes/node.d.ts +1 -0
  146. package/lib/tree/nodes/node.d.ts.map +1 -1
  147. package/lib/tree/nodes/numbers/numberNode.js +1 -1
  148. package/lib/tree/nodes/numbers/piNode.d.ts.map +1 -1
  149. package/lib/tree/nodes/operators/multiplyNode.d.ts +2 -2
  150. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  151. package/lib/tree/nodes/operators/multiplyNode.js +6 -5
  152. package/lib/types/keyIds.d.ts +4 -2
  153. package/lib/types/keyIds.d.ts.map +1 -1
  154. package/lib/utils/numberPrototype/toScientific.d.ts +3 -0
  155. package/lib/utils/numberPrototype/toScientific.d.ts.map +1 -0
  156. package/lib/utils/numberPrototype/toScientific.js +110 -0
  157. package/lib/utils/requiresApostropheBefore.d.ts +2 -0
  158. package/lib/utils/requiresApostropheBefore.d.ts.map +1 -0
  159. package/lib/utils/requiresApostropheBefore.js +7 -0
  160. package/package.json +1 -1
@@ -2,137 +2,173 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.atomes = exports.Atome = void 0;
4
4
  class Atome {
5
- constructor(name, symbole, numeroAtomique, masseAtomique, configurationElectronique, famille, etatStandard, couleur, masseVolumique, pointFusion) {
5
+ constructor(name, symbole, numeroAtomique, masseAtomique, famille, etatStandard, couleur, masseVolumique, pointFusion, electronsShells, valenceElectronsNumber) {
6
6
  this.name = name;
7
7
  this.symbole = symbole;
8
8
  this.numeroAtomique = numeroAtomique;
9
9
  this.masseAtomique = masseAtomique;
10
- this.configurationElectronique = configurationElectronique;
10
+ this.electronsShells = electronsShells;
11
11
  this.famille = famille;
12
12
  this.etatStandard = etatStandard;
13
13
  this.couleur = couleur;
14
14
  this.masseVolumique = masseVolumique;
15
15
  this.pointFusion = pointFusion;
16
+ this.valenceElectronsNumber = valenceElectronsNumber;
16
17
  }
17
18
  }
18
19
  exports.Atome = Atome;
19
20
  exports.atomes = [
20
- new Atome("Hydrogène", "H", 1, 1.008, "1s1", "Non-métal", "Gaz", "Incolore", 0.08988, -259.16),
21
- new Atome("Hélium", "He", 2, 4.0026, "1s2", "Gaz noble", "Gaz", "Incolore", 0.1786, -272.2),
22
- new Atome("Lithium", "Li", 3, 6.94, "[He] 2s1", "Métal alcalin", "Solide", "Argenté", 0.534, 180.54),
23
- new Atome("Béryllium", "Be", 4, 9.0122, "[He] 2s2", "Métal alcalino-terreux", "Solide", "Gris métallique", 1.848, 1287),
24
- new Atome("Bore", "B", 5, 10.81, "[He] 2s2 2p1", "Métalloïde", "Solide", "Noir", 2.46, 2075),
25
- new Atome("Carbone", "C", 6, 12.01, "[He] 2s2 2p2", "Non-métal", "Solide", "Noir", 2.267, 3500),
26
- new Atome("Azote", "N", 7, 14.01, "[He] 2s2 2p3", "Non-métal", "Gaz", "Incolore", 0.001251, -210.01),
27
- new Atome("Oxygène", "O", 8, 16, "[He] 2s2 2p4", "Non-métal", "Gaz", "Incolore", 0.001429, -218.79),
28
- new Atome("Fluor", "F", 9, 19, "[He] 2s2 2p5", "Halogène", "Gaz", "Jaune pâle", 0.001696, -219.62),
29
- new Atome("Néon", "Ne", 10, 20.18, "[He] 2s2 2p6", "Gaz noble", "Gaz", "Incolore", 0.9002, -246.08),
30
- new Atome("Sodium", "Na", 11, 22.99, "[Ne] 3s1", "Métal alcalin", "Solide", "Argenté", 0.968, 97.72),
31
- new Atome("Magnésium", "Mg", 12, 24.31, "[Ne] 3s2", "Métal alcalino-terreux", "Solide", "Gris métallique", 1.738, 650),
32
- new Atome("Aluminium", "Al", 13, 26.98, "[Ne] 3s2 3p1", "Métal pauvre", "Solide", "Argenté", 2.7, 660.32),
33
- new Atome("Silicium", "Si", 14, 28.09, "[Ne] 3s2 3p2", "Métalloïde", "Solide", "Bleu-gris", 2.3296, 1414),
34
- new Atome("Phosphore", "P", 15, 30.97, "[Ne] 3s2 3p3", "Non-métal", "Solide", "Blanc", 1.82, 44.15),
35
- new Atome("Soufre", "S", 16, 32.07, "[Ne] 3s2 3p4", "Non-métal", "Solide", "Jaune", 2.067, 115.21),
36
- new Atome("Chlore", "Cl", 17, 35.45, "[Ne] 3s2 3p5", "Halogène", "Gaz", "Vert pâle", 0.003214, -101.5),
37
- new Atome("Argon", "Ar", 18, 39.95, "[Ne] 3s2 3p6", "Gaz noble", "Gaz", "Incolore", 1.3954, -189.34),
38
- new Atome("Potassium", "K", 19, 39.1, "[Ar] 4s1", "Métal alcalin", "Solide", "Argenté", 0.856, 63.38),
39
- new Atome("Calcium", "Ca", 20, 40.08, "[Ar] 4s2", "Métal alcalino-terreux", "Solide", "Argenté", 1.55, 842),
40
- new Atome("Scandium", "Sc", 21, 44.96, "[Ar] 3d1 4s2", "Métal de transition", "Solide", "Argenté", 2.989, 1541),
41
- new Atome("Titane", "Ti", 22, 47.87, "[Ar] 3d2 4s2", "Métal de transition", "Solide", "Argenté", 4.54, 1660),
42
- new Atome("Vanadium", "V", 23, 50.94, "[Ar] 3d3 4s2", "Métal de transition", "Solide", "Argenté", 6.11, 1910),
43
- new Atome("Chrome", "Cr", 24, 52.0, "[Ar] 3d5 4s1", "Métal de transition", "Solide", "Argenté", 7.15, 1857),
44
- new Atome("Manganèse", "Mn", 25, 54.94, "[Ar] 3d5 4s2", "Métal de transition", "Solide", "Argenté", 7.44, 1244),
45
- new Atome("Fer", "Fe", 26, 55.85, "[Ar] 3d6 4s2", "Métal de transition", "Solide", "Argenté", 7.874, 1538),
46
- new Atome("Cobalt", "Co", 27, 58.93, "[Ar] 3d7 4s2", "Métal de transition", "Solide", "Argenté", 8.86, 1495),
47
- new Atome("Nickel", "Ni", 28, 58.69, "[Ar] 3d8 4s2", "Métal de transition", "Solide", "Argenté", 8.912, 1455),
48
- new Atome("Cuivre", "Cu", 29, 63.55, "[Ar] 3d10 4s1", "Métal de transition", "Solide", "Rouge métallique", 8.92, 1357.77),
49
- new Atome("Zinc", "Zn", 30, 65.38, "[Ar] 3d10 4s2", "Métal de transition", "Solide", "Gris bleuâtre", 7.134, 692.68),
50
- new Atome("Gallium", "Ga", 31, 69.72, "[Ar] 3d10 4s2 4p1", "Métal pauvre", "Solide", "Argenté", 5.907, 302.9146),
51
- new Atome("Germanium", "Ge", 32, 72.63, "[Ar] 3d10 4s2 4p2", "Métalloïde", "Solide", "Gris", 5.323, 1211.4),
52
- new Atome("Arsenic", "As", 33, 74.92, "[Ar] 3d10 4s2 4p3", "Métalloïde", "Solide", "Gris métallique", 5.776, 1090),
53
- new Atome("Sélénium", "Se", 34, 78.97, "[Ar] 3d10 4s2 4p4", "Non-métal", "Solide", "Gris-noir", 4.809, 494),
54
- new Atome("Brome", "Br", 35, 79.9, "[Ar] 3d10 4s2 4p5", "Halogène", "Liquide", "Rouge foncé", 3.122, -7.2),
55
- new Atome("Krypton", "Kr", 36, 83.8, "[Ar] 3d10 4s2 4p6", "Gaz noble", "Gaz", "Incolore", 0.003749, -157.36),
56
- new Atome("Rubidium", "Rb", 37, 85.47, "[Kr] 5s1", "Métal alcalin", "Solide", "Argenté", 1.532, 312.45),
57
- new Atome("Strontium", "Sr", 38, 87.62, "[Kr] 5s2", "Métal alcalino-terreux", "Solide", "Argenté", 2.64, 1050),
58
- new Atome("Yttrium", "Y", 39, 88.91, "[Kr] 4d1 5s2", "Métal de transition", "Solide", "Argenté", 4.472, 1799),
59
- new Atome("Zirconium", "Zr", 40, 91.22, "[Kr] 4d2 5s2", "Métal de transition", "Solide", "Argenté", 6.52, 2128),
60
- new Atome("Niobium", "Nb", 41, 92.91, "[Kr] 4d4 5s1", "Métal de transition", "Solide", "Argenté", 8.57, 2750),
61
- new Atome("Molybdène", "Mo", 42, 95.95, "[Kr] 4d5 5s1", "Métal de transition", "Solide", "Argenté", 10.22, 2896),
62
- new Atome("Technétium", "Tc", 43, 98, "[Kr] 4d5 5s2", "Métal de transition", "Solide", "Argenté", 11.49, 2430),
63
- new Atome("Ruthénium", "Ru", 44, 101.07, "[Kr] 4d7 5s1", "Métal de transition", "Solide", "Argenté", 12.37, 2607),
64
- new Atome("Rhodium", "Rh", 45, 102.91, "[Kr] 4d8 5s1", "Métal de transition", "Solide", "Argenté", 12.41, 2237),
65
- new Atome("Palladium", "Pd", 46, 106.42, "[Kr] 4d10", "Métal de transition", "Solide", "Argenté", 12.02, 1828.05),
66
- new Atome("Argent", "Ag", 47, 107.87, "[Kr] 4d10 5s1", "Métal de transition", "Solide", "Blanc argenté", 10.49, 1234.93),
67
- new Atome("Cadmium", "Cd", 48, 112.41, "[Kr] 4d10 5s2", "Métal de transition", "Solide", "Blanc argenté", 8.65, 594.22),
68
- new Atome("Indium", "In", 49, 114.82, "[Kr] 4d10 5s2 5p1", "Métal pauvre", "Solide", "Blanc argenté", 7.31, 429.75),
69
- new Atome("Étain", "Sn", 50, 118.71, "[Kr] 4d10 5s2 5p2", "Métal pauvre", "Solide", "Blanc argenté", 7.31, 505.08),
70
- new Atome("Antimoine", "Sb", 51, 121.76, "[Kr] 4d10 5s2 5p3", "Métalloïde", "Solide", "Blanc argenté", 6.68, 903.78),
71
- new Atome("Tellure", "Te", 52, 127.6, "[Kr] 4d10 5s2 5p4", "Métalloïde", "Solide", "Blanc argenté", 6.24, 722.66),
72
- new Atome("Iode", "I", 53, 126.9, "[Kr] 4d10 5s2 5p5", "Halogène", "Solide", "Noir brillant", 4.94, 386.85),
73
- new Atome("Xénon", "Xe", 54, 131.29, "[Kr] 4d10 5s2 5p6", "Gaz noble", "Gaz", "Incolore", 0.005887, -111.75),
74
- new Atome("Césium", "Cs", 55, 132.91, "[Xe] 6s1", "Métal alcalin", "Solide", "Or jaune", 1.873, 301.59),
75
- new Atome("Baryum", "Ba", 56, 137.33, "[Xe] 6s2", "Métal alcalino-terreux", "Solide", "Argenté", 3.594, 1000),
76
- new Atome("Lanthane", "La", 57, 138.91, "[Xe] 5d1 6s2", "Lanthanide", "Solide", "Argenté", 6.145, 1193),
77
- new Atome("Cérium", "Ce", 58, 140.12, "[Xe] 4f1 5d1 6s2", "Lanthanide", "Solide", "Argenté", 6.77, 1068),
78
- new Atome("Praséodyme", "Pr", 59, 140.91, "[Xe] 4f3 6s2", "Lanthanide", "Solide", "Argenté", 6.77, 1208),
79
- new Atome("Néodyme", "Nd", 60, 144.24, "[Xe] 4f4 6s2", "Lanthanide", "Solide", "Argenté", 7.01, 1297),
80
- new Atome("Prométhium", "Pm", 61, 145, "[Xe] 4f5 6s2", "Lanthanide", "Solide", "Argenté", 7.26, 1315),
81
- new Atome("Samarium", "Sm", 62, 150.36, "[Xe] 4f6 6s2", "Lanthanide", "Solide", "Argenté", 7.52, 1345),
82
- new Atome("Europium", "Eu", 63, 152.0, "[Xe] 4f7 6s2", "Lanthanide", "Solide", "Argenté", 5.24, 1095),
83
- new Atome("Gadolinium", "Gd", 64, 157.25, "[Xe] 4f7 5d1 6s2", "Lanthanide", "Solide", "Argenté", 7.89, 1585),
84
- new Atome("Térbium", "Tb", 65, 158.93, "[Xe] 4f9 6s2", "Lanthanide", "Solide", "Argenté", 8.23, 1629),
85
- new Atome("Dysprosium", "Dy", 66, 162.5, "[Xe] 4f10 6s2", "Lanthanide", "Solide", "Argenté", 8.55, 1680),
86
- new Atome("Holmium", "Ho", 67, 164.93, "[Xe] 4f11 6s2", "Lanthanide", "Solide", "Argenté", 8.795, 1734),
87
- new Atome("Erbium", "Er", 68, 167.26, "[Xe] 4f12 6s2", "Lanthanide", "Solide", "Argenté", 9.066, 1802),
88
- new Atome("Thulium", "Tm", 69, 168.93, "[Xe] 4f13 6s2", "Lanthanide", "Solide", "Argenté", 9.321, 1818),
89
- new Atome("Ytterbium", "Yb", 70, 173.05, "[Xe] 4f14 6s2", "Lanthanide", "Solide", "Argenté", 6.965, 1092),
90
- new Atome("Lutétium", "Lu", 71, 175.0, "[Xe] 4f14 5d1 6s2", "Lanthanide", "Solide", "Argenté", 9.84, 1925),
91
- new Atome("Hafnium", "Hf", 72, 178.49, "[Xe] 4f14 5d2 6s2", "Métal de transition", "Solide", "Argenté", 13.31, 2506),
92
- new Atome("Tantale", "Ta", 73, 180.95, "[Xe] 4f14 5d3 6s2", "Métal de transition", "Solide", "Gris bleuâtre", 16.65, 3290),
93
- new Atome("Tungstène", "W", 74, 183.84, "[Xe] 4f14 5d4 6s2", "Métal de transition", "Solide", "Gris acier", 19.25, 3695),
94
- new Atome("Rhénium", "Re", 75, 186.21, "[Xe] 4f14 5d5 6s2", "Métal de transition", "Solide", "Argenté", 21.02, 3459),
95
- new Atome("Osmium", "Os", 76, 190.23, "[Xe] 4f14 5d6 6s2", "Métal de transition", "Solide", "Argenté bleuté", 22.59, 3306),
96
- new Atome("Iridium", "Ir", 77, 192.22, "[Xe] 4f14 5d7 6s2", "Métal de transition", "Solide", "Blanc argenté", 22.56, 2719),
97
- new Atome("Platine", "Pt", 78, 195.08, "[Xe] 4f14 5d9 6s1", "Métal de transition", "Solide", "Argenté", 21.45, 2041.4),
98
- new Atome("Or", "Au", 79, 196.97, "[Xe] 4f14 5d10 6s1", "Métal de transition", "Solide", "Jaune", 19.32, 1337.33),
99
- new Atome("Mercure", "Hg", 80, 200.59, "[Xe] 4f14 5d10 6s2", "Métal de transition", "Liquide", "Argenté", 13.55, -38.83),
100
- new Atome("Thallium", "Tl", 81, 204.38, "[Xe] 4f14 5d10 6s2 6p1", "Métal pauvre", "Solide", "Blanc argenté", 11.85, 577),
101
- new Atome("Plomb", "Pb", 82, 207.2, "[Xe] 4f14 5d10 6s2 6p2", "Métal pauvre", "Solide", "Bleu-gris", 11.34, 600.61),
102
- new Atome("Bismuth", "Bi", 83, 208.98, "[Xe] 4f14 5d10 6s2 6p3", "Métal pauvre", "Solide", "Blanc argenté", 9.8, 544.4),
103
- new Atome("Polonium", "Po", 84, 209, "[Xe] 4f14 5d10 6s2 6p4", "Métalloïde", "Solide", "Argenté", 9.32, 527),
104
- new Atome("Astate", "At", 85, 210, "[Xe] 4f14 5d10 6s2 6p5", "Halogène", "Solide", "Inconnue", 7, 575),
105
- new Atome("Radon", "Rn", 86, 222, "[Xe] 4f14 5d10 6s2 6p6", "Gaz noble", "Gaz", "Incolore", 0.00973, -61.85),
106
- new Atome("Francium", "Fr", 87, 223, "[Rn] 7s1", "Métal alcalin", "Solide", "Argenté", 1.87, 300),
107
- new Atome("Radium", "Ra", 88, 226, "[Rn] 7s2", "Métal alcalino-terreux", "Solide", "Argenté", 5.5, 973),
108
- new Atome("Actinium", "Ac", 89, 227, "[Rn] 6d1 7s2", "Actinide", "Solide", "Argenté", 10.07, 1323),
109
- new Atome("Thorium", "Th", 90, 232.04, "[Rn] 6d2 7s2", "Actinide", "Solide", "Argenté", 11.72, 2023),
110
- new Atome("Protactinium", "Pa", 91, 231.04, "[Rn] 5f2 6d1 7s2", "Actinide", "Solide", "Argenté", 15.37, 1841),
111
- new Atome("Uranium", "U", 92, 238.03, "[Rn] 5f3 6d1 7s2", "Actinide", "Solide", "Argenté", 19.05, 1405),
112
- new Atome("Neptunium", "Np", 93, 237, "[Rn] 5f4 6d1 7s2", "Actinide", "Solide", "Inconnue", 20.25, 912),
113
- new Atome("Plutonium", "Pu", 94, 244, "[Rn] 5f6 7s2", "Actinide", "Solide", "Argenté", 19.86, 912.5),
114
- new Atome("Américium", "Am", 95, 243, "[Rn] 5f7 7s2", "Actinide", "Solide", "Argenté", 13.67, 1449),
115
- new Atome("Curium", "Cm", 96, 247, "[Rn] 5f7 6d1 7s2", "Actinide", "Solide", "Argenté", 13.51, 1613),
116
- new Atome("Berkélium", "Bk", 97, 247, "[Rn] 5f9 7s2", "Actinide", "Solide", "Inconnue", 14.78, 1323),
117
- new Atome("Californium", "Cf", 98, 251, "[Rn] 5f10 7s2", "Actinide", "Solide", "Inconnue", 15.1, 1173),
118
- new Atome("Einsteinium", "Es", 99, 252, "[Rn] 5f11 7s2", "Actinide", "Solide", "Inconnue", 8.84, 1133),
119
- new Atome("Fermium", "Fm", 100, 257, "[Rn] 5f12 7s2", "Actinide", "Solide", "Inconnue", 9.7, 1800),
120
- new Atome("Mendélévium", "Md", 101, 258, "[Rn] 5f13 7s2", "Actinide", "Solide", "Inconnue", 10.3, 1100),
121
- new Atome("Nobelium", "No", 102, 259, "[Rn] 5f14 7s2", "Actinide", "Solide", "Inconnue", 9.9, 1100),
122
- new Atome("Lawrencium", "Lr", 103, 262, "[Rn] 5f14 7s2 7p1", "Actinide", "Solide", "Inconnue", 15.6, 1900),
123
- new Atome("Rutherfordium", "Rf", 104, 267, "[Rn] 5f14 6d2 7s2", "Métal de transition", "Inconnue", "Inconnue", 23.2, 2400),
124
- new Atome("Dubnium", "Db", 105, 270, "[Rn] 5f14 6d3 7s2", "Métal de transition", "Inconnue", "Inconnue", 29.3, 2370),
125
- new Atome("Seaborgium", "Sg", 106, 271, "[Rn] 5f14 6d4 7s2", "Métal de transition", "Inconnue", "Inconnue", 35, 2273),
126
- new Atome("Bohrium", "Bh", 107, 270, "[Rn] 5f14 6d5 7s2", "Métal de transition", "Inconnue", "Inconnue", 37.1, 0),
127
- new Atome("Hassium", "Hs", 108, 277, "[Rn] 5f14 6d6 7s2", "Métal de transition", "Inconnue", "Inconnue", 40.7, 0),
128
- new Atome("Meitnérium", "Mt", 109, 278, "[Rn] 5f14 6d7 7s2", "Métal de transition", "Inconnue", "Inconnue", 37.4, 0),
129
- new Atome("Darmstadtium", "Ds", 110, 281, "[Rn] 5f14 6d9 7s1", "Métal de transition", "Inconnue", "Inconnue", 34.8, 0),
130
- new Atome("Roentgenium", "Rg", 111, 282, "[Rn] 5f14 6d10 7s1", "Métal de transition", "Inconnue", "Inconnue", 28.7, 0),
131
- new Atome("Copernicium", "Cn", 112, 285, "[Rn] 5f14 6d10 7s2", "Métal de transition", "Inconnue", "Inconnue", 23.7, 0),
132
- new Atome("Nihonium", "Nh", 113, 286, "[Rn] 5f14 6d10 7s2 7p1", "Métal pauvre", "Inconnue", "Inconnue", 16, 0),
133
- new Atome("Flerovium", "Fl", 114, 289, "[Rn] 5f14 6d10 7s2 7p2", "Métal pauvre", "Inconnue", "Inconnue", 14, 0),
134
- new Atome("Moscovium", "Mc", 115, 290, "[Rn] 5f14 6d10 7s2 7p3", "Métal pauvre", "Inconnue", "Inconnue", 13.5, 0),
135
- new Atome("Livermorium", "Lv", 116, 293, "[Rn] 5f14 6d10 7s2 7p4", "Métal pauvre", "Inconnue", "Inconnue", 12.9, 0),
136
- new Atome("Tennessine", "Ts", 117, 294, "[Rn] 5f14 6d10 7s2 7p5", "Hallogène", "Inconnue", "Inconnue", 7.2, 0),
137
- new Atome("Oganesson", "Og", 118, 294, "[Rn] 5f14 6d10 7s2 7p6", "Gaz noble", "Inconnue", "Inconnue", 4.9, 0),
21
+ new Atome("Hydrogène", "H", 1, 1.008, "Non-métal", "Gaz", "Incolore", 0.08988, -259.16, [1], 1),
22
+ new Atome("Hélium", "He", 2, 4.0026, "Gaz noble", "Gaz", "Incolore", 0.1786, -272.2,
23
+ // "1s2",
24
+ [2], 2),
25
+ new Atome("Lithium", "Li", 3, 6.94, "Métal alcalin", "Solide", "Argenté", 0.534, 180.54,
26
+ // "[He] 2s1",
27
+ [2, 1], 1),
28
+ new Atome("Béryllium", "Be", 4, 9.0122, "Métal alcalino-terreux", "Solide", "Gris métallique", 1.848, 1287,
29
+ // "[He] 2s2",
30
+ [2, 2], 2),
31
+ new Atome("Bore", "B", 5, 10.81, "Métalloïde", "Solide", "Noir", 2.46, 2075,
32
+ // "[He] 2s2 2p1",
33
+ [2, 2, 1], 3),
34
+ new Atome("Carbone", "C", 6, 12.01, "Non-métal", "Solide", "Noir", 2.267, 3500,
35
+ // "[He] 2s2 2p2",
36
+ [2, 2, 2], 4),
37
+ new Atome("Azote", "N", 7, 14.01, "Non-métal", "Gaz", "Incolore", 0.001251, -210.01,
38
+ // "[He] 2s2 2p3",
39
+ [2, 2, 3], 5),
40
+ new Atome("Oxygène", "O", 8, 16, "Non-métal", "Gaz", "Incolore", 0.001429, -218.79,
41
+ // "[He] 2s2 2p4",
42
+ [2, 2, 4], 6),
43
+ new Atome("Fluor", "F", 9, 19, "Halogène", "Gaz", "Jaune pâle", 0.001696, -219.62,
44
+ // "[He] 2s2 2p5",
45
+ [2, 2, 5], 7),
46
+ new Atome("Néon", "Ne", 10, 20.18, "Gaz noble", "Gaz", "Incolore", 0.9002, -246.08,
47
+ // "[He] 2s2 2p6",
48
+ [2, 2, 6], 8),
49
+ new Atome("Sodium", "Na", 11, 22.99, "Métal alcalin", "Solide", "Argenté", 0.968, 97.72,
50
+ // "[Ne] 3s1",
51
+ [2, 2, 6, 1], 1),
52
+ new Atome("Magnésium", "Mg", 12, 24.31, "Métal alcalino-terreux", "Solide", "Gris métallique", 1.738, 650,
53
+ // "[Ne] 3s2",
54
+ [2, 2, 6, 2], 2),
55
+ new Atome("Aluminium", "Al", 13, 26.98, "Métal pauvre", "Solide", "Argenté", 2.7, 660.32,
56
+ // "[Ne] 3s2 3p1",
57
+ [2, 2, 6, 2, 1], 3),
58
+ new Atome("Silicium", "Si", 14, 28.09, "Métalloïde", "Solide", "Bleu-gris", 2.3296, 1414,
59
+ // "[Ne] 3s2 3p2",
60
+ [2, 2, 6, 2, 2], 4),
61
+ new Atome("Phosphore", "P", 15, 30.97, "Non-métal", "Solide", "Blanc", 1.82, 44.15,
62
+ // "[Ne] 3s2 3p3",
63
+ [2, 2, 6, 2, 3], 5),
64
+ new Atome("Soufre", "S", 16, 32.07, "Non-métal", "Solide", "Jaune", 2.067, 115.21,
65
+ // "[Ne] 3s2 3p4",
66
+ [2, 2, 6, 2, 4], 6),
67
+ new Atome("Chlore", "Cl", 17, 35.45, "Halogène", "Gaz", "Vert pâle", 0.003214, -101.5,
68
+ // "[Ne] 3s2 3p5",
69
+ [2, 2, 6, 2, 5], 7),
70
+ new Atome("Argon", "Ar", 18, 39.95, "Gaz noble", "Gaz", "Incolore", 1.3954, -189.34,
71
+ // "[Ne] 3s2 3p6",
72
+ [2, 2, 6, 2, 6], 8),
73
+ //Next atoms do not have valence number & electronic configuration for now
74
+ new Atome("Potassium", "K", 19, 39.1, "Métal alcalin", "Solide", "Argenté", 0.856, 63.38),
75
+ new Atome("Calcium", "Ca", 20, 40.08, "Métal alcalino-terreux", "Solide", "Argenté", 1.55, 842),
76
+ new Atome("Scandium", "Sc", 21, 44.96, "Métal de transition", "Solide", "Argenté", 2.989, 1541),
77
+ new Atome("Titane", "Ti", 22, 47.87, "Métal de transition", "Solide", "Argenté", 4.54, 1660),
78
+ new Atome("Vanadium", "V", 23, 50.94, "Métal de transition", "Solide", "Argenté", 6.11, 1910),
79
+ new Atome("Chrome", "Cr", 24, 52.0, "Métal de transition", "Solide", "Argenté", 7.15, 1857),
80
+ new Atome("Manganèse", "Mn", 25, 54.94, "Métal de transition", "Solide", "Argenté", 7.44, 1244),
81
+ new Atome("Fer", "Fe", 26, 55.85, "Métal de transition", "Solide", "Argenté", 7.874, 1538),
82
+ new Atome("Cobalt", "Co", 27, 58.93, "Métal de transition", "Solide", "Argenté", 8.86, 1495),
83
+ new Atome("Nickel", "Ni", 28, 58.69, "Métal de transition", "Solide", "Argenté", 8.912, 1455),
84
+ new Atome("Cuivre", "Cu", 29, 63.55, "Métal de transition", "Solide", "Rouge métallique", 8.92, 1357.77),
85
+ new Atome("Zinc", "Zn", 30, 65.38, "Métal de transition", "Solide", "Gris bleuâtre", 7.134, 692.68),
86
+ new Atome("Gallium", "Ga", 31, 69.72, "Métal pauvre", "Solide", "Argenté", 5.907, 302.9146),
87
+ new Atome("Germanium", "Ge", 32, 72.63, "Métalloïde", "Solide", "Gris", 5.323, 1211.4),
88
+ new Atome("Arsenic", "As", 33, 74.92, "Métalloïde", "Solide", "Gris métallique", 5.776, 1090),
89
+ new Atome("Sélénium", "Se", 34, 78.97, "Non-métal", "Solide", "Gris-noir", 4.809, 494),
90
+ new Atome("Brome", "Br", 35, 79.9, "Halogène", "Liquide", "Rouge foncé", 3.122, -7.2),
91
+ new Atome("Krypton", "Kr", 36, 83.8, "Gaz noble", "Gaz", "Incolore", 0.003749, -157.36),
92
+ new Atome("Rubidium", "Rb", 37, 85.47, "Métal alcalin", "Solide", "Argenté", 1.532, 312.45),
93
+ new Atome("Strontium", "Sr", 38, 87.62, "Métal alcalino-terreux", "Solide", "Argenté", 2.64, 1050),
94
+ new Atome("Yttrium", "Y", 39, 88.91, "Métal de transition", "Solide", "Argenté", 4.472, 1799),
95
+ new Atome("Zirconium", "Zr", 40, 91.22, "Métal de transition", "Solide", "Argenté", 6.52, 2128),
96
+ new Atome("Niobium", "Nb", 41, 92.91, "Métal de transition", "Solide", "Argenté", 8.57, 2750),
97
+ new Atome("Molybdène", "Mo", 42, 95.95, "Métal de transition", "Solide", "Argenté", 10.22, 2896),
98
+ new Atome("Technétium", "Tc", 43, 98, "Métal de transition", "Solide", "Argenté", 11.49, 2430),
99
+ new Atome("Ruthénium", "Ru", 44, 101.07, "Métal de transition", "Solide", "Argenté", 12.37, 2607),
100
+ new Atome("Rhodium", "Rh", 45, 102.91, "Métal de transition", "Solide", "Argenté", 12.41, 2237),
101
+ new Atome("Palladium", "Pd", 46, 106.42, "Métal de transition", "Solide", "Argenté", 12.02, 1828.05),
102
+ new Atome("Argent", "Ag", 47, 107.87, "Métal de transition", "Solide", "Blanc argenté", 10.49, 1234.93),
103
+ new Atome("Cadmium", "Cd", 48, 112.41, "Métal de transition", "Solide", "Blanc argenté", 8.65, 594.22),
104
+ new Atome("Indium", "In", 49, 114.82, "Métal pauvre", "Solide", "Blanc argenté", 7.31, 429.75),
105
+ new Atome("Étain", "Sn", 50, 118.71, "Métal pauvre", "Solide", "Blanc argenté", 7.31, 505.08),
106
+ new Atome("Antimoine", "Sb", 51, 121.76, "Métalloïde", "Solide", "Blanc argenté", 6.68, 903.78),
107
+ new Atome("Tellure", "Te", 52, 127.6, "Métalloïde", "Solide", "Blanc argenté", 6.24, 722.66),
108
+ new Atome("Iode", "I", 53, 126.9, "Halogène", "Solide", "Noir brillant", 4.94, 386.85),
109
+ new Atome("Xénon", "Xe", 54, 131.29, "Gaz noble", "Gaz", "Incolore", 0.005887, -111.75),
110
+ new Atome("Césium", "Cs", 55, 132.91, "Métal alcalin", "Solide", "Or jaune", 1.873, 301.59),
111
+ new Atome("Baryum", "Ba", 56, 137.33, "Métal alcalino-terreux", "Solide", "Argenté", 3.594, 1000),
112
+ new Atome("Lanthane", "La", 57, 138.91, "Lanthanide", "Solide", "Argenté", 6.145, 1193),
113
+ new Atome("Cérium", "Ce", 58, 140.12, "Lanthanide", "Solide", "Argenté", 6.77, 1068),
114
+ new Atome("Praséodyme", "Pr", 59, 140.91, "Lanthanide", "Solide", "Argenté", 6.77, 1208),
115
+ new Atome("Néodyme", "Nd", 60, 144.24, "Lanthanide", "Solide", "Argenté", 7.01, 1297),
116
+ new Atome("Prométhium", "Pm", 61, 145, "Lanthanide", "Solide", "Argenté", 7.26, 1315),
117
+ new Atome("Samarium", "Sm", 62, 150.36, "Lanthanide", "Solide", "Argenté", 7.52, 1345),
118
+ new Atome("Europium", "Eu", 63, 152.0, "Lanthanide", "Solide", "Argenté", 5.24, 1095),
119
+ new Atome("Gadolinium", "Gd", 64, 157.25, "Lanthanide", "Solide", "Argenté", 7.89, 1585),
120
+ new Atome("Térbium", "Tb", 65, 158.93, "Lanthanide", "Solide", "Argenté", 8.23, 1629),
121
+ new Atome("Dysprosium", "Dy", 66, 162.5, "Lanthanide", "Solide", "Argenté", 8.55, 1680),
122
+ new Atome("Holmium", "Ho", 67, 164.93, "Lanthanide", "Solide", "Argenté", 8.795, 1734),
123
+ new Atome("Erbium", "Er", 68, 167.26, "Lanthanide", "Solide", "Argenté", 9.066, 1802),
124
+ new Atome("Thulium", "Tm", 69, 168.93, "Lanthanide", "Solide", "Argenté", 9.321, 1818),
125
+ new Atome("Ytterbium", "Yb", 70, 173.05, "Lanthanide", "Solide", "Argenté", 6.965, 1092),
126
+ new Atome("Lutétium", "Lu", 71, 175.0, "Lanthanide", "Solide", "Argenté", 9.84, 1925),
127
+ new Atome("Hafnium", "Hf", 72, 178.49, "Métal de transition", "Solide", "Argenté", 13.31, 2506),
128
+ new Atome("Tantale", "Ta", 73, 180.95, "Métal de transition", "Solide", "Gris bleuâtre", 16.65, 3290),
129
+ new Atome("Tungstène", "W", 74, 183.84, "Métal de transition", "Solide", "Gris acier", 19.25, 3695),
130
+ new Atome("Rhénium", "Re", 75, 186.21, "Métal de transition", "Solide", "Argenté", 21.02, 3459),
131
+ new Atome("Osmium", "Os", 76, 190.23, "Métal de transition", "Solide", "Argenté bleuté", 22.59, 3306),
132
+ new Atome("Iridium", "Ir", 77, 192.22, "Métal de transition", "Solide", "Blanc argenté", 22.56, 2719),
133
+ new Atome("Platine", "Pt", 78, 195.08, "Métal de transition", "Solide", "Argenté", 21.45, 2041.4),
134
+ new Atome("Or", "Au", 79, 196.97, "Métal de transition", "Solide", "Jaune", 19.32, 1337.33),
135
+ new Atome("Mercure", "Hg", 80, 200.59, "Métal de transition", "Liquide", "Argenté", 13.55, -38.83),
136
+ new Atome("Thallium", "Tl", 81, 204.38, "Métal pauvre", "Solide", "Blanc argenté", 11.85, 577),
137
+ new Atome("Plomb", "Pb", 82, 207.2, "Métal pauvre", "Solide", "Bleu-gris", 11.34, 600.61),
138
+ new Atome("Bismuth", "Bi", 83, 208.98, "Métal pauvre", "Solide", "Blanc argenté", 9.8, 544.4),
139
+ new Atome("Polonium", "Po", 84, 209, "Métalloïde", "Solide", "Argenté", 9.32, 527),
140
+ new Atome("Astate", "At", 85, 210, "Halogène", "Solide", "Inconnue", 7, 575),
141
+ new Atome("Radon", "Rn", 86, 222, "Gaz noble", "Gaz", "Incolore", 0.00973, -61.85),
142
+ new Atome("Francium", "Fr", 87, 223, "Métal alcalin", "Solide", "Argenté", 1.87, 300),
143
+ new Atome("Radium", "Ra", 88, 226, "Métal alcalino-terreux", "Solide", "Argenté", 5.5, 973),
144
+ new Atome("Actinium", "Ac", 89, 227, "Actinide", "Solide", "Argenté", 10.07, 1323),
145
+ new Atome("Thorium", "Th", 90, 232.04, "Actinide", "Solide", "Argenté", 11.72, 2023),
146
+ new Atome("Protactinium", "Pa", 91, 231.04, "Actinide", "Solide", "Argenté", 15.37, 1841),
147
+ new Atome("Uranium", "U", 92, 238.03, "Actinide", "Solide", "Argenté", 19.05, 1405),
148
+ new Atome("Neptunium", "Np", 93, 237, "Actinide", "Solide", "Inconnue", 20.25, 912),
149
+ new Atome("Plutonium", "Pu", 94, 244, "Actinide", "Solide", "Argenté", 19.86, 912.5),
150
+ new Atome("Américium", "Am", 95, 243, "Actinide", "Solide", "Argenté", 13.67, 1449),
151
+ new Atome("Curium", "Cm", 96, 247, "Actinide", "Solide", "Argenté", 13.51, 1613),
152
+ new Atome("Berkélium", "Bk", 97, 247, "Actinide", "Solide", "Inconnue", 14.78, 1323),
153
+ new Atome("Californium", "Cf", 98, 251, "Actinide", "Solide", "Inconnue", 15.1, 1173),
154
+ new Atome("Einsteinium", "Es", 99, 252, "Actinide", "Solide", "Inconnue", 8.84, 1133),
155
+ new Atome("Fermium", "Fm", 100, 257, "Actinide", "Solide", "Inconnue", 9.7, 1800),
156
+ new Atome("Mendélévium", "Md", 101, 258, "Actinide", "Solide", "Inconnue", 10.3, 1100),
157
+ new Atome("Nobelium", "No", 102, 259, "Actinide", "Solide", "Inconnue", 9.9, 1100),
158
+ new Atome("Lawrencium", "Lr", 103, 262, "Actinide", "Solide", "Inconnue", 15.6, 1900),
159
+ new Atome("Rutherfordium", "Rf", 104, 267, "Métal de transition", "Inconnue", "Inconnue", 23.2, 2400),
160
+ new Atome("Dubnium", "Db", 105, 270, "Métal de transition", "Inconnue", "Inconnue", 29.3, 2370),
161
+ new Atome("Seaborgium", "Sg", 106, 271, "Métal de transition", "Inconnue", "Inconnue", 35, 2273),
162
+ new Atome("Bohrium", "Bh", 107, 270, "Métal de transition", "Inconnue", "Inconnue", 37.1, 0),
163
+ new Atome("Hassium", "Hs", 108, 277, "Métal de transition", "Inconnue", "Inconnue", 40.7, 0),
164
+ new Atome("Meitnérium", "Mt", 109, 278, "Métal de transition", "Inconnue", "Inconnue", 37.4, 0),
165
+ new Atome("Darmstadtium", "Ds", 110, 281, "Métal de transition", "Inconnue", "Inconnue", 34.8, 0),
166
+ new Atome("Roentgenium", "Rg", 111, 282, "Métal de transition", "Inconnue", "Inconnue", 28.7, 0),
167
+ new Atome("Copernicium", "Cn", 112, 285, "Métal de transition", "Inconnue", "Inconnue", 23.7, 0),
168
+ new Atome("Nihonium", "Nh", 113, 286, "Métal pauvre", "Inconnue", "Inconnue", 16, 0),
169
+ new Atome("Flerovium", "Fl", 114, 289, "Métal pauvre", "Inconnue", "Inconnue", 14, 0),
170
+ new Atome("Moscovium", "Mc", 115, 290, "Métal pauvre", "Inconnue", "Inconnue", 13.5, 0),
171
+ new Atome("Livermorium", "Lv", 116, 293, "Métal pauvre", "Inconnue", "Inconnue", 12.9, 0),
172
+ new Atome("Tennessine", "Ts", 117, 294, "Hallogène", "Inconnue", "Inconnue", 7.2, 0),
173
+ new Atome("Oganesson", "Og", 118, 294, "Gaz noble", "Inconnue", "Inconnue", 4.9, 0),
138
174
  ];
@@ -9,15 +9,16 @@ type AtomsData = {
9
9
  count: number;
10
10
  };
11
11
  export declare class Molecule {
12
- name: KeyId;
12
+ name: string;
13
13
  formula: string;
14
+ keyId: KeyId;
14
15
  weight: number;
15
16
  atoms: AtomsData[];
16
17
  isOrganic: boolean;
17
18
  state: "solid" | "liquid" | "gas" | "aqueous";
18
19
  iupact?: string;
19
20
  type?: string;
20
- constructor(name: KeyId, formula: string, weight: number, atoms: AtomShortcut[], isOrganic: boolean, state: "solid" | "liquid" | "gas" | "aqueous", iupact?: string, type?: string);
21
+ constructor(name: string, formula: string, weight: number, atoms: AtomShortcut[], isOrganic: boolean, state: "solid" | "liquid" | "gas" | "aqueous", iupact?: string, type?: string);
21
22
  }
22
23
  export declare const molecules: Molecule[];
23
24
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"molecule.d.ts","sourceRoot":"","sources":["../../../src/pc/molecularChemistry/molecule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAU,MAAM,SAAS,CAAC;AAExC,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AACD,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AACF,qBAAa,QAAQ;IACnB,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;gBAGZ,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,EAC7C,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM;CAgBhB;AAED,eAAO,MAAM,SAAS,YA43CrB,CAAC"}
1
+ {"version":3,"file":"molecule.d.ts","sourceRoot":"","sources":["../../../src/pc/molecularChemistry/molecule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAU,MAAM,SAAS,CAAC;AAExC,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AACD,KAAK,SAAS,GAAG;IACf,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAYF,qBAAa,QAAQ;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;gBAGZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,EAC7C,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM;CAiBhB;AAED,eAAO,MAAM,SAAS,YA43CrB,CAAC"}
@@ -2,10 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.molecules = exports.Molecule = void 0;
4
4
  const atome_1 = require("./atome");
5
+ const getId = (s) => {
6
+ return ("Mol-" +
7
+ s
8
+ .replaceAll("(", "")
9
+ .replaceAll(")", "")
10
+ .replaceAll("_", "")
11
+ .replaceAll("^", "")
12
+ .replaceAll("{", "")
13
+ .replaceAll("}", ""));
14
+ };
5
15
  class Molecule {
6
16
  constructor(name, formula, weight, atoms, isOrganic, state, iupact, type) {
7
17
  this.name = name;
8
18
  this.formula = formula;
19
+ this.keyId = getId(formula);
9
20
  this.weight = weight;
10
21
  this.atoms = atoms.map((atomData) => {
11
22
  return {
@@ -20,7 +20,8 @@ export declare class Reaction {
20
20
  getReactionWithQuestionMark(specieIndexWithQuestionMark: number): string;
21
21
  getUniqueAtomNames(): KeyId[];
22
22
  getSpeciesFormula(): string[];
23
- getSpeciesName(): KeyId[];
23
+ getSpeciesName(): string[];
24
+ getKeyIds(): KeyId[];
24
25
  }
25
26
  export { molecules };
26
27
  //# sourceMappingURL=reaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../../../src/pc/molecularChemistry/reaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,8BAAsB,mBAAmB;IACvC,MAAM,CAAC,cAAc,IAAI,QAAQ;CAqVlC;AAED,qBAAa,QAAQ;IACnB,aAAa,EAAE,eAAe,EAAE,CAAC;gBAErB,aAAa,EAAE,eAAe,EAAE;IAI5C,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,kBAAkB;IAU1B,iBAAiB,IAAI,MAAM;IAU3B,sBAAsB,IAAI,MAAM;IAchC,wBAAwB,IAAI,MAAM;IAsBlC,OAAO,CAAC,oBAAoB;IAwB5B,2BAA2B,CAAC,2BAA2B,EAAE,MAAM,GAAG,MAAM;IAgCxE,kBAAkB,IAAI,KAAK,EAAE;IAc7B,iBAAiB,IAAI,MAAM,EAAE;IAW7B,cAAc,IAAI,KAAK,EAAE;CAW1B;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../../../src/pc/molecularChemistry/reaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,8BAAsB,mBAAmB;IACvC,MAAM,CAAC,cAAc,IAAI,QAAQ;CAqVlC;AAED,qBAAa,QAAQ;IACnB,aAAa,EAAE,eAAe,EAAE,CAAC;gBAErB,aAAa,EAAE,eAAe,EAAE;IAI5C,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,kBAAkB;IAU1B,iBAAiB,IAAI,MAAM;IAU3B,sBAAsB,IAAI,MAAM;IAchC,wBAAwB,IAAI,MAAM;IAsBlC,OAAO,CAAC,oBAAoB;IAwB5B,2BAA2B,CAAC,2BAA2B,EAAE,MAAM,GAAG,MAAM;IAgCxE,kBAAkB,IAAI,KAAK,EAAE;IAc7B,iBAAiB,IAAI,MAAM,EAAE;IAW7B,cAAc,IAAI,MAAM,EAAE;IAW1B,SAAS,IAAI,KAAK,EAAE;CAWrB;AACD,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -458,5 +458,14 @@ class Reaction {
458
458
  }
459
459
  return speciesFormula;
460
460
  }
461
+ getKeyIds() {
462
+ const speciesFormula = [];
463
+ for (const reactionSpecies of this.reactionArray) {
464
+ if (reactionSpecies.species) {
465
+ speciesFormula.push(reactionSpecies.species.keyId);
466
+ }
467
+ }
468
+ return speciesFormula;
469
+ }
461
470
  }
462
471
  exports.Reaction = Reaction;
package/lib/server.d.ts CHANGED
@@ -3,6 +3,7 @@ declare global {
3
3
  interface Number {
4
4
  toTree: () => AlgebraicNode;
5
5
  frenchify: () => string;
6
+ toScientific: (decimals?: number) => AlgebraicNode;
6
7
  }
7
8
  }
8
9
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAW3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,aAAa,CAAC;QAC5B,SAAS,EAAE,MAAM,MAAM,CAAC;KACzB;CACF"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAoB3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,aAAa,CAAC;QAC5B,SAAS,EAAE,MAAM,MAAM,CAAC;QACxB,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,aAAa,CAAC;KACpD;CACF"}
package/lib/server.js CHANGED
@@ -35,6 +35,7 @@ const dotenv_1 = __importDefault(require("dotenv"));
35
35
  const cors_1 = __importDefault(require("cors"));
36
36
  const numberNode_1 = require("./tree/nodes/numbers/numberNode");
37
37
  const infiniteNode_1 = require("./tree/nodes/numbers/infiniteNode");
38
+ const toScientific_1 = require("./utils/numberPrototype/toScientific");
38
39
  const jsonParser = body_parser_1.default.json();
39
40
  const mathExercises = Object.values(MathExercises);
40
41
  const pcExercises = Object.values(PCExercises);
@@ -50,12 +51,16 @@ Number.prototype.toTree = function () {
50
51
  Number.prototype.frenchify = function () {
51
52
  return (this.valueOf() + "").replace(".", ",");
52
53
  };
54
+ Number.prototype.toScientific = function (decimals) {
55
+ return (0, toScientific_1.toScientific)(this.valueOf(), decimals);
56
+ };
53
57
  const runServer = () => {
54
58
  dotenv_1.default.config();
55
59
  const app = (0, express_1.default)();
56
60
  app.use((0, cors_1.default)());
57
61
  console.log("math exos", mathExercises.length);
58
62
  console.log("pc exos", pcExercises.length);
63
+ // console.log(new Measure(1.43, 20).times(new Measure(1.2, -4)).toTex());
59
64
  app.get("/", (req, res) => {
60
65
  res.json(allExercises);
61
66
  });
@@ -3,6 +3,7 @@ export type SimplifyOptions = {
3
3
  forbidFactorize?: boolean;
4
4
  forceDistributeFractions?: boolean;
5
5
  keepPowers?: boolean;
6
+ scientific?: number;
6
7
  };
7
8
  export interface AlgebraicNode extends Node {
8
9
  evaluate: (vars: Record<string, number>) => number;
@@ -1 +1 @@
1
- {"version":3,"file":"algebraicNode.d.ts","sourceRoot":"","sources":["../../../src/tree/nodes/algebraicNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF,MAAM,WAAW,aAAc,SAAQ,IAAI;IAEzC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;IACnD,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,aAAa,EAAE,CAAC;IAC3D,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,eAAe,KAAK,aAAa,CAAC;IACpD,MAAM,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;CACpB"}
1
+ {"version":3,"file":"algebraicNode.d.ts","sourceRoot":"","sources":["../../../src/tree/nodes/algebraicNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,WAAW,aAAc,SAAQ,IAAI;IAEzC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;IACnD,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,aAAa,EAAE,CAAC;IAC3D,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,eAAe,KAAK,aAAa,CAAC;IACpD,MAAM,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC;IACzC,SAAS,EAAE,OAAO,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"complexNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/complex/complexNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOtD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,WAAY,YAAW,IAAI;IACtC,EAAE,EAAE,aAAa,CAAC;IAClB,EAAE,EAAE,aAAa,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAmB;gBAErB,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,WAAW;IAKpE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,EAAE;IAkBtD,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE;IAI5C,YAAY,IAAI,MAAM;IAGtB,KAAK,IAAI,MAAM;CAiBhB"}
1
+ {"version":3,"file":"complexNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/complex/complexNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAItD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,WAAY,YAAW,IAAI;IACtC,EAAE,EAAE,aAAa,CAAC;IAClB,EAAE,EAAE,aAAa,CAAC;IAClB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAmB;gBAErB,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,WAAW;IAKpE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,aAAa,EAAE;IAkBtD,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE;IAI5C,YAAY,IAAI,MAAM;IAGtB,KAAK,IAAI,MAAM;CAiBhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"equalNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/equations/equalNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGtD,qBAAa,SAAU,YAAW,IAAI;IACpC,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;gBACH,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,WAAW;IAOjE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW;IAmBpC,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE;IAM5C,YAAY,IAAI,MAAM;IAGtB,KAAK,IAAI,MAAM;CAOhB"}
1
+ {"version":3,"file":"equalNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/equations/equalNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,SAAU,YAAW,IAAI;IACpC,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;gBACH,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,WAAW;IAOjE,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW;IAmBpC,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE;IAM5C,YAAY,IAAI,MAAM;IAGtB,KAAK,IAAI,MAAM;CAUhB"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EqualNode = void 0;
4
- // import { equal } from "mathjs";
5
4
  const node_1 = require("../node");
6
5
  class EqualNode {
7
6
  constructor(leftChild, rightChild, opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"cosNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/functions/cosNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAmB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAkB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,OAAO,CAE/C;AACD,qBAAa,OAAQ,YAAW,YAAY;IAC1C,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;gBACP,KAAK,EAAE,aAAa;IAOhC,YAAY,IAAI,MAAM;IAItB,iBAAiB,IAAI,aAAa,EAAE;IASpC,cAAc,IAAI,MAAM,EAAE;IAI1B,KAAK,IAAI,MAAM;IAQf,QAAQ;IAkBR,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAGrC,MAAM,CAAC,IAAI,EAAE,aAAa;CAG3B"}
1
+ {"version":3,"file":"cosNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/functions/cosNode.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAmB,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,YAAY,EAAkB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,wBAAgB,SAAS,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,OAAO,CAE/C;AACD,qBAAa,OAAQ,YAAW,YAAY;IAC1C,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;gBACP,KAAK,EAAE,aAAa;IAOhC,YAAY,IAAI,MAAM;IAItB,iBAAiB,IAAI,aAAa,EAAE;IASpC,cAAc,IAAI,MAAM,EAAE;IAI1B,KAAK,IAAI,MAAM;IAQf,QAAQ;IAkBR,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAGrC,MAAM,CAAC,IAAI,EAAE,aAAa;CAG3B"}
@@ -25,6 +25,7 @@ export type NodeOptions = {
25
25
  };
26
26
  export type ToTexOptions = {
27
27
  displayStyle?: boolean;
28
+ scientific?: number;
28
29
  };
29
30
  export interface Node {
30
31
  type: NodeType;
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/tree/nodes/node.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAClB,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,GAAG,IAAA;IACH,UAAU,IAAA;IACV,KAAK,IAAA;IACL,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,OAAO,KAAA;IACP,MAAM,KAAA;CACP;AACD,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AACF,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,EAAE,CAAC;IAClD,cAAc,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,YAAY,KAAK,MAAM,CAAC;CAGxC;AAED,eAAO,MAAM,eAAe,MAAO,IAAI,KAAG,OAMzC,CAAC"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/tree/nodes/node.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAClB,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,GAAG,IAAA;IACH,UAAU,IAAA;IACV,KAAK,IAAA;IACL,MAAM,IAAA;IACN,QAAQ,IAAA;IACR,OAAO,KAAA;IACP,MAAM,KAAA;CACP;AACD,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,iBAAiB,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,IAAI,EAAE,CAAC;IAClD,cAAc,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,YAAY,KAAK,MAAM,CAAC;CAGxC;AAED,eAAO,MAAM,eAAe,MAAO,IAAI,KAAG,OAMzC,CAAC"}
@@ -17,7 +17,7 @@ class NumberNode {
17
17
  constructor(value, tex, mathString) {
18
18
  this.type = node_1.NodeType.number;
19
19
  this.value = value;
20
- this.tex = tex || (value + "").replace(".", ",");
20
+ this.tex = tex?.replace(".", ",") || (value + "").replace(".", ",");
21
21
  this.mathString = mathString || this.value + "";
22
22
  this.isNumeric = true;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"piNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/numbers/piNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,eAAO,MAAM,MAAM,cAA0C,CAAC"}
1
+ {"version":3,"file":"piNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/numbers/piNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,MAAM,cAA0C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Node, NodeOptions, NodeType } from "../node";
1
+ import { Node, NodeOptions, NodeType, ToTexOptions } from "../node";
2
2
  import { CommutativeOperatorNode, OperatorIds } from "./operatorNode";
3
3
  import { AlgebraicNode, SimplifyOptions } from "../algebraicNode";
4
4
  export declare function isMultiplyNode(a: Node): a is MultiplyNode;
@@ -13,7 +13,7 @@ export declare class MultiplyNode implements CommutativeOperatorNode {
13
13
  constructor(leftChild: AlgebraicNode, rightChild: AlgebraicNode, opts?: NodeOptions);
14
14
  shuffle: () => void;
15
15
  toMathString(): string;
16
- toTex(): string;
16
+ toTex(opts?: ToTexOptions): string;
17
17
  toAllTexs(): string[];
18
18
  toEquivalentNodes(opts?: NodeOptions): MultiplyNode[];
19
19
  toAllValidTexs(opts?: NodeOptions): string[];