math-exercises 3.0.127 → 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.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.js +14 -4
- 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 +1 -2
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.js +0 -1
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.js +0 -1
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.js +20 -11
- 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 +6 -7
- 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/ordering/compareAMinusB.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.js +38 -34
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.js +0 -1
- 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 +0 -1
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts.map +1 -1
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.js +0 -1
- 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/secondsToHours.d.ts.map +1 -1
- package/lib/exercises/math/conversion/secondsToHours.js +0 -1
- package/lib/exercises/math/dataRepresentations/compareBoxPlot.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/compareBoxPlot.js +0 -1
- 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 +0 -1
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.js +0 -1
- package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.d.ts.map +1 -1
- 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/basics/coordsOfPointOnCurveFindY.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.js +0 -1
- 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/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/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 +0 -1
- 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/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/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/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
|
@@ -5,7 +5,6 @@ import { randint } from "../../../../math/utils/random/randint.js";
|
|
|
5
5
|
import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
6
6
|
import { square } from "../../../../tree/nodes/operators/powerNode.js";
|
|
7
7
|
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
8
|
-
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
9
8
|
const getPropositions = (n, { answer }) => {
|
|
10
9
|
const propositions = [];
|
|
11
10
|
const symbols = ["<", "=", ">"];
|
|
@@ -70,14 +69,6 @@ $$
|
|
|
70
69
|
const getKeys = () => {
|
|
71
70
|
return [];
|
|
72
71
|
};
|
|
73
|
-
const isAnswerValid = () => {
|
|
74
|
-
try {
|
|
75
|
-
throw Error("VEA not implemented");
|
|
76
|
-
}
|
|
77
|
-
catch (err) {
|
|
78
|
-
return handleVEAError(err);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
72
|
const randCase = () => Math.floor(Math.random() * 2);
|
|
82
73
|
function randBetween(isInteger, min, max, roundTo, excludes) {
|
|
83
74
|
if (isInteger) {
|
|
@@ -132,7 +123,6 @@ export const compareSquaredValues = {
|
|
|
132
123
|
qcmTimer: 60,
|
|
133
124
|
freeTimer: 60,
|
|
134
125
|
getPropositions,
|
|
135
|
-
isAnswerValid,
|
|
136
126
|
subject: "Mathématiques",
|
|
137
127
|
getInstruction,
|
|
138
128
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convexityTrinomialsGeo.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/convexity/convexityTrinomialsGeo.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"convexityTrinomialsGeo.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/convexity/convexityTrinomialsGeo.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAqEF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAaxD,CAAC"}
|
|
@@ -54,9 +54,6 @@ const getPropositions = (_n, { answer }) => {
|
|
|
54
54
|
tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
|
|
55
55
|
return propositions;
|
|
56
56
|
};
|
|
57
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
58
|
-
return ans === answer;
|
|
59
|
-
};
|
|
60
57
|
export const convexityTrinomialsGeo = {
|
|
61
58
|
id: "convexityTrinomialsGeo",
|
|
62
59
|
label: "Déterminer graphiquement la convexité d'un trinôme",
|
|
@@ -66,7 +63,6 @@ export const convexityTrinomialsGeo = {
|
|
|
66
63
|
freeTimer: 60,
|
|
67
64
|
answerType: "QCU",
|
|
68
65
|
getPropositions,
|
|
69
|
-
isAnswerValid,
|
|
70
66
|
hasGeogebra: true,
|
|
71
67
|
subject: "Mathématiques",
|
|
72
68
|
getQuestionFromIdentifiers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pythagoreOrThales.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/euclidian/pythagoreOrThales.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"pythagoreOrThales.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/euclidian/pythagoreOrThales.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAGL,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAYtC,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IAEzB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;CAQnB,CAAC;AAqRF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAsBnD,CAAC"}
|
|
@@ -165,9 +165,6 @@ const getGGBOptions = (identifiers) => {
|
|
|
165
165
|
const getKeys = () => {
|
|
166
166
|
return [];
|
|
167
167
|
};
|
|
168
|
-
const isAnswerValid = () => {
|
|
169
|
-
throw Error("VEA not implemented");
|
|
170
|
-
};
|
|
171
168
|
const getPythagoreOrThalesQuestion = () => {
|
|
172
169
|
const isSegmentHeight = coinFlip();
|
|
173
170
|
const isAskingLength = coinFlip();
|
|
@@ -247,7 +244,6 @@ export const pythagoreOrThales = {
|
|
|
247
244
|
qcmTimer: 60,
|
|
248
245
|
freeTimer: 60,
|
|
249
246
|
getPropositions,
|
|
250
|
-
isAnswerValid,
|
|
251
247
|
subject: "Mathématiques",
|
|
252
248
|
// getHint,
|
|
253
249
|
// getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPointOnCartesianLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/lines/isPointOnCartesianLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"isPointOnCartesianLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/lines/isPointOnCartesianLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAQ7C,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAsHF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAiBxD,CAAC"}
|
|
@@ -62,9 +62,6 @@ ${identifiers.isOnLine
|
|
|
62
62
|
const getKeys = () => {
|
|
63
63
|
return [];
|
|
64
64
|
};
|
|
65
|
-
const isAnswerValid = () => {
|
|
66
|
-
throw Error("VEA not implemented");
|
|
67
|
-
};
|
|
68
65
|
const getIsPointOnLineQuestion = () => {
|
|
69
66
|
let a;
|
|
70
67
|
let b;
|
|
@@ -113,7 +110,6 @@ export const isPointOnCartesianLine = {
|
|
|
113
110
|
qcmTimer: 60,
|
|
114
111
|
freeTimer: 60,
|
|
115
112
|
getPropositions,
|
|
116
|
-
isAnswerValid,
|
|
117
113
|
subject: "Mathématiques",
|
|
118
114
|
getHint,
|
|
119
115
|
getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isPointOnLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/lines/isPointOnLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"isPointOnLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/lines/isPointOnLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAuFF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAiB/C,CAAC"}
|
|
@@ -48,9 +48,6 @@ ${identifiers.isOnLine
|
|
|
48
48
|
const getKeys = () => {
|
|
49
49
|
return [];
|
|
50
50
|
};
|
|
51
|
-
const isAnswerValid = () => {
|
|
52
|
-
throw Error("VEA not implemented");
|
|
53
|
-
};
|
|
54
51
|
const getIsPointOnLineQuestion = () => {
|
|
55
52
|
const affine = AffineConstructor.random();
|
|
56
53
|
const x = randint(-10, 10);
|
|
@@ -87,7 +84,6 @@ export const isPointOnLine = {
|
|
|
87
84
|
qcmTimer: 60,
|
|
88
85
|
freeTimer: 60,
|
|
89
86
|
getPropositions,
|
|
90
|
-
isAnswerValid,
|
|
91
87
|
subject: "Mathématiques",
|
|
92
88
|
getHint,
|
|
93
89
|
getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linesRelativePositions.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/lines/linesRelativePositions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"linesRelativePositions.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/lines/linesRelativePositions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAE/D,WAAW,EAAE,MAAM,CAAC;CAKrB,CAAC;AAmKF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAoBxD,CAAC"}
|
|
@@ -76,9 +76,6 @@ const getGGBOptions = (identifiers) => {
|
|
|
76
76
|
const getKeys = () => {
|
|
77
77
|
return [];
|
|
78
78
|
};
|
|
79
|
-
const isAnswerValid = () => {
|
|
80
|
-
throw Error("VEA not implemented");
|
|
81
|
-
};
|
|
82
79
|
const getLinesRelativePositionsQuestion = () => {
|
|
83
80
|
// const permut = shuffle([1, 2, 3, 4, 5]);
|
|
84
81
|
const permut = [1, 2, 3, 4, 5];
|
|
@@ -151,7 +148,6 @@ export const linesRelativePositions = {
|
|
|
151
148
|
qcmTimer: 60,
|
|
152
149
|
freeTimer: 60,
|
|
153
150
|
getPropositions,
|
|
154
|
-
isAnswerValid,
|
|
155
151
|
subject: "Mathématiques",
|
|
156
152
|
// getHint,
|
|
157
153
|
// getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointFromParametricLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/parametric/pointFromParametricLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"pointFromParametricLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/parametric/pointFromParametricLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAwFF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAmBzD,CAAC"}
|
|
@@ -36,9 +36,6 @@ Le point $${askedPoint.toTexWithCoords()}$ appartient-il à $d$ ?
|
|
|
36
36
|
const getKeys = () => {
|
|
37
37
|
return [];
|
|
38
38
|
};
|
|
39
|
-
const isAnswerValid = () => {
|
|
40
|
-
throw Error("VEA not implemented");
|
|
41
|
-
};
|
|
42
39
|
const getPointFromParametricLineQuestion = () => {
|
|
43
40
|
const startPoint = SpacePointConstructor.random("A");
|
|
44
41
|
const vector = SpaceVectorConstructor.random("B");
|
|
@@ -85,7 +82,6 @@ export const pointFromParametricLine = {
|
|
|
85
82
|
qcmTimer: 60,
|
|
86
83
|
freeTimer: 60,
|
|
87
84
|
getPropositions,
|
|
88
|
-
isAnswerValid,
|
|
89
85
|
subject: "Mathématiques",
|
|
90
86
|
// getHint,
|
|
91
87
|
// getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTriangleRight.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/pythagore/isTriangleRight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"isTriangleRight.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/pythagore/isTriangleRight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AA+GF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAkBjD,CAAC"}
|
|
@@ -59,9 +59,6 @@ ${identifiers.isRight
|
|
|
59
59
|
const getKeys = () => {
|
|
60
60
|
return [];
|
|
61
61
|
};
|
|
62
|
-
const isAnswerValid = () => {
|
|
63
|
-
throw Error("VEA not implemented");
|
|
64
|
-
};
|
|
65
62
|
const getIsTriangleRightQuestion = () => {
|
|
66
63
|
const isRight = coinFlip();
|
|
67
64
|
const startVertix = randomLetter(true, ["Y", "Z"]);
|
|
@@ -101,7 +98,6 @@ export const isTriangleRight = {
|
|
|
101
98
|
qcmTimer: 60,
|
|
102
99
|
freeTimer: 60,
|
|
103
100
|
getPropositions,
|
|
104
|
-
isAnswerValid,
|
|
105
101
|
subject: "Mathématiques",
|
|
106
102
|
getHint,
|
|
107
103
|
getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallelogramRectangle.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/quadrilaterals/parallelogramRectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"parallelogramRectangle.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/quadrilaterals/parallelogramRectangle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,eAAe,CAAC;IACpB,EAAE,EAAE,eAAe,CAAC;IACpB,EAAE,EAAE,eAAe,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAwIF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAoBxD,CAAC"}
|
|
@@ -89,9 +89,6 @@ const getGGBOptions = (identifiers) => {
|
|
|
89
89
|
coords: [-3, 3, -3, 3],
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
93
|
-
return ans === answer;
|
|
94
|
-
};
|
|
95
92
|
const getParallelogramLozengeQuestion = () => {
|
|
96
93
|
const isRectangle = coinFlip();
|
|
97
94
|
const BA = randint(4, 10);
|
|
@@ -127,7 +124,6 @@ export const parallelogramRectangle = {
|
|
|
127
124
|
qcmTimer: 60,
|
|
128
125
|
freeTimer: 60,
|
|
129
126
|
getPropositions,
|
|
130
|
-
isAnswerValid,
|
|
131
127
|
subject: "Mathématiques",
|
|
132
128
|
getHint,
|
|
133
129
|
getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parallelogramRhombus.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/quadrilaterals/parallelogramRhombus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"parallelogramRhombus.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/quadrilaterals/parallelogramRhombus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAO7C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,eAAe,CAAC;IACpB,EAAE,EAAE,eAAe,CAAC;IACpB,EAAE,EAAE,eAAe,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AA4IF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAoBtD,CAAC"}
|
|
@@ -93,9 +93,6 @@ const getGGBOptions = (identifiers) => {
|
|
|
93
93
|
coords: [-8, 8, -8, 8],
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
97
|
-
return ans === answer;
|
|
98
|
-
};
|
|
99
96
|
const getParallelogramLozengeQuestion = () => {
|
|
100
97
|
const isLosange = coinFlip();
|
|
101
98
|
const CO = randint(4, 10);
|
|
@@ -131,7 +128,6 @@ export const parallelogramRhombus = {
|
|
|
131
128
|
qcmTimer: 60,
|
|
132
129
|
freeTimer: 60,
|
|
133
130
|
getPropositions,
|
|
134
|
-
isAnswerValid,
|
|
135
131
|
subject: "Mathématiques",
|
|
136
132
|
getHint,
|
|
137
133
|
getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quadrilateralRecognition.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"quadrilateralRecognition.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAEL,wBAAwB,EACzB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAEL,oBAAoB,EACrB,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAEL,kBAAkB,EACnB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEL,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AAItD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EACZ,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,wBAAwB,CAAC;CAC9B,CAAC;AAwMF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAoB1D,CAAC"}
|
|
@@ -154,9 +154,6 @@ const getGGBOptions = (identifiers) => {
|
|
|
154
154
|
const getKeys = () => {
|
|
155
155
|
return [];
|
|
156
156
|
};
|
|
157
|
-
const isAnswerValid = () => {
|
|
158
|
-
throw Error("VEA not implemented");
|
|
159
|
-
};
|
|
160
157
|
const getQuadrilateralRecognitionQuestion = () => {
|
|
161
158
|
const shape = random(["rectangle", "rhombus", "parallelogram", "square"]);
|
|
162
159
|
let shapeObject;
|
|
@@ -206,7 +203,6 @@ export const quadrilateralRecognition = {
|
|
|
206
203
|
qcmTimer: 60,
|
|
207
204
|
freeTimer: 60,
|
|
208
205
|
getPropositions,
|
|
209
|
-
isAnswerValid,
|
|
210
206
|
subject: "Mathématiques",
|
|
211
207
|
getHint,
|
|
212
208
|
getCorrection,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicShapesRecognition.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/shapes/basicShapesRecognition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"basicShapesRecognition.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/shapes/basicShapesRecognition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AA4FxD,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
|
|
@@ -50,17 +50,20 @@ const getBasicShapesRecognitionQuestion = () => {
|
|
|
50
50
|
const commands = [];
|
|
51
51
|
const type = randint(0, 4);
|
|
52
52
|
switch (type) {
|
|
53
|
-
case 0: {
|
|
53
|
+
case 0: {
|
|
54
|
+
//point
|
|
54
55
|
const point = PointConstructor.random(randomLetter(true));
|
|
55
56
|
commands.push(...point.toGGBCommand());
|
|
56
57
|
break;
|
|
57
58
|
}
|
|
58
|
-
case 1: {
|
|
59
|
+
case 1: {
|
|
60
|
+
//segment
|
|
59
61
|
const segment = SegmentConstructor.random();
|
|
60
62
|
commands.push(...segment.toGGBCommands(true));
|
|
61
63
|
break;
|
|
62
64
|
}
|
|
63
|
-
case 2: {
|
|
65
|
+
case 2: {
|
|
66
|
+
//demi-droite
|
|
64
67
|
const ray = RayConstructor.random();
|
|
65
68
|
commands.push(...ray.toGGBCommands(true));
|
|
66
69
|
break;
|
|
@@ -84,9 +87,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
84
87
|
tryToAddWrongProp(propositions, "Une demi-droite", "raw");
|
|
85
88
|
return shuffleProps(propositions, n);
|
|
86
89
|
};
|
|
87
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
88
|
-
return ans === answer;
|
|
89
|
-
};
|
|
90
90
|
export const basicShapesRecognition = {
|
|
91
91
|
id: "basicShapesRecognition",
|
|
92
92
|
connector: "=",
|
|
@@ -96,7 +96,6 @@ export const basicShapesRecognition = {
|
|
|
96
96
|
qcmTimer: 60,
|
|
97
97
|
freeTimer: 60,
|
|
98
98
|
getPropositions,
|
|
99
|
-
isAnswerValid,
|
|
100
99
|
subject: "Mathématiques",
|
|
101
100
|
answerType: "QCU",
|
|
102
101
|
hasGeogebra: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colinearityFromBasis.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"colinearityFromBasis.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/colinearity/colinearityFromBasis.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAO7C,KAAK,WAAW,GAAG;IAEjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AA2JF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAkBtD,CAAC"}
|
|
@@ -8,7 +8,6 @@ import { frac } from "../../../../../tree/nodes/operators/fractionNode.js";
|
|
|
8
8
|
import { multiply } from "../../../../../tree/nodes/operators/multiplyNode.js";
|
|
9
9
|
import { substract } from "../../../../../tree/nodes/operators/substractNode.js";
|
|
10
10
|
import { coinFlip } from "../../../../../utils/alea/coinFlip.js";
|
|
11
|
-
import { handleVEAError } from "../../../../../utils/errors/handleVEAError.js";
|
|
12
11
|
const getPropositions = (n, { answer }) => {
|
|
13
12
|
const propositions = [];
|
|
14
13
|
addValidProp(propositions, answer, "raw");
|
|
@@ -87,14 +86,6 @@ On en conclut que les vecteurs $\\overrightarrow{u}$ et $\\overrightarrow{v}$ ne
|
|
|
87
86
|
const getKeys = () => {
|
|
88
87
|
return [];
|
|
89
88
|
};
|
|
90
|
-
const isAnswerValid = () => {
|
|
91
|
-
try {
|
|
92
|
-
throw Error("VEA not implemented");
|
|
93
|
-
}
|
|
94
|
-
catch (err) {
|
|
95
|
-
return handleVEAError(err);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
89
|
const getColinearityFromBasisQuestion = () => {
|
|
99
90
|
const isColinear = coinFlip();
|
|
100
91
|
let a;
|
|
@@ -150,7 +141,6 @@ export const colinearityFromBasis = {
|
|
|
150
141
|
qcmTimer: 60,
|
|
151
142
|
freeTimer: 60,
|
|
152
143
|
getPropositions,
|
|
153
|
-
isAnswerValid,
|
|
154
144
|
subject: "Mathématiques",
|
|
155
145
|
getInstruction,
|
|
156
146
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colinearityFromPicture.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"colinearityFromPicture.d.ts","sourceRoot":"","sources":["../../../../../../src/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAGL,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAMtC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B,CAAC;AAuOF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAiBxD,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { VectorConstructor } from "../../../../../math/geometry/vector.js";
|
|
|
5
5
|
import { randint } from "../../../../../math/utils/random/randint.js";
|
|
6
6
|
import { coinFlip } from "../../../../../utils/alea/coinFlip.js";
|
|
7
7
|
import { random } from "../../../../../utils/alea/random.js";
|
|
8
|
-
import { handleVEAError } from "../../../../../utils/errors/handleVEAError.js";
|
|
9
8
|
const getPropositions = (n, { answer }) => {
|
|
10
9
|
const propositions = [];
|
|
11
10
|
addValidProp(propositions, answer, "raw");
|
|
@@ -51,14 +50,6 @@ const getCorrection = (identifiers) => {
|
|
|
51
50
|
}
|
|
52
51
|
return `Puisque les droites $(${firstVec.name})$ et $(${secondVec.name})$ ne sont pas parallèles, les vecteurs $${firstVec.toTex()}$ et $${secondVec.toTex()}$ ne sont pas colinéaires.`;
|
|
53
52
|
};
|
|
54
|
-
const isAnswerValid = () => {
|
|
55
|
-
try {
|
|
56
|
-
throw Error("VEA not implemented");
|
|
57
|
-
}
|
|
58
|
-
catch (err) {
|
|
59
|
-
return handleVEAError(err);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
53
|
const getColinearityFromPictureQuestion = () => {
|
|
63
54
|
let firstVec, secondVec;
|
|
64
55
|
let isGenerationOk = false;
|
|
@@ -218,7 +209,6 @@ export const colinearityFromPicture = {
|
|
|
218
209
|
qcmTimer: 60,
|
|
219
210
|
freeTimer: 60,
|
|
220
211
|
getPropositions,
|
|
221
|
-
isAnswerValid,
|
|
222
212
|
subject: "Mathématiques",
|
|
223
213
|
getInstruction,
|
|
224
214
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equalCaracteristicFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/equalCaracteristicFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"equalCaracteristicFromGraph.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/vectors/equalCaracteristicFromGraph.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAwRF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAe7D,CAAC"}
|
|
@@ -260,9 +260,6 @@ const getPropositions = (n, { answer }) => {
|
|
|
260
260
|
tryToAddWrongProp(propositions, "Non", "raw");
|
|
261
261
|
return shuffleProps(propositions, n);
|
|
262
262
|
};
|
|
263
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
264
|
-
return ans === answer;
|
|
265
|
-
};
|
|
266
263
|
export const equalCaracteristicFromGraph = {
|
|
267
264
|
id: "equalCaracteristicFromGraph",
|
|
268
265
|
label: "Caractéristiques des vecteurs : direction, sens, norme, égalité, opposés",
|
|
@@ -271,7 +268,6 @@ export const equalCaracteristicFromGraph = {
|
|
|
271
268
|
qcmTimer: 60,
|
|
272
269
|
freeTimer: 60,
|
|
273
270
|
getPropositions,
|
|
274
|
-
isAnswerValid,
|
|
275
271
|
answerType: "QCU",
|
|
276
272
|
hasGeogebra: true,
|
|
277
273
|
subject: "Mathématiques",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findRightCalculForPriceEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"findRightCalculForPriceEvolution.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/percent/evolutions/findRightCalculForPriceEvolution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AAmLF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
|
|
@@ -93,9 +93,6 @@ $$`;
|
|
|
93
93
|
const getKeys = () => {
|
|
94
94
|
return [];
|
|
95
95
|
};
|
|
96
|
-
const isAnswerValid = () => {
|
|
97
|
-
throw Error("VEA not implemented");
|
|
98
|
-
};
|
|
99
96
|
const getFindRightCalculQuestion = () => {
|
|
100
97
|
const evolution = randint(-6, 7, [0]) * 10;
|
|
101
98
|
const type = evolution < 0 ? random([1, 2]) : random([3, 4]);
|
|
@@ -136,7 +133,6 @@ export const findRightCalculForPriceEvolution = {
|
|
|
136
133
|
qcmTimer: 60,
|
|
137
134
|
freeTimer: 60,
|
|
138
135
|
getPropositions,
|
|
139
|
-
isAnswerValid,
|
|
140
136
|
subject: "Mathématiques",
|
|
141
137
|
answerType: "QCU",
|
|
142
138
|
getQuestionFromIdentifiers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mostLeastProbable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/mostLeastProbable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"mostLeastProbable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/basicProbas/mostLeastProbable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAuHF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAiBnD,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { addValidProp, tryToAddWrongProp, shuffleProps, } from "../../../../exer
|
|
|
2
2
|
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { RationalConstructor } from "../../../../math/numbers/rationals/rational.js";
|
|
4
4
|
import { randfloat } from "../../../../math/utils/random/randfloat.js";
|
|
5
|
-
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
6
5
|
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
7
6
|
import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
8
7
|
import { round } from "../../../../math/utils/round.js";
|
|
@@ -62,14 +61,6 @@ Puisque $${sortedAsc
|
|
|
62
61
|
.join("\\leq")}$, l'issue la ${target} probable est donc $${result}$.`;
|
|
63
62
|
};
|
|
64
63
|
const getKeys = () => [];
|
|
65
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
66
|
-
try {
|
|
67
|
-
return ans.trim() === answer;
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
return handleVEAError(err);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
64
|
const getMostLeastProbableQuestion = () => {
|
|
74
65
|
let numericValues = [];
|
|
75
66
|
let counter = 0;
|
|
@@ -106,7 +97,6 @@ export const mostLeastProbable = {
|
|
|
106
97
|
qcmTimer: 60,
|
|
107
98
|
freeTimer: 60,
|
|
108
99
|
getPropositions,
|
|
109
|
-
isAnswerValid,
|
|
110
100
|
subject: "Mathématiques",
|
|
111
101
|
getInstruction,
|
|
112
102
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkEquiprobability.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/checkEquiprobability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"checkEquiprobability.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/checkEquiprobability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAMrC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AA6HF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAiBtD,CAAC"}
|
|
@@ -3,7 +3,6 @@ import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuesti
|
|
|
3
3
|
import { randint } from "../../../math/utils/random/randint.js";
|
|
4
4
|
import { frac } from "../../../tree/nodes/operators/fractionNode.js";
|
|
5
5
|
import { coinFlip } from "../../../utils/alea/coinFlip.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");
|
|
@@ -65,14 +64,6 @@ ${distribution.every((v) => v === distribution[0])
|
|
|
65
64
|
const getKeys = () => {
|
|
66
65
|
return [];
|
|
67
66
|
};
|
|
68
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
69
|
-
try {
|
|
70
|
-
return ans === answer;
|
|
71
|
-
}
|
|
72
|
-
catch (err) {
|
|
73
|
-
return handleVEAError(err);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
67
|
const getCheckEquiprobabilityQuestion = () => {
|
|
77
68
|
let total;
|
|
78
69
|
let distribution;
|
|
@@ -117,7 +108,6 @@ export const checkEquiprobability = {
|
|
|
117
108
|
qcmTimer: 60,
|
|
118
109
|
freeTimer: 60,
|
|
119
110
|
getPropositions,
|
|
120
|
-
isAnswerValid,
|
|
121
111
|
subject: "Mathématiques",
|
|
122
112
|
getInstruction,
|
|
123
113
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditionalProbaWriteFromFrench.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/conditionalProbaWriteFromFrench.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,mBAAmB,CAAC;AAK3B,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA8QF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"conditionalProbaWriteFromFrench.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/conditionalProbaWriteFromFrench.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,mBAAmB,CAAC;AAK3B,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AA8QF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAcjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describeEvent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/describeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"describeEvent.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/describeEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;CAC7C,CAAC;AA6KF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAiB/C,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, propWhile, } from "../..
|
|
|
2
2
|
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
4
4
|
import { random } from "../../../../utils/alea/random.js";
|
|
5
|
-
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
6
5
|
const getPropositions = (n, { answer, eventA, eventB }) => {
|
|
7
6
|
const propositions = [];
|
|
8
7
|
addValidProp(propositions, answer, "raw");
|
|
@@ -108,14 +107,6 @@ const getCorrection = (identifiers) => {
|
|
|
108
107
|
const getKeys = () => {
|
|
109
108
|
return [];
|
|
110
109
|
};
|
|
111
|
-
const isAnswerValid = () => {
|
|
112
|
-
try {
|
|
113
|
-
throw Error("VEA not implemented");
|
|
114
|
-
}
|
|
115
|
-
catch (err) {
|
|
116
|
-
return handleVEAError(err);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
110
|
const getDescribeEventQuestion = () => {
|
|
120
111
|
const allEvents = [
|
|
121
112
|
"trouver des mûres",
|
|
@@ -164,7 +155,6 @@ export const describeEvent = {
|
|
|
164
155
|
qcmTimer: 60,
|
|
165
156
|
freeTimer: 60,
|
|
166
157
|
getPropositions,
|
|
167
|
-
isAnswerValid,
|
|
168
158
|
subject: "Mathématiques",
|
|
169
159
|
getInstruction,
|
|
170
160
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventNotation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/eventNotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"eventNotation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/events/eventNotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAKrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,QAAQ,EAAE,OAAO,GAAG,cAAc,GAAG,MAAM,CAAC;CAC7C,CAAC;AA4IF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAiB/C,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { addValidProp, shuffleProps, tryToAddWrongProp, propWhile, } from "../..
|
|
|
2
2
|
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
4
4
|
import { random } from "../../../../utils/alea/random.js";
|
|
5
|
-
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
6
5
|
const getPropositions = (n, { answer }) => {
|
|
7
6
|
const propositions = [];
|
|
8
7
|
addValidProp(propositions, answer);
|
|
@@ -82,14 +81,6 @@ $$`;
|
|
|
82
81
|
const getKeys = () => {
|
|
83
82
|
return [];
|
|
84
83
|
};
|
|
85
|
-
const isAnswerValid = () => {
|
|
86
|
-
try {
|
|
87
|
-
throw Error("VEA not implemented");
|
|
88
|
-
}
|
|
89
|
-
catch (err) {
|
|
90
|
-
return handleVEAError(err);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
84
|
const getEventNotationQuestion = () => {
|
|
94
85
|
const allEvents = [
|
|
95
86
|
"trouver des mûres",
|
|
@@ -138,7 +129,6 @@ export const eventNotation = {
|
|
|
138
129
|
qcmTimer: 60,
|
|
139
130
|
freeTimer: 60,
|
|
140
131
|
getPropositions,
|
|
141
|
-
isAnswerValid,
|
|
142
132
|
subject: "Mathématiques",
|
|
143
133
|
getInstruction,
|
|
144
134
|
getHint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compareSeriesDispersion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/compareSeriesDispersion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"compareSeriesDispersion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/compareSeriesDispersion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA4HF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAoBzD,CAAC"}
|