math-exercises 3.0.150 → 3.0.152
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 +5 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/primeNumbersAffirmations.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.d.ts +5 -1
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.js +92 -38
- package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +5 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportional.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportional.js +7 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +5 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTable.js +5 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.js +8 -2
- package/lib/exercises/math/calculLitteral/equation/equa1.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/equation/equa1.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equa1.js +27 -7
- package/lib/exercises/math/calculLitteral/equation/equa2.d.ts +1 -0
- package/lib/exercises/math/calculLitteral/equation/equa2.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equa2.js +18 -1
- package/lib/exercises/math/calculLitteral/equation/equa3.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/equation/equa3.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equa3.js +26 -6
- package/lib/exercises/math/calculLitteral/equation/equa4.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/equation/equa4.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equa4.js +27 -7
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa1.d.ts +14 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa1.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa1.js +129 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa2.d.ts +18 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa2.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa2.js +167 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa3.d.ts +15 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa3.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa3.js +129 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa4.d.ts +16 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa4.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/equa4.js +124 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType1.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType1.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType1.js +107 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType2.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType2.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType2.js +108 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType3.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType3.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/firstDegreeEquationIntType3.js +104 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/index.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegree/index.js +7 -0
- package/lib/exercises/math/calculLitteral/equation/index.d.ts +1 -7
- package/lib/exercises/math/calculLitteral/equation/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/index.js +1 -7
- package/lib/exercises/math/dataRepresentations/histogram/etendueHistogram.d.ts +8 -0
- package/lib/exercises/math/dataRepresentations/histogram/etendueHistogram.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogram/etendueHistogram.js +175 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramCommenting.d.ts +9 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramCommenting.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramCommenting.js +250 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramFillDataTableFromHistogramData.d.ts +9 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramFillDataTableFromHistogramData.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramFillDataTableFromHistogramData.js +173 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramIsSameData.d.ts +14 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramIsSameData.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramIsSameData.js +239 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramReading.d.ts +9 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramReading.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogram/histogramReading.js +163 -0
- package/lib/exercises/math/dataRepresentations/histogram/index.d.ts +6 -0
- package/lib/exercises/math/dataRepresentations/histogram/index.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogram/index.js +5 -0
- package/lib/exercises/math/dataRepresentations/index.d.ts +1 -1
- package/lib/exercises/math/dataRepresentations/index.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/index.js +1 -1
- package/lib/exercises/math/dataRepresentations/tableReading.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/tableReading.js +7 -0
- package/lib/exercises/math/functions/affines/affineAdjustment.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustment.js +7 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentComplete.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentComplete.js +7 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.js +7 -1
- package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.d.ts +4 -1
- package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.js +19 -4
- package/lib/exercises/math/functions/affines/leadingCoefficient.d.ts +1 -0
- package/lib/exercises/math/functions/affines/leadingCoefficient.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/leadingCoefficient.js +13 -1
- package/lib/exercises/math/functions/affines/recognizeAffineGraph.d.ts +4 -1
- package/lib/exercises/math/functions/affines/recognizeAffineGraph.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/recognizeAffineGraph.js +19 -4
- package/lib/exercises/math/functions/basics/inverseImageFunctionTable.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/inverseImageFunctionTable.js +7 -1
- package/lib/exercises/math/functions/basics/placePointsFromValueTable.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/placePointsFromValueTable.js +7 -0
- package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.d.ts +4 -1
- package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.d.ts.map +1 -1
- package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.js +18 -3
- package/lib/exercises/math/geometry/triangles/index.d.ts +1 -0
- package/lib/exercises/math/geometry/triangles/index.d.ts.map +1 -1
- package/lib/exercises/math/geometry/triangles/index.js +1 -0
- package/lib/exercises/math/geometry/triangles/similar/index.d.ts +4 -0
- package/lib/exercises/math/geometry/triangles/similar/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/triangles/similar/index.js +3 -0
- package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWithAngles.d.ts +10 -0
- package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWithAngles.d.ts.map +1 -0
- package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWithAngles.js +122 -0
- package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWrtSideLengths.d.ts +15 -0
- package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWrtSideLengths.d.ts.map +1 -0
- package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWrtSideLengths.js +351 -0
- package/lib/exercises/math/geometry/triangles/similar/placeSegmentsOfSimilarTriangle.d.ts +11 -0
- package/lib/exercises/math/geometry/triangles/similar/placeSegmentsOfSimilarTriangle.d.ts.map +1 -0
- package/lib/exercises/math/geometry/triangles/similar/placeSegmentsOfSimilarTriangle.js +311 -0
- package/lib/exercises/math/probaStat/basicProbas/calculateProbaFromProbaLaw.d.ts +10 -0
- package/lib/exercises/math/probaStat/basicProbas/calculateProbaFromProbaLaw.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/calculateProbaFromProbaLaw.js +135 -0
- package/lib/exercises/math/probaStat/basicProbas/findEffectifFromProba.d.ts +9 -0
- package/lib/exercises/math/probaStat/basicProbas/findEffectifFromProba.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/findEffectifFromProba.js +109 -0
- package/lib/exercises/math/probaStat/basicProbas/getMissingProbabilityValue.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/getMissingProbabilityValue.js +7 -0
- package/lib/exercises/math/probaStat/basicProbas/getMissingProbabilityValueMiddleSchool.d.ts +9 -0
- package/lib/exercises/math/probaStat/basicProbas/getMissingProbabilityValueMiddleSchool.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/getMissingProbabilityValueMiddleSchool.js +120 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts +4 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/index.js +4 -0
- package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableTo.d.ts +12 -0
- package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableTo.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableTo.js +374 -0
- package/lib/exercises/math/probaStat/probaFromTableNoContext.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/probaFromTableNoContext.js +7 -0
- package/lib/exercises/math/probaStat/probaFromTableWithContext.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/probaFromTableWithContext.js +7 -0
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.js +7 -1
- package/lib/exercises/math/probaStat/stats1var/calculateMeanFromFrequencies.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/calculateMeanFromFrequencies.js +7 -0
- package/lib/exercises/math/probaStat/stats1var/cumulativeSum.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/cumulativeSum.js +7 -0
- package/lib/exercises/math/probaStat/stats1var/etendueTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/etendueTable.js +7 -1
- package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/getQuartileProportionQuestion.js +7 -0
- package/lib/exercises/math/probaStat/stats1var/interquartilesTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/interquartilesTable.js +5 -1
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.js +7 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithList.d.ts +2 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithList.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/medianWithList.js +67 -14
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.js +7 -1
- package/lib/exercises/math/probaStat/stats1var/quartiles.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/quartiles.js +7 -1
- package/lib/exercises/math/probaStat/stats1var/standardDeviationTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/standardDeviationTable.js +5 -1
- package/lib/exercises/math/probaStat/stats1var/varianceTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/varianceTable.js +5 -1
- package/lib/exercises/math/probaStat/stats2var/averagePoint.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats2var/averagePoint.js +7 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.d.ts +7 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.js +171 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.d.ts +7 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.js +155 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/index.d.ts +3 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/index.js +3 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.d.ts +7 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.js +189 -0
- package/lib/exercises/math/spaceGeometry/index.d.ts +1 -0
- package/lib/exercises/math/spaceGeometry/index.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/index.js +1 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfConeSection.d.ts +14 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfConeSection.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfConeSection.js +439 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfCylinderSection.d.ts +14 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfCylinderSection.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfCylinderSection.js +548 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfRectangularPrismSection.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfRectangularPrismSection.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfRectangularPrismSection.js +360 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfSphereSection.d.ts +9 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfSphereSection.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/areaOfSphereSection.js +272 -0
- package/lib/exercises/math/spaceGeometry/sections/index.d.ts +9 -0
- package/lib/exercises/math/spaceGeometry/sections/index.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/index.js +8 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfCone.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfCone.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfCone.js +266 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfCylinder.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfCylinder.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfCylinder.js +236 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfRectangularPrism.d.ts +7 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfRectangularPrism.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfRectangularPrism.js +92 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfSphereOrBall.d.ts +9 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfSphereOrBall.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sections/recognizeSectionsOfSphereOrBall.js +236 -0
- package/lib/exercises/pc/mathExosInPC.d.ts +4 -4
- package/lib/exercises/pc/mathExosInPC.d.ts.map +1 -1
- package/lib/exercises/pc/mathExosInPC.js +4 -4
- package/lib/index.d.ts +173 -45
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/spacePoint.d.ts +10 -0
- package/lib/math/geometry/spacePoint.d.ts.map +1 -1
- package/lib/math/geometry/spacePoint.js +13 -0
- package/lib/tree/nodes/operators/substractNode.d.ts +1 -0
- package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/substractNode.js +6 -0
- package/package.json +1 -1
|
@@ -100,6 +100,11 @@ export interface Question<TIdentifiers, TOptions = Record<string, string | strin
|
|
|
100
100
|
correctionGgbOptions?: GeogebraOptions;
|
|
101
101
|
style?: {
|
|
102
102
|
tableHasNoHeader?: boolean;
|
|
103
|
+
tableOptions?: {
|
|
104
|
+
firstColumnIsHeader: boolean;
|
|
105
|
+
firstRowIsHeader: boolean;
|
|
106
|
+
firstCellIsDivided: boolean;
|
|
107
|
+
};
|
|
103
108
|
};
|
|
104
109
|
divisionFormat?: "fraction" | "obelus";
|
|
105
110
|
identifiers: TIdentifiers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,eAAO,MAAM,SAAS,GACpB,cAAc,WAAW,EAAE,EAC3B,GAAG,MAAM,EACT,SAAS,MAAM,IAAI,SAQpB,CAAC;AACF,eAAO,MAAM,YAAY,GACvB,OAAO,WAAW,EAAE,EACpB,WAAW,MAAM,EACjB,SAAQ,KAAK,GAAG,KAAa,SAQ9B,CAAC;AACF,eAAO,MAAM,YAAY,GACvB,OAAO,WAAW,EAAE,EACpB,WAAW,MAAM,EACjB,SAAQ,KAAK,GAAG,KAAa,SAQ9B,CAAC;AACF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,WAAW,EAAE,EACpB,WAAW,MAAM,EACjB,SAAQ,KAAK,GAAG,KAAa,SAU9B,CAAC;AAEF,eAAO,MAAM,YAAY,GACvB,OAAO,WAAW,EAAE,EACpB,GAAG,MAAM,EACT,oBAAoB,MAAM,kBAQ3B,CAAC;AAEF,oBAAY,qBAAqB;IAC/B,UAAU,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AACD,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,WAAW,gBAAgB;CAC5B;AACD,MAAM,MAAM,eAAe,GACvB;IACE,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC;IACnC,MAAM,EAAE,qBAAqB,CAAC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CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACpD,aAAa,CAAC,EAAE,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACtD,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACpE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAChE,0BAA0B,EAAE,0BAA0B,CACpD,YAAY,EACZ,QAAQ,CACT,CAAC;IACF,MAAM,CAAC,EAAE,cAAc,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC;IAC1E,QAAQ,CAAC,EAAE,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;CAC7C"}
|
|
@@ -5,7 +5,7 @@ import { randTupleInt } from "../../../../math/utils/random/randTupleInt.js";
|
|
|
5
5
|
const rightAffirmations = [
|
|
6
6
|
"Tout entier naturel est diviseur de lui-même.",
|
|
7
7
|
"Il y a une infinité de nombres premiers.",
|
|
8
|
-
"Tout nombre entier admet au moins deux diviseurs.",
|
|
8
|
+
"Tout nombre entier, sauf $1$, admet au moins deux diviseurs.",
|
|
9
9
|
"$1$ est diviseur de tous les nombres entiers.",
|
|
10
10
|
"$2$ est le seul nombre premier pair.",
|
|
11
11
|
"Un nombre premier n'a que deux diviseurs : $1$ et lui-même.",
|
|
@@ -4,6 +4,10 @@ type Identifiers = {
|
|
|
4
4
|
numerator: number;
|
|
5
5
|
denominator: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type Options = {
|
|
8
|
+
variantType: "original" | "proba";
|
|
9
|
+
};
|
|
10
|
+
export declare const fractionToPercentToDecimal: Exercise<Identifiers, Options>;
|
|
11
|
+
export declare const fractionToPercentToDecimalProbaVariant: Exercise<Identifiers, Options>;
|
|
8
12
|
export {};
|
|
9
13
|
//# sourceMappingURL=fractionToPercentToDecimal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionToPercentToDecimal.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionToPercentToDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAarC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionToPercentToDecimal.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionToPercentToDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAarC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAmSF,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgBrE,CAAC;AAEF,eAAO,MAAM,sCAAsC,EAAE,QAAQ,CAC3D,WAAW,EACX,OAAO,CAiBR,CAAC"}
|
|
@@ -9,32 +9,36 @@ import { NumberNode } from "../../../../tree/nodes/numbers/numberNode.js";
|
|
|
9
9
|
import { PercentNode } from "../../../../tree/nodes/numbers/percentNode.js";
|
|
10
10
|
import { frac, FractionNode } from "../../../../tree/nodes/operators/fractionNode.js";
|
|
11
11
|
import { shuffle } from "../../../../utils/alea/shuffle.js";
|
|
12
|
-
const getInstruction = (identifiers) => {
|
|
12
|
+
const getInstruction = (identifiers, opts) => {
|
|
13
13
|
const { rand, numerator, denominator } = identifiers;
|
|
14
14
|
const fraction = new FractionNode(new NumberNode(numerator), new NumberNode(denominator));
|
|
15
15
|
const decimal = numerator / denominator;
|
|
16
16
|
const percent = round((numerator / denominator) * 100, 2);
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
const strTheObj = opts?.variantType === "proba" ? "la probabilité" : "le nombre";
|
|
18
|
+
return `Écrire ${strTheObj}
|
|
19
|
+
${(() => {
|
|
20
|
+
switch (rand) {
|
|
21
|
+
case 1: {
|
|
22
|
+
return `$${decimal.frenchify()}$ sous forme de pourcentage.`;
|
|
23
|
+
}
|
|
24
|
+
case 2: {
|
|
25
|
+
return `$${decimal.frenchify()}$ sous forme de fraction irréductible.`;
|
|
26
|
+
}
|
|
27
|
+
case 3: {
|
|
28
|
+
return `$${percent.frenchify()}\\%$ sous forme décimale.`;
|
|
29
|
+
}
|
|
30
|
+
case 4: {
|
|
31
|
+
return `$${percent.frenchify()}\\%$ sous forme de fraction irréductible.`;
|
|
32
|
+
}
|
|
33
|
+
case 5: {
|
|
34
|
+
return `$${fraction.toTex()}$ sous forme décimale.`;
|
|
35
|
+
}
|
|
36
|
+
case 6:
|
|
37
|
+
default: {
|
|
38
|
+
return `$${fraction.toTex()}$ sous forme de pourcentage.`;
|
|
39
|
+
}
|
|
36
40
|
}
|
|
37
|
-
}
|
|
41
|
+
})()}`;
|
|
38
42
|
};
|
|
39
43
|
const getAnswer = (identifiers) => {
|
|
40
44
|
const { rand, numerator, denominator } = identifiers;
|
|
@@ -68,7 +72,7 @@ const getAnswer = (identifiers) => {
|
|
|
68
72
|
};
|
|
69
73
|
const getHint = () => {
|
|
70
74
|
return `- Un pourcentage du type $x\\%$ signifie : $\\frac{x}{100}$
|
|
71
|
-
- Pour transformer un nombre écrit sous forme
|
|
75
|
+
- Pour transformer un nombre écrit sous forme décimale en fraction, tu peux écrire au numérateur de la fraction le nombre sans virgule, et au dénominateur soit $10$, soit $100$, soit $1000$, etc... afin que la fraction soit bien égale au nombre décimal.`;
|
|
72
76
|
};
|
|
73
77
|
const getCorrection = (identifiers) => {
|
|
74
78
|
const { rand, numerator, denominator } = identifiers;
|
|
@@ -116,28 +120,66 @@ Ainsi $${fraction.toTex()} = ${percentTex}$.`;
|
|
|
116
120
|
}
|
|
117
121
|
return ``;
|
|
118
122
|
};
|
|
119
|
-
const getQuestionFromIdentifiers = (identifiers) => {
|
|
123
|
+
const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
120
124
|
const question = {
|
|
121
|
-
instruction: getInstruction(identifiers),
|
|
125
|
+
instruction: getInstruction(identifiers, opts),
|
|
122
126
|
answer: getAnswer(identifiers),
|
|
123
127
|
keys: ["percent"],
|
|
124
128
|
answerFormat: "tex",
|
|
125
129
|
identifiers,
|
|
126
|
-
hint: getHint(identifiers),
|
|
127
|
-
correction: getCorrection(identifiers),
|
|
130
|
+
hint: getHint(identifiers, opts),
|
|
131
|
+
correction: getCorrection(identifiers, opts),
|
|
132
|
+
options: opts,
|
|
128
133
|
};
|
|
129
134
|
return question;
|
|
130
135
|
};
|
|
131
|
-
const getFractionToPercentToDecimal = () => {
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
rand,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
const getFractionToPercentToDecimal = (opts) => {
|
|
137
|
+
const variantType = opts?.variantType ?? "original";
|
|
138
|
+
function createRandomIdentifiers() {
|
|
139
|
+
const denominator = 2 ** randint(0, 5) * 5 ** randint(0, 3);
|
|
140
|
+
const numerator = denominator !== 1 ? randint(1, denominator) : randint(1, 100);
|
|
141
|
+
const rand = randint(1, 7);
|
|
142
|
+
const identifiers = {
|
|
143
|
+
rand,
|
|
144
|
+
numerator,
|
|
145
|
+
denominator,
|
|
146
|
+
};
|
|
147
|
+
return identifiers;
|
|
148
|
+
}
|
|
149
|
+
let identifiers;
|
|
150
|
+
let counter = -1;
|
|
151
|
+
let isValid = false;
|
|
152
|
+
while (!isValid && counter < 100) {
|
|
153
|
+
counter++;
|
|
154
|
+
const identifiersCandidate = createRandomIdentifiers();
|
|
155
|
+
switch (variantType) {
|
|
156
|
+
case "original":
|
|
157
|
+
{
|
|
158
|
+
isValid = true;
|
|
159
|
+
}
|
|
160
|
+
break;
|
|
161
|
+
case "proba":
|
|
162
|
+
{
|
|
163
|
+
const { numerator, denominator } = identifiersCandidate;
|
|
164
|
+
const fractionNode = frac(numerator, denominator);
|
|
165
|
+
const value = fractionNode.evaluate();
|
|
166
|
+
isValid = 0 <= value && value <= 1;
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
if (isValid) {
|
|
171
|
+
identifiers = identifiersCandidate;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if (!isValid) {
|
|
175
|
+
const identifiersDefault = {
|
|
176
|
+
rand: 3,
|
|
177
|
+
numerator: 2,
|
|
178
|
+
denominator: 5,
|
|
179
|
+
};
|
|
180
|
+
identifiers = identifiersDefault;
|
|
181
|
+
}
|
|
182
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
141
183
|
};
|
|
142
184
|
const getPropositions = (n, { answer, rand, numerator, denominator }) => {
|
|
143
185
|
const propositions = [];
|
|
@@ -211,10 +253,22 @@ const isAnswerValid = (ans, { rand, numerator, denominator }) => {
|
|
|
211
253
|
};
|
|
212
254
|
export const fractionToPercentToDecimal = {
|
|
213
255
|
id: "fractionToPercentToDecimal",
|
|
214
|
-
connector: "\\iff",
|
|
215
256
|
label: "Passer d'une écriture d'un nombre à une autre",
|
|
216
257
|
isSingleStep: false,
|
|
217
|
-
generator: (nb) => getDistinctQuestions(getFractionToPercentToDecimal, nb),
|
|
258
|
+
generator: (nb) => getDistinctQuestions(() => getFractionToPercentToDecimal({ variantType: "original" }), nb),
|
|
259
|
+
qcmTimer: 60,
|
|
260
|
+
freeTimer: 60,
|
|
261
|
+
getPropositions,
|
|
262
|
+
isAnswerValid,
|
|
263
|
+
subject: "Mathématiques",
|
|
264
|
+
getQuestionFromIdentifiers,
|
|
265
|
+
hasHintAndCorrection: true,
|
|
266
|
+
};
|
|
267
|
+
export const fractionToPercentToDecimalProbaVariant = {
|
|
268
|
+
id: "fractionToPercentToDecimalProbaVariant",
|
|
269
|
+
label: "Passer d'une écriture d'une probabilité à une autre",
|
|
270
|
+
isSingleStep: false,
|
|
271
|
+
generator: (nb) => getDistinctQuestions(() => getFractionToPercentToDecimal({ variantType: "proba" }), nb),
|
|
218
272
|
qcmTimer: 60,
|
|
219
273
|
freeTimer: 60,
|
|
220
274
|
getPropositions,
|
package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findCoeffInProportionalTableNonIntegers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAU7C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"findCoeffInProportionalTableNonIntegers.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAU7C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA2JF,KAAK,OAAO,GAAG;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAoBF,eAAO,MAAM,uCAAuC,EAAE,QAAQ,CAC5D,WAAW,EACX,OAAO,CAuBR,CAAC"}
|
package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js
CHANGED
|
@@ -123,7 +123,11 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
123
123
|
hint: getHint(identifiers),
|
|
124
124
|
correction: getCorrection(identifiers),
|
|
125
125
|
style: {
|
|
126
|
-
|
|
126
|
+
tableOptions: {
|
|
127
|
+
firstCellIsDivided: false,
|
|
128
|
+
firstColumnIsHeader: false,
|
|
129
|
+
firstRowIsHeader: false,
|
|
130
|
+
},
|
|
127
131
|
},
|
|
128
132
|
};
|
|
129
133
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTableProportional.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/isTableProportional.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"isTableProportional.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/isTableProportional.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAUrC,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAsG5D,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,WAAW,CAcrD,CAAC"}
|
|
@@ -46,10 +46,16 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
46
46
|
instruction: getInstruction(identifiers),
|
|
47
47
|
keys: [],
|
|
48
48
|
answerFormat: "raw",
|
|
49
|
-
style: { tableHasNoHeader: true },
|
|
50
49
|
identifiers,
|
|
51
50
|
hint: getHint(identifiers),
|
|
52
51
|
correction: getCorrection(identifiers),
|
|
52
|
+
style: {
|
|
53
|
+
tableOptions: {
|
|
54
|
+
firstColumnIsHeader: false,
|
|
55
|
+
firstCellIsDivided: false,
|
|
56
|
+
firstRowIsHeader: false,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
53
59
|
};
|
|
54
60
|
return question;
|
|
55
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTableProportionalNonInteger.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/isTableProportionalNonInteger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAU7C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAmEF,KAAK,OAAO,GAAG;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"isTableProportionalNonInteger.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/isTableProportionalNonInteger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAU7C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAmEF,KAAK,OAAO,GAAG;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAyGF,eAAO,MAAM,6BAA6B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAmBxE,CAAC"}
|
|
@@ -119,7 +119,11 @@ const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
|
119
119
|
hint: getHint(identifiers),
|
|
120
120
|
correction: getCorrection(identifiers),
|
|
121
121
|
style: {
|
|
122
|
-
|
|
122
|
+
tableOptions: {
|
|
123
|
+
firstColumnIsHeader: false,
|
|
124
|
+
firstCellIsDivided: false,
|
|
125
|
+
firstRowIsHeader: false,
|
|
126
|
+
},
|
|
123
127
|
},
|
|
124
128
|
};
|
|
125
129
|
return question;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proportionalityTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/proportionalityTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"proportionalityTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/proportionalityTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC;AA4HF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAetD,CAAC"}
|
|
@@ -90,7 +90,11 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
90
90
|
answerFormat: "tex",
|
|
91
91
|
identifiers,
|
|
92
92
|
style: {
|
|
93
|
-
|
|
93
|
+
tableOptions: {
|
|
94
|
+
firstColumnIsHeader: false,
|
|
95
|
+
firstCellIsDivided: false,
|
|
96
|
+
firstRowIsHeader: false,
|
|
97
|
+
},
|
|
94
98
|
},
|
|
95
99
|
hint: getHint(identifiers),
|
|
96
100
|
correction: getCorrection(identifiers),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proportionalityTableCoefficient.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/proportionalityTableCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"proportionalityTableCoefficient.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/proportionality/proportionalityTableCoefficient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAWrC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AA2FF,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CAAC,WAAW,CAejE,CAAC"}
|
|
@@ -29,7 +29,7 @@ const getHint = () => {
|
|
|
29
29
|
};
|
|
30
30
|
const getCorrection = (identifiers) => {
|
|
31
31
|
const { xValues, yValues } = identifiers;
|
|
32
|
-
return `Le coefficient de proportionnalité est le
|
|
32
|
+
return `Le coefficient de proportionnalité est le nombre par lequel on multiplie les valeurs de la première ligne pour obtenir les valeurs de la deuxième ligne.
|
|
33
33
|
|
|
34
34
|
Pour l'obtenir, on divise une valeur de la deuxième ligne par la valeur correspondante dans la première ligne, par exemple :
|
|
35
35
|
|
|
@@ -51,7 +51,13 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
51
51
|
keys: [],
|
|
52
52
|
answerFormat: "tex",
|
|
53
53
|
identifiers,
|
|
54
|
-
style: {
|
|
54
|
+
style: {
|
|
55
|
+
tableOptions: {
|
|
56
|
+
firstColumnIsHeader: false,
|
|
57
|
+
firstCellIsDivided: false,
|
|
58
|
+
firstRowIsHeader: false,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
55
61
|
hint: getHint(identifiers),
|
|
56
62
|
correction: getCorrection(identifiers),
|
|
57
63
|
};
|
|
@@ -6,6 +6,9 @@ type Identifiers = {
|
|
|
6
6
|
a: number;
|
|
7
7
|
b: number;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type Options = {
|
|
10
|
+
solutionFormat: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const equationType1Exercise: Exercise<Identifiers, Options>;
|
|
10
13
|
export {};
|
|
11
14
|
//# sourceMappingURL=equa1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equa1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"equa1.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa1.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAYrC;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqHF,KAAK,OAAO,GAAG;IACb,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAYF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAoBhE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { addValidProp, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
1
|
+
import { GeneratorOptionTarget, GeneratorOptionType, addValidProp, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
2
|
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
-
import { equationKeys } from "../../../../exercises/utils/keys/equationKeys.js";
|
|
4
3
|
import { Affine } from "../../../../math/polynomials/affine.js";
|
|
5
4
|
import { randint } from "../../../../math/utils/random/randint.js";
|
|
6
5
|
import { NumberNode } from "../../../../tree/nodes/numbers/numberNode.js";
|
|
@@ -9,6 +8,7 @@ import { EqualNode } from "../../../../tree/nodes/equations/equalNode.js";
|
|
|
9
8
|
import { alignTex } from "../../../../utils/latex/alignTex.js";
|
|
10
9
|
import { AddNode } from "../../../../tree/nodes/operators/addNode.js";
|
|
11
10
|
import { equationVEA } from "../../../../exercises/vea/equationVEA.js";
|
|
11
|
+
import { equationKeys } from "../../../../exercises/utils/keys/equationKeys.js";
|
|
12
12
|
const getInstruction = (identifiers) => {
|
|
13
13
|
const { a, b } = identifiers;
|
|
14
14
|
const affine = new Affine(1, a).toTree();
|
|
@@ -54,18 +54,27 @@ const getStartStatement = (identifiers) => {
|
|
|
54
54
|
const statementTree = tree.toTex();
|
|
55
55
|
return statementTree;
|
|
56
56
|
};
|
|
57
|
-
const getEquationType1ExerciseQuestion = () => {
|
|
57
|
+
const getEquationType1ExerciseQuestion = (opts) => {
|
|
58
58
|
const b = randint(-10, 11);
|
|
59
59
|
const a = randint(-10, 11, [0]);
|
|
60
60
|
const identifiers = { a, b };
|
|
61
|
-
return getQuestionFromIdentifiers(identifiers);
|
|
61
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
62
|
+
};
|
|
63
|
+
const getKeys = (_identifiers, opts) => {
|
|
64
|
+
if (opts?.solutionFormat === "Ensemble") {
|
|
65
|
+
return ["S", "equal", "lbrace", "semicolon", "rbrace", "varnothing"];
|
|
66
|
+
}
|
|
67
|
+
if (opts?.solutionFormat === "$x=\\ldots$") {
|
|
68
|
+
return ["x", "equal"];
|
|
69
|
+
}
|
|
70
|
+
return equationKeys;
|
|
62
71
|
};
|
|
63
|
-
const getQuestionFromIdentifiers = (identifiers) => {
|
|
72
|
+
const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
64
73
|
const question = {
|
|
65
74
|
instruction: getInstruction(identifiers),
|
|
66
75
|
startStatement: getStartStatement(identifiers),
|
|
67
76
|
answer: getAnswer(identifiers),
|
|
68
|
-
keys:
|
|
77
|
+
keys: getKeys(identifiers, opts),
|
|
69
78
|
answerFormat: "tex",
|
|
70
79
|
identifiers,
|
|
71
80
|
hint: getHint(identifiers),
|
|
@@ -88,12 +97,22 @@ const isAnswerValid = (ans, { a, b }) => {
|
|
|
88
97
|
const solution = (b - a).toTree().toTex();
|
|
89
98
|
return equationVEA(ans, solution);
|
|
90
99
|
};
|
|
100
|
+
const options = [
|
|
101
|
+
{
|
|
102
|
+
id: "solutionFormat",
|
|
103
|
+
label: "Donner la solution sous la forme :",
|
|
104
|
+
target: GeneratorOptionTarget.generation,
|
|
105
|
+
type: GeneratorOptionType.select,
|
|
106
|
+
values: ["Ensemble", "$x=\\ldots$", "Permettre les deux"],
|
|
107
|
+
defaultValue: "Permettre les deux",
|
|
108
|
+
},
|
|
109
|
+
];
|
|
91
110
|
export const equationType1Exercise = {
|
|
92
111
|
id: "equa1",
|
|
93
112
|
connector: "\\iff",
|
|
94
113
|
label: "Résoudre une équation du type $x+a = b$",
|
|
95
114
|
isSingleStep: true,
|
|
96
|
-
generator: (nb) => getDistinctQuestions(getEquationType1ExerciseQuestion, nb),
|
|
115
|
+
generator: (nb, opts) => getDistinctQuestions(() => getEquationType1ExerciseQuestion(opts), nb),
|
|
97
116
|
getPropositions,
|
|
98
117
|
qcmTimer: 60,
|
|
99
118
|
freeTimer: 60,
|
|
@@ -106,4 +125,5 @@ export const equationType1Exercise = {
|
|
|
106
125
|
getAnswer,
|
|
107
126
|
getStartStatement,
|
|
108
127
|
getQuestionFromIdentifiers,
|
|
128
|
+
options,
|
|
109
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equa2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"equa2.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa2.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAarC,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAM7C;;GAEG;AAGH,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAuJF,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAqBF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAoBhE,CAAC"}
|
|
@@ -85,12 +85,21 @@ const getEquationType2ExerciseQuestion = (opts) => {
|
|
|
85
85
|
};
|
|
86
86
|
return getQuestionFromIdentifiers(identifiers, opts);
|
|
87
87
|
};
|
|
88
|
+
const getKeys = (_identifiers, opts) => {
|
|
89
|
+
if (opts?.solutionFormat === "Ensemble") {
|
|
90
|
+
return ["S", "equal", "lbrace", "semicolon", "rbrace", "varnothing"];
|
|
91
|
+
}
|
|
92
|
+
if (opts?.solutionFormat === "$x=\\ldots$") {
|
|
93
|
+
return ["x", "equal"];
|
|
94
|
+
}
|
|
95
|
+
return equationKeys;
|
|
96
|
+
};
|
|
88
97
|
const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
89
98
|
const question = {
|
|
90
99
|
instruction: getInstruction(identifiers, opts),
|
|
91
100
|
startStatement: getStartStatement(identifiers, opts),
|
|
92
101
|
answer: getAnswer(identifiers, opts),
|
|
93
|
-
keys:
|
|
102
|
+
keys: getKeys(identifiers, opts),
|
|
94
103
|
answerFormat: "tex",
|
|
95
104
|
identifiers,
|
|
96
105
|
hint: getHint(identifiers, opts),
|
|
@@ -127,6 +136,14 @@ const options = [
|
|
|
127
136
|
defaultValue: ["Entier"],
|
|
128
137
|
values: ["Entier", "Rationnel"],
|
|
129
138
|
},
|
|
139
|
+
{
|
|
140
|
+
id: "solutionFormat",
|
|
141
|
+
label: "Donner la solution sous la forme :",
|
|
142
|
+
target: GeneratorOptionTarget.generation,
|
|
143
|
+
type: GeneratorOptionType.select,
|
|
144
|
+
values: ["Ensemble", "$x=\\ldots$", "Permettre les deux"],
|
|
145
|
+
defaultValue: "Permettre les deux",
|
|
146
|
+
},
|
|
130
147
|
];
|
|
131
148
|
export const equationType2Exercise = {
|
|
132
149
|
id: "equa2",
|
|
@@ -7,6 +7,9 @@ type Identifiers = {
|
|
|
7
7
|
b: number;
|
|
8
8
|
c: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type Options = {
|
|
11
|
+
solutionFormat: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const equationType3Exercise: Exercise<Identifiers, Options>;
|
|
11
14
|
export {};
|
|
12
15
|
//# sourceMappingURL=equa3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equa3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"equa3.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa3.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAerC;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAmHF,KAAK,OAAO,GAAG;IACb,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAYF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAqBhE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addValidProp, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
1
|
+
import { GeneratorOptionTarget, GeneratorOptionType, addValidProp, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
2
|
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
3
|
import { equationKeys } from "../../../../exercises/utils/keys/equationKeys.js";
|
|
4
4
|
import { Rational } from "../../../../math/numbers/rationals/rational.js";
|
|
@@ -53,21 +53,30 @@ const getAnswer = (identifiers) => {
|
|
|
53
53
|
const answer = answerTree.toTex();
|
|
54
54
|
return answer;
|
|
55
55
|
};
|
|
56
|
-
const getEquationType3ExerciseQuestion = () => {
|
|
56
|
+
const getEquationType3ExerciseQuestion = (opts) => {
|
|
57
57
|
const b = randint(-10, 11, [0]);
|
|
58
58
|
const a = randint(-10, 11, [0, 1]);
|
|
59
59
|
const c = randint(-10, 11);
|
|
60
60
|
const identifiers = { a, b, c };
|
|
61
|
-
return getQuestionFromIdentifiers(identifiers);
|
|
61
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
62
62
|
};
|
|
63
|
-
const
|
|
63
|
+
const getKeys = (_identifiers, opts) => {
|
|
64
|
+
if (opts?.solutionFormat === "Ensemble") {
|
|
65
|
+
return ["S", "equal", "lbrace", "semicolon", "rbrace", "varnothing"];
|
|
66
|
+
}
|
|
67
|
+
if (opts?.solutionFormat === "$x=\\ldots$") {
|
|
68
|
+
return ["x", "equal"];
|
|
69
|
+
}
|
|
70
|
+
return equationKeys;
|
|
71
|
+
};
|
|
72
|
+
const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
64
73
|
const question = {
|
|
65
74
|
instruction: getInstruction(identifiers),
|
|
66
75
|
hint: getHint(identifiers),
|
|
67
76
|
correction: getCorrection(identifiers),
|
|
68
77
|
startStatement: getStartStatement(identifiers),
|
|
69
78
|
answer: getAnswer(identifiers),
|
|
70
|
-
keys:
|
|
79
|
+
keys: getKeys(identifiers, opts),
|
|
71
80
|
answerFormat: "tex",
|
|
72
81
|
identifiers,
|
|
73
82
|
};
|
|
@@ -88,12 +97,22 @@ const isAnswerValid = (ans, { a, b, c }) => {
|
|
|
88
97
|
.toTex();
|
|
89
98
|
return equationVEA(ans, solution);
|
|
90
99
|
};
|
|
100
|
+
const options = [
|
|
101
|
+
{
|
|
102
|
+
id: "solutionFormat",
|
|
103
|
+
label: "Donner la solution sous la forme :",
|
|
104
|
+
target: GeneratorOptionTarget.generation,
|
|
105
|
+
type: GeneratorOptionType.select,
|
|
106
|
+
values: ["Ensemble", "$x=\\ldots$", "Permettre les deux"],
|
|
107
|
+
defaultValue: "Permettre les deux",
|
|
108
|
+
},
|
|
109
|
+
];
|
|
91
110
|
export const equationType3Exercise = {
|
|
92
111
|
id: "equa3",
|
|
93
112
|
connector: "\\iff",
|
|
94
113
|
label: "Résoudre une équation du type $ax+b=c$",
|
|
95
114
|
isSingleStep: false,
|
|
96
|
-
generator: (nb) => getDistinctQuestions(getEquationType3ExerciseQuestion, nb),
|
|
115
|
+
generator: (nb, opts) => getDistinctQuestions(() => getEquationType3ExerciseQuestion(opts), nb),
|
|
97
116
|
qcmTimer: 60,
|
|
98
117
|
freeTimer: 60,
|
|
99
118
|
getPropositions,
|
|
@@ -106,4 +125,5 @@ export const equationType3Exercise = {
|
|
|
106
125
|
getHint,
|
|
107
126
|
getStartStatement,
|
|
108
127
|
getQuestionFromIdentifiers,
|
|
128
|
+
options,
|
|
109
129
|
};
|
|
@@ -8,6 +8,9 @@ type Identifiers = {
|
|
|
8
8
|
c: number;
|
|
9
9
|
d: number;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type Options = {
|
|
12
|
+
solutionFormat: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const equationType4Exercise: Exercise<Identifiers, Options>;
|
|
12
15
|
export {};
|
|
13
16
|
//# sourceMappingURL=equa4.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equa4.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa4.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"equa4.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calculLitteral/equation/equa4.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAerC;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAgHF,KAAK,OAAO,GAAG;IACb,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAaF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAmBhE,CAAC"}
|