math-exercises 3.0.156 → 3.0.158

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 (321) hide show
  1. package/lib/exercises/exercise.d.ts +7 -0
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.js +1 -1
  4. package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.d.ts +14 -0
  5. package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.d.ts.map +1 -0
  6. package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.js +145 -0
  7. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts +16 -0
  8. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts.map +1 -0
  9. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.js +444 -0
  10. package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts +15 -0
  11. package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts.map +1 -0
  12. package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.js +292 -0
  13. package/lib/exercises/math/calculLitteral/equation/exp/index.d.ts +4 -0
  14. package/lib/exercises/math/calculLitteral/equation/exp/index.d.ts.map +1 -0
  15. package/lib/exercises/math/calculLitteral/equation/exp/index.js +3 -0
  16. package/lib/exercises/math/calculLitteral/equation/factorizeEquation.d.ts +4 -1
  17. package/lib/exercises/math/calculLitteral/equation/factorizeEquation.d.ts.map +1 -1
  18. package/lib/exercises/math/calculLitteral/equation/factorizeEquation.js +148 -31
  19. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts +4 -1
  20. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  21. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +124 -44
  22. package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts +18 -0
  23. package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts.map +1 -0
  24. package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.js +437 -0
  25. package/lib/exercises/math/calculLitteral/inequations/exp/index.d.ts +2 -0
  26. package/lib/exercises/math/calculLitteral/inequations/exp/index.d.ts.map +1 -0
  27. package/lib/exercises/math/calculLitteral/inequations/exp/index.js +1 -0
  28. package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.d.ts.map +1 -1
  29. package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.js +4 -1
  30. package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.d.ts.map +1 -1
  31. package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.js +29 -0
  32. package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.d.ts.map +1 -1
  33. package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.js +35 -2
  34. package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.d.ts.map +1 -1
  35. package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.js +19 -0
  36. package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts +10 -0
  37. package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts.map +1 -0
  38. package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.js +282 -0
  39. package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
  40. package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.js +30 -2
  41. package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -1
  42. package/lib/exercises/math/derivation/derivative/productDerivative.js +68 -1
  43. package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -1
  44. package/lib/exercises/math/derivation/derivative/quotientDerivative.js +40 -4
  45. package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.d.ts.map +1 -1
  46. package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.js +30 -3
  47. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.d.ts +12 -0
  48. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.d.ts.map +1 -0
  49. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.js +127 -0
  50. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.d.ts +13 -0
  51. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.d.ts.map +1 -0
  52. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.js +161 -0
  53. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.d.ts +11 -0
  54. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.d.ts.map +1 -0
  55. package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.js +116 -0
  56. package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.d.ts +8 -0
  57. package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.d.ts.map +1 -0
  58. package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.js +142 -0
  59. package/lib/exercises/math/derivation/derivativeNumber/index.d.ts +4 -0
  60. package/lib/exercises/math/derivation/derivativeNumber/index.d.ts.map +1 -0
  61. package/lib/exercises/math/derivation/derivativeNumber/index.js +4 -0
  62. package/lib/exercises/math/derivation/index.d.ts +1 -1
  63. package/lib/exercises/math/derivation/index.js +1 -1
  64. package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.d.ts.map +1 -1
  65. package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.js +5 -4
  66. package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts +13 -0
  67. package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts.map +1 -0
  68. package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.js +278 -0
  69. package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts +11 -0
  70. package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts.map +1 -0
  71. package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.js +211 -0
  72. package/lib/exercises/math/functions/exponential/algebraic/approxExpN.d.ts +9 -0
  73. package/lib/exercises/math/functions/exponential/algebraic/approxExpN.d.ts.map +1 -0
  74. package/lib/exercises/math/functions/exponential/algebraic/approxExpN.js +142 -0
  75. package/lib/exercises/math/functions/exponential/algebraic/index.d.ts +5 -0
  76. package/lib/exercises/math/functions/exponential/algebraic/index.d.ts.map +1 -0
  77. package/lib/exercises/math/functions/exponential/algebraic/index.js +4 -0
  78. package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.d.ts +14 -0
  79. package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.d.ts.map +1 -0
  80. package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.js +337 -0
  81. package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts +11 -0
  82. package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts.map +1 -0
  83. package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.js +234 -0
  84. package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts +9 -0
  85. package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts.map +1 -0
  86. package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.js +190 -0
  87. package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts +9 -0
  88. package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts.map +1 -0
  89. package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.js +190 -0
  90. package/lib/exercises/math/functions/exponential/definition/index.d.ts +5 -0
  91. package/lib/exercises/math/functions/exponential/definition/index.d.ts.map +1 -0
  92. package/lib/exercises/math/functions/exponential/definition/index.js +4 -0
  93. package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts +13 -0
  94. package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts.map +1 -0
  95. package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.js +375 -0
  96. package/lib/exercises/math/functions/linear/linearFromExercise.d.ts.map +1 -1
  97. package/lib/exercises/math/functions/linear/linearFromExercise.js +4 -3
  98. package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts.map +1 -1
  99. package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.js +30 -3
  100. package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts.map +1 -1
  101. package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.js +35 -1
  102. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -1
  103. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.js +1 -1
  104. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts.map +1 -1
  105. package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.js +23 -1
  106. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -1
  107. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +29 -0
  108. package/lib/exercises/math/functions/variations/exp/index.d.ts +3 -0
  109. package/lib/exercises/math/functions/variations/exp/index.d.ts.map +1 -0
  110. package/lib/exercises/math/functions/variations/exp/index.js +2 -0
  111. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts +9 -0
  112. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts.map +1 -0
  113. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.js +101 -0
  114. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts +11 -0
  115. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts.map +1 -0
  116. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.js +192 -0
  117. package/lib/exercises/math/geometry/euclidian/pinPointFromAxialOrCentralSymmetry.js +2 -2
  118. package/lib/exercises/math/geometry/euclidian/pinSegmentFromRotation.js +1 -1
  119. package/lib/exercises/math/geometry/euclidian/recognizeHomothetyCenter.d.ts.map +1 -1
  120. package/lib/exercises/math/geometry/euclidian/recognizeHomothetyCenter.js +4 -5
  121. package/lib/exercises/math/geometry/euclidianConstructions/placeHomothetyCenter.js +4 -4
  122. package/lib/exercises/math/geometry/perimeters/circleCircumference.d.ts.map +1 -1
  123. package/lib/exercises/math/geometry/perimeters/circleCircumference.js +5 -3
  124. package/lib/exercises/math/geometry/thales/thales.js +1 -1
  125. package/lib/exercises/math/geometry/thales/thalesCalcul.js +1 -1
  126. package/lib/exercises/math/geometry/vectors/colinearity/determinant.js +1 -1
  127. package/lib/exercises/math/geometry/vectors/scalarProduct/angleFromScalarProduct.js +1 -1
  128. package/lib/exercises/math/geometry/vectors/scalarProduct/findCoordinatesToOrthogonalize.d.ts.map +1 -1
  129. package/lib/exercises/math/geometry/vectors/scalarProduct/findCoordinatesToOrthogonalize.js +33 -7
  130. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +1 -1
  131. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts.map +1 -1
  132. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +38 -1
  133. package/lib/exercises/math/geometry/volumes/parallelepipedVolume.d.ts.map +1 -1
  134. package/lib/exercises/math/geometry/volumes/parallelepipedVolume.js +18 -5
  135. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.d.ts.map +1 -1
  136. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.js +45 -21
  137. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.d.ts.map +1 -1
  138. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +33 -12
  139. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.d.ts.map +1 -1
  140. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +38 -15
  141. package/lib/exercises/math/percent/findTVA.d.ts.map +1 -1
  142. package/lib/exercises/math/percent/findTVA.js +17 -11
  143. package/lib/exercises/math/percent/populationEffectifFromSubPopulation.js +1 -1
  144. package/lib/exercises/math/probaStat/basicProbas/index.d.ts +1 -0
  145. package/lib/exercises/math/probaStat/basicProbas/index.d.ts.map +1 -1
  146. package/lib/exercises/math/probaStat/basicProbas/index.js +1 -1
  147. package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableSituations.d.ts.map +1 -1
  148. package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableSituations.js +114 -20
  149. package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableTo.js +2 -2
  150. package/lib/exercises/math/probaStat/conditionalProbability.d.ts +4 -1
  151. package/lib/exercises/math/probaStat/conditionalProbability.d.ts.map +1 -1
  152. package/lib/exercises/math/probaStat/conditionalProbability.js +38 -5
  153. package/lib/exercises/math/probaStat/independancy/independancy.d.ts +9 -0
  154. package/lib/exercises/math/probaStat/independancy/independancy.d.ts.map +1 -0
  155. package/lib/exercises/math/probaStat/independancy/independancy.js +114 -0
  156. package/lib/exercises/math/probaStat/independancy/independancyFindCap.d.ts +9 -0
  157. package/lib/exercises/math/probaStat/independancy/independancyFindCap.d.ts.map +1 -0
  158. package/lib/exercises/math/probaStat/independancy/independancyFindCap.js +101 -0
  159. package/lib/exercises/math/probaStat/independancy/independancyFindCup.d.ts +9 -0
  160. package/lib/exercises/math/probaStat/independancy/independancyFindCup.d.ts.map +1 -0
  161. package/lib/exercises/math/probaStat/independancy/independancyFindCup.js +118 -0
  162. package/lib/exercises/math/probaStat/independancy/index.d.ts +5 -0
  163. package/lib/exercises/math/probaStat/independancy/index.d.ts.map +1 -0
  164. package/lib/exercises/math/probaStat/independancy/index.js +4 -0
  165. package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.d.ts +10 -0
  166. package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.d.ts.map +1 -0
  167. package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.js +106 -0
  168. package/lib/exercises/math/probaStat/index.d.ts +1 -1
  169. package/lib/exercises/math/probaStat/index.d.ts.map +1 -1
  170. package/lib/exercises/math/probaStat/index.js +1 -1
  171. package/lib/exercises/math/probaStat/randomVariable/randomVariableStandardDeviation.js +1 -1
  172. package/lib/exercises/math/probaStat/stats1var/etendueTable.d.ts.map +1 -1
  173. package/lib/exercises/math/probaStat/stats1var/etendueTable.js +5 -1
  174. package/lib/exercises/math/probaStat/stats1var/medianWithList.js +1 -1
  175. package/lib/exercises/math/probaStat/stats1var/medianWithTable.d.ts.map +1 -1
  176. package/lib/exercises/math/probaStat/stats1var/medianWithTable.js +19 -5
  177. package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.js +1 -1
  178. package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.d.ts.map +1 -1
  179. package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.js +41 -29
  180. package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.d.ts.map +1 -1
  181. package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.js +10 -3
  182. package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.d.ts.map +1 -1
  183. package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.js +9 -2
  184. package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.d.ts.map +1 -1
  185. package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.js +25 -10
  186. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.d.ts +9 -0
  187. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.d.ts.map +1 -0
  188. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.js +118 -0
  189. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -1
  190. package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +55 -6
  191. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.d.ts.map +1 -1
  192. package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +42 -1
  193. package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts +4 -1
  194. package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts.map +1 -1
  195. package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +57 -7
  196. package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
  197. package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +24 -2
  198. package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
  199. package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +31 -8
  200. package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -1
  201. package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
  202. package/lib/exercises/math/sequences/arithmetic/index.js +1 -1
  203. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
  204. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +11 -1
  205. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstRankOne.js +5 -5
  206. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.d.ts.map +1 -1
  207. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +3 -1
  208. package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts.map +1 -1
  209. package/lib/exercises/math/sequences/geometric/geometricFindReason.js +41 -2
  210. package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
  211. package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +28 -2
  212. package/lib/exercises/math/sequences/sequenceEvaluation.d.ts.map +1 -1
  213. package/lib/exercises/math/sequences/sequenceEvaluation.js +22 -2
  214. package/lib/exercises/math/spaceGeometry/solids/recognizeSolidFromSolidPattern.js +1 -1
  215. package/lib/exercises/math/spaceGeometry/sphere/index.d.ts +2 -0
  216. package/lib/exercises/math/spaceGeometry/sphere/index.d.ts.map +1 -1
  217. package/lib/exercises/math/spaceGeometry/sphere/index.js +3 -1
  218. package/lib/exercises/math/spaceGeometry/sphere/pinPointLatLon.2d.d.ts +12 -0
  219. package/lib/exercises/math/spaceGeometry/sphere/pinPointLatLon.2d.d.ts.map +1 -0
  220. package/lib/exercises/math/spaceGeometry/sphere/pinPointLatLon.2d.js +205 -0
  221. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.d.ts +13 -0
  222. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.d.ts.map +1 -0
  223. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.js +215 -0
  224. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.3d.d.ts +14 -0
  225. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.3d.d.ts.map +1 -0
  226. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.3d.js +390 -0
  227. package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.d.ts +9 -0
  228. package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.d.ts.map +1 -0
  229. package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.js +107 -0
  230. package/lib/exercises/math/trigonometry/circle/associatePoint.d.ts +10 -0
  231. package/lib/exercises/math/trigonometry/circle/associatePoint.d.ts.map +1 -0
  232. package/lib/exercises/math/trigonometry/circle/associatePoint.js +86 -0
  233. package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.d.ts +10 -0
  234. package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.d.ts.map +1 -0
  235. package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.js +205 -0
  236. package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts +7 -0
  237. package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts.map +1 -0
  238. package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.js +121 -0
  239. package/lib/exercises/math/trigonometry/circle/index.d.ts +7 -0
  240. package/lib/exercises/math/trigonometry/circle/index.d.ts.map +1 -0
  241. package/lib/exercises/math/trigonometry/circle/index.js +7 -0
  242. package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.d.ts +10 -0
  243. package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.d.ts.map +1 -0
  244. package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.js +100 -0
  245. package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts +8 -0
  246. package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts.map +1 -0
  247. package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.js +97 -0
  248. package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts +10 -0
  249. package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts.map +1 -0
  250. package/lib/exercises/math/trigonometry/circle/remarkableValues.js +112 -0
  251. package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts +7 -0
  252. package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts.map +1 -0
  253. package/lib/exercises/math/trigonometry/functions/basicEquationCos.js +92 -0
  254. package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts +7 -0
  255. package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts.map +1 -0
  256. package/lib/exercises/math/trigonometry/functions/basicEquationSin.js +104 -0
  257. package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.d.ts +7 -0
  258. package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.d.ts.map +1 -0
  259. package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.js +83 -0
  260. package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.d.ts +8 -0
  261. package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.d.ts.map +1 -0
  262. package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.js +111 -0
  263. package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.d.ts +8 -0
  264. package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.d.ts.map +1 -0
  265. package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.js +101 -0
  266. package/lib/exercises/math/trigonometry/functions/index.d.ts +6 -0
  267. package/lib/exercises/math/trigonometry/functions/index.d.ts.map +1 -0
  268. package/lib/exercises/math/trigonometry/functions/index.js +6 -0
  269. package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.d.ts +9 -0
  270. package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.d.ts.map +1 -0
  271. package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.js +151 -0
  272. package/lib/exercises/math/trigonometry/index.d.ts +3 -14
  273. package/lib/exercises/math/trigonometry/index.d.ts.map +1 -1
  274. package/lib/exercises/math/trigonometry/index.js +3 -14
  275. package/lib/exercises/math/trigonometry/triangle/index.d.ts +7 -0
  276. package/lib/exercises/math/trigonometry/triangle/index.d.ts.map +1 -0
  277. package/lib/exercises/math/trigonometry/triangle/index.js +6 -0
  278. package/lib/exercises/math/trigonometry/triangle/trigonometry.d.ts +10 -0
  279. package/lib/exercises/math/trigonometry/triangle/trigonometry.d.ts.map +1 -0
  280. package/lib/exercises/math/trigonometry/triangle/trigonometry.js +207 -0
  281. package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.d.ts +10 -0
  282. package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.d.ts.map +1 -0
  283. package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.js +174 -0
  284. package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.d.ts +11 -0
  285. package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.d.ts.map +1 -0
  286. package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.js +224 -0
  287. package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.d.ts +13 -0
  288. package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.d.ts.map +1 -0
  289. package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.js +189 -0
  290. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.d.ts +13 -0
  291. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.d.ts.map +1 -0
  292. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.js +290 -0
  293. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.d.ts +18 -0
  294. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.d.ts.map +1 -0
  295. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.js +386 -0
  296. package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -1
  297. package/lib/exercises/pc/mathExosInPC.d.ts +2 -2
  298. package/lib/exercises/pc/mathExosInPC.d.ts.map +1 -1
  299. package/lib/exercises/pc/mathExosInPC.js +2 -2
  300. package/lib/exercises/vea/setVEA.d.ts.map +1 -1
  301. package/lib/exercises/vea/setVEA.js +4 -0
  302. package/lib/index.d.ts +87 -29
  303. package/lib/index.d.ts.map +1 -1
  304. package/lib/math/geometry/segment.d.ts +1 -1
  305. package/lib/math/geometry/vector.d.ts +2 -1
  306. package/lib/math/geometry/vector.d.ts.map +1 -1
  307. package/lib/math/geometry/vector.js +1 -1
  308. package/lib/math/numbers/reals/real.d.ts.map +1 -1
  309. package/lib/math/numbers/reals/real.js +2 -0
  310. package/lib/playground.d.ts.map +1 -1
  311. package/lib/playground.js +3 -1
  312. package/lib/tree/nodes/algebraicNode.d.ts +1 -0
  313. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  314. package/lib/tree/nodes/functions/sqrtNode.d.ts +2 -1
  315. package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
  316. package/lib/tree/nodes/functions/sqrtNode.js +17 -6
  317. package/lib/tree/nodes/operators/multiplyNode.js +1 -1
  318. package/lib/utils/arrays/dichoFilter.d.ts +2 -0
  319. package/lib/utils/arrays/dichoFilter.d.ts.map +1 -0
  320. package/lib/utils/arrays/dichoFilter.js +11 -0
  321. package/package.json +1 -1
@@ -14,7 +14,8 @@ const getParallelepipedVolumeQuestion = () => {
14
14
  };
15
15
  const getInstruction = (identifiers) => {
16
16
  const { height, length, width } = identifiers;
17
- return `Le parallélépipède $ABCDEFGH$ ci-dessous a une longueur de $${length.frenchify()}$, une largeur de $${width.frenchify()}$, et une hauteur de $${height.frenchify()}$.
17
+ return `Le parallélépipède $ABCDEFGH$ ci-dessous est tel que $ABCD$ est un rectangle de longueur $${length.frenchify()}$ et de largeur $${width.frenchify()}$.
18
+ $ABCDEFGH$ a une hauteur de $${height.frenchify()}$.
18
19
 
19
20
  Calculer son volume (arrondir au centième).`;
20
21
  };
@@ -86,11 +87,12 @@ const getGGBOptions = (identifiers) => {
86
87
  });
87
88
  };
88
89
  const getHint = () => {
89
- return `Le volume d'un parallélépipède s'obtient par la formule :
90
+ return `Le volume d'un parallélépipède, parce que c'est un prisme, s'obtient par la formule :
90
91
 
91
92
  $$
92
- V = \\text{longueur} \\times \\text{largeur} \\times \\text{hauteur}
93
+ V = \\mathcal{A}_{base} \\times \\text{hauteur}
93
94
  $$
95
+
94
96
  `;
95
97
  };
96
98
  const getCorrection = (identifiers) => {
@@ -98,14 +100,25 @@ const getCorrection = (identifiers) => {
98
100
  return `Le volume d'un parallélépipède s'obtient par la formule :
99
101
 
100
102
  $$
101
- V = \\text{longueur} \\times \\text{largeur} \\times \\text{hauteur}
103
+ V = \\mathcal{A}_{base} \\times \\text{hauteur}
104
+ $$
105
+
106
+ La base est rectangulaire :
107
+
108
+ $$
109
+ \\mathcal{A}_{base} = \\text{longueur} \\times \\text{largeur}
102
110
  $$
103
111
 
104
112
  Ici, on a donc :
105
113
 
106
114
  $$
107
- V = ${multiply(multiply(length, width), height).toTex()} = ${getAnswer(identifiers)}
115
+ V = ${multiply(multiply(length, width), height).toTex()}
116
+ $$
117
+
108
118
  $$
119
+ V \\approx ${getAnswer(identifiers)}
120
+ $$
121
+
109
122
  `;
110
123
  };
111
124
  const getQuestionFromIdentifiers = (identifiers) => {
@@ -1 +1 @@
1
- {"version":3,"file":"volumeOfPyramidWithSquareOrRectBase.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAgBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAkNF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,WAAW,CAerE,CAAC"}
1
+ {"version":3,"file":"volumeOfPyramidWithSquareOrRectBase.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAmBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAyOF,eAAO,MAAM,mCAAmC,EAAE,QAAQ,CAAC,WAAW,CAerE,CAAC"}
@@ -1,13 +1,16 @@
1
1
  import { addValidProp, propWhile, shuffleProps, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
+ import { numberVEA } from "../../../../exercises/vea/numberVEA.js";
3
4
  import { GeogebraConstructor } from "../../../../geogebra/geogebraConstructor.js";
4
5
  import { RationalConstructor } from "../../../../math/numbers/rationals/rational.js";
6
+ import { unfrenchify } from "../../../../math/utils/latex/unfrenchify.js";
5
7
  import { randint } from "../../../../math/utils/random/randint.js";
6
8
  import { round } from "../../../../math/utils/round.js";
7
9
  import { isNumberNode } from "../../../../tree/nodes/numbers/numberNode.js";
8
10
  import { FractionNode } from "../../../../tree/nodes/operators/fractionNode.js";
9
11
  import { multiply, MultiplyNode, } from "../../../../tree/nodes/operators/multiplyNode.js";
10
- import { square } from "../../../../tree/nodes/operators/powerNode.js";
12
+ import { power } from "../../../../tree/nodes/operators/powerNode.js";
13
+ import { substract } from "../../../../tree/nodes/operators/substractNode.js";
11
14
  import { random } from "../../../../utils/alea/random.js";
12
15
  import { alignTex } from "../../../../utils/latex/alignTex.js";
13
16
  const polygonTypes = ["Square", "Rectangular"];
@@ -72,17 +75,27 @@ const getGGBOptions = (identifiers) => {
72
75
  };
73
76
  const getInstruction = (identifiers) => {
74
77
  const { baseOfPyramid, h } = identifiers;
75
- const instruction = `$ABCDH$ est une pyramide à base ${getPolygonNameInFr(baseOfPyramid.type)} dont la hauteur issue de $H$ vaut $${h}$.
78
+ const instruction = `$ABCDH$ est une pyramide à base ${getPolygonNameInFr(baseOfPyramid.type)} dont la hauteur issue de $H$ vaut $${h}$.
79
+
80
+ On sait également que : ${baseOfPyramid.type === "Square"
81
+ ? `
82
+ - $AB=${baseOfPyramid.sideSizes[0]}$`
83
+ : `
84
+ - $AB=${baseOfPyramid.sideSizes[0]}$
85
+ - $BC=${baseOfPyramid.sideSizes[1]}$`}
76
86
 
77
- Calculer son volume en sachant que ${baseOfPyramid.type === "Square"
78
- ? `$AB=${baseOfPyramid.sideSizes[0]}$`
79
- : `$AB=${baseOfPyramid.sideSizes[0]}$ et $BC=${baseOfPyramid.sideSizes[1]}$`}.`;
87
+ Calculer son volume (arrondir au centième).`;
80
88
  return instruction;
81
89
  };
90
+ const getAnswerNode = (identifiers) => {
91
+ const { baseOfPyramid, h } = identifiers;
92
+ const nodeVolume = calculateVolume(baseOfPyramid.sideSizes, h).simplify();
93
+ return nodeVolume;
94
+ };
82
95
  const getAnswer = (identifiers) => {
83
96
  const { baseOfPyramid, h } = identifiers;
84
97
  const volume = calculateVolume(baseOfPyramid.sideSizes, h).simplify();
85
- return volume.toTex();
98
+ return round(volume.evaluate(), 2).frenchify();
86
99
  };
87
100
  const getHint = (identifiers) => {
88
101
  const { baseOfPyramid } = identifiers;
@@ -91,7 +104,7 @@ const getHint = (identifiers) => {
91
104
  return `Le volume d'une pyramide est donné par la formule :
92
105
 
93
106
  $$
94
- V = \\frac{1}{3} \\times \\text{aire de la base} \\times \\text{hauteur}
107
+ V = \\frac{1}{3} \\times \\mathcal{A}_{base} \\times \\text{hauteur}
95
108
  $$
96
109
 
97
110
  La base de la pyramide est ici un ${baseShape}. Il faut donc commencer par calculer son aire.`;
@@ -101,30 +114,42 @@ const getCorrection = (identifiers) => {
101
114
  const { sideSizes, type } = baseOfPyramid;
102
115
  const baseShape = type === "Square" ? "carré" : "rectangle";
103
116
  const isSquare = type === "Square";
104
- const aera = round(isSquare ? sideSizes[0] ** 2 : sideSizes[0] * sideSizes[1], 2).frenchify();
117
+ const nodeAera = isSquare
118
+ ? power(sideSizes[0], 2)
119
+ : multiply(sideSizes[0], sideSizes[1]);
120
+ const nodeAnswer = getAnswerNode(identifiers);
121
+ const texAnswer = getAnswer(identifiers);
122
+ const isRounding = substract(nodeAnswer, unfrenchify(texAnswer).toTree()).evaluate() !== 0;
105
123
  return `Le volume d'une pyramide est donné par la formule :
106
124
 
107
125
  $$
108
- V = \\frac{1}{3} \\times \\text{aire de la base} \\times \\text{hauteur}
126
+ V = \\frac{1}{3} \\times \\mathcal{A}_{base} \\times \\text{hauteur}
109
127
  $$
110
128
 
111
129
  Ici, la base est un ${baseShape}. Son aire est égale à :
112
130
 
113
131
  $$
114
- ${isSquare
115
- ? square(sideSizes[0]).toTex()
116
- : multiply(sideSizes[0], sideSizes[1]).toTex({
117
- forceNoSimplification: true,
118
- })} = ${aera}
132
+ \\mathcal{A}_{base} =
133
+ ${nodeAera.toTex({
134
+ forceNoSimplification: true,
135
+ })}
119
136
  $$
120
137
 
121
138
  Le volume de la pyramide est donc :
122
139
 
123
140
  ${alignTex([
124
- ["V", "=", `\\frac{1}{3}\\times ${aera} \\times ${h}`],
125
- ["", "=", getAnswer(identifiers)],
126
- ])}
127
- `;
141
+ [
142
+ "V",
143
+ "=",
144
+ `\\frac{1}{3}\\times ${nodeAera.toTex({
145
+ forceNoSimplification: true,
146
+ })} \\times ${h}`,
147
+ ],
148
+ ["", isRounding ? "\\approx" : "=", getAnswer(identifiers)],
149
+ ])}${isRounding
150
+ ? `
151
+ *Attention à bien attendre la toute fin du calcul avant d'arrondir.*`
152
+ : ""}`;
128
153
  };
129
154
  const getQuestionFromIdentifiers = (identifiers) => {
130
155
  const question = {
@@ -153,9 +178,8 @@ const getPropositions = (n, { answer, h, baseOfPyramid }) => {
153
178
  });
154
179
  return shuffleProps(propositions, n);
155
180
  };
156
- const isAnswerValid = (ans, { baseOfPyramid, h }) => {
157
- const volume = calculateVolume(baseOfPyramid.sideSizes, h);
158
- return volume.simplify().toAllValidTexs().includes(ans);
181
+ const isAnswerValid = (ans, { answer }) => {
182
+ return numberVEA(ans, answer);
159
183
  };
160
184
  const generatePropositions = (baseOfPyramid, h) => {
161
185
  const firstProposition = h * baseOfPyramid.sideSizes[0] * baseOfPyramid.sideSizes[1] + "";
@@ -1 +1 @@
1
- {"version":3,"file":"volumeOfPyramidWithTriangleBase.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAgBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,kBAAkB,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAmMF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAejE,CAAC"}
1
+ {"version":3,"file":"volumeOfPyramidWithTriangleBase.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAkBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,kBAAkB,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA4NF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAejE,CAAC"}
@@ -2,11 +2,13 @@ import { addValidProp, propWhile, shuffleProps, tryToAddWrongProp, } from "../..
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { GeogebraConstructor } from "../../../../geogebra/geogebraConstructor.js";
4
4
  import { RationalConstructor } from "../../../../math/numbers/rationals/rational.js";
5
+ import { unfrenchify } from "../../../../math/utils/latex/unfrenchify.js";
5
6
  import { randint } from "../../../../math/utils/random/randint.js";
6
7
  import { round } from "../../../../math/utils/round.js";
7
8
  import { isNumberNode } from "../../../../tree/nodes/numbers/numberNode.js";
8
9
  import { frac, FractionNode } from "../../../../tree/nodes/operators/fractionNode.js";
9
10
  import { multiply, MultiplyNode, } from "../../../../tree/nodes/operators/multiplyNode.js";
11
+ import { substract } from "../../../../tree/nodes/operators/substractNode.js";
10
12
  import { random } from "../../../../utils/alea/random.js";
11
13
  import { alignTex } from "../../../../utils/latex/alignTex.js";
12
14
  const pythagoreTriplet = [
@@ -33,49 +35,68 @@ const getInstruction = (identifiers) => {
33
35
  const { baseOfPyramidSides, h } = identifiers;
34
36
  return `$ABCH$ est une pyramide à base triangulaire dont la hauteur issue de $H$ vaut $${h}$. Le point $D$ est le pied de la hauteur issue de $C$ dans le triangle $ABC$.
35
37
 
36
- Calculer le volume de la pyramide en sachant que $AB=${baseOfPyramidSides.ABSide}$ et $CD=${baseOfPyramidSides.ACSide}$.`;
38
+ On sait également que :
39
+ - $AB=${baseOfPyramidSides.ABSide}$
40
+ - $CD=${baseOfPyramidSides.ACSide}$
41
+
42
+ Calculer son volume (arrondir au centième).`;
37
43
  };
38
- const getAnswer = (identifiers) => {
44
+ const getAnswerNode = (identifiers) => {
39
45
  const { baseOfPyramidSides, h } = identifiers;
40
46
  const volume = calculateVolume(baseOfPyramidSides, h);
41
- return volume.simplify().toTex();
47
+ return volume.simplify();
48
+ };
49
+ const getAnswer = (identifiers) => {
50
+ const nodeVolume = getAnswerNode(identifiers);
51
+ return round(nodeVolume.evaluate(), 2).frenchify();
42
52
  };
43
53
  const getHint = () => {
44
54
  return `Le volume d'une pyramide est donné par la formule :
45
55
 
46
56
  $$
47
- V = \\frac{1}{3} \\times \\text{aire de la base} \\times \\text{hauteur}
57
+ V = \\frac{1}{3} \\times \\mathcal{A}_{base} \\times \\text{hauteur}
48
58
  $$
49
59
 
50
60
  La base de la pyramide est ici un triangle. Son aire se calcule par la formule :
51
61
 
52
62
  $$
53
- A = \\frac{\\text{base}\\times\\text{hauteur}}{2}
63
+ \\mathcal{A}_{triangle} = \\frac{\\text{base}\\times\\text{hauteur}}{2}
54
64
  $$`;
55
65
  };
56
66
  const getCorrection = (identifiers) => {
57
67
  const { h, baseOfPyramidSides } = identifiers;
58
68
  const { ABSide, ACSide } = baseOfPyramidSides;
59
- const aera = round((ABSide * ACSide) / 2, 2).frenchify();
69
+ const nodeAera = frac(multiply(ABSide, ACSide), 2);
70
+ const nodeAnswer = getAnswerNode(identifiers);
71
+ const texAnswer = getAnswer(identifiers);
72
+ const isRounding = substract(nodeAnswer, unfrenchify(texAnswer).toTree()).evaluate() !== 0;
60
73
  return `Le volume d'une pyramide est donné par la formule :
61
74
 
62
75
  $$
63
- V = \\frac{1}{3} \\times \\text{aire de la base} \\times \\text{hauteur}
76
+ V = \\frac{1}{3} \\times \\mathcal{A}_{base} \\times \\text{hauteur}
64
77
  $$
65
78
 
66
79
  Ici, la base est un triangle rectangle dont une hauteur est $${ACSide}$ et sa base associée vaut $${ABSide}$. Son aire est donc égale à :
67
80
 
68
81
  $$
69
- ${frac(multiply(ACSide, ABSide), 2).toTex()} = ${aera}
82
+ \\mathcal{A}_{base} = ${nodeAera.toTex({ forceNoSimplification: true })}
70
83
  $$
71
84
 
72
85
  Le volume de la pyramide est donc :
73
86
 
74
87
  ${alignTex([
75
- ["V", "=", `\\frac{1}{3}\\times ${aera} \\times ${h}`],
76
- ["", "=", getAnswer(identifiers)],
77
- ])}
78
- `;
88
+ [
89
+ "V",
90
+ "=",
91
+ `\\frac{1}{3}\\times ${nodeAera.toTex({
92
+ forceNoSimplification: true,
93
+ })} \\times ${h}`,
94
+ ],
95
+ ["", isRounding ? "\\approx" : "=", getAnswer(identifiers)],
96
+ ])}${isRounding
97
+ ? `
98
+ *Attention à bien attendre la toute fin du calcul avant d'arrondir.*`
99
+ : ""}`;
79
100
  };
80
101
  const getGGBOptions = (identifiers) => {
81
102
  const { baseOfPyramidSides, h } = identifiers;
@@ -1 +1 @@
1
- {"version":3,"file":"volumeOfPyramidWithTriangleRectBase.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAgBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,kBAAkB,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,KAAK,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAqMxE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAgBjD,CAAC"}
1
+ {"version":3,"file":"volumeOfPyramidWithTriangleRectBase.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAkBrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,kBAAkB,EAAE,aAAa,CAAC;CACnC,CAAC;AAEF,KAAK,aAAa,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAgOxE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAgBjD,CAAC"}
@@ -2,11 +2,13 @@ import { addValidProp, propWhile, shuffleProps, tryToAddWrongProp, } from "../..
2
2
  import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
3
  import { GeogebraConstructor } from "../../../../geogebra/geogebraConstructor.js";
4
4
  import { RationalConstructor } from "../../../../math/numbers/rationals/rational.js";
5
+ import { unfrenchify } from "../../../../math/utils/latex/unfrenchify.js";
5
6
  import { randint } from "../../../../math/utils/random/randint.js";
6
7
  import { round } from "../../../../math/utils/round.js";
7
8
  import { isNumberNode } from "../../../../tree/nodes/numbers/numberNode.js";
8
9
  import { frac, FractionNode } from "../../../../tree/nodes/operators/fractionNode.js";
9
10
  import { multiply, MultiplyNode, } from "../../../../tree/nodes/operators/multiplyNode.js";
11
+ import { substract } from "../../../../tree/nodes/operators/substractNode.js";
10
12
  import { random } from "../../../../utils/alea/random.js";
11
13
  import { alignTex } from "../../../../utils/latex/alignTex.js";
12
14
  const pythagoreTriplet = [
@@ -34,14 +36,24 @@ const getVolumeOfPyramidWithTriangleRectBase = () => {
34
36
  };
35
37
  const getInstruction = (identifiers) => {
36
38
  const { h, baseOfPyramidSides } = identifiers;
37
- return `$ABCH$ est une pyramide à base triangulaire dont la hauteur issue de $H$ vaut $${h}$.
38
-
39
- Calculer le volume de la pyramide en sachant que : $AB=${baseOfPyramidSides.ABSide}$, $AC=${baseOfPyramidSides.ACSide}$, $BC=${baseOfPyramidSides.BCSide}$ et $(AC)\\perp(AB)$.`;
39
+ return `$ABCH$ est une pyramide à base triangulaire dont la hauteur issue de $H$ vaut $${h}$.
40
+
41
+ On sait également que :
42
+ - $AB=${baseOfPyramidSides.ABSide}$
43
+ - $AC=${baseOfPyramidSides.ACSide}$
44
+ - $BC=${baseOfPyramidSides.BCSide}$
45
+ - $(AC)\\perp(AB)$
46
+
47
+ Calculer son volume (arrondir au centième).`;
40
48
  };
41
- const getAnswer = (identifiers) => {
42
- const { h, baseOfPyramidSides } = identifiers;
49
+ const getAnswerNode = (identifiers) => {
50
+ const { baseOfPyramidSides, h } = identifiers;
43
51
  const volume = calculateVolume(baseOfPyramidSides, h);
44
- return volume.simplify().toTex();
52
+ return volume.simplify();
53
+ };
54
+ const getAnswer = (identifiers) => {
55
+ const nodeVolume = getAnswerNode(identifiers);
56
+ return round(nodeVolume.evaluate(), 2).frenchify();
45
57
  };
46
58
  const getGGBOptions = (identifiers) => {
47
59
  const { h, baseOfPyramidSides } = identifiers;
@@ -80,38 +92,49 @@ const getHint = () => {
80
92
  return `Le volume d'une pyramide est donné par la formule :
81
93
 
82
94
  $$
83
- V = \\frac{1}{3} \\times \\text{aire de la base} \\times \\text{hauteur}
95
+ V = \\frac{1}{3} \\times \\mathcal{A}_{base} \\times \\text{hauteur}
84
96
  $$
85
97
 
86
98
  La base de la pyramide est ici un triangle rectangle. Son aire se calcule par la formule :
87
99
 
88
100
  $$
89
- A = \\frac{\\text{base}\\times\\text{hauteur}}{2}
101
+ \\mathcal{A}_{triangle} = \\frac{\\text{base}\\times\\text{hauteur}}{2}
90
102
  $$`;
91
103
  };
92
104
  const getCorrection = (identifiers) => {
93
105
  const { h, baseOfPyramidSides } = identifiers;
94
106
  const { ABSide, ACSide } = baseOfPyramidSides;
95
- const aera = round((ABSide * ACSide) / 2, 2).frenchify();
107
+ const nodeAera = frac(multiply(ABSide, ACSide), 2);
108
+ const nodeAnswer = getAnswerNode(identifiers);
109
+ const texAnswer = getAnswer(identifiers);
110
+ const isRounding = substract(nodeAnswer, unfrenchify(texAnswer).toTree()).evaluate() !== 0;
96
111
  return `Le volume d'une pyramide est donné par la formule :
97
112
 
98
113
  $$
99
- V = \\frac{1}{3} \\times \\text{aire de la base} \\times \\text{hauteur}
114
+ V = \\frac{1}{3} \\times \\mathcal{A}_{base} \\times \\text{hauteur}
100
115
  $$
101
116
 
102
117
  Ici, la base est un triangle rectangle dont une hauteur est $${ACSide}$ et sa base associée vaut $${ABSide}$. Son aire est donc égale à :
103
118
 
104
119
  $$
105
- ${frac(multiply(ACSide, ABSide), 2).toTex()} = ${aera}
120
+ \\mathcal{A}_{base} = ${nodeAera.toTex({ forceNoSimplification: true })}
106
121
  $$
107
122
 
108
123
  Le volume de la pyramide est donc :
109
124
 
110
125
  ${alignTex([
111
- ["V", "=", `\\frac{1}{3}\\times ${aera} \\times ${h}`],
112
- ["", "=", getAnswer(identifiers)],
113
- ])}
114
- `;
126
+ [
127
+ "V",
128
+ "=",
129
+ `\\frac{1}{3}\\times ${nodeAera.toTex({
130
+ forceNoSimplification: true,
131
+ })} \\times ${h}`,
132
+ ],
133
+ ["", isRounding ? "\\approx" : "=", getAnswer(identifiers)],
134
+ ])}${isRounding
135
+ ? `
136
+ *Attention à bien attendre la toute fin du calcul avant d'arrondir.*`
137
+ : ""}`;
115
138
  };
116
139
  const getQuestionFromIdentifiers = (identifiers) => {
117
140
  const question = {
@@ -1 +1 @@
1
- {"version":3,"file":"findTVA.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/findTVA.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AA4EF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAezC,CAAC"}
1
+ {"version":3,"file":"findTVA.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/findTVA.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAiFF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAezC,CAAC"}
@@ -20,25 +20,26 @@ const getAnswer = ({ tva }) => {
20
20
  return tva.frenchify() + "\\%";
21
21
  };
22
22
  const getInstruction = ({ ht, ttc }) => {
23
- return `Le prix HT d'un objet est $${ht.frenchify()}€$ et son prix TTC est $${ttc.frenchify()}€$. Quel est le taux de TVA ? Arrondir au dixième de pourcentage`;
23
+ return `Le prix HT d'un objet est $${ht.frenchify()}€$ et son prix TTC est $${ttc.frenchify()}€$. Quel est le taux de TVA en pourcentage ? Arrondir au dixième de pourcentage`;
24
24
  };
25
25
  const getHint = () => {
26
26
  return `Le taux de TVA est donnée par :
27
27
 
28
28
  $$
29
- \\frac{\\text{Prix TTC}-\\text{Prix HT}}{\\text{Prix HT}}\\times 100
30
- $$`;
29
+ \\frac{\\text{Prix TTC}-\\text{Prix HT}}{\\text{Prix HT}}
30
+ $$
31
+
32
+ À toi de le convertir en pourcents et de l'arrondir.
33
+ `;
31
34
  };
32
35
  const getCorrection = ({ ht, ttc, tva }) => {
33
36
  return `Le taux de TVA est :
34
37
 
35
38
  ${alignTex([
36
- ["", "\\frac{\\text{Prix TTC}-\\text{Prix HT}}{\\text{Prix HT}}\\times 100"],
37
- [
38
- "=",
39
- `\\frac{${ttc.frenchify()}-${ht.frenchify()}}{${ht.frenchify()}}{}\\times 100`,
40
- ],
41
- ["\\approx", tva.frenchify()],
39
+ ["", "\\frac{\\text{Prix TTC}-\\text{Prix HT}}{\\text{Prix HT}}"],
40
+ ["=", `\\frac{${ttc.frenchify()}-${ht.frenchify()}}{${ht.frenchify()}}{}`],
41
+ ["\\approx", `${(tva / 100.0).frenchify()}`],
42
+ ["\\approx", `${tva.frenchify()}\\%`],
42
43
  ])}
43
44
 
44
45
  Le taux de TVA est donc de $${tva.frenchify()}\\%$.
@@ -48,8 +49,13 @@ const getKeys = () => {
48
49
  return ["percent"];
49
50
  };
50
51
  const isAnswerValid = (ans, { answer }) => {
51
- const nb = numberParser(ans.replace("\\%", ""));
52
- return nb + "\\%" === answer;
52
+ if (ans.includes("\\%")) {
53
+ const nb = numberParser(ans.replace("\\%", ""));
54
+ return nb + "\\%" === answer;
55
+ }
56
+ else {
57
+ return false;
58
+ }
53
59
  };
54
60
  const getFindTvaQuestion = () => {
55
61
  const tva = random([2.1, 5.5, 10, 20]);
@@ -40,7 +40,7 @@ const isAnswerValid = (ans, { answer }) => {
40
40
  };
41
41
  const getHint = (identifiers) => {
42
42
  const itemType = identifiers.contextType === 2 ? "habitants" : "élèves";
43
- return `Détermine la quatrième proportionnelle un produit en croix : si $${identifiers.subPopulationPercent.frenchify()}\\%$ représente $${identifiers.subPopulationEffectif}$ ${itemType}, alors que représente $100\\%$ ?`;
43
+ return `Détermine la quatrième proportionnelle par un produit en croix : si $${identifiers.subPopulationPercent.frenchify()}\\%$ représente $${identifiers.subPopulationEffectif}$ ${itemType}, alors que représente $100\\%$ ?`;
44
44
  };
45
45
  const getCorrection = (identifiers) => {
46
46
  const itemType = identifiers.contextType === 2 ? "habitants" : "élèves";
@@ -11,4 +11,5 @@ export * from "./pickEquiprobableTo.js";
11
11
  export * from "./getMissingProbabilityValueMiddleSchool.js";
12
12
  export * from "./findEffectifFromProba.js";
13
13
  export * from "./calculateProbaFromProbaLaw.js";
14
+ export * from "./pickEquiprobableSituations.js";
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC"}
@@ -11,4 +11,4 @@ export * from "./pickEquiprobableTo.js";
11
11
  export * from "./getMissingProbabilityValueMiddleSchool.js";
12
12
  export * from "./findEffectifFromProba.js";
13
13
  export * from "./calculateProbaFromProbaLaw.js";
14
- // export * from "./pickEquiprobableSituations.js";
14
+ export * from "./pickEquiprobableSituations.js";
@@ -1 +1 @@
1
- {"version":3,"file":"pickEquiprobableSituations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/pickEquiprobableSituations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC;AA4IF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAkB5D,CAAC"}
1
+ {"version":3,"file":"pickEquiprobableSituations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/pickEquiprobableSituations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AA6ErC,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC;AAqNF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAmB5D,CAAC"}