math-exercises 3.0.216 → 3.0.218

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 (199) hide show
  1. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +1 -0
  3. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +5 -8
  5. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +7 -17
  7. package/lib/exercises/math/calcul/fractions/fractionForbiddenValue.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/fractions/fractionForbiddenValue.js +5 -6
  9. package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  10. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +7 -17
  11. package/lib/exercises/math/calcul/fractions/fractionsSum.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/fractions/fractionsSum.js +7 -22
  13. package/lib/exercises/math/calcul/fractions/fractionsSumFillInTheBlank.d.ts.map +1 -1
  14. package/lib/exercises/math/calcul/fractions/fractionsSumFillInTheBlank.js +7 -19
  15. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.d.ts.map +1 -1
  16. package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.js +7 -22
  17. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.d.ts.map +1 -1
  18. package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.js +7 -22
  19. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.d.ts +4 -1
  20. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.d.ts.map +1 -1
  21. package/lib/exercises/math/calcul/fractions/fractionsSumsSameDenominators.js +7 -23
  22. package/lib/exercises/math/calcul/fractions/periodicWritingToFraction.d.ts.map +1 -1
  23. package/lib/exercises/math/calcul/fractions/periodicWritingToFraction.js +3 -7
  24. package/lib/exercises/math/calcul/fractions/simplifyFraction.d.ts.map +1 -1
  25. package/lib/exercises/math/calcul/fractions/simplifyFraction.js +6 -7
  26. package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.d.ts.map +1 -1
  27. package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.js +3 -4
  28. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication101AndFriends.d.ts.map +1 -1
  29. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication101AndFriends.js +2 -4
  30. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication11AndFriends.d.ts.map +1 -1
  31. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication11AndFriends.js +2 -4
  32. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationTable.d.ts.map +1 -1
  33. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationTable.js +2 -4
  34. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.d.ts.map +1 -1
  35. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.js +2 -4
  36. package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
  37. package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.js +3 -4
  38. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityAdd.d.ts.map +1 -1
  39. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityAdd.js +14 -3
  40. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivitySubstract.d.ts.map +1 -1
  41. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivitySubstract.js +14 -3
  42. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts.map +1 -1
  43. package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +8 -5
  44. package/lib/exercises/math/calculLitteral/distributivity/simpleDistriXCoeff.d.ts.map +1 -1
  45. package/lib/exercises/math/calculLitteral/distributivity/simpleDistriXCoeff.js +14 -5
  46. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts.map +1 -1
  47. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.js +19 -32
  48. package/lib/exercises/math/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
  49. package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +10 -10
  50. package/lib/exercises/math/calculLitteral/factorisation/factoByXK.d.ts +0 -8
  51. package/lib/exercises/math/calculLitteral/factorisation/factoByXK.d.ts.map +1 -1
  52. package/lib/exercises/math/calculLitteral/factorisation/factoByXK.js +223 -190
  53. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -1
  54. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +22 -9
  55. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +0 -1
  56. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
  57. package/lib/exercises/math/calculLitteral/factorisation/index.js +1 -1
  58. package/lib/exercises/math/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
  59. package/lib/exercises/math/complex/argumentFromAlgebraicComplex.js +10 -4
  60. package/lib/exercises/math/derivation/derivative/trigo/sinCosDerivativeRewriteUsingCos2PlusSin2Equals1.js +2 -2
  61. package/lib/exercises/math/functions/absolute/absoluteValueEquations.js +12 -12
  62. package/lib/exercises/math/functions/affines/adjustment/affineAdjustmentRsquared.d.ts.map +1 -1
  63. package/lib/exercises/math/functions/affines/adjustment/affineAdjustmentRsquared.js +10 -18
  64. package/lib/exercises/math/functions/affines/affineMeanValue.d.ts.map +1 -1
  65. package/lib/exercises/math/functions/affines/affineMeanValue.js +3 -5
  66. package/lib/exercises/math/functions/basics/findZeroesProductQuotient.d.ts.map +1 -1
  67. package/lib/exercises/math/functions/basics/findZeroesProductQuotient.js +0 -1
  68. package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts.map +1 -1
  69. package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +12 -7
  70. package/lib/exercises/math/functions/integral/integralExpAxPlusB.d.ts.map +1 -1
  71. package/lib/exercises/math/functions/integral/integralExpAxPlusB.js +19 -3
  72. package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts.map +1 -1
  73. package/lib/exercises/math/functions/logarithm/log10Simplifying.js +20 -6
  74. package/lib/exercises/math/functions/logarithm/logSimplifiying.d.ts.map +1 -1
  75. package/lib/exercises/math/functions/logarithm/logSimplifiying.js +14 -9
  76. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -1
  77. package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.js +9 -6
  78. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.d.ts.map +1 -1
  79. package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.js +12 -8
  80. package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.d.ts.map +1 -1
  81. package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.js +21 -4
  82. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -1
  83. package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +4 -7
  84. package/lib/exercises/math/functions/trinoms/trinomialMeanValue.d.ts.map +1 -1
  85. package/lib/exercises/math/functions/trinoms/trinomialMeanValue.js +3 -5
  86. package/lib/exercises/math/geometry/areas/circleArea.d.ts.map +1 -1
  87. package/lib/exercises/math/geometry/areas/circleArea.js +4 -2
  88. package/lib/exercises/math/geometry/areas/rectangleArea.d.ts.map +1 -1
  89. package/lib/exercises/math/geometry/areas/rectangleArea.js +4 -2
  90. package/lib/exercises/math/geometry/areas/rightTriangleArea.d.ts.map +1 -1
  91. package/lib/exercises/math/geometry/areas/rightTriangleArea.js +14 -11
  92. package/lib/exercises/math/geometry/areas/squareArea.d.ts.map +1 -1
  93. package/lib/exercises/math/geometry/areas/squareArea.js +4 -2
  94. package/lib/exercises/math/geometry/areas/squareSideFromArea.d.ts.map +1 -1
  95. package/lib/exercises/math/geometry/areas/squareSideFromArea.js +6 -4
  96. package/lib/exercises/math/geometry/areas/triangleArea.d.ts.map +1 -1
  97. package/lib/exercises/math/geometry/areas/triangleArea.js +3 -1
  98. package/lib/exercises/math/geometry/areas/triangleAreaV2.d.ts.map +1 -1
  99. package/lib/exercises/math/geometry/areas/triangleAreaV2.js +4 -2
  100. package/lib/exercises/math/geometry/cartesian/midpoint.d.ts.map +1 -1
  101. package/lib/exercises/math/geometry/cartesian/midpoint.js +6 -11
  102. package/lib/exercises/math/geometry/perimeters/rectangleSideFromPerimeter.d.ts.map +1 -1
  103. package/lib/exercises/math/geometry/perimeters/rectangleSideFromPerimeter.js +3 -3
  104. package/lib/exercises/math/geometry/perimeters/squareSideFromPerimeter.d.ts.map +1 -1
  105. package/lib/exercises/math/geometry/perimeters/squareSideFromPerimeter.js +3 -3
  106. package/lib/exercises/math/geometry/vectors/vectorNormCalculation.d.ts.map +1 -1
  107. package/lib/exercises/math/geometry/vectors/vectorNormCalculation.js +3 -5
  108. package/lib/exercises/math/geometry/volumes/parallelepipedVolume.d.ts.map +1 -1
  109. package/lib/exercises/math/geometry/volumes/parallelepipedVolume.js +3 -4
  110. package/lib/exercises/math/geometry/volumes/sphereVolume.d.ts.map +1 -1
  111. package/lib/exercises/math/geometry/volumes/sphereVolume.js +3 -4
  112. package/lib/exercises/math/geometry/volumes/volumeOfCube.d.ts.map +1 -1
  113. package/lib/exercises/math/geometry/volumes/volumeOfCube.js +3 -4
  114. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.d.ts.map +1 -1
  115. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +3 -6
  116. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.d.ts.map +1 -1
  117. package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +3 -6
  118. package/lib/exercises/math/graphs/graphsChainOrPathOfLengthN.d.ts.map +1 -1
  119. package/lib/exercises/math/graphs/graphsChainOrPathOfLengthN.js +3 -1
  120. package/lib/exercises/math/graphs/graphsCheckIsConnectedGraph.d.ts +11 -0
  121. package/lib/exercises/math/graphs/graphsCheckIsConnectedGraph.d.ts.map +1 -0
  122. package/lib/exercises/math/graphs/graphsCheckIsConnectedGraph.js +155 -0
  123. package/lib/exercises/math/graphs/graphsCheckIsConnectedUndirectedGraph.js +1 -1
  124. package/lib/exercises/math/graphs/graphsCheckIsSameGraph.d.ts +0 -2
  125. package/lib/exercises/math/graphs/graphsCheckIsSameGraph.d.ts.map +1 -1
  126. package/lib/exercises/math/graphs/graphsCheckIsSameGraph.js +4 -14
  127. package/lib/exercises/math/graphs/graphsCheckIsVerticesAdjacent.d.ts.map +1 -1
  128. package/lib/exercises/math/graphs/graphsCheckIsVerticesAdjacent.js +3 -1
  129. package/lib/exercises/math/graphs/graphsDegreeOfVertex.d.ts.map +1 -1
  130. package/lib/exercises/math/graphs/graphsDegreeOfVertex.js +3 -1
  131. package/lib/exercises/math/graphs/graphsOrderOfGraph.d.ts.map +1 -1
  132. package/lib/exercises/math/graphs/graphsOrderOfGraph.js +3 -1
  133. package/lib/exercises/math/graphs/index.d.ts +1 -1
  134. package/lib/exercises/math/graphs/index.d.ts.map +1 -1
  135. package/lib/exercises/math/graphs/index.js +1 -1
  136. package/lib/exercises/math/integration/fromExpr/integralFromExpr.d.ts.map +1 -1
  137. package/lib/exercises/math/integration/fromExpr/integralFromExpr.js +2 -0
  138. package/lib/exercises/math/limits/rationalFracLimit.d.ts.map +1 -1
  139. package/lib/exercises/math/limits/rationalFracLimit.js +9 -20
  140. package/lib/exercises/math/limits/sequences/sequenceRationalFracLimit.d.ts.map +1 -1
  141. package/lib/exercises/math/limits/sequences/sequenceRationalFracLimit.js +9 -20
  142. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
  143. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.js +11 -28
  144. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstRankOne.d.ts.map +1 -1
  145. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstRankOne.js +12 -27
  146. package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.d.ts.map +1 -1
  147. package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.js +56 -3
  148. package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.d.ts.map +1 -1
  149. package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.js +6 -0
  150. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.d.ts.map +1 -1
  151. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorNormCalculation.js +3 -5
  152. package/lib/exercises/math/squareRoots/simpifySquareRoot.d.ts.map +1 -1
  153. package/lib/exercises/math/squareRoots/simpifySquareRoot.js +5 -4
  154. package/lib/exercises/math/squareRoots/squareRootEquation.d.ts.map +1 -1
  155. package/lib/exercises/math/squareRoots/squareRootEquation.js +9 -8
  156. package/lib/exercises/math/squareRoots/squareRootIdentities.d.ts.map +1 -1
  157. package/lib/exercises/math/squareRoots/squareRootIdentities.js +7 -4
  158. package/lib/exercises/math/squareRoots/squareRootsDistributivity.d.ts.map +1 -1
  159. package/lib/exercises/math/squareRoots/squareRootsDistributivity.js +7 -8
  160. package/lib/exercises/math/trigonometry/arcLength.d.ts.map +1 -1
  161. package/lib/exercises/math/trigonometry/arcLength.js +3 -8
  162. package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.d.ts.map +1 -1
  163. package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.js +0 -6
  164. package/lib/exercises/pc/dosage/beerLambertRandomValue.d.ts.map +1 -1
  165. package/lib/exercises/pc/dosage/beerLambertRandomValue.js +3 -4
  166. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts.map +1 -1
  167. package/lib/exercises/pc/dosage/concentrationFromMassCalculation.js +3 -18
  168. package/lib/exercises/pc/energy/energyTransfer.d.ts.map +1 -1
  169. package/lib/exercises/pc/energy/energyTransfer.js +3 -8
  170. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -1
  171. package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +3 -24
  172. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -1
  173. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +9 -6
  174. package/lib/exercises/vea/equationVEA.d.ts.map +1 -1
  175. package/lib/exercises/vea/equationVEA.js +2 -0
  176. package/lib/exercises/vea/rationalVEA.d.ts +2 -1
  177. package/lib/exercises/vea/rationalVEA.d.ts.map +1 -1
  178. package/lib/exercises/vea/rationalVEA.js +36 -2
  179. package/lib/exercises/vea/treeTableVEA.d.ts.map +1 -1
  180. package/lib/exercises/vea/treeTableVEA.js +2 -0
  181. package/lib/index.d.ts +3 -8
  182. package/lib/index.d.ts.map +1 -1
  183. package/lib/math/graphs/graph.d.ts +1 -1
  184. package/lib/math/graphs/graph.d.ts.map +1 -1
  185. package/lib/math/graphs/graph.js +86 -30
  186. package/lib/math/utils/graphs/graphRenderer.d.ts +7 -9
  187. package/lib/math/utils/graphs/graphRenderer.d.ts.map +1 -1
  188. package/lib/math/utils/graphs/graphRenderer.js +25 -117
  189. package/lib/tree/nodes/algebraicNode.d.ts +2 -0
  190. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  191. package/lib/tree/nodes/algebraicNode.js +11 -0
  192. package/lib/tree/nodes/functions/log10Node.d.ts +2 -2
  193. package/lib/tree/nodes/functions/log10Node.d.ts.map +1 -1
  194. package/lib/tree/nodes/functions/log10Node.js +3 -1
  195. package/lib/tree/nodes/functions/logNode.d.ts.map +1 -1
  196. package/lib/tree/nodes/functions/logNode.js +2 -0
  197. package/lib/tree/nodes/operators/addNode.js +1 -1
  198. package/lib/tree/nodes/operators/fractionNode.js +1 -1
  199. package/package.json +1 -7
@@ -1 +1 @@
1
- {"version":3,"file":"squareRootEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/squareRoots/squareRootEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuFF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
1
+ {"version":3,"file":"squareRootEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/squareRoots/squareRootEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuFF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
@@ -1,11 +1,10 @@
1
1
  import { addValidProp, propWhile, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
+ import { equationVEA } from "../../../exercises/vea/equationVEA.js";
3
4
  import { randint } from "../../../math/utils/random/randint.js";
4
- import { EquationSolutionNode } from "../../../tree/nodes/equations/equationSolutionNode.js";
5
- import { NumberNode } from "../../../tree/nodes/numbers/numberNode.js";
6
5
  import { square } from "../../../tree/nodes/operators/powerNode.js";
7
- import { DiscreteSetNode, EmptySet, } from "../../../tree/nodes/sets/discreteSetNode.js";
8
6
  import { shuffle } from "../../../utils/alea/shuffle.js";
7
+ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
9
8
  const getInstruction = (identifiers) => {
10
9
  const { k } = identifiers;
11
10
  return `Résoudre l'équation suivante :
@@ -69,11 +68,13 @@ const getPropositions = (n, { answer, k }) => {
69
68
  });
70
69
  return shuffle(propositions);
71
70
  };
72
- const isAnswerValid = (ans, { k }) => {
73
- const solution = k < 0 ? EmptySet : new DiscreteSetNode([new NumberNode(k ** 2)]);
74
- const answerTree = new EquationSolutionNode(solution);
75
- const validLatexs = answerTree.toAllValidTexs();
76
- return validLatexs.includes(ans);
71
+ const isAnswerValid = (ans, { answer }) => {
72
+ try {
73
+ return equationVEA(ans, answer.replace("S=", ""));
74
+ }
75
+ catch (err) {
76
+ return handleVEAError(err);
77
+ }
77
78
  };
78
79
  export const squareRootEquation = {
79
80
  id: "squareRootEquation",
@@ -1 +1 @@
1
- {"version":3,"file":"squareRootIdentities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/squareRoots/squareRootIdentities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAwBrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAyUF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAetD,CAAC"}
1
+ {"version":3,"file":"squareRootIdentities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/squareRoots/squareRootIdentities.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAyBrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AA6UF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAetD,CAAC"}
@@ -8,6 +8,7 @@ import { add, AddNode } from "../../../tree/nodes/operators/addNode.js";
8
8
  import { multiply, MultiplyNode, } from "../../../tree/nodes/operators/multiplyNode.js";
9
9
  import { square, SquareNode } from "../../../tree/nodes/operators/powerNode.js";
10
10
  import { substract, SubstractNode, } from "../../../tree/nodes/operators/substractNode.js";
11
+ import { parseAlgebraic } from "../../../tree/parsers/latexParser.js";
11
12
  import { probaFlip } from "../../../utils/alea/probaFlip.js";
12
13
  import { shuffle } from "../../../utils/alea/shuffle.js";
13
14
  import { alignTex } from "../../../utils/latex/alignTex.js";
@@ -234,10 +235,12 @@ const getPropositions = (n, { answer, a, b, type, x, y }) => {
234
235
  }
235
236
  return shuffle(propositions);
236
237
  };
237
- const isAnswerValid = (ans, { answer, ...identifiers }) => {
238
- const validAnswer = getAnswerNode(identifiers);
239
- const texs = validAnswer.toAllValidTexs();
240
- return texs.includes(ans);
238
+ const isAnswerValid = (ans, { answer }) => {
239
+ return (parseAlgebraic(ans)
240
+ .simplify({
241
+ forbidFactorize: true,
242
+ })
243
+ .toTex() === answer);
241
244
  };
242
245
  export const squareRootIdentities = {
243
246
  id: "squareRootIdentities",
@@ -1 +1 @@
1
- {"version":3,"file":"squareRootsDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/squareRoots/squareRootsDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAarC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAkHF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
1
+ {"version":3,"file":"squareRootsDistributivity.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/squareRoots/squareRootsDistributivity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAcrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA+GF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
@@ -6,6 +6,7 @@ import { sqrt, SqrtNode } from "../../../tree/nodes/functions/sqrtNode.js";
6
6
  import { NumberNode } from "../../../tree/nodes/numbers/numberNode.js";
7
7
  import { add, AddNode } from "../../../tree/nodes/operators/addNode.js";
8
8
  import { multiply, MultiplyNode, } from "../../../tree/nodes/operators/multiplyNode.js";
9
+ import { parseAlgebraic } from "../../../tree/parsers/latexParser.js";
9
10
  import { alignTex } from "../../../utils/latex/alignTex.js";
10
11
  /**
11
12
  * a sqrt(b) (c + d sqrt(b))
@@ -84,14 +85,12 @@ const getPropositions = (n, { answer, b }) => {
84
85
  });
85
86
  return shuffleProps(propositions, n);
86
87
  };
87
- const isAnswerValid = (ans, { a, b, c, d }) => {
88
- const aNode = new NumberNode(a);
89
- const cNode = new NumberNode(c);
90
- const dNode = new NumberNode(d);
91
- const bTree = new SqrtNode(new NumberNode(b));
92
- const answer = new AddNode(new MultiplyNode(new MultiplyNode(aNode, cNode), bTree), new MultiplyNode(new MultiplyNode(aNode, dNode), new NumberNode(b))).simplify({ forbidFactorize: true });
93
- const texs = answer.toAllValidTexs();
94
- return texs.includes(ans);
88
+ const isAnswerValid = (ans, { answer }) => {
89
+ return (parseAlgebraic(ans)
90
+ .simplify({
91
+ forbidFactorize: true,
92
+ })
93
+ .toTex() === answer);
95
94
  };
96
95
  export const squareRootsDistributivity = {
97
96
  id: "squareRootsDistributivity",
@@ -1 +1 @@
1
- {"version":3,"file":"arcLength.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/trigonometry/arcLength.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,iBAAiB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AA4GF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,WAAW,CAc3C,CAAC"}
1
+ {"version":3,"file":"arcLength.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/trigonometry/arcLength.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAO7C,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,iBAAiB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAmGF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,WAAW,CAc3C,CAAC"}
@@ -6,6 +6,7 @@ import { NodeConstructor, } from "../../../tree/nodes/nodeConstructor.js";
6
6
  import { PiNode } from "../../../tree/nodes/numbers/piNode.js";
7
7
  import { FractionNode } from "../../../tree/nodes/operators/fractionNode.js";
8
8
  import { MultiplyNode } from "../../../tree/nodes/operators/multiplyNode.js";
9
+ import { parseAlgebraic } from "../../../tree/parsers/latexParser.js";
9
10
  import { coinFlip } from "../../../utils/alea/coinFlip.js";
10
11
  const getPropositions = (n, { answer, isThetaInDegree, radius }) => {
11
12
  const propositions = [];
@@ -41,14 +42,8 @@ const getInstruction = (identifiers) => {
41
42
  const getKeys = () => {
42
43
  return ["pi"];
43
44
  };
44
- const isAnswerValid = (ans, { isThetaInDegree, radius, thetaInDegree, thetaInRadNodeIds }) => {
45
- const node = getAnswerNode({
46
- isThetaInDegree,
47
- radius,
48
- thetaInDegree,
49
- thetaInRadNodeIds,
50
- });
51
- return node.toAllValidTexs().includes(ans);
45
+ const isAnswerValid = (ans, { answer }) => {
46
+ return parseAlgebraic(ans).simplify().toTex() === answer;
52
47
  };
53
48
  const getArcLengthQuestion = () => {
54
49
  const radius = randint(1, 6);
@@ -1 +1 @@
1
- {"version":3,"file":"findAtomEntitiesNumberFromMass.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAMnF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,WAAW,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAgGF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAYhE,CAAC"}
1
+ {"version":3,"file":"findAtomEntitiesNumberFromMass.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAMnF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,WAAW,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA0FF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAYhE,CAAC"}
@@ -65,12 +65,6 @@ const getPropositions = (n, { answer, atomSymbol, sampleMass }) => {
65
65
  return shuffleProps(propositions, n);
66
66
  };
67
67
  const isAnswerValid = (ans, { answer }) => {
68
- // const atom = atomes.find(a => a.symbole === atomSymbol)!
69
- // const sampleMassMeasure = new Measure(sampleMass, 0);
70
- // const atomMass = nucleonMass.value.times(atom.masseAtomique).toSignificant(2);
71
- // const entitiesNumber = sampleMassMeasure.divide(atomMass).toSignificant(2);
72
- // const texs = entitiesNumber.toAllValidTexs();
73
- // return texs.includes(ans);
74
68
  return ans === answer;
75
69
  };
76
70
  export const findAtomEntitiesNumberFromMass = {
@@ -1 +1 @@
1
- {"version":3,"file":"beerLambertRandomValue.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/dosage/beerLambertRandomValue.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAoOF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAahE,CAAC"}
1
+ {"version":3,"file":"beerLambertRandomValue.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/dosage/beerLambertRandomValue.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAiOF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAahE,CAAC"}
@@ -6,6 +6,7 @@ import { random } from "../../../utils/alea/random.js";
6
6
  import { requiresApostropheBefore } from "../../../utils/strings/requiresApostropheBefore.js";
7
7
  import { randfloat } from "../../../math/utils/random/randfloat.js";
8
8
  import { molecules } from "../../../pc/constants/molecularChemistry/molecule.js";
9
+ import { numberVEA } from "../../../exercises/vea/numberVEA.js";
9
10
  const getInstruction = (identifiers) => {
10
11
  const { moleculeName, concentration, molarAbsorptivity, pathLength, absorbance, targetVariableName, } = identifiers;
11
12
  const variables = [
@@ -165,10 +166,8 @@ const getPropositions = (n, { answer, concentration, molarAbsorptivity, pathLeng
165
166
  });
166
167
  return shuffleProps(propositions, n);
167
168
  };
168
- const isAnswerValid = (ans, { answer, ...identifiers }) => {
169
- const validAnswer = getAnswer(identifiers).unfrenchify();
170
- const latexs = validAnswer.toTree().toAllValidTexs();
171
- return latexs.includes(ans);
169
+ const isAnswerValid = (ans, { answer }) => {
170
+ return numberVEA(ans, answer);
172
171
  };
173
172
  export const BeerLambertRandomValueExercise = {
174
173
  id: "beerLambertRandomValue",
@@ -1 +1 @@
1
- {"version":3,"file":"concentrationFromMassCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/dosage/concentrationFromMassCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CAC3B,CAAC;AAkLF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
1
+ {"version":3,"file":"concentrationFromMassCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/dosage/concentrationFromMassCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;CAC3B,CAAC;AA6JF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
@@ -4,6 +4,7 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
4
4
  import { round } from "../../../math/utils/round.js";
5
5
  import { randfloat } from "../../../math/utils/random/randfloat.js";
6
6
  import { randint } from "../../../math/utils/random/randint.js";
7
+ import { numberVEA } from "../../../exercises/vea/numberVEA.js";
7
8
  const getInstruction = (identifiers) => {
8
9
  const { concentration, mass, molarMass, variable } = identifiers;
9
10
  switch (variable) {
@@ -118,24 +119,8 @@ const getPropositions = (n, { answer, concentration, mass, molarMass, variable }
118
119
  });
119
120
  return shuffleProps(propositions, n);
120
121
  };
121
- const isAnswerValid = (ans, { variable, mass, molarMass, concentration }) => {
122
- let validanswer;
123
- switch (variable) {
124
- case "C":
125
- validanswer = round(mass / molarMass, 2);
126
- break;
127
- case "t":
128
- validanswer = round(concentration * molarMass, 2);
129
- break;
130
- case "M":
131
- validanswer = round(mass / concentration, 2);
132
- break;
133
- }
134
- const latexs = [
135
- ...validanswer.toTree().toAllValidTexs(),
136
- validanswer.toScientific(2).toTex(),
137
- ];
138
- return latexs.includes(ans);
122
+ const isAnswerValid = (ans, { answer }) => {
123
+ return numberVEA(ans, answer);
139
124
  };
140
125
  export const concentrationFromMassCalculation = {
141
126
  id: "concentrationFromMassCalculation",
@@ -1 +1 @@
1
- {"version":3,"file":"energyTransfer.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/energyTransfer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAmFF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAYhD,CAAC"}
1
+ {"version":3,"file":"energyTransfer.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/energyTransfer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA2EF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAYhD,CAAC"}
@@ -4,6 +4,7 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
4
4
  import { randfloat } from "../../../math/utils/random/randfloat.js";
5
5
  import { round } from "../../../math/utils/round.js";
6
6
  import { requiresApostropheBefore } from "../../../utils/strings/requiresApostropheBefore.js";
7
+ import { numberVEA } from "../../../exercises/vea/numberVEA.js";
7
8
  const substances = [
8
9
  { name: "eau", latentHeat: 334 }, // kJ/kg for melting ice
9
10
  { name: "fer", latentHeat: 276 }, // kJ/kg for melting iron
@@ -56,14 +57,8 @@ const getPropositions = (n, { answer, substance, mass }) => {
56
57
  });
57
58
  return shuffleProps(propositions, n);
58
59
  };
59
- const isAnswerValid = (ans, { substance, mass }) => {
60
- const subst = substances.find((s) => s.name === substance);
61
- const energy = round(mass * subst.latentHeat, 2);
62
- const validanswer1 = `${energy}\\kJ`;
63
- const validanswer2 = energy.toTree().toAllValidTexs();
64
- const latexs = [];
65
- latexs.push(validanswer1, ...validanswer2);
66
- return latexs.includes(ans);
60
+ const isAnswerValid = (ans, { answer }) => {
61
+ return numberVEA(ans, answer);
67
62
  };
68
63
  export const energyTransfer = {
69
64
  id: "energyTransfer",
@@ -1 +1 @@
1
- {"version":3,"file":"thermalEnergyTransferCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/thermalEnergyTransferCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,QAAQ,CAAC;CACzC,CAAC;AAwRF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAalE,CAAC"}
1
+ {"version":3,"file":"thermalEnergyTransferCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/energy/thermalEnergyTransferCalculation.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,QAAQ,CAAC;CACzC,CAAC;AAuPF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAalE,CAAC"}
@@ -4,6 +4,7 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
4
4
  import { round } from "../../../math/utils/round.js";
5
5
  import { randfloat } from "../../../math/utils/random/randfloat.js";
6
6
  import { randint } from "../../../math/utils/random/randint.js";
7
+ import { numberVEA } from "../../../exercises/vea/numberVEA.js";
7
8
  const getInstruction = (identifiers) => {
8
9
  const { mass, specificHeat, initialTemp, finalTemp, variable } = identifiers;
9
10
  const deltaT = finalTemp - initialTemp;
@@ -148,30 +149,8 @@ const getPropositions = (n, { answer, mass, specificHeat, initialTemp, finalTemp
148
149
  });
149
150
  return shuffleProps(propositions, n);
150
151
  };
151
- const isAnswerValid = (ans, { mass, specificHeat, initialTemp, finalTemp, variable }) => {
152
- let validanswer;
153
- const deltaT = finalTemp - initialTemp;
154
- switch (variable) {
155
- case "E_th":
156
- validanswer = round(mass * specificHeat * deltaT, 2);
157
- break;
158
- case "m":
159
- validanswer = round((mass * specificHeat * deltaT) / (specificHeat * deltaT), 2);
160
- break;
161
- case "c":
162
- validanswer = round((mass * specificHeat * deltaT) / (mass * deltaT), 2);
163
- break;
164
- case "deltaT":
165
- validanswer = round((mass * specificHeat * deltaT) / (mass * specificHeat), 2);
166
- break;
167
- }
168
- const latexs = [
169
- ...validanswer.toTree().toAllValidTexs(),
170
- validanswer.toScientific(2).toTex(),
171
- validanswer.toScientific(1).toTex(),
172
- validanswer.toScientific(3).toTex(),
173
- ];
174
- return latexs.includes(ans);
152
+ const isAnswerValid = (ans, { answer }) => {
153
+ return numberVEA(ans, answer);
175
154
  };
176
155
  export const thermalEnergyTransferCalculation = {
177
156
  id: "thermalEnergyTransferCalculation",
@@ -1 +1 @@
1
- {"version":3,"file":"proportionnalityCoeffFromLine.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/math/proportionnalityCoeffFromLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AA0FF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAc/D,CAAC"}
1
+ {"version":3,"file":"proportionnalityCoeffFromLine.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/math/proportionnalityCoeffFromLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AA0FF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAc/D,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { addValidProp, propWhile, tryToAddWrongProp, } from "../../../exercises/exercise.js";
2
2
  import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
3
+ import { rationalVEA } from "../../../exercises/vea/rationalVEA.js";
3
4
  import { randomColor } from "../../../geogebra/colors.js";
4
5
  import { GeogebraConstructor } from "../../../geogebra/geogebraConstructor.js";
5
6
  import { Integer } from "../../../math/numbers/integer/integer.js";
@@ -7,6 +8,7 @@ import { Rational } from "../../../math/numbers/rationals/rational.js";
7
8
  import { randint } from "../../../math/utils/random/randint.js";
8
9
  import { NumberNode } from "../../../tree/nodes/numbers/numberNode.js";
9
10
  import { shuffle } from "../../../utils/alea/shuffle.js";
11
+ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
10
12
  const getInstruction = () => {
11
13
  return "Déterminer le coefficient de proportionnalité entre $y$ et $x$ : ";
12
14
  };
@@ -71,12 +73,13 @@ const getPropositions = (n, { answer, xA, xB, yA, yB }) => {
71
73
  });
72
74
  return shuffle(propositions);
73
75
  };
74
- const isAnswerValid = (ans, { xA, xB, yA, yB }) => {
75
- const leadingCoeff = new Rational(yB - yA, xB - xA)
76
- .simplify()
77
- .toTree({ allowFractionToDecimal: true });
78
- const texs = leadingCoeff.toAllValidTexs();
79
- return texs.includes(ans);
76
+ const isAnswerValid = (ans, { answer }) => {
77
+ try {
78
+ return rationalVEA(ans, answer);
79
+ }
80
+ catch (err) {
81
+ return handleVEAError(err);
82
+ }
80
83
  };
81
84
  export const proportionnalityCoeffFromLine = {
82
85
  id: "proportionnalityCoeffFromLine",
@@ -1 +1 @@
1
- {"version":3,"file":"equationVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/equationVEA.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,aAAa,MAAM,YAa3D,CAAC"}
1
+ {"version":3,"file":"equationVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/equationVEA.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,aAAa,MAAM,YAgB3D,CAAC"}
@@ -4,6 +4,8 @@ import { handleVEAError } from "../../utils/errors/handleVEAError.js";
4
4
  import { rationalVEA } from "./rationalVEA.js";
5
5
  export const equationVEA = (ans, solutionTex) => {
6
6
  try {
7
+ if (solutionTex === "\\varnothing")
8
+ return ans === "\\varnothing" || ans === "S=\\varnothing";
7
9
  const parsed = equationSolutionParser(ans);
8
10
  if (parsed) {
9
11
  return rationalVEA(parsed.toTex(), solutionTex);
@@ -1,8 +1,9 @@
1
1
  type Opts = {
2
2
  allowNonIrreductible?: boolean;
3
3
  allowDecimal?: boolean;
4
+ allowDecimalApprox?: boolean;
4
5
  decimalPrecision?: number;
5
6
  };
6
- export declare const rationalVEA: (studentAns: string, answer: string, { allowNonIrreductible, decimalPrecision, allowDecimal }?: Opts) => boolean;
7
+ export declare const rationalVEA: (studentAns: string, answer: string, { allowNonIrreductible, decimalPrecision, allowDecimal, allowDecimalApprox, }?: Opts) => boolean;
7
8
  export {};
8
9
  //# sourceMappingURL=rationalVEA.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rationalVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/rationalVEA.ts"],"names":[],"mappings":"AAOA,KAAK,IAAI,GAAG;IACV,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AACF,eAAO,MAAM,WAAW,GACtB,YAAY,MAAM,EAClB,QAAQ,MAAM,EACd,2DAA0D,IAIzD,YAkCF,CAAC"}
1
+ {"version":3,"file":"rationalVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/rationalVEA.ts"],"names":[],"mappings":"AAeA,KAAK,IAAI,GAAG;IACV,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AACF,eAAO,MAAM,WAAW,GACtB,YAAY,MAAM,EAClB,QAAQ,MAAM,EACd,gFAKG,IAKF,YAsEF,CAAC"}
@@ -1,14 +1,18 @@
1
1
  import { round } from "../../math/utils/round.js";
2
- import { isNumberNode } from "../../tree/nodes/numbers/numberNode.js";
2
+ import { isOppositeNode } from "../../tree/nodes/functions/oppositeNode.js";
3
+ import { isNumberNode, } from "../../tree/nodes/numbers/numberNode.js";
4
+ import { isFractionNode, } from "../../tree/nodes/operators/fractionNode.js";
3
5
  import { parseAlgebraic } from "../../tree/parsers/latexParser.js";
4
6
  import { rationalParser } from "../../tree/parsers/rationalParser.js";
5
7
  import { handleVEAError } from "../../utils/errors/handleVEAError.js";
6
- export const rationalVEA = (studentAns, answer, { allowNonIrreductible, decimalPrecision, allowDecimal } = {
8
+ export const rationalVEA = (studentAns, answer, { allowNonIrreductible, decimalPrecision, allowDecimal, allowDecimalApprox, } = {
7
9
  allowNonIrreductible: true,
8
10
  decimalPrecision: 2,
9
11
  allowDecimal: true,
12
+ allowDecimalApprox: true,
10
13
  }) => {
11
14
  allowDecimal = allowDecimal ?? true;
15
+ allowDecimalApprox = allowDecimalApprox ?? true;
12
16
  allowNonIrreductible = allowNonIrreductible ?? true;
13
17
  decimalPrecision = decimalPrecision ?? undefined;
14
18
  const parsed = rationalParser(studentAns);
@@ -19,6 +23,20 @@ export const rationalVEA = (studentAns, answer, { allowNonIrreductible, decimalP
19
23
  if (isNumberNode(parsed)) {
20
24
  if (!allowDecimal)
21
25
  return false;
26
+ if (!allowDecimalApprox) {
27
+ //si l'answer n'est pas décimable et que c'est un nbNode on renvoit faux dans tous les cas
28
+ const answerFraced = isFractionNode(parsedAnswer)
29
+ ? parsedAnswer
30
+ : isOppositeNode(parsedAnswer) && isFractionNode(parsedAnswer.child)
31
+ ? parsedAnswer.child
32
+ : isNumberNode(parsedAnswer)
33
+ ? parsedAnswer.toFrac()
34
+ : null;
35
+ if (!!answerFraced &&
36
+ !isNumberNode(answerFraced) &&
37
+ !answerFraced.isDecimal())
38
+ return false;
39
+ }
22
40
  if (decimalPrecision === undefined)
23
41
  return (Math.abs(parsed.evaluate() - parsedAnswer.evaluate()) < 0.0000001);
24
42
  else {
@@ -32,6 +50,22 @@ export const rationalVEA = (studentAns, answer, { allowNonIrreductible, decimalP
32
50
  }
33
51
  }
34
52
  else if (allowNonIrreductible) {
53
+ if (!allowDecimalApprox) {
54
+ if (isNumberNode(parsed)) {
55
+ //si l'answer n'est pas décimable et que c'est un nbNode on renvoit faux dans tous les cas
56
+ const answerFraced = isFractionNode(parsedAnswer)
57
+ ? parsedAnswer
58
+ : isOppositeNode(parsedAnswer) && isFractionNode(parsedAnswer.child)
59
+ ? parsedAnswer.child
60
+ : isNumberNode(parsedAnswer)
61
+ ? parsedAnswer.toFrac()
62
+ : null;
63
+ if (!!answerFraced &&
64
+ !isNumberNode(answerFraced) &&
65
+ !answerFraced.isDecimal())
66
+ return false;
67
+ }
68
+ }
35
69
  return Math.abs(parsed.evaluate() - parsedAnswer.evaluate()) < 0.0000001;
36
70
  }
37
71
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"treeTableVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/treeTableVEA.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EAAE,EAAE,EAAE,EAAE,EACnB,aAAa,MAAM,EAAE,EAAE,EAAE,EAAE,YAgB5B,CAAC"}
1
+ {"version":3,"file":"treeTableVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/treeTableVEA.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EAAE,EAAE,EAAE,EAAE,EACnB,aAAa,MAAM,EAAE,EAAE,EAAE,EAAE,YAiB5B,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { percentVEA } from "./percentVEA.js";
1
2
  import { rationalVEA } from "./rationalVEA.js";
2
3
  // type Options = {
3
4
  // }
@@ -6,5 +7,6 @@ export const treeTableVEA = (ans, answerTable) => {
6
7
  //les branches peuvent commuter au sein d'un block
7
8
  //les blocks peuvent commuter au sein d'un step
8
9
  return ans.every((step, i) => step.every((block, j) => block.every((branch, k) => branch.every((value, l) => value === answerTable[i][j][k][l] ||
10
+ percentVEA(value, answerTable[i][j][k][l]) ||
9
11
  rationalVEA(value, answerTable[i][j][k][l])))));
10
12
  };
package/lib/index.d.ts CHANGED
@@ -119,7 +119,9 @@ declare const mathExercises: (Exercise<{
119
119
  denom: number;
120
120
  num1: number;
121
121
  num2: number;
122
- }, Record<string, string | boolean | string[]>> | Exercise<{
122
+ }, {
123
+ allowNonIrreductible?: boolean;
124
+ }> | Exercise<{
123
125
  num1: number;
124
126
  num2: number;
125
127
  denom1: number;
@@ -681,11 +683,6 @@ declare const mathExercises: (Exercise<{
681
683
  d: number;
682
684
  k: number;
683
685
  isSubstract: boolean;
684
- }, Record<string, string | boolean | string[]>> | Exercise<{
685
- a: number;
686
- k1: number;
687
- b: number;
688
- k2: number;
689
686
  }, Record<string, string | boolean | string[]>> | Exercise<{
690
687
  b: number;
691
688
  c: number;
@@ -5943,10 +5940,8 @@ declare const mathExercises: (Exercise<{
5943
5940
  graphIds2: import("./math/graphs/graph.js").GraphIdentifiers;
5944
5941
  graphNodes1: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5945
5942
  graphEdges1: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5946
- scale1: number;
5947
5943
  graphNodes2: import("./math/utils/graphs/graphRenderer.js").GraphNode[];
5948
5944
  graphEdges2: import("./math/utils/graphs/graphRenderer.js").GraphEdge[];
5949
- scale2: number;
5950
5945
  }, {
5951
5946
  graphType: string;
5952
5947
  }> | Exercise<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
@@ -26,7 +26,7 @@ export declare class Graph {
26
26
  densifyUpTo(minDensity: number): Graph;
27
27
  undirectedGraph(): Graph;
28
28
  isWeaklyConnected(): boolean;
29
- getWeaklyConnectedSubgraphChainsAsArrIndex(): number[][];
29
+ getWeaklyConnectedSubgraphCoveringChainsAsArrIndex(): number[][];
30
30
  getSomePathsWithNbEdges(nbEdges: number, nbToFindIfPossible: number): number[][];
31
31
  /**
32
32
  *
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../src/math/graphs/graph.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,MAAM,EAEN,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,8BAAsB,gBAAgB;IACpC,MAAM,CAAC,eAAe,CACpB,UAAU,EAAE,MAAM,EAClB,QAAQ,GAAE,OAAc,EAAE,yBAAyB;IACnD,UAAU,GAAE,OAAe,EAC3B,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