math-exercises 2.2.26 → 2.2.28

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 (476) 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/exercise.js +1 -1
  4. package/lib/exercises/math/calcul/addAndSub.js +1 -1
  5. package/lib/exercises/math/calcul/addAndSubWithoutRelatives.js +1 -1
  6. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +1 -1
  7. package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.js +1 -1
  8. package/lib/exercises/math/calcul/arithmetics/divisorsList.js +1 -1
  9. package/lib/exercises/math/calcul/arithmetics/paritySumsAndProducts.js +1 -1
  10. package/lib/exercises/math/calcul/decimals/multiplyDecimalByTens.js +1 -1
  11. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +1 -1
  12. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +1 -1
  13. package/lib/exercises/math/calcul/fractions/fractionAndIntegerSum.js +1 -1
  14. package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.js +1 -1
  15. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +1 -1
  16. package/lib/exercises/math/calcul/fractions/fractionsProduct.js +1 -1
  17. package/lib/exercises/math/calcul/fractions/fractionsSum.js +1 -1
  18. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.js +1 -1
  19. package/lib/exercises/math/calcul/fractions/simplifyFraction.js +1 -1
  20. package/lib/exercises/math/calcul/index.js +1 -0
  21. package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.js +2 -2
  22. package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.js +2 -2
  23. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.js +2 -2
  24. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationsNoRelative.js +2 -2
  25. package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.js +2 -2
  26. package/lib/exercises/math/calcul/operations/expressionNature.js +1 -1
  27. package/lib/exercises/math/calcul/operations/operationsPriorities.js +2 -2
  28. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.js +1 -1
  29. package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.js +1 -1
  30. package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.js +2 -2
  31. package/lib/exercises/math/calcul/ordering/decimalOrdering.js +1 -1
  32. package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +1 -1
  33. package/lib/exercises/math/calcul/ordering/framing.js +2 -2
  34. package/lib/exercises/math/calcul/ordering/integerOrdering.js +2 -2
  35. package/lib/exercises/math/calcul/proportionality/proportionalityTable.js +1 -1
  36. package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.js +1 -1
  37. package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +1 -1
  38. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +1 -1
  39. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  40. package/lib/exercises/math/calcul/rounding/rounding.js +5 -6
  41. package/lib/exercises/math/calcul/writing/index.d.ts +2 -0
  42. package/lib/exercises/math/calcul/writing/index.d.ts.map +1 -0
  43. package/lib/exercises/math/calcul/writing/index.js +17 -0
  44. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.d.ts +7 -0
  45. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.d.ts.map +1 -0
  46. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.js +67 -0
  47. package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +1 -1
  48. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +1 -1
  49. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +1 -1
  50. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +1 -1
  51. package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +1 -1
  52. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +1 -1
  53. package/lib/exercises/math/calculLitteral/equation/binomialsTrinomialsProposedSolutions.js +1 -1
  54. package/lib/exercises/math/calculLitteral/equation/equationFromSentenceExercise.js +1 -1
  55. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +3 -3
  56. package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +1 -1
  57. package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +1 -1
  58. package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +1 -1
  59. package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +1 -1
  60. package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +1 -1
  61. package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +1 -1
  62. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
  63. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +1 -1
  64. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +1 -1
  65. package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +2 -2
  66. package/lib/exercises/math/calculLitteral/factorisation/factoType2.js +1 -1
  67. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.js +2 -2
  68. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.js +2 -2
  69. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.js +2 -2
  70. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +2 -2
  71. package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.js +1 -1
  72. package/lib/exercises/math/calculLitteral/simplifying/distributeAndSimplify.js +1 -1
  73. package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.js +2 -2
  74. package/lib/exercises/math/calculLitteral/simplifying/reduceExpression.js +1 -1
  75. package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.js +1 -1
  76. package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.js +1 -1
  77. package/lib/exercises/math/calculLitteral/systems/verifySystemSolution.js +1 -1
  78. package/lib/exercises/math/combinatory/anagrams.js +1 -1
  79. package/lib/exercises/math/complex/addComplex.js +1 -1
  80. package/lib/exercises/math/complex/argumentFromAlgebraicComplex.js +1 -1
  81. package/lib/exercises/math/complex/conjugateComplex.ts.js +1 -1
  82. package/lib/exercises/math/complex/conjugateDivideComplex.js +1 -1
  83. package/lib/exercises/math/complex/conjugateMultiplyComplex.js +1 -1
  84. package/lib/exercises/math/complex/divideComplex.js +1 -1
  85. package/lib/exercises/math/complex/inverseComplex.js +1 -1
  86. package/lib/exercises/math/complex/linearCombinaisonComplex.js +1 -1
  87. package/lib/exercises/math/complex/mutiplyComplex.js +1 -1
  88. package/lib/exercises/math/complex/reAndIm.js +2 -2
  89. package/lib/exercises/math/conversion/aeraConversion.js +1 -1
  90. package/lib/exercises/math/conversion/capacityConversion.js +1 -1
  91. package/lib/exercises/math/conversion/hoursToDecimal.js +1 -1
  92. package/lib/exercises/math/conversion/lengthConversion.js +1 -1
  93. package/lib/exercises/math/conversion/massConversion.js +1 -1
  94. package/lib/exercises/math/conversion/volumeCapacityConversion.js +2 -2
  95. package/lib/exercises/math/conversion/volumeConversion.js +1 -1
  96. package/lib/exercises/math/derivation/derivative/convexityQuadrinomials.js +1 -1
  97. package/lib/exercises/math/derivation/derivative/lnDerivativeTwo.js +1 -1
  98. package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.js +1 -1
  99. package/lib/exercises/math/derivation/derivative/secondDegreeDerivative.js +1 -1
  100. package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +2 -2
  101. package/lib/exercises/math/derivation/tangent/derivativeNumberReading.js +1 -1
  102. package/lib/exercises/math/derivation/tangent/derivativeTangentEquationReading.js +1 -1
  103. package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +2 -2
  104. package/lib/exercises/math/equaDiff/equaDiffGeneralForme.js +1 -1
  105. package/lib/exercises/math/equaDiff/equaDiffGeneralFormeWithIC.js +1 -1
  106. package/lib/exercises/math/functions/absolute/absoluteValueEquations.js +2 -2
  107. package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +1 -1
  108. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +1 -1
  109. package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.js +1 -1
  110. package/lib/exercises/math/functions/affines/leadingCoefficient.js +1 -1
  111. package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.js +1 -1
  112. package/lib/exercises/math/functions/affines/leadingCoefficientCalculV2.js +1 -1
  113. package/lib/exercises/math/functions/affines/signFunction.js +2 -2
  114. package/lib/exercises/math/functions/basics/graphicEquation.js +1 -1
  115. package/lib/exercises/math/functions/basics/graphicInequation.js +1 -1
  116. package/lib/exercises/math/functions/basics/imageFunction.js +2 -2
  117. package/lib/exercises/math/functions/basics/imageFunctionGeogebra.js +2 -2
  118. package/lib/exercises/math/functions/basics/inverseImageFunction.js +1 -1
  119. package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +2 -2
  120. package/lib/exercises/math/functions/basics/inverseImageFunctionTable.js +3 -3
  121. package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +2 -2
  122. package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +2 -2
  123. package/lib/exercises/math/functions/cube/cubicEquation.js +1 -1
  124. package/lib/exercises/math/functions/exponential/expEquation.js +1 -1
  125. package/lib/exercises/math/functions/exponential/expSimplifiying.js +1 -1
  126. package/lib/exercises/math/functions/integral/integralExpU.js +1 -1
  127. package/lib/exercises/math/functions/integral/integralFractions.js +1 -1
  128. package/lib/exercises/math/functions/logarithm/log10Simplifying.js +1 -1
  129. package/lib/exercises/math/functions/logarithm/logEquation.js +1 -1
  130. package/lib/exercises/math/functions/logarithm/logSimplifiying.js +2 -2
  131. package/lib/exercises/math/functions/parity/parityFromAlgebra.js +3 -3
  132. package/lib/exercises/math/functions/parity/parityFromGraph.js +3 -3
  133. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.js +1 -1
  134. package/lib/exercises/math/functions/trinoms/alphaBetaFromDevForm.js +2 -2
  135. package/lib/exercises/math/functions/trinoms/alphaBetaInCanonicalForm.js +2 -2
  136. package/lib/exercises/math/functions/trinoms/canonicalFromDevForm.js +1 -1
  137. package/lib/exercises/math/functions/trinoms/deltaTrinom.js +1 -1
  138. package/lib/exercises/math/functions/trinoms/extremumFromCanonicalForm.js +1 -1
  139. package/lib/exercises/math/functions/trinoms/extremumTypeFromAlgebricForm.js +2 -2
  140. package/lib/exercises/math/functions/trinoms/factorizedFormFromRoots.js +1 -1
  141. package/lib/exercises/math/functions/trinoms/niceRootsFromDevForm.js +1 -1
  142. package/lib/exercises/math/functions/trinoms/rootsFromDevForm.js +1 -1
  143. package/lib/exercises/math/functions/trinoms/rootsFromFactorizedForm.js +1 -1
  144. package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.js +1 -1
  145. package/lib/exercises/math/functions/trinoms/variationsFromAlgebricForm.js +2 -2
  146. package/lib/exercises/math/geometry/areas/circleArea.js +2 -2
  147. package/lib/exercises/math/geometry/areas/rectangleArea.js +1 -1
  148. package/lib/exercises/math/geometry/areas/rightTriangleArea.js +1 -1
  149. package/lib/exercises/math/geometry/areas/squareArea.js +1 -1
  150. package/lib/exercises/math/geometry/areas/triangleArea.js +1 -1
  151. package/lib/exercises/math/geometry/areas/triangleAreaV2.js +1 -1
  152. package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.js +1 -1
  153. package/lib/exercises/math/geometry/cartesian/index.d.ts +4 -0
  154. package/lib/exercises/math/geometry/cartesian/index.d.ts.map +1 -1
  155. package/lib/exercises/math/geometry/cartesian/index.js +4 -0
  156. package/lib/exercises/math/geometry/cartesian/midpoint.js +1 -1
  157. package/lib/exercises/math/geometry/cartesian/placeAPoint.js +1 -1
  158. package/lib/exercises/math/geometry/cartesian/placeAbscissOnLine.d.ts +13 -0
  159. package/lib/exercises/math/geometry/cartesian/placeAbscissOnLine.d.ts.map +1 -0
  160. package/lib/exercises/math/geometry/cartesian/placeAbscissOnLine.js +133 -0
  161. package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.d.ts +13 -0
  162. package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.d.ts.map +1 -0
  163. package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.js +132 -0
  164. package/lib/exercises/math/geometry/cartesian/pointCoordinatesNoOrthonorm.js +1 -1
  165. package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.d.ts +13 -0
  166. package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.d.ts.map +1 -0
  167. package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.js +152 -0
  168. package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.d.ts +13 -0
  169. package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.d.ts.map +1 -0
  170. package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.js +153 -0
  171. package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +1 -1
  172. package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +1 -1
  173. package/lib/exercises/math/geometry/perimeters/circleCircumference.js +2 -2
  174. package/lib/exercises/math/geometry/perimeters/rectanglePerimeter.js +1 -1
  175. package/lib/exercises/math/geometry/perimeters/squarePerimeter.js +1 -1
  176. package/lib/exercises/math/geometry/perimeters/trianglePerimeter.js +1 -1
  177. package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.js +2 -2
  178. package/lib/exercises/math/geometry/thales/thales.js +1 -1
  179. package/lib/exercises/math/geometry/thales/thalesCalcul.js +2 -2
  180. package/lib/exercises/math/geometry/vectors/alignementViaColinearity.js +2 -2
  181. package/lib/exercises/math/geometry/vectors/chasles.js +2 -2
  182. package/lib/exercises/math/geometry/vectors/colinearity.js +2 -2
  183. package/lib/exercises/math/geometry/vectors/determinant.js +1 -1
  184. package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +2 -2
  185. package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.js +1 -1
  186. package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.js +2 -2
  187. package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.js +2 -2
  188. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.js +1 -1
  189. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +1 -1
  190. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +1 -1
  191. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.js +1 -1
  192. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +1 -1
  193. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +1 -1
  194. package/lib/exercises/math/limits/limitReading.js +1 -1
  195. package/lib/exercises/math/limits/polynomLimit.js +2 -2
  196. package/lib/exercises/math/limits/polynomLimitNoFI.js +2 -2
  197. package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.js +1 -1
  198. package/lib/exercises/math/limits/rationalFracLimit.js +2 -2
  199. package/lib/exercises/math/limits/sequencePolynomLimit.js +1 -1
  200. package/lib/exercises/math/limits/sequencePolynomNoFILimit.js +1 -1
  201. package/lib/exercises/math/limits/sequencePolynomProductLimit.js +1 -1
  202. package/lib/exercises/math/limits/sequenceRationalFracLimit.js +1 -1
  203. package/lib/exercises/math/percent/applyPercent.js +2 -2
  204. package/lib/exercises/math/percent/averageEvolutionRate.js +1 -1
  205. package/lib/exercises/math/percent/cmToEvolution.js +1 -1
  206. package/lib/exercises/math/percent/evolutionRateFromValues.d.ts +8 -0
  207. package/lib/exercises/math/percent/evolutionRateFromValues.d.ts.map +1 -0
  208. package/lib/exercises/math/percent/evolutionRateFromValues.js +71 -0
  209. package/lib/exercises/math/percent/findStartValueAfterEvolution.d.ts +8 -0
  210. package/lib/exercises/math/percent/findStartValueAfterEvolution.d.ts.map +1 -0
  211. package/lib/exercises/math/percent/findStartValueAfterEvolution.js +65 -0
  212. package/lib/exercises/math/percent/findTVA.js +2 -2
  213. package/lib/exercises/math/percent/globalPercent.js +1 -1
  214. package/lib/exercises/math/percent/htToTTC.js +2 -2
  215. package/lib/exercises/math/percent/index.d.ts +4 -0
  216. package/lib/exercises/math/percent/index.d.ts.map +1 -1
  217. package/lib/exercises/math/percent/index.js +4 -0
  218. package/lib/exercises/math/percent/isTableProportional.js +1 -1
  219. package/lib/exercises/math/percent/percentToDecimal.d.ts.map +1 -1
  220. package/lib/exercises/math/percent/percentToDecimal.js +70 -27
  221. package/lib/exercises/math/percent/populationEffectifFromSubPopulation.d.ts +9 -0
  222. package/lib/exercises/math/percent/populationEffectifFromSubPopulation.d.ts.map +1 -0
  223. package/lib/exercises/math/percent/populationEffectifFromSubPopulation.js +93 -0
  224. package/lib/exercises/math/percent/reciprocalPercentage.js +2 -2
  225. package/lib/exercises/math/percent/subPopulationEffectifFromPercent.d.ts +9 -0
  226. package/lib/exercises/math/percent/subPopulationEffectifFromPercent.d.ts.map +1 -0
  227. package/lib/exercises/math/percent/subPopulationEffectifFromPercent.js +85 -0
  228. package/lib/exercises/math/percent/ttcToHT.js +2 -2
  229. package/lib/exercises/math/powers/decimalToScientific.js +1 -1
  230. package/lib/exercises/math/powers/powersDivision.js +1 -1
  231. package/lib/exercises/math/powers/powersOfTenToDecimal.js +1 -1
  232. package/lib/exercises/math/powers/powersProduct.js +1 -1
  233. package/lib/exercises/math/primitive/constantPrimitive.js +1 -1
  234. package/lib/exercises/math/primitive/logarithmePrimitive.js +1 -1
  235. package/lib/exercises/math/primitive/polynomialPrimitive.js +1 -1
  236. package/lib/exercises/math/primitive/sinCosPrimitive.js +2 -2
  237. package/lib/exercises/math/primitive/sinUCosUPrimitive.js +2 -2
  238. package/lib/exercises/math/probaStat/cardBasicProbas.js +2 -2
  239. package/lib/exercises/math/probaStat/conditionalProbability.js +1 -1
  240. package/lib/exercises/math/probaStat/diceBasicProbas.js +2 -2
  241. package/lib/exercises/math/probaStat/independancy.js +2 -2
  242. package/lib/exercises/math/probaStat/issuesCountingForCards.js +3 -3
  243. package/lib/exercises/math/probaStat/probaFromTableNoContext.js +1 -1
  244. package/lib/exercises/math/probaStat/probaFromTableWithContext.js +1 -1
  245. package/lib/exercises/math/probaStat/probabilityTree.js +1 -1
  246. package/lib/exercises/math/probaStat/stats1var/averageWithTable.js +1 -1
  247. package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.d.ts.map +1 -1
  248. package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.js +2 -1
  249. package/lib/exercises/math/probaStat/stats1var/median.js +1 -1
  250. package/lib/exercises/math/probaStat/stats1var/quartiles.js +1 -1
  251. package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +1 -1
  252. package/lib/exercises/math/python/pyForLoop1Exercise.js +2 -2
  253. package/lib/exercises/math/python/pyNestedForLoopExercise.js +1 -1
  254. package/lib/exercises/math/python/pyWhileLoop1Exercise.js +1 -1
  255. package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +1 -1
  256. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.js +1 -1
  257. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplictFormulaFirstTermRandom.js +1 -1
  258. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.js +1 -1
  259. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +1 -1
  260. package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.js +1 -1
  261. package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +1 -1
  262. package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.js +1 -1
  263. package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +1 -1
  264. package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +1 -1
  265. package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.js +1 -1
  266. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +2 -2
  267. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +2 -2
  268. package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +1 -1
  269. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.js +1 -1
  270. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +1 -1
  271. package/lib/exercises/math/sequences/geometric/geometricFindReason.js +1 -1
  272. package/lib/exercises/math/sequences/geometric/geometricFindTerm.js +1 -1
  273. package/lib/exercises/math/sequences/geometric/geometricFirstTermsGeneralSum.js +1 -1
  274. package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.js +1 -1
  275. package/lib/exercises/math/sequences/geometric/geometricReasonUsage.js +1 -1
  276. package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +1 -1
  277. package/lib/exercises/math/sequences/sequencePlot.js +1 -1
  278. package/lib/exercises/math/sets/intervals/inequalityToInterval.js +1 -1
  279. package/lib/exercises/math/sets/intervals/intervalToInequality.js +1 -1
  280. package/lib/exercises/math/sets/intervals/intervalsIntersection.js +1 -1
  281. package/lib/exercises/math/sets/intervals/intervalsUnion.js +1 -1
  282. package/lib/exercises/math/sets/setBelonging.js +2 -2
  283. package/lib/exercises/math/squareRoots/simpifySquareRoot.js +1 -1
  284. package/lib/exercises/math/squareRoots/squareRootEquation.js +1 -1
  285. package/lib/exercises/math/squareRoots/squareRootIdentities.js +2 -2
  286. package/lib/exercises/math/squareRoots/squareRootsSum.js +1 -1
  287. package/lib/exercises/math/trigonometry/arcLength.d.ts +10 -0
  288. package/lib/exercises/math/trigonometry/arcLength.d.ts.map +1 -0
  289. package/lib/exercises/math/trigonometry/arcLength.js +92 -0
  290. package/lib/exercises/math/trigonometry/associatePoint.js +1 -1
  291. package/lib/exercises/math/trigonometry/basicEquationCos.d.ts +7 -0
  292. package/lib/exercises/math/trigonometry/basicEquationCos.d.ts.map +1 -0
  293. package/lib/exercises/math/trigonometry/basicEquationCos.js +94 -0
  294. package/lib/exercises/math/trigonometry/basicEquationSin.d.ts +7 -0
  295. package/lib/exercises/math/trigonometry/basicEquationSin.d.ts.map +1 -0
  296. package/lib/exercises/math/trigonometry/basicEquationSin.js +106 -0
  297. package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.d.ts +7 -0
  298. package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.d.ts.map +1 -0
  299. package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.js +85 -0
  300. package/lib/exercises/math/trigonometry/calculateCosSinAndTan.js +1 -1
  301. package/lib/exercises/math/trigonometry/degreeToRadians.d.ts +9 -0
  302. package/lib/exercises/math/trigonometry/degreeToRadians.d.ts.map +1 -0
  303. package/lib/exercises/math/trigonometry/degreeToRadians.js +125 -0
  304. package/lib/exercises/math/trigonometry/index.d.ts +6 -0
  305. package/lib/exercises/math/trigonometry/index.d.ts.map +1 -1
  306. package/lib/exercises/math/trigonometry/index.js +6 -0
  307. package/lib/exercises/math/trigonometry/mainAngleMeasure.d.ts +9 -0
  308. package/lib/exercises/math/trigonometry/mainAngleMeasure.d.ts.map +1 -0
  309. package/lib/exercises/math/trigonometry/mainAngleMeasure.js +91 -0
  310. package/lib/exercises/math/trigonometry/mainRemarkableValues.js +2 -2
  311. package/lib/exercises/math/trigonometry/remarkableValues.js +3 -3
  312. package/lib/exercises/math/trigonometry/trigonometry.js +1 -1
  313. package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.js +1 -1
  314. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -1
  315. package/lib/exercises/pc/calibrationCurveOfSolution.js +2 -2
  316. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +1 -1
  317. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.js +2 -2
  318. package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.js +1 -1
  319. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +1 -1
  320. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.js +1 -1
  321. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.js +1 -1
  322. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +1 -1
  323. package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +2 -2
  324. package/lib/exercises/pc/chemicalEquations.js +1 -1
  325. package/lib/exercises/pc/chemicalReactions/calculateCombustionEnergy.js +1 -1
  326. package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.js +1 -1
  327. package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +1 -1
  328. package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.js +1 -1
  329. package/lib/exercises/pc/chemicalReactionsProduct.js +1 -1
  330. package/lib/exercises/pc/delution.js +1 -1
  331. package/lib/exercises/pc/dosage/beerLambertRandomValue.js +1 -1
  332. package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.js +1 -1
  333. package/lib/exercises/pc/electricity/calculateVoltage.js +1 -1
  334. package/lib/exercises/pc/electricity/electricEnergyFromPower.js +1 -1
  335. package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +2 -2
  336. package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.js +1 -1
  337. package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +1 -1
  338. package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +2 -2
  339. package/lib/exercises/pc/fluids/mariotte.js +1 -1
  340. package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +1 -1
  341. package/lib/exercises/pc/forces/forceWork.js +1 -1
  342. package/lib/exercises/pc/forces/massWeight.js +1 -1
  343. package/lib/exercises/pc/forces/pressingForce.js +1 -1
  344. package/lib/exercises/pc/formulaFromComposition.js +1 -1
  345. package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.js +2 -2
  346. package/lib/exercises/pc/kineticEnergy.js +1 -1
  347. package/lib/exercises/pc/math/isolateVariables.js +1 -1
  348. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +1 -1
  349. package/lib/exercises/pc/molarQuantity.js +1 -1
  350. package/lib/exercises/pc/mole/molarMass.js +1 -1
  351. package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.js +1 -1
  352. package/lib/exercises/pc/moleculeFormula.js +1 -1
  353. package/lib/exercises/pc/moleculeNomenclature.js +1 -1
  354. package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -1
  355. package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +1 -1
  356. package/lib/exercises/pc/motion/motionReference.js +1 -1
  357. package/lib/exercises/pc/motion/typeOfAcceleration.js +1 -1
  358. package/lib/exercises/pc/motion/typeOfMovement.js +1 -1
  359. package/lib/exercises/pc/pH.js +1 -1
  360. package/lib/exercises/pc/perceivedFrequency.js +1 -1
  361. package/lib/exercises/pc/potentialEnergy.js +1 -1
  362. package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +1 -1
  363. package/lib/exercises/pc/snellDescartes.js +1 -1
  364. package/lib/exercises/pc/sound/findPeriodFromGraph.js +1 -1
  365. package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +1 -1
  366. package/lib/exercises/pc/sound/frequencyComparison.js +1 -1
  367. package/lib/exercises/pc/waves/lightDistanceConversion.js +1 -1
  368. package/lib/exercises/pc/waves/periodicWaveCelerity.js +1 -1
  369. package/lib/exercises/pc/weight/weightOnTheMoon.js +1 -1
  370. package/lib/exercises/utils/getDistinctQuestions.d.ts +1 -1
  371. package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
  372. package/lib/exercises/utils/getDistinctQuestions.js +11 -5
  373. package/lib/geogebra/colors.js +1 -1
  374. package/lib/geogebra/geogebraConstructor.js +1 -1
  375. package/lib/geogebra/parsers/ggbPointToCoords.d.ts +5 -0
  376. package/lib/geogebra/parsers/ggbPointToCoords.d.ts.map +1 -0
  377. package/lib/geogebra/parsers/ggbPointToCoords.js +12 -0
  378. package/lib/geogebra/parsers/parseGGBPoints.d.ts +2 -0
  379. package/lib/geogebra/parsers/parseGGBPoints.d.ts.map +1 -0
  380. package/lib/geogebra/parsers/parseGGBPoints.js +10 -0
  381. package/lib/index.d.ts +61 -0
  382. package/lib/index.d.ts.map +1 -1
  383. package/lib/math/geometry/line.d.ts.map +1 -1
  384. package/lib/math/geometry/line.js +0 -1
  385. package/lib/math/inequations/inequation.js +1 -1
  386. package/lib/math/numbers/decimals/decimal.d.ts +1 -0
  387. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
  388. package/lib/math/numbers/decimals/decimal.js +10 -0
  389. package/lib/math/numbers/integer/integer.d.ts +2 -0
  390. package/lib/math/numbers/integer/integer.d.ts.map +1 -1
  391. package/lib/math/numbers/integer/integer.js +10 -1
  392. package/lib/math/numbers/nombre.js +1 -1
  393. package/lib/math/numbers/rationals/rational.js +3 -3
  394. package/lib/math/numbers/reals/real.js +2 -2
  395. package/lib/math/polynomials/polynomial.js +1 -1
  396. package/lib/math/polynomials/trinom.js +1 -1
  397. package/lib/math/sequences/geometricSequence.d.ts +2 -2
  398. package/lib/math/sequences/geometricSequence.d.ts.map +1 -1
  399. package/lib/math/sequences/geometricSequence.js +13 -11
  400. package/lib/math/sets/discreteSet.d.ts +2 -2
  401. package/lib/math/sets/discreteSet.d.ts.map +1 -1
  402. package/lib/math/sets/discreteSet.js +4 -4
  403. package/lib/math/sets/intervals/intervals.js +1 -1
  404. package/lib/math/trigonometry/remarkableValue.js +1 -1
  405. package/lib/math/trigonometry/remarkableValues.d.ts +3 -0
  406. package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -1
  407. package/lib/math/trigonometry/remarkableValues.js +72 -1
  408. package/lib/math/utils/random/randTupleInt.js +1 -1
  409. package/lib/playground.d.ts.map +1 -1
  410. package/lib/playground.js +1 -10
  411. package/lib/tree/nodes/equations/multiEqualNode.js +2 -2
  412. package/lib/tree/nodes/geometry/degree.d.ts.map +1 -1
  413. package/lib/tree/nodes/geometry/degree.js +3 -2
  414. package/lib/tree/nodes/geometry/pointNode.js +1 -1
  415. package/lib/tree/nodes/inequations/inequationNode.js +1 -1
  416. package/lib/tree/nodes/operators/addNode.js +3 -3
  417. package/lib/tree/nodes/operators/divideNode.js +1 -1
  418. package/lib/tree/nodes/operators/multiplyNode.js +3 -3
  419. package/lib/tree/nodes/operators/substractNode.js +1 -1
  420. package/lib/tree/nodes/sets/discreteSetNode.d.ts +1 -0
  421. package/lib/tree/nodes/sets/discreteSetNode.d.ts.map +1 -1
  422. package/lib/tree/nodes/sets/discreteSetNode.js +8 -2
  423. package/lib/tree/nodes/sets/intervalNode.js +1 -1
  424. package/lib/tree/nodes/sets/unionIntervalNode.js +2 -2
  425. package/lib/tree/parsers/euroParser.d.ts +2 -0
  426. package/lib/tree/parsers/euroParser.d.ts.map +1 -0
  427. package/lib/tree/parsers/euroParser.js +12 -0
  428. package/lib/tree/parsers/percentParser.d.ts +1 -0
  429. package/lib/tree/parsers/percentParser.d.ts.map +1 -1
  430. package/lib/tree/parsers/percentParser.js +11 -0
  431. package/lib/utils/alea/coinFlip.d.ts +2 -0
  432. package/lib/utils/alea/coinFlip.d.ts.map +1 -0
  433. package/lib/utils/alea/coinFlip.js +7 -0
  434. package/lib/utils/alea/diceFlip.d.ts +2 -0
  435. package/lib/utils/alea/diceFlip.d.ts.map +1 -0
  436. package/lib/utils/alea/diceFlip.js +8 -0
  437. package/lib/utils/alea/probaFlip.d.ts +7 -0
  438. package/lib/utils/alea/probaFlip.d.ts.map +1 -0
  439. package/lib/utils/alea/probaFlip.js +12 -0
  440. package/lib/utils/alea/probaLawFlip.d.ts +7 -0
  441. package/lib/utils/alea/probaLawFlip.d.ts.map +1 -0
  442. package/lib/utils/alea/probaLawFlip.js +24 -0
  443. package/lib/utils/alea/random.d.ts +2 -0
  444. package/lib/utils/alea/random.d.ts.map +1 -0
  445. package/lib/utils/alea/random.js +7 -0
  446. package/lib/utils/alea/randomEnumValue.d.ts +2 -0
  447. package/lib/utils/alea/randomEnumValue.d.ts.map +1 -0
  448. package/lib/utils/alea/randomEnumValue.js +9 -0
  449. package/lib/utils/alea/shuffle.d.ts +2 -0
  450. package/lib/utils/alea/shuffle.d.ts.map +1 -0
  451. package/lib/utils/alea/shuffle.js +15 -0
  452. package/lib/utils/arrays/arrayEqual.d.ts +2 -0
  453. package/lib/utils/arrays/arrayEqual.d.ts.map +1 -0
  454. package/lib/utils/arrays/arrayEqual.js +13 -0
  455. package/lib/utils/arrays/arrayHasSameElement.d.ts +2 -0
  456. package/lib/utils/arrays/arrayHasSameElement.d.ts.map +1 -0
  457. package/lib/utils/arrays/arrayHasSameElement.js +8 -0
  458. package/lib/utils/arrays/cartesianProducts.d.ts +13 -0
  459. package/lib/utils/arrays/cartesianProducts.d.ts.map +1 -0
  460. package/lib/utils/arrays/cartesianProducts.js +64 -0
  461. package/lib/utils/arrays/enumToArray.d.ts +8 -0
  462. package/lib/utils/arrays/enumToArray.d.ts.map +1 -0
  463. package/lib/utils/arrays/enumToArray.js +16 -0
  464. package/lib/utils/arrays/permutations.d.ts +2 -0
  465. package/lib/utils/arrays/permutations.d.ts.map +1 -0
  466. package/lib/utils/arrays/permutations.js +21 -0
  467. package/lib/utils/latex/alignTex.d.ts +1 -1
  468. package/lib/utils/latex/alignTex.d.ts.map +1 -1
  469. package/lib/utils/latex/alignTex.js +3 -3
  470. package/lib/utils/strings/frenchNumbers.d.ts +6 -0
  471. package/lib/utils/strings/frenchNumbers.d.ts.map +1 -0
  472. package/lib/utils/strings/frenchNumbers.js +50 -0
  473. package/lib/utils/strings/numberToFrenchWord.d.ts +2 -0
  474. package/lib/utils/strings/numberToFrenchWord.d.ts.map +1 -0
  475. package/lib/utils/strings/numberToFrenchWord.js +81 -0
  476. package/package.json +1 -1
@@ -13,10 +13,11 @@ export type Proposition = {
13
13
  };
14
14
  export type GeogebraAxisOptions = {
15
15
  steps?: number;
16
- hiddden?: boolean;
16
+ hidden?: boolean;
17
17
  hideNumbers?: boolean;
18
18
  label?: string;
19
19
  natural?: boolean;
20
+ showPositive?: boolean;
20
21
  };
21
22
  export type GeogebraOptions = {
22
23
  customToolBar?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,e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QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,UAAU,GACV,uBAAuB,GACvB,oBAAoB,GACpB,eAAe,GACf,gBAAgB,GAChB,UAAU,CAAC;AAEf,MAAM,MAAM,SAAS,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,+CAA+C,GAC/C,OAAO,GACP,KAAK,GACL,wBAAwB,GACxB,SAAS,GACT,KAAK,GACL,aAAa,GACb,4BAA4B,GAC5B,oBAAoB,GACpB,WAAW,GACX,iBAAiB,GACjB,SAAS,CAAC"}
1
+ {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CA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AAwB,GACxB,WAAW,GACX,uBAAuB,GACvB,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,UAAU,GACV,uBAAuB,GACvB,oBAAoB,GACpB,eAAe,GACf,gBAAgB,GAChB,UAAU,CAAC;AAEf,MAAM,MAAM,SAAS,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,+CAA+C,GAC/C,OAAO,GACP,KAAK,GACL,wBAAwB,GACxB,SAAS,GACT,KAAK,GACL,aAAa,GACb,4BAA4B,GAC5B,oBAAoB,GACpB,WAAW,GACX,iBAAiB,GACjB,SAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.shuffleProps = exports.tryToAddWrongProp = exports.addWrongProp = exports.addValidProp = void 0;
4
- const shuffle_1 = require("../utils/shuffle");
4
+ const shuffle_1 = require("../utils/alea/shuffle");
5
5
  const uuidv4_1 = require("uuidv4");
6
6
  const addValidProp = (props, statement, format = "tex") => {
7
7
  props.push({
@@ -5,7 +5,7 @@ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQues
5
5
  const randint_1 = require("../../../math/utils/random/randint");
6
6
  const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
7
7
  const addNode_1 = require("../../../tree/nodes/operators/addNode");
8
- const shuffle_1 = require("../../../utils/shuffle");
8
+ const shuffle_1 = require("../../../utils/alea/shuffle");
9
9
  const exercise_1 = require("../../exercise");
10
10
  /**
11
11
  * a±b±c±d
@@ -4,7 +4,7 @@ exports.addAndSubWithoutRelatives = void 0;
4
4
  const randint_1 = require("../../../math/utils/random/randint");
5
5
  const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
6
6
  const addNode_1 = require("../../../tree/nodes/operators/addNode");
7
- const shuffle_1 = require("../../../utils/shuffle");
7
+ const shuffle_1 = require("../../../utils/alea/shuffle");
8
8
  const exercise_1 = require("../../exercise");
9
9
  const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
10
10
  /**
@@ -7,7 +7,7 @@ const dividersOf_1 = require("../../../../math/utils/arithmetic/dividersOf");
7
7
  const gcd_1 = require("../../../../math/utils/arithmetic/gcd");
8
8
  const isPrime_1 = require("../../../../math/utils/arithmetic/isPrime");
9
9
  const randint_1 = require("../../../../math/utils/random/randint");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
11
  const doWhile_1 = require("../../../../utils/doWhile");
12
12
  const getCommonDivisorsListQuestion = () => {
13
13
  const a = (0, doWhile_1.doWhile)(() => (0, randint_1.randint)(30, 150), (x) => (0, isPrime_1.isPrime)(x));
@@ -4,7 +4,7 @@ exports.divisibiltyCriteria = void 0;
4
4
  const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const primes_1 = require("../../../../math/numbers/integer/primes");
7
- const random_1 = require("../../../../utils/random");
7
+ const random_1 = require("../../../../utils/alea/random");
8
8
  const getPropositions = (n, { answer, divisor }) => {
9
9
  const propositions = [];
10
10
  (0, exercise_1.addValidProp)(propositions, answer);
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const dividersOf_1 = require("../../../../math/utils/arithmetic/dividersOf");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
- const coinFlip_1 = require("../../../../utils/coinFlip");
8
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
9
9
  const doWhile_1 = require("../../../../utils/doWhile");
10
10
  const getDivisorsListQuestion = () => {
11
11
  const a = (0, randint_1.randint)(30, 90);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paritySumsAndProducts = void 0;
4
4
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
5
5
  const randint_1 = require("../../../../math/utils/random/randint");
6
- const shuffle_1 = require("../../../../utils/shuffle");
6
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
7
7
  const uuid_1 = require("uuid");
8
8
  const getParitySumsAndProductsQuestion = () => {
9
9
  const type = (0, randint_1.randint)(0, 12);
@@ -7,7 +7,7 @@ const decimal_1 = require("../../../../math/numbers/decimals/decimal");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
11
  const pluralize_1 = require("../../../../utils/strings/pluralize");
12
12
  const getMultiplyDecimalByTensQuestion = () => {
13
13
  const dec = decimal_1.DecimalConstructor.random(1, 200, (0, randint_1.randint)(1, 5));
@@ -8,7 +8,7 @@ const rational_1 = require("../../../../math/numbers/rationals/rational");
8
8
  const randint_1 = require("../../../../math/utils/random/randint");
9
9
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
10
10
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
11
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
12
12
  const getFractionAndIntegerDivision = () => {
13
13
  const rational = rational_1.RationalConstructor.randomIrreductible();
14
14
  const integerFirst = (0, coinFlip_1.coinFlip)();
@@ -7,7 +7,7 @@ const integer_1 = require("../../../../math/numbers/integer/integer");
7
7
  const rational_1 = require("../../../../math/numbers/rationals/rational");
8
8
  const randint_1 = require("../../../../math/utils/random/randint");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
- const shuffle_1 = require("../../../../utils/shuffle");
10
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
11
11
  const getFractionAndIntegerProduct = () => {
12
12
  const rational = rational_1.RationalConstructor.randomIrreductible();
13
13
  const integer = new integer_1.Integer((0, randint_1.randint)(-10, 11, [0, 1]));
@@ -7,7 +7,7 @@ const integer_1 = require("../../../../math/numbers/integer/integer");
7
7
  const rational_1 = require("../../../../math/numbers/rationals/rational");
8
8
  const randint_1 = require("../../../../math/utils/random/randint");
9
9
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
10
- const shuffle_1 = require("../../../../utils/shuffle");
10
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
11
11
  const getFractionAndIntegerSum = () => {
12
12
  const rational = rational_1.RationalConstructor.randomIrreductible();
13
13
  const integer = new integer_1.Integer((0, randint_1.randint)(-10, 11, [0]));
@@ -11,7 +11,7 @@ const round_1 = require("../../../../math/utils/round");
11
11
  const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
12
12
  const percentNode_1 = require("../../../../tree/nodes/numbers/percentNode");
13
13
  const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
14
- const shuffle_1 = require("../../../../utils/shuffle");
14
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
15
15
  const getFractionToPercentToDecimal = () => {
16
16
  const denominator = 2 ** (0, randint_1.randint)(0, 5) * 5 ** (0, randint_1.randint)(0, 5);
17
17
  const numerator = denominator !== 1 ? (0, randint_1.randint)(1, denominator) : (0, randint_1.randint)(1, 100);
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
8
- const shuffle_1 = require("../../../../utils/shuffle");
8
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
9
9
  const getFractionsDivision = () => {
10
10
  const rational = rational_1.RationalConstructor.randomIrreductible();
11
11
  const rational2 = rational_1.RationalConstructor.randomIrreductible();
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
8
- const shuffle_1 = require("../../../../utils/shuffle");
8
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
9
9
  const getFractionsProduct = () => {
10
10
  const rational = rational_1.RationalConstructor.randomIrreductible();
11
11
  const rational2 = rational_1.RationalConstructor.randomIrreductible();
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
8
- const shuffle_1 = require("../../../../utils/shuffle");
8
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
9
9
  const getFractionsSum = () => {
10
10
  const rational = rational_1.RationalConstructor.randomIrreductible();
11
11
  const rational2 = rational_1.RationalConstructor.randomIrreductible();
@@ -6,7 +6,7 @@ const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQ
6
6
  const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
9
- const coinFlip_1 = require("../../../../utils/coinFlip");
9
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
10
10
  const getFractionsSumsMultiplesDenominatorsQuestion = () => {
11
11
  let denom1 = (0, randint_1.randint)(2, 10);
12
12
  let denom2 = denom1 * (0, randint_1.randint)(2, 10);
@@ -4,7 +4,7 @@ exports.simplifyFraction = void 0;
4
4
  const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const rational_1 = require("../../../../math/numbers/rationals/rational");
7
- const shuffle_1 = require("../../../../utils/shuffle");
7
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
8
8
  const getSimplifyFraction = () => {
9
9
  const rational = rational_1.RationalConstructor.randomSimplifiable(10);
10
10
  const rationalTex = rational.toTree().toTex();
@@ -28,3 +28,4 @@ __exportStar(require("./digitRankNumber"), exports);
28
28
  __exportStar(require("./digitDecimalRankNumber"), exports);
29
29
  __exportStar(require("./ordering"), exports);
30
30
  __exportStar(require("./decimals"), exports);
31
+ // export * from "./writing";
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
7
7
  const round_1 = require("../../../../math/utils/round");
8
8
  const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
9
9
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
- const shuffle_1 = require("../../../../utils/shuffle");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
12
12
  const getMentalAddAndSub = () => {
13
13
  let numbers = [];
14
14
  const nbrOperations = (0, coinFlip_1.coinFlip)() ? 2 : 3;
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
7
7
  const round_1 = require("../../../../math/utils/round");
8
8
  const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
9
9
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
- const shuffle_1 = require("../../../../utils/shuffle");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
12
12
  const getMentalDivisions = () => {
13
13
  let a = 1, b = 1, c = 1;
14
14
  const rand = (0, randint_1.randint)(1, 7);
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
7
7
  const round_1 = require("../../../../math/utils/round");
8
8
  const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
- const shuffle_1 = require("../../../../utils/shuffle");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
12
12
  const getMentalMultiplications = () => {
13
13
  const numbers = [];
14
14
  const nbOfOperations = (0, randint_1.randint)(2, 4);
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
7
7
  const round_1 = require("../../../../math/utils/round");
8
8
  const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
- const shuffle_1 = require("../../../../utils/shuffle");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
12
12
  const getMentalMultiplicationsNoRelative = () => {
13
13
  const numbers = [];
14
14
  const nbOfOperations = (0, randint_1.randint)(2, 4);
@@ -5,8 +5,8 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const randint_1 = require("../../../../math/utils/random/randint");
7
7
  const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
8
- const coinFlip_1 = require("../../../../utils/coinFlip");
9
- const shuffle_1 = require("../../../../utils/shuffle");
8
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
9
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
10
10
  const getMentalPercentage = () => {
11
11
  let a = 1, b = 1;
12
12
  const rand = (0, randint_1.randint)(1, 10);
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
8
8
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
10
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
11
- const diceFlip_1 = require("../../../../utils/diceFlip");
11
+ const diceFlip_1 = require("../../../../utils/alea/diceFlip");
12
12
  const getExpressionNatureQuestion = () => {
13
13
  let answer = "";
14
14
  let statement = "";
@@ -15,8 +15,8 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
15
15
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
16
16
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
17
17
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
18
- const coinFlip_1 = require("../../../../utils/coinFlip");
19
- const shuffle_1 = require("../../../../utils/shuffle");
18
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
19
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
20
20
  const getPriorityQuestions = () => {
21
21
  const type = (0, randint_1.randint)(1, 9);
22
22
  let startStatement = "";
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
8
8
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
10
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
11
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
12
12
  const getOperationsPrioritiesParenthesisQuestion = () => {
13
13
  const type = (0, randint_1.randint)(1, 5);
14
14
  let a, b, c, d;
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
8
8
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
10
  const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
11
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
12
12
  const getOperationsPrioritiesParenthesisNoRelativesQuestion = () => {
13
13
  const type = (0, randint_1.randint)(1, 5);
14
14
  let a, b, c, d;
@@ -15,8 +15,8 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
15
15
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
16
16
  const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
17
17
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
18
- const coinFlip_1 = require("../../../../utils/coinFlip");
19
- const shuffle_1 = require("../../../../utils/shuffle");
18
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
19
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
20
20
  const getOperationsPrioritiesWithoutRelative = () => {
21
21
  const type = (0, randint_1.randint)(1, 9);
22
22
  const flip = (0, randint_1.randint)(1, 4);
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const randfloat_1 = require("../../../../math/utils/random/randfloat");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
- const coinFlip_1 = require("../../../../utils/coinFlip");
8
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
9
9
  const getDecimalOrderingQuestion = () => {
10
10
  const type = (0, randint_1.randint)(1, 5);
11
11
  let a = 0;
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const randfloat_1 = require("../../../../math/utils/random/randfloat");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
- const coinFlip_1 = require("../../../../utils/coinFlip");
8
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
9
9
  const getDecimalOrderingNoRelativesQuestion = () => {
10
10
  const type = (0, randint_1.randint)(1, 5);
11
11
  let a = 0;
@@ -12,8 +12,8 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
12
12
  const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
13
13
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
14
14
  const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
15
- const coinFlip_1 = require("../../../../utils/coinFlip");
16
- const random_1 = require("../../../../utils/random");
15
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
16
+ const random_1 = require("../../../../utils/alea/random");
17
17
  //fraction: 1/3, 2/3, 1/6, 5/6, x/7
18
18
  //décimal
19
19
  const getFramingQuestion = () => {
@@ -4,8 +4,8 @@ exports.integerOrdering = void 0;
4
4
  const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const randint_1 = require("../../../../math/utils/random/randint");
7
- const coinFlip_1 = require("../../../../utils/coinFlip");
8
- const probaFlip_1 = require("../../../../utils/probaFlip");
7
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
8
+ const probaFlip_1 = require("../../../../utils/alea/probaFlip");
9
9
  const getIntegerOrderingQuestion = () => {
10
10
  let a;
11
11
  let b;
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const integer_1 = require("../../../../math/numbers/integer/integer");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
- const shuffle_1 = require("../../../../utils/shuffle");
8
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
9
9
  const getProportionalityTable = () => {
10
10
  const fact = (0, randint_1.randint)(2, 10);
11
11
  let [x1, x2] = integer_1.IntegerConstructor.randomDifferents(1, 100 / fact, 2);
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
5
5
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
6
  const integer_1 = require("../../../../math/numbers/integer/integer");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
- const shuffle_1 = require("../../../../utils/shuffle");
8
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
9
9
  const getProportionalityTableCoefficient = () => {
10
10
  const factor = (0, randint_1.randint)(2, 15);
11
11
  const xValues = integer_1.IntegerConstructor.randomDifferents(1, 100 / factor, 3).sort((a, b) => a - b);
@@ -7,7 +7,7 @@ const rational_1 = require("../../../../math/numbers/rationals/rational");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const measure_1 = require("../../../../pc/measure/measure");
9
9
  const distanceUnits_1 = require("../../../../pc/units/distanceUnits");
10
- const coinFlip_1 = require("../../../../utils/coinFlip");
10
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
11
11
  const getScaleCalculationQuestion = () => {
12
12
  const isSmallScale = (0, coinFlip_1.coinFlip)();
13
13
  const scale = isSmallScale ? (0, randint_1.randint)(1, 5) * 10 : (0, randint_1.randint)(5, 100) * 1000;
@@ -8,7 +8,7 @@ const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const measure_1 = require("../../../../pc/measure/measure");
9
9
  const distanceUnits_1 = require("../../../../pc/units/distanceUnits");
10
10
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
11
- const coinFlip_1 = require("../../../../utils/coinFlip");
11
+ const coinFlip_1 = require("../../../../utils/alea/coinFlip");
12
12
  const getScaleUsageQuestion = () => {
13
13
  const isSmallScale = (0, coinFlip_1.coinFlip)();
14
14
  const isFakeAsked = (0, coinFlip_1.coinFlip)();
@@ -1 +1 @@
1
- {"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA2ElC,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgDF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAe7C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAkB9C,CAAC"}
1
+ {"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA8ElC,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgDF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAe7C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAkB9C,CAAC"}
@@ -6,7 +6,8 @@ const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQ
6
6
  const decimal_1 = require("../../../../math/numbers/decimals/decimal");
7
7
  const randint_1 = require("../../../../math/utils/random/randint");
8
8
  const round_1 = require("../../../../math/utils/round");
9
- const shuffle_1 = require("../../../../utils/shuffle");
9
+ const numberParser_1 = require("../../../../tree/parsers/numberParser");
10
+ const shuffle_1 = require("../../../../utils/alea/shuffle");
10
11
  /**
11
12
  * arrondi à l'unité
12
13
  */
@@ -19,6 +20,7 @@ const instructions = [
19
20
  "Arrondir au millième :",
20
21
  ];
21
22
  const getRoundQuestions = (opts) => {
23
+ 244.8895;
22
24
  const precisionAsked = opts?.precisionAsked || 0;
23
25
  const precision = (0, randint_1.randint)(precisionAsked + 1, precisionAsked + 5);
24
26
  const dec = decimal_1.DecimalConstructor.random(0, 1000, precision);
@@ -76,11 +78,8 @@ const getPropositions = (n, { answer, precisionAsked, decimal, precision }) => {
76
78
  }
77
79
  return (0, shuffle_1.shuffle)(propositions);
78
80
  };
79
- const isAnswerValid = (ans, { decimal, precisionAsked }) => {
80
- const dec = new decimal_1.Decimal(decimal);
81
- const answer = dec.round(precisionAsked).toTree();
82
- const texs = answer.toAllValidTexs();
83
- return texs.includes(ans);
81
+ const isAnswerValid = (ans, { answer, decimal, precisionAsked }) => {
82
+ return (0, numberParser_1.numberParser)(ans) === answer;
84
83
  };
85
84
  exports.roundToUnit = {
86
85
  id: "roundToUnit",
@@ -0,0 +1,2 @@
1
+ export * from "./numberToFrenchWriting";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/writing/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./numberToFrenchWriting"), exports);
@@ -0,0 +1,7 @@
1
+ import { Exercise } from "../../../../exercises/exercise";
2
+ type Identifiers = {
3
+ nb: number;
4
+ };
5
+ export declare const numberToFrenchWriting: Exercise<Identifiers>;
6
+ export {};
7
+ //# sourceMappingURL=numberToFrenchWriting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberToFrenchWriting.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/writing/numberToFrenchWriting.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAkBT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAqDF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAgBvD,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.numberToFrenchWriting = void 0;
4
+ const exercise_1 = require("../../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
6
+ const integer_1 = require("../../../../math/numbers/integer/integer");
7
+ const randint_1 = require("../../../../math/utils/random/randint");
8
+ const toSeparatedThousands_1 = require("../../../../utils/numberPrototype/toSeparatedThousands");
9
+ const numberToFrenchWord_1 = require("../../../../utils/strings/numberToFrenchWord");
10
+ const getPropositions = (n, { answer }) => {
11
+ const propositions = [];
12
+ (0, exercise_1.addValidProp)(propositions, answer);
13
+ while (propositions.length < n) {
14
+ throw Error("QCM not implemented");
15
+ }
16
+ return (0, exercise_1.shuffleProps)(propositions, n);
17
+ };
18
+ const getAnswer = (identifiers) => {
19
+ return (0, numberToFrenchWord_1.numberToFrenchWord)(identifiers.nb);
20
+ };
21
+ const getInstruction = (identifiers) => {
22
+ return `Écrire le nombre $${(0, toSeparatedThousands_1.toSeperatedThousands)(identifiers.nb + "")}$ en lettres.`;
23
+ };
24
+ const getHint = (identifiers) => {
25
+ return ``;
26
+ };
27
+ const getCorrection = (identifiers) => {
28
+ return ``;
29
+ };
30
+ const getKeys = (identifiers) => {
31
+ return [];
32
+ };
33
+ const isAnswerValid = (ans, { answer }) => {
34
+ return ans === answer;
35
+ };
36
+ const getNumberToFrenchWritingQuestion = () => {
37
+ const nb = integer_1.IntegerConstructor.random((0, randint_1.randint)(2, 8));
38
+ const identifiers = {
39
+ nb,
40
+ };
41
+ const question = {
42
+ answer: getAnswer(identifiers),
43
+ instruction: getInstruction(identifiers),
44
+ keys: getKeys(identifiers),
45
+ answerFormat: "raw",
46
+ identifiers,
47
+ hint: getHint(identifiers),
48
+ correction: getCorrection(identifiers),
49
+ };
50
+ return question;
51
+ };
52
+ exports.numberToFrenchWriting = {
53
+ id: "numberToFrenchWriting",
54
+ connector: "=",
55
+ label: "Écrire un nombre entier en lettres",
56
+ isSingleStep: true,
57
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getNumberToFrenchWritingQuestion, nb),
58
+ qcmTimer: 60,
59
+ freeTimer: 60,
60
+ ggbTimer: 60,
61
+ getPropositions,
62
+ isAnswerValid,
63
+ subject: "Mathématiques",
64
+ getHint,
65
+ getCorrection,
66
+ getAnswer,
67
+ };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.allIdentities = void 0;
4
4
  const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
5
- const random_1 = require("../../../../utils/random");
5
+ const random_1 = require("../../../../utils/alea/random");
6
6
  const firstIdentity_1 = require("./firstIdentity");
7
7
  const secondIdentity_1 = require("./secondIdentity");
8
8
  const thirdIdentity_1 = require("./thirdIdentity");