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
|
@@ -11,6 +11,28 @@ export type Proposition = {
|
|
|
11
11
|
isRightAnswer: boolean;
|
|
12
12
|
format: "tex" | "raw";
|
|
13
13
|
};
|
|
14
|
+
export type GeogebraAxisOptions = {
|
|
15
|
+
steps?: number;
|
|
16
|
+
hiddden?: boolean;
|
|
17
|
+
showNumbers?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
natural?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type GeogebraOptions = {
|
|
22
|
+
customToolBar?: string;
|
|
23
|
+
forbidShiftDragZoom?: boolean;
|
|
24
|
+
commands?: string[];
|
|
25
|
+
coords: number[];
|
|
26
|
+
is3D?: boolean;
|
|
27
|
+
gridDistance?: [number, number] | false;
|
|
28
|
+
hideGrid?: boolean;
|
|
29
|
+
hideAxes?: boolean;
|
|
30
|
+
isGridBold?: boolean;
|
|
31
|
+
isGridSimple?: boolean;
|
|
32
|
+
lockedAxesRatio?: number | false;
|
|
33
|
+
xAxis?: GeogebraAxisOptions;
|
|
34
|
+
yAxis?: GeogebraAxisOptions;
|
|
35
|
+
};
|
|
14
36
|
export interface Question<TIdentifiers = {}> {
|
|
15
37
|
instruction: string;
|
|
16
38
|
hint?: string;
|
|
@@ -20,34 +42,8 @@ export interface Question<TIdentifiers = {}> {
|
|
|
20
42
|
answerFormat?: "tex" | "raw";
|
|
21
43
|
ggbAnswer?: string[];
|
|
22
44
|
keys?: (KeyId | KeyProps)[];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
options?: {
|
|
26
|
-
gridDistance?: [number, number] | false;
|
|
27
|
-
hideGrid?: boolean;
|
|
28
|
-
hideAxes?: boolean;
|
|
29
|
-
isGridBold?: boolean;
|
|
30
|
-
isGridSimple?: boolean;
|
|
31
|
-
isAxesRatioFixed?: boolean;
|
|
32
|
-
isXAxesNatural?: boolean;
|
|
33
|
-
is3D?: boolean;
|
|
34
|
-
};
|
|
35
|
-
studentGgbOptions?: {
|
|
36
|
-
customToolBar?: string;
|
|
37
|
-
gridDistance?: [number, number];
|
|
38
|
-
hideGrid?: boolean;
|
|
39
|
-
hideAxes?: boolean;
|
|
40
|
-
isGridBold?: boolean;
|
|
41
|
-
isGridSimple?: boolean;
|
|
42
|
-
isAxesRatioFixed?: boolean;
|
|
43
|
-
isXAxesNatural?: boolean;
|
|
44
|
-
xAxisSteps?: number;
|
|
45
|
-
yAxisSteps?: number;
|
|
46
|
-
enableShiftDragZoom?: boolean;
|
|
47
|
-
coords?: number[];
|
|
48
|
-
initialCommands?: string[];
|
|
49
|
-
axisLabels?: string[];
|
|
50
|
-
};
|
|
45
|
+
ggbOptions?: GeogebraOptions;
|
|
46
|
+
studentGgbOptions?: GeogebraOptions;
|
|
51
47
|
style?: {
|
|
52
48
|
tableHasNoHeader?: boolean;
|
|
53
49
|
};
|
|
@@ -68,15 +64,15 @@ export interface Exercise<TIdentifiers = {}> {
|
|
|
68
64
|
id: string;
|
|
69
65
|
isSingleStep: boolean;
|
|
70
66
|
label: string;
|
|
71
|
-
sections
|
|
72
|
-
levels
|
|
67
|
+
sections?: (MathSection | PCSection)[];
|
|
68
|
+
levels?: MathLevel[];
|
|
73
69
|
connector?: "=" | "\\iff" | "\\approx";
|
|
74
70
|
generator: (n: number) => Question<TIdentifiers>[];
|
|
75
71
|
maxAllowedQuestions?: number;
|
|
76
72
|
answerType?: "GGB" | "QCM" | "free" | "QCU";
|
|
77
73
|
isQCM?: boolean;
|
|
78
|
-
qcmTimer
|
|
79
|
-
freeTimer
|
|
74
|
+
qcmTimer?: number;
|
|
75
|
+
freeTimer?: number;
|
|
80
76
|
ggbTimer?: number;
|
|
81
77
|
getPropositions?: QCMGenerator<{
|
|
82
78
|
answer: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;
|
|
1
|
+
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACjC,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,QAAQ,CAAC,YAAY,GAAG,EAAE;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,QAAQ,CAAC,EAAE,CAAC;IAE5B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,KAAK,CAAC,EAAE;QACN,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,cAAc,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACvC,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,MAAM,YAAY,CAAC,YAAY,IAAI,CACvC,CAAC,EAAE,MAAM,EACT,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,KACpC,WAAW,EAAE,CAAC;AACnB,MAAM,MAAM,GAAG,CAAC,YAAY,IAAI,CAC9B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,KACpC,OAAO,CAAC;AACb,MAAM,MAAM,MAAM,CAAC,YAAY,IAAI,CACjC,aAAa,EAAE,MAAM,EAAE,EACvB,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,YAAY,KACzC,OAAO,CAAC;AACb,MAAM,MAAM,iBAAiB,CAAC,YAAY,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,IAAI,CAChE,IAAI,CAAC,EAAE,QAAQ,KACZ,QAAQ,CAAC,YAAY,CAAC,CAAC;AAC5B,MAAM,WAAW,QAAQ,CAAC,YAAY,GAAG,EAAE;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,WAAW,GAAG,SAAS,CAAC,EAAE,CAAC;IACvC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,YAAY,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,YAAY,CAAC,CAAC;IAClE,aAAa,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;IACjD,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,SAAS,GACT,UAAU,GACV,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,cAAc,GACd,iBAAiB,GACjB,SAAS,GACT,8BAA8B,GAC9B,aAAa,GACb,YAAY,GACZ,SAAS,GACT,0BAA0B,GAC1B,WAAW,GACX,2BAA2B,GAC3B,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,wBAAwB,GACxB,WAAW,GACX,uBAAuB,GACvB,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,UAAU,GACV,uBAAuB,GACvB,oBAAoB,GACpB,eAAe,GACf,gBAAgB,GAChB,UAAU,CAAC;AAEf,MAAM,MAAM,SAAS,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,+CAA+C,GAC/C,OAAO,GACP,KAAK,GACL,wBAAwB,GACxB,SAAS,GACT,KAAK,GACL,aAAa,GACb,4BAA4B,GAC5B,oBAAoB,GACpB,WAAW,GACX,iBAAiB,GACjB,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonDivisorsList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/commonDivisorsList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"commonDivisorsList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/commonDivisorsList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiFF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAcpD,CAAC"}
|
|
@@ -26,15 +26,21 @@ const getCommonDivisorsListQuestion = () => {
|
|
|
26
26
|
hint: `Détermine la liste des diviseurs de chaque nombre, puis identifie ceux qu'ils ont en commun.`,
|
|
27
27
|
correction: `Les diviseurs de $${a}$ sont :
|
|
28
28
|
|
|
29
|
-
$$
|
|
29
|
+
$$
|
|
30
|
+
${divisorsA.join(";")}
|
|
31
|
+
$$
|
|
30
32
|
|
|
31
33
|
Les diviseurs de $${b}$ sont :
|
|
32
34
|
|
|
33
|
-
$$
|
|
35
|
+
$$
|
|
36
|
+
${divisorsB.join(";")}
|
|
37
|
+
$$
|
|
34
38
|
|
|
35
39
|
Les diviseurs communs à $${a}$ et $${b}$ sont donc :
|
|
36
40
|
|
|
37
|
-
$$
|
|
41
|
+
$$
|
|
42
|
+
${answer}
|
|
43
|
+
$$
|
|
38
44
|
`,
|
|
39
45
|
identifiers: { a, b },
|
|
40
46
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAgGlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAwCF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,CAe5D,CAAC"}
|
|
@@ -34,26 +34,30 @@ const getFractionAndIntegerDivision = () => {
|
|
|
34
34
|
correction: `
|
|
35
35
|
On écrit $${integer.value}$ sous forme de fraction :
|
|
36
36
|
|
|
37
|
-
$$
|
|
37
|
+
$$
|
|
38
|
+
${integer.value} = \\frac{${integer.value}}{1}
|
|
39
|
+
$$
|
|
38
40
|
|
|
39
41
|
On multiplie la première fraction par l'inverse de la seconde :
|
|
40
42
|
|
|
43
|
+
$$
|
|
41
44
|
${integerFirst
|
|
42
|
-
?
|
|
43
|
-
.toTree()
|
|
44
|
-
.toTex()} = \\frac{${integer.value}}{1} \\times ${rational
|
|
45
|
+
? `\\frac{${integer.value}}{1}\\div ${rational.toTree().toTex()} = \\frac{${integer.value}}{1} \\times ${rational
|
|
45
46
|
.reverse(false)
|
|
46
47
|
.toTree()
|
|
47
48
|
.toTex()} = \\frac{${new multiplyNode_1.MultiplyNode(integer.toTree(), rational.denum.toTree()).toTex({ forceNoSimplification: true })}}{${new multiplyNode_1.MultiplyNode((1).toTree(), rational.num.toTree()).toTex({ forceNoSimplification: true })}}
|
|
48
|
-
= ${beforeSimplification.toTree().toTex()}
|
|
49
|
-
:
|
|
49
|
+
= ${beforeSimplification.toTree().toTex()}`
|
|
50
|
+
: `${rational.toTree().toTex()}\\div \\frac{${integer.value}}{1} = ${rational.toTree().toTex()}\\times \\frac{1}{${integer.value}} = \\frac{${rational.num}\\times 1}{${new multiplyNode_1.MultiplyNode(rational.denum.toTree(), integer.toTree()).toTex({ forceNoSimplification: true })}} = ${beforeSimplification
|
|
50
51
|
.toTree()
|
|
51
|
-
.toTex()}
|
|
52
|
+
.toTex()}`}
|
|
53
|
+
$$
|
|
52
54
|
|
|
53
55
|
${!beforeSimplification.isIrreductible()
|
|
54
56
|
? `On peut alors simplifier cette fraction :
|
|
55
57
|
|
|
56
|
-
$$
|
|
58
|
+
$$
|
|
59
|
+
${beforeSimplification.toTree().toTex()} = ${answerTex}
|
|
60
|
+
$$
|
|
57
61
|
`
|
|
58
62
|
: "Cette fraction est déjà irréductible."}
|
|
59
63
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA+DlC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAqCF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAe3D,CAAC"}
|
|
@@ -26,12 +26,16 @@ const getFractionAndIntegerProduct = () => {
|
|
|
26
26
|
correction: `
|
|
27
27
|
On multiplie le numérateur de la fraction par le nombre entier :
|
|
28
28
|
|
|
29
|
-
$$
|
|
29
|
+
$$
|
|
30
|
+
${statementTree.toTex()} = \\frac{${new multiplyNode_1.MultiplyNode(rational.num.toTree(), integer.toTree()).toTex({ forceNoSimplification: true })}}{${rational.denum}} = ${beforeSimplification.toTree().toTex()}
|
|
31
|
+
$$
|
|
30
32
|
|
|
31
33
|
${!beforeSimplification.isIrreductible()
|
|
32
34
|
? `On peut alors simplifier cette fraction :
|
|
33
35
|
|
|
34
|
-
$$
|
|
36
|
+
$$
|
|
37
|
+
${beforeSimplification.toTree().toTex()} = ${answer}
|
|
38
|
+
$$
|
|
35
39
|
`
|
|
36
40
|
: "Cette fraction est déjà irréductible."}
|
|
37
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAgElC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAwCF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAcnD,CAAC"}
|
|
@@ -23,19 +23,25 @@ const getFractionsDivision = () => {
|
|
|
23
23
|
hint: "Pour diviser par une fraction, il faut multiplier la première fraction par l'inverse de la deuxième. Simplifie ensuite la fraction obtenue si nécessaire.",
|
|
24
24
|
correction: `On multiplie la première fraction par l'inverse de la deuxième :
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
$$
|
|
27
|
+
${statementTree.toTex()} = ${rational.toTree().toTex()}\\times ${rational2
|
|
27
28
|
.reverse(false)
|
|
28
29
|
.toTree()
|
|
29
|
-
.toTex()}
|
|
30
|
+
.toTex()}
|
|
31
|
+
$$
|
|
30
32
|
|
|
31
33
|
Multiplions les fractions :
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
$$
|
|
36
|
+
\\frac{${rational.num}\\times${rational2.denum}}{${rational.denum}\\times${rational2.num}} = ${beforeSimplification.toTree().toTex()}
|
|
37
|
+
$$
|
|
34
38
|
|
|
35
39
|
${isSimplifiable
|
|
36
40
|
? `On peut alors simplifier cette fraction :
|
|
37
41
|
|
|
38
|
-
$$
|
|
42
|
+
$$
|
|
43
|
+
${beforeSimplification.toTree().toTex()} = ${answer}
|
|
44
|
+
$$`
|
|
39
45
|
: "Cette fraction est déjà sous forme irréductible."}
|
|
40
46
|
|
|
41
47
|
Ainsi, le résultat attendu est $${answer}$.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AA8EF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAclD,CAAC"}
|
|
@@ -26,12 +26,16 @@ const getFractionsProduct = () => {
|
|
|
26
26
|
hint: "Pour multiplier deux fractions, on multiplie les numérateurs entre eux et les dénominateurs entre eux, puis on simplifie la fraction obtenue si nécessaire.",
|
|
27
27
|
correction: `On multiplie les numérateurs entre eux et les dénominateurs entre eux :
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
$$
|
|
30
|
+
\\frac{${rational.num}\\times${rational2.num}}{${rational.denum}\\times${rational2.denum}} = ${beforeSimplification.toTree().toTex()}
|
|
31
|
+
$$
|
|
30
32
|
|
|
31
33
|
${!beforeSimplification.isIrreductible()
|
|
32
34
|
? `On peut alors simplifier cette fraction :
|
|
33
35
|
|
|
34
|
-
$$
|
|
36
|
+
$$
|
|
37
|
+
${beforeSimplification.toTree().toTex()} = ${answer}
|
|
38
|
+
$$`
|
|
35
39
|
: "Cette fraction est déjà sous forme irréductible."}
|
|
36
40
|
|
|
37
41
|
Ainsi, le résultat attendu est $${answer}$.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framing.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/ordering/framing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;
|
|
1
|
+
{"version":3,"file":"framing.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/ordering/framing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAmBlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAwJF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,WAAW,CAazC,CAAC"}
|
|
@@ -105,7 +105,6 @@ const getPropositions = (n, { answer, nbIds, nbValue, pow }) => {
|
|
|
105
105
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
106
106
|
const dec = new decimal_1.Decimal(nbValue);
|
|
107
107
|
const node = nodeConstructor_1.NodeConstructor.fromIdentifiers(nbIds);
|
|
108
|
-
console.log(nbValue, pow);
|
|
109
108
|
while (propositions.length < n) {
|
|
110
109
|
const fakePower = -(0, randint_1.randint)(1, 4, [pow]);
|
|
111
110
|
const fakeDec = new decimal_1.Decimal(dec.value * (0, randint_1.randint)(-3, 3, [0, 1]));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaleCalculation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleCalculation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"scaleCalculation.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleCalculation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAqFF,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,WAAW,CAelD,CAAC"}
|
|
@@ -37,9 +37,11 @@ const getScaleCalculationQuestion = () => {
|
|
|
37
37
|
hint: `Convertis les longueurs en $${cm.toTex()}$, puis fais un calcul de propotionnalité.`,
|
|
38
38
|
correction: `On convertit d'abord les longueurs en cm :
|
|
39
39
|
|
|
40
|
-
$$
|
|
40
|
+
$$
|
|
41
|
+
${realDistance.toTex({ notScientific: true })} = ${realDistance
|
|
41
42
|
.convert("cm")
|
|
42
|
-
.toTex({ notScientific: true })}
|
|
43
|
+
.toTex({ notScientific: true })}
|
|
44
|
+
$$
|
|
43
45
|
|
|
44
46
|
Puis, on fait un calcul de proportionnalité : puisque $${fakeDistance.toTex({
|
|
45
47
|
notScientific: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaleUsage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"scaleUsage.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/scaleUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAmGF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAc5C,CAAC"}
|
|
@@ -39,9 +39,11 @@ const getScaleUsageQuestion = () => {
|
|
|
39
39
|
On convertit d'abord la distance réelle en $${cm.toTex()}$ :
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
$$
|
|
42
|
+
$$
|
|
43
|
+
${realDistance.toTex({ notScientific: true })} = ${realDistance
|
|
43
44
|
.convert("cm")
|
|
44
|
-
.toTex({ notScientific: true })}
|
|
45
|
+
.toTex({ notScientific: true })}
|
|
46
|
+
$$
|
|
45
47
|
|
|
46
48
|
Ainsi, $${realDistance.toTex({
|
|
47
49
|
notScientific: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AA2ElC,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAgDF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAe7C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAejD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAkB9C,CAAC"}
|
|
@@ -40,12 +40,16 @@ const getRoundQuestions = (opts) => {
|
|
|
40
40
|
correction: `Le chiffre des ${ranks[precisionAsked + 1]}s est $${figureToLookAt}$.
|
|
41
41
|
|
|
42
42
|
${figureToLookAt < 5
|
|
43
|
-
? `Puisque ${figureToLookAt} est inférieur à 5, on arrondit ${ranksWithAu[precisionAsked]} inférieur.
|
|
43
|
+
? `Puisque ${figureToLookAt} est inférieur à $5, on arrondit ${ranksWithAu[precisionAsked]} inférieur.
|
|
44
44
|
|
|
45
45
|
Ainsi, en arrondissant ${ranksWithAu[precisionAsked]}, on a $${decTex} \\approx ${answer}$`
|
|
46
|
-
: `Puisque ${figureToLookAt} est supérieur à 5
|
|
46
|
+
: `Puisque ${figureToLookAt} est supérieur à $5$, on arrondit ${ranksWithAu[precisionAsked]} supérieur.
|
|
47
47
|
|
|
48
|
-
Ainsi, en arrondissant ${ranksWithAu[precisionAsked]}, on a
|
|
48
|
+
Ainsi, en arrondissant ${ranksWithAu[precisionAsked]}, on a
|
|
49
|
+
|
|
50
|
+
$$
|
|
51
|
+
${decTex} \\approx ${answer}
|
|
52
|
+
$$`}`,
|
|
49
53
|
};
|
|
50
54
|
return question;
|
|
51
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalFormDevelopment.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"canonicalFormDevelopment.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AA2DF,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,WAAW,CAe1D,CAAC"}
|
|
@@ -7,6 +7,7 @@ const affine_1 = require("../../../../math/polynomials/affine");
|
|
|
7
7
|
const trinom_1 = require("../../../../math/polynomials/trinom");
|
|
8
8
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
|
+
const alignTex_1 = require("../../../../utils/alignTex");
|
|
10
11
|
const getCanonicalFormDevelopmentQuestion = () => {
|
|
11
12
|
const trinom = trinom_1.TrinomConstructor.randomCanonical();
|
|
12
13
|
const answer = trinom.toTree().toTex();
|
|
@@ -21,12 +22,17 @@ const getCanonicalFormDevelopmentQuestion = () => {
|
|
|
21
22
|
answerFormat: "tex",
|
|
22
23
|
identifiers: { coeffs: trinom.coefficients },
|
|
23
24
|
hint: "Développe d'abord le terme qui est au carré en te servant d'une identité remarquable.",
|
|
24
|
-
correction: `
|
|
25
|
-
|
|
25
|
+
correction: `On a :
|
|
26
|
+
|
|
27
|
+
${(0, alignTex_1.alignTex)([
|
|
28
|
+
[
|
|
29
|
+
cano.toTex(),
|
|
30
|
+
"=",
|
|
31
|
+
new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(a.toTree(), new affine_1.Affine(1, -alpha).square().toTree()), beta.toTree()).toTex(),
|
|
32
|
+
],
|
|
33
|
+
["", "=", answer],
|
|
34
|
+
])}
|
|
26
35
|
|
|
27
|
-
$= ${new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(a.toTree(), new affine_1.Affine(1, -alpha).square().toTree()), beta.toTree()).toTex()}$
|
|
28
|
-
|
|
29
|
-
$= ${answer}$
|
|
30
36
|
`,
|
|
31
37
|
};
|
|
32
38
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"firstIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/firstIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CA6DnE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CAkClE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAKvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
|
|
@@ -30,9 +30,21 @@ const getFirstIdentityQuestion = () => {
|
|
|
30
30
|
keys: ["x"],
|
|
31
31
|
answerFormat: "tex",
|
|
32
32
|
identifiers: { a: affine.a, b: affine.b },
|
|
33
|
-
hint: `Utilise l'identité remarquable
|
|
33
|
+
hint: `Utilise l'identité remarquable
|
|
34
|
+
|
|
35
|
+
$$
|
|
36
|
+
(a+b)^2 = a^2 + 2ab+b^2
|
|
37
|
+
$$
|
|
38
|
+
|
|
39
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$`,
|
|
34
40
|
correction: `
|
|
35
|
-
On utilise l'identité remarquable
|
|
41
|
+
On utilise l'identité remarquable :
|
|
42
|
+
|
|
43
|
+
$$
|
|
44
|
+
(a+b)^2 = a^2 + 2ab+b^2
|
|
45
|
+
$$
|
|
46
|
+
|
|
47
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$.
|
|
36
48
|
|
|
37
49
|
${(0, alignTex_1.alignTex)([
|
|
38
50
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"secondIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/secondIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,WAAW,CA6DpE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,YAAY,CAAC,WAAW,CAqCnE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,WAAW,CAQxD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC"}
|
|
@@ -32,9 +32,21 @@ const getSecondIdentityQuestion = () => {
|
|
|
32
32
|
keys: ["x"],
|
|
33
33
|
answerFormat: "tex",
|
|
34
34
|
identifiers: { a: affine.a, b: affine.b },
|
|
35
|
-
hint: `Utilise l'identité remarquable
|
|
35
|
+
hint: `Utilise l'identité remarquable
|
|
36
|
+
|
|
37
|
+
$$
|
|
38
|
+
(a-b)^2 = a^2 - 2ab+b^2
|
|
39
|
+
$$
|
|
40
|
+
|
|
41
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$`,
|
|
36
42
|
correction: `
|
|
37
|
-
On utilise l'identité remarquable
|
|
43
|
+
On utilise l'identité remarquable
|
|
44
|
+
|
|
45
|
+
$$
|
|
46
|
+
(a-b)^2 = a^2 - 2ab+b^2
|
|
47
|
+
$$
|
|
48
|
+
|
|
49
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
|
|
38
50
|
|
|
39
51
|
${(0, alignTex_1.alignTex)([
|
|
40
52
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"thirdIdentity.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/distributivity/thirdIdentity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAiDnE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CA2BlE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,GAAG,CAAC,WAAW,CAUvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,WAAW,CAc/C,CAAC"}
|
|
@@ -27,9 +27,21 @@ const getThirdIdentityQuestion = () => {
|
|
|
27
27
|
affine1Coeffs: affine.coefficients,
|
|
28
28
|
affine2Coeffs: affine2.coefficients,
|
|
29
29
|
},
|
|
30
|
-
hint: `Utilise l'identité remarquable
|
|
30
|
+
hint: `Utilise l'identité remarquable
|
|
31
|
+
|
|
32
|
+
$$
|
|
33
|
+
(a-b)(a+b) = a^2 - b^2
|
|
34
|
+
$$
|
|
35
|
+
|
|
36
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$`,
|
|
31
37
|
correction: `
|
|
32
|
-
On utilise l'identité remarquable
|
|
38
|
+
On utilise l'identité remarquable
|
|
39
|
+
|
|
40
|
+
$$
|
|
41
|
+
(a-b)(a+b) = a^2 - b^2
|
|
42
|
+
$$
|
|
43
|
+
|
|
44
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$.
|
|
33
45
|
|
|
34
46
|
${(0, alignTex_1.alignTex)([
|
|
35
47
|
[
|
|
@@ -62,7 +62,7 @@ const getEquationSimpleSquare = () => {
|
|
|
62
62
|
|
|
63
63
|
- n'admet pas de solution si $k<0$,
|
|
64
64
|
- admet une solution si $k=0$, qui est $0$
|
|
65
|
-
- admet deux solutions si $k>0
|
|
65
|
+
- admet deux solutions si $k>0$, qui sont $-\\sqrt{k}$ et $\\sqrt{k}$
|
|
66
66
|
`,
|
|
67
67
|
correction: `
|
|
68
68
|
${randNbr < 0
|
|
@@ -37,7 +37,7 @@ const getMultiplicationEquation = () => {
|
|
|
37
37
|
hint: "Un produit est nul si et seulement si un des deux facteurs est nul. Donc, il faut trouver les valeurs de $x$ qui rendent un des deux facteurs nuls.",
|
|
38
38
|
correction: `Un produit est nul si et seulement si un des deux facteurs est nul. On résout donc deux équations :
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
${(0, alignTex_1.alignTex)([
|
|
41
41
|
["", `${statementTex} = 0`],
|
|
42
42
|
[
|
|
43
43
|
"\\iff",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAYlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAsFF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
|
|
@@ -28,9 +28,19 @@ const getFactoType1Question = () => {
|
|
|
28
28
|
keys: ["x"],
|
|
29
29
|
answerFormat: "tex",
|
|
30
30
|
identifiers: { a: affine.a, b: affine.b },
|
|
31
|
-
hint: `Essaie de réécrire cette expression sous la forme
|
|
31
|
+
hint: `Essaie de réécrire cette expression sous la forme
|
|
32
|
+
|
|
33
|
+
$$
|
|
34
|
+
a^2 + 2ab+b^2
|
|
35
|
+
$$`,
|
|
32
36
|
correction: `
|
|
33
|
-
On utilise l'identité remarquable
|
|
37
|
+
On utilise l'identité remarquable
|
|
38
|
+
|
|
39
|
+
$$
|
|
40
|
+
a^2 + 2ab+b^2 = (a+b)^2
|
|
41
|
+
$$
|
|
42
|
+
|
|
43
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${affine.b}$ :
|
|
34
44
|
|
|
35
45
|
${(0, alignTex_1.alignTex)([
|
|
36
46
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAQT,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAyFF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
|
|
@@ -29,9 +29,19 @@ const getFactoType1Question = () => {
|
|
|
29
29
|
keys: ["x"],
|
|
30
30
|
answerFormat: "tex",
|
|
31
31
|
identifiers: { a: affine.a, b: affine.b },
|
|
32
|
-
hint: `Essaie de réécrire cette expression sous la forme
|
|
32
|
+
hint: `Essaie de réécrire cette expression sous la forme
|
|
33
|
+
|
|
34
|
+
$$
|
|
35
|
+
a^2 - 2ab+b^2
|
|
36
|
+
$$`,
|
|
33
37
|
correction: `
|
|
34
|
-
On utilise l'identité remarquable
|
|
38
|
+
On utilise l'identité remarquable
|
|
39
|
+
|
|
40
|
+
$$
|
|
41
|
+
a^2 - 2ab+b^2 = (a-b)^2
|
|
42
|
+
$$
|
|
43
|
+
|
|
44
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${-affine.b}$ :
|
|
35
45
|
|
|
36
46
|
${(0, alignTex_1.alignTex)([
|
|
37
47
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;
|
|
1
|
+
{"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AA6GF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,CAc7C,CAAC"}
|
|
@@ -31,9 +31,19 @@ const getFactoType1Question = () => {
|
|
|
31
31
|
affine1Coeffs: affine.coefficients,
|
|
32
32
|
affine2Coeffs: affine2.coefficients,
|
|
33
33
|
},
|
|
34
|
-
hint: `Utilise l'identité remarquable
|
|
34
|
+
hint: `Utilise l'identité remarquable
|
|
35
|
+
|
|
36
|
+
$$
|
|
37
|
+
a^2 - b^2 = (a-b)(a+b)
|
|
38
|
+
$$`,
|
|
35
39
|
correction: `
|
|
36
|
-
On utilise l'identité remarquable
|
|
40
|
+
On utilise l'identité remarquable
|
|
41
|
+
|
|
42
|
+
$$
|
|
43
|
+
a^2 - b^2=(a-b)(a+b)
|
|
44
|
+
$$
|
|
45
|
+
|
|
46
|
+
en prenant $a=${aMonom.toTex()}$ et $b=${bPositive}$ :
|
|
37
47
|
|
|
38
48
|
${(0, alignTex_1.alignTex)([
|
|
39
49
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factorizeCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"factorizeCanonicalForm.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAUT,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiGF,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAexD,CAAC"}
|
|
@@ -24,9 +24,19 @@ const getFactorizeCanonicalFormQuestion = () => {
|
|
|
24
24
|
keys: ["x"],
|
|
25
25
|
answerFormat: "tex",
|
|
26
26
|
identifiers: { a: affine.b, b },
|
|
27
|
-
hint: `Utilise l'identité remarquable
|
|
27
|
+
hint: `Utilise l'identité remarquable
|
|
28
|
+
|
|
29
|
+
$$
|
|
30
|
+
a^2 - b^2 = (a-b)(a+b)
|
|
31
|
+
$$`,
|
|
28
32
|
correction: `
|
|
29
|
-
On utilise l'identité remarquable
|
|
33
|
+
On utilise l'identité remarquable
|
|
34
|
+
|
|
35
|
+
$$
|
|
36
|
+
a^2 - b^2=(a-b)(a+b)
|
|
37
|
+
$$
|
|
38
|
+
|
|
39
|
+
en prenant $a=${affine.toTex()}$ et $b=${bPositive}$ :
|
|
30
40
|
|
|
31
41
|
${(0, alignTex_1.alignTex)([
|
|
32
42
|
[
|