math-exercises 2.2.4 → 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 (224) 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/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/scaleUsage.js +1 -1
  20. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  21. package/lib/exercises/math/calcul/rounding/rounding.js +18 -0
  22. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
  23. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +1 -0
  24. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
  25. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +1 -0
  26. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  27. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +31 -1
  28. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts.map +1 -1
  29. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +11 -2
  30. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  31. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +21 -2
  32. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  33. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +23 -2
  34. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  35. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +17 -2
  36. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  37. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +21 -2
  38. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  39. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +26 -1
  40. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  41. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +18 -2
  42. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  43. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +19 -2
  44. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  45. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +15 -2
  46. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  47. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +20 -5
  48. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  49. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +24 -1
  50. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.d.ts.map +1 -1
  51. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +20 -1
  52. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.d.ts.map +1 -1
  53. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType2.js +19 -3
  54. package/lib/exercises/math/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  55. package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +24 -8
  56. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  57. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +21 -2
  58. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  59. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +24 -4
  60. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  61. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +25 -5
  62. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  63. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +19 -0
  64. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  65. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +1 -0
  66. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts +8 -0
  67. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -0
  68. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +77 -0
  69. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts +8 -0
  70. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -0
  71. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +80 -0
  72. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +2 -0
  73. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
  74. package/lib/exercises/math/calculLitteral/factorisation/index.js +2 -0
  75. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.d.ts.map +1 -1
  76. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.js +1 -0
  77. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
  78. package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +12 -2
  79. package/lib/exercises/math/functions/trinoms/index.d.ts +2 -0
  80. package/lib/exercises/math/functions/trinoms/index.d.ts.map +1 -1
  81. package/lib/exercises/math/functions/trinoms/index.js +2 -0
  82. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.d.ts +5 -0
  83. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.d.ts.map +1 -0
  84. package/lib/exercises/math/functions/trinoms/solveEquationByFactorisation.js +44 -0
  85. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.d.ts +9 -0
  86. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.d.ts.map +1 -0
  87. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.js +134 -0
  88. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.d.ts +7 -0
  89. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.d.ts.map +1 -0
  90. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationFromCano.js +59 -0
  91. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  92. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +1 -0
  93. package/lib/exercises/math/index.d.ts +1 -0
  94. package/lib/exercises/math/index.d.ts.map +1 -1
  95. package/lib/exercises/math/index.js +1 -0
  96. package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
  97. package/lib/exercises/math/percent/applyPercent.js +20 -2
  98. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts +11 -0
  99. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -0
  100. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +49 -0
  101. package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -0
  102. package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
  103. package/lib/exercises/math/sequences/arithmetic/index.js +1 -0
  104. package/lib/exercises/math/spaceGeometry/index.d.ts +2 -0
  105. package/lib/exercises/math/spaceGeometry/index.d.ts.map +1 -0
  106. package/lib/exercises/math/spaceGeometry/index.js +17 -0
  107. package/lib/exercises/math/spaceGeometry/vectors/index.d.ts +4 -0
  108. package/lib/exercises/math/spaceGeometry/vectors/index.d.ts.map +1 -0
  109. package/lib/exercises/math/spaceGeometry/vectors/index.js +19 -0
  110. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts +5 -0
  111. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -0
  112. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +52 -0
  113. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.d.ts +5 -0
  114. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.d.ts.map +1 -0
  115. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorLinearCombinationCoords.js +62 -0
  116. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts +9 -0
  117. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts.map +1 -0
  118. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.js +54 -0
  119. package/lib/exercises/math/squareRoots/squareRootIdentities.js +3 -3
  120. package/lib/exercises/math/suites/sequencePlot.d.ts.map +1 -1
  121. package/lib/exercises/math/suites/sequencePlot.js +1 -2
  122. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts.map +1 -1
  123. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -0
  124. package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
  125. package/lib/exercises/pc/calibrationCurveOfSolution.js +1 -0
  126. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts.map +1 -1
  127. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +1 -0
  128. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.d.ts.map +1 -1
  129. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +1 -0
  130. package/lib/exercises/pc/chemicalReactions/calculateSynthesisEfficiency.d.ts.map +1 -1
  131. package/lib/exercises/pc/chemicalReactions/calculateSynthesisEfficiency.js +1 -0
  132. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.d.ts.map +1 -1
  133. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.js +1 -0
  134. package/lib/exercises/pc/dosage/beerLambertRandomValue.d.ts.map +1 -1
  135. package/lib/exercises/pc/dosage/beerLambertRandomValue.js +1 -0
  136. package/lib/exercises/pc/dosage/concentrationCalculation.d.ts.map +1 -1
  137. package/lib/exercises/pc/dosage/concentrationCalculation.js +1 -0
  138. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts.map +1 -1
  139. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.js +1 -0
  140. package/lib/exercises/pc/electricity/calculateIntensity.js +1 -1
  141. package/lib/exercises/pc/electricity/calculateVoltage.d.ts.map +1 -1
  142. package/lib/exercises/pc/electricity/calculateVoltage.js +1 -0
  143. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.d.ts.map +1 -1
  144. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +1 -0
  145. package/lib/exercises/pc/electricity/ohmLaw.d.ts.map +1 -1
  146. package/lib/exercises/pc/electricity/ohmLaw.js +1 -0
  147. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
  148. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +1 -0
  149. package/lib/exercises/pc/energy/calorificValue.d.ts.map +1 -1
  150. package/lib/exercises/pc/energy/calorificValue.js +1 -0
  151. package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts.map +1 -1
  152. package/lib/exercises/pc/energy/combustionTransferEnergy.js +1 -0
  153. package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts.map +1 -1
  154. package/lib/exercises/pc/energy/combustionTransferEnergy2.js +1 -0
  155. package/lib/exercises/pc/energy/efficencyOfConverter.d.ts.map +1 -1
  156. package/lib/exercises/pc/energy/efficencyOfConverter.js +1 -0
  157. package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -1
  158. package/lib/exercises/pc/energy/efficiencyCalculation.js +1 -0
  159. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts.map +1 -1
  160. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +1 -0
  161. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -1
  162. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +1 -0
  163. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
  164. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +1 -0
  165. package/lib/exercises/pc/forces/electroStaticForce.d.ts.map +1 -1
  166. package/lib/exercises/pc/forces/electroStaticForce.js +1 -0
  167. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts.map +1 -1
  168. package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +1 -0
  169. package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts.map +1 -1
  170. package/lib/exercises/pc/forces/gravitationalForcePlanets.js +1 -0
  171. package/lib/exercises/pc/forces/massWeight.d.ts.map +1 -1
  172. package/lib/exercises/pc/forces/massWeight.js +1 -0
  173. package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -1
  174. package/lib/exercises/pc/motion/averageSpeed.js +1 -0
  175. package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts.map +1 -1
  176. package/lib/exercises/pc/motion/averageSpeedCalculation.js +1 -0
  177. package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
  178. package/lib/exercises/pc/motion/motionReference.js +1 -0
  179. package/lib/exercises/pc/pH.d.ts.map +1 -1
  180. package/lib/exercises/pc/pH.js +1 -0
  181. package/lib/exercises/pc/power/calculatePowerOfLight.d.ts.map +1 -1
  182. package/lib/exercises/pc/power/calculatePowerOfLight.js +1 -0
  183. package/lib/exercises/pc/spectral/spectralEnergy.d.ts.map +1 -1
  184. package/lib/exercises/pc/spectral/spectralEnergy.js +1 -0
  185. package/lib/exercises/pc/waves/lightDistanceConversion.d.ts.map +1 -1
  186. package/lib/exercises/pc/waves/lightDistanceConversion.js +1 -0
  187. package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts.map +1 -1
  188. package/lib/exercises/pc/waves/periodicWaveCelerity.js +1 -0
  189. package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -1
  190. package/lib/exercises/pc/weight/calculateWeight.js +1 -0
  191. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -1
  192. package/lib/exercises/pc/weight/weightOnTheMoon.js +1 -0
  193. package/lib/index.d.ts +28 -64
  194. package/lib/index.d.ts.map +1 -1
  195. package/lib/index.js +4 -0
  196. package/lib/math/geometry/spacePoint.d.ts +27 -0
  197. package/lib/math/geometry/spacePoint.d.ts.map +1 -0
  198. package/lib/math/geometry/spacePoint.js +80 -0
  199. package/lib/math/geometry/spaceVector.d.ts +28 -0
  200. package/lib/math/geometry/spaceVector.d.ts.map +1 -0
  201. package/lib/math/geometry/spaceVector.js +83 -0
  202. package/lib/math/numbers/decimals/decimal.d.ts +1 -0
  203. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
  204. package/lib/math/numbers/decimals/decimal.js +8 -0
  205. package/lib/math/numbers/rationals/rational.d.ts +1 -0
  206. package/lib/math/numbers/rationals/rational.d.ts.map +1 -1
  207. package/lib/math/numbers/rationals/rational.js +4 -0
  208. package/lib/playground.d.ts +2 -0
  209. package/lib/playground.d.ts.map +1 -0
  210. package/lib/playground.js +19 -0
  211. package/lib/server.d.ts +3 -0
  212. package/lib/server.d.ts.map +1 -1
  213. package/lib/server.js +6 -0
  214. package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -1
  215. package/lib/tree/nodes/equations/equationSolutionNode.js +8 -0
  216. package/lib/tree/nodes/node.d.ts +1 -0
  217. package/lib/tree/nodes/node.d.ts.map +1 -1
  218. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  219. package/lib/tree/nodes/operators/multiplyNode.js +8 -2
  220. package/lib/tree/nodes/operators/powerNode.js +1 -1
  221. package/lib/utils/alignTex.d.ts +2 -0
  222. package/lib/utils/alignTex.d.ts.map +1 -0
  223. package/lib/utils/alignTex.js +18 -0
  224. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.alignTex = void 0;
4
+ function alignTex(arr) {
5
+ //! le "&" avant les join sert à aligner à gauche
6
+ //! mais ca crée un manque d'espace moche
7
+ //! je pense qu'il faut changer d'environnement (align)
8
+ //! utiliser un autre genre array ou equation je sais pas
9
+ const aligned = `$$
10
+ \\begin{align*}
11
+ ${typeof arr === "string"
12
+ ? arr
13
+ : arr.map((el) => "&" + el.join("&")).join(` \\\\`)}
14
+ \\end{align*}
15
+ $$`;
16
+ return aligned;
17
+ }
18
+ exports.alignTex = alignTex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [