math-exercises 2.1.0 → 2.1.2

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 (160) hide show
  1. package/lib/exercises/exercise.d.ts +1 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
  4. package/lib/exercises/math/functions/affines/affineExpressionReading.js +1 -0
  5. package/lib/exercises/math/functions/affines/interceptReading.d.ts.map +1 -1
  6. package/lib/exercises/math/functions/affines/interceptReading.js +1 -0
  7. package/lib/exercises/math/percent/findProportion.d.ts +8 -0
  8. package/lib/exercises/math/percent/findProportion.d.ts.map +1 -0
  9. package/lib/exercises/math/percent/findProportion.js +48 -0
  10. package/lib/exercises/math/percent/index.d.ts +1 -0
  11. package/lib/exercises/math/percent/index.d.ts.map +1 -1
  12. package/lib/exercises/math/percent/index.js +1 -0
  13. package/lib/exercises/math/powers/decimalToScientific.js +4 -4
  14. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
  15. package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +4 -1
  16. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.d.ts.map +1 -1
  17. package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +4 -1
  18. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts +8 -0
  19. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -0
  20. package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +58 -0
  21. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts +8 -0
  22. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts.map +1 -0
  23. package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.js +63 -0
  24. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.d.ts +5 -0
  25. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.d.ts.map +1 -0
  26. package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.js +76 -0
  27. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts +10 -0
  28. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts.map +1 -0
  29. package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +68 -0
  30. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts +8 -0
  31. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts.map +1 -0
  32. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.js +58 -0
  33. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts +8 -0
  34. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts.map +1 -0
  35. package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.js +59 -0
  36. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts +8 -0
  37. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -0
  38. package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +101 -0
  39. package/lib/exercises/pc/chemicalElements/index.d.ts +9 -0
  40. package/lib/exercises/pc/chemicalElements/index.d.ts.map +1 -0
  41. package/lib/exercises/pc/chemicalElements/index.js +24 -0
  42. package/lib/exercises/pc/chemicalElements/weightPercent.d.ts +10 -0
  43. package/lib/exercises/pc/chemicalElements/weightPercent.d.ts.map +1 -0
  44. package/lib/exercises/pc/chemicalElements/weightPercent.js +107 -0
  45. package/lib/exercises/pc/chemicalEquations.js +1 -1
  46. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts +7 -0
  47. package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts.map +1 -0
  48. package/lib/exercises/pc/forces/gravitationalAttractionValue.js +71 -0
  49. package/lib/exercises/pc/forces/index.d.ts +2 -0
  50. package/lib/exercises/pc/forces/index.d.ts.map +1 -0
  51. package/lib/exercises/pc/forces/index.js +17 -0
  52. package/lib/exercises/pc/index.d.ts +12 -0
  53. package/lib/exercises/pc/index.d.ts.map +1 -1
  54. package/lib/exercises/pc/index.js +14 -0
  55. package/lib/exercises/pc/math/index.d.ts +2 -0
  56. package/lib/exercises/pc/math/index.d.ts.map +1 -0
  57. package/lib/exercises/pc/math/index.js +18 -0
  58. package/lib/exercises/pc/math/isolateVariables.d.ts +8 -0
  59. package/lib/exercises/pc/math/isolateVariables.d.ts.map +1 -0
  60. package/lib/exercises/pc/math/isolateVariables.js +304 -0
  61. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts +10 -0
  62. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -0
  63. package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +81 -0
  64. package/lib/exercises/pc/motion/recognizeFreeFall.d.ts +1 -0
  65. package/lib/exercises/pc/motion/recognizeFreeFall.d.ts.map +1 -0
  66. package/lib/exercises/pc/motion/recognizeFreeFall.js +53 -0
  67. package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts +8 -0
  68. package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts.map +1 -0
  69. package/lib/exercises/pc/sound/findPeriodFromGraph.js +80 -0
  70. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.d.ts +7 -0
  71. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.d.ts.map +1 -0
  72. package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.js +51 -0
  73. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.d.ts +7 -0
  74. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.d.ts.map +1 -0
  75. package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.js +58 -0
  76. package/lib/exercises/pc/sound/frequencyComparison.d.ts +9 -0
  77. package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -0
  78. package/lib/exercises/pc/sound/frequencyComparison.js +51 -0
  79. package/lib/exercises/pc/sound/index.d.ts +5 -0
  80. package/lib/exercises/pc/sound/index.d.ts.map +1 -0
  81. package/lib/exercises/pc/sound/index.js +20 -0
  82. package/lib/exercises/pc/waves/findDistanceFromEarth.d.ts +7 -0
  83. package/lib/exercises/pc/waves/findDistanceFromEarth.d.ts.map +1 -0
  84. package/lib/exercises/pc/waves/findDistanceFromEarth.js +66 -0
  85. package/lib/exercises/pc/waves/index.d.ts +2 -0
  86. package/lib/exercises/pc/waves/index.d.ts.map +1 -0
  87. package/lib/exercises/pc/waves/index.js +17 -0
  88. package/lib/exercises/pc/weight/index.d.ts +2 -0
  89. package/lib/exercises/pc/weight/index.d.ts.map +1 -0
  90. package/lib/exercises/pc/weight/index.js +17 -0
  91. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts +8 -0
  92. package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -0
  93. package/lib/exercises/pc/weight/weightOnTheMoon.js +64 -0
  94. package/lib/exercises/utils/getAtoms.d.ts +2 -0
  95. package/lib/exercises/utils/getAtoms.d.ts.map +1 -0
  96. package/lib/exercises/utils/getAtoms.js +11 -0
  97. package/lib/exercises/utils/getElectronicConfigurationFromShells.d.ts +2 -0
  98. package/lib/exercises/utils/getElectronicConfigurationFromShells.d.ts.map +1 -0
  99. package/lib/exercises/utils/getElectronicConfigurationFromShells.js +19 -0
  100. package/lib/geogebra/geogebraConstructor.d.ts +2 -0
  101. package/lib/geogebra/geogebraConstructor.d.ts.map +1 -1
  102. package/lib/geogebra/geogebraConstructor.js +2 -0
  103. package/lib/index.d.ts +126 -0
  104. package/lib/index.d.ts.map +1 -1
  105. package/lib/index.js +4 -0
  106. package/lib/math/numbers/decimals/decimal.d.ts +3 -3
  107. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
  108. package/lib/math/numbers/decimals/decimal.js +39 -19
  109. package/lib/math/utils/random/randfloat.d.ts +1 -1
  110. package/lib/math/utils/random/randfloat.d.ts.map +1 -1
  111. package/lib/math/utils/random/randfloat.js +4 -7
  112. package/lib/math/utils/round.d.ts +2 -1
  113. package/lib/math/utils/round.d.ts.map +1 -1
  114. package/lib/math/utils/round.js +10 -3
  115. package/lib/pc/constants/atoms.d.ts +8 -0
  116. package/lib/pc/constants/atoms.d.ts.map +1 -0
  117. package/lib/pc/constants/atoms.js +9 -0
  118. package/lib/pc/constants/earth.d.ts +9 -0
  119. package/lib/pc/constants/earth.d.ts.map +1 -0
  120. package/lib/pc/constants/earth.js +12 -0
  121. package/lib/pc/constants/gravity.d.ts +10 -0
  122. package/lib/pc/constants/gravity.d.ts.map +1 -0
  123. package/lib/pc/constants/gravity.js +16 -0
  124. package/lib/pc/measure/measure.d.ts +15 -0
  125. package/lib/pc/measure/measure.d.ts.map +1 -0
  126. package/lib/pc/measure/measure.js +97 -0
  127. package/lib/pc/molecularChemistry/atome.d.ts +3 -2
  128. package/lib/pc/molecularChemistry/atome.d.ts.map +1 -1
  129. package/lib/pc/molecularChemistry/atome.js +156 -120
  130. package/lib/pc/molecularChemistry/molecule.d.ts +3 -2
  131. package/lib/pc/molecularChemistry/molecule.d.ts.map +1 -1
  132. package/lib/pc/molecularChemistry/molecule.js +11 -0
  133. package/lib/pc/molecularChemistry/reaction.d.ts +2 -1
  134. package/lib/pc/molecularChemistry/reaction.d.ts.map +1 -1
  135. package/lib/pc/molecularChemistry/reaction.js +9 -0
  136. package/lib/server.d.ts +1 -0
  137. package/lib/server.d.ts.map +1 -1
  138. package/lib/server.js +5 -0
  139. package/lib/tree/nodes/algebraicNode.d.ts +1 -0
  140. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  141. package/lib/tree/nodes/complex/complexNode.d.ts.map +1 -1
  142. package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -1
  143. package/lib/tree/nodes/equations/equalNode.js +0 -1
  144. package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -1
  145. package/lib/tree/nodes/node.d.ts +1 -0
  146. package/lib/tree/nodes/node.d.ts.map +1 -1
  147. package/lib/tree/nodes/numbers/numberNode.js +1 -1
  148. package/lib/tree/nodes/numbers/piNode.d.ts.map +1 -1
  149. package/lib/tree/nodes/operators/multiplyNode.d.ts +2 -2
  150. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  151. package/lib/tree/nodes/operators/multiplyNode.js +6 -5
  152. package/lib/types/keyIds.d.ts +4 -2
  153. package/lib/types/keyIds.d.ts.map +1 -1
  154. package/lib/utils/numberPrototype/toScientific.d.ts +3 -0
  155. package/lib/utils/numberPrototype/toScientific.d.ts.map +1 -0
  156. package/lib/utils/numberPrototype/toScientific.js +110 -0
  157. package/lib/utils/requiresApostropheBefore.d.ts +2 -0
  158. package/lib/utils/requiresApostropheBefore.d.ts.map +1 -0
  159. package/lib/utils/requiresApostropheBefore.js +7 -0
  160. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findSoundPeriodFromFrequency = void 0;
4
+ const exercise_1 = require("../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
6
+ const decimal_1 = require("../../../math/numbers/decimals/decimal");
7
+ const randint_1 = require("../../../math/utils/random/randint");
8
+ const getFindSoundPeriodFromFrequencyQuestion = () => {
9
+ const frequency = (0, randint_1.randint)(20, 20000);
10
+ const period = 1 / frequency;
11
+ const periodDecimal = new decimal_1.Decimal(period);
12
+ const answer = periodDecimal.value.toScientific(1).toTex({ scientific: 1 });
13
+ const question = {
14
+ answer,
15
+ instruction: `Un signal sonore a une fréquence de $${frequency}\\ \\text{Hz}$. Calculer la période de ce signal en secondes (en écriture scientifique avec 2 chiffres significatifs).`,
16
+ keys: ["timesTenPower"],
17
+ answerFormat: "tex",
18
+ identifiers: { frequency },
19
+ };
20
+ return question;
21
+ };
22
+ const getPropositions = (n, { answer, frequency }) => {
23
+ const propositions = [];
24
+ const period = 1 / frequency;
25
+ const dec = new decimal_1.Decimal(period);
26
+ const wrongPeriod = dec
27
+ .multiplyByPowerOfTen((0, randint_1.randint)(-2, 2, [0]))
28
+ .value.toScientific(1)
29
+ .toTex({ scientific: 1 });
30
+ (0, exercise_1.addValidProp)(propositions, answer);
31
+ (0, exercise_1.tryToAddWrongProp)(propositions, wrongPeriod);
32
+ while (propositions.length < n) {
33
+ const period = 1 / (0, randint_1.randint)(20, 20000);
34
+ const periodDecimal = new decimal_1.Decimal(period);
35
+ (0, exercise_1.tryToAddWrongProp)(propositions, periodDecimal.value.toScientific(1).toTex({ scientific: 1 }));
36
+ }
37
+ return (0, exercise_1.shuffleProps)(propositions, n);
38
+ };
39
+ const isAnswerValid = (ans, { frequency }) => {
40
+ const period = 1 / frequency;
41
+ const periodDecimal = new decimal_1.Decimal(period);
42
+ const periodNotation = periodDecimal.toScientificNotation(1);
43
+ const texs = periodNotation.toAllValidTexs({ forbidPowerToProduct: true });
44
+ return texs.includes(ans);
45
+ };
46
+ exports.findSoundPeriodFromFrequency = {
47
+ id: "findSoundPeriodFromFrequency",
48
+ label: "Calculer la période d'un signal sonore en fonction de la fréquence",
49
+ levels: ["2nde"],
50
+ isSingleStep: true,
51
+ sections: ["Son"],
52
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFindSoundPeriodFromFrequencyQuestion, nb),
53
+ qcmTimer: 60,
54
+ freeTimer: 60,
55
+ getPropositions,
56
+ isAnswerValid,
57
+ subject: "Physique",
58
+ };
@@ -0,0 +1,9 @@
1
+ import { Exercise } from "../../../exercises/exercise";
2
+ type Identifiers = {
3
+ frequency1: number;
4
+ frequency2: number;
5
+ soundAsked: number;
6
+ };
7
+ export declare const frequencyComparison: Exercise<Identifiers>;
8
+ export {};
9
+ //# sourceMappingURL=frequencyComparison.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.frequencyComparison = void 0;
4
+ const exercise_1 = require("../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
6
+ const randint_1 = require("../../../math/utils/random/randint");
7
+ const coinFlip_1 = require("../../../utils/coinFlip");
8
+ const getFrequencyComparisonQuestion = () => {
9
+ const soundAsked = (0, coinFlip_1.coinFlip)() ? 1 : 2;
10
+ const soundCompared = soundAsked === 1 ? 2 : 1;
11
+ const frequency1 = (0, randint_1.randint)(20, 1000);
12
+ const frequency2 = (0, randint_1.randint)(20, 1000, [frequency1]);
13
+ const highestFrequency = frequency1 > frequency2 ? 1 : 2;
14
+ const answer = soundAsked === highestFrequency
15
+ ? `Plus aigu que le son ${soundCompared}`
16
+ : `Plus grave que le son ${soundCompared}`;
17
+ const question = {
18
+ answer,
19
+ instruction: `La fréquence de deux sons sont $f_1 = ${frequency1}\\ \\text{Hz}$ et $f_2 = ${frequency2}\\ \\text{Hz}$. Le son ${soundAsked} est :`,
20
+ keys: [],
21
+ answerFormat: "raw",
22
+ identifiers: { frequency1, frequency2, soundAsked },
23
+ };
24
+ return question;
25
+ };
26
+ const getPropositions = (n, { answer, soundAsked }) => {
27
+ const propositions = [];
28
+ const soundCompared = soundAsked === 1 ? 2 : 1;
29
+ (0, exercise_1.addValidProp)(propositions, answer, "raw");
30
+ (0, exercise_1.tryToAddWrongProp)(propositions, `Plus aigu que le son ${soundCompared}`, "raw");
31
+ (0, exercise_1.tryToAddWrongProp)(propositions, `Plus grave que le son ${soundCompared}`, "raw");
32
+ (0, exercise_1.tryToAddWrongProp)(propositions, `Aussi aigu que le son ${soundCompared}`, "raw");
33
+ return (0, exercise_1.shuffleProps)(propositions, n);
34
+ };
35
+ const isAnswerValid = (ans, { answer }) => {
36
+ return ans === answer;
37
+ };
38
+ exports.frequencyComparison = {
39
+ id: "frequencyComparison",
40
+ label: "Comparer deux fréquences sonores",
41
+ levels: ["2nde"],
42
+ isSingleStep: true,
43
+ sections: ["Son"],
44
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFrequencyComparisonQuestion, nb),
45
+ qcmTimer: 60,
46
+ freeTimer: 60,
47
+ getPropositions,
48
+ isAnswerValid,
49
+ subject: "Physique",
50
+ answerType: "QCM",
51
+ };
@@ -0,0 +1,5 @@
1
+ export * from "./frequencyComparison";
2
+ export * from "./findSoundPeriodFromFrequency";
3
+ export * from "./findSoundFrequencyFromPeriod";
4
+ export * from "./findPeriodFromGraph";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/sound/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./frequencyComparison"), exports);
18
+ __exportStar(require("./findSoundPeriodFromFrequency"), exports);
19
+ __exportStar(require("./findSoundFrequencyFromPeriod"), exports);
20
+ __exportStar(require("./findPeriodFromGraph"), exports);
@@ -0,0 +1,7 @@
1
+ import { Exercise } from "../../../exercises/exercise";
2
+ type Identifiers = {
3
+ lightYear: number;
4
+ };
5
+ export declare const findDistanceFromEarth: Exercise<Identifiers>;
6
+ export {};
7
+ //# sourceMappingURL=findDistanceFromEarth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findDistanceFromEarth.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/findDistanceFromEarth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAsEF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAavD,CAAC"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findDistanceFromEarth = void 0;
4
+ const exercise_1 = require("../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
6
+ const decimal_1 = require("../../../math/numbers/decimals/decimal");
7
+ const randfloat_1 = require("../../../math/utils/random/randfloat");
8
+ const randint_1 = require("../../../math/utils/random/randint");
9
+ const round_1 = require("../../../math/utils/round");
10
+ const getFindDistanceFromEarthQuestion = () => {
11
+ const lightYear = (0, round_1.round)((0, randfloat_1.randfloat)(4.2, 50), 1);
12
+ const speed = 300000000;
13
+ const secondsInAYear = 365.25 * 24 * 3600;
14
+ const lightDistanceTravelled = speed * secondsInAYear;
15
+ const lightDistanceTravelledDecimal = new decimal_1.Decimal(lightDistanceTravelled);
16
+ const lightDistanceTravelledDecimalScientificNotation = lightDistanceTravelledDecimal.toScientificNotation(1);
17
+ const distanceFromEarth = lightYear * lightDistanceTravelledDecimalScientificNotation.evaluate({});
18
+ // Aide : Passer par la distance parcourue par la lumière en une année. L'année-lumière est la distance parcourue par la lumière dans le vide en une année.
19
+ const question = {
20
+ answer: `${distanceFromEarth.toScientific(1).toTex({ scientific: 1 })}`,
21
+ instruction: `Une planète se trouve à ${lightYear.frenchify()} années-lumières de nous. Calculer à quelle distance de la Terre se trouve la planète en mètres (en écriture scientifique avec 2 chiffres significatifs).
22
+ `,
23
+ keys: ["timesTenPower"],
24
+ answerFormat: "tex",
25
+ identifiers: { lightYear },
26
+ };
27
+ return question;
28
+ };
29
+ const getPropositions = (n, { answer, lightYear }) => {
30
+ const propositions = [];
31
+ (0, exercise_1.addValidProp)(propositions, answer);
32
+ //error from not multiplying by distance in a lightYear
33
+ const speed = 300000000;
34
+ const distanceWithoutYearTime = lightYear * speed;
35
+ (0, exercise_1.tryToAddWrongProp)(propositions, distanceWithoutYearTime.toScientific(1).toTex({ scientific: 1 }));
36
+ const secondsInAYear = 365.25 * 24 * 3600;
37
+ //error from wrong distance found
38
+ const wrongLightDistanceTravelled = speed / secondsInAYear;
39
+ const distanceFromEarth = lightYear * wrongLightDistanceTravelled;
40
+ (0, exercise_1.tryToAddWrongProp)(propositions, distanceFromEarth.toScientific(1).toTex({ scientific: 1 }));
41
+ const speedDecimal = new decimal_1.Decimal(speed);
42
+ while (propositions.length < n) {
43
+ //error from not having the right speed
44
+ const wrongSpeed = speedDecimal.multiplyByPowerOfTen((0, randint_1.randint)(-2, 2, [0]));
45
+ const lightDistanceTravelled = wrongSpeed.value * secondsInAYear;
46
+ const distanceFromEarth = lightYear * lightDistanceTravelled;
47
+ (0, exercise_1.tryToAddWrongProp)(propositions, distanceFromEarth.toScientific(1).toTex({ scientific: 1 }));
48
+ }
49
+ return (0, exercise_1.shuffleProps)(propositions, n);
50
+ };
51
+ const isAnswerValid = (ans, { answer }) => {
52
+ return ans === answer;
53
+ };
54
+ exports.findDistanceFromEarth = {
55
+ id: "findDistanceFromEarth",
56
+ label: "Calculer la distance d'une planète à la Terre",
57
+ levels: ["2nde"],
58
+ isSingleStep: true,
59
+ sections: ["Ondes"],
60
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFindDistanceFromEarthQuestion, nb),
61
+ qcmTimer: 60,
62
+ freeTimer: 60,
63
+ getPropositions,
64
+ isAnswerValid,
65
+ subject: "Physique",
66
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./findDistanceFromEarth";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/waves/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./findDistanceFromEarth"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./weightOnTheMoon";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./weightOnTheMoon"), exports);
@@ -0,0 +1,8 @@
1
+ import { Exercise } from "../../../exercises/exercise";
2
+ type Identifiers = {
3
+ weight: number;
4
+ originIsMoon: boolean;
5
+ };
6
+ export declare const weightOnTheMoon: Exercise<Identifiers>;
7
+ export {};
8
+ //# sourceMappingURL=weightOnTheMoon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weightOnTheMoon.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/weightOnTheMoon.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AA+DF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAcjD,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.weightOnTheMoon = void 0;
4
+ const exercise_1 = require("../../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
6
+ const frenchify_1 = require("../../../math/utils/latex/frenchify");
7
+ const randfloat_1 = require("../../../math/utils/random/randfloat");
8
+ const round_1 = require("../../../math/utils/round");
9
+ const gravity_1 = require("../../../pc/constants/gravity");
10
+ const coinFlip_1 = require("../../../utils/coinFlip");
11
+ const getWeightOnTheMoonQuestion = () => {
12
+ const originIsMoon = (0, coinFlip_1.coinFlip)();
13
+ const origin = originIsMoon ? "Lune" : "Terre";
14
+ const destination = originIsMoon ? "Terre" : "Lune";
15
+ const weight = (0, round_1.round)((0, randfloat_1.randfloat)(2, 30), 1);
16
+ const gl = gravity_1.moonGravity.measure.toSignificant(1);
17
+ const gt = gravity_1.earthGravity.measure.toSignificant(1);
18
+ //Pt = m gt = Pl/gl gt
19
+ //Pl = m gl = Pt/gt gl
20
+ const answer = (0, round_1.round)(originIsMoon
21
+ ? (weight / gl.evaluate()) * gt.evaluate()
22
+ : (weight / gt.evaluate()) * gl.evaluate(), 1) + "N";
23
+ const question = {
24
+ answer: (0, frenchify_1.frenchify)(answer),
25
+ instruction: `Un objet a un poids de $${weight.frenchify()}\\ \\text{N}$ sur la ${origin}. Quel est son poids sur la ${destination} ?
26
+
27
+ Données : $g_T = ${gt.toTex()}\\ ${gravity_1.earthGravity.unit}$ , $g_L = ${gl.toTex()}\\ ${gravity_1.moonGravity.unit}$
28
+ `,
29
+ keys: ["N"],
30
+ answerFormat: "tex",
31
+ identifiers: { weight, originIsMoon },
32
+ };
33
+ return question;
34
+ };
35
+ const getPropositions = (n, { answer, originIsMoon, weight }) => {
36
+ const propositions = [];
37
+ (0, exercise_1.addValidProp)(propositions, answer);
38
+ const gl = gravity_1.moonGravity.measure.toSignificant(1);
39
+ const gt = gravity_1.earthGravity.measure.toSignificant(1);
40
+ (0, exercise_1.tryToAddWrongProp)(propositions, (0, round_1.round)(!originIsMoon
41
+ ? (weight / gl.evaluate()) * gt.evaluate()
42
+ : (weight / gt.evaluate()) * gl.evaluate(), 1).frenchify() + "N");
43
+ while (propositions.length < n) {
44
+ (0, exercise_1.tryToAddWrongProp)(propositions, (0, round_1.round)((0, randfloat_1.randfloat)(2, 100), 1).frenchify() + "N");
45
+ }
46
+ return (0, exercise_1.shuffleProps)(propositions, n);
47
+ };
48
+ const isAnswerValid = (ans, { answer }) => {
49
+ return [answer, answer.replace("N", "")].includes(ans);
50
+ };
51
+ exports.weightOnTheMoon = {
52
+ id: "weightOnTheMoon",
53
+ connector: "=",
54
+ label: "Passer du poids sur la Lune au poids sur la Terre",
55
+ levels: ["2nde"],
56
+ isSingleStep: true,
57
+ sections: ["Forces"],
58
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getWeightOnTheMoonQuestion, nb),
59
+ qcmTimer: 60,
60
+ freeTimer: 60,
61
+ getPropositions,
62
+ isAnswerValid,
63
+ subject: "Physique",
64
+ };
@@ -0,0 +1,2 @@
1
+ export declare const getAtoms: (numberOfPeriodicTableLines?: number) => import("../../pc/molecularChemistry/atome").Atome[];
2
+ //# sourceMappingURL=getAtoms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAtoms.d.ts","sourceRoot":"","sources":["../../../src/exercises/utils/getAtoms.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,gCAAiC,MAAM,wDAQ3D,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAtoms = void 0;
4
+ const atome_1 = require("../../pc/molecularChemistry/atome");
5
+ const lineLastElements = ["He", "Ne", "Ar", "Kr", "Xe", "Rn", "Og"];
6
+ const getAtoms = (numberOfPeriodicTableLines) => {
7
+ if (!numberOfPeriodicTableLines)
8
+ return atome_1.atomes;
9
+ return atome_1.atomes.slice(0, atome_1.atomes.findIndex((a) => a.symbole === lineLastElements[numberOfPeriodicTableLines - 1]) + 1);
10
+ };
11
+ exports.getAtoms = getAtoms;
@@ -0,0 +1,2 @@
1
+ export declare const getElectronicConfigurationFromShells: (shells: number[]) => string;
2
+ //# sourceMappingURL=getElectronicConfigurationFromShells.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getElectronicConfigurationFromShells.d.ts","sourceRoot":"","sources":["../../../src/exercises/utils/getElectronicConfigurationFromShells.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oCAAoC,WAAY,MAAM,EAAE,WAOpE,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getElectronicConfigurationFromShells = void 0;
4
+ const electronsShells = [
5
+ { label: "1s", possibleNumberOfElectrons: 1 },
6
+ { label: "2s", possibleNumberOfElectrons: 2 },
7
+ { label: "2p", possibleNumberOfElectrons: 2 },
8
+ { label: "3s", possibleNumberOfElectrons: 3 },
9
+ { label: "3p", possibleNumberOfElectrons: 3 },
10
+ ];
11
+ const getElectronicConfigurationFromShells = (shells) => {
12
+ //get [2, 2, 6, 2, 6],
13
+ //return 1s^2 2s^2 2p^6 3s^2 3p^6
14
+ const tex = shells
15
+ .map((shell, index) => electronsShells[index].label + "^" + shell)
16
+ .join("\\ ");
17
+ return tex;
18
+ };
19
+ exports.getElectronicConfigurationFromShells = getElectronicConfigurationFromShells;
@@ -6,6 +6,7 @@ type GeogebraOptions = {
6
6
  isGridBold?: boolean;
7
7
  isGridSimple?: boolean;
8
8
  isXAxesNatural?: boolean;
9
+ axisLabels?: string[];
9
10
  };
10
11
  type GetAdaptedCoords = {
11
12
  xMin: number;
@@ -23,6 +24,7 @@ export declare class GeogebraConstructor {
23
24
  isGridBold: boolean;
24
25
  isAxesRatioFixed: boolean;
25
26
  isXAxesNatural: boolean;
27
+ axisLabels?: string[];
26
28
  constructor(commands: string[], options: GeogebraOptions | undefined);
27
29
  getAdaptedCoords({ xMin, xMax, yMin, yMax, forceShowAxes, }: GetAdaptedCoords): number[];
28
30
  getOptions(): GeogebraOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"geogebraConstructor.d.ts","sourceRoot":"","sources":["../../src/geogebra/geogebraConstructor.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;gBAEZ,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,SAAS;IAWpE,gBAAgB,CAAC,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,aAAa,GACd,EAAE,gBAAgB;IAmBnB,UAAU,IAAI,eAAe;CAW9B"}
1
+ {"version":3,"file":"geogebraConstructor.d.ts","sourceRoot":"","sources":["../../src/geogebra/geogebraConstruct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Simple ?? false;
13
13
  this.isXAxesNatural = options?.isXAxesNatural ?? false;
14
+ this.axisLabels = options?.axisLabels ?? undefined;
14
15
  }
15
16
  getAdaptedCoords({ xMin, xMax, yMin, yMax, forceShowAxes, }) {
16
17
  const showAxes = forceShowAxes ?? this.hideAxes ? false : true;
@@ -39,6 +40,7 @@ class GeogebraConstructor {
39
40
  gridDistance: this.gridDistance,
40
41
  isAxesRatioFixed: this.isAxesRatioFixed,
41
42
  isXAxesNatural: this.isXAxesNatural,
43
+ axisLabels: this.axisLabels,
42
44
  };
43
45
  }
44
46
  }
package/lib/index.d.ts CHANGED
@@ -3,6 +3,7 @@ declare global {
3
3
  interface Number {
4
4
  toTree: () => AlgebraicNode;
5
5
  frenchify: () => string;
6
+ toScientific: (decimals?: number) => AlgebraicNode;
6
7
  }
7
8
  }
8
9
  /**
@@ -207,6 +208,38 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
207
208
  a: number;
208
209
  b: number;
209
210
  c: number;
211
+ /**
212
+ * TODO
213
+ * Décimal : permettre facilement -0.xxx
214
+ * Tree shaking export
215
+ *
216
+ * VEA:
217
+ * -> -3x est bien transofmré en -3*x, x*(-3) mais pas en -x*3
218
+ * ->> faire le meme delire que pour les power mais pour les opposite ?
219
+ * c'est à dire créer toutes les permuts en déplacant le moins qquepart
220
+ * -> faire des nodes pour les Ensembles de nombre
221
+ *
222
+ * !-> choses pour lesquelles la v1 ne marchera pas :
223
+ * !-- fractions non réduites
224
+ * !-- nbs décimaux avec des 0
225
+ * !-- nb quelconque de moins, genre -3*-4 ou -x/-y
226
+ * !-> pour ces choses là il faut obligatoirement parser la rpéonse élève ?
227
+ *
228
+ * Passer les sqrtNode en tree-iable
229
+ *
230
+ *
231
+ *
232
+ * !!!à fix :
233
+ * ! fraction réductible
234
+ * ! 0,20 au lieu de 0,2
235
+ * ! moins partout dans fraction
236
+ * !puissances négatives vers inverse fraction
237
+ * ! simplification du ln
238
+ * ! meileure gestion des [] : le clavier devriat pouvoir produire des left/right ;
239
+ * !aussi en tapant [ puis diviser, le crochet passe en numérateur
240
+ * ! espace tous les 3 chiffres dans un nb (le clavier doit le fournir aussi!)
241
+
242
+ */
210
243
  d: number;
211
244
  }> | import("./exercises/exercise").Exercise<{
212
245
  k: number;
@@ -753,6 +786,9 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
753
786
  }> | import("./exercises/exercise").Exercise<{
754
787
  percent: number;
755
788
  nb: number;
789
+ }> | import("./exercises/exercise").Exercise<{
790
+ total: number;
791
+ lefties: number;
756
792
  }> | import("./exercises/exercise").Exercise<{
757
793
  int: number;
758
794
  power: number;
@@ -971,6 +1007,38 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
971
1007
  k: number;
972
1008
  }> | import("./exercises/exercise").Exercise<{
973
1009
  type: number;
1010
+ /**
1011
+ * TODO
1012
+ * Décimal : permettre facilement -0.xxx
1013
+ * Tree shaking export
1014
+ *
1015
+ * VEA:
1016
+ * -> -3x est bien transofmré en -3*x, x*(-3) mais pas en -x*3
1017
+ * ->> faire le meme delire que pour les power mais pour les opposite ?
1018
+ * c'est à dire créer toutes les permuts en déplacant le moins qquepart
1019
+ * -> faire des nodes pour les Ensembles de nombre
1020
+ *
1021
+ * !-> choses pour lesquelles la v1 ne marchera pas :
1022
+ * !-- fractions non réduites
1023
+ * !-- nbs décimaux avec des 0
1024
+ * !-- nb quelconque de moins, genre -3*-4 ou -x/-y
1025
+ * !-> pour ces choses là il faut obligatoirement parser la rpéonse élève ?
1026
+ *
1027
+ * Passer les sqrtNode en tree-iable
1028
+ *
1029
+ *
1030
+ *
1031
+ * !!!à fix :
1032
+ * ! fraction réductible
1033
+ * ! 0,20 au lieu de 0,2
1034
+ * ! moins partout dans fraction
1035
+ * !puissances négatives vers inverse fraction
1036
+ * ! simplification du ln
1037
+ * ! meileure gestion des [] : le clavier devriat pouvoir produire des left/right ;
1038
+ * !aussi en tapant [ puis diviser, le crochet passe en numérateur
1039
+ * ! espace tous les 3 chiffres dans un nb (le clavier doit le fournir aussi!)
1040
+
1041
+ */
974
1042
  a: number;
975
1043
  x: number;
976
1044
  b: number | undefined;
@@ -1013,6 +1081,23 @@ declare const mathExercises: (import("./exercises/exercise").Exercise<{
1013
1081
  angleValue: number;
1014
1082
  }>)[];
1015
1083
  declare const pcExercises: (import("./exercises/exercise").Exercise<{
1084
+ numbers: number[];
1085
+ }> | import("./exercises/exercise").Exercise<{
1086
+ randQuation: number;
1087
+ x1: string | number;
1088
+ x2: string | number;
1089
+ x3: string | number;
1090
+ x4: string | number;
1091
+ }> | import("./exercises/exercise").Exercise<{
1092
+ total: number;
1093
+ lefties: number;
1094
+ }> | import("./exercises/exercise").Exercise<{
1095
+ decimal: number;
1096
+ }> | import("./exercises/exercise").Exercise<{
1097
+ a: number;
1098
+ b: number;
1099
+ c: number;
1100
+ }> | import("./exercises/exercise").Exercise<{
1016
1101
  reactionArray: import("./pc/molecularChemistry/reaction").ReactionSpecies[];
1017
1102
  }> | import("./exercises/exercise").Exercise<{
1018
1103
  reactionArray: import("./pc/molecularChemistry/reaction").ReactionSpecies[];
@@ -1046,6 +1131,47 @@ declare const pcExercises: (import("./exercises/exercise").Exercise<{
1046
1131
  randomMaterial1: number;
1047
1132
  randomMaterial2: number;
1048
1133
  ramdonAngleIncidenceDeg: number;
1134
+ }> | import("./exercises/exercise").Exercise<{
1135
+ frequency1: number;
1136
+ frequency2: number;
1137
+ soundAsked: number;
1138
+ }> | import("./exercises/exercise").Exercise<{
1139
+ frequency: number;
1140
+ }> | import("./exercises/exercise").Exercise<{
1141
+ period: number;
1142
+ }> | import("./exercises/exercise").Exercise<{
1143
+ period: number;
1144
+ splinePoints: number[][];
1145
+ }> | import("./exercises/exercise").Exercise<{
1146
+ xA: number;
1147
+ yA: number;
1148
+ xB: number;
1149
+ yB: number;
1150
+ }> | import("./exercises/exercise").Exercise<{
1151
+ weight: number;
1152
+ originIsMoon: boolean;
1153
+ }> | import("./exercises/exercise").Exercise<{
1154
+ mass: number;
1155
+ }> | import("./exercises/exercise").Exercise<{
1156
+ lightYear: number;
1157
+ }> | import("./exercises/exercise").Exercise<{
1158
+ atomSymbol: import("./pc/molecularChemistry/atomSymbols").AtomSymbols;
1159
+ elementToFind: "proton" | "neutron" | "electron";
1160
+ }> | import("./exercises/exercise").Exercise<{
1161
+ atomSymbol: import("./pc/molecularChemistry/atomSymbols").AtomSymbols;
1162
+ }> | import("./exercises/exercise").Exercise<{
1163
+ atomSymbol: import("./pc/molecularChemistry/atomSymbols").AtomSymbols;
1164
+ }> | import("./exercises/exercise").Exercise<{
1165
+ atomSymbol: import("./pc/molecularChemistry/atomSymbols").AtomSymbols;
1166
+ }> | import("./exercises/exercise").Exercise<{
1167
+ totalWeight: number;
1168
+ percent: number;
1169
+ elWeight: number;
1170
+ type: number;
1171
+ }> | import("./exercises/exercise").Exercise<{}> | import("./exercises/exercise").Exercise<{
1172
+ atomSymbol: import("./pc/molecularChemistry/atomSymbols").AtomSymbols;
1173
+ }> | import("./exercises/exercise").Exercise<{
1174
+ atomSymbol: import("./pc/molecularChemistry/atomSymbols").AtomSymbols;
1049
1175
  }>)[];
1050
1176
  export { mathExercises, pcExercises };
1051
1177
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,MAAM,aAAa,CAAC;QAC5B,SAAS,EAAE,MAAM,MAAM,CAAC;KACzB;CACF;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BE;AAEF,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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