math-exercises 2.2.14 → 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 (54) hide show
  1. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +9 -3
  3. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +12 -8
  5. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +6 -2
  7. package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +10 -4
  9. package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  10. package/lib/exercises/math/calcul/fractions/fractionsProduct.js +6 -2
  11. package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +4 -2
  13. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -1
  14. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +4 -2
  15. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  16. package/lib/exercises/math/calcul/rounding/rounding.js +7 -3
  17. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
  18. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +11 -5
  19. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  20. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +14 -2
  21. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  22. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +14 -2
  23. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  24. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +14 -2
  25. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +1 -1
  26. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
  27. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  28. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +12 -2
  29. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  30. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +12 -2
  31. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  32. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +12 -2
  33. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -1
  34. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +12 -2
  35. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +12 -4
  37. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
  38. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +14 -2
  39. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  40. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +5 -1
  41. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
  42. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +5 -3
  43. package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
  44. package/lib/exercises/math/percent/applyPercent.js +10 -2
  45. package/lib/exercises/math/percent/averageEvolutionRate.d.ts.map +1 -1
  46. package/lib/exercises/math/percent/averageEvolutionRate.js +9 -4
  47. package/lib/exercises/math/percent/cmToEvolution.d.ts.map +1 -1
  48. package/lib/exercises/math/percent/cmToEvolution.js +3 -1
  49. package/lib/exercises/math/percent/globalPercent.d.ts.map +1 -1
  50. package/lib/exercises/math/percent/globalPercent.js +5 -3
  51. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -1
  52. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +3 -1
  53. package/lib/utils/alignTex.js +2 -2
  54. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"commonDivisorsList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/commonDivisorsList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA2EF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
1
+ {"version":3,"file":"commonDivisorsList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/commonDivisorsList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiFF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
@@ -26,15 +26,21 @@ const getCommonDivisorsListQuestion = () => {
26
26
  hint: `Détermine la liste des diviseurs de chaque nombre, puis identifie ceux qu'ils ont en commun.`,
27
27
  correction: `Les diviseurs de $${a}$ sont :
28
28
 
29
- $${divisorsA.join(";")}$
29
+ $$
30
+ ${divisorsA.join(";")}
31
+ $$
30
32
 
31
33
  Les diviseurs de $${b}$ sont :
32
34
 
33
- $${divisorsB.join(";")}$
35
+ $$
36
+ ${divisorsB.join(";")}
37
+ $$
34
38
 
35
39
  Les diviseurs communs à $${a}$ et $${b}$ sont donc :
36
40
 
37
- $${answer}$
41
+ $$
42
+ ${answer}
43
+ $$
38
44
  `,
39
45
  identifiers: { a, b },
40
46
  };
@@ -1 +1 @@
1
- {"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AA0FlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAwCF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAe5D,CAAC"}
1
+ {"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAgGlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAwCF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAe5D,CAAC"}
@@ -34,26 +34,30 @@ const getFractionAndIntegerDivision = () => {
34
34
  correction: `
35
35
  On écrit $${integer.value}$ sous forme de fraction :
36
36
 
37
- $${integer.value} = \\frac{${integer.value}}{1}$
37
+ $$
38
+ ${integer.value} = \\frac{${integer.value}}{1}
39
+ $$
38
40
 
39
41
  On multiplie la première fraction par l'inverse de la seconde :
40
42
 
43
+ $$
41
44
  ${integerFirst
42
- ? `$\\frac{${integer.value}}{1}\\div ${rational
43
- .toTree()
44
- .toTex()} = \\frac{${integer.value}}{1} \\times ${rational
45
+ ? `\\frac{${integer.value}}{1}\\div ${rational.toTree().toTex()} = \\frac{${integer.value}}{1} \\times ${rational
45
46
  .reverse(false)
46
47
  .toTree()
47
48
  .toTex()} = \\frac{${new multiplyNode_1.MultiplyNode(integer.toTree(), rational.denum.toTree()).toTex({ forceNoSimplification: true })}}{${new multiplyNode_1.MultiplyNode((1).toTree(), rational.num.toTree()).toTex({ forceNoSimplification: true })}}
48
- = ${beforeSimplification.toTree().toTex()}$`
49
- : `$${rational.toTree().toTex()}\\div \\frac{${integer.value}}{1} = ${rational.toTree().toTex()}\\times \\frac{1}{${integer.value}} = \\frac{${rational.num}\\times 1}{${new multiplyNode_1.MultiplyNode(rational.denum.toTree(), integer.toTree()).toTex({ forceNoSimplification: true })}} = ${beforeSimplification
49
+ = ${beforeSimplification.toTree().toTex()}`
50
+ : `${rational.toTree().toTex()}\\div \\frac{${integer.value}}{1} = ${rational.toTree().toTex()}\\times \\frac{1}{${integer.value}} = \\frac{${rational.num}\\times 1}{${new multiplyNode_1.MultiplyNode(rational.denum.toTree(), integer.toTree()).toTex({ forceNoSimplification: true })}} = ${beforeSimplification
50
51
  .toTree()
51
- .toTex()}$`}
52
+ .toTex()}`}
53
+ $$
52
54
 
53
55
  ${!beforeSimplification.isIrreductible()
54
56
  ? `On peut alors simplifier cette fraction :
55
57
 
56
- $${beforeSimplification.toTree().toTex()} = ${answerTex}$
58
+ $$
59
+ ${beforeSimplification.toTree().toTex()} = ${answerTex}
60
+ $$
57
61
  `
58
62
  : "Cette fraction est déjà irréductible."}
59
63
 
@@ -1 +1 @@
1
- {"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA2DlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAqCF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
1
+ {"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA+DlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAqCF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
@@ -26,12 +26,16 @@ const getFractionAndIntegerProduct = () => {
26
26
  correction: `
27
27
  On multiplie le numérateur de la fraction par le nombre entier :
28
28
 
29
- $${statementTree.toTex()} = \\frac{${new multiplyNode_1.MultiplyNode(rational.num.toTree(), integer.toTree()).toTex({ forceNoSimplification: true })}}{${rational.denum}} = ${beforeSimplification.toTree().toTex()}$
29
+ $$
30
+ ${statementTree.toTex()} = \\frac{${new multiplyNode_1.MultiplyNode(rational.num.toTree(), integer.toTree()).toTex({ forceNoSimplification: true })}}{${rational.denum}} = ${beforeSimplification.toTree().toTex()}
31
+ $$
30
32
 
31
33
  ${!beforeSimplification.isIrreductible()
32
34
  ? `On peut alors simplifier cette fraction :
33
35
 
34
- $${beforeSimplification.toTree().toTex()} = ${answer}$
36
+ $$
37
+ ${beforeSimplification.toTree().toTex()} = ${answer}
38
+ $$
35
39
  `
36
40
  : "Cette fraction est déjà irréductible."}
37
41
 
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA0DlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAwCF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
1
+ {"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAgElC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAwCF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
@@ -23,19 +23,25 @@ const getFractionsDivision = () => {
23
23
  hint: "Pour diviser par une fraction, il faut multiplier la première fraction par l'inverse de la deuxième. Simplifie ensuite la fraction obtenue si nécessaire.",
24
24
  correction: `On multiplie la première fraction par l'inverse de la deuxième :
25
25
 
26
- $$${statementTree.toTex()} = ${rational.toTree().toTex()}\\times ${rational2
26
+ $$
27
+ ${statementTree.toTex()} = ${rational.toTree().toTex()}\\times ${rational2
27
28
  .reverse(false)
28
29
  .toTree()
29
- .toTex()}$$
30
+ .toTex()}
31
+ $$
30
32
 
31
33
  Multiplions les fractions :
32
34
 
33
- $$\\frac{${rational.num}\\times${rational2.denum}}{${rational.denum}\\times${rational2.num}} = ${beforeSimplification.toTree().toTex()}$$
35
+ $$
36
+ \\frac{${rational.num}\\times${rational2.denum}}{${rational.denum}\\times${rational2.num}} = ${beforeSimplification.toTree().toTex()}
37
+ $$
34
38
 
35
39
  ${isSimplifiable
36
40
  ? `On peut alors simplifier cette fraction :
37
41
 
38
- $${beforeSimplification.toTree().toTex()} = ${answer}$`
42
+ $$
43
+ ${beforeSimplification.toTree().toTex()} = ${answer}
44
+ $$`
39
45
  : "Cette fraction est déjà sous forme irréductible."}
40
46
 
41
47
  Ainsi, le résultat attendu est $${answer}$.
@@ -1 +1 @@
1
- {"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AA0EF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAclD,CAAC"}
1
+ {"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AA8EF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAclD,CAAC"}
@@ -26,12 +26,16 @@ const getFractionsProduct = () => {
26
26
  hint: "Pour multiplier deux fractions, on multiplie les numérateurs entre eux et les dénominateurs entre eux, puis on simplifie la fraction obtenue si nécessaire.",
27
27
  correction: `On multiplie les numérateurs entre eux et les dénominateurs entre eux :
28
28
 
29
- $$\\frac{${rational.num}\\times${rational2.num}}{${rational.denum}\\times${rational2.denum}} = ${beforeSimplification.toTree().toTex()}$$
29
+ $$
30
+ \\frac{${rational.num}\\times${rational2.num}}{${rational.denum}\\times${rational2.denum}} = ${beforeSimplification.toTree().toTex()}
31
+ $$
30
32
 
31
33
  ${!beforeSimplification.isIrreductible()
32
34
  ? `On peut alors simplifier cette fraction :
33
35
 
34
- $${beforeSimplification.toTree().toTex()} = ${answer}$`
36
+ $$
37
+ ${beforeSimplification.toTree().toTex()} = ${answer}
38
+ $$`
35
39
  : "Cette fraction est déjà sous forme irréductible."}
36
40
 
37
41
  Ainsi, le résultat attendu est $${answer}$.
@@ -1 +1 @@
1
- {"version":3,"file":"scaleCalculation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleCalculation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAmFF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
1
+ {"version":3,"file":"scaleCalculation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleCalculation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAqFF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
@@ -37,9 +37,11 @@ const getScaleCalculationQuestion = () => {
37
37
  hint: `Convertis les longueurs en $${cm.toTex()}$, puis fais un calcul de propotionnalité.`,
38
38
  correction: `On convertit d'abord les longueurs en cm :
39
39
 
40
- $${realDistance.toTex({ notScientific: true })} = ${realDistance
40
+ $$
41
+ ${realDistance.toTex({ notScientific: true })} = ${realDistance
41
42
  .convert("cm")
42
- .toTex({ notScientific: true })}$
43
+ .toTex({ notScientific: true })}
44
+ $$
43
45
 
44
46
  Puis, on fait un calcul de proportionnalité : puisque $${fakeDistance.toTex({
45
47
  notScientific: true,
@@ -1 +1 @@
1
- {"version":3,"file":"scaleUsage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAiGF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAc5C,CAAC"}
1
+ {"version":3,"file":"scaleUsage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAmGF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAc5C,CAAC"}
@@ -39,9 +39,11 @@ const getScaleUsageQuestion = () => {
39
39
  On convertit d'abord la distance réelle en $${cm.toTex()}$ :
40
40
 
41
41
 
42
- $${realDistance.toTex({ notScientific: true })} = ${realDistance
42
+ $$
43
+ ${realDistance.toTex({ notScientific: true })} = ${realDistance
43
44
  .convert("cm")
44
- .toTex({ notScientific: true })}$
45
+ .toTex({ notScientific: true })}
46
+ $$
45
47
 
46
48
  Ainsi, $${realDistance.toTex({
47
49
  notScientific: true,
@@ -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":"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
  `,
@@ -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)([
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.alignTex = void 0;
4
4
  function alignTex(arr) {
5
5
  let alignements = "r";
6
- if (typeof arr !== "string") {
7
- for (let i = 0; i < arr.length - 2; i++) {
6
+ if (typeof arr !== "string" && arr[0].length > 2) {
7
+ for (let i = 0; i < arr[0].length - 2; i++) {
8
8
  alignements += "c";
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.2.14",
3
+ "version": "2.2.15",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [