math-exercises 3.0.126 → 3.0.128
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.
- package/lib/exercises/math/calcul/arithmetics/isMultipleOrDivisor.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/isMultipleOrDivisor.js +0 -10
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.js +66 -42
- package/lib/exercises/math/calcul/operations/expressionNature.d.ts.map +1 -1
- package/lib/exercises/math/calcul/operations/expressionNature.js +0 -4
- package/lib/exercises/math/calcul/ordering/compareA10N.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareA10N.js +0 -1
- package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.js +6 -105
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.js +22 -9
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.js +7 -7
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.js +23 -14
- package/lib/exercises/math/calcul/ordering/decimalOrdering.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/decimalOrdering.js +0 -4
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +0 -4
- package/lib/exercises/math/calcul/ordering/integerOrdering.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/integerOrdering.js +0 -4
- package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +0 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportional.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportional.js +0 -4
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +0 -4
- package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.d.ts.map +1 -1
- package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.js +0 -1
- package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.d.ts.map +1 -1
- package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.js +0 -1
- package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.d.ts.map +1 -1
- package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.js +28 -14
- package/lib/exercises/math/calcul/sign/signFromAx.d.ts.map +1 -1
- package/lib/exercises/math/calcul/sign/signFromAx.js +0 -10
- package/lib/exercises/math/calculLitteral/equation/equationFromProblem.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationFromProblem.js +63 -24
- package/lib/exercises/math/calculLitteral/inequations/isInequalityTrue.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/isInequalityTrue.js +0 -10
- package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.js +6 -27
- package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.js +41 -39
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.js +1 -2
- package/lib/exercises/math/calculLitteral/simplifying/valuateExpression.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/simplifying/valuateExpression.js +0 -10
- package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.js +68 -23
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts +4 -1
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts.map +1 -1
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.js +52 -35
- package/lib/exercises/math/conversion/minutesToHours.d.ts.map +1 -1
- package/lib/exercises/math/conversion/minutesToHours.js +0 -1
- package/lib/exercises/math/conversion/prefixToNumber.d.ts.map +1 -1
- package/lib/exercises/math/conversion/prefixToNumber.js +14 -4
- package/lib/exercises/math/conversion/secondsToHours.d.ts.map +1 -1
- package/lib/exercises/math/conversion/secondsToHours.js +1 -2
- package/lib/exercises/math/dataRepresentations/barChartInterpreting.d.ts +5 -2
- package/lib/exercises/math/dataRepresentations/barChartInterpreting.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/barChartInterpreting.js +47 -31
- package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.js +5 -4
- package/lib/exercises/math/dataRepresentations/compareBoxPlot.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/compareBoxPlot.js +0 -1
- package/lib/exercises/math/dataRepresentations/dataToGraphGraphToData.js +4 -4
- package/lib/exercises/math/dataRepresentations/graphReading.js +13 -13
- package/lib/exercises/math/dataRepresentations/histogramReading.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/histogramReading.js +32 -32
- package/lib/exercises/math/dataRepresentations/plausibleGraph.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/plausibleGraph.js +53 -4
- package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.d.ts.map +1 -1
- package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.js +0 -1
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts.map +1 -1
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +0 -4
- package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +0 -1
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.js +17 -4
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.js +27 -10
- package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.js +33 -16
- package/lib/exercises/math/functions/affines/recognizeAffineGraph.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/recognizeAffineGraph.js +0 -4
- package/lib/exercises/math/functions/affines/representationOfAffine.d.ts +3 -0
- package/lib/exercises/math/functions/affines/representationOfAffine.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/representationOfAffine.js +121 -30
- package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.js +29 -11
- package/lib/exercises/math/functions/basics/isPointOnFunction.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/isPointOnFunction.js +0 -10
- package/lib/exercises/math/functions/basics/signOfFunction.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/signOfFunction.js +0 -10
- package/lib/exercises/math/functions/composition/functionComposition.d.ts.map +1 -1
- package/lib/exercises/math/functions/composition/functionComposition.js +2 -2
- package/lib/exercises/math/functions/cube/isPointOnCubicFunction.d.ts.map +1 -1
- package/lib/exercises/math/functions/cube/isPointOnCubicFunction.js +0 -10
- package/lib/exercises/math/functions/exponentials/exponentialsVariations.d.ts.map +1 -1
- package/lib/exercises/math/functions/exponentials/exponentialsVariations.js +0 -4
- package/lib/exercises/math/functions/inverse/compareInverseValues.d.ts.map +1 -1
- package/lib/exercises/math/functions/inverse/compareInverseValues.js +0 -1
- package/lib/exercises/math/functions/inverse/isPointOnReciprocalFunction.d.ts.map +1 -1
- package/lib/exercises/math/functions/inverse/isPointOnReciprocalFunction.js +0 -10
- package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts.map +1 -1
- package/lib/exercises/math/functions/parity/parityFromAlgebra.js +0 -4
- package/lib/exercises/math/functions/square/compareSquaredValues.d.ts.map +1 -1
- package/lib/exercises/math/functions/square/compareSquaredValues.js +0 -10
- package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.d.ts.map +1 -1
- package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +0 -4
- package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.d.ts.map +1 -1
- package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.js +0 -4
- package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.d.ts.map +1 -1
- package/lib/exercises/math/geometry/lines/isPointOnCartesianLine.js +0 -4
- package/lib/exercises/math/geometry/lines/isPointOnLine.d.ts.map +1 -1
- package/lib/exercises/math/geometry/lines/isPointOnLine.js +0 -4
- package/lib/exercises/math/geometry/lines/linesRelativePositions.d.ts.map +1 -1
- package/lib/exercises/math/geometry/lines/linesRelativePositions.js +0 -4
- package/lib/exercises/math/geometry/parametric/pointFromParametricLine.d.ts.map +1 -1
- package/lib/exercises/math/geometry/parametric/pointFromParametricLine.js +0 -4
- package/lib/exercises/math/geometry/pythagore/isTriangleRight.d.ts.map +1 -1
- package/lib/exercises/math/geometry/pythagore/isTriangleRight.js +0 -4
- package/lib/exercises/math/geometry/quadrilaterals/parallelogramRectangle.d.ts.map +1 -1
- package/lib/exercises/math/geometry/quadrilaterals/parallelogramRectangle.js +0 -4
- package/lib/exercises/math/geometry/quadrilaterals/parallelogramRhombus.d.ts.map +1 -1
- package/lib/exercises/math/geometry/quadrilaterals/parallelogramRhombus.js +0 -4
- package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.d.ts.map +1 -1
- package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.js +0 -4
- package/lib/exercises/math/geometry/shapes/basicShapesRecognition.d.ts.map +1 -1
- package/lib/exercises/math/geometry/shapes/basicShapesRecognition.js +6 -7
- package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.js +0 -10
- package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.js +0 -10
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +0 -4
- package/lib/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.js +0 -4
- package/lib/exercises/math/probaStat/basicProbas/mostLeastProbable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/mostLeastProbable.js +0 -10
- package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.js +24 -9
- package/lib/exercises/math/probaStat/checkEquiprobability.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/checkEquiprobability.js +0 -10
- package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.js +9 -6
- package/lib/exercises/math/probaStat/events/describeEvent.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/events/describeEvent.js +0 -10
- package/lib/exercises/math/probaStat/events/eventNotation.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/events/eventNotation.js +0 -10
- package/lib/exercises/math/probaStat/probaAsSumOfProbas.d.ts +0 -1
- package/lib/exercises/math/probaStat/probaAsSumOfProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/probaAsSumOfProbas.js +13 -14
- package/lib/exercises/math/probaStat/stats1var/compareSeriesDispersion.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/compareSeriesDispersion.js +0 -4
- package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.js +0 -10
- package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.js +2 -3
- package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.js +26 -25
- package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +0 -4
- package/lib/exercises/math/python/pythonForLoopInstructionCompletion.d.ts.map +1 -1
- package/lib/exercises/math/python/pythonForLoopInstructionCompletion.js +0 -10
- package/lib/exercises/math/python/pythonIfStatementCompletion.d.ts.map +1 -1
- package/lib/exercises/math/python/pythonIfStatementCompletion.js +7 -8
- package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.d.ts.map +1 -1
- package/lib/exercises/math/python/pythonSimpleFunctionInstructionCompletion.js +0 -10
- package/lib/exercises/math/python/pythonWhileStatementCompletion.d.ts.map +1 -1
- package/lib/exercises/math/python/pythonWhileStatementCompletion.js +5 -6
- package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.d.ts.map +1 -1
- package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.js +5 -6
- package/lib/exercises/math/python/variableType.d.ts.map +1 -1
- package/lib/exercises/math/python/variableType.js +0 -10
- package/lib/exercises/math/sampling/isSamplingRepresentative.d.ts.map +1 -1
- package/lib/exercises/math/sampling/isSamplingRepresentative.js +0 -4
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +0 -4
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +0 -4
- package/lib/exercises/math/sequences/geometric/geometricVariations.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricVariations.js +0 -4
- package/lib/exercises/math/sets/intervals/isNumberInInterval.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/isNumberInInterval.js +0 -10
- package/lib/exercises/math/sets/isNumberDecimal.d.ts.map +1 -1
- package/lib/exercises/math/sets/isNumberDecimal.js +0 -10
- package/lib/exercises/math/sets/nameOfNumberSets.d.ts.map +1 -1
- package/lib/exercises/math/sets/nameOfNumberSets.js +0 -10
- package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +0 -1
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +0 -4
- package/lib/exercises/pc/chemicalReactions/identifyLimitingReagent.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalReactions/identifyLimitingReagent.js +0 -4
- package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.js +0 -4
- package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +0 -4
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +0 -4
- package/lib/exercises/pc/moleculeNomenclature.d.ts.map +1 -1
- package/lib/exercises/pc/moleculeNomenclature.js +0 -4
- package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
- package/lib/exercises/pc/motion/motionReference.js +0 -4
- package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
- package/lib/exercises/pc/motion/typeOfAcceleration.js +0 -4
- package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -1
- package/lib/exercises/pc/sound/frequencyComparison.js +0 -4
- package/lib/index.d.ts +10 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/math/progCalc/progCalc.d.ts +3 -3
- package/lib/math/progCalc/progCalc.d.ts.map +1 -1
- package/lib/math/progCalc/progCalc.js +13 -3
- package/lib/tests/exoTest.d.ts.map +1 -1
- package/lib/tests/exoTest.js +7 -0
- package/lib/tests/questionTest.d.ts.map +1 -1
- package/lib/tests/questionTest.js +3 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythonForLoopInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonForLoopInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"pythonForLoopInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonForLoopInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AA2HF,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,WAAW,CAiBpE,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercis
|
|
|
2
2
|
import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { randint } from "../../../math/utils/random/randint.js";
|
|
4
4
|
import { random } from "../../../utils/alea/random.js";
|
|
5
|
-
import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
6
5
|
const getPropositions = (n, { answer, coeff, iterations, operation }) => {
|
|
7
6
|
const propositions = [];
|
|
8
7
|
addValidProp(propositions, answer, "raw");
|
|
@@ -88,14 +87,6 @@ a=a${operation}${coeff}
|
|
|
88
87
|
const getKeys = () => {
|
|
89
88
|
return [];
|
|
90
89
|
};
|
|
91
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
92
|
-
try {
|
|
93
|
-
return ans === answer;
|
|
94
|
-
}
|
|
95
|
-
catch (err) {
|
|
96
|
-
return handleVEAError(err);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
90
|
const getPythonRangeCompletionQuestion = () => {
|
|
100
91
|
const iterations = randint(2, 11);
|
|
101
92
|
const operation = random(["+", "-", "*", "/"]);
|
|
@@ -126,7 +117,6 @@ export const pythonForLoopInstructionCompletion = {
|
|
|
126
117
|
qcmTimer: 60,
|
|
127
118
|
freeTimer: 60,
|
|
128
119
|
getPropositions,
|
|
129
|
-
isAnswerValid,
|
|
130
120
|
subject: "Mathématiques",
|
|
131
121
|
getInstruction,
|
|
132
122
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythonIfStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonIfStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"pythonIfStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonIfStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA2GF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAoB7D,CAAC"}
|
|
@@ -5,16 +5,16 @@ import { random } from "../../../utils/alea/random.js";
|
|
|
5
5
|
import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
6
6
|
const getPropositions = (n, { answer, coeff }) => {
|
|
7
7
|
const propositions = [];
|
|
8
|
-
addValidProp(propositions, answer
|
|
9
|
-
tryToAddWrongProp(propositions,
|
|
10
|
-
tryToAddWrongProp(propositions,
|
|
11
|
-
tryToAddWrongProp(propositions,
|
|
12
|
-
tryToAddWrongProp(propositions,
|
|
8
|
+
addValidProp(propositions, `\\text{${answer}}`);
|
|
9
|
+
tryToAddWrongProp(propositions, `\\text{a<${coeff}}`);
|
|
10
|
+
tryToAddWrongProp(propositions, `\\text{a>${coeff}}`);
|
|
11
|
+
tryToAddWrongProp(propositions, `\\text{a<=${coeff}}`);
|
|
12
|
+
tryToAddWrongProp(propositions, `\\text{a>=${coeff}}`);
|
|
13
13
|
return shuffleProps(propositions, n);
|
|
14
14
|
};
|
|
15
15
|
const getAnswer = (identifiers) => {
|
|
16
16
|
const { coeff, ineq } = identifiers;
|
|
17
|
-
return
|
|
17
|
+
return `a${ineq}${coeff}`;
|
|
18
18
|
};
|
|
19
19
|
const getInstruction = (identifiers) => {
|
|
20
20
|
const { coeff, ineq } = identifiers;
|
|
@@ -88,7 +88,7 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
88
88
|
answer: getAnswer(identifiers),
|
|
89
89
|
instruction: getInstruction(identifiers),
|
|
90
90
|
keys: getKeys(identifiers),
|
|
91
|
-
answerFormat: "
|
|
91
|
+
answerFormat: "tex",
|
|
92
92
|
identifiers,
|
|
93
93
|
hint: getHint(identifiers),
|
|
94
94
|
correction: getCorrection(identifiers),
|
|
@@ -110,5 +110,4 @@ export const pythonIfStatementCompletion = {
|
|
|
110
110
|
getAnswer,
|
|
111
111
|
getQuestionFromIdentifiers,
|
|
112
112
|
hasHintAndCorrection: true,
|
|
113
|
-
answerType: "QCU",
|
|
114
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythonSimpleFunctionInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonSimpleFunctionInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"pythonSimpleFunctionInstructionCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonSimpleFunctionInstructionCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA8EF,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAAC,WAAW,CAqBzE,CAAC"}
|
|
@@ -3,7 +3,6 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
|
|
|
3
3
|
import { randint } from "../../../math/utils/random/randint.js";
|
|
4
4
|
import { add } from "../../../tree/nodes/operators/addNode.js";
|
|
5
5
|
import { multiply } from "../../../tree/nodes/operators/multiplyNode.js";
|
|
6
|
-
import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
7
6
|
const getPropositions = (n, { answer }) => {
|
|
8
7
|
const propositions = [];
|
|
9
8
|
addValidProp(propositions, answer, "raw");
|
|
@@ -43,14 +42,6 @@ ${getAnswer(identifiers)}`;
|
|
|
43
42
|
const getKeys = () => {
|
|
44
43
|
return [];
|
|
45
44
|
};
|
|
46
|
-
const isAnswerValid = () => {
|
|
47
|
-
try {
|
|
48
|
-
throw Error("VEA not implemented");
|
|
49
|
-
}
|
|
50
|
-
catch (err) {
|
|
51
|
-
return handleVEAError(err);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
45
|
const getPythonSimpleFunctionInstructionCompletionQuestion = () => {
|
|
55
46
|
const identifiers = {
|
|
56
47
|
m: randint(-10, 11, [-1, 0, 1]),
|
|
@@ -77,7 +68,6 @@ export const pythonSimpleFunctionInstructionCompletion = {
|
|
|
77
68
|
qcmTimer: 60,
|
|
78
69
|
freeTimer: 60,
|
|
79
70
|
getPropositions,
|
|
80
|
-
isAnswerValid,
|
|
81
71
|
subject: "Mathématiques",
|
|
82
72
|
getInstruction,
|
|
83
73
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythonWhileStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgFF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"pythonWhileStatementCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgFF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAqBhE,CAAC"}
|
|
@@ -5,13 +5,13 @@ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
|
5
5
|
const getPropositions = (n, { answer, threshold }) => {
|
|
6
6
|
const propositions = [];
|
|
7
7
|
addValidProp(propositions, answer, "raw");
|
|
8
|
-
tryToAddWrongProp(propositions,
|
|
9
|
-
tryToAddWrongProp(propositions,
|
|
10
|
-
tryToAddWrongProp(propositions,
|
|
8
|
+
tryToAddWrongProp(propositions, `${threshold}`, "raw");
|
|
9
|
+
tryToAddWrongProp(propositions, `x>${threshold}`, "raw");
|
|
10
|
+
tryToAddWrongProp(propositions, `x*3`, "raw");
|
|
11
11
|
return shuffleProps(propositions, n);
|
|
12
12
|
};
|
|
13
13
|
const getAnswer = (identifiers) => {
|
|
14
|
-
return
|
|
14
|
+
return `x<${identifiers.threshold}`;
|
|
15
15
|
};
|
|
16
16
|
const getInstruction = (identifiers) => {
|
|
17
17
|
return `On considère la fonction en Python ci-dessous. Cette fonction doit permettre, pour un paramètre \`x\` saisi en entrée, de déterminer combien de fois on doit tripler ce nombre pour qu'il dépasse $${identifiers.threshold}$.
|
|
@@ -61,7 +61,7 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
61
61
|
answer: getAnswer(identifiers),
|
|
62
62
|
instruction: getInstruction(identifiers),
|
|
63
63
|
keys: getKeys(identifiers),
|
|
64
|
-
answerFormat: "
|
|
64
|
+
answerFormat: "tex",
|
|
65
65
|
identifiers,
|
|
66
66
|
hint: getHint(identifiers),
|
|
67
67
|
correction: getCorrection(identifiers),
|
|
@@ -82,6 +82,5 @@ export const pythonWhileStatementCompletion = {
|
|
|
82
82
|
getCorrection,
|
|
83
83
|
getQuestionFromIdentifiers,
|
|
84
84
|
hasHintAndCorrection: true,
|
|
85
|
-
answerType: "QCU",
|
|
86
85
|
maxAllowedQuestions: 15,
|
|
87
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythonWhileStatementOperationCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementOperationCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAuGF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"pythonWhileStatementOperationCompletion.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/pythonWhileStatementOperationCompletion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAuGF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAAC,WAAW,CAqBzE,CAAC"}
|
|
@@ -6,13 +6,13 @@ import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
|
6
6
|
const getPropositions = (n, { answer, operation, coeff }) => {
|
|
7
7
|
const propositions = [];
|
|
8
8
|
addValidProp(propositions, answer, "raw");
|
|
9
|
-
tryToAddWrongProp(propositions,
|
|
10
|
-
tryToAddWrongProp(propositions,
|
|
11
|
-
tryToAddWrongProp(propositions,
|
|
9
|
+
tryToAddWrongProp(propositions, `${operation}${coeff}`, "raw");
|
|
10
|
+
tryToAddWrongProp(propositions, `x>1500`, "raw");
|
|
11
|
+
tryToAddWrongProp(propositions, `${coeff}`, "raw");
|
|
12
12
|
return shuffleProps(propositions, n);
|
|
13
13
|
};
|
|
14
14
|
const getAnswer = (identifiers) => {
|
|
15
|
-
return
|
|
15
|
+
return `x${identifiers.operation}${identifiers.coeff}`;
|
|
16
16
|
};
|
|
17
17
|
const getInstruction = (identifiers) => {
|
|
18
18
|
const { coeff, operation } = identifiers;
|
|
@@ -93,7 +93,7 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
93
93
|
answer: getAnswer(identifiers),
|
|
94
94
|
instruction: getInstruction(identifiers),
|
|
95
95
|
keys: getKeys(identifiers),
|
|
96
|
-
answerFormat: "
|
|
96
|
+
answerFormat: "tex",
|
|
97
97
|
identifiers,
|
|
98
98
|
hint: getHint(identifiers),
|
|
99
99
|
correction: getCorrection(identifiers),
|
|
@@ -114,6 +114,5 @@ export const pythonWhileStatementOperationCompletion = {
|
|
|
114
114
|
getCorrection,
|
|
115
115
|
getQuestionFromIdentifiers,
|
|
116
116
|
hasHintAndCorrection: true,
|
|
117
|
-
answerType: "QCU",
|
|
118
117
|
maxAllowedQuestions: 15,
|
|
119
118
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableType.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/variableType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"variableType.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/python/variableType.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAiGF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAiB9C,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
|
|
2
2
|
import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { randint } from "../../../math/utils/random/randint.js";
|
|
4
|
-
import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
5
4
|
const getPropositions = (n, { answer }) => {
|
|
6
5
|
const propositions = [];
|
|
7
6
|
addValidProp(propositions, answer, "raw");
|
|
@@ -58,14 +57,6 @@ Ici, la variable \`v\` est de type ${explanationType.toLocaleLowerCase()}.`;
|
|
|
58
57
|
const getKeys = () => {
|
|
59
58
|
return [];
|
|
60
59
|
};
|
|
61
|
-
const isAnswerValid = () => {
|
|
62
|
-
try {
|
|
63
|
-
throw Error("VEA not implemented");
|
|
64
|
-
}
|
|
65
|
-
catch (err) {
|
|
66
|
-
return handleVEAError(err);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
60
|
const getVariableTypeQuestion = () => {
|
|
70
61
|
const vTypes = ["int", "float", "str"];
|
|
71
62
|
const vType = vTypes[randint(0, vTypes.length)];
|
|
@@ -107,7 +98,6 @@ export const variableType = {
|
|
|
107
98
|
qcmTimer: 60,
|
|
108
99
|
freeTimer: 60,
|
|
109
100
|
getPropositions,
|
|
110
|
-
isAnswerValid,
|
|
111
101
|
subject: "Mathématiques",
|
|
112
102
|
getInstruction,
|
|
113
103
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSamplingRepresentative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sampling/isSamplingRepresentative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"isSamplingRepresentative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sampling/isSamplingRepresentative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AA8GF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAa1D,CAAC"}
|
|
@@ -62,9 +62,6 @@ ${identifiers.isRepresentative
|
|
|
62
62
|
const getKeys = () => {
|
|
63
63
|
return [];
|
|
64
64
|
};
|
|
65
|
-
const isAnswerValid = () => {
|
|
66
|
-
throw Error("VEA not implemented");
|
|
67
|
-
};
|
|
68
65
|
const getIsSamplingRepresentativeQuestion = () => {
|
|
69
66
|
const p = randfloat(0.2, 0.8, 2);
|
|
70
67
|
const n = 50 * randint(1, 20);
|
|
@@ -105,7 +102,6 @@ export const isSamplingRepresentative = {
|
|
|
105
102
|
qcmTimer: 60,
|
|
106
103
|
freeTimer: 60,
|
|
107
104
|
getPropositions,
|
|
108
|
-
isAnswerValid,
|
|
109
105
|
subject: "Mathématiques",
|
|
110
106
|
getQuestionFromIdentifiers,
|
|
111
107
|
hasHintAndCorrection: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recognizeArithmeticFromFirstTerms.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"recognizeArithmeticFromFirstTerms.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAmGF,eAAO,MAAM,iCAAiC,EAAE,QAAQ,CAAC,WAAW,CAcnE,CAAC"}
|
|
@@ -76,9 +76,6 @@ const getPropositions = (_n, { answer, sequences, answerIndex }) => {
|
|
|
76
76
|
});
|
|
77
77
|
return shuffle(propositions);
|
|
78
78
|
};
|
|
79
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
80
|
-
return ans === answer;
|
|
81
|
-
};
|
|
82
79
|
export const recognizeArithmeticFromFirstTerms = {
|
|
83
80
|
id: "recognizeArithmeticFromFirstTerms",
|
|
84
81
|
label: "Reconnaître une suite arithmétique via ses premiers termes",
|
|
@@ -87,7 +84,6 @@ export const recognizeArithmeticFromFirstTerms = {
|
|
|
87
84
|
qcmTimer: 60,
|
|
88
85
|
freeTimer: 60,
|
|
89
86
|
getPropositions,
|
|
90
|
-
isAnswerValid,
|
|
91
87
|
answerType: "QCU",
|
|
92
88
|
subject: "Mathématiques",
|
|
93
89
|
hasHintAndCorrection: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recognizeArithmeticFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"recognizeArithmeticFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAiGF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAa9D,CAAC"}
|
|
@@ -85,9 +85,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
85
85
|
tryToAddWrongProp(propositions, "Non", "raw");
|
|
86
86
|
return shuffleProps(propositions, n);
|
|
87
87
|
};
|
|
88
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
89
|
-
return ans === answer;
|
|
90
|
-
};
|
|
91
88
|
export const recognizeArithmeticFromGraph = {
|
|
92
89
|
id: "recognizeArithmeticFromGraph",
|
|
93
90
|
label: "Reconnaître graphiquement si une suite est arithmétique",
|
|
@@ -96,7 +93,6 @@ export const recognizeArithmeticFromGraph = {
|
|
|
96
93
|
qcmTimer: 60,
|
|
97
94
|
freeTimer: 60,
|
|
98
95
|
getPropositions,
|
|
99
|
-
isAnswerValid,
|
|
100
96
|
answerType: "QCU",
|
|
101
97
|
hasGeogebra: true,
|
|
102
98
|
subject: "Mathématiques",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometricVariations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/geometric/geometricVariations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"geometricVariations.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/geometric/geometricVariations.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiHF,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAiBrD,CAAC"}
|
|
@@ -68,9 +68,6 @@ Ainsi, la suite $u_n = ${statement.toTex()}$ est ${answer.toLocaleLowerCase()}.
|
|
|
68
68
|
const getKeys = () => {
|
|
69
69
|
return [];
|
|
70
70
|
};
|
|
71
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
72
|
-
return ans === answer;
|
|
73
|
-
};
|
|
74
71
|
const getGeometricVariationsQuestion = () => {
|
|
75
72
|
const a = randfloat(0.1, 3, 2, [1]) * (coinFlip() ? 1 : -1);
|
|
76
73
|
const qLessThanOne = coinFlip();
|
|
@@ -113,7 +110,6 @@ export const geometricVariations = {
|
|
|
113
110
|
qcmTimer: 60,
|
|
114
111
|
freeTimer: 60,
|
|
115
112
|
getPropositions,
|
|
116
|
-
isAnswerValid,
|
|
117
113
|
subject: "Mathématiques",
|
|
118
114
|
getInstruction,
|
|
119
115
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isNumberInInterval.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sets/intervals/isNumberInInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"isNumberInInterval.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sets/intervals/isNumberInInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AA+KF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAiBpD,CAAC"}
|
|
@@ -8,7 +8,6 @@ import { ClosureType } from "../../../../tree/nodes/sets/closure.js";
|
|
|
8
8
|
import { IntervalNode } from "../../../../tree/nodes/sets/intervalNode.js";
|
|
9
9
|
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
10
10
|
import { random } from "../../../../utils/alea/random.js";
|
|
11
|
-
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
12
11
|
const getPropositions = (n, { answer }) => {
|
|
13
12
|
const propositions = [];
|
|
14
13
|
addValidProp(propositions, answer, "tex");
|
|
@@ -91,14 +90,6 @@ ${result
|
|
|
91
90
|
const getKeys = () => {
|
|
92
91
|
return [];
|
|
93
92
|
};
|
|
94
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
95
|
-
try {
|
|
96
|
-
return ans === answer;
|
|
97
|
-
}
|
|
98
|
-
catch (err) {
|
|
99
|
-
return handleVEAError(err);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
93
|
const getIsNumberInIntervalQuestion = () => {
|
|
103
94
|
const lowerBound = coinFlip()
|
|
104
95
|
? randint(-10, 10)
|
|
@@ -162,7 +153,6 @@ export const isNumberInInterval = {
|
|
|
162
153
|
qcmTimer: 60,
|
|
163
154
|
freeTimer: 60,
|
|
164
155
|
getPropositions,
|
|
165
|
-
isAnswerValid,
|
|
166
156
|
subject: "Mathématiques",
|
|
167
157
|
getInstruction,
|
|
168
158
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isNumberDecimal.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/isNumberDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"isNumberDecimal.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/isNumberDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QACP,CAAC,EAAE,eAAe,CAAC;QACnB,SAAS,EAAE,OAAO,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AA4HF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAkBjD,CAAC"}
|
|
@@ -10,7 +10,6 @@ import { isFractionNode } from "../../../tree/nodes/operators/fractionNode.js";
|
|
|
10
10
|
import { coinFlip } from "../../../utils/alea/coinFlip.js";
|
|
11
11
|
import { random } from "../../../utils/alea/random.js";
|
|
12
12
|
import { doWhile } from "../../../utils/doWhile.js";
|
|
13
|
-
import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
14
13
|
const getPropositions = (n, { options }) => {
|
|
15
14
|
const propositions = [];
|
|
16
15
|
for (const { a, isDecimal } of options) {
|
|
@@ -69,14 +68,6 @@ const getCorrection = (identifiers) => {
|
|
|
69
68
|
const getKeys = () => {
|
|
70
69
|
return [];
|
|
71
70
|
};
|
|
72
|
-
const isAnswerValid = () => {
|
|
73
|
-
try {
|
|
74
|
-
throw Error("VEA not implemented");
|
|
75
|
-
}
|
|
76
|
-
catch (err) {
|
|
77
|
-
return handleVEAError(err);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
71
|
const generateNonDecimalNumber = () => {
|
|
81
72
|
const nonDecimals = [];
|
|
82
73
|
nonDecimals.push(RationalConstructor.randomPureRational().toTree());
|
|
@@ -130,7 +121,6 @@ export const isNumberdecimal = {
|
|
|
130
121
|
qcmTimer: 60,
|
|
131
122
|
freeTimer: 60,
|
|
132
123
|
getPropositions,
|
|
133
|
-
isAnswerValid,
|
|
134
124
|
subject: "Mathématiques",
|
|
135
125
|
getInstruction,
|
|
136
126
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nameOfNumberSets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/nameOfNumberSets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"nameOfNumberSets.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/sets/nameOfNumberSets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAwIF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAgBlD,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercis
|
|
|
2
2
|
import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { randint } from "../../../math/utils/random/randint.js";
|
|
4
4
|
import { coinFlip } from "../../../utils/alea/coinFlip.js";
|
|
5
|
-
import { handleVEAError } from "../../../utils/errors/handleVEAError.js";
|
|
6
5
|
const getPropositions = (n, { answer, isQuestionAboutNotation }) => {
|
|
7
6
|
const propositions = [];
|
|
8
7
|
if (isQuestionAboutNotation) {
|
|
@@ -82,14 +81,6 @@ const getInstruction = ({ isQuestionAboutNotation, caseNumber, }) => {
|
|
|
82
81
|
const getKeys = () => {
|
|
83
82
|
return ["naturals", "integers", "rationals", "decimals", "reals"];
|
|
84
83
|
};
|
|
85
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
86
|
-
try {
|
|
87
|
-
return ans === answer;
|
|
88
|
-
}
|
|
89
|
-
catch (err) {
|
|
90
|
-
return handleVEAError(err);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
84
|
const getNameOfNumberSetsQuestion = () => {
|
|
94
85
|
const caseNumber = randint(0, 5);
|
|
95
86
|
const isQuestionAboutNotation = coinFlip();
|
|
@@ -117,7 +108,6 @@ export const nameOfNumberSets = {
|
|
|
117
108
|
maxAllowedQuestions: 5,
|
|
118
109
|
freeTimer: 60,
|
|
119
110
|
getPropositions,
|
|
120
|
-
isAnswerValid,
|
|
121
111
|
subject: "Mathématiques",
|
|
122
112
|
getInstruction,
|
|
123
113
|
getAnswer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atomicStructureOfNucleus.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/atomicStructureOfNucleus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,WAAW,CAAA;CAAE,CAAC;AA0F/C,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"atomicStructureOfNucleus.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/atomicStructureOfNucleus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,WAAW,CAAA;CAAE,CAAC;AA0F/C,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAY1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifyRightElectronicConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"identifyRightElectronicConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAKnF,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,WAAW,CAAC;CACzB,CAAC;AA2HF,eAAO,MAAM,oCAAoC,EAAE,QAAQ,CAAC,WAAW,CAiBtE,CAAC"}
|
|
@@ -94,9 +94,6 @@ const getPropositions = (n, { answer, atomSymbol }) => {
|
|
|
94
94
|
});
|
|
95
95
|
return shuffleProps(propositions, n);
|
|
96
96
|
};
|
|
97
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
98
|
-
return ans === answer;
|
|
99
|
-
};
|
|
100
97
|
export const identifyRightElectronicConfiguration = {
|
|
101
98
|
id: "identifyRightElectronicConfiguration",
|
|
102
99
|
label: "Identifier la bonne configuration électronique",
|
|
@@ -105,7 +102,6 @@ export const identifyRightElectronicConfiguration = {
|
|
|
105
102
|
qcmTimer: 60,
|
|
106
103
|
freeTimer: 60,
|
|
107
104
|
getPropositions,
|
|
108
|
-
isAnswerValid,
|
|
109
105
|
subject: "Chimie",
|
|
110
106
|
answerType: "QCU",
|
|
111
107
|
maxAllowedQuestions: 16,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifyLimitingReagent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyLimitingReagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"identifyLimitingReagent.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyLimitingReagent.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAIrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;CAClC,CAAC;AAgGF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAYzD,CAAC"}
|
|
@@ -55,9 +55,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
55
55
|
tryToAddWrongProp(propositions, "Le réactif B", "raw");
|
|
56
56
|
return shuffleProps(propositions, n);
|
|
57
57
|
};
|
|
58
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
59
|
-
return ans === answer;
|
|
60
|
-
};
|
|
61
58
|
export const identifyLimitingReagent = {
|
|
62
59
|
id: "identifyLimitingReagent",
|
|
63
60
|
label: "Identifier un réactif limitant",
|
|
@@ -66,7 +63,6 @@ export const identifyLimitingReagent = {
|
|
|
66
63
|
qcmTimer: 60,
|
|
67
64
|
freeTimer: 60,
|
|
68
65
|
getPropositions,
|
|
69
|
-
isAnswerValid,
|
|
70
66
|
subject: "Chimie",
|
|
71
67
|
answerType: "QCU",
|
|
72
68
|
getQuestionFromIdentifiers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifyStoichiometricMixture.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyStoichiometricMixture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"identifyStoichiometricMixture.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/identifyStoichiometricMixture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAsGF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAY/D,CAAC"}
|
|
@@ -62,9 +62,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
62
62
|
tryToAddWrongProp(propositions, "Non", "raw");
|
|
63
63
|
return shuffleProps(propositions, n);
|
|
64
64
|
};
|
|
65
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
66
|
-
return ans === answer;
|
|
67
|
-
};
|
|
68
65
|
export const identifyStoichiometricMixture = {
|
|
69
66
|
id: "identifyStoichiometricMixture",
|
|
70
67
|
label: "Identifier un mélange stœchiométrique",
|
|
@@ -73,7 +70,6 @@ export const identifyStoichiometricMixture = {
|
|
|
73
70
|
qcmTimer: 60,
|
|
74
71
|
freeTimer: 60,
|
|
75
72
|
getPropositions,
|
|
76
|
-
isAnswerValid,
|
|
77
73
|
subject: "Chimie",
|
|
78
74
|
answerType: "QCU",
|
|
79
75
|
getQuestionFromIdentifiers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stoichiometricReaction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/stoichiometricReaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"stoichiometricReaction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/chemicalReactions/stoichiometricReaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IAEX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAwEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAYxD,CAAC"}
|
|
@@ -64,9 +64,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
64
64
|
tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
|
|
65
65
|
return shuffleProps(propositions, n);
|
|
66
66
|
};
|
|
67
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
68
|
-
return ans === answer;
|
|
69
|
-
};
|
|
70
67
|
export const stoichiometricReaction = {
|
|
71
68
|
id: "stoichiometricReaction",
|
|
72
69
|
label: "Déterminer si une réaction est stœchiométrique",
|
|
@@ -75,7 +72,6 @@ export const stoichiometricReaction = {
|
|
|
75
72
|
qcmTimer: 60,
|
|
76
73
|
freeTimer: 60,
|
|
77
74
|
getPropositions,
|
|
78
|
-
isAnswerValid,
|
|
79
75
|
answerType: "QCU",
|
|
80
76
|
subject: "Physique",
|
|
81
77
|
getQuestionFromIdentifiers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ohmicConductorOrGenerator.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/electricity/ohmicConductorOrGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"ohmicConductorOrGenerator.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/electricity/ohmicConductorOrGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AA6FF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
|
|
@@ -39,9 +39,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
39
39
|
tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
|
|
40
40
|
return shuffleProps(propositions, n);
|
|
41
41
|
};
|
|
42
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
43
|
-
return ans === answer;
|
|
44
|
-
};
|
|
45
42
|
const getGGBOptions = (identifiers) => {
|
|
46
43
|
const { type, end } = identifiers;
|
|
47
44
|
const points = [];
|
|
@@ -87,7 +84,6 @@ export const ohmicConductorOrGenerator = {
|
|
|
87
84
|
qcmTimer: 60,
|
|
88
85
|
freeTimer: 60,
|
|
89
86
|
getPropositions,
|
|
90
|
-
isAnswerValid,
|
|
91
87
|
answerType: "QCU",
|
|
92
88
|
maxAllowedQuestions: 10,
|
|
93
89
|
subject: "Physique",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moleculeNomenclature.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/moleculeNomenclature.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"moleculeNomenclature.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/moleculeNomenclature.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAmEF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
|
|
@@ -44,9 +44,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
44
44
|
});
|
|
45
45
|
return shuffle(propositions);
|
|
46
46
|
};
|
|
47
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
48
|
-
return ans === answer;
|
|
49
|
-
};
|
|
50
47
|
export const moleculeNomenclature = {
|
|
51
48
|
id: "moleculeNomenclature",
|
|
52
49
|
connector: "\\iff",
|
|
@@ -57,7 +54,6 @@ export const moleculeNomenclature = {
|
|
|
57
54
|
qcmTimer: 60,
|
|
58
55
|
freeTimer: 60,
|
|
59
56
|
getPropositions,
|
|
60
|
-
isAnswerValid,
|
|
61
57
|
maxAllowedQuestions: 20,
|
|
62
58
|
getQuestionFromIdentifiers,
|
|
63
59
|
answerType: "QCU",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motionReference.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/motionReference.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"motionReference.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/motionReference.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,WAAW,GAAG,QAAQ,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAsNF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
|
|
@@ -166,9 +166,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
166
166
|
tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
|
|
167
167
|
return shuffleProps(propositions, n);
|
|
168
168
|
};
|
|
169
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
170
|
-
return ans === answer;
|
|
171
|
-
};
|
|
172
169
|
export const MotionReferenceExercise = {
|
|
173
170
|
id: "motionReference",
|
|
174
171
|
label: "Déterminer le mouvement relatif entre deux objets",
|
|
@@ -178,7 +175,6 @@ export const MotionReferenceExercise = {
|
|
|
178
175
|
qcmTimer: 60,
|
|
179
176
|
freeTimer: 60,
|
|
180
177
|
getPropositions,
|
|
181
|
-
isAnswerValid,
|
|
182
178
|
subject: "Physique",
|
|
183
179
|
maxAllowedQuestions: 10,
|
|
184
180
|
hasHintAndCorrection: true,
|