math-exercises 1.3.41 → 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 (319) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
  2. package/lib/exercises/calcul/addAndSub.js +3 -0
  3. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  4. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +3 -0
  5. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts +4 -0
  6. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -0
  7. package/lib/exercises/calcul/arithmetics/euclideanDivision.js +70 -0
  8. package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
  9. package/lib/exercises/calcul/arithmetics/primeNumbers.js +4 -1
  10. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  11. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +3 -0
  12. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  13. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +3 -0
  14. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
  15. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +3 -0
  16. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
  17. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +3 -0
  18. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  19. package/lib/exercises/calcul/fractions/fractionsDivision.js +3 -0
  20. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  21. package/lib/exercises/calcul/fractions/fractionsProduct.js +3 -0
  22. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
  23. package/lib/exercises/calcul/fractions/fractionsSum.js +3 -0
  24. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  25. package/lib/exercises/calcul/fractions/simplifyFraction.js +3 -0
  26. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts.map +1 -1
  27. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +3 -0
  28. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts.map +1 -1
  29. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +3 -0
  30. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts.map +1 -1
  31. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +3 -0
  32. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts.map +1 -1
  33. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.js +3 -0
  34. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
  35. package/lib/exercises/calcul/operations/operationsPriorities.js +3 -0
  36. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  37. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +3 -0
  38. package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
  39. package/lib/exercises/calcul/proportionality/proportionalityTable.js +3 -0
  40. package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
  41. package/lib/exercises/calcul/rounding/rounding.js +6 -0
  42. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  43. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +5 -0
  44. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  45. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +6 -0
  46. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  47. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +6 -0
  48. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  49. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +6 -0
  50. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  51. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +6 -0
  52. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  53. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +12 -0
  54. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  55. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +3 -0
  56. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  57. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +3 -0
  58. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  59. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +3 -0
  60. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  61. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +3 -0
  62. package/lib/exercises/calculLitteral/equation/expEquation.d.ts +4 -0
  63. package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -0
  64. package/lib/exercises/calculLitteral/equation/expEquation.js +67 -0
  65. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  66. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +3 -0
  67. package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  68. package/lib/exercises/calculLitteral/equation/fractionEquation.js +3 -0
  69. package/lib/exercises/calculLitteral/equation/logEquation.d.ts +4 -0
  70. package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -0
  71. package/lib/exercises/calculLitteral/equation/logEquation.js +67 -0
  72. package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  73. package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +3 -0
  74. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  75. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +4 -0
  76. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  77. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +5 -0
  78. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  79. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +6 -0
  80. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  81. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +6 -0
  82. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
  83. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +3 -0
  84. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts +4 -0
  85. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -0
  86. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +96 -0
  87. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts +4 -0
  88. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -0
  89. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +78 -0
  90. package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
  91. package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +3 -0
  92. package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -1
  93. package/lib/exercises/conversion/aeraConversion.js +3 -0
  94. package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -1
  95. package/lib/exercises/conversion/capacityConversion.js +3 -0
  96. package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -1
  97. package/lib/exercises/conversion/lengthConversion.js +3 -0
  98. package/lib/exercises/conversion/massConversion.d.ts.map +1 -1
  99. package/lib/exercises/conversion/massConversion.js +3 -0
  100. package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -1
  101. package/lib/exercises/conversion/volumeCapacityConversion.js +3 -0
  102. package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -1
  103. package/lib/exercises/conversion/volumeConversion.js +3 -0
  104. package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
  105. package/lib/exercises/derivation/derivative/constanteDerivative.js +4 -1
  106. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts +4 -0
  107. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -0
  108. package/lib/exercises/derivation/derivative/expDerivativeOne.js +65 -0
  109. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts +4 -0
  110. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -0
  111. package/lib/exercises/derivation/derivative/expDerivativeThree.js +64 -0
  112. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts +4 -0
  113. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -0
  114. package/lib/exercises/derivation/derivative/expDerivativeTwo.js +65 -0
  115. package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
  116. package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +3 -0
  117. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
  118. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +3 -0
  119. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts +4 -0
  120. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -0
  121. package/lib/exercises/derivation/derivative/lnDerivativeOne.js +63 -0
  122. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts +4 -0
  123. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -0
  124. package/lib/exercises/derivation/derivative/lnDerivativeThree.js +68 -0
  125. package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts +4 -0
  126. package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -0
  127. package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +66 -0
  128. package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
  129. package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +3 -0
  130. package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
  131. package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +4 -0
  132. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -1
  133. package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +3 -0
  134. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
  135. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +3 -0
  136. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts +4 -0
  137. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -0
  138. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +101 -0
  139. package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
  140. package/lib/exercises/derivation/derivativeNumberReading.js +3 -0
  141. package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts +4 -0
  142. package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts.map +1 -0
  143. package/lib/exercises/equaDiff/equaDiffGeneralForme.js +66 -0
  144. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts +4 -0
  145. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -0
  146. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +80 -0
  147. package/lib/exercises/exercise.d.ts +2 -0
  148. package/lib/exercises/exercise.d.ts.map +1 -1
  149. package/lib/exercises/exercises.d.ts.map +1 -1
  150. package/lib/exercises/exercises.js +66 -4
  151. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -1
  152. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +6 -0
  153. package/lib/exercises/geometry/cartesian/imageFunction.d.ts +4 -0
  154. package/lib/exercises/geometry/cartesian/imageFunction.d.ts.map +1 -0
  155. package/lib/exercises/geometry/cartesian/imageFunction.js +65 -0
  156. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts +4 -0
  157. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts.map +1 -0
  158. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.js +89 -0
  159. package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts +4 -0
  160. package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts.map +1 -0
  161. package/lib/exercises/geometry/cartesian/inverseImageFunction.js +62 -0
  162. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts +4 -0
  163. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts.map +1 -0
  164. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.js +154 -0
  165. package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts.map +1 -1
  166. package/lib/exercises/geometry/cartesian/leadingCoefficient.js +3 -0
  167. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.d.ts.map +1 -1
  168. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.js +3 -0
  169. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.d.ts.map +1 -1
  170. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.js +3 -0
  171. package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
  172. package/lib/exercises/geometry/cartesian/midpoint.js +3 -0
  173. package/lib/exercises/geometry/cartesian/signFunction.d.ts +4 -0
  174. package/lib/exercises/geometry/cartesian/signFunction.d.ts.map +1 -0
  175. package/lib/exercises/geometry/cartesian/signFunction.js +84 -0
  176. package/lib/exercises/geometry/euclidean/circleArea.d.ts.map +1 -1
  177. package/lib/exercises/geometry/euclidean/circleArea.js +3 -0
  178. package/lib/exercises/geometry/euclidean/circleCircumference.d.ts.map +1 -1
  179. package/lib/exercises/geometry/euclidean/circleCircumference.js +3 -0
  180. package/lib/exercises/geometry/euclidean/pythagore.d.ts.map +1 -1
  181. package/lib/exercises/geometry/euclidean/pythagore.js +8 -0
  182. package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts.map +1 -1
  183. package/lib/exercises/geometry/euclidean/pythagoreCalcul.js +3 -0
  184. package/lib/exercises/geometry/euclidean/rectangleArea.d.ts.map +1 -1
  185. package/lib/exercises/geometry/euclidean/rectangleArea.js +3 -0
  186. package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts.map +1 -1
  187. package/lib/exercises/geometry/euclidean/rectanglePerimeter.js +3 -0
  188. package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts.map +1 -1
  189. package/lib/exercises/geometry/euclidean/rightTriangleArea.js +3 -0
  190. package/lib/exercises/geometry/euclidean/squareArea.d.ts.map +1 -1
  191. package/lib/exercises/geometry/euclidean/squareArea.js +3 -0
  192. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts.map +1 -1
  193. package/lib/exercises/geometry/euclidean/squarePerimeter.js +3 -0
  194. package/lib/exercises/geometry/euclidean/thales.d.ts.map +1 -1
  195. package/lib/exercises/geometry/euclidean/thales.js +3 -0
  196. package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts.map +1 -1
  197. package/lib/exercises/geometry/euclidean/thalesCalcul.js +3 -0
  198. package/lib/exercises/geometry/euclidean/triangleArea.d.ts.map +1 -1
  199. package/lib/exercises/geometry/euclidean/triangleArea.js +3 -0
  200. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts.map +1 -1
  201. package/lib/exercises/geometry/euclidean/triangleAreaV2.js +4 -0
  202. package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts.map +1 -1
  203. package/lib/exercises/geometry/euclidean/trianglePerimeter.js +3 -0
  204. package/lib/exercises/geometry/euclidean/trigonometry.d.ts.map +1 -1
  205. package/lib/exercises/geometry/euclidean/trigonometry.js +3 -0
  206. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts.map +1 -1
  207. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.js +3 -0
  208. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts.map +1 -1
  209. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.js +3 -0
  210. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  211. package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +3 -0
  212. package/lib/exercises/limits/polynomeLimit.d.ts +4 -0
  213. package/lib/exercises/limits/polynomeLimit.d.ts.map +1 -0
  214. package/lib/exercises/limits/polynomeLimit.js +132 -0
  215. package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
  216. package/lib/exercises/percent/applyPercent.js +3 -0
  217. package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
  218. package/lib/exercises/percent/averageEvolutionRate.js +3 -0
  219. package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
  220. package/lib/exercises/percent/globalPercent.js +3 -0
  221. package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
  222. package/lib/exercises/percent/reciprocalPercentage.js +3 -0
  223. package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
  224. package/lib/exercises/powers/powersDivision.js +3 -0
  225. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
  226. package/lib/exercises/powers/powersOfTenToDecimal.js +3 -0
  227. package/lib/exercises/powers/powersPower.d.ts.map +1 -1
  228. package/lib/exercises/powers/powersPower.js +3 -0
  229. package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
  230. package/lib/exercises/powers/powersProduct.js +3 -0
  231. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
  232. package/lib/exercises/powers/scientificToDecimal.js +3 -0
  233. package/lib/exercises/primitve/constantPrimitive.d.ts +4 -0
  234. package/lib/exercises/primitve/constantPrimitive.d.ts.map +1 -0
  235. package/lib/exercises/primitve/constantPrimitive.js +56 -0
  236. package/lib/exercises/primitve/exponentialPrimitive.d.ts +4 -0
  237. package/lib/exercises/primitve/exponentialPrimitive.d.ts.map +1 -0
  238. package/lib/exercises/primitve/exponentialPrimitive.js +103 -0
  239. package/lib/exercises/primitve/logarithmePrimitive.d.ts +4 -0
  240. package/lib/exercises/primitve/logarithmePrimitive.d.ts.map +1 -0
  241. package/lib/exercises/primitve/logarithmePrimitive.js +74 -0
  242. package/lib/exercises/primitve/polynomialPrimitive.d.ts +4 -0
  243. package/lib/exercises/primitve/polynomialPrimitive.d.ts.map +1 -0
  244. package/lib/exercises/primitve/polynomialPrimitive.js +80 -0
  245. package/lib/exercises/primitve/sinCosPrimitive.d.ts +4 -0
  246. package/lib/exercises/primitve/sinCosPrimitive.d.ts.map +1 -0
  247. package/lib/exercises/primitve/sinCosPrimitive.js +112 -0
  248. package/lib/exercises/primitve/usualPrimitives.d.ts +4 -0
  249. package/lib/exercises/primitve/usualPrimitives.d.ts.map +1 -0
  250. package/lib/exercises/primitve/usualPrimitives.js +39 -0
  251. package/lib/exercises/probaStat/conditionalProbability.d.ts +4 -0
  252. package/lib/exercises/probaStat/conditionalProbability.d.ts.map +1 -0
  253. package/lib/exercises/probaStat/conditionalProbability.js +102 -0
  254. package/lib/exercises/probaStat/frequencyTable.d.ts +4 -0
  255. package/lib/exercises/probaStat/frequencyTable.d.ts.map +1 -0
  256. package/lib/exercises/probaStat/frequencyTable.js +76 -0
  257. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts +4 -0
  258. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts.map +1 -0
  259. package/lib/exercises/probaStat/marginalAndConditionalFrequency.js +109 -0
  260. package/lib/exercises/probaStat/median.d.ts +4 -0
  261. package/lib/exercises/probaStat/median.d.ts.map +1 -0
  262. package/lib/exercises/probaStat/median.js +82 -0
  263. package/lib/exercises/probaStat/medianList.d.ts +4 -0
  264. package/lib/exercises/probaStat/medianList.d.ts.map +1 -0
  265. package/lib/exercises/probaStat/medianList.js +67 -0
  266. package/lib/exercises/probaStat/probabilityTree.d.ts +4 -0
  267. package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -0
  268. package/lib/exercises/probaStat/probabilityTree.js +135 -0
  269. package/lib/exercises/probaStat/quartiles.d.ts +4 -0
  270. package/lib/exercises/probaStat/quartiles.d.ts.map +1 -0
  271. package/lib/exercises/probaStat/quartiles.js +96 -0
  272. package/lib/exercises/probaStat/quartilesList.d.ts +4 -0
  273. package/lib/exercises/probaStat/quartilesList.d.ts.map +1 -0
  274. package/lib/exercises/probaStat/quartilesList.js +81 -0
  275. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
  276. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +3 -0
  277. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
  278. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +3 -0
  279. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
  280. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +3 -0
  281. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
  282. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +3 -0
  283. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  284. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +3 -0
  285. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  286. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +3 -0
  287. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  288. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +3 -0
  289. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  290. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +4 -0
  291. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  292. package/lib/exercises/sequences/geometric/geometricFindReason.js +4 -0
  293. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
  294. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +4 -0
  295. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  296. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +4 -0
  297. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  298. package/lib/exercises/squareRoots/simpifySquareRoot.js +3 -0
  299. package/lib/index.d.ts +2 -2
  300. package/lib/index.d.ts.map +1 -1
  301. package/lib/index.js +3 -3
  302. package/lib/math/polynomials/polynomial.d.ts +3 -1
  303. package/lib/math/polynomials/polynomial.d.ts.map +1 -1
  304. package/lib/math/polynomials/polynomial.js +48 -2
  305. package/lib/tree/nodes/functions/expNode.d.ts +10 -0
  306. package/lib/tree/nodes/functions/expNode.d.ts.map +1 -0
  307. package/lib/tree/nodes/functions/expNode.js +21 -0
  308. package/lib/tree/nodes/functions/functionNode.d.ts +3 -1
  309. package/lib/tree/nodes/functions/functionNode.d.ts.map +1 -1
  310. package/lib/tree/nodes/functions/functionNode.js +2 -0
  311. package/lib/tree/nodes/functions/logNode.d.ts +10 -0
  312. package/lib/tree/nodes/functions/logNode.d.ts.map +1 -0
  313. package/lib/tree/nodes/functions/logNode.js +21 -0
  314. package/lib/tree/nodes/functions/sinNode.d.ts +9 -0
  315. package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -1
  316. package/lib/tree/nodes/functions/sinNode.js +20 -0
  317. package/lib/tree/parsers/simplify.d.ts.map +1 -1
  318. package/lib/tree/parsers/simplify.js +12 -0
  319. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/logEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,aAAa,IAAI,QAAQ,CAuDxC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLnEquation = exports.logEquation = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const randint_1 = require("../../../math/utils/random/randint");
6
+ const expNode_1 = require("../../../tree/nodes/functions/expNode");
7
+ const logNode_1 = require("../../../tree/nodes/functions/logNode");
8
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
+ const equalNode_1 = require("../../../tree/nodes/operators/equalNode");
10
+ const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
11
+ const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
12
+ const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
13
+ const simplify_1 = require("../../../tree/parsers/simplify");
14
+ const shuffle_1 = require("../../../utils/shuffle");
15
+ const uuid_1 = require("uuid");
16
+ exports.logEquation = {
17
+ id: 'logEquation',
18
+ connector: '=',
19
+ instruction: '',
20
+ label: 'Résoudre des équations de type $a \\times ln(x) = k$',
21
+ levels: ['1', '0'],
22
+ section: 'Fonction Logarithme népérien',
23
+ isSingleStep: false,
24
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnEquation, nb),
25
+ keys: ['ln', 'exp'],
26
+ };
27
+ function getLnEquation() {
28
+ const a = (0, randint_1.randint)(-9, 20, [0]);
29
+ const k = (0, randint_1.randint)(-9, 20, [0]);
30
+ const equation = new equalNode_1.EqualNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new logNode_1.LogNode(new variableNode_1.VariableNode('x')))), new numberNode_1.NumberNode(k));
31
+ const answer = new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(k), new numberNode_1.NumberNode(a))));
32
+ const getPropositions = (numOptions) => {
33
+ const propositions = [];
34
+ propositions.push({
35
+ id: (0, uuid_1.v4)(),
36
+ statement: answer.toTex(),
37
+ isRightAnswer: true,
38
+ format: 'tex',
39
+ });
40
+ for (let i = 0; i < numOptions - 1; i++) {
41
+ let isDuplicate;
42
+ let proposition;
43
+ do {
44
+ const randomA = (0, randint_1.randint)(1, 10);
45
+ const randomK = (0, randint_1.randint)(1, 20);
46
+ proposition = {
47
+ id: (0, uuid_1.v4)(),
48
+ statement: new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(randomK), new numberNode_1.NumberNode(randomA)))).toTex(),
49
+ isRightAnswer: false,
50
+ format: 'tex',
51
+ };
52
+ isDuplicate = propositions.some((p) => p.statement === proposition.statement);
53
+ } while (isDuplicate);
54
+ propositions.push(proposition);
55
+ }
56
+ return (0, shuffle_1.shuffle)(propositions);
57
+ };
58
+ const question = {
59
+ instruction: `Résoudre l'équation $${equation.toTex()}$.`,
60
+ answer: answer.toTex(),
61
+ keys: ['ln', 'exp'],
62
+ getPropositions,
63
+ answerFormat: 'tex',
64
+ };
65
+ return question;
66
+ }
67
+ exports.getLnEquation = getLnEquation;
@@ -1 +1 @@
1
- {"version":3,"file":"multiplicationEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/multiplicationEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAsEpD"}
1
+ {"version":3,"file":"multiplicationEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/multiplicationEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAyEpD"}
@@ -38,6 +38,7 @@ function getMultiplicationEquation() {
38
38
  id: (0, uuid_1.v4)() + '',
39
39
  statement: answer,
40
40
  isRightAnswer: true,
41
+ format: 'tex',
41
42
  });
42
43
  for (let i = 0; i < n - 1; i++) {
43
44
  let isDuplicate;
@@ -56,6 +57,7 @@ function getMultiplicationEquation() {
56
57
  id: (0, uuid_1.v4)() + '',
57
58
  statement: wrongAnswer,
58
59
  isRightAnswer: false,
60
+ format: 'tex',
59
61
  };
60
62
  isDuplicate = res.some((p) => p.statement === proposition.statement);
61
63
  } while (isDuplicate);
@@ -68,6 +70,7 @@ function getMultiplicationEquation() {
68
70
  answer: `S = \\left\\{${(0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(-b), new numberNode_1.NumberNode(a))).toTex()};${(0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(-d), new numberNode_1.NumberNode(c))).toTex()}\\right\\}`,
69
71
  keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'ou'],
70
72
  getPropositions,
73
+ answerFormat: 'tex',
71
74
  };
72
75
  return question;
73
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAuDhD"}
1
+ {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA2DhD"}
@@ -33,11 +33,13 @@ function getFactoType1Question() {
33
33
  id: (0, uuid_1.v4)() + '',
34
34
  statement: answerTree.toTex(),
35
35
  isRightAnswer: true,
36
+ format: 'tex',
36
37
  });
37
38
  res.push({
38
39
  id: (0, uuid_1.v4)() + '',
39
40
  statement: new powerNode_1.PowerNode(new affine_1.Affine(affine.b, affine.a).toTree(), new numberNode_1.NumberNode(2)).toTex(),
40
41
  isRightAnswer: false,
42
+ format: 'tex',
41
43
  });
42
44
  for (let i = 0; i < n - 2; i++) {
43
45
  let isDuplicate;
@@ -48,6 +50,7 @@ function getFactoType1Question() {
48
50
  id: (0, uuid_1.v4)() + '',
49
51
  statement: wrongAnswer.toTex(),
50
52
  isRightAnswer: false,
53
+ format: 'tex',
51
54
  };
52
55
  isDuplicate = res.some((p) => p.statement === proposition.statement);
53
56
  } while (isDuplicate);
@@ -60,6 +63,7 @@ function getFactoType1Question() {
60
63
  answer: answerTree.toTex(),
61
64
  keys: ['x'],
62
65
  getPropositions,
66
+ answerFormat: 'tex',
63
67
  };
64
68
  return question;
65
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAgEhD"}
1
+ {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAqEhD"}
@@ -34,17 +34,20 @@ function getFactoType1Question() {
34
34
  id: (0, uuid_1.v4)() + '',
35
35
  statement: answerTree.toTex(),
36
36
  isRightAnswer: true,
37
+ format: 'tex',
37
38
  });
38
39
  res.push({
39
40
  id: (0, uuid_1.v4)() + '',
40
41
  statement: new powerNode_1.PowerNode(new affine_1.Affine(-affine.b, -affine.a).toTree(), new numberNode_1.NumberNode(2)).toTex(),
41
42
  isRightAnswer: false,
43
+ format: 'tex',
42
44
  });
43
45
  if (n > 2)
44
46
  res.push({
45
47
  id: (0, uuid_1.v4)() + '',
46
48
  statement: new powerNode_1.PowerNode(new affine_1.Affine(-affine.a, affine.b).toTree(), new numberNode_1.NumberNode(2)).toTex(),
47
49
  isRightAnswer: false,
50
+ format: 'tex',
48
51
  });
49
52
  for (let i = 0; i < n - 3; i++) {
50
53
  let isDuplicate;
@@ -55,6 +58,7 @@ function getFactoType1Question() {
55
58
  id: (0, uuid_1.v4)() + '',
56
59
  statement: wrongAnswer.toTex(),
57
60
  isRightAnswer: false,
61
+ format: 'tex',
58
62
  };
59
63
  isDuplicate = res.some((p) => p.statement === proposition.statement);
60
64
  } while (isDuplicate);
@@ -67,6 +71,7 @@ function getFactoType1Question() {
67
71
  answer: answerTree.toTex(),
68
72
  keys: ['x'],
69
73
  getPropositions,
74
+ answerFormat: 'tex',
70
75
  };
71
76
  return question;
72
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAqEhD"}
1
+ {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA2EhD"}
@@ -33,23 +33,27 @@ function getFactoType1Question() {
33
33
  id: (0, uuid_1.v4)() + '',
34
34
  statement: answerTree.toTex(),
35
35
  isRightAnswer: true,
36
+ format: 'tex',
36
37
  });
37
38
  res.push({
38
39
  id: (0, uuid_1.v4)() + '',
39
40
  statement: new multiplyNode_1.MultiplyNode(affine.toTree(), affine.toTree()).toTex(),
40
41
  isRightAnswer: false,
42
+ format: 'tex',
41
43
  });
42
44
  if (n > 2)
43
45
  res.push({
44
46
  id: (0, uuid_1.v4)() + '',
45
47
  statement: new multiplyNode_1.MultiplyNode(affine2.toTree(), affine2.toTree()).toTex(),
46
48
  isRightAnswer: false,
49
+ format: 'tex',
47
50
  });
48
51
  if (n > 3)
49
52
  res.push({
50
53
  id: (0, uuid_1.v4)() + '',
51
54
  statement: new multiplyNode_1.MultiplyNode(affine2.toTree(), new affine_1.Affine(-affine.b, affine.a).toTree()).toTex(),
52
55
  isRightAnswer: false,
56
+ format: 'tex',
53
57
  });
54
58
  for (let i = 0; i < n - 4; i++) {
55
59
  let isDuplicate;
@@ -60,6 +64,7 @@ function getFactoType1Question() {
60
64
  id: (0, uuid_1.v4)() + '',
61
65
  statement: wrongAnswer.toTex(),
62
66
  isRightAnswer: false,
67
+ format: 'tex',
63
68
  };
64
69
  isDuplicate = res.some((p) => p.statement === proposition.statement);
65
70
  } while (isDuplicate);
@@ -72,6 +77,7 @@ function getFactoType1Question() {
72
77
  answer: answerTree.toTex(),
73
78
  keys: ['x'],
74
79
  getPropositions,
80
+ answerFormat: 'tex',
75
81
  };
76
82
  return question;
77
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA6FhD"}
1
+ {"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAmGhD"}
@@ -37,23 +37,27 @@ function getFactoType1Question() {
37
37
  id: (0, uuid_1.v4)() + '',
38
38
  statement: answerTree.toTex(),
39
39
  isRightAnswer: true,
40
+ format: 'tex',
40
41
  });
41
42
  res.push({
42
43
  id: (0, uuid_1.v4)() + '',
43
44
  statement: new multiplyNode_1.MultiplyNode(affines[0].toTree(), affines[1].add(operation !== 'add' ? affines[2] : affines[2].opposite()).toTree()).toTex(),
44
45
  isRightAnswer: false,
46
+ format: 'tex',
45
47
  });
46
48
  if (n > 2)
47
49
  res.push({
48
50
  id: (0, uuid_1.v4)() + '',
49
51
  statement: new multiplyNode_1.MultiplyNode(affines[1].toTree(), affines[0].add(operation === 'add' ? affines[2] : affines[2].opposite()).toTree()).toTex(),
50
52
  isRightAnswer: false,
53
+ format: 'tex',
51
54
  });
52
55
  if (n > 3)
53
56
  res.push({
54
57
  id: (0, uuid_1.v4)() + '',
55
58
  statement: new multiplyNode_1.MultiplyNode(affines[2].toTree(), affines[0].add(operation === 'add' ? affines[2] : affines[2].opposite()).toTree()).toTex(),
56
59
  isRightAnswer: false,
60
+ format: 'tex',
57
61
  });
58
62
  for (let i = 0; i < n - 4; i++) {
59
63
  let isDuplicate;
@@ -64,6 +68,7 @@ function getFactoType1Question() {
64
68
  id: (0, uuid_1.v4)() + '',
65
69
  statement: wrongAnswer.toTex(),
66
70
  isRightAnswer: false,
71
+ format: 'tex',
67
72
  };
68
73
  isDuplicate = res.some((p) => p.statement === proposition.statement);
69
74
  } while (isDuplicate);
@@ -76,6 +81,7 @@ function getFactoType1Question() {
76
81
  answer: answerTree.toTex(),
77
82
  keys: ['x'],
78
83
  getPropositions,
84
+ answerFormat: 'tex',
79
85
  };
80
86
  return question;
81
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"evaluateExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/evaluateExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAiDhD"}
1
+ {"version":3,"file":"evaluateExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/evaluateExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAoDhD"}
@@ -33,6 +33,7 @@ function getEvaluateExpression() {
33
33
  id: (0, uuid_1.v4)() + '',
34
34
  statement: answer + '',
35
35
  isRightAnswer: true,
36
+ format: 'tex',
36
37
  });
37
38
  for (let i = 0; i < n - 1; i++) {
38
39
  let isDuplicate;
@@ -43,6 +44,7 @@ function getEvaluateExpression() {
43
44
  id: (0, uuid_1.v4)() + '',
44
45
  statement: wrongAnswer + '',
45
46
  isRightAnswer: false,
47
+ format: 'tex',
46
48
  };
47
49
  isDuplicate = res.some((p) => p.statement === proposition.statement);
48
50
  } while (isDuplicate);
@@ -55,6 +57,7 @@ function getEvaluateExpression() {
55
57
  answer: answer + '',
56
58
  keys: ['x'],
57
59
  getPropositions,
60
+ answerFormat: 'tex',
58
61
  };
59
62
  return question;
60
63
  }
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const expSimplifiying: Exercise;
3
+ export declare function getExpSimplifiying(): Question;
4
+ //# sourceMappingURL=expSimplifiying.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expSimplifiying.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/expSimplifiying.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAyG7C"}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getExpSimplifiying = exports.expSimplifiying = 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 expNode_1 = require("../../../tree/nodes/functions/expNode");
8
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
+ const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
10
+ const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
11
+ const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
12
+ const simplify_1 = require("../../../tree/parsers/simplify");
13
+ const shuffle_1 = require("../../../utils/shuffle");
14
+ const uuid_1 = require("uuid");
15
+ exports.expSimplifiying = {
16
+ id: 'expSimplifiying',
17
+ connector: '\\iff',
18
+ instruction: '',
19
+ label: "Simplifier des expressions avec l'exponentielle",
20
+ levels: ['1', '0'],
21
+ section: 'Fonction Exponentielle',
22
+ isSingleStep: false,
23
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpSimplifiying, nb),
24
+ keys: ['exp'],
25
+ };
26
+ function getExpSimplifiying() {
27
+ const random = (0, randint_1.randint)(1, 4);
28
+ let expression;
29
+ switch (random) {
30
+ case 1:
31
+ expression = new fractionNode_1.FractionNode(new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([0, (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new numberNode_1.NumberNode((0, randint_1.randint)(-9, 10, [0])))), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
32
+ expression.shuffle();
33
+ break;
34
+ case 2:
35
+ expression = new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
36
+ expression.shuffle();
37
+ break;
38
+ case 3:
39
+ expression = new fractionNode_1.FractionNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
40
+ expression.shuffle();
41
+ break;
42
+ default:
43
+ expression = new expNode_1.ExpNode(new variableNode_1.VariableNode('x'));
44
+ }
45
+ const simplifiedExpression = (0, simplify_1.simplifyNode)(expression);
46
+ const getPropositions = (numOptions) => {
47
+ const propositions = [];
48
+ propositions.push({
49
+ id: (0, uuid_1.v4)(),
50
+ statement: simplifiedExpression.toTex(),
51
+ isRightAnswer: true,
52
+ format: 'tex',
53
+ });
54
+ for (let i = 0; i < numOptions - 1; i++) {
55
+ let isDuplicate;
56
+ let proposition;
57
+ do {
58
+ let wrongExpression;
59
+ switch (random) {
60
+ case 1:
61
+ wrongExpression = new fractionNode_1.FractionNode(new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([0, (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new numberNode_1.NumberNode((0, randint_1.randint)(-9, 10, [0])))), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
62
+ wrongExpression.shuffle();
63
+ break;
64
+ case 2:
65
+ wrongExpression = new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
66
+ wrongExpression.shuffle();
67
+ break;
68
+ case 3:
69
+ wrongExpression = new fractionNode_1.FractionNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
70
+ wrongExpression.shuffle();
71
+ break;
72
+ default:
73
+ wrongExpression = new expNode_1.ExpNode(new variableNode_1.VariableNode('x'));
74
+ }
75
+ proposition = {
76
+ id: (0, uuid_1.v4)(),
77
+ statement: (0, simplify_1.simplifyNode)(wrongExpression).toTex(),
78
+ isRightAnswer: false,
79
+ format: 'tex',
80
+ };
81
+ isDuplicate = propositions.some((p) => p.statement === proposition.statement);
82
+ } while (isDuplicate);
83
+ propositions.push(proposition);
84
+ }
85
+ return (0, shuffle_1.shuffle)(propositions);
86
+ };
87
+ const question = {
88
+ instruction: `Simplifier l'expression $${expression.toTex()}$.`,
89
+ answer: simplifiedExpression.toTex(),
90
+ keys: ['exp'],
91
+ getPropositions,
92
+ answerFormat: 'tex',
93
+ };
94
+ return question;
95
+ }
96
+ exports.getExpSimplifiying = getExpSimplifiying;
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const logSimplifiying: Exercise;
3
+ export declare function getExpSimplifiying(): Question;
4
+ //# sourceMappingURL=logSimplifiying.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logSimplifiying.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/logSimplifiying.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CA+D7C"}
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getExpSimplifiying = exports.logSimplifiying = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const randint_1 = require("../../../math/utils/random/randint");
6
+ const logNode_1 = require("../../../tree/nodes/functions/logNode");
7
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
8
+ const addNode_1 = require("../../../tree/nodes/operators/addNode");
9
+ const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
10
+ const simplify_1 = require("../../../tree/parsers/simplify");
11
+ const coinFlip_1 = require("../../../utils/coinFlip");
12
+ const shuffle_1 = require("../../../utils/shuffle");
13
+ const uuid_1 = require("uuid");
14
+ exports.logSimplifiying = {
15
+ id: 'logSimplifiying',
16
+ connector: '\\iff',
17
+ instruction: '',
18
+ label: 'Simplifier des expressions avec $ln$',
19
+ levels: ['1', '0'],
20
+ section: 'Fonction Logarithme népérien',
21
+ isSingleStep: false,
22
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpSimplifiying, nb),
23
+ keys: ['ln'],
24
+ };
25
+ function getExpSimplifiying() {
26
+ const a = (0, randint_1.randint)(1, 10);
27
+ const b = (0, randint_1.randint)(1, 10);
28
+ let expression;
29
+ let simplifiedExpression;
30
+ let pm = 0;
31
+ if ((0, coinFlip_1.coinFlip)()) {
32
+ expression = new addNode_1.AddNode(new logNode_1.LogNode(new numberNode_1.NumberNode(a)), new logNode_1.LogNode(new numberNode_1.NumberNode(b)));
33
+ simplifiedExpression = new logNode_1.LogNode(new numberNode_1.NumberNode(a * b));
34
+ pm = 1;
35
+ }
36
+ else {
37
+ expression = new substractNode_1.SubstractNode(new logNode_1.LogNode(new numberNode_1.NumberNode(a)), new logNode_1.LogNode(new numberNode_1.NumberNode(b)));
38
+ simplifiedExpression = new logNode_1.LogNode((0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(a / b)));
39
+ pm = -1;
40
+ }
41
+ const getPropositions = (numOptions) => {
42
+ const propositions = [];
43
+ propositions.push({
44
+ id: (0, uuid_1.v4)(),
45
+ statement: simplifiedExpression.toTex(),
46
+ isRightAnswer: true,
47
+ format: 'tex',
48
+ });
49
+ for (let i = 0; i < numOptions - 1; i++) {
50
+ let isDuplicate;
51
+ let proposition;
52
+ do {
53
+ const a = (0, randint_1.randint)(1, 10);
54
+ const b = (0, randint_1.randint)(1, 10);
55
+ proposition = {
56
+ id: (0, uuid_1.v4)(),
57
+ statement: pm > 0
58
+ ? new logNode_1.LogNode(new numberNode_1.NumberNode(a * b)).toTex()
59
+ : new logNode_1.LogNode((0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(a / b))).toTex(),
60
+ isRightAnswer: false,
61
+ format: 'tex',
62
+ };
63
+ isDuplicate = propositions.some((p) => p.statement === proposition.statement);
64
+ } while (isDuplicate);
65
+ propositions.push(proposition);
66
+ }
67
+ return (0, shuffle_1.shuffle)(propositions);
68
+ };
69
+ const question = {
70
+ instruction: `Simplifier l'expression $${expression.toTex()}$.`,
71
+ answer: simplifiedExpression.toTex(),
72
+ keys: ['ln'],
73
+ getPropositions,
74
+ answerFormat: 'tex',
75
+ };
76
+ return question;
77
+ }
78
+ exports.getExpSimplifiying = getExpSimplifiying;
@@ -1 +1 @@
1
- {"version":3,"file":"reduceExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/reduceExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAgI9C"}
1
+ {"version":3,"file":"reduceExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/reduceExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAmI9C"}
@@ -88,6 +88,7 @@ function getReduceExpression() {
88
88
  id: (0, uuid_1.v4)() + '',
89
89
  statement: answer,
90
90
  isRightAnswer: true,
91
+ format: 'tex',
91
92
  });
92
93
  for (let i = 0; i < n - 1; i++) {
93
94
  let isDuplicate;
@@ -100,6 +101,7 @@ function getReduceExpression() {
100
101
  id: (0, uuid_1.v4)() + '',
101
102
  statement: polynome1.add(polynome2).toTree().toTex(),
102
103
  isRightAnswer: false,
104
+ format: 'tex',
103
105
  };
104
106
  isDuplicate = res.some((p) => p.statement === proposition.statement);
105
107
  } while (isDuplicate);
@@ -112,6 +114,7 @@ function getReduceExpression() {
112
114
  answer,
113
115
  keys: ['x'],
114
116
  getPropositions,
117
+ answerFormat: 'tex',
115
118
  };
116
119
  return question;
117
120
  }
@@ -1 +1 @@
1
- {"version":3,"file":"aeraConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/aeraConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAoD5C"}
1
+ {"version":3,"file":"aeraConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/aeraConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAuD5C"}
@@ -30,6 +30,7 @@ function getAeraConversion() {
30
30
  id: (0, uuid_1.v4)() + '',
31
31
  statement: randomAera.multiplyByPowerOfTen(2 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
32
32
  isRightAnswer: true,
33
+ format: 'tex',
33
34
  });
34
35
  for (let i = 0; i < n - 1; i++) {
35
36
  let isDuplicate;
@@ -41,6 +42,7 @@ function getAeraConversion() {
41
42
  id: (0, uuid_1.v4)() + '',
42
43
  statement: wrongAnswer,
43
44
  isRightAnswer: false,
45
+ format: 'tex',
44
46
  };
45
47
  isDuplicate = res.some((p) => p.statement === proposition.statement);
46
48
  } while (isDuplicate);
@@ -53,6 +55,7 @@ function getAeraConversion() {
53
55
  answer: randomAera.multiplyByPowerOfTen(2 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
54
56
  keys: [],
55
57
  getPropositions,
58
+ answerFormat: 'tex',
56
59
  };
57
60
  return question;
58
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"capacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/capacityConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA+ChD"}
1
+ {"version":3,"file":"capacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/capacityConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAkDhD"}
@@ -28,6 +28,7 @@ function getCapacityConversion() {
28
28
  id: (0, uuid_1.v4)() + '',
29
29
  statement: randomCapacity.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
30
30
  isRightAnswer: true,
31
+ format: 'tex',
31
32
  });
32
33
  for (let i = 0; i < n - 1; i++) {
33
34
  let isDuplicate;
@@ -39,6 +40,7 @@ function getCapacityConversion() {
39
40
  id: (0, uuid_1.v4)() + '',
40
41
  statement: wrongAnswer,
41
42
  isRightAnswer: false,
43
+ format: 'tex',
42
44
  };
43
45
  isDuplicate = res.some((p) => p.statement === proposition.statement);
44
46
  } while (isDuplicate);
@@ -51,6 +53,7 @@ function getCapacityConversion() {
51
53
  answer: randomCapacity.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
52
54
  keys: [],
53
55
  getPropositions,
56
+ answerFormat: 'tex',
54
57
  };
55
58
  return question;
56
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lengthConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/lengthConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA8C9C"}
1
+ {"version":3,"file":"lengthConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/lengthConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAiD9C"}
@@ -28,6 +28,7 @@ function getLengthConversion() {
28
28
  id: (0, uuid_1.v4)() + '',
29
29
  statement: randomlength.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
30
30
  isRightAnswer: true,
31
+ format: 'tex',
31
32
  });
32
33
  for (let i = 0; i < n - 1; i++) {
33
34
  let isDuplicate;
@@ -38,6 +39,7 @@ function getLengthConversion() {
38
39
  id: (0, uuid_1.v4)() + '',
39
40
  statement: wrongAnswer,
40
41
  isRightAnswer: false,
42
+ format: 'tex',
41
43
  };
42
44
  isDuplicate = res.some((p) => p.statement === proposition.statement);
43
45
  } while (isDuplicate);
@@ -50,6 +52,7 @@ function getLengthConversion() {
50
52
  answer: randomlength.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
51
53
  keys: [],
52
54
  getPropositions,
55
+ answerFormat: 'tex',
53
56
  };
54
57
  return question;
55
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"massConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/massConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CA8C5C"}
1
+ {"version":3,"file":"massConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/massConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAiD5C"}