math-exercises 1.3.58 → 1.3.60

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 (335) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
  2. package/lib/exercises/calcul/addAndSub.js +2 -0
  3. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
  4. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +2 -0
  5. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -1
  6. package/lib/exercises/calcul/arithmetics/euclideanDivision.js +2 -0
  7. package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
  8. package/lib/exercises/calcul/arithmetics/primeNumbers.js +2 -0
  9. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  10. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +2 -0
  11. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  12. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +2 -0
  13. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
  14. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +2 -0
  15. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
  16. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +2 -0
  17. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  18. package/lib/exercises/calcul/fractions/fractionsDivision.js +2 -0
  19. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  20. package/lib/exercises/calcul/fractions/fractionsProduct.js +2 -0
  21. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
  22. package/lib/exercises/calcul/fractions/fractionsSum.js +2 -0
  23. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  24. package/lib/exercises/calcul/fractions/simplifyFraction.js +2 -0
  25. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts.map +1 -1
  26. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +2 -0
  27. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts.map +1 -1
  28. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +2 -0
  29. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts.map +1 -1
  30. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +2 -0
  31. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts.map +1 -1
  32. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.js +2 -0
  33. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
  34. package/lib/exercises/calcul/operations/operationsPriorities.js +2 -0
  35. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  36. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +2 -0
  37. package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
  38. package/lib/exercises/calcul/proportionality/proportionalityTable.js +2 -0
  39. package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
  40. package/lib/exercises/calcul/rounding/rounding.js +2 -0
  41. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
  42. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +2 -0
  43. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  44. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +2 -0
  45. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  46. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +2 -0
  47. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
  48. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +2 -0
  49. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  50. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +2 -0
  51. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
  52. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +2 -0
  53. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
  54. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +2 -0
  55. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
  56. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +2 -0
  57. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
  58. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +2 -0
  59. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
  60. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +2 -0
  61. package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -1
  62. package/lib/exercises/calculLitteral/equation/expEquation.js +2 -0
  63. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
  64. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +2 -0
  65. package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  66. package/lib/exercises/calculLitteral/equation/fractionEquation.js +2 -0
  67. package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -1
  68. package/lib/exercises/calculLitteral/equation/logEquation.js +2 -0
  69. package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  70. package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +2 -0
  71. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  72. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +2 -0
  73. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  74. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +2 -0
  75. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  76. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +2 -0
  77. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
  78. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +2 -0
  79. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -1
  80. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.js +2 -0
  81. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts.map +1 -1
  82. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.js +2 -0
  83. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -1
  84. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.js +2 -0
  85. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
  86. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.js +2 -0
  87. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
  88. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +2 -0
  89. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -1
  90. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +2 -0
  91. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -1
  92. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +2 -0
  93. package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
  94. package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +2 -0
  95. package/lib/exercises/complex/addComplex.d.ts.map +1 -1
  96. package/lib/exercises/complex/addComplex.js +2 -0
  97. package/lib/exercises/complex/conjugateComplex.ts.d.ts.map +1 -1
  98. package/lib/exercises/complex/conjugateComplex.ts.js +2 -0
  99. package/lib/exercises/complex/conjugateDivideComplex.d.ts.map +1 -1
  100. package/lib/exercises/complex/conjugateDivideComplex.js +2 -0
  101. package/lib/exercises/complex/conjugateMultiplyComplex.d.ts.map +1 -1
  102. package/lib/exercises/complex/conjugateMultiplyComplex.js +2 -0
  103. package/lib/exercises/complex/divideComplex.d.ts.map +1 -1
  104. package/lib/exercises/complex/divideComplex.js +2 -0
  105. package/lib/exercises/complex/inverseComplex.d.ts.map +1 -1
  106. package/lib/exercises/complex/inverseComplex.js +2 -0
  107. package/lib/exercises/complex/linearCombinaisonComplex.d.ts.map +1 -1
  108. package/lib/exercises/complex/linearCombinaisonComplex.js +2 -0
  109. package/lib/exercises/complex/mutiplyComplex.d.ts.map +1 -1
  110. package/lib/exercises/complex/mutiplyComplex.js +2 -0
  111. package/lib/exercises/complex/reAndIm.d.ts.map +1 -1
  112. package/lib/exercises/complex/reAndIm.js +2 -0
  113. package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -1
  114. package/lib/exercises/conversion/aeraConversion.js +2 -0
  115. package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -1
  116. package/lib/exercises/conversion/capacityConversion.js +2 -0
  117. package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -1
  118. package/lib/exercises/conversion/lengthConversion.js +2 -0
  119. package/lib/exercises/conversion/massConversion.d.ts.map +1 -1
  120. package/lib/exercises/conversion/massConversion.js +2 -0
  121. package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -1
  122. package/lib/exercises/conversion/volumeCapacityConversion.js +2 -0
  123. package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -1
  124. package/lib/exercises/conversion/volumeConversion.js +2 -0
  125. package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
  126. package/lib/exercises/derivation/derivative/constanteDerivative.js +2 -0
  127. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -1
  128. package/lib/exercises/derivation/derivative/expDerivativeOne.js +2 -0
  129. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -1
  130. package/lib/exercises/derivation/derivative/expDerivativeThree.js +2 -0
  131. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -1
  132. package/lib/exercises/derivation/derivative/expDerivativeTwo.js +2 -0
  133. package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
  134. package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +2 -0
  135. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
  136. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +2 -0
  137. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -1
  138. package/lib/exercises/derivation/derivative/lnDerivativeOne.js +2 -0
  139. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
  140. package/lib/exercises/derivation/derivative/lnDerivativeThree.js +2 -0
  141. package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -1
  142. package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +2 -0
  143. package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
  144. package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +2 -0
  145. package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
  146. package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +2 -0
  147. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -1
  148. package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +2 -0
  149. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
  150. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +2 -0
  151. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
  152. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +2 -0
  153. package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
  154. package/lib/exercises/derivation/derivativeNumberReading.js +2 -0
  155. package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts.map +1 -1
  156. package/lib/exercises/equaDiff/equaDiffGeneralForme.js +2 -0
  157. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -1
  158. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +2 -0
  159. package/lib/exercises/exercise.d.ts +3 -1
  160. package/lib/exercises/exercise.d.ts.map +1 -1
  161. package/lib/exercises/exercises.d.ts.map +1 -1
  162. package/lib/exercises/exercises.js +5 -0
  163. package/lib/exercises/functions/affines/leadingCoefficient.d.ts.map +1 -1
  164. package/lib/exercises/functions/affines/leadingCoefficient.js +2 -0
  165. package/lib/exercises/functions/affines/leadingCoefficientCalculV1.d.ts.map +1 -1
  166. package/lib/exercises/functions/affines/leadingCoefficientCalculV1.js +2 -0
  167. package/lib/exercises/functions/affines/leadingCoefficientCalculV2.d.ts.map +1 -1
  168. package/lib/exercises/functions/affines/leadingCoefficientCalculV2.js +2 -0
  169. package/lib/exercises/functions/affines/signFunction.d.ts.map +1 -1
  170. package/lib/exercises/functions/affines/signFunction.js +2 -0
  171. package/lib/exercises/functions/basics/imageFunction.d.ts.map +1 -1
  172. package/lib/exercises/functions/basics/imageFunction.js +2 -0
  173. package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
  174. package/lib/exercises/functions/basics/imageFunctionGeogebra.js +2 -0
  175. package/lib/exercises/functions/basics/inverseImageFunction.d.ts.map +1 -1
  176. package/lib/exercises/functions/basics/inverseImageFunction.js +2 -0
  177. package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
  178. package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.js +2 -0
  179. package/lib/exercises/functions/cube/cubicEquation.d.ts.map +1 -1
  180. package/lib/exercises/functions/cube/cubicEquation.js +2 -0
  181. package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.d.ts.map +1 -1
  182. package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.js +2 -0
  183. package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.d.ts.map +1 -1
  184. package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.js +2 -0
  185. package/lib/exercises/functions/trinoms/canonicalFromDevForm.d.ts.map +1 -1
  186. package/lib/exercises/functions/trinoms/canonicalFromDevForm.js +2 -0
  187. package/lib/exercises/functions/trinoms/deltaTrinom.d.ts +4 -0
  188. package/lib/exercises/functions/trinoms/deltaTrinom.d.ts.map +1 -0
  189. package/lib/exercises/functions/trinoms/deltaTrinom.js +75 -0
  190. package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.d.ts.map +1 -1
  191. package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.js +2 -0
  192. package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.d.ts.map +1 -1
  193. package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.js +3 -1
  194. package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts +4 -0
  195. package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts.map +1 -0
  196. package/lib/exercises/functions/trinoms/rootsFromDevForm.js +58 -0
  197. package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts +4 -0
  198. package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts.map +1 -0
  199. package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.js +94 -0
  200. package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.d.ts.map +1 -1
  201. package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.js +3 -1
  202. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -1
  203. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +2 -0
  204. package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
  205. package/lib/exercises/geometry/cartesian/midpoint.js +2 -0
  206. package/lib/exercises/geometry/euclidean/circleArea.d.ts.map +1 -1
  207. package/lib/exercises/geometry/euclidean/circleArea.js +2 -0
  208. package/lib/exercises/geometry/euclidean/circleCircumference.d.ts.map +1 -1
  209. package/lib/exercises/geometry/euclidean/circleCircumference.js +2 -0
  210. package/lib/exercises/geometry/euclidean/pythagore.d.ts.map +1 -1
  211. package/lib/exercises/geometry/euclidean/pythagore.js +2 -0
  212. package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts.map +1 -1
  213. package/lib/exercises/geometry/euclidean/pythagoreCalcul.js +2 -0
  214. package/lib/exercises/geometry/euclidean/rectangleArea.d.ts.map +1 -1
  215. package/lib/exercises/geometry/euclidean/rectangleArea.js +2 -0
  216. package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts.map +1 -1
  217. package/lib/exercises/geometry/euclidean/rectanglePerimeter.js +2 -0
  218. package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts.map +1 -1
  219. package/lib/exercises/geometry/euclidean/rightTriangleArea.js +2 -0
  220. package/lib/exercises/geometry/euclidean/squareArea.d.ts.map +1 -1
  221. package/lib/exercises/geometry/euclidean/squareArea.js +2 -0
  222. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts.map +1 -1
  223. package/lib/exercises/geometry/euclidean/squarePerimeter.js +2 -0
  224. package/lib/exercises/geometry/euclidean/thales.d.ts.map +1 -1
  225. package/lib/exercises/geometry/euclidean/thales.js +2 -0
  226. package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts.map +1 -1
  227. package/lib/exercises/geometry/euclidean/thalesCalcul.js +2 -0
  228. package/lib/exercises/geometry/euclidean/triangleArea.d.ts.map +1 -1
  229. package/lib/exercises/geometry/euclidean/triangleArea.js +2 -0
  230. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts.map +1 -1
  231. package/lib/exercises/geometry/euclidean/triangleAreaV2.js +2 -0
  232. package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts.map +1 -1
  233. package/lib/exercises/geometry/euclidean/trianglePerimeter.js +2 -0
  234. package/lib/exercises/geometry/euclidean/trigonometry.d.ts.map +1 -1
  235. package/lib/exercises/geometry/euclidean/trigonometry.js +2 -0
  236. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts.map +1 -1
  237. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.js +2 -0
  238. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts.map +1 -1
  239. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.js +2 -0
  240. package/lib/exercises/geometry/vectors/chasles.d.ts.map +1 -1
  241. package/lib/exercises/geometry/vectors/chasles.js +2 -0
  242. package/lib/exercises/geometry/vectors/determinant.d.ts.map +1 -1
  243. package/lib/exercises/geometry/vectors/determinant.js +2 -0
  244. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  245. package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +2 -0
  246. package/lib/exercises/limits/polynomeLimit.d.ts.map +1 -1
  247. package/lib/exercises/limits/polynomeLimit.js +2 -0
  248. package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
  249. package/lib/exercises/percent/applyPercent.js +2 -0
  250. package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
  251. package/lib/exercises/percent/averageEvolutionRate.js +2 -0
  252. package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
  253. package/lib/exercises/percent/globalPercent.js +2 -0
  254. package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
  255. package/lib/exercises/percent/reciprocalPercentage.js +2 -0
  256. package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
  257. package/lib/exercises/powers/powersDivision.js +2 -0
  258. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
  259. package/lib/exercises/powers/powersOfTenToDecimal.js +2 -0
  260. package/lib/exercises/powers/powersPower.d.ts.map +1 -1
  261. package/lib/exercises/powers/powersPower.js +2 -0
  262. package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
  263. package/lib/exercises/powers/powersProduct.js +2 -0
  264. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
  265. package/lib/exercises/powers/scientificToDecimal.js +2 -0
  266. package/lib/exercises/primitve/constantPrimitive.d.ts.map +1 -1
  267. package/lib/exercises/primitve/constantPrimitive.js +2 -0
  268. package/lib/exercises/primitve/exponentialPrimitive.d.ts.map +1 -1
  269. package/lib/exercises/primitve/exponentialPrimitive.js +2 -0
  270. package/lib/exercises/primitve/logarithmePrimitive.d.ts.map +1 -1
  271. package/lib/exercises/primitve/logarithmePrimitive.js +2 -0
  272. package/lib/exercises/primitve/polynomialPrimitive.d.ts.map +1 -1
  273. package/lib/exercises/primitve/polynomialPrimitive.js +2 -0
  274. package/lib/exercises/primitve/sinCosPrimitive.d.ts.map +1 -1
  275. package/lib/exercises/primitve/sinCosPrimitive.js +2 -0
  276. package/lib/exercises/probaStat/averageWithTable.d.ts.map +1 -1
  277. package/lib/exercises/probaStat/averageWithTable.js +2 -0
  278. package/lib/exercises/probaStat/conditionalProbability.d.ts.map +1 -1
  279. package/lib/exercises/probaStat/conditionalProbability.js +2 -0
  280. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts.map +1 -1
  281. package/lib/exercises/probaStat/marginalAndConditionalFrequency.js +2 -0
  282. package/lib/exercises/probaStat/median.d.ts.map +1 -1
  283. package/lib/exercises/probaStat/median.js +2 -0
  284. package/lib/exercises/probaStat/medianList.d.ts.map +1 -1
  285. package/lib/exercises/probaStat/medianList.js +2 -0
  286. package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -1
  287. package/lib/exercises/probaStat/probabilityTree.js +2 -0
  288. package/lib/exercises/probaStat/quartiles.d.ts.map +1 -1
  289. package/lib/exercises/probaStat/quartiles.js +2 -0
  290. package/lib/exercises/probaStat/quartilesList.d.ts.map +1 -1
  291. package/lib/exercises/probaStat/quartilesList.js +2 -0
  292. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
  293. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +2 -0
  294. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
  295. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +2 -0
  296. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
  297. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +2 -0
  298. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
  299. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +2 -0
  300. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  301. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +2 -0
  302. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  303. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +2 -0
  304. package/lib/exercises/sequences/arithmetic/firstIntegersSum.d.ts.map +1 -1
  305. package/lib/exercises/sequences/arithmetic/firstIntegersSum.js +2 -0
  306. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
  307. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +2 -0
  308. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  309. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +2 -0
  310. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  311. package/lib/exercises/sequences/geometric/geometricFindReason.js +2 -0
  312. package/lib/exercises/sequences/geometric/geometricFirstTermsSum.d.ts.map +1 -1
  313. package/lib/exercises/sequences/geometric/geometricFirstTermsSum.js +2 -0
  314. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
  315. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +2 -0
  316. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  317. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +2 -0
  318. package/lib/exercises/sets/intervalsUnion.d.ts.map +1 -1
  319. package/lib/exercises/sets/intervalsUnion.js +2 -0
  320. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  321. package/lib/exercises/squareRoots/simpifySquareRoot.js +2 -0
  322. package/lib/exercises/squareRoots/squareRootEquation.d.ts.map +1 -1
  323. package/lib/exercises/squareRoots/squareRootEquation.js +2 -0
  324. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
  325. package/lib/exercises/trigonometry/mainRemarkableValues.js +2 -0
  326. package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
  327. package/lib/exercises/trigonometry/remarkableValues.js +2 -0
  328. package/lib/math/polynomials/trinom.d.ts +5 -0
  329. package/lib/math/polynomials/trinom.d.ts.map +1 -1
  330. package/lib/math/polynomials/trinom.js +45 -0
  331. package/lib/tree/nodes/functions/oppositeNode.d.ts.map +1 -1
  332. package/lib/tree/nodes/functions/oppositeNode.js +3 -0
  333. package/lib/tree/nodes/functions/sqrtNode.js +1 -1
  334. package/lib/tree/parsers/simplify.js +3 -0
  335. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../src/exercises/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CAyErD"}
1
+ {"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../src/exercises/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CA2ErD"}
@@ -78,6 +78,8 @@ function getDerivativeNumberReading() {
78
78
  coords: [xA - 5, xA + 5, yA - 5, yA + 5],
79
79
  getPropositions,
80
80
  answerFormat: 'tex',
81
+ qcmTimer: 60,
82
+ freeTimer: 60,
81
83
  };
82
84
  return question;
83
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equaDiffGeneralForme.d.ts","sourceRoot":"","sources":["../../../src/exercises/equaDiff/equaDiffGeneralForme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CA8DjD"}
1
+ {"version":3,"file":"equaDiffGeneralForme.d.ts","sourceRoot":"","sources":["../../../src/exercises/equaDiff/equaDiffGeneralForme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAgEjD"}
@@ -60,6 +60,8 @@ function getExponentialEquation() {
60
60
  keys: ['x', 'y', 'exp', 'C', 'equal'],
61
61
  getPropositions,
62
62
  answerFormat: 'tex',
63
+ qcmTimer: 60,
64
+ freeTimer: 60,
63
65
  };
64
66
  return question;
65
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"equaDiffGeneralFormeWithIC.d.ts","sourceRoot":"","sources":["../../../src/exercises/equaDiff/equaDiffGeneralFormeWithIC.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,qCAAqC,EAAE,QAUnD,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CA+EzD"}
1
+ {"version":3,"file":"equaDiffGeneralFormeWithIC.d.ts","sourceRoot":"","sources":["../../../src/exercises/equaDiff/equaDiffGeneralFormeWithIC.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,qCAAqC,EAAE,QAUnD,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAiFzD"}
@@ -74,6 +74,8 @@ function solveExponentialEquationWithIC() {
74
74
  keys: ['x', 'y', 'exp', 'equal'],
75
75
  getPropositions,
76
76
  answerFormat: 'tex',
77
+ qcmTimer: 60,
78
+ freeTimer: 60,
77
79
  };
78
80
  return question;
79
81
  }
@@ -11,12 +11,13 @@ export interface Question {
11
11
  startStatement?: string;
12
12
  answer: string;
13
13
  answerFormat: 'tex' | 'raw';
14
- questionType?: 'QCM' | 'free';
15
14
  keys?: KeyId[];
16
15
  commands?: string[];
17
16
  coords?: number[];
18
17
  options?: any;
19
18
  getPropositions: (n: number) => Proposition[];
19
+ qcmTimer?: number;
20
+ freeTimer?: number;
20
21
  }
21
22
  export interface Exercise {
22
23
  id: string;
@@ -28,6 +29,7 @@ export interface Exercise {
28
29
  connector?: '=' | '\\iff' | '\\approx';
29
30
  keys?: string[];
30
31
  generator(nb: number, options?: GeneratorOptions): Question[];
32
+ answerType?: 'QCM' | 'free';
31
33
  }
32
34
  export type MathLevel = '6ème' | '5ème' | '4ème' | '3ème' | '2nde' | '1reTech' | '1reESM' | '1reSpé' | 'TermSpé' | 'TermTech' | 'MathExp' | 'MathComp' | 'CAP' | '2ndPro' | '1rePro' | 'TermPro';
33
35
  export type MathSection = 'Arithmétique' | 'Calcul littéral' | 'Calculs' | 'Conversions' | 'Dérivation' | 'Droites' | 'Équations' | 'Équations différentielles' | 'Exponentielle' | 'Fonction cube' | 'Fonction inverse' | 'Fonctions' | 'Fonctions affines' | 'Fonctions de référence' | 'Fractions' | 'Géométrie cartésienne' | 'Géométrie euclidienne' | 'Inéquations' | 'Intégration' | 'Intervalles' | 'Limites' | 'Logarithme népérien' | 'Nombres complexes' | 'Pourcentages' | 'Primitives' | 'Probabilités' | 'Proportionnalité' | 'Puissances' | 'Racines carrées' | 'Second degré' | 'Statistiques' | 'Suites' | 'Trigonométrie' | 'Vecteurs';
@@ -1 +1 @@
1
- {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AACF,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,KAAK,GAAG,KAAK,CAAC;IAC5B,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,eAAe,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,WAAW,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,QAAQ,EAAE,CAAC;CAC/D;AAED,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,SAAS,GACT,UAAU,GACV,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,iBAAiB,GACjB,SAAS,GACT,aAAa,GACb,YAAY,GACZ,SAAS,GACT,WAAW,GACX,2BAA2B,GAC3B,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,wBAAwB,GACxB,WAAW,GACX,uBAAuB,GACvB,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,eAAe,GACf,UAAU,CAAC"}
1
+ {"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AACF,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,KAAK,GAAG,KAAK,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,eAAe,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,WAAW,EAAE,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,QAAQ,EAAE,CAAC;IAC9D,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,SAAS,GACT,UAAU,GACV,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GACnB,cAAc,GACd,iBAAiB,GACjB,SAAS,GACT,aAAa,GACb,YAAY,GACZ,SAAS,GACT,WAAW,GACX,2BAA2B,GAC3B,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,wBAAwB,GACxB,WAAW,GACX,uBAAuB,GACvB,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,eAAe,GACf,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AAwKA,eAAO,MAAM,SAAS,iCAqPrB,CAAC"}
1
+ {"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AA2KA,eAAO,MAAM,SAAS,iCAwPrB,CAAC"}
@@ -159,6 +159,8 @@ const firstDegreeInequationsType2_1 = require("./calculLitteral/inequations/firs
159
159
  const firstDegreeInequationsType3_1 = require("./calculLitteral/inequations/firstDegreeInequationsType3");
160
160
  const firstDegreeInequationsType0_1 = require("./calculLitteral/inequations/firstDegreeInequationsType0");
161
161
  const chasles_1 = require("./geometry/vectors/chasles");
162
+ const rootsFromFactorizedForm_1 = require("./functions/trinoms/rootsFromFactorizedForm");
163
+ const rootsFromDevForm_1 = require("./functions/trinoms/rootsFromDevForm");
162
164
  exports.exercises = [
163
165
  /**
164
166
  * calcul litteral
@@ -373,6 +375,9 @@ exports.exercises = [
373
375
  extremumFromCanonicalForm_1.extremumFromCanonicalForm,
374
376
  extremumTypeFromAlgebricForm_1.extremumTypeFromAlgebricForm,
375
377
  variationsFromAlgebricForm_1.variationsFromAlgebricForm,
378
+ // deltaTrinom,
379
+ rootsFromFactorizedForm_1.rootsFromFactorizedForm,
380
+ rootsFromDevForm_1.rootsFromDevForm,
376
381
  /**Complexes */
377
382
  mutiplyComplex_1.mutiplyComplex,
378
383
  reAndIm_1.reAndIm,
@@ -1 +1 @@
1
- {"version":3,"file":"leadingCoefficient.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/leadingCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY3E,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAiFxD"}
1
+ {"version":3,"file":"leadingCoefficient.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/leadingCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY3E,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAmFxD"}
@@ -87,6 +87,8 @@ function getLeadingCoefficientQuestion() {
87
87
  coords: [xmin, xmax, ymin, ymax],
88
88
  getPropositions,
89
89
  answerFormat: 'tex',
90
+ qcmTimer: 60,
91
+ freeTimer: 60,
90
92
  };
91
93
  return question;
92
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"leadingCoefficientCalculV1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/leadingCoefficientCalculV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,qCAAqC,IAAI,QAAQ,CAmDhE"}
1
+ {"version":3,"file":"leadingCoefficientCalculV1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/leadingCoefficientCalculV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,qCAAqC,IAAI,QAAQ,CAqDhE"}
@@ -53,6 +53,8 @@ function getLeadingCoefficientCalculV1Question() {
53
53
  answer: (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(yB - yA), new numberNode_1.NumberNode(xB - xA))).toTex(),
54
54
  getPropositions,
55
55
  answerFormat: 'tex',
56
+ qcmTimer: 60,
57
+ freeTimer: 60,
56
58
  };
57
59
  return question;
58
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"leadingCoefficientCalculV2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/leadingCoefficientCalculV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,qCAAqC,IAAI,QAAQ,CAkDhE"}
1
+ {"version":3,"file":"leadingCoefficientCalculV2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/leadingCoefficientCalculV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,qCAAqC,IAAI,QAAQ,CAoDhE"}
@@ -52,6 +52,8 @@ function getLeadingCoefficientCalculV1Question() {
52
52
  answer: (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(yB - yA), new numberNode_1.NumberNode(xB - xA))).toTex(),
53
53
  getPropositions,
54
54
  answerFormat: 'tex',
55
+ qcmTimer: 60,
56
+ freeTimer: 60,
55
57
  };
56
58
  return question;
57
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"signFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/signFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAuE1C"}
1
+ {"version":3,"file":"signFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/affines/signFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAyE1C"}
@@ -78,6 +78,8 @@ function getSignFunction() {
78
78
  keys: ['S', 'equal', 'lbracket', 'rbracket', 'semicolon', 'infty'],
79
79
  getPropositions,
80
80
  answerFormat: 'tex',
81
+ qcmTimer: 60,
82
+ freeTimer: 60,
81
83
  };
82
84
  return question;
83
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"imageFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/imageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,gBAAgB,IAAI,QAAQ,CAqD3C"}
1
+ {"version":3,"file":"imageFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/imageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,gBAAgB,IAAI,QAAQ,CAuD3C"}
@@ -59,6 +59,8 @@ function getImageFunction() {
59
59
  keys: [],
60
60
  getPropositions,
61
61
  answerFormat: 'tex',
62
+ qcmTimer: 60,
63
+ freeTimer: 60,
62
64
  };
63
65
  return question;
64
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"imageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/imageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAiFnD"}
1
+ {"version":3,"file":"imageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/imageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAmFnD"}
@@ -83,6 +83,8 @@ function getImageFunctionGeogebra() {
83
83
  coords: [xmin, xmax, ymin, ymax],
84
84
  getPropositions,
85
85
  answerFormat: 'tex',
86
+ qcmTimer: 60,
87
+ freeTimer: 60,
86
88
  };
87
89
  return question;
88
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"inverseImageFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/inverseImageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAkDlD"}
1
+ {"version":3,"file":"inverseImageFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/inverseImageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAoDlD"}
@@ -56,6 +56,8 @@ function getInverseImageFunction() {
56
56
  keys: ['x', 'equal'],
57
57
  getPropositions,
58
58
  answerFormat: 'tex',
59
+ qcmTimer: 60,
60
+ freeTimer: 60,
59
61
  };
60
62
  return question;
61
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"inverseImageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/inverseImageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,4BAA4B,EAAE,QAU1C,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAsJ1D"}
1
+ {"version":3,"file":"inverseImageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/basics/inverseImageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,4BAA4B,EAAE,QAU1C,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAwJ1D"}
@@ -148,6 +148,8 @@ function getInverseImageFunctionGeogebra() {
148
148
  coords: [xmin, xmax, ymin, ymax],
149
149
  getPropositions,
150
150
  answerFormat: 'tex',
151
+ qcmTimer: 60,
152
+ freeTimer: 60,
151
153
  };
152
154
  return question;
153
155
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cubicEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/cube/cubicEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAwDnD"}
1
+ {"version":3,"file":"cubicEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/cube/cubicEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA0DnD"}
@@ -59,6 +59,8 @@ function getCubicEquationQuestion() {
59
59
  keys: ['S', 'equal', 'lbrace', 'semicolon', 'rbrace', 'emptyset'],
60
60
  getPropositions,
61
61
  answerFormat: 'tex',
62
+ qcmTimer: 60,
63
+ freeTimer: 60,
62
64
  };
63
65
  return question;
64
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alphaBetaFromDevForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/alphaBetaFromDevForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAmD1D"}
1
+ {"version":3,"file":"alphaBetaFromDevForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/alphaBetaFromDevForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAqD1D"}
@@ -57,6 +57,8 @@ function getAlphaBetaFromDevFormQuestion() {
57
57
  getPropositions,
58
58
  answerFormat: 'tex',
59
59
  startStatement: param,
60
+ qcmTimer: 60,
61
+ freeTimer: 60,
60
62
  };
61
63
  return question;
62
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alphaBetaInCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/alphaBetaInCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,wBAAwB,EAAE,QAStC,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CA4E9D"}
1
+ {"version":3,"file":"alphaBetaInCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/alphaBetaInCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,wBAAwB,EAAE,QAStC,CAAC;AAEF,wBAAgB,mCAAmC,IAAI,QAAQ,CA8E9D"}
@@ -85,6 +85,8 @@ function getAlphaBetaInCanonicalFormQuestion() {
85
85
  getPropositions,
86
86
  answerFormat: 'tex',
87
87
  startStatement: param,
88
+ qcmTimer: 60,
89
+ freeTimer: 60,
88
90
  };
89
91
  return question;
90
92
  }
@@ -1 +1 @@
1
- {"version":3,"file":"canonicalFromDevForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/canonicalFromDevForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CA8C1D"}
1
+ {"version":3,"file":"canonicalFromDevForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/canonicalFromDevForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAgD1D"}
@@ -52,6 +52,8 @@ function getCanonicalFromDevFormQuestion() {
52
52
  instruction: `Déterminer la forme canonique de la fonction $f$ définie par $f(x) = ${trinom.toTree().toTex()}$`,
53
53
  getPropositions,
54
54
  answerFormat: 'tex',
55
+ qcmTimer: 60,
56
+ freeTimer: 60,
55
57
  };
56
58
  return question;
57
59
  }
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const deltaTrinom: Exercise;
3
+ export declare function getDeltaTrinomQuestion(): Question;
4
+ //# sourceMappingURL=deltaTrinom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deltaTrinom.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/deltaTrinom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CA8DjD"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDeltaTrinomQuestion = exports.deltaTrinom = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const trinom_1 = require("../../../math/polynomials/trinom");
6
+ const randint_1 = require("../../../math/utils/random/randint");
7
+ const shuffle_1 = require("../../../utils/shuffle");
8
+ const uuid_1 = require("uuid");
9
+ exports.deltaTrinom = {
10
+ id: 'deltaTrinom',
11
+ connector: '=',
12
+ instruction: '',
13
+ label: "Calculer le discriminant d'un trinôme",
14
+ levels: ['1reSpé', 'TermSpé', 'MathComp'],
15
+ isSingleStep: true,
16
+ sections: ['Second degré'],
17
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getDeltaTrinomQuestion, nb),
18
+ };
19
+ function getDeltaTrinomQuestion() {
20
+ const trinom = trinom_1.TrinomConstructor.random();
21
+ const answer = trinom.getDelta();
22
+ const getPropositions = (n) => {
23
+ const res = [];
24
+ res.push({
25
+ id: (0, uuid_1.v4)(),
26
+ statement: answer + '',
27
+ isRightAnswer: true,
28
+ format: 'tex',
29
+ });
30
+ const bMinus4ac = trinom.b - 4 * trinom.a * trinom.c;
31
+ if (bMinus4ac !== answer)
32
+ res.push({
33
+ id: (0, uuid_1.v4)(),
34
+ statement: bMinus4ac + '',
35
+ isRightAnswer: false,
36
+ format: 'tex',
37
+ });
38
+ const bSquarePlus4ac = trinom.b ** 2 + trinom.a * trinom.c;
39
+ if (bSquarePlus4ac !== answer && bSquarePlus4ac !== bMinus4ac)
40
+ res.push({
41
+ id: (0, uuid_1.v4)(),
42
+ statement: bSquarePlus4ac + '',
43
+ isRightAnswer: false,
44
+ format: 'tex',
45
+ });
46
+ const missing = n - res.length;
47
+ for (let i = 0; i < missing; i++) {
48
+ let isDuplicate;
49
+ let proposition;
50
+ do {
51
+ const wrongAnswer = (0, randint_1.randint)(-100, 100) + '';
52
+ proposition = {
53
+ id: (0, uuid_1.v4)() + ``,
54
+ statement: wrongAnswer,
55
+ isRightAnswer: false,
56
+ format: 'tex',
57
+ };
58
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
59
+ } while (isDuplicate);
60
+ res.push(proposition);
61
+ }
62
+ return (0, shuffle_1.shuffle)(res);
63
+ };
64
+ const question = {
65
+ answer: answer + '',
66
+ instruction: `Soit $f(x) = ${trinom.toTree().toTex()}$. Calculer le discriminant $\\Delta$.`,
67
+ keys: [],
68
+ getPropositions,
69
+ answerFormat: 'tex',
70
+ qcmTimer: 60,
71
+ freeTimer: 60,
72
+ };
73
+ return question;
74
+ }
75
+ exports.getDeltaTrinomQuestion = getDeltaTrinomQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"extremumFromCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/extremumFromCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,yBAAyB,EAAE,QASvC,CAAC;AAEF,wBAAgB,oCAAoC,IAAI,QAAQ,CAmE/D"}
1
+ {"version":3,"file":"extremumFromCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/extremumFromCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,yBAAyB,EAAE,QASvC,CAAC;AAEF,wBAAgB,oCAAoC,IAAI,QAAQ,CAqE/D"}
@@ -78,6 +78,8 @@ function getExtremumFromCanonicalFormQuestion() {
78
78
  keys: ['S', 'equal', 'semicolon'],
79
79
  getPropositions,
80
80
  answerFormat: 'tex',
81
+ qcmTimer: 60,
82
+ freeTimer: 60,
81
83
  };
82
84
  return question;
83
85
  }
@@ -1 +1 @@
1
- {"version":3,"file":"extremumTypeFromAlgebricForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/extremumTypeFromAlgebricForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,4BAA4B,EAAE,QAQ1C,CAAC;AAEF,wBAAgB,uCAAuC,IAAI,QAAQ,CA6ClE"}
1
+ {"version":3,"file":"extremumTypeFromAlgebricForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/extremumTypeFromAlgebricForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,4BAA4B,EAAE,QAS1C,CAAC;AAEF,wBAAgB,uCAAuC,IAAI,QAAQ,CA8ClE"}
@@ -14,6 +14,7 @@ exports.extremumTypeFromAlgebricForm = {
14
14
  isSingleStep: true,
15
15
  sections: ['Second degré'],
16
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExtremumTypeFromAlgebricFormQuestion, nb),
17
+ answerType: 'QCM',
17
18
  };
18
19
  function getExtremumTypeFromAlgebricFormQuestion() {
19
20
  const isDevForm = (0, coinFlip_1.coinFlip)();
@@ -50,9 +51,10 @@ function getExtremumTypeFromAlgebricFormQuestion() {
50
51
  const question = {
51
52
  answer: answer,
52
53
  instruction: `La fonction $f$ définie par $f(x) = ${isDevForm ? trinom.toTree().toTex() : trinom.getCanonicalForm().toTex()}$ admet-elle un maximum ou un minimum ?`,
53
- questionType: 'QCM',
54
54
  getPropositions,
55
55
  answerFormat: 'raw',
56
+ qcmTimer: 60,
57
+ freeTimer: 60,
56
58
  };
57
59
  return question;
58
60
  }
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const rootsFromDevForm: Exercise;
3
+ export declare function getRootsFromDevFormQuestion(): Question;
4
+ //# sourceMappingURL=rootsFromDevForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rootsFromDevForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/rootsFromDevForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,CA+CtD"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRootsFromDevFormQuestion = exports.rootsFromDevForm = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const trinom_1 = require("../../../math/polynomials/trinom");
6
+ const shuffle_1 = require("../../../utils/shuffle");
7
+ const uuid_1 = require("uuid");
8
+ exports.rootsFromDevForm = {
9
+ id: 'rootsFromDevForm',
10
+ connector: '\\iff',
11
+ instruction: '',
12
+ label: 'Résoudre une équation du second degré',
13
+ levels: ['1reSpé', 'TermSpé', 'MathComp'],
14
+ isSingleStep: true,
15
+ sections: [],
16
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getRootsFromDevFormQuestion, nb),
17
+ };
18
+ function getRootsFromDevFormQuestion() {
19
+ const trinom = trinom_1.TrinomConstructor.random();
20
+ const answer = trinom.getRootsEquationSolutionTex();
21
+ const getPropositions = (n) => {
22
+ const res = [];
23
+ res.push({
24
+ id: (0, uuid_1.v4)(),
25
+ statement: answer,
26
+ isRightAnswer: true,
27
+ format: 'tex',
28
+ });
29
+ const missing = n - res.length;
30
+ for (let i = 0; i < missing; i++) {
31
+ let isDuplicate;
32
+ let proposition;
33
+ do {
34
+ const wrongAnswer = '';
35
+ proposition = {
36
+ id: (0, uuid_1.v4)() + ``,
37
+ statement: wrongAnswer,
38
+ isRightAnswer: false,
39
+ format: 'tex',
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
+ answer: answer,
49
+ instruction: `Soit $f(x) = ${trinom.toTree().toTex()}$. Résoudre l'équation $f(x) = 0$.`,
50
+ keys: [],
51
+ getPropositions,
52
+ answerFormat: 'tex',
53
+ qcmTimer: 60,
54
+ freeTimer: 60,
55
+ };
56
+ return question;
57
+ }
58
+ exports.getRootsFromDevFormQuestion = getRootsFromDevFormQuestion;
@@ -0,0 +1,4 @@
1
+ import { Exercise, Question } from '../../../exercises/exercise';
2
+ export declare const rootsFromFactorizedForm: Exercise;
3
+ export declare function getRootsFromFactorizedFormQuestion(): Question;
4
+ //# sourceMappingURL=rootsFromFactorizedForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rootsFromFactorizedForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/rootsFromFactorizedForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,kCAAkC,IAAI,QAAQ,CAmF7D"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRootsFromFactorizedFormQuestion = exports.rootsFromFactorizedForm = void 0;
4
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
5
+ const trinom_1 = require("../../../math/polynomials/trinom");
6
+ const randint_1 = require("../../../math/utils/random/randint");
7
+ const oppositeNode_1 = require("../../../tree/nodes/functions/oppositeNode");
8
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
+ const shuffle_1 = require("../../../utils/shuffle");
10
+ const uuid_1 = require("uuid");
11
+ exports.rootsFromFactorizedForm = {
12
+ id: 'rootsFromFactorizedForm',
13
+ connector: '=',
14
+ instruction: '',
15
+ label: "Déterminer les racines d'un trinôme à partir de sa forme factorisée",
16
+ levels: ['1reSpé', 'TermSpé', 'MathComp'],
17
+ isSingleStep: true,
18
+ sections: ['Second degré'],
19
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getRootsFromFactorizedFormQuestion, nb),
20
+ };
21
+ function getRootsFromFactorizedFormQuestion() {
22
+ const trinom = trinom_1.TrinomConstructor.randomFactorized();
23
+ const answer = trinom.getRootsEquationSolutionTex();
24
+ const roots = trinom.getRoots();
25
+ const getPropositions = (n) => {
26
+ const res = [];
27
+ res.push({
28
+ id: (0, uuid_1.v4)(),
29
+ statement: answer,
30
+ isRightAnswer: true,
31
+ format: 'tex',
32
+ });
33
+ if (roots.length === 1 && roots[0] !== 0) {
34
+ res.push({
35
+ id: (0, uuid_1.v4)(),
36
+ statement: `S = \\lbrace ${new oppositeNode_1.OppositeNode(new numberNode_1.NumberNode(roots[0]))} \\rbrace`,
37
+ isRightAnswer: false,
38
+ format: 'tex',
39
+ });
40
+ }
41
+ if (roots.length === 2 && roots[0] !== 0) {
42
+ res.push({
43
+ id: (0, uuid_1.v4)(),
44
+ statement: `S = \\lbrace ${new oppositeNode_1.OppositeNode(new numberNode_1.NumberNode(roots[0])).toTex()} ; ${roots[1]} \\rbrace`,
45
+ isRightAnswer: false,
46
+ format: 'tex',
47
+ });
48
+ }
49
+ if (roots.length === 2 && roots[1] !== 0) {
50
+ res.push({
51
+ id: (0, uuid_1.v4)(),
52
+ statement: `S = \\lbrace ${roots[0]} ; ${new oppositeNode_1.OppositeNode(new numberNode_1.NumberNode(roots[1])).toTex()} \\rbrace`,
53
+ isRightAnswer: false,
54
+ format: 'tex',
55
+ });
56
+ }
57
+ if (roots.length === 2 && roots[0] !== 0 && roots[1] !== 0) {
58
+ res.push({
59
+ id: (0, uuid_1.v4)(),
60
+ statement: `S = \\lbrace ${new oppositeNode_1.OppositeNode(new numberNode_1.NumberNode(roots[0])).toTex()} ; ${new oppositeNode_1.OppositeNode(new numberNode_1.NumberNode(roots[1])).toTex()} \\rbrace`,
61
+ isRightAnswer: false,
62
+ format: 'tex',
63
+ });
64
+ }
65
+ const missing = n - res.length;
66
+ for (let i = 0; i < missing; i++) {
67
+ let isDuplicate;
68
+ let proposition;
69
+ do {
70
+ const wrongAnswer = `S = \\lbrace ${(0, randint_1.randint)(-10, 11)}; ${(0, randint_1.randint)(-10, 11)} \\rbrace`;
71
+ proposition = {
72
+ id: (0, uuid_1.v4)() + ``,
73
+ statement: wrongAnswer,
74
+ isRightAnswer: false,
75
+ format: 'tex',
76
+ };
77
+ isDuplicate = res.some((p) => p.statement === proposition.statement);
78
+ } while (isDuplicate);
79
+ res.push(proposition);
80
+ }
81
+ return (0, shuffle_1.shuffle)(res);
82
+ };
83
+ const question = {
84
+ answer: answer,
85
+ instruction: `Soit $f(x) = ${trinom.getFactorizedForm().toTex()}$. Résoudre l'équation $f(x) = 0$.`,
86
+ keys: ['S', 'equal', 'lbrace', 'semicolon', 'rbrace', 'emptyset'],
87
+ getPropositions,
88
+ answerFormat: 'tex',
89
+ qcmTimer: 60,
90
+ freeTimer: 60,
91
+ };
92
+ return question;
93
+ }
94
+ exports.getRootsFromFactorizedFormQuestion = getRootsFromFactorizedFormQuestion;
@@ -1 +1 @@
1
- {"version":3,"file":"variationsFromAlgebricForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/variationsFromAlgebricForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,0BAA0B,EAAE,QAQxC,CAAC;AAEF,wBAAgB,qCAAqC,IAAI,QAAQ,CA6ChE"}
1
+ {"version":3,"file":"variationsFromAlgebricForm.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/trinoms/variationsFromAlgebricForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,qCAAqC,IAAI,QAAQ,CA8ChE"}
@@ -14,6 +14,7 @@ exports.variationsFromAlgebricForm = {
14
14
  isSingleStep: true,
15
15
  sections: ['Second degré'],
16
16
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getVariationsFromAlgebricFormQuestion, nb),
17
+ answerType: 'QCM',
17
18
  };
18
19
  function getVariationsFromAlgebricFormQuestion() {
19
20
  const isDevForm = (0, coinFlip_1.coinFlip)();
@@ -50,9 +51,10 @@ function getVariationsFromAlgebricFormQuestion() {
50
51
  const question = {
51
52
  answer: answer,
52
53
  instruction: `Quelles sont les variations de la fonction $f$ définie par $f(x) = ${isDevForm ? trinom.toTree().toTex() : trinom.getCanonicalForm().toTex()}$ ?`,
53
- questionType: 'QCM',
54
54
  getPropositions,
55
55
  answerFormat: 'raw',
56
+ qcmTimer: 60,
57
+ freeTimer: 60,
56
58
  };
57
59
  return question;
58
60
  }