math-exercises 2.1.6 → 2.1.7

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":"calculateCombustionEnergy.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/calculateCombustionEnergy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAA;CAAE,CAAC;AAiE5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAa3D,CAAC"}
1
+ {"version":3,"file":"calculateCombustionEnergy.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/calculateCombustionEnergy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAA;CAAE,CAAC;AAmE5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAa3D,CAAC"}
@@ -19,7 +19,9 @@ const getCalculateCombustionEnergyQuestion = () => {
19
19
  const combustibleQuantity = (0, randint_1.randint)(100, 301);
20
20
  const combustible = (0, random_1.random)(combustibles);
21
21
  const instruction = `Calculer l'énergie libérée lors de la combustion de $${combustibleQuantity}\\ \\text{g}$ ${(0, requiresApostropheBefore_1.requiresApostropheBefore)(combustible.name) ? "d'" : "de"}
22
- ${combustible.name} (en MJ). $\\text{PC(${combustible.name})} = ${combustible.value}\\ \\text{MJ}\\cdot\\text{kg}^{-1}$`;
22
+ ${combustible.name} (en $\\text{MJ}$).
23
+
24
+ Données : $\\text{PC(${combustible.name})} = ${combustible.value}\\ \\text{MJ}\\cdot\\text{kg}^{-1}$`;
23
25
  const energy = (0, round_1.roundSignificant)(-combustibleQuantity * 0.001 * combustible.value, 1);
24
26
  const question = {
25
27
  answer: energy,
@@ -1 +1 @@
1
- {"version":3,"file":"identifyLimitingReagent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyLimitingReagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAIlC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;CAClC,CAAC;AAwEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
1
+ {"version":3,"file":"identifyLimitingReagent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyLimitingReagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAIlC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;CAClC,CAAC;AAyEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
@@ -23,9 +23,7 @@ const getIdentifyLimitingReagentQuestion = () => {
23
23
  const limitingReagent = firstXMax < secondXMax ? "Le réactif A" : "Le réactif B";
24
24
  const instruction = `On considère l'état final d'un système chimique,
25
25
  pour lequel il y a eu transformation totale. Les quantités finales des
26
- deux réactifs $\\text{A}$ et $\\text{B (en mol)}$, sont $\\text{n}_{\\text{A}} = ${(0, round_1.roundSignificant)(firstReagentVariables[0], 1)} - ${firstReagentVariables[1] === 1 ? "" : firstReagentVariables[1]} x_{\\text{max}}$ et $\\text{n}_{\\text{
27
- B
28
- }} = ${(0, round_1.roundSignificant)(secondReagentVariables[0], 1)} - ${secondReagentVariables[1] === 1 ? "" : secondReagentVariables[1]} x_{\\text{max}}$. Quel est le réactif limitant ?`;
26
+ deux réactifs $\\text{A}$ et $\\text{B}$ (en $\\text{mol}$), sont $\\text{n}_{\\text{A}} = ${(0, round_1.roundSignificant)(firstReagentVariables[0], 1)} - ${firstReagentVariables[1] === 1 ? "" : firstReagentVariables[1]} x_{\\text{max}}$ et $\\text{n}_{\\text{B}} = ${(0, round_1.roundSignificant)(secondReagentVariables[0], 1)} - ${secondReagentVariables[1] === 1 ? "" : secondReagentVariables[1]} x_{\\text{max}}$. Quel est le réactif limitant ?`;
29
27
  const question = {
30
28
  answer: limitingReagent,
31
29
  instruction,
@@ -32,7 +32,7 @@ const getIdentifyStoichiometricMixtureQuestion = () => {
32
32
  : firstXMax === secondXMax;
33
33
  const instruction = `On considère l'état final d'un système chimique,
34
34
  pour lequel il y a eu transformation totale. Les quantités finales des
35
- deux réactifs $\\text{A}$ et $\\text{B (en mmol)}$, sont $\\text{n}_{\\text{A}} = ${(0, round_1.roundSignificant)(firstReagentVariables[0], 1)} - ${firstReagentVariables[1] === 1 ? "" : firstReagentVariables[1]} x_{\\text{max}}$ et $\\text{n}_{\\text{B}} = ${(0, round_1.roundSignificant)(secondReagentVariables[0], 1)} - ${secondReagentVariables[1] === 1 ? "" : secondReagentVariables[1]} x_{\\text{max}}$. Le mélange initial est-il stoechiométrique ?`;
35
+ deux réactifs $\\text{A}$ et $\\text{B}$ (en $\\text{mol}$), sont $\\text{n}_{\\text{A}} = ${(0, round_1.roundSignificant)(firstReagentVariables[0], 1)} - ${firstReagentVariables[1] === 1 ? "" : firstReagentVariables[1]} x_{\\text{max}}$ et $\\text{n}_{\\text{B}} = ${(0, round_1.roundSignificant)(secondReagentVariables[0], 1)} - ${secondReagentVariables[1] === 1 ? "" : secondReagentVariables[1]} x_{\\text{max}}$. Le mélange initial est-il stoechiométrique ?`;
36
36
  const question = {
37
37
  answer: isStoichiometric ? "Oui" : "Non",
38
38
  instruction,
@@ -12,7 +12,7 @@ const getElectricChargeFromIntensityQuestion = () => {
12
12
  const electricCharge = intensity * seconds;
13
13
  const question = {
14
14
  answer: (0, round_1.roundSignificant)(electricCharge, 1),
15
- instruction: `Un conducteur électrique est parcouru par un courant d'intensité $${(0, round_1.roundSignificant)(intensity, 1)}\\ \\text{A}$. Calculer la charge électrique $\\text{Q (en C)}$ ayant traversé la section de ce conducteur durant $${seconds}\\ \\text{s}$.`,
15
+ instruction: `Un conducteur électrique est parcouru par un courant d'intensité $${(0, round_1.roundSignificant)(intensity, 1)}\\ \\text{A}$. Calculer la charge électrique $\\text{Q}$ (en $\\text{C}$) ayant traversé la section de ce conducteur durant $${seconds}\\ \\text{s}$.`,
16
16
  keys: [],
17
17
  answerFormat: "tex",
18
18
  identifiers: { intensity, seconds },
@@ -34,7 +34,7 @@ const getElectricEnergyFromPowerQuestion = () => {
34
34
  const energy = power * seconds;
35
35
  const question = {
36
36
  answer: `${energy.toScientific(0).toTex({ scientific: 0 })}`,
37
- instruction: `Un chargeur a une puissance maximale de $${power}\\ \\text{W}$. Calculer l'énergie électrique qu'il fournit durant $${seconds}\\ \\text{secondes}$ de fonctionnement (en $\\text{J}$).`,
37
+ instruction: `Un chargeur a une puissance maximale de $${power}\\ \\text{W}$. Calculer l'énergie électrique qu'il fournit durant $${seconds}\\ \\text{s}$ de fonctionnement (en $\\text{J}$).`,
38
38
  keys: ["timesTenPower"],
39
39
  answerFormat: "tex",
40
40
  identifiers: { power, seconds },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [