math-exercises 2.2.14 → 2.2.16
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/exercise.d.ts +28 -32
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +9 -3
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +12 -8
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +6 -2
- package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsDivision.js +10 -4
- package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsProduct.js +6 -2
- package/lib/exercises/math/calcul/ordering/framing.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/framing.js +0 -1
- package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +4 -2
- package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/scaleUsage.js +4 -2
- package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
- package/lib/exercises/math/calcul/rounding/rounding.js +7 -3
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +11 -5
- package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +14 -2
- package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +14 -2
- package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +14 -2
- package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +12 -2
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +12 -2
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +12 -2
- package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +12 -2
- package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +12 -4
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +6 -6
- package/lib/exercises/math/derivation/derivativeNumberReading.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivativeNumberReading.js +5 -6
- package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +14 -2
- package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineExpressionReading.js +5 -6
- package/lib/exercises/math/functions/affines/interceptReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/interceptReading.js +5 -6
- package/lib/exercises/math/functions/affines/leadingCoefficient.js +5 -5
- package/lib/exercises/math/functions/basics/graphicEquation.js +5 -5
- package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/graphicInequation.js +4 -6
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.js +2 -4
- package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +4 -6
- package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +4 -6
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +4 -6
- package/lib/exercises/math/functions/parity/parityFromGraph.js +6 -6
- package/lib/exercises/math/functions/trinoms/rootsReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/rootsReading.js +4 -7
- package/lib/exercises/math/functions/trinoms/summitReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitReading.js +5 -4
- package/lib/exercises/math/geometry/areas/rightTriangleArea.d.ts.map +1 -1
- package/lib/exercises/math/geometry/areas/rightTriangleArea.js +5 -4
- package/lib/exercises/math/geometry/areas/triangleArea.d.ts.map +1 -1
- package/lib/exercises/math/geometry/areas/triangleArea.js +5 -4
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLine.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLine.js +8 -8
- package/lib/exercises/math/geometry/cartesian/directionVector.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/directionVector.js +6 -5
- package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.js +9 -8
- package/lib/exercises/math/geometry/cartesian/placeAPoint.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/placeAPoint.js +9 -7
- package/lib/exercises/math/geometry/cartesian/pointCoordinates.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/pointCoordinates.js +12 -6
- package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.d.ts.map +1 -1
- package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +7 -6
- package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +6 -6
- package/lib/exercises/math/geometry/pythagore/pythagore.d.ts.map +1 -1
- package/lib/exercises/math/geometry/pythagore/pythagore.js +5 -4
- package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.d.ts.map +1 -1
- package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.js +5 -4
- package/lib/exercises/math/geometry/thales/thales.d.ts.map +1 -1
- package/lib/exercises/math/geometry/thales/thales.js +5 -4
- package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -1
- package/lib/exercises/math/geometry/thales/thalesCalcul.js +5 -4
- package/lib/exercises/math/geometry/vectors/coordinatesReading.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/coordinatesReading.js +5 -6
- package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.js +10 -8
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +5 -5
- package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +5 -1
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +5 -3
- package/lib/exercises/math/geometry/volumes/coneVolume.js +6 -6
- package/lib/exercises/math/geometry/volumes/parallelepipedVolume.js +6 -6
- package/lib/exercises/math/geometry/volumes/sphereVolume.js +6 -6
- package/lib/exercises/math/geometry/volumes/volumeOfCube.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfCube.js +5 -4
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.js +5 -4
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +12 -11
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +5 -4
- package/lib/exercises/math/limits/limitReading.js +6 -6
- package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/math/percent/applyPercent.js +10 -2
- package/lib/exercises/math/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/math/percent/averageEvolutionRate.js +9 -4
- package/lib/exercises/math/percent/cmToEvolution.d.ts.map +1 -1
- package/lib/exercises/math/percent/cmToEvolution.js +3 -1
- package/lib/exercises/math/percent/globalPercent.d.ts.map +1 -1
- package/lib/exercises/math/percent/globalPercent.js +5 -3
- package/lib/exercises/math/probaStat/probabilityTree.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/probabilityTree.js +5 -4
- package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +5 -4
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +13 -13
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +10 -10
- package/lib/exercises/math/sequences/sequencePlot.d.ts.map +1 -1
- package/lib/exercises/math/sequences/sequencePlot.js +10 -12
- package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +3 -1
- package/lib/exercises/math/trigonometry/trigonometry.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/trigonometry.js +5 -4
- package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.js +5 -4
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +5 -4
- package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
- package/lib/exercises/pc/calibrationCurveOfSolution.js +11 -8
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -1
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +15 -5
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +0 -1
- package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -1
- package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +7 -6
- package/lib/exercises/pc/mecanicalWaves/elongationReading.d.ts.map +1 -1
- package/lib/exercises/pc/mecanicalWaves/elongationReading.js +7 -6
- package/lib/exercises/pc/mole/concentrationReading.d.ts.map +1 -1
- package/lib/exercises/pc/mole/concentrationReading.js +8 -6
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts.map +1 -1
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +2 -3
- package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
- package/lib/exercises/pc/motion/typeOfAcceleration.js +5 -4
- package/lib/exercises/pc/motion/typeOfMovement.js +4 -4
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts.map +1 -1
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +5 -4
- package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts.map +1 -1
- package/lib/exercises/pc/sound/findPeriodFromGraph.js +7 -5
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts.map +1 -1
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +7 -6
- package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
- package/lib/exercises/utils/getDistinctQuestions.js +2 -1
- package/lib/geogebra/geogebraConstructor.d.ts +18 -23
- package/lib/geogebra/geogebraConstructor.d.ts.map +1 -1
- package/lib/geogebra/geogebraConstructor.js +23 -16
- package/lib/index.d.ts +1 -76
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -57
- package/lib/prototypesEnhancement.d.ts +14 -0
- package/lib/prototypesEnhancement.d.ts.map +1 -0
- package/lib/prototypesEnhancement.js +26 -0
- package/lib/server.d.ts +1 -12
- package/lib/server.d.ts.map +1 -1
- package/lib/server.js +1 -24
- package/lib/utils/alignTex.js +2 -2
- package/package.json +3 -2
package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factorizeCanonicalFormWithSqrt.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"factorizeCanonicalFormWithSqrt.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAmGF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAehE,CAAC"}
|
|
@@ -26,11 +26,19 @@ const getFactorizeCanonicalFormWithSqrtQuestion = () => {
|
|
|
26
26
|
keys: ["x"],
|
|
27
27
|
answerFormat: "tex",
|
|
28
28
|
identifiers: { a: affine.b, bOperand: b.operand },
|
|
29
|
-
hint: `Utilise l'identité remarquable
|
|
29
|
+
hint: `Utilise l'identité remarquable
|
|
30
|
+
|
|
31
|
+
$$
|
|
32
|
+
a^2 - b^2 = (a-b)(a+b)
|
|
33
|
+
$$`,
|
|
30
34
|
correction: `
|
|
31
|
-
On utilise l'identité remarquable
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
On utilise l'identité remarquable
|
|
36
|
+
|
|
37
|
+
$$
|
|
38
|
+
a^2 - b^2=(a-b)(a+b)
|
|
39
|
+
$$
|
|
40
|
+
|
|
41
|
+
en prenant $a=${affine.toTex()}$ et $b=${b.toTree().toTex()}$ :
|
|
34
42
|
|
|
35
43
|
|
|
36
44
|
${(0, alignTex_1.alignTex)([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAkBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAuHF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAwB9D,CAAC"}
|
|
@@ -47,9 +47,9 @@ const getThirdDegreeFunctionVariation = () => {
|
|
|
47
47
|
const yMin = Math.min(y1, y2);
|
|
48
48
|
const xMax = Math.max(racine1, racine2);
|
|
49
49
|
const xMin = Math.min(racine1, racine2);
|
|
50
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
51
|
+
commands,
|
|
52
|
+
lockedAxesRatio: false,
|
|
53
53
|
gridDistance: false,
|
|
54
54
|
});
|
|
55
55
|
const question = {
|
|
@@ -58,9 +58,9 @@ const getThirdDegreeFunctionVariation = () => {
|
|
|
58
58
|
answer,
|
|
59
59
|
keys: ["lbracket", "rbracket", "semicolon", "infty", "cup"],
|
|
60
60
|
answerFormat: "tex",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
ggbOptions: ggb.getOptions({
|
|
62
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
63
|
+
}),
|
|
64
64
|
identifiers: { racine1, racine2, coin, a },
|
|
65
65
|
};
|
|
66
66
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;CACb,CAAC;
|
|
1
|
+
{"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,EAAE,CAAC;IACZ,CAAC,EAAE,MAAM,EAAE,CAAC;CACb,CAAC;AA0FF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
|
|
@@ -49,18 +49,17 @@ const getDerivativeNumberReading = () => {
|
|
|
49
49
|
const yMin = Math.min(yA, yB);
|
|
50
50
|
const xMax = Math.max(xA, xB);
|
|
51
51
|
const yMax = Math.max(yA, yB);
|
|
52
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
53
|
-
|
|
52
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
53
|
+
commands,
|
|
54
54
|
});
|
|
55
55
|
const answer = penteTree.toTex();
|
|
56
56
|
const question = {
|
|
57
57
|
instruction,
|
|
58
58
|
startStatement: "a",
|
|
59
59
|
answer,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
options: ggb.getOptions(),
|
|
60
|
+
ggbOptions: ggb.getOptions({
|
|
61
|
+
coords: [xMin - 5, xMax + 5, yMin - 5, yMax + 5],
|
|
62
|
+
}),
|
|
64
63
|
answerFormat: "tex",
|
|
65
64
|
keys: [],
|
|
66
65
|
identifiers: { A: [xA, yA], B: [xB, yB] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"affineExpressionFromTwoImages.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionFromTwoImages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"affineExpressionFromTwoImages.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionFromTwoImages.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAsFF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,CAe/D,CAAC"}
|
|
@@ -30,11 +30,23 @@ Quelle est l'expression algébrique de $f$ ?`,
|
|
|
30
30
|
hint: "Calcule d'abord le taux d'accroissement de $f$ en utilisant la formule $a = \\frac{y_2-y_1}{x_2-x_1}$. Ensuite, utilise les coordonnées d'un des deux points pour déterminer l'ordonnée à l'origine.",
|
|
31
31
|
correction: `On calcule d'abord le taux d'accroissement $a$ :
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
$$
|
|
34
|
+
a = \\frac{y_2-y_1}{x_2-x_1} = \\frac{${yB}-${yA}}{${xB}-${xA}} = ${a.toTex()}
|
|
35
|
+
$$
|
|
34
36
|
|
|
35
37
|
Il faut ensuite trouver l'ordonnée à l'origine $b$. On sait que $f(${xA}) = ${yA}$. Or pour tout $x$ réel, on a $f(x) = ax+b$.
|
|
36
38
|
|
|
37
|
-
Donc
|
|
39
|
+
Donc
|
|
40
|
+
|
|
41
|
+
$$
|
|
42
|
+
${yA} = ${new multiplyNode_1.MultiplyNode(a, xA.toTree()).toTex()}+b
|
|
43
|
+
$$
|
|
44
|
+
|
|
45
|
+
On a donc
|
|
46
|
+
|
|
47
|
+
$$
|
|
48
|
+
b = ${new substractNode_1.SubstractNode(yA.toTree(), new multiplyNode_1.MultiplyNode(a, xA.toTree())).toTex()} = ${b.toTex()}
|
|
49
|
+
$$
|
|
38
50
|
|
|
39
51
|
Ainsi, $f(x) = ${answer}$.
|
|
40
52
|
`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"affineExpressionReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;
|
|
1
|
+
{"version":3,"file":"affineExpressionReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/affineExpressionReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AA+GF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAezD,CAAC"}
|
|
@@ -29,17 +29,16 @@ const getAffineExpressionReadingQuestion = () => {
|
|
|
29
29
|
`SetColor(l, "${(0, colors_1.randomColor)()}")`,
|
|
30
30
|
"SetFixed(l, true)",
|
|
31
31
|
];
|
|
32
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
33
|
-
|
|
34
|
-
isGridSimple: true,
|
|
32
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
33
|
+
commands,
|
|
35
34
|
});
|
|
36
35
|
const question = {
|
|
37
36
|
answer,
|
|
38
37
|
instruction: `Ci-dessous est tracée la courbe représentative d'une fonction affine $f$. Déterminer graphiquement l'expression algébrique de $f(x)$.`,
|
|
39
38
|
keys: ["fx", "equal", "x"],
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
ggbOptions: ggb.getOptions({
|
|
40
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
41
|
+
}),
|
|
43
42
|
answerFormat: "tex",
|
|
44
43
|
identifiers: { b, secondPoint },
|
|
45
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interceptReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/interceptReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;
|
|
1
|
+
{"version":3,"file":"interceptReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/affines/interceptReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAwDF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
|
|
@@ -21,17 +21,16 @@ const getInterceptReadingQuestion = () => {
|
|
|
21
21
|
`SetColor(l, "${(0, colors_1.randomColor)()}")`,
|
|
22
22
|
"SetFixed(l, true)",
|
|
23
23
|
];
|
|
24
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
25
|
-
|
|
26
|
-
isGridSimple: true,
|
|
24
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
25
|
+
commands,
|
|
27
26
|
});
|
|
28
27
|
const question = {
|
|
29
28
|
answer,
|
|
30
29
|
instruction: `Ci-dessous est tracée la courbe représentative d'une fonction affine $f$. Déterminer graphiquement l'ordonnée à l'origine $b$ de la fonction $f$.`,
|
|
31
30
|
keys: [],
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
ggbOptions: ggb.getOptions({
|
|
32
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
33
|
+
}),
|
|
35
34
|
answerFormat: "tex",
|
|
36
35
|
identifiers: { b, secondPoint },
|
|
37
36
|
};
|
|
@@ -29,17 +29,17 @@ const getLeadingCoefficientQuestion = () => {
|
|
|
29
29
|
`f(x) = (${aString}) * x + (${bString})`,
|
|
30
30
|
`SetColor(f, "${(0, colors_1.randomColor)()}")`,
|
|
31
31
|
];
|
|
32
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
33
|
-
|
|
32
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
33
|
+
commands,
|
|
34
34
|
});
|
|
35
35
|
const answer = aTree.toTex();
|
|
36
36
|
const question = {
|
|
37
37
|
instruction: "Déterminer le coefficient directeur de la droite représentée ci-dessous : ",
|
|
38
38
|
answer,
|
|
39
39
|
keys: [],
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
ggbOptions: ggb.getOptions({
|
|
41
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
42
|
+
}),
|
|
43
43
|
answerFormat: "tex",
|
|
44
44
|
identifiers: { xA, xB, yA, yB },
|
|
45
45
|
};
|
|
@@ -58,17 +58,17 @@ const getGraphicEquationQuestion = () => {
|
|
|
58
58
|
"SetFixed(S, true)",
|
|
59
59
|
`SetColor(S, "${(0, colors_1.randomColor)()}")`,
|
|
60
60
|
];
|
|
61
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
62
|
-
|
|
61
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
62
|
+
commands,
|
|
63
63
|
});
|
|
64
64
|
const question = {
|
|
65
65
|
answer,
|
|
66
66
|
instruction: `Déterminer graphiquement les solutions de l'équation $f(x) = ${yValue}$ où $f$ est la fonction représentée ci-dessous.`,
|
|
67
67
|
keys: discreteSetKeys_1.discreteSetKeys,
|
|
68
68
|
answerFormat: "tex",
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
ggbOptions: ggb.getOptions({
|
|
70
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
71
|
+
}),
|
|
72
72
|
identifiers: { yValue, splinePoints },
|
|
73
73
|
};
|
|
74
74
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphicInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAM5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"graphicInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/graphicInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAM5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AA4LF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAenD,CAAC"}
|
|
@@ -85,9 +85,7 @@ const getGraphicInequationQuestion = () => {
|
|
|
85
85
|
"SetFixed(S, true)",
|
|
86
86
|
`SetColor(S, "${(0, colors_1.randomColor)()}")`,
|
|
87
87
|
];
|
|
88
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(commands
|
|
89
|
-
isGridSimple: true,
|
|
90
|
-
});
|
|
88
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
|
|
91
89
|
const question = {
|
|
92
90
|
answer,
|
|
93
91
|
instruction: `Déterminer graphiquement les solutions de l'inéquation $f(x)${isAskingSup ? (isStrict ? ">" : "\\geq") : isStrict ? "<" : "\\leq"}${yValue}$ où $f$ est la fonction représentée ci-dessous.`,
|
|
@@ -103,9 +101,9 @@ const getGraphicInequationQuestion = () => {
|
|
|
103
101
|
"varnothing",
|
|
104
102
|
],
|
|
105
103
|
answerFormat: "tex",
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
ggbOptions: ggb.getOptions({
|
|
105
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
106
|
+
}),
|
|
109
107
|
identifiers: {
|
|
110
108
|
yValue,
|
|
111
109
|
splinePoints,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;
|
|
1
|
+
{"version":3,"file":"imageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/imageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyEF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAcvD,CAAC"}
|
|
@@ -38,16 +38,14 @@ const getImageFunctionGeogebra = () => {
|
|
|
38
38
|
`f(x) = ${rand ? polynome1.toString() : polynome2.toString()}`,
|
|
39
39
|
`SetColor(f, "${(0, colors_1.randomColor)()}")`,
|
|
40
40
|
];
|
|
41
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
41
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
|
|
42
42
|
const answerTex = answer + "";
|
|
43
43
|
const question = {
|
|
44
44
|
instruction: statement,
|
|
45
45
|
startStatement: `f(${xValue})`,
|
|
46
46
|
answer: answerTex,
|
|
47
47
|
keys: [],
|
|
48
|
-
|
|
49
|
-
options: ggb.getOptions(),
|
|
50
|
-
coords: [-10, 10, -10, 10],
|
|
48
|
+
ggbOptions: ggb.getOptions({ coords: [-10, 10, -10, 10] }),
|
|
51
49
|
answerFormat: "tex",
|
|
52
50
|
identifiers: {
|
|
53
51
|
poly1: polynome1.coefficients,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inverseImageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/inverseImageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"inverseImageFunctionGeogebra.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/inverseImageFunctionGeogebra.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AA0IF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAe9D,CAAC"}
|
|
@@ -62,16 +62,14 @@ const getInverseImageFunctionGeogebra = () => {
|
|
|
62
62
|
];
|
|
63
63
|
}
|
|
64
64
|
const statement = `Lire graphiquement le ou les antécédents de $${yValue}$ par la fonction $f$ représentée ci dessous.`;
|
|
65
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(commands
|
|
66
|
-
isGridSimple: true,
|
|
67
|
-
});
|
|
65
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
|
|
68
66
|
const question = {
|
|
69
67
|
instruction: statement,
|
|
70
68
|
answer,
|
|
71
69
|
keys: ["et", "aucun"],
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
ggbOptions: ggb.getOptions({
|
|
71
|
+
coords: ggb.getAdaptedCoords({ xMin, xMax, yMin, yMax }),
|
|
72
|
+
}),
|
|
75
73
|
answerFormat: "tex",
|
|
76
74
|
identifiers: {
|
|
77
75
|
xValue,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twoFunctionsEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;CAC3B,CAAC;
|
|
1
|
+
{"version":3,"file":"twoFunctionsEquation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;CAC3B,CAAC;AAyIF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CActD,CAAC"}
|
|
@@ -81,18 +81,16 @@ const getTwoFunctionsEquationQuestion = () => {
|
|
|
81
81
|
`SetCaption(T, "$g$")`,
|
|
82
82
|
`ShowLabel(T, true)`,
|
|
83
83
|
];
|
|
84
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(commands
|
|
85
|
-
isGridSimple: true,
|
|
86
|
-
});
|
|
84
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
|
|
87
85
|
const question = {
|
|
88
86
|
answer,
|
|
89
87
|
instruction: `Déterminer graphiquement les solutions de l'équation $f(x) = g(x)$ où $f$ et $g$ sont les fonctions représentées ci-dessous.`,
|
|
90
88
|
keys: discreteSetKeys_1.discreteSetKeys,
|
|
91
89
|
answerFormat: "tex",
|
|
92
90
|
identifiers: { yValue, fSplinePoints, gSplinePoints },
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
ggbOptions: ggb.getOptions({
|
|
92
|
+
coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
|
|
93
|
+
}),
|
|
96
94
|
};
|
|
97
95
|
return question;
|
|
98
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twoFunctionsInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"twoFunctionsInequation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/basics/twoFunctionsInequation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EACL,gBAAgB,EAGjB,MAAM,mCAAmC,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAQ5D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,aAAa,EAAE,MAAM,EAAE,EAAE,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC;CAC7D,CAAC;AAqOF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAcxD,CAAC"}
|
|
@@ -105,9 +105,7 @@ const getTwoFunctionsInequationQuestion = () => {
|
|
|
105
105
|
`SetCaption(T, "$g$")`,
|
|
106
106
|
`ShowLabel(T, true)`,
|
|
107
107
|
];
|
|
108
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(commands
|
|
109
|
-
isGridSimple: true,
|
|
110
|
-
});
|
|
108
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
|
|
111
109
|
const intervalsNodes = intervals.map((i) => new intervalNode_1.IntervalNode(new numberNode_1.NumberNode(i.a), new numberNode_1.NumberNode(i.b), i.closure));
|
|
112
110
|
const answer = intervalsNodes.length === 1
|
|
113
111
|
? `S=${intervalsNodes[0].toTex()}`
|
|
@@ -134,9 +132,9 @@ const getTwoFunctionsInequationQuestion = () => {
|
|
|
134
132
|
ineqSymbol: ineq.symbol,
|
|
135
133
|
intervals,
|
|
136
134
|
},
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
135
|
+
ggbOptions: ggb.getOptions({
|
|
136
|
+
coords: ggb.getAdaptedCoords({ xMax, xMin, yMax, yMin }),
|
|
137
|
+
}),
|
|
140
138
|
};
|
|
141
139
|
return question;
|
|
142
140
|
};
|
|
@@ -84,17 +84,17 @@ const getParityFromGraphQuestion = () => {
|
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
86
|
const commands = [`f(x) = ${fct}`, `SetColor(f, "${(0, colors_1.randomColor)()}")`];
|
|
87
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
88
|
+
commands,
|
|
89
|
+
lockedAxesRatio: false,
|
|
90
90
|
});
|
|
91
91
|
const question = {
|
|
92
92
|
answer,
|
|
93
93
|
instruction: `La fonction $f$ représentée ci-dessous est-elle paire, impaire, ou ni paire ni impaire ?`,
|
|
94
94
|
keys: [],
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
ggbOptions: ggb.getOptions({
|
|
96
|
+
coords: [-10, 10, -10, 10],
|
|
97
|
+
}),
|
|
98
98
|
answerFormat: "tex",
|
|
99
99
|
identifiers: { type, fctCmd: fct },
|
|
100
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootsReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/rootsReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"rootsReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/rootsReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqDF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAa9C,CAAC"}
|
|
@@ -14,10 +14,9 @@ const getRootsReadingQuestion = () => {
|
|
|
14
14
|
`f(x) = ${trinom.toString()}`,
|
|
15
15
|
`SetColor(f, "${(0, colors_1.randomColor)()}")`,
|
|
16
16
|
];
|
|
17
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
gridDistance: false,
|
|
17
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
18
|
+
commands,
|
|
19
|
+
lockedAxesRatio: false,
|
|
21
20
|
});
|
|
22
21
|
const answer = roots.length === 1 ? roots[0].toString() : roots.join("\\text{ et }");
|
|
23
22
|
const question = {
|
|
@@ -25,9 +24,7 @@ const getRootsReadingQuestion = () => {
|
|
|
25
24
|
instruction: `Déterminer graphiquement le ou les racine(s) du polynôme du second degré représenté ci-dessous : `,
|
|
26
25
|
keys: ["et", "aucun"],
|
|
27
26
|
answerFormat: "tex",
|
|
28
|
-
|
|
29
|
-
options: ggb.getOptions(),
|
|
30
|
-
coords: trinom.getCoords(),
|
|
27
|
+
ggbOptions: ggb.getOptions({ coords: trinom.getCoords() }),
|
|
31
28
|
identifiers: { a: trinom.a, b: trinom.b, c: trinom.c },
|
|
32
29
|
};
|
|
33
30
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summitReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/summitReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"summitReading.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/trinoms/summitReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAuDF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAa/C,CAAC"}
|
|
@@ -14,7 +14,8 @@ const getSummitReadingQuestion = () => {
|
|
|
14
14
|
`f(x) = ${trinom.toString()}`,
|
|
15
15
|
`SetColor(f, "${(0, colors_1.randomColor)()}")`,
|
|
16
16
|
];
|
|
17
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
17
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
18
|
+
commands,
|
|
18
19
|
isGridSimple: true,
|
|
19
20
|
});
|
|
20
21
|
const answer = trinom.getSommet().toCoords();
|
|
@@ -22,9 +23,9 @@ const getSummitReadingQuestion = () => {
|
|
|
22
23
|
answer,
|
|
23
24
|
instruction: `Déterminer les coordonnées du sommet de la parabole représentée ci-dessous :`,
|
|
24
25
|
keys: ["leftParenthesis", "semicolon", "rightParenthesis"],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
ggbOptions: ggb.getOptions({
|
|
27
|
+
coords: trinom.getCoords(),
|
|
28
|
+
}),
|
|
28
29
|
answerFormat: "tex",
|
|
29
30
|
identifiers: { a: trinom.a, b: trinom.b, c: trinom.c },
|
|
30
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rightTriangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/rightTriangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"rightTriangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/rightTriangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAgFF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
|
|
@@ -30,7 +30,8 @@ const getRightTriangleArea = () => {
|
|
|
30
30
|
];
|
|
31
31
|
const answer = ((sidesLengths[0] * sidesLengths[1]) / 2 + "").replace(".", ",");
|
|
32
32
|
const answerTex = answer + "\\text{cm}^2";
|
|
33
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
33
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
34
|
+
commands,
|
|
34
35
|
hideAxes: true,
|
|
35
36
|
hideGrid: true,
|
|
36
37
|
});
|
|
@@ -38,9 +39,9 @@ const getRightTriangleArea = () => {
|
|
|
38
39
|
instruction: `Calculer l'aire du triangle $${triangle.getTriangleName()}$ rectangle en ${triangle.getRightAngle()} sachant que $${triangle.getSideBName()} = ${sidesLengths[0]}$ cm et $${triangle.getSideCName()} = ${sidesLengths[1]}$ cm.`,
|
|
39
40
|
answer: answerTex,
|
|
40
41
|
keys: ["cm", "cm2"],
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
ggbOptions: ggb.getOptions({
|
|
43
|
+
coords: triangle.generateCoords(),
|
|
44
|
+
}),
|
|
44
45
|
answerFormat: "tex",
|
|
45
46
|
identifiers: { sidesLengths },
|
|
46
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/triangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"triangleArea.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/areas/triangleArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG,EAAE,CAAC;AA6GtB,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAc9C,CAAC"}
|
|
@@ -52,7 +52,8 @@ const getTriangleArea = () => {
|
|
|
52
52
|
`alpha = Angle(${vertices[randoms[0]]},poi ,${vertices[randoms[1]]}, Line(${vertices[randoms[0]]},poi))`,
|
|
53
53
|
`ShowLabel(alpha, false)`,
|
|
54
54
|
];
|
|
55
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
55
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
56
|
+
commands,
|
|
56
57
|
hideAxes: true,
|
|
57
58
|
hideGrid: true,
|
|
58
59
|
});
|
|
@@ -62,9 +63,9 @@ const getTriangleArea = () => {
|
|
|
62
63
|
instruction: `Calculer l'aire du triangle $${triangle.getTriangleName()}$ sachant que $${sides[randoms[0]]} = ${sidesLengths[randoms[0]]}$ cm et $${vertices[randoms[0]]}${interceptName} = ${height}$ cm.`,
|
|
63
64
|
answer: answerTex,
|
|
64
65
|
keys: ["cm", "cm2"],
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
ggbOptions: ggb.getOptions({
|
|
67
|
+
coords: triangle.generateCoords(),
|
|
68
|
+
}),
|
|
68
69
|
answerFormat: "tex",
|
|
69
70
|
identifiers: { sidesLengths },
|
|
70
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartesianEquationOfLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/cartesianEquationOfLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAclC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"cartesianEquationOfLine.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/cartesianEquationOfLine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAclC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAgOF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
|
|
@@ -24,7 +24,7 @@ const getCartesianEquationOfLineQuestion = () => {
|
|
|
24
24
|
`ShowLabel(d,true)`,
|
|
25
25
|
`SetFixed(d,true)`,
|
|
26
26
|
];
|
|
27
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
27
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({ commands });
|
|
28
28
|
const correctAnswer = line.getCartesianEquation();
|
|
29
29
|
const instruction = `Déterminer une équation cartesienne de la droite $d$ représentée ci-dessous :`;
|
|
30
30
|
const aX = a.getXnumber();
|
|
@@ -33,13 +33,13 @@ const getCartesianEquationOfLineQuestion = () => {
|
|
|
33
33
|
const bY = b.getYnumber();
|
|
34
34
|
const question = {
|
|
35
35
|
answer: correctAnswer.toTex(),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
ggbOptions: ggb.getOptions({
|
|
37
|
+
coords: ggb.getAdaptedCoords({
|
|
38
|
+
xMin: Math.min(aX, bX) - 5,
|
|
39
|
+
xMax: Math.max(bX, aX) + 5,
|
|
40
|
+
yMin: Math.min(aY, bY) - 5,
|
|
41
|
+
yMax: Math.max(bY, aY) + 5,
|
|
42
|
+
}),
|
|
43
43
|
}),
|
|
44
44
|
instruction: instruction,
|
|
45
45
|
keys: ["x", "y", "equal"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directionVector.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/directionVector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyIF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"directionVector.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/directionVector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyIF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAcjD,CAAC"}
|
|
@@ -54,15 +54,15 @@ const getDirectionVectorQuestion = () => {
|
|
|
54
54
|
const yMin = Math.min(y1, y2);
|
|
55
55
|
const xMax = Math.max(x1, x2);
|
|
56
56
|
const yMax = Math.max(y1, y2);
|
|
57
|
-
const ggb = new geogebraConstructor_1.GeogebraConstructor(
|
|
58
|
-
|
|
57
|
+
const ggb = new geogebraConstructor_1.GeogebraConstructor({
|
|
58
|
+
commands,
|
|
59
59
|
});
|
|
60
60
|
const question = {
|
|
61
61
|
answer: vector.toInlineCoordsTex(),
|
|
62
62
|
instruction,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
ggbOptions: ggb.getOptions({
|
|
64
|
+
coords: [xMin - 10, xMax + 10, yMin - 10, yMax + 10],
|
|
65
|
+
}),
|
|
66
66
|
keys: ["semicolon", "x", "y"],
|
|
67
67
|
answerFormat: "tex",
|
|
68
68
|
identifiers: { xValue, yValue },
|
|
@@ -121,4 +121,5 @@ exports.directionVector = {
|
|
|
121
121
|
getPropositions,
|
|
122
122
|
isAnswerValid,
|
|
123
123
|
subject: "Mathématiques",
|
|
124
|
+
hasGeogebra: true,
|
|
124
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawAlineInGGB.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/drawAlineInGGB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAIT,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"drawAlineInGGB.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/geometry/cartesian/drawAlineInGGB.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAIT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AA2DF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAahD,CAAC"}
|