math-exercises 1.3.42 → 1.3.43

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 (594) hide show
  1. package/README.md +73 -73
  2. package/lib/exercises/calcul/addAndSub.d.ts +6 -6
  3. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
  4. package/lib/exercises/calcul/addAndSub.js +71 -68
  5. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts +6 -6
  6. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  7. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +80 -77
  8. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts +4 -0
  9. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -0
  10. package/lib/exercises/calcul/arithmetics/euclideanDivision.js +70 -0
  11. package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts +6 -6
  12. package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
  13. package/lib/exercises/calcul/arithmetics/primeNumbers.js +90 -87
  14. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts +3 -3
  15. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  16. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +69 -66
  17. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts +3 -3
  18. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  19. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +64 -61
  20. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts +3 -3
  21. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
  22. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +64 -61
  23. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts +3 -3
  24. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
  25. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +119 -116
  26. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts +3 -3
  27. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  28. package/lib/exercises/calcul/fractions/fractionsDivision.js +61 -58
  29. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts +3 -3
  30. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  31. package/lib/exercises/calcul/fractions/fractionsProduct.js +60 -57
  32. package/lib/exercises/calcul/fractions/fractionsSum.d.ts +3 -3
  33. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
  34. package/lib/exercises/calcul/fractions/fractionsSum.js +60 -57
  35. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts +3 -3
  36. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  37. package/lib/exercises/calcul/fractions/simplifyFraction.js +55 -52
  38. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts +3 -3
  39. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts.map +1 -1
  40. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +79 -76
  41. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts +3 -3
  42. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts.map +1 -1
  43. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +96 -93
  44. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts +3 -3
  45. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts.map +1 -1
  46. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +80 -77
  47. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts +3 -3
  48. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts.map +1 -1
  49. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.js +135 -132
  50. package/lib/exercises/calcul/operations/operationsPriorities.d.ts +10 -10
  51. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
  52. package/lib/exercises/calcul/operations/operationsPriorities.js +128 -125
  53. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +10 -10
  54. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  55. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +209 -206
  56. package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts +3 -3
  57. package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
  58. package/lib/exercises/calcul/proportionality/proportionalityTable.js +83 -80
  59. package/lib/exercises/calcul/rounding/rounding.d.ts +19 -19
  60. package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
  61. package/lib/exercises/calcul/rounding/rounding.js +142 -136
  62. package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts +3 -3
  63. package/lib/exercises/calculLitteral/distributivity/allIdentities.js +27 -27
  64. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts +3 -3
  65. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  66. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +82 -77
  67. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts +3 -3
  68. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  69. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +84 -78
  70. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts +3 -3
  71. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  72. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +85 -79
  73. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts +3 -3
  74. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  75. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +84 -78
  76. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts +3 -3
  77. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  78. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +84 -78
  79. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts +3 -3
  80. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  81. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +165 -153
  82. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts +6 -6
  83. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  84. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +69 -66
  85. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts +6 -6
  86. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  87. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +72 -69
  88. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts +6 -6
  89. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  90. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +73 -70
  91. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts +6 -6
  92. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  93. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +75 -72
  94. package/lib/exercises/calculLitteral/equation/evaluateExpression.d.ts +4 -0
  95. package/lib/exercises/calculLitteral/equation/evaluateExpression.d.ts.map +1 -0
  96. package/lib/exercises/calculLitteral/equation/evaluateExpression.js +61 -0
  97. package/lib/exercises/calculLitteral/equation/expEquation.d.ts +3 -3
  98. package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -1
  99. package/lib/exercises/calculLitteral/equation/expEquation.js +67 -64
  100. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts +3 -3
  101. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  102. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +58 -55
  103. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts +3 -3
  104. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.js +32 -32
  105. package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts +3 -3
  106. package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  107. package/lib/exercises/calculLitteral/equation/fractionEquation.js +74 -71
  108. package/lib/exercises/calculLitteral/equation/logEquation.d.ts +3 -3
  109. package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -1
  110. package/lib/exercises/calculLitteral/equation/logEquation.js +67 -64
  111. package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts +3 -3
  112. package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  113. package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +77 -74
  114. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts +3 -3
  115. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  116. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +70 -66
  117. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts +3 -3
  118. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  119. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +78 -73
  120. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts +3 -3
  121. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  122. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +84 -78
  123. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts +6 -6
  124. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  125. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +88 -82
  126. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts +3 -3
  127. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
  128. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +64 -61
  129. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts +3 -3
  130. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -1
  131. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +96 -93
  132. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts +3 -3
  133. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -1
  134. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +78 -75
  135. package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts +3 -3
  136. package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
  137. package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +121 -118
  138. package/lib/exercises/conversion/aeraConversion.d.ts +3 -3
  139. package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -1
  140. package/lib/exercises/conversion/aeraConversion.js +62 -59
  141. package/lib/exercises/conversion/capacityConversion.d.ts +3 -3
  142. package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -1
  143. package/lib/exercises/conversion/capacityConversion.js +60 -57
  144. package/lib/exercises/conversion/lengthConversion.d.ts +3 -3
  145. package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -1
  146. package/lib/exercises/conversion/lengthConversion.js +59 -56
  147. package/lib/exercises/conversion/massConversion.d.ts +3 -3
  148. package/lib/exercises/conversion/massConversion.d.ts.map +1 -1
  149. package/lib/exercises/conversion/massConversion.js +59 -56
  150. package/lib/exercises/conversion/volumeCapacityConversion.d.ts +3 -3
  151. package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -1
  152. package/lib/exercises/conversion/volumeCapacityConversion.js +76 -73
  153. package/lib/exercises/conversion/volumeConversion.d.ts +3 -3
  154. package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -1
  155. package/lib/exercises/conversion/volumeConversion.js +61 -58
  156. package/lib/exercises/derivation/derivative/constanteDerivative.d.ts +3 -3
  157. package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
  158. package/lib/exercises/derivation/derivative/constanteDerivative.js +56 -53
  159. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts +3 -3
  160. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -1
  161. package/lib/exercises/derivation/derivative/expDerivativeOne.js +65 -62
  162. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts +3 -3
  163. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -1
  164. package/lib/exercises/derivation/derivative/expDerivativeThree.js +64 -61
  165. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts +3 -3
  166. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -1
  167. package/lib/exercises/derivation/derivative/expDerivativeTwo.js +65 -62
  168. package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts +3 -3
  169. package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
  170. package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +58 -55
  171. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts +3 -3
  172. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
  173. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +56 -53
  174. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts +3 -3
  175. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -1
  176. package/lib/exercises/derivation/derivative/lnDerivativeOne.js +63 -60
  177. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts +3 -3
  178. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
  179. package/lib/exercises/derivation/derivative/lnDerivativeThree.js +68 -65
  180. package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts +3 -3
  181. package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -1
  182. package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +66 -63
  183. package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts +3 -3
  184. package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
  185. package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +64 -61
  186. package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts +3 -3
  187. package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
  188. package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +80 -76
  189. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts +3 -3
  190. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -1
  191. package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +64 -61
  192. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts +3 -3
  193. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
  194. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +66 -63
  195. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts +4 -0
  196. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -0
  197. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +101 -0
  198. package/lib/exercises/derivation/derivative/usualderivative.d.ts +3 -3
  199. package/lib/exercises/derivation/derivative/usualderivative.js +36 -36
  200. package/lib/exercises/derivation/derivativeNumberReading.d.ts +3 -3
  201. package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
  202. package/lib/exercises/derivation/derivativeNumberReading.js +84 -81
  203. package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts +4 -0
  204. package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts.map +1 -0
  205. package/lib/exercises/equaDiff/equaDiffGeneralForme.js +66 -0
  206. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts +4 -0
  207. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -0
  208. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +80 -0
  209. package/lib/exercises/exercise.d.ts +29 -27
  210. package/lib/exercises/exercise.d.ts.map +1 -1
  211. package/lib/exercises/exercise.js +7 -7
  212. package/lib/exercises/exercises.d.ts +1 -1
  213. package/lib/exercises/exercises.d.ts.map +1 -1
  214. package/lib/exercises/exercises.js +312 -274
  215. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts +3 -3
  216. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -1
  217. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +107 -101
  218. package/lib/exercises/geometry/cartesian/imageFunction.d.ts +3 -3
  219. package/lib/exercises/geometry/cartesian/imageFunction.d.ts.map +1 -1
  220. package/lib/exercises/geometry/cartesian/imageFunction.js +65 -62
  221. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts +4 -0
  222. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts.map +1 -0
  223. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.js +89 -0
  224. package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts +3 -3
  225. package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts.map +1 -1
  226. package/lib/exercises/geometry/cartesian/inverseImageFunction.js +62 -57
  227. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts +4 -0
  228. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts.map +1 -0
  229. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.js +154 -0
  230. package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts +3 -3
  231. package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts.map +1 -1
  232. package/lib/exercises/geometry/cartesian/leadingCoefficient.js +93 -90
  233. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.d.ts +3 -3
  234. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.d.ts.map +1 -1
  235. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.js +59 -56
  236. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.d.ts +3 -3
  237. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.d.ts.map +1 -1
  238. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.js +58 -55
  239. package/lib/exercises/geometry/cartesian/midpoint.d.ts +3 -3
  240. package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
  241. package/lib/exercises/geometry/cartesian/midpoint.js +63 -60
  242. package/lib/exercises/geometry/cartesian/signFunction.d.ts +4 -0
  243. package/lib/exercises/geometry/cartesian/signFunction.d.ts.map +1 -0
  244. package/lib/exercises/geometry/cartesian/signFunction.js +84 -0
  245. package/lib/exercises/geometry/euclidean/circleArea.d.ts +3 -3
  246. package/lib/exercises/geometry/euclidean/circleArea.d.ts.map +1 -1
  247. package/lib/exercises/geometry/euclidean/circleArea.js +58 -55
  248. package/lib/exercises/geometry/euclidean/circleCircumference.d.ts +3 -3
  249. package/lib/exercises/geometry/euclidean/circleCircumference.d.ts.map +1 -1
  250. package/lib/exercises/geometry/euclidean/circleCircumference.js +58 -55
  251. package/lib/exercises/geometry/euclidean/pythagore.d.ts +3 -3
  252. package/lib/exercises/geometry/euclidean/pythagore.d.ts.map +1 -1
  253. package/lib/exercises/geometry/euclidean/pythagore.js +86 -78
  254. package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts +3 -3
  255. package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts.map +1 -1
  256. package/lib/exercises/geometry/euclidean/pythagoreCalcul.js +91 -88
  257. package/lib/exercises/geometry/euclidean/rectangleArea.d.ts +3 -3
  258. package/lib/exercises/geometry/euclidean/rectangleArea.d.ts.map +1 -1
  259. package/lib/exercises/geometry/euclidean/rectangleArea.js +53 -50
  260. package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts +3 -3
  261. package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts.map +1 -1
  262. package/lib/exercises/geometry/euclidean/rectanglePerimeter.js +53 -50
  263. package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts +3 -3
  264. package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts.map +1 -1
  265. package/lib/exercises/geometry/euclidean/rightTriangleArea.js +67 -64
  266. package/lib/exercises/geometry/euclidean/squareArea.d.ts +3 -3
  267. package/lib/exercises/geometry/euclidean/squareArea.d.ts.map +1 -1
  268. package/lib/exercises/geometry/euclidean/squareArea.js +52 -49
  269. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts +3 -3
  270. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts.map +1 -1
  271. package/lib/exercises/geometry/euclidean/squarePerimeter.js +52 -49
  272. package/lib/exercises/geometry/euclidean/thales.d.ts +3 -3
  273. package/lib/exercises/geometry/euclidean/thales.d.ts.map +1 -1
  274. package/lib/exercises/geometry/euclidean/thales.js +113 -110
  275. package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts +3 -3
  276. package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts.map +1 -1
  277. package/lib/exercises/geometry/euclidean/thalesCalcul.js +132 -129
  278. package/lib/exercises/geometry/euclidean/{TriangleArea.d.ts → triangleArea.d.ts} +4 -4
  279. package/lib/exercises/geometry/euclidean/triangleArea.d.ts.map +1 -0
  280. package/lib/exercises/geometry/euclidean/{TriangleArea.js → triangleArea.js} +80 -77
  281. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts +3 -3
  282. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts.map +1 -1
  283. package/lib/exercises/geometry/euclidean/triangleAreaV2.js +77 -73
  284. package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts +3 -3
  285. package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts.map +1 -1
  286. package/lib/exercises/geometry/euclidean/trianglePerimeter.js +53 -50
  287. package/lib/exercises/geometry/euclidean/trigonometry.d.ts +3 -3
  288. package/lib/exercises/geometry/euclidean/trigonometry.d.ts.map +1 -1
  289. package/lib/exercises/geometry/euclidean/trigonometry.js +97 -94
  290. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts +3 -3
  291. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts.map +1 -1
  292. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.js +69 -66
  293. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts +3 -3
  294. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts.map +1 -1
  295. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.js +80 -77
  296. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts +3 -3
  297. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  298. package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +60 -57
  299. package/lib/exercises/geometry/vectors/scalarProductViaNorms.js +27 -27
  300. package/lib/exercises/limits/polynomeLimit.d.ts +4 -0
  301. package/lib/exercises/limits/polynomeLimit.d.ts.map +1 -0
  302. package/lib/exercises/limits/polynomeLimit.js +132 -0
  303. package/lib/exercises/percent/applyPercent.d.ts +3 -3
  304. package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
  305. package/lib/exercises/percent/applyPercent.js +74 -71
  306. package/lib/exercises/percent/averageEvolutionRate.d.ts +3 -3
  307. package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
  308. package/lib/exercises/percent/averageEvolutionRate.js +63 -60
  309. package/lib/exercises/percent/globalPercent.d.ts +3 -3
  310. package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
  311. package/lib/exercises/percent/globalPercent.js +77 -74
  312. package/lib/exercises/percent/reciprocalPercentage.d.ts +3 -3
  313. package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
  314. package/lib/exercises/percent/reciprocalPercentage.js +65 -62
  315. package/lib/exercises/powers/powersDivision.d.ts +7 -7
  316. package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
  317. package/lib/exercises/powers/powersDivision.js +77 -74
  318. package/lib/exercises/powers/powersOfTenToDecimal.d.ts +6 -6
  319. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
  320. package/lib/exercises/powers/powersOfTenToDecimal.js +65 -62
  321. package/lib/exercises/powers/powersPower.d.ts +7 -7
  322. package/lib/exercises/powers/powersPower.d.ts.map +1 -1
  323. package/lib/exercises/powers/powersPower.js +76 -73
  324. package/lib/exercises/powers/powersProduct.d.ts +7 -7
  325. package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
  326. package/lib/exercises/powers/powersProduct.js +77 -74
  327. package/lib/exercises/powers/scientificToDecimal.d.ts +6 -6
  328. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
  329. package/lib/exercises/powers/scientificToDecimal.js +69 -66
  330. package/lib/exercises/primitve/constantPrimitive.d.ts +4 -0
  331. package/lib/exercises/primitve/constantPrimitive.d.ts.map +1 -0
  332. package/lib/exercises/primitve/constantPrimitive.js +56 -0
  333. package/lib/exercises/primitve/exponentialPrimitive.d.ts +4 -0
  334. package/lib/exercises/primitve/exponentialPrimitive.d.ts.map +1 -0
  335. package/lib/exercises/primitve/exponentialPrimitive.js +103 -0
  336. package/lib/exercises/primitve/logarithmePrimitive.d.ts +4 -0
  337. package/lib/exercises/primitve/logarithmePrimitive.d.ts.map +1 -0
  338. package/lib/exercises/primitve/logarithmePrimitive.js +74 -0
  339. package/lib/exercises/primitve/polynomialPrimitive.d.ts +4 -0
  340. package/lib/exercises/primitve/polynomialPrimitive.d.ts.map +1 -0
  341. package/lib/exercises/primitve/polynomialPrimitive.js +80 -0
  342. package/lib/exercises/primitve/sinCosPrimitive.d.ts +4 -0
  343. package/lib/exercises/primitve/sinCosPrimitive.d.ts.map +1 -0
  344. package/lib/exercises/primitve/sinCosPrimitive.js +112 -0
  345. package/lib/exercises/primitve/usualPrimitives.d.ts +4 -0
  346. package/lib/exercises/primitve/usualPrimitives.d.ts.map +1 -0
  347. package/lib/exercises/primitve/usualPrimitives.js +39 -0
  348. package/lib/exercises/proba/conditionalProbability.d.ts +3 -3
  349. package/lib/exercises/proba/conditionalProbability.js +99 -99
  350. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts +3 -3
  351. package/lib/exercises/proba/marginalAndConditionalFrequency.js +106 -106
  352. package/lib/exercises/proba/probabilityTree.d.ts +3 -3
  353. package/lib/exercises/proba/probabilityTree.js +132 -132
  354. package/lib/exercises/probaStat/conditionalProbability.d.ts +4 -0
  355. package/lib/exercises/probaStat/conditionalProbability.d.ts.map +1 -0
  356. package/lib/exercises/probaStat/conditionalProbability.js +102 -0
  357. package/lib/exercises/probaStat/frequencyTable.d.ts +4 -0
  358. package/lib/exercises/probaStat/frequencyTable.d.ts.map +1 -0
  359. package/lib/exercises/probaStat/frequencyTable.js +76 -0
  360. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts +4 -0
  361. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts.map +1 -0
  362. package/lib/exercises/probaStat/marginalAndConditionalFrequency.js +109 -0
  363. package/lib/exercises/probaStat/median.d.ts +4 -0
  364. package/lib/exercises/probaStat/median.d.ts.map +1 -0
  365. package/lib/exercises/probaStat/median.js +82 -0
  366. package/lib/exercises/probaStat/medianList.d.ts +4 -0
  367. package/lib/exercises/probaStat/medianList.d.ts.map +1 -0
  368. package/lib/exercises/probaStat/medianList.js +67 -0
  369. package/lib/exercises/probaStat/probabilityTree.d.ts +4 -0
  370. package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -0
  371. package/lib/exercises/probaStat/probabilityTree.js +135 -0
  372. package/lib/exercises/probaStat/quartiles.d.ts +4 -0
  373. package/lib/exercises/probaStat/quartiles.d.ts.map +1 -0
  374. package/lib/exercises/probaStat/quartiles.js +96 -0
  375. package/lib/exercises/probaStat/quartilesList.d.ts +4 -0
  376. package/lib/exercises/probaStat/quartilesList.d.ts.map +1 -0
  377. package/lib/exercises/probaStat/quartilesList.js +81 -0
  378. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts +3 -3
  379. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
  380. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +59 -56
  381. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts +3 -3
  382. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
  383. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +59 -56
  384. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts +3 -3
  385. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
  386. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +59 -56
  387. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts +3 -3
  388. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
  389. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +58 -55
  390. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts +3 -3
  391. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  392. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +58 -55
  393. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts +3 -3
  394. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  395. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +68 -65
  396. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts +3 -3
  397. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  398. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +64 -61
  399. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts +3 -3
  400. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  401. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +70 -66
  402. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts +3 -3
  403. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  404. package/lib/exercises/sequences/geometric/geometricFindReason.js +66 -62
  405. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts +3 -3
  406. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
  407. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +65 -61
  408. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts +7 -7
  409. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  410. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +65 -61
  411. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts +3 -3
  412. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  413. package/lib/exercises/squareRoots/simpifySquareRoot.js +61 -58
  414. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts +3 -3
  415. package/lib/exercises/trigonometry/mainRemarkableValues.js +30 -30
  416. package/lib/exercises/trigonometry/remarkableValues.d.ts +3 -3
  417. package/lib/exercises/trigonometry/remarkableValues.js +30 -30
  418. package/lib/exercises/utils/getDistinctQuestions.d.ts +3 -3
  419. package/lib/exercises/utils/getDistinctQuestions.js +30 -30
  420. package/lib/index.d.ts +2 -2
  421. package/lib/index.js +6 -6
  422. package/lib/math/geometry/droite.d.ts +19 -19
  423. package/lib/math/geometry/droite.js +62 -62
  424. package/lib/math/geometry/point.d.ts +30 -30
  425. package/lib/math/geometry/point.js +64 -64
  426. package/lib/math/geometry/triangles.d.ts +53 -53
  427. package/lib/math/geometry/triangles.js +183 -183
  428. package/lib/math/geometry/vector.d.ts +15 -15
  429. package/lib/math/geometry/vector.js +31 -31
  430. package/lib/math/numbers/decimals/decimal.d.ts +24 -24
  431. package/lib/math/numbers/decimals/decimal.js +140 -140
  432. package/lib/math/numbers/epsilon.d.ts +1 -1
  433. package/lib/math/numbers/epsilon.js +10 -10
  434. package/lib/math/numbers/integer/integer.d.ts +14 -14
  435. package/lib/math/numbers/integer/integer.js +68 -68
  436. package/lib/math/numbers/integer/power.d.ts +13 -13
  437. package/lib/math/numbers/integer/power.js +52 -52
  438. package/lib/math/numbers/nombre.d.ts +13 -13
  439. package/lib/math/numbers/nombre.js +10 -10
  440. package/lib/math/numbers/rationals/rational.d.ts +25 -25
  441. package/lib/math/numbers/rationals/rational.js +113 -113
  442. package/lib/math/numbers/reals/real.d.ts +9 -9
  443. package/lib/math/numbers/reals/real.js +16 -16
  444. package/lib/math/numbers/reals/squareRoot.d.ts +18 -18
  445. package/lib/math/numbers/reals/squareRoot.js +63 -63
  446. package/lib/math/polynomials/affine.d.ts +15 -15
  447. package/lib/math/polynomials/affine.js +42 -42
  448. package/lib/math/polynomials/polynomial.d.ts +28 -26
  449. package/lib/math/polynomials/polynomial.d.ts.map +1 -1
  450. package/lib/math/polynomials/polynomial.js +184 -138
  451. package/lib/math/sequences/arithmeticSequence.js +1 -1
  452. package/lib/math/sequences/geometricSequence.d.ts +3 -3
  453. package/lib/math/sequences/geometricSequence.js +8 -8
  454. package/lib/math/sequences/sequence.d.ts +22 -22
  455. package/lib/math/sequences/sequence.js +21 -21
  456. package/lib/math/sets/discreteSet.d.ts +10 -10
  457. package/lib/math/sets/discreteSet.js +28 -28
  458. package/lib/math/sets/emptySet.js +6 -6
  459. package/lib/math/sets/intervals/intervals.d.ts +26 -26
  460. package/lib/math/sets/intervals/intervals.js +104 -104
  461. package/lib/math/sets/mathSet.d.ts +7 -7
  462. package/lib/math/sets/mathSet.js +10 -10
  463. package/lib/math/sets/mathSetInterface.d.ts +5 -5
  464. package/lib/math/sets/mathSetInterface.js +2 -2
  465. package/lib/math/trigonometry/remarkableValue.d.ts +10 -10
  466. package/lib/math/trigonometry/remarkableValue.js +29 -29
  467. package/lib/math/trigonometry/remarkableValues.d.ts +2 -2
  468. package/lib/math/trigonometry/remarkableValues.js +51 -51
  469. package/lib/math/utils/arithmetic/coprimesOf.d.ts +1 -1
  470. package/lib/math/utils/arithmetic/coprimesOf.js +13 -13
  471. package/lib/math/utils/arithmetic/dividersOf.d.ts +1 -1
  472. package/lib/math/utils/arithmetic/dividersOf.js +12 -12
  473. package/lib/math/utils/arithmetic/gcd.d.ts +1 -1
  474. package/lib/math/utils/arithmetic/gcd.js +7 -7
  475. package/lib/math/utils/arithmetic/isSquare.d.ts +1 -1
  476. package/lib/math/utils/arithmetic/isSquare.js +7 -7
  477. package/lib/math/utils/arithmetic/lcd.d.ts +1 -1
  478. package/lib/math/utils/arithmetic/lcd.js +12 -12
  479. package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts +1 -1
  480. package/lib/math/utils/arithmetic/nonCoprimesOf.js +13 -13
  481. package/lib/math/utils/arithmetic/nonDividersOf.d.ts +1 -1
  482. package/lib/math/utils/arithmetic/nonDividersOf.js +14 -14
  483. package/lib/math/utils/arithmetic/primeFactors.d.ts +5 -5
  484. package/lib/math/utils/arithmetic/primeFactors.js +22 -22
  485. package/lib/math/utils/decimals/decimalPartLengthOf.d.ts +1 -1
  486. package/lib/math/utils/decimals/decimalPartLengthOf.js +14 -14
  487. package/lib/math/utils/random/randTupleInt.d.ts +13 -13
  488. package/lib/math/utils/random/randTupleInt.js +30 -30
  489. package/lib/math/utils/random/randint.d.ts +4 -4
  490. package/lib/math/utils/random/randint.js +18 -18
  491. package/lib/math/utils/round.d.ts +1 -1
  492. package/lib/math/utils/round.js +8 -8
  493. package/lib/server.d.ts +1 -1
  494. package/lib/server.js +49 -49
  495. package/lib/tree/nodes/functions/cosNode.d.ts +9 -9
  496. package/lib/tree/nodes/functions/cosNode.js +21 -21
  497. package/lib/tree/nodes/functions/expNode.d.ts +9 -9
  498. package/lib/tree/nodes/functions/expNode.js +21 -21
  499. package/lib/tree/nodes/functions/functionNode.d.ts +16 -16
  500. package/lib/tree/nodes/functions/functionNode.js +22 -22
  501. package/lib/tree/nodes/functions/logNode.d.ts +9 -9
  502. package/lib/tree/nodes/functions/logNode.js +21 -21
  503. package/lib/tree/nodes/functions/oppositeNode.d.ts +7 -7
  504. package/lib/tree/nodes/functions/oppositeNode.js +26 -26
  505. package/lib/tree/nodes/functions/sinNode.d.ts +9 -0
  506. package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -1
  507. package/lib/tree/nodes/functions/sinNode.js +21 -1
  508. package/lib/tree/nodes/functions/sqrtNode.d.ts +8 -8
  509. package/lib/tree/nodes/functions/sqrtNode.js +18 -18
  510. package/lib/tree/nodes/node.d.ts +12 -12
  511. package/lib/tree/nodes/node.js +11 -11
  512. package/lib/tree/nodes/numbers/constantNode.d.ts +9 -9
  513. package/lib/tree/nodes/numbers/constantNode.js +18 -18
  514. package/lib/tree/nodes/numbers/numberNode.d.ts +10 -10
  515. package/lib/tree/nodes/numbers/numberNode.js +19 -19
  516. package/lib/tree/nodes/numbers/piNode.d.ts +2 -2
  517. package/lib/tree/nodes/numbers/piNode.js +5 -5
  518. package/lib/tree/nodes/operators/addNode.d.ts +7 -7
  519. package/lib/tree/nodes/operators/addNode.js +19 -19
  520. package/lib/tree/nodes/operators/divideNode.d.ts +11 -11
  521. package/lib/tree/nodes/operators/divideNode.js +34 -34
  522. package/lib/tree/nodes/operators/equalNode.d.ts +7 -7
  523. package/lib/tree/nodes/operators/equalNode.js +16 -16
  524. package/lib/tree/nodes/operators/fractionNode.d.ts +11 -11
  525. package/lib/tree/nodes/operators/fractionNode.js +20 -20
  526. package/lib/tree/nodes/operators/multiplyNode.d.ts +7 -7
  527. package/lib/tree/nodes/operators/multiplyNode.js +43 -43
  528. package/lib/tree/nodes/operators/operatorNode.d.ts +21 -21
  529. package/lib/tree/nodes/operators/operatorNode.js +35 -35
  530. package/lib/tree/nodes/operators/powerNode.d.ts +7 -7
  531. package/lib/tree/nodes/operators/powerNode.js +33 -33
  532. package/lib/tree/nodes/operators/substractNode.d.ts +7 -7
  533. package/lib/tree/nodes/operators/substractNode.js +24 -24
  534. package/lib/tree/nodes/variables/variableNode.d.ts +8 -8
  535. package/lib/tree/nodes/variables/variableNode.js +19 -19
  536. package/lib/tree/parsers/derivateParser.js +62 -62
  537. package/lib/tree/parsers/simplify.d.ts +2 -2
  538. package/lib/tree/parsers/simplify.d.ts.map +1 -1
  539. package/lib/tree/parsers/simplify.js +64 -58
  540. package/lib/utils/arrayEqual.d.ts +1 -1
  541. package/lib/utils/arrayEqual.js +13 -13
  542. package/lib/utils/coinFlip.d.ts +1 -1
  543. package/lib/utils/coinFlip.js +7 -7
  544. package/lib/utils/random.d.ts +1 -1
  545. package/lib/utils/random.js +7 -7
  546. package/lib/utils/shuffle.d.ts +1 -1
  547. package/lib/utils/shuffle.js +15 -15
  548. package/package.json +51 -51
  549. package/lib/exercises/calcul/operationsPriorities.js +0 -88
  550. package/lib/exercises/derivation/derivative/affineDerivative.d.ts +0 -4
  551. package/lib/exercises/derivation/derivative/affineDerivative.d.ts.map +0 -1
  552. package/lib/exercises/derivation/derivative/affineDerivative.js +0 -27
  553. package/lib/exercises/derivation/derivative/thridDegreeDerivative.d.ts +0 -1
  554. package/lib/exercises/derivation/derivative/thridDegreeDerivative.d.ts.map +0 -1
  555. package/lib/exercises/derivation/derivative/thridDegreeDerivative.js +0 -1
  556. package/lib/exercises/geometry/cartesian/derivativeNumberReading.d.ts +0 -4
  557. package/lib/exercises/geometry/cartesian/derivativeNumberReading.d.ts.map +0 -1
  558. package/lib/exercises/geometry/cartesian/derivativeNumberReading.js +0 -51
  559. package/lib/exercises/geometry/cartesian/derivativeNumberReading2.d.ts +0 -1
  560. package/lib/exercises/geometry/cartesian/derivativeNumberReading2.d.ts.map +0 -1
  561. package/lib/exercises/geometry/cartesian/derivativeNumberReading2.js +0 -91
  562. package/lib/exercises/geometry/euclidean/TriangleArea.d.ts.map +0 -1
  563. package/lib/geometry/point.js +0 -27
  564. package/lib/geometry/vector.js +0 -31
  565. package/lib/mathutils/arithmetic/coprimesOf.js +0 -13
  566. package/lib/mathutils/arithmetic/dividersOf.js +0 -12
  567. package/lib/mathutils/arithmetic/gcd.js +0 -7
  568. package/lib/mathutils/arithmetic/isSquare.js +0 -7
  569. package/lib/mathutils/arithmetic/lcd.js +0 -12
  570. package/lib/mathutils/arithmetic/nonCoprimesOf.js +0 -13
  571. package/lib/mathutils/arithmetic/nonDividersOf.js +0 -14
  572. package/lib/mathutils/arithmetic/primeFactors.js +0 -22
  573. package/lib/mathutils/decimals/decimalPartLengthOf.js +0 -14
  574. package/lib/mathutils/random/randTupleInt.js +0 -30
  575. package/lib/mathutils/random/randint.js +0 -18
  576. package/lib/mathutils/round.js +0 -8
  577. package/lib/numbers/decimals/decimal.js +0 -140
  578. package/lib/numbers/epsilon.js +0 -10
  579. package/lib/numbers/integer/integer.js +0 -68
  580. package/lib/numbers/integer/power.js +0 -52
  581. package/lib/numbers/nombre.js +0 -10
  582. package/lib/numbers/rationals/rational.js +0 -113
  583. package/lib/numbers/reals/real.js +0 -16
  584. package/lib/numbers/reals/squareRoot.js +0 -63
  585. package/lib/polynomials/affine.js +0 -42
  586. package/lib/polynomials/polynomial.js +0 -125
  587. package/lib/sets/discreteSet.js +0 -28
  588. package/lib/sets/emptySet.js +0 -6
  589. package/lib/sets/intervals/intervals.js +0 -108
  590. package/lib/sets/intervals/union.js +0 -1
  591. package/lib/sets/mathSet.js +0 -10
  592. package/lib/sets/mathSetInterface.js +0 -2
  593. package/lib/tree/parsers/latexParser.js +0 -110
  594. package/lib/utils/coin.js +0 -7
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getQuartiles = exports.quartilesList = void 0;
4
+ const randint_1 = require("../../math/utils/random/randint");
5
+ const shuffle_1 = require("../../utils/shuffle");
6
+ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
7
+ const uuid_1 = require("uuid");
8
+ exports.quartilesList = {
9
+ id: 'quartilesList',
10
+ connector: '=',
11
+ instruction: '',
12
+ label: "Calcul des quartiles d'une liste",
13
+ levels: ['1', '0'],
14
+ isSingleStep: false,
15
+ section: 'Statistiques',
16
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getQuartiles, nb),
17
+ keys: [],
18
+ };
19
+ function getQuartiles() {
20
+ let randomValeurs = [];
21
+ const length = (0, randint_1.randint)(5, 9);
22
+ for (let i = 0; i < length; i++)
23
+ randomValeurs.push((0, randint_1.randint)(1, 20));
24
+ const sortedValues = randomValeurs.sort((a, b) => a - b);
25
+ const firstQuartileIndex = Math.round(randomValeurs.length / 4 + 0.49);
26
+ const thirdQuartileIndex = Math.round((3 * randomValeurs.length) / 4 + 0.49);
27
+ const firstQuartile = sortedValues[firstQuartileIndex - 1];
28
+ const thirdQuartile = sortedValues[thirdQuartileIndex - 1];
29
+ const randomQuartile = (0, randint_1.randint)(0, 2);
30
+ let quartileToString;
31
+ let choosenQuartile;
32
+ switch (randomQuartile) {
33
+ case 0:
34
+ quartileToString = 'premier quartile';
35
+ choosenQuartile = firstQuartile;
36
+ break;
37
+ case 1:
38
+ quartileToString = 'troisième quartile';
39
+ choosenQuartile = thirdQuartile;
40
+ break;
41
+ default:
42
+ quartileToString = 'troisième quartile';
43
+ choosenQuartile = thirdQuartile;
44
+ break;
45
+ }
46
+ let stringList = '';
47
+ const getPropositions = (n) => {
48
+ const res = [];
49
+ res.push({
50
+ id: (0, uuid_1.v4)() + '',
51
+ statement: choosenQuartile + '',
52
+ isRightAnswer: true,
53
+ format: 'tex',
54
+ });
55
+ for (let i = 0; i < n - 1; i++) {
56
+ let isDuplicate;
57
+ let proposition;
58
+ do {
59
+ proposition = {
60
+ id: (0, uuid_1.v4)() + '',
61
+ statement: randomValeurs[(0, randint_1.randint)(0, randomValeurs.length)] + '',
62
+ isRightAnswer: false,
63
+ format: 'tex',
64
+ };
65
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
66
+ } while (isDuplicate);
67
+ res.push(proposition);
68
+ }
69
+ return (0, shuffle_1.shuffle)(res);
70
+ };
71
+ const question = {
72
+ instruction: `On considère la liste suivante : $${randomValeurs.join(';\\ ')}.$
73
+ $\\\\$Calculer le ${quartileToString} de cette série de valeurs.`,
74
+ answer: choosenQuartile + '',
75
+ keys: [],
76
+ getPropositions,
77
+ answerFormat: 'tex',
78
+ };
79
+ return question;
80
+ }
81
+ exports.getQuartiles = getQuartiles;
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from '../../../exercises/exercise';
2
- export declare const arithmeticExplicitFormulaUsage: Exercise;
3
- export declare function getArithmeticExplicitFormulaUsage(): Question;
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const arithmeticExplicitFormulaUsage: Exercise;
3
+ export declare function getArithmeticExplicitFormulaUsage(): Question;
4
4
  //# sourceMappingURL=arithmeticExplicitFormulaUsage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,8BAA8B,EAAE,QAU5C,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CA6C5D"}
1
+ {"version":3,"file":"arithmeticExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,8BAA8B,EAAE,QAU5C,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAgD5D"}
@@ -1,56 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getArithmeticExplicitFormulaUsage = exports.arithmeticExplicitFormulaUsage = void 0;
4
- const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
- const polynomial_1 = require("../../../math/polynomials/polynomial");
6
- const randint_1 = require("../../../math/utils/random/randint");
7
- const shuffle_1 = require("../../../utils/shuffle");
8
- const uuid_1 = require("uuid");
9
- exports.arithmeticExplicitFormulaUsage = {
10
- id: 'arithmeticExplicitFormulaUsage',
11
- connector: '=',
12
- instruction: '',
13
- label: "Utiliser la formule générale d'une suite arithmétique",
14
- levels: ['1', '0'],
15
- isSingleStep: false,
16
- section: 'Suites',
17
- generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticExplicitFormulaUsage, nb),
18
- keys: ['r', 'n', 'u', 'underscore'],
19
- };
20
- function getArithmeticExplicitFormulaUsage() {
21
- const askedRank = (0, randint_1.randint)(0, 10);
22
- const firstValue = (0, randint_1.randint)(-10, 10);
23
- const reason = (0, randint_1.randint)(-10, 10, [0]);
24
- const polynomial = new polynomial_1.Polynomial([firstValue, reason], 'n');
25
- const getPropositions = (n) => {
26
- const res = [];
27
- res.push({
28
- id: (0, uuid_1.v4)() + '',
29
- statement: (firstValue + askedRank * reason).toString(),
30
- isRightAnswer: true,
31
- });
32
- for (let i = 0; i < n - 1; i++) {
33
- let isDuplicate;
34
- let proposition;
35
- do {
36
- proposition = {
37
- id: (0, uuid_1.v4)() + '',
38
- statement: ((0, randint_1.randint)(-5, 6, [firstValue]) + askedRank * reason).toString(),
39
- isRightAnswer: false,
40
- };
41
- isDuplicate = res.some((p) => p.statement === proposition.statement);
42
- } while (isDuplicate);
43
- res.push(proposition);
44
- }
45
- return (0, shuffle_1.shuffle)(res);
46
- };
47
- const question = {
48
- instruction: `$(u_n)$ est une suite arithmétique définie par $u_n = ${polynomial.toString()}$. Calculer :`,
49
- startStatement: `u_{${askedRank}}`,
50
- answer: (firstValue + askedRank * reason).toString(),
51
- keys: ['r', 'n', 'u', 'underscore'],
52
- getPropositions,
53
- };
54
- return question;
55
- }
56
- exports.getArithmeticExplicitFormulaUsage = getArithmeticExplicitFormulaUsage;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getArithmeticExplicitFormulaUsage = exports.arithmeticExplicitFormulaUsage = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const polynomial_1 = require("../../../math/polynomials/polynomial");
6
+ const randint_1 = require("../../../math/utils/random/randint");
7
+ const shuffle_1 = require("../../../utils/shuffle");
8
+ const uuid_1 = require("uuid");
9
+ exports.arithmeticExplicitFormulaUsage = {
10
+ id: 'arithmeticExplicitFormulaUsage',
11
+ connector: '=',
12
+ instruction: '',
13
+ label: "Utiliser la formule générale d'une suite arithmétique",
14
+ levels: ['1', '0'],
15
+ isSingleStep: false,
16
+ section: 'Suites',
17
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticExplicitFormulaUsage, nb),
18
+ keys: ['r', 'n', 'u', 'underscore'],
19
+ };
20
+ function getArithmeticExplicitFormulaUsage() {
21
+ const askedRank = (0, randint_1.randint)(0, 10);
22
+ const firstValue = (0, randint_1.randint)(-10, 10);
23
+ const reason = (0, randint_1.randint)(-10, 10, [0]);
24
+ const polynomial = new polynomial_1.Polynomial([firstValue, reason], 'n');
25
+ const getPropositions = (n) => {
26
+ const res = [];
27
+ res.push({
28
+ id: (0, uuid_1.v4)() + '',
29
+ statement: (firstValue + askedRank * reason).toString(),
30
+ isRightAnswer: true,
31
+ format: 'tex',
32
+ });
33
+ for (let i = 0; i < n - 1; i++) {
34
+ let isDuplicate;
35
+ let proposition;
36
+ do {
37
+ proposition = {
38
+ id: (0, uuid_1.v4)() + '',
39
+ statement: ((0, randint_1.randint)(-5, 6, [firstValue]) + askedRank * reason).toString(),
40
+ isRightAnswer: false,
41
+ format: 'tex',
42
+ };
43
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
44
+ } while (isDuplicate);
45
+ res.push(proposition);
46
+ }
47
+ return (0, shuffle_1.shuffle)(res);
48
+ };
49
+ const question = {
50
+ instruction: `$(u_n)$ est une suite arithmétique définie par $u_n = ${polynomial.toString()}$. Calculer :`,
51
+ startStatement: `u_{${askedRank}}`,
52
+ answer: (firstValue + askedRank * reason).toString(),
53
+ keys: ['r', 'n', 'u', 'underscore'],
54
+ getPropositions,
55
+ answerFormat: 'tex',
56
+ };
57
+ return question;
58
+ }
59
+ exports.getArithmeticExplicitFormulaUsage = getArithmeticExplicitFormulaUsage;
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from '../../../exercises/exercise';
2
- export declare const arithmeticFindExplicitFormula: Exercise;
3
- export declare function getArithmeticFindExplicitFormula(): Question;
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const arithmeticFindExplicitFormula: Exercise;
3
+ export declare function getArithmeticFindExplicitFormula(): Question;
4
4
  //# sourceMappingURL=arithmeticFindExplicitFormula.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,6BAA6B,EAAE,QAU3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CA6C3D"}
1
+ {"version":3,"file":"arithmeticFindExplicitFormula.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,6BAA6B,EAAE,QAU3C,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAgD3D"}
@@ -1,56 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getArithmeticFindExplicitFormula = exports.arithmeticFindExplicitFormula = void 0;
4
- const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
- const polynomial_1 = require("../../../math/polynomials/polynomial");
6
- const randint_1 = require("../../../math/utils/random/randint");
7
- const shuffle_1 = require("../../../utils/shuffle");
8
- const uuid_1 = require("uuid");
9
- exports.arithmeticFindExplicitFormula = {
10
- id: 'arithmeticFindExplicitFormula',
11
- connector: '=',
12
- instruction: '',
13
- label: "Déterminer la formule générale d'une suite arithmétique",
14
- levels: ['1', '0'],
15
- isSingleStep: false,
16
- section: 'Suites',
17
- generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticFindExplicitFormula, nb),
18
- keys: ['r', 'n', 'u', 'underscore'],
19
- };
20
- function getArithmeticFindExplicitFormula() {
21
- const firstRank = 0;
22
- const firstValue = (0, randint_1.randint)(-10, 10);
23
- const reason = (0, randint_1.randint)(-10, 10, [0]);
24
- const formula = new polynomial_1.Polynomial([firstValue, reason], 'n');
25
- const getPropositions = (n) => {
26
- const res = [];
27
- res.push({
28
- id: (0, uuid_1.v4)() + '',
29
- statement: formula.toString(),
30
- isRightAnswer: true,
31
- });
32
- for (let i = 0; i < n - 1; i++) {
33
- let isDuplicate;
34
- let proposition;
35
- do {
36
- proposition = {
37
- id: (0, uuid_1.v4)() + '',
38
- statement: new polynomial_1.Polynomial([firstValue + (0, randint_1.randint)(-3, 4), reason + (0, randint_1.randint)(-3, 4)], 'n').toString(),
39
- isRightAnswer: false,
40
- };
41
- isDuplicate = res.some((p) => p.statement === proposition.statement);
42
- } while (isDuplicate);
43
- res.push(proposition);
44
- }
45
- return (0, shuffle_1.shuffle)(res);
46
- };
47
- const question = {
48
- instruction: `$(u_n)$ est une suite arithmétique de premier terme $u_{${firstRank}} = ${firstValue}$ et de raison $r = ${reason}$. $\\\\$ Donner l'expression de $u_n$ en fonction de $n$.`,
49
- startStatement: 'u_n',
50
- answer: formula.toString(),
51
- keys: ['r', 'n', 'u', 'underscore'],
52
- getPropositions,
53
- };
54
- return question;
55
- }
56
- exports.getArithmeticFindExplicitFormula = getArithmeticFindExplicitFormula;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getArithmeticFindExplicitFormula = exports.arithmeticFindExplicitFormula = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const polynomial_1 = require("../../../math/polynomials/polynomial");
6
+ const randint_1 = require("../../../math/utils/random/randint");
7
+ const shuffle_1 = require("../../../utils/shuffle");
8
+ const uuid_1 = require("uuid");
9
+ exports.arithmeticFindExplicitFormula = {
10
+ id: 'arithmeticFindExplicitFormula',
11
+ connector: '=',
12
+ instruction: '',
13
+ label: "Déterminer la formule générale d'une suite arithmétique",
14
+ levels: ['1', '0'],
15
+ isSingleStep: false,
16
+ section: 'Suites',
17
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticFindExplicitFormula, nb),
18
+ keys: ['r', 'n', 'u', 'underscore'],
19
+ };
20
+ function getArithmeticFindExplicitFormula() {
21
+ const firstRank = 0;
22
+ const firstValue = (0, randint_1.randint)(-10, 10);
23
+ const reason = (0, randint_1.randint)(-10, 10, [0]);
24
+ const formula = new polynomial_1.Polynomial([firstValue, reason], 'n');
25
+ const getPropositions = (n) => {
26
+ const res = [];
27
+ res.push({
28
+ id: (0, uuid_1.v4)() + '',
29
+ statement: formula.toString(),
30
+ isRightAnswer: true,
31
+ format: 'tex',
32
+ });
33
+ for (let i = 0; i < n - 1; i++) {
34
+ let isDuplicate;
35
+ let proposition;
36
+ do {
37
+ proposition = {
38
+ id: (0, uuid_1.v4)() + '',
39
+ statement: new polynomial_1.Polynomial([firstValue + (0, randint_1.randint)(-3, 4), reason + (0, randint_1.randint)(-3, 4)], 'n').toString(),
40
+ isRightAnswer: false,
41
+ format: 'tex',
42
+ };
43
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
44
+ } while (isDuplicate);
45
+ res.push(proposition);
46
+ }
47
+ return (0, shuffle_1.shuffle)(res);
48
+ };
49
+ const question = {
50
+ instruction: `$(u_n)$ est une suite arithmétique de premier terme $u_{${firstRank}} = ${firstValue}$ et de raison $r = ${reason}$. $\\\\$ Donner l'expression de $u_n$ en fonction de $n$.`,
51
+ startStatement: 'u_n',
52
+ answer: formula.toString(),
53
+ keys: ['r', 'n', 'u', 'underscore'],
54
+ getPropositions,
55
+ answerFormat: 'tex',
56
+ };
57
+ return question;
58
+ }
59
+ exports.getArithmeticFindExplicitFormula = getArithmeticFindExplicitFormula;
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from '../../../exercises/exercise';
2
- export declare const arithmeticFindReason: Exercise;
3
- export declare function getArithmeticFindReason(): Question;
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const arithmeticFindReason: Exercise;
3
+ export declare function getArithmeticFindReason(): Question;
4
4
  //# sourceMappingURL=arithmeticFindReason.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,oBAAoB,EAAE,QAWlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CA4ClD"}
1
+ {"version":3,"file":"arithmeticFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticFindReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,oBAAoB,EAAE,QAWlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CA+ClD"}
@@ -1,56 +1,59 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getArithmeticFindReason = exports.arithmeticFindReason = void 0;
4
- const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
- const randint_1 = require("../../../math/utils/random/randint");
6
- const shuffle_1 = require("../../../utils/shuffle");
7
- const uuid_1 = require("uuid");
8
- exports.arithmeticFindReason = {
9
- id: 'arithmeticFindReason',
10
- connector: '=',
11
- instruction: '',
12
- label: "Déterminer la raison d'une suite arithmétique",
13
- levels: ['1', '0'],
14
- isSingleStep: false,
15
- section: 'Suites',
16
- keys: ['r', 'n', 'u', 'underscore'],
17
- generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticFindReason, nb),
18
- };
19
- function getArithmeticFindReason() {
20
- const rank1 = (0, randint_1.randint)(0, 10);
21
- const rank2 = rank1 + 1;
22
- const reason = (0, randint_1.randint)(-10, 10, [0]);
23
- const value1 = (0, randint_1.randint)(-10, 10);
24
- const value2 = reason + value1;
25
- const getPropositions = (n) => {
26
- const res = [];
27
- res.push({
28
- id: (0, uuid_1.v4)() + '',
29
- statement: reason + '',
30
- isRightAnswer: true,
31
- });
32
- for (let i = 0; i < n - 1; i++) {
33
- let isDuplicate;
34
- let proposition;
35
- do {
36
- proposition = {
37
- id: (0, uuid_1.v4)() + '',
38
- statement: reason + (0, randint_1.randint)(-5, 6, [0]) + '',
39
- isRightAnswer: false,
40
- };
41
- isDuplicate = res.some((p) => p.statement === proposition.statement);
42
- } while (isDuplicate);
43
- res.push(proposition);
44
- }
45
- return (0, shuffle_1.shuffle)(res);
46
- };
47
- const question = {
48
- instruction: `$(u_n)$ est une suite arithmétique. On sait que $u_{${rank1}} = ${value1}$ et $u_{${rank2}} = ${value2}$. Quelle est la raison de la suite $(u_n)$ ?`,
49
- startStatement: 'r',
50
- answer: reason.toString(),
51
- keys: ['r', 'n', 'u', 'underscore'],
52
- getPropositions,
53
- };
54
- return question;
55
- }
56
- exports.getArithmeticFindReason = getArithmeticFindReason;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getArithmeticFindReason = exports.arithmeticFindReason = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const randint_1 = require("../../../math/utils/random/randint");
6
+ const shuffle_1 = require("../../../utils/shuffle");
7
+ const uuid_1 = require("uuid");
8
+ exports.arithmeticFindReason = {
9
+ id: 'arithmeticFindReason',
10
+ connector: '=',
11
+ instruction: '',
12
+ label: "Déterminer la raison d'une suite arithmétique",
13
+ levels: ['1', '0'],
14
+ isSingleStep: false,
15
+ section: 'Suites',
16
+ keys: ['r', 'n', 'u', 'underscore'],
17
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticFindReason, nb),
18
+ };
19
+ function getArithmeticFindReason() {
20
+ const rank1 = (0, randint_1.randint)(0, 10);
21
+ const rank2 = rank1 + 1;
22
+ const reason = (0, randint_1.randint)(-10, 10, [0]);
23
+ const value1 = (0, randint_1.randint)(-10, 10);
24
+ const value2 = reason + value1;
25
+ const getPropositions = (n) => {
26
+ const res = [];
27
+ res.push({
28
+ id: (0, uuid_1.v4)() + '',
29
+ statement: reason + '',
30
+ isRightAnswer: true,
31
+ format: 'tex',
32
+ });
33
+ for (let i = 0; i < n - 1; i++) {
34
+ let isDuplicate;
35
+ let proposition;
36
+ do {
37
+ proposition = {
38
+ id: (0, uuid_1.v4)() + '',
39
+ statement: reason + (0, randint_1.randint)(-5, 6, [0]) + '',
40
+ isRightAnswer: false,
41
+ format: 'tex',
42
+ };
43
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
44
+ } while (isDuplicate);
45
+ res.push(proposition);
46
+ }
47
+ return (0, shuffle_1.shuffle)(res);
48
+ };
49
+ const question = {
50
+ instruction: `$(u_n)$ est une suite arithmétique. On sait que $u_{${rank1}} = ${value1}$ et $u_{${rank2}} = ${value2}$. Quelle est la raison de la suite $(u_n)$ ?`,
51
+ startStatement: 'r',
52
+ answer: reason.toString(),
53
+ keys: ['r', 'n', 'u', 'underscore'],
54
+ getPropositions,
55
+ answerFormat: 'tex',
56
+ };
57
+ return question;
58
+ }
59
+ exports.getArithmeticFindReason = getArithmeticFindReason;
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from '../../../exercises/exercise';
2
- export declare const arithmeticReasonUsage: Exercise;
3
- export declare function getArithmeticReasonUsage(): Question;
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const arithmeticReasonUsage: Exercise;
3
+ export declare function getArithmeticReasonUsage(): Question;
4
4
  //# sourceMappingURL=arithmeticReasonUsage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA2CnD"}
1
+ {"version":3,"file":"arithmeticReasonUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticReasonUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA8CnD"}
@@ -1,55 +1,58 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getArithmeticReasonUsage = exports.arithmeticReasonUsage = void 0;
4
- const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
- const randint_1 = require("../../../math/utils/random/randint");
6
- const shuffle_1 = require("../../../utils/shuffle");
7
- const uuid_1 = require("uuid");
8
- exports.arithmeticReasonUsage = {
9
- id: 'arithmeticReasonUsage',
10
- connector: '=',
11
- instruction: '',
12
- label: "Utiliser la raison d'une suite arithmétique",
13
- levels: ['1', '0'],
14
- isSingleStep: false,
15
- section: 'Suites',
16
- generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticReasonUsage, nb),
17
- keys: ['r', 'n', 'u', 'underscore'],
18
- };
19
- function getArithmeticReasonUsage() {
20
- const reason = (0, randint_1.randint)(-10, 10, [0]);
21
- const startRank = (0, randint_1.randint)(0, 20);
22
- const askedRank = startRank + 1;
23
- const startValue = (0, randint_1.randint)(-10, 10);
24
- const getPropositions = (n) => {
25
- const res = [];
26
- res.push({
27
- id: (0, uuid_1.v4)() + '',
28
- statement: (startValue + reason).toString(),
29
- isRightAnswer: true,
30
- });
31
- for (let i = 0; i < n - 1; i++) {
32
- let isDuplicate;
33
- let proposition;
34
- do {
35
- proposition = {
36
- id: (0, uuid_1.v4)() + '',
37
- statement: startValue + reason + (0, randint_1.randint)(-5, 6, [0]) + '',
38
- isRightAnswer: false,
39
- };
40
- isDuplicate = res.some((p) => p.statement === proposition.statement);
41
- } while (isDuplicate);
42
- res.push(proposition);
43
- }
44
- return (0, shuffle_1.shuffle)(res);
45
- };
46
- const question = {
47
- instruction: `$(u_n)$ est une suite arithmétique de raison $r = ${reason}$ et on sait que $u_{${startRank}} = ${startValue}$. Calculer : `,
48
- startStatement: `u_{${askedRank}}`,
49
- answer: (startValue + reason).toString(),
50
- keys: ['r', 'n', 'u', 'underscore'],
51
- getPropositions,
52
- };
53
- return question;
54
- }
55
- exports.getArithmeticReasonUsage = getArithmeticReasonUsage;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getArithmeticReasonUsage = exports.arithmeticReasonUsage = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const randint_1 = require("../../../math/utils/random/randint");
6
+ const shuffle_1 = require("../../../utils/shuffle");
7
+ const uuid_1 = require("uuid");
8
+ exports.arithmeticReasonUsage = {
9
+ id: 'arithmeticReasonUsage',
10
+ connector: '=',
11
+ instruction: '',
12
+ label: "Utiliser la raison d'une suite arithmétique",
13
+ levels: ['1', '0'],
14
+ isSingleStep: false,
15
+ section: 'Suites',
16
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArithmeticReasonUsage, nb),
17
+ keys: ['r', 'n', 'u', 'underscore'],
18
+ };
19
+ function getArithmeticReasonUsage() {
20
+ const reason = (0, randint_1.randint)(-10, 10, [0]);
21
+ const startRank = (0, randint_1.randint)(0, 20);
22
+ const askedRank = startRank + 1;
23
+ const startValue = (0, randint_1.randint)(-10, 10);
24
+ const getPropositions = (n) => {
25
+ const res = [];
26
+ res.push({
27
+ id: (0, uuid_1.v4)() + '',
28
+ statement: (startValue + reason).toString(),
29
+ isRightAnswer: true,
30
+ format: 'tex',
31
+ });
32
+ for (let i = 0; i < n - 1; i++) {
33
+ let isDuplicate;
34
+ let proposition;
35
+ do {
36
+ proposition = {
37
+ id: (0, uuid_1.v4)() + '',
38
+ statement: startValue + reason + (0, randint_1.randint)(-5, 6, [0]) + '',
39
+ isRightAnswer: false,
40
+ format: 'tex',
41
+ };
42
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
43
+ } while (isDuplicate);
44
+ res.push(proposition);
45
+ }
46
+ return (0, shuffle_1.shuffle)(res);
47
+ };
48
+ const question = {
49
+ instruction: `$(u_n)$ est une suite arithmétique de raison $r = ${reason}$ et on sait que $u_{${startRank}} = ${startValue}$. Calculer : `,
50
+ startStatement: `u_{${askedRank}}`,
51
+ answer: (startValue + reason).toString(),
52
+ keys: ['r', 'n', 'u', 'underscore'],
53
+ getPropositions,
54
+ answerFormat: 'tex',
55
+ };
56
+ return question;
57
+ }
58
+ exports.getArithmeticReasonUsage = getArithmeticReasonUsage;
@@ -1,4 +1,4 @@
1
- import { Exercise, Question } from '../../../exercises/exercise';
2
- export declare const arithmeticRecurrenceFormulaUsage: Exercise;
3
- export declare function getArithmeticRecurrenceFormulaUsage(): Question;
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const arithmeticRecurrenceFormulaUsage: Exercise;
3
+ export declare function getArithmeticRecurrenceFormulaUsage(): Question;
4
4
  //# sourceMappingURL=arithmeticRecurrenceFormulaUsage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"arithmeticRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiC,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM7F,eAAO,MAAM,gCAAgC,EAAE,QAU9C,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CA2C9D"}
1
+ {"version":3,"file":"arithmeticRecurrenceFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiC,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM7F,eAAO,MAAM,gCAAgC,EAAE,QAU9C,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CA8C9D"}