math-exercises 2.2.38 → 2.2.39

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.
@@ -1 +1 @@
1
- {"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/thirdDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAIJ,MAAM,0BAA0B,CAAC;AAKlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAsBnE,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,YAAY,CAAC,WAAW,CAqC1E,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,GAAG,CAAC,WAAW,CAQ/D,CAAC;AACF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAqBvD,CAAC"}
1
+ {"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/thirdDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAIJ,MAAM,0BAA0B,CAAC;AAKlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAsBnE,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,YAAY,CAAC,WAAW,CAwC1E,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,GAAG,CAAC,WAAW,CAQ/D,CAAC;AACF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAqBvD,CAAC"}
@@ -47,7 +47,7 @@ const getThirdDegreeDerivativePropositions = (n, { answer, coefficients }) => {
47
47
  randomCoefficients.push((0, randint_1.randint)(-9, 10));
48
48
  randomCoefficients.push((0, randint_1.randint)(-9, 10, [0]));
49
49
  const randomPolynomial = new polynomial_1.Polynomial(randomCoefficients);
50
- (0, exercise_1.tryToAddWrongProp)(propositions, randomPolynomial.derivate().toString());
50
+ (0, exercise_1.tryToAddWrongProp)(propositions, randomPolynomial.derivate().toTree().toTex());
51
51
  }
52
52
  return (0, exercise_1.shuffleProps)(propositions, n);
53
53
  };
@@ -69,7 +69,7 @@ ${(0, alignTex_1.alignTex)([
69
69
  ],
70
70
  ])}
71
71
 
72
- En arrondissant à l'unité, on a donc $\\theta \\approx ${answer}°$.`,
72
+ En arrondissant à l'unité, on a donc $\\theta \\approx ${answer}^{\\circ}$.`,
73
73
  identifiers: { trigFunction: selectedFunction, trigValue, angleInDegrees },
74
74
  };
75
75
  return question;
@@ -56,7 +56,7 @@ const getPropositions = (n, { answer }) => {
56
56
  const propositions = [];
57
57
  (0, exercise_1.addValidProp)(propositions, answer);
58
58
  while (propositions.length < n) {
59
- (0, exercise_1.tryToAddWrongProp)(propositions, (0, randint_1.randint)(20, 80) + "°");
59
+ (0, exercise_1.tryToAddWrongProp)(propositions, (0, randint_1.randint)(20, 80) + "^{\\circ}");
60
60
  }
61
61
  return (0, shuffle_1.shuffle)(propositions);
62
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"chemicalEquations.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/chemicalEquations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAGL,eAAe,EAChB,MAAM,gDAAgD,CAAC;AAGxD,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;AAkCF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAanD,CAAC"}
1
+ {"version":3,"file":"chemicalEquations.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/chemicalEquations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAGL,eAAe,EAChB,MAAM,gDAAgD,CAAC;AAGxD,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;AAkCF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
@@ -43,4 +43,5 @@ exports.chemicalEquations = {
43
43
  freeTimer: 60,
44
44
  getPropositions,
45
45
  isAnswerValid,
46
+ pdfOptions: { shouldSpreadPropositions: true },
46
47
  };
@@ -16,61 +16,61 @@ const titrationReactions = [
16
16
  {
17
17
  titré: { name: "de l'acide chlorhydrique", symbol: "HCl" },
18
18
  titrant: { name: "de l'hydroxyde de sodium", symbol: "NaOH" },
19
- produit: "NaCl + H₂O",
19
+ produit: "NaCl + H_2O",
20
20
  coeff: [1, 1],
21
21
  },
22
22
  {
23
- titré: { name: "de l'acide acétique", symbol: "CH₃COOH" },
23
+ titré: { name: "de l'acide acétique", symbol: "CH_3COOH" },
24
24
  titrant: { name: "de l'hydroxyde de sodium", symbol: "NaOH" },
25
- produit: "CH₃COONa + H₂O",
25
+ produit: "CH_3COONa + H_2O",
26
26
  coeff: [1, 1],
27
27
  },
28
28
  {
29
- titré: { name: "de l'acide sulfurique", symbol: "H₂SO₄" },
29
+ titré: { name: "de l'acide sulfurique", symbol: "H_2SO_4" },
30
30
  titrant: { name: "de l'hydroxyde de sodium", symbol: "NaOH" },
31
- produit: "Na₂SO₄ + H₂O",
31
+ produit: "Na_2SO_4 + H_2O",
32
32
  coeff: [1, 2],
33
33
  },
34
34
  {
35
- titré: { name: "de l'acide nitrique", symbol: "HNO₃" },
35
+ titré: { name: "de l'acide nitrique", symbol: "HNO_3" },
36
36
  titrant: { name: "de l'hydroxyde de sodium", symbol: "NaOH" },
37
- produit: "NaNO₃ + H₂O",
37
+ produit: "NaNO_3 + H_2O",
38
38
  coeff: [1, 1],
39
39
  },
40
40
  {
41
- titré: { name: "de l'acide oxalique", symbol: "H₂C₂O₄" },
42
- titrant: { name: "du permanganate de potassium", symbol: "KMnO₄" },
43
- produit: "MnSO₄ + CO₂ + H₂O",
41
+ titré: { name: "de l'acide oxalique", symbol: "H_2C_2O_4" },
42
+ titrant: { name: "du permanganate de potassium", symbol: "KMnO_4" },
43
+ produit: "MnSO_4 + CO_2 + H_2O",
44
44
  coeff: [5, 2],
45
45
  },
46
46
  {
47
47
  titré: { name: "du chlorure de sodium", symbol: "NaCl" },
48
- titrant: { name: "du nitrate d'argent", symbol: "AgNO₃" },
49
- produit: "AgCl + NaNO₃",
48
+ titrant: { name: "du nitrate d'argent", symbol: "AgNO_3" },
49
+ produit: "AgCl + NaNO_3",
50
50
  coeff: [1, 1],
51
51
  },
52
52
  {
53
- titré: { name: "de l'acide ascorbique", symbol: "C₆H₈O₆" },
54
- titrant: { name: "de l'iode", symbol: "I₂" },
55
- produit: "C₆H₆O₆ + HI",
53
+ titré: { name: "de l'acide ascorbique", symbol: "C_6H_8O_6" },
54
+ titrant: { name: "de l'iode", symbol: "I_2" },
55
+ produit: "C_6H_6O_6 + HI",
56
56
  coeff: [1, 1],
57
57
  },
58
58
  {
59
- titré: { name: "de l'hydroxyde de calcium", symbol: "Ca(OH)" },
59
+ titré: { name: "de l'hydroxyde de calcium", symbol: "Ca(OH)_2" },
60
60
  titrant: { name: "de l'acide chlorhydrique", symbol: "HCl" },
61
- produit: "CaCl₂ + H₂O",
61
+ produit: "CaCl_2 + H_2O",
62
62
  coeff: [1, 2],
63
63
  },
64
64
  {
65
- titré: { name: "de l'acide phosphorique", symbol: "H₃PO₄" },
65
+ titré: { name: "de l'acide phosphorique", symbol: "H_3PO_4" },
66
66
  titrant: { name: "de l'hydroxyde de sodium", symbol: "NaOH" },
67
- produit: "Na₃PO₄ + H₂O",
67
+ produit: "Na_3PO_4 + H_2O",
68
68
  coeff: [1, 3],
69
69
  },
70
70
  {
71
- titré: { name: "de l'acide borique", symbol: "H₃BO₃" },
71
+ titré: { name: "de l'acide borique", symbol: "H_3BO_3" },
72
72
  titrant: { name: "de l'hydroxyde de sodium", symbol: "NaOH" },
73
- produit: "NaB(OH)",
73
+ produit: "NaB(OH)_4",
74
74
  coeff: [1, 1],
75
75
  },
76
76
  ];
@@ -120,7 +120,7 @@ const generateExo = () => {
120
120
  const cB = new measure_1.Measure((0, random_1.random)([0.05, 0.1, 0.2, 0.25, 0.5, 0.75, 1.0]), 0, new divideUnit_1.DivideUnit(AmountOfSubstance_1.AmountOfSubstance.mol, volumeUnit_1.VolumeUnit.mL));
121
121
  const vB = new measure_1.Measure(5 * (0, randint_1.randint)(1, 11), 0, volumeUnit_1.VolumeUnit.mL);
122
122
  const reactionString = `${reaction.coeff[0] !== 1 ? reaction.coeff[0] : ""}${reaction.titré.symbol} + ${reaction.coeff[1] !== 1 ? reaction.coeff[1] : ""}${reaction.titrant.symbol} \\Rightarrow ${reaction.produit}`;
123
- const hint = `Rappel : Au point d'équivalence, les quantités de matière ${reaction.titré.name} et ${reaction.titrant.name} sont égales , c'est-à-dire :
123
+ const hint = `Rappel : Au point d'équivalence, les quantités de matière $${reaction.titré.name}$ et $${reaction.titrant.name}$ sont égales , c'est-à-dire :
124
124
 
125
125
  - $${reaction.coeff[0]} \\times n(${reaction.titré.symbol}) = ${reaction.coeff[1]} \\times n(${reaction.titrant.symbol})$`;
126
126
  const instruction = `On réalise un titrage entre une solution ${reaction.titré.name}$(${reaction.titré.symbol})$ et une solution ${reaction.titrant.name}$(${reaction.titrant.symbol})$.
@@ -54,7 +54,7 @@ const generateExercise = () => {
54
54
  Les données du problème sont les suivantes :
55
55
 
56
56
  - La masse du bloc : $m = ${mass}\\ kg$
57
- - L'angle du plan incliné par rapport à l'horizontale : $\\alpha = 45°$
57
+ - L'angle du plan incliné par rapport à l'horizontale : $\\alpha = 45^{\\circ}$
58
58
 
59
59
  Calculer la force de ${isAsking} en $N$, arrondie au centième.`;
60
60
  const answer = getAnswer(isAsking, mass).frenchify();
@@ -80,7 +80,7 @@ const getCorrection = (isAsking, answer) => {
80
80
  ? `1 - Calculer la composante perpendicualire du poids : $P_{\\perp} = \\cos(45°) \\times m \\cdot g$
81
81
 
82
82
  2 - $R = P_{\\perp}\\ \\Rightarrow\\ R = ${answer}\\ N$`
83
- : `1 - Calculer la composante parallèle du poids : $P_{\\parallel} = \\sin(45°) \\times m \\cdot g$
83
+ : `1 - Calculer la composante parallèle du poids : $P_{\\parallel} = \\sin(45^{\\circ}) \\times m \\cdot g$
84
84
 
85
85
  2 - $f = -P_{\\parallel}\\ \\Rightarrow\\ f = ${answer}\\ N$`;
86
86
  };
@@ -17,7 +17,7 @@ const getForceWorkQuestion = () => {
17
17
  const rounded = (0, round_1.roundSignificant)(answer, 1);
18
18
  const question = {
19
19
  answer: rounded + "J",
20
- instruction: `Soit une force $\\overrightarrow F$ constante dont le point d'application se déplace d'une position $A$ à une position $B$ telle que $F = ${(0, round_1.roundSignificant)(forceValue, 1)}\\ \\text{N}$, $AB = ${(0, round_1.roundSignificant)(length, 1)}\\ \\text{m}$ et $\\widehat{\\left(\\overrightarrow F ; \\overrightarrow{AB}\\right)} = ${angle.degree}^°$. Calculer le travail de la force $\\overrightarrow F$ lors du déplacement de $A$ vers $B$.`,
20
+ instruction: `Soit une force $\\overrightarrow F$ constante dont le point d'application se déplace d'une position $A$ à une position $B$ telle que $F = ${(0, round_1.roundSignificant)(forceValue, 1)}\\ \\text{N}$, $AB = ${(0, round_1.roundSignificant)(length, 1)}\\ \\text{m}$ et $\\widehat{\\left(\\overrightarrow F ; \\overrightarrow{AB}\\right)} = ${angle.degree}^{\\circ}$. Calculer le travail de la force $\\overrightarrow F$ lors du déplacement de $A$ vers $B$.`,
21
21
  keys: ["J", "timesTenPower"],
22
22
  answerFormat: "tex",
23
23
  identifiers: { length, forceValue, angleDegree: angle.degree },
@@ -1 +1 @@
1
- {"version":3,"file":"gravitationalForcePlanets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/gravitationalForcePlanets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAOnD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAiJF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAgB3D,CAAC"}
1
+ {"version":3,"file":"gravitationalForcePlanets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/gravitationalForcePlanets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAOnD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAmJF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAgB3D,CAAC"}
@@ -35,10 +35,12 @@ Données:
35
35
  })}$`;
36
36
  const hint = `Utilisez la formule de la force gravitationnelle.`;
37
37
  const correction = `La force gravitationnelle est donnée par la formule vectorielle :
38
+
38
39
  $$\\vec{F}_{\\text{Soleil/${selectedPlanet.name}}} = -G \\cdot \\frac{m_{\\text{soleil}} \\cdot m_{${selectedPlanet.name.charAt(0)}}}{d^2} \\cdot \\vec{u}_{\\text{Soleil→${selectedPlanet.name}}}$$. \n
39
40
  La formule de la force gravitationnelle en valeur est :
40
41
  $$F_{\\text{Soleil/${selectedPlanet.name}}} = G \\cdot \\frac{m_{\\text{soleil}} \\cdot m_{${selectedPlanet.name.charAt(0)}}}{d^2}$$. \n
41
42
  En utilisant les valeurs fournies :
43
+
42
44
  $$F_{\\text{Soleil/${selectedPlanet.name}}} = ${G.toTex({
43
45
  scientific: 2,
44
46
  })} \\cdot \\frac{${selectedPlanet.mass.toTex({
@@ -23,7 +23,7 @@ const getPropositions = (n, { answer, quantity }) => {
23
23
  const propositions = [];
24
24
  (0, exercise_1.addValidProp)(propositions, answer);
25
25
  const w1 = atoms_1.avogadroConstant.value.divide(quantity).toSignificant(2);
26
- const w2 = `$${answer} mol$`;
26
+ const w2 = `${answer}\\ mol`;
27
27
  (0, exercise_1.tryToAddWrongProp)(propositions, w1.toTex());
28
28
  (0, exercise_1.tryToAddWrongProp)(propositions, w2);
29
29
  while (propositions.length < n) {
@@ -1 +1 @@
1
- {"version":3,"file":"potentialEnergy.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/potentialEnergy.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,QAAQ,EACT,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAuDF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAajD,CAAC"}
1
+ {"version":3,"file":"potentialEnergy.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/potentialEnergy.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,QAAQ,EACT,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAwDF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAajD,CAAC"}
@@ -41,7 +41,8 @@ const getPropositions = (n, { answer, height, mass }) => {
41
41
  (0, exercise_1.addValidProp)(propositions, answer);
42
42
  const potentialEnergy = mass * 9.81 * height;
43
43
  while (propositions.length < n) {
44
- (0, exercise_1.tryToAddWrongProp)(propositions, (0, frenchify_1.frenchify)((0, round_1.round)(potentialEnergy * (0.3 + Math.random() * 1.5), 2)) + "J");
44
+ (0, exercise_1.tryToAddWrongProp)(propositions, (0, frenchify_1.frenchify)((0, round_1.round)(potentialEnergy * (0.3 + Math.random() * 1.5), 2)) +
45
+ "\\text{J}");
45
46
  }
46
47
  return (0, shuffle_1.shuffle)(propositions);
47
48
  };
@@ -65,15 +65,15 @@ const getSnellDescartes = () => {
65
65
  const n1 = refractionIndex[randomMaterial1].n;
66
66
  const n2 = refractionIndex[randomMaterial2].n;
67
67
  const ramdonAngleIncidenceDeg = (0, randint_1.randint)(10, 90);
68
- const instruction = `Un rayon de lumière se propage dans ${refractionIndex[randomMaterial1].Material} (n1 ${n1}) et atteint une surface ${refractionIndex[randomMaterial2].Material2}
69
- (n2 ${n2}) sous un angle d'incidence de ${ramdonAngleIncidenceDeg} degrés. $\\\\$ Calculer l'angle de
68
+ const instruction = `Un rayon de lumière se propage dans ${refractionIndex[randomMaterial1].Material} ($n1 \\approx ${n1}$) et atteint une surface ${refractionIndex[randomMaterial2].Material2}
69
+ ($n2 \\approx ${n2}$) sous un angle d'incidence de $${ramdonAngleIncidenceDeg}$ degrés. $\\\\$ Calculer l'angle de
70
70
  réfraction de la lumière à l'intérieur ${refractionIndex[randomMaterial2].Material3} en utilisant la loi de Snell-Descartes.`;
71
71
  const angleIncidenceRad = (ramdonAngleIncidenceDeg * Math.PI) / 180;
72
72
  // Calculer l'angle de réfraction en radians
73
73
  const angleRefractionRad = Math.asin((n1 / n2) * Math.sin(angleIncidenceRad));
74
74
  // Convertir l'angle de réfraction de radians à degrés
75
75
  const angleRefractionDeg = (angleRefractionRad * 180) / Math.PI;
76
- const answer = `${(0, frenchify_1.frenchify)((0, round_1.round)(angleRefractionDeg, 1))}°`;
76
+ const answer = `${(0, frenchify_1.frenchify)((0, round_1.round)(angleRefractionDeg, 1))}^{\\circ}`;
77
77
  const question = {
78
78
  instruction,
79
79
  answer,
@@ -87,7 +87,7 @@ const getPropositions = (n, { answer }) => {
87
87
  const propositions = [];
88
88
  (0, exercise_1.addValidProp)(propositions, answer);
89
89
  while (propositions.length < n) {
90
- (0, exercise_1.tryToAddWrongProp)(propositions, (0, frenchify_1.frenchify)((0, round_1.round)((0, randint_1.randint)(100, 900) / 10, 1)) + "°");
90
+ (0, exercise_1.tryToAddWrongProp)(propositions, (0, frenchify_1.frenchify)((0, round_1.round)((0, randint_1.randint)(100, 900) / 10, 1)) + "^{\\circ}");
91
91
  }
92
92
  return (0, shuffle_1.shuffle)(propositions);
93
93
  };
@@ -1 +1 @@
1
- {"version":3,"file":"frequencyComparison.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/sound/frequencyComparison.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAKlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqDF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAcrD,CAAC"}
1
+ {"version":3,"file":"frequencyComparison.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/sound/frequencyComparison.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAKlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqDF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAerD,CAAC"}
@@ -48,4 +48,5 @@ exports.frequencyComparison = {
48
48
  isAnswerValid,
49
49
  subject: "Physique",
50
50
  answerType: "QCU",
51
+ pdfOptions: { shouldSpreadPropositions: true },
51
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lightDistanceConversion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/lightDistanceConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AAqKF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
1
+ {"version":3,"file":"lightDistanceConversion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/lightDistanceConversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,CAAC;AA8KF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
@@ -36,6 +36,7 @@ const getLightDistanceConversionQuestion = () => {
36
36
  - Il y a $365.25 \\text{ jours} \\times 24 \\text{ heures/jour} \\times 3600 \\text{ secondes/heure}$ secondes dans une année (Le 0.25 compte pour la moyenne sur quatres années dont une bissextile).
37
37
 
38
38
  La distance parcourue par la lumière en une année est :
39
+
39
40
  $$
40
41
  c \\times \\text{secondes par année}
41
42
  $$
@@ -43,46 +44,54 @@ const getLightDistanceConversionQuestion = () => {
43
44
  Pour convertir des mètres en années-lumière, divisez la distance en mètres par la distance parcourue par la lumière en une année.`;
44
45
  const correction = isLightYearToMeters
45
46
  ? `La distance parcourue par la lumière en une année est donnée par :
47
+
46
48
  $$
47
49
  c \\times \\text{secondes par année} = 3 \\times 10^8 \\text{ m/s} \\times 365.25 \\times 24 \\times 3600 \\text{ s}
48
50
  $$
49
51
 
50
52
  En simplifiant, nous obtenons :
53
+
51
54
  $$
52
55
  3 \\times 10^8 \\text{ m/s} \\times 31,557,600 \\text{ s} = 9.46728 \\times 10^{15} \\text{ m}
53
56
  $$
54
57
 
55
58
  Pour convertir des années-lumière en mètres, nous utilisons la relation suivante :
59
+
56
60
  $$
57
- \\text{distance en mètres} = \\text{distance en années-lumière} \\times 9.46728 \\times 10^{15} \\text{ m}
61
+ \\text{distance en années-lumière} \\times 9.46728 \\times 10^{15} \\text{ m}
58
62
  $$
59
63
 
60
64
  En appliquant cette relation avec la valeur donnée de ${lightYear} années-lumière, nous obtenons :
65
+
61
66
  $$
62
67
  \\text{distance en mètres} = ${lightYear} \\times 9.46728 \\times 10^{15} = ${distanceFromEarthMeters
63
68
  .toSignificant(2)
64
69
  .toTex()} \\text{ m}
65
70
  $$`
66
71
  : `La distance parcourue par la lumière en une année est donnée par :
67
- $$
72
+
73
+ $$
68
74
  c \\times \\text{secondes par année} = 3 \\times 10^8 \\text{ m/s} \\times 365.25 \\times 24 \\times 3600 \\text{ s}
69
75
  $$
70
76
 
71
77
  En simplifiant, nous obtenons :
78
+
72
79
  $$
73
80
  3 \\times 10^8 \\text{ m/s} \\times 31,557,600 \\text{ s} = 9.46728 \\times 10^{15} \\text{ m}
74
81
  $$
75
82
 
76
83
  Pour convertir des mètres en années-lumière, nous utilisons la relation suivante :
84
+
77
85
  $$
78
- \\text{distance en années-lumière} = \\frac{\\text{distance en mètres}}{9.46728 \\times 10^{15} \\text{ m}}
86
+ \\frac{\\text{distance en mètres}}{9.46728 \\times 10^{15} \\text{ m}}
79
87
  $$
80
88
 
81
89
  En appliquant cette relation avec la valeur donnée de $${distanceFromEarthMeters
82
90
  .toSignificant(2)
83
91
  .toTex()} \\text{m}$, nous obtenons :
92
+
84
93
  $$
85
- \\text{distance en années-lumière} = \\frac{${distanceFromEarthMeters
94
+ \\frac{${distanceFromEarthMeters
86
95
  .toSignificant(2)
87
96
  .toTex()}}{9.46728 \\times 10^{15}} = ${lightYear.toScientific(2).toTex()}
88
97
  $$`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.2.38",
3
+ "version": "2.2.39",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [