math-exercises 2.2.13 → 2.2.15

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 (70) hide show
  1. package/lib/exercises/exercise.d.ts +2 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +9 -3
  5. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +12 -8
  7. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +6 -2
  9. package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  10. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +10 -4
  11. package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/fractions/fractionsProduct.js +6 -2
  13. package/lib/exercises/math/calcul/ordering/framing.d.ts +9 -0
  14. package/lib/exercises/math/calcul/ordering/framing.d.ts.map +1 -1
  15. package/lib/exercises/math/calcul/ordering/framing.js +142 -192
  16. package/lib/exercises/math/calcul/ordering/index.d.ts +1 -0
  17. package/lib/exercises/math/calcul/ordering/index.d.ts.map +1 -1
  18. package/lib/exercises/math/calcul/ordering/index.js +1 -1
  19. package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts.map +1 -1
  20. package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +4 -2
  21. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -1
  22. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +4 -2
  23. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  24. package/lib/exercises/math/calcul/rounding/rounding.js +7 -3
  25. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
  26. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +11 -5
  27. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  28. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +14 -2
  29. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  30. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +14 -2
  31. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  32. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +14 -2
  33. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +1 -1
  34. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
  35. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +12 -2
  37. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  38. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +12 -2
  39. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  40. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +12 -2
  41. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -1
  42. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +12 -2
  43. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -1
  44. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +12 -4
  45. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
  46. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +14 -2
  47. package/lib/exercises/math/functions/basics/imageFunction.d.ts.map +1 -1
  48. package/lib/exercises/math/functions/basics/imageFunction.js +4 -3
  49. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  50. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +5 -1
  51. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
  52. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +5 -3
  53. package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
  54. package/lib/exercises/math/percent/applyPercent.js +10 -2
  55. package/lib/exercises/math/percent/averageEvolutionRate.d.ts.map +1 -1
  56. package/lib/exercises/math/percent/averageEvolutionRate.js +9 -4
  57. package/lib/exercises/math/percent/cmToEvolution.d.ts.map +1 -1
  58. package/lib/exercises/math/percent/cmToEvolution.js +3 -1
  59. package/lib/exercises/math/percent/globalPercent.d.ts.map +1 -1
  60. package/lib/exercises/math/percent/globalPercent.js +5 -3
  61. package/lib/exercises/math/percent/htToTTC.js +1 -1
  62. package/lib/exercises/math/percent/ttcToHT.js +1 -1
  63. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -1
  64. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +3 -1
  65. package/lib/index.d.ts +5 -0
  66. package/lib/index.d.ts.map +1 -1
  67. package/lib/types/keyProps.d.ts +1 -2
  68. package/lib/types/keyProps.d.ts.map +1 -1
  69. package/lib/utils/alignTex.js +2 -2
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAuElC,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgDF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAe7C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAkB9C,CAAC"}
1
+ {"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA2ElC,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgDF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAe7C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAkB9C,CAAC"}
@@ -40,12 +40,16 @@ const getRoundQuestions = (opts) => {
40
40
  correction: `Le chiffre des ${ranks[precisionAsked + 1]}s est $${figureToLookAt}$.
41
41
 
42
42
  ${figureToLookAt < 5
43
- ? `Puisque ${figureToLookAt} est inférieur à 5, on arrondit ${ranksWithAu[precisionAsked]} inférieur.
43
+ ? `Puisque ${figureToLookAt} est inférieur à $5, on arrondit ${ranksWithAu[precisionAsked]} inférieur.
44
44
 
45
45
  Ainsi, en arrondissant ${ranksWithAu[precisionAsked]}, on a $${decTex} \\approx ${answer}$`
46
- : `Puisque ${figureToLookAt} est supérieur à 5, on arrondit ${ranksWithAu[precisionAsked]} supérieur.
46
+ : `Puisque ${figureToLookAt} est supérieur à $5$, on arrondit ${ranksWithAu[precisionAsked]} supérieur.
47
47
 
48
- Ainsi, en arrondissant ${ranksWithAu[precisionAsked]}, on a $${decTex} \\approx ${answer}$`}`,
48
+ Ainsi, en arrondissant ${ranksWithAu[precisionAsked]}, on a
49
+
50
+ $$
51
+ ${decTex} \\approx ${answer}
52
+ $$`}`,
49
53
  };
50
54
  return question;
51
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"canonicalFormDevelopment.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAsDF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAe1D,CAAC"}
1
+ {"version":3,"file":"canonicalFormDevelopment.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA2DF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAe1D,CAAC"}
@@ -7,6 +7,7 @@ const affine_1 = require("../../../../math/polynomials/affine");
7
7
  const trinom_1 = require("../../../../math/polynomials/trinom");
8
8
  const addNode_1 = require("../../../../tree/nodes/operators/addNode");
9
9
  const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
10
+ const alignTex_1 = require("../../../../utils/alignTex");
10
11
  const getCanonicalFormDevelopmentQuestion = () => {
11
12
  const trinom = trinom_1.TrinomConstructor.randomCanonical();
12
13
  const answer = trinom.toTree().toTex();
@@ -21,12 +22,17 @@ const getCanonicalFormDevelopmentQuestion = () => {
21
22
  answerFormat: "tex",
22
23
  identifiers: { coeffs: trinom.coefficients },
23
24
  hint: "Développe d'abord le terme qui est au carré en te servant d'une identité remarquable.",
24
- correction: `
25
- $${cano.toTex()}$
25
+ correction: `On a :
26
+
27
+ ${(0, alignTex_1.alignTex)([
28
+ [
29
+ cano.toTex(),
30
+ "=",
31
+ new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(a.toTree(), new affine_1.Affine(1, -alpha).square().toTree()), beta.toTree()).toTex(),
32
+ ],
33
+ ["", "=", answer],
34
+ ])}
26
35
 
27
- $= ${new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(a.toTree(), new affine_1.Affine(1, -alpha).square().toTree()), beta.toTree()).toTex()}$
28
-
29
- $= ${answer}$
30
36
  `,
31
37
  };
32
38
  return question;
@@ -1 +1 @@
1
- {"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAqDnE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CAkClE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAKvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
1
+ {"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CA6DnE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CAkClE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAKvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
@@ -30,9 +30,21 @@ const getFirstIdentityQuestion = () => {
30
30
  keys: ["x"],
31
31
  answerFormat: "tex",
32
32
  identifiers: { a: affine.a, b: affine.b },
33
- hint: `Utilise l'identité remarquable $(a+b)^2 = a^2 + 2ab+b^2$ en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$`,
33
+ hint: `Utilise l'identité remarquable
34
+
35
+ $$
36
+ (a+b)^2 = a^2 + 2ab+b^2
37
+ $$
38
+
39
+ en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$`,
34
40
  correction: `
35
- On utilise l'identité remarquable $(a+b)^2 = a^2 + 2ab+b^2$ en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$ :
41
+ On utilise l'identité remarquable :
42
+
43
+ $$
44
+ (a+b)^2 = a^2 + 2ab+b^2
45
+ $$
46
+
47
+ en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$.
36
48
 
37
49
  ${(0, alignTex_1.alignTex)([
38
50
  [
@@ -1 +1 @@
1
- {"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,WAAW,CAiDpE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,YAAY,CAAC,WAAW,CAqCnE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,WAAW,CAQxD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC"}
1
+ {"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,WAAW,CA6DpE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,YAAY,CAAC,WAAW,CAqCnE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,WAAW,CAQxD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC"}
@@ -32,9 +32,21 @@ const getSecondIdentityQuestion = () => {
32
32
  keys: ["x"],
33
33
  answerFormat: "tex",
34
34
  identifiers: { a: affine.a, b: affine.b },
35
- hint: `Utilise l'identité remarquable $(a-b)^2 = a^2 - 2ab+b^2$ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$`,
35
+ hint: `Utilise l'identité remarquable
36
+
37
+ $$
38
+ (a-b)^2 = a^2 - 2ab+b^2
39
+ $$
40
+
41
+ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$`,
36
42
  correction: `
37
- On utilise l'identité remarquable $(a-b)^2 = a^2 - 2ab+b^2$ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
43
+ On utilise l'identité remarquable
44
+
45
+ $$
46
+ (a-b)^2 = a^2 - 2ab+b^2
47
+ $$
48
+
49
+ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
38
50
 
39
51
  ${(0, alignTex_1.alignTex)([
40
52
  [
@@ -1 +1 @@
1
- {"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAqCnE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CA2BlE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAUvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
1
+ {"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAiDnE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CA2BlE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAUvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
@@ -27,9 +27,21 @@ const getThirdIdentityQuestion = () => {
27
27
  affine1Coeffs: affine.coefficients,
28
28
  affine2Coeffs: affine2.coefficients,
29
29
  },
30
- hint: `Utilise l'identité remarquable $(a-b)(a+b) = a^2 - b^2$ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$`,
30
+ hint: `Utilise l'identité remarquable
31
+
32
+ $$
33
+ (a-b)(a+b) = a^2 - b^2
34
+ $$
35
+
36
+ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$`,
31
37
  correction: `
32
- On utilise l'identité remarquable $(a-b)(a+b) = a^2 - b^2$ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
38
+ On utilise l'identité remarquable
39
+
40
+ $$
41
+ (a-b)(a+b) = a^2 - b^2
42
+ $$
43
+
44
+ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$.
33
45
 
34
46
  ${(0, alignTex_1.alignTex)([
35
47
  [
@@ -62,7 +62,7 @@ const getEquationSimpleSquare = () => {
62
62
 
63
63
  - n'admet pas de solution si $k<0$,
64
64
  - admet une solution si $k=0$, qui est $0$
65
- - admet deux solutions si $k>0$ : $-\\sqrt{k}$ et $\\sqrt{k}$
65
+ - admet deux solutions si $k>0$, qui sont $-\\sqrt{k}$ et $\\sqrt{k}$
66
66
  `,
67
67
  correction: `
68
68
  ${randNbr < 0
@@ -37,7 +37,7 @@ const getMultiplicationEquation = () => {
37
37
  hint: "Un produit est nul si et seulement si un des deux facteurs est nul. Donc, il faut trouver les valeurs de $x$ qui rendent un des deux facteurs nuls.",
38
38
  correction: `Un produit est nul si et seulement si un des deux facteurs est nul. On résout donc deux équations :
39
39
 
40
- ${(0, alignTex_1.alignTex)([
40
+ ${(0, alignTex_1.alignTex)([
41
41
  ["", `${statementTex} = 0`],
42
42
  [
43
43
  "\\iff",
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA8EF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
1
+ {"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAsFF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
@@ -28,9 +28,19 @@ const getFactoType1Question = () => {
28
28
  keys: ["x"],
29
29
  answerFormat: "tex",
30
30
  identifiers: { a: affine.a, b: affine.b },
31
- hint: `Essaie de réécrire cette expression sous la forme $a^2 + 2ab+b^2$`,
31
+ hint: `Essaie de réécrire cette expression sous la forme
32
+
33
+ $$
34
+ a^2 + 2ab+b^2
35
+ $$`,
32
36
  correction: `
33
- On utilise l'identité remarquable $ a^2 + 2ab+b^2 = (a+b)^2$ en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$ :
37
+ On utilise l'identité remarquable
38
+
39
+ $$
40
+ a^2 + 2ab+b^2 = (a+b)^2
41
+ $$
42
+
43
+ en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$ :
34
44
 
35
45
  ${(0, alignTex_1.alignTex)([
36
46
  [
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA+EF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
1
+ {"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAyFF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
@@ -29,9 +29,19 @@ const getFactoType1Question = () => {
29
29
  keys: ["x"],
30
30
  answerFormat: "tex",
31
31
  identifiers: { a: affine.a, b: affine.b },
32
- hint: `Essaie de réécrire cette expression sous la forme $a^2 - 2ab+b^2$`,
32
+ hint: `Essaie de réécrire cette expression sous la forme
33
+
34
+ $$
35
+ a^2 - 2ab+b^2
36
+ $$`,
33
37
  correction: `
34
- On utilise l'identité remarquable $ a^2 - 2ab+b^2 = (a-b)^2$ en prenant $a=${aMonom.toTex()}$ et $b=${-affine.b}$ :
38
+ On utilise l'identité remarquable
39
+
40
+ $$
41
+ a^2 - 2ab+b^2 = (a-b)^2
42
+ $$
43
+
44
+ en prenant $a=${aMonom.toTex()}$ et $b=${-affine.b}$ :
35
45
 
36
46
  ${(0, alignTex_1.alignTex)([
37
47
  [
@@ -1 +1 @@
1
- {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAmGF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
1
+ {"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AA6GF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
@@ -31,9 +31,19 @@ const getFactoType1Question = () => {
31
31
  affine1Coeffs: affine.coefficients,
32
32
  affine2Coeffs: affine2.coefficients,
33
33
  },
34
- hint: `Utilise l'identité remarquable $a^2 - b^2 = (a-b)(a+b)$`,
34
+ hint: `Utilise l'identité remarquable
35
+
36
+ $$
37
+ a^2 - b^2 = (a-b)(a+b)
38
+ $$`,
35
39
  correction: `
36
- On utilise l'identité remarquable $ a^2 - b^2=(a-b)(a+b)$ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
40
+ On utilise l'identité remarquable
41
+
42
+ $$
43
+ a^2 - b^2=(a-b)(a+b)
44
+ $$
45
+
46
+ en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
37
47
 
38
48
  ${(0, alignTex_1.alignTex)([
39
49
  [
@@ -1 +1 @@
1
- {"version":3,"file":"factorizeCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuFF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
1
+ {"version":3,"file":"factorizeCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiGF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
@@ -24,9 +24,19 @@ const getFactorizeCanonicalFormQuestion = () => {
24
24
  keys: ["x"],
25
25
  answerFormat: "tex",
26
26
  identifiers: { a: affine.b, b },
27
- hint: `Utilise l'identité remarquable $a^2 - b^2 = (a-b)(a+b)$`,
27
+ hint: `Utilise l'identité remarquable
28
+
29
+ $$
30
+ a^2 - b^2 = (a-b)(a+b)
31
+ $$`,
28
32
  correction: `
29
- On utilise l'identité remarquable $ a^2 - b^2=(a-b)(a+b)$ en prenant $a=${affine.toTex()}$ et $b=${bPositive}$ :
33
+ On utilise l'identité remarquable
34
+
35
+ $$
36
+ a^2 - b^2=(a-b)(a+b)
37
+ $$
38
+
39
+ en prenant $a=${affine.toTex()}$ et $b=${bPositive}$ :
30
40
 
31
41
  ${(0, alignTex_1.alignTex)([
32
42
  [
@@ -1 +1 @@
1
- {"version":3,"file":"factorizeCanonicalFormWithSqrt.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AA2FF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAehE,CAAC"}
1
+ {"version":3,"file":"factorizeCanonicalFormWithSqrt.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAmGF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAehE,CAAC"}
@@ -26,11 +26,19 @@ const getFactorizeCanonicalFormWithSqrtQuestion = () => {
26
26
  keys: ["x"],
27
27
  answerFormat: "tex",
28
28
  identifiers: { a: affine.b, bOperand: b.operand },
29
- hint: `Utilise l'identité remarquable $a^2 - b^2 = (a-b)(a+b)$`,
29
+ hint: `Utilise l'identité remarquable
30
+
31
+ $$
32
+ a^2 - b^2 = (a-b)(a+b)
33
+ $$`,
30
34
  correction: `
31
- On utilise l'identité remarquable $ a^2 - b^2=(a-b)(a+b)$ en prenant $a=${affine.toTex()}$ et $b=${b
32
- .toTree()
33
- .toTex()}$ :
35
+ On utilise l'identité remarquable
36
+
37
+ $$
38
+ a^2 - b^2=(a-b)(a+b)
39
+ $$
40
+
41
+ en prenant $a=${affine.toTex()}$ et $b=${b.toTree().toTex()}$ :
34
42
 
35
43
 
36
44
  ${(0, alignTex_1.alignTex)([
@@ -1 +1 @@
1
- {"version":3,"file":"affineExpressionFromTwoImages.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionFromTwoImages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAWlC,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;AA6EF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAe/D,CAAC"}
1
+ {"version":3,"file":"affineExpressionFromTwoImages.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionFromTwoImages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAWlC,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;AAsFF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAe/D,CAAC"}
@@ -30,11 +30,23 @@ Quelle est l'expression algébrique de $f$ ?`,
30
30
  hint: "Calcule d'abord le taux d'accroissement de $f$ en utilisant la formule $a = \\frac{y_2-y_1}{x_2-x_1}$. Ensuite, utilise les coordonnées d'un des deux points pour déterminer l'ordonnée à l'origine.",
31
31
  correction: `On calcule d'abord le taux d'accroissement $a$ :
32
32
 
33
- $a = \\frac{y_2-y_1}{x_2-x_1} = \\frac{${yB}-${yA}}{${xB}-${xA}} = ${a.toTex()}$
33
+ $$
34
+ a = \\frac{y_2-y_1}{x_2-x_1} = \\frac{${yB}-${yA}}{${xB}-${xA}} = ${a.toTex()}
35
+ $$
34
36
 
35
37
  Il faut ensuite trouver l'ordonnée à l'origine $b$. On sait que $f(${xA}) = ${yA}$. Or pour tout $x$ réel, on a $f(x) = ax+b$.
36
38
 
37
- Donc $${yA} = ${new multiplyNode_1.MultiplyNode(a, xA.toTree()).toTex()}+b$. On a donc $b = ${new substractNode_1.SubstractNode(yA.toTree(), new multiplyNode_1.MultiplyNode(a, xA.toTree())).toTex()} = ${b.toTex()}$.
39
+ Donc
40
+
41
+ $$
42
+ ${yA} = ${new multiplyNode_1.MultiplyNode(a, xA.toTree()).toTex()}+b
43
+ $$
44
+
45
+ On a donc
46
+
47
+ $$
48
+ b = ${new substractNode_1.SubstractNode(yA.toTree(), new multiplyNode_1.MultiplyNode(a, xA.toTree())).toTex()} = ${b.toTex()}
49
+ $$
38
50
 
39
51
  Ainsi, $f(x) = ${answer}$.
40
52
  `,
@@ -1 +1 @@
1
- {"version":3,"file":"imageFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAmDF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
1
+ {"version":3,"file":"imageFunction.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAsDF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
@@ -16,9 +16,10 @@ const getImageFunction = () => {
16
16
  (0, randint_1.randint)(-4, 5, [0]),
17
17
  ]);
18
18
  const xValue = (0, randint_1.randint)(-9, 10);
19
- const statement = rand
20
- ? `Soit $f(x) = ${polynome1.toTree().toTex()}$. Calculer $f(${xValue})$.`
21
- : `Soit $f(x) = ${polynome2.toTree().toTex()}$. Calculer $f(${xValue})$.`;
19
+ const flip = (0, coinFlip_1.coinFlip)();
20
+ const statement = `Soit $f(x) = ${(rand ? polynome1 : polynome2)
21
+ .toTree()
22
+ .toTex()}. Calculer ${flip ? `l'image de $${xValue}$ par $f$.` : `$f(${xValue})$.`}`;
22
23
  const answer = rand
23
24
  ? polynome1.calculate(xValue) + ""
24
25
  : polynome2.calculate(xValue) + "";
@@ -1 +1 @@
1
- {"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAgDF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
1
+ {"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAoDF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
@@ -24,7 +24,11 @@ const getScalarProductViaCoordsQuestion = () => {
24
24
  vCoords: [v.x.toTex(), v.y.toTex()],
25
25
  },
26
26
  hint: "Le produit scalaire de deux vecteurs se calcule en multipliant les coordonnées correspondantes et en additionnant les résultats.",
27
- correction: `Le produit scalaire de $${u.toTex()}$ et $${v.toTex()}$ est calculé comme suit : $(${u.x.toTex()} \\times ${v.x.toTex()}) + (${u.y.toTex()} \\times ${v.y.toTex()}) = ${answer}$.`,
27
+ correction: `Le produit scalaire de $${u.toTex()}$ et $${v.toTex()}$ est calculé comme suit :
28
+
29
+ $$
30
+ (${u.x.toTex()} \\times ${v.x.toTex()}) + (${u.y.toTex()} \\times ${v.y.toTex()}) = ${answer}
31
+ $$`,
28
32
  };
29
33
  return question;
30
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"vectorCoordinatesFromTwoPoints.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;CACb,CAAC;AA0EF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAehE,CAAC"}
1
+ {"version":3,"file":"vectorCoordinatesFromTwoPoints.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;CACb,CAAC;AA4EF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAehE,CAAC"}
@@ -23,10 +23,12 @@ const getVectorCoordinatesFromTwoPointsQuestion = () => {
23
23
  answerFormat: "tex",
24
24
  hint: `Si $A(x_A;y_A)$ et $B(x_B;y_B)$ sont deux points, alors le vecteur $\\overrightarrow{AB}$ a pour coordonnées :
25
25
 
26
- $\\overrightarrow{AB} \\begin{pmatrix} x_B - x_A \\\\ y_B - y_A \\end{pmatrix}$`,
26
+ $$
27
+ \\overrightarrow{AB} \\begin{pmatrix} x_B - x_A \\\\ y_B - y_A \\end{pmatrix}
28
+ $$`,
27
29
  correction: `On a :
28
30
 
29
- $${(0, alignTex_1.alignTex)([
31
+ ${(0, alignTex_1.alignTex)([
30
32
  [
31
33
  `\\overrightarrow{${startLetter}${endLetter}} \\begin{pmatrix}
32
34
  ${new substractNode_1.SubstractNode(B[0].toTree(), A[0].toTree()).toTex()}
@@ -34,7 +36,7 @@ $${(0, alignTex_1.alignTex)([
34
36
  "=",
35
37
  `\\begin{pmatrix}${B[0] - A[0]} \\\\ ${B[1] - A[1]}\\end{pmatrix}`,
36
38
  ],
37
- ])}$`,
39
+ ])}`,
38
40
  identifiers: { A, B },
39
41
  };
40
42
  return question;
@@ -1 +1 @@
1
- {"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/applyPercent.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAGxB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AA6EF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAwB9C,CAAC"}
1
+ {"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/applyPercent.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAGxB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAqFF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAwB9C,CAAC"}
@@ -40,12 +40,20 @@ const getApplyPercentQuestion = () => {
40
40
  correction: isUp
41
41
  ? `Augmenter un nombre de $${randPercent}\\%$ revient à le multiplier par $1 + \\frac{${randPercent}}{100}$, c'est à dire par $${(0, round_1.round)(cm, 2).frenchify()}$.
42
42
 
43
- On a donc $${randNbr}\\times ${(0, round_1.round)(cm, 2).frenchify()} = ${answer}$.
43
+ On a donc
44
+
45
+ $$
46
+ ${randNbr}\\times ${(0, round_1.round)(cm, 2).frenchify()} = ${answer}
47
+ $$
44
48
 
45
49
  `
46
50
  : `Baisser un nombre de $${randPercent}\\%$ revient à le multiplier par $1 - \\frac{${randPercent}}{100}$, c'est à dire par $${(0, round_1.round)(cm, 2).frenchify()}$.
47
51
 
48
- On a donc $${randNbr}\\times ${(0, round_1.round)(cm, 2).frenchify()} = ${answer}$.
52
+ On a donc
53
+
54
+ $$
55
+ ${randNbr}\\times ${(0, round_1.round)(cm, 2).frenchify()} = ${answer}
56
+ $$
49
57
 
50
58
  `,
51
59
  identifiers: { isUp, randNbr, randPercent },
@@ -1 +1 @@
1
- {"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAGxB,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAqEF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
1
+ {"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAGxB,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AA0EF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
@@ -21,16 +21,21 @@ const getAverageEvolutionRate = () => {
21
21
  hint: `Commence par déterminer le coefficient multiplicateur assoicié à une hausse de $${rate}\\%$. Puis, élève ce coefficient à la puissance $\\frac{1}{${nbMois}}$. Enfin, transforme le coefficient multiplicateur obtenu en taux d'évolution.`,
22
22
  correction: `Le coefficient multiplicateur associé à une hausse de $${rate}\\%$ est :
23
23
 
24
- $1+\\frac{${rate}}{100} = ${(1 + rate / 100).frenchify()}$
24
+ $$
25
+ 1+\\frac{${rate}}{100} = ${(1 + rate / 100).frenchify()}
26
+ $$
25
27
 
26
28
  Le coefficient multiplicateur moyen pour chaque mois sur une période de $${nbMois}$ mois est donc de :
27
29
 
28
- $\\left(${(1 +
29
- rate / 100).frenchify()}\\right)^{\\frac{1}{${nbMois}}} = ${(0, round_1.round)(Math.pow(1 + rate / 100, 1 / nbMois), 4).frenchify()}$
30
+ $$\\left(${(1 +
31
+ rate / 100).frenchify()}\\right)^{\\frac{1}{${nbMois}}} = ${(0, round_1.round)(Math.pow(1 + rate / 100, 1 / nbMois), 4).frenchify()}
32
+ $$
30
33
 
31
34
  On transforme alors ce coefficient multiplicateur en taux d'évolution :
32
35
 
33
- $t = (${(0, round_1.round)(Math.pow(1 + rate / 100, 1 / nbMois), 4).frenchify()}-1)\\times 100 = ${answer.frenchify()}$
36
+ $$
37
+ t = (${(0, round_1.round)(Math.pow(1 + rate / 100, 1 / nbMois), 4).frenchify()}-1)\\times 100 = ${answer.frenchify()}
38
+ $$
34
39
 
35
40
  Le taux d'évoution mensuel moyen est donc de $${answerTex}$.`,
36
41
  };
@@ -1 +1 @@
1
- {"version":3,"file":"cmToEvolution.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/cmToEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AA8DF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
1
+ {"version":3,"file":"cmToEvolution.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/cmToEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
@@ -21,7 +21,9 @@ const getCmToEvolutionQuestion = () => {
21
21
  hint: "Pour trouver le taux d'évolution $t$ à partir du coefficient multiplicateur (CM) utilise la formule $t = \\left(\\text{CM}-1\\right)\\times 100$.",
22
22
  correction: `Le taux d'évolution $t$ s'obtient par la formule
23
23
 
24
- $$t = \\left(\\text{CM}-1\\right)\\times 100$$
24
+ $$
25
+ t = \\left(\\text{CM}-1\\right)\\times 100
26
+ $$
25
27
 
26
28
  Ici, on a donc :
27
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/globalPercent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAMxB,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAuFF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAe/C,CAAC"}
1
+ {"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/percent/globalPercent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AAMxB,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAyFF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAe/C,CAAC"}
@@ -37,13 +37,15 @@ const getGlobalPercentQuestion = () => {
37
37
  hint: "Transforme chaque taux d'évolution en coefficient multiplicateur, puis multiplie ces coefficients multiplicateurs entre eux pour obtenir le coefficient multiplicateur global. Transforme alors ce CM global en taux d'évolution.",
38
38
  correction: `On transforme les taux d'évolution en coefficients multiplicateurs puis on les multiplie entre eux :
39
39
 
40
- $${evolutions
40
+ $$${evolutions
41
41
  .map((e) => (0, round_1.round)(1 + Number(e) / 100, 2).frenchify())
42
- .join(" \\times ")} = ${(0, round_1.round)(evolutions.reduce((acc, curr) => acc * (0, round_1.round)(1 + Number(curr) / 100, 2), 1), 4).frenchify()}$
42
+ .join(" \\times ")} = ${(0, round_1.round)(evolutions.reduce((acc, curr) => acc * (0, round_1.round)(1 + Number(curr) / 100, 2), 1), 4).frenchify()}
43
+ $$
43
44
 
44
45
  Enfin, on transforme ce CM global en taux d'évolution :
45
46
 
46
- $(${(0, round_1.round)(evolutions.reduce((acc, curr) => acc * (0, round_1.round)(1 + Number(curr) / 100, 2), 1), 4).frenchify()} - 1)\\times 100 = ${answer.replace("\\%", "")}$
47
+ $$(${(0, round_1.round)(evolutions.reduce((acc, curr) => acc * (0, round_1.round)(1 + Number(curr) / 100, 2), 1), 4).frenchify()} - 1)\\times 100 = ${answer.replace("\\%", "")}
48
+ $$
47
49
 
48
50
  Le taux d'évolution global est donc de $${answer}$.
49
51
  `,
@@ -14,7 +14,7 @@ const getHtToTtcQuestion = () => {
14
14
  const answer = (0, round_1.round)(ht * (1 + TVA / 100), 2).frenchify();
15
15
  const question = {
16
16
  answer,
17
- instruction: `Un object coûte $${ht.frenchify()}€$ en HT. Quel est son prix TTC, sachant que la TVA est de $${TVA.frenchify()}\\%$ ? (arrondir au centième)`,
17
+ instruction: `Un objet coûte $${ht.frenchify()}€$ en HT. Quel est son prix TTC, sachant que la TVA est de $${TVA.frenchify()}\\%$ ? (arrondir au centième)`,
18
18
  keys: [],
19
19
  answerFormat: "tex",
20
20
  identifiers: { TVA, ht },
@@ -14,7 +14,7 @@ const getTtcToHtQuestion = () => {
14
14
  const answer = (0, round_1.round)(TTC / (1 + TVA / 100), 2).frenchify();
15
15
  const question = {
16
16
  answer,
17
- instruction: `Un object coûte $${TTC.frenchify()}€$ en TTC. Quel est son prix HT, sachant que la TVA est de $${TVA.frenchify()}\\%$ ? (arrondir au centième)`,
17
+ instruction: `Un objet coûte $${TTC.frenchify()}€$ en TTC. Quel est son prix HT, sachant que la TVA est de $${TVA.frenchify()}\\%$ ? (arrondir au centième)`,
18
18
  keys: [],
19
19
  answerFormat: "tex",
20
20
  identifiers: { TTC, TVA },
@@ -1 +1 @@
1
- {"version":3,"file":"spaceVectorCoordinatesFromPoints.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG,EAAE,CAAC;AAmEtB,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAgBlE,CAAC"}
1
+ {"version":3,"file":"spaceVectorCoordinatesFromPoints.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG,EAAE,CAAC;AAqEtB,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAgBlE,CAAC"}
@@ -26,7 +26,9 @@ const getSpaceVectorCoordinatesFromPointsQuestion = () => {
26
26
  },
27
27
  hint: `Soient deux points $M(x_M;y_M;z_M)$ et $N(x_N;y_N;z_N)$, alors le vecteur $\\overrightarrow{MN}$ a pour coordonnées :
28
28
 
29
- $\\overrightarrow{MN} \\begin{pmatrix} x_N - x_M \\\\ y_N - y_M \\\\ z_N - z_M \\end{pmatrix}$`,
29
+ $$
30
+ \\overrightarrow{MN} \\begin{pmatrix} x_N - x_M \\\\ y_N - y_M \\\\ z_N - z_M \\end{pmatrix}
31
+ $$`,
30
32
  correction: `Les coordonnées du vecteur $\\overrightarrow{AB}$ sont :
31
33
 
32
34
  ${(0, alignTex_1.alignTex)([
package/lib/index.d.ts CHANGED
@@ -187,6 +187,11 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
187
187
  type: number;
188
188
  a: number;
189
189
  b: number;
190
+ }> | import("./exercises/exercise").Exercise<{
191
+ type: number;
192
+ nbIds: any;
193
+ nbValue: number;
194
+ pow: number;
190
195
  }> | import("./exercises/exercise").Exercise<{
191
196
  dec: number;
192
197
  pow: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAI3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,aAAa,CAAC;QAC5B,SAAS,EAAE,MAAM,MAAM,CAAC;QACxB,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,aAAa,CAAC;KACpD;IACD,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,aAAa,CAAC;QAC5B,WAAW,EAAE,MAAM,MAAM,CAAC;KAC3B;CACF;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BE;AAEF,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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KeyProps = {
4
4
  label: string;
5
5
  labelType: "raw" | "tex" | "svg";
6
6
  mathfieldInstructions?: MathfieldInstructions;
7
- onClick?: () => void;
8
7
  };
9
8
  export interface MathfieldInstructions {
10
9
  method: "write" | "cmd" | "keystroke" | "typedText";
11
- content: string | ((currentLatex: string) => string);
10
+ content: string;
12
11
  }
13
12
  //# sourceMappingURL=keyProps.d.ts.map