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
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
4
|
+
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
5
|
+
import { probaFlip } from "../../../../utils/alea/probaFlip.js";
|
|
6
|
+
import { random, randomMany } from "../../../../utils/alea/random.js";
|
|
7
|
+
const getInstruction = (identifiers) => {
|
|
8
|
+
const { strOfX, radius, isDiameterGiven } = identifiers;
|
|
9
|
+
return `Parmi les propositions suivantes, lesquelles peuvent être des sections planes ${strOfX} de ${isDiameterGiven ? "diamètre" : "rayon"} $${(isDiameterGiven ? 2 * radius : radius).frenchify()}\\ \\textrm{cm}$ ?`;
|
|
10
|
+
};
|
|
11
|
+
const getHint = (identifiers) => {
|
|
12
|
+
const { strOfX } = identifiers;
|
|
13
|
+
if (strOfX === "d'une sphère") {
|
|
14
|
+
return "Est-ce qu'une sphère est pleine ?";
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return "Est-ce qu'une boule est creuse ?";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const getCorrection = (identifiers) => {
|
|
21
|
+
const { strOfX, radius } = identifiers;
|
|
22
|
+
if (strOfX === "d'une sphère") {
|
|
23
|
+
return `On s'intéresse aux sections planes ${strOfX} de rayon $${radius} \\ \\textrm{cm}$.
|
|
24
|
+
Les sections planes possibles sont :
|
|
25
|
+
- un point (quand le plan est tangent à la sphère)
|
|
26
|
+
- tous les cercles de rayon inférieur ou égal à $${radius} \\ \\textrm{cm}$.
|
|
27
|
+
|
|
28
|
+
La sphère est "creuse", les sections planes sont "creuses" elles aussi.`;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return `On s'intéresse aux sections planes ${strOfX} de rayon $${radius} \\ \\textrm{cm}$.
|
|
32
|
+
Les sections planes possibles sont :
|
|
33
|
+
- un point (quand le plan est tangent à la boule)
|
|
34
|
+
- tous les disques de rayon inférieur ou égal à $${radius} \\ \\textrm{cm}$.
|
|
35
|
+
|
|
36
|
+
La boule est "pleine", les sections planes sont "pleines" elles aussi.`;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const getPropositions = (n, { answer, ...identifiers }) => {
|
|
40
|
+
const { strOfX, radius } = identifiers;
|
|
41
|
+
const propositions = [];
|
|
42
|
+
if (strOfX === "d'une sphère") {
|
|
43
|
+
const validPool = [
|
|
44
|
+
"un point",
|
|
45
|
+
//circle=radius
|
|
46
|
+
random([
|
|
47
|
+
`un cercle de rayon $${radius} \\ \\textrm{cm}$`,
|
|
48
|
+
`un cercle de diamètre $${2 * radius} \\ \\textrm{cm}$`,
|
|
49
|
+
]),
|
|
50
|
+
//circle<radius
|
|
51
|
+
random([
|
|
52
|
+
`un cercle de rayon $${randint(1, radius)} \\ \\textrm{cm}$`,
|
|
53
|
+
`un cercle de diamètre $${2 * randint(1, radius)} \\ \\textrm{cm}$`,
|
|
54
|
+
]),
|
|
55
|
+
//rare
|
|
56
|
+
...(probaFlip(0.02)
|
|
57
|
+
? [
|
|
58
|
+
random([
|
|
59
|
+
`un cercle de rayon $1,5 \\ \\textrm{cm}$`,
|
|
60
|
+
`un cercle de diamètre $3 \\ \\textrm{cm}$`,
|
|
61
|
+
]),
|
|
62
|
+
]
|
|
63
|
+
: []),
|
|
64
|
+
];
|
|
65
|
+
const invalidPool = [
|
|
66
|
+
//circle>radius
|
|
67
|
+
random([
|
|
68
|
+
`un cercle de rayon $${randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
69
|
+
`un cercle de diamètre $${2 * randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
70
|
+
]),
|
|
71
|
+
//disk=radius
|
|
72
|
+
random([
|
|
73
|
+
`un disque de rayon $${radius} \\ \\textrm{cm}$`,
|
|
74
|
+
`un disque de diamètre $${2 * radius} \\ \\textrm{cm}$`,
|
|
75
|
+
]),
|
|
76
|
+
//disk<radius
|
|
77
|
+
random([
|
|
78
|
+
`un disque de rayon $${randint(1, radius)} \\ \\textrm{cm}$`,
|
|
79
|
+
`un disque de diamètre $${2 * randint(1, radius)} \\ \\textrm{cm}$`,
|
|
80
|
+
]),
|
|
81
|
+
//disk>radius
|
|
82
|
+
random([
|
|
83
|
+
`un disque de rayon $${randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
84
|
+
`un disque de diamètre $${2 * randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
85
|
+
]),
|
|
86
|
+
//rare
|
|
87
|
+
...(probaFlip(0.02)
|
|
88
|
+
? [
|
|
89
|
+
random([
|
|
90
|
+
`un disque de rayon $1,5 \\ \\textrm{cm}$`,
|
|
91
|
+
`un disque de diamètre $3 \\ \\textrm{cm}$`,
|
|
92
|
+
]),
|
|
93
|
+
]
|
|
94
|
+
: []),
|
|
95
|
+
];
|
|
96
|
+
const invalidMiscPool = ["une droite", "une ellipse", "un cône"];
|
|
97
|
+
if (coinFlip() && validPool.length === 4) {
|
|
98
|
+
//jackpot
|
|
99
|
+
validPool.forEach((str) => {
|
|
100
|
+
addValidProp(propositions, str, "raw");
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
const nbValid = randint(1, validPool.length + 1);
|
|
105
|
+
const nbInvalid = n - nbValid;
|
|
106
|
+
randomMany(validPool, nbValid).forEach((str) => {
|
|
107
|
+
addValidProp(propositions, str, "raw");
|
|
108
|
+
});
|
|
109
|
+
if (probaFlip(0.2)) {
|
|
110
|
+
randomMany([...invalidPool, random(invalidMiscPool)], nbInvalid).forEach((str) => {
|
|
111
|
+
tryToAddWrongProp(propositions, str, "raw");
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
randomMany(invalidPool, nbInvalid).forEach((str) => {
|
|
116
|
+
tryToAddWrongProp(propositions, str, "raw");
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
const validPool = [
|
|
123
|
+
"un point",
|
|
124
|
+
//disk=radius
|
|
125
|
+
random([
|
|
126
|
+
`un disque de rayon $${radius} \\ \\textrm{cm}$`,
|
|
127
|
+
`un disque de diamètre $${2 * radius} \\ \\textrm{cm}$`,
|
|
128
|
+
]),
|
|
129
|
+
//disk<radius
|
|
130
|
+
random([
|
|
131
|
+
`un disque de rayon $${randint(1, radius)} \\ \\textrm{cm}$`,
|
|
132
|
+
`un disque de diamètre $${2 * randint(1, radius)} \\ \\textrm{cm}$`,
|
|
133
|
+
]),
|
|
134
|
+
//rare
|
|
135
|
+
...(probaFlip(0.02)
|
|
136
|
+
? [
|
|
137
|
+
random([
|
|
138
|
+
`un disque de rayon $1,5 \\ \\textrm{cm}$`,
|
|
139
|
+
`un disque de diamètre $3 \\ \\textrm{cm}$`,
|
|
140
|
+
]),
|
|
141
|
+
]
|
|
142
|
+
: []),
|
|
143
|
+
];
|
|
144
|
+
const invalidPool = [
|
|
145
|
+
//disk>radius
|
|
146
|
+
random([
|
|
147
|
+
`un disque de rayon $${randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
148
|
+
`un disque de diamètre $${randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
149
|
+
]),
|
|
150
|
+
//circle=radius
|
|
151
|
+
random([
|
|
152
|
+
`un cercle de rayon $${radius} \\ \\textrm{cm}$`,
|
|
153
|
+
`un cercle de diamètre $${2 * radius} \\ \\textrm{cm}$`,
|
|
154
|
+
]),
|
|
155
|
+
//circle<radius
|
|
156
|
+
random([
|
|
157
|
+
`un cercle de rayon $${randint(1, radius)} \\ \\textrm{cm}$`,
|
|
158
|
+
`un cercle de diamètre $${2 * randint(1, radius)} \\ \\textrm{cm}$`,
|
|
159
|
+
]),
|
|
160
|
+
//circle>radius
|
|
161
|
+
random([
|
|
162
|
+
`un cercle de rayon $${randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
163
|
+
`un cercle de diamètre $${2 * randint(radius + 1, 2 * radius)} \\ \\textrm{cm}$`,
|
|
164
|
+
]),
|
|
165
|
+
//rare
|
|
166
|
+
...(probaFlip(0.02)
|
|
167
|
+
? [
|
|
168
|
+
random([
|
|
169
|
+
`un cercle de rayon $1,5 \\ \\textrm{cm}$`,
|
|
170
|
+
`un cercle de diamètre $1,5 \\ \\textrm{cm}$`,
|
|
171
|
+
]),
|
|
172
|
+
]
|
|
173
|
+
: []),
|
|
174
|
+
];
|
|
175
|
+
const invalidMiscPool = ["une droite", "une ellipse", "un cône"];
|
|
176
|
+
if (coinFlip() && validPool.length === 4) {
|
|
177
|
+
//jackpot
|
|
178
|
+
validPool.forEach((str) => {
|
|
179
|
+
addValidProp(propositions, str, "raw");
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
const nbValid = randint(1, validPool.length + 1);
|
|
184
|
+
const nbInvalid = n - nbValid;
|
|
185
|
+
randomMany(validPool, nbValid).forEach((str) => {
|
|
186
|
+
addValidProp(propositions, str, "raw");
|
|
187
|
+
});
|
|
188
|
+
if (probaFlip(0.2)) {
|
|
189
|
+
randomMany([...invalidPool, random(invalidMiscPool)], nbInvalid).forEach((str) => {
|
|
190
|
+
tryToAddWrongProp(propositions, str, "raw");
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
randomMany(invalidPool, nbInvalid).forEach((str) => {
|
|
195
|
+
tryToAddWrongProp(propositions, str, "raw");
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return shuffleProps(propositions, n);
|
|
201
|
+
};
|
|
202
|
+
const getRecognizeSectionsOfSphereOrBallQuestion = () => {
|
|
203
|
+
const strOfX = random(["d'une sphère", "d'une boule"]);
|
|
204
|
+
const radius = randint(5, 21);
|
|
205
|
+
const isDiameterGiven = coinFlip();
|
|
206
|
+
const identifiers = { strOfX, radius, isDiameterGiven };
|
|
207
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
208
|
+
};
|
|
209
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
210
|
+
const question = {
|
|
211
|
+
instruction: getInstruction(identifiers),
|
|
212
|
+
hint: getHint(identifiers),
|
|
213
|
+
correction: getCorrection(identifiers),
|
|
214
|
+
keys: [],
|
|
215
|
+
answerFormat: "raw",
|
|
216
|
+
identifiers,
|
|
217
|
+
};
|
|
218
|
+
return question;
|
|
219
|
+
};
|
|
220
|
+
export const recognizeSectionsOfSphereOrBall = {
|
|
221
|
+
id: "recognizeSectionsOfSphereOrBall",
|
|
222
|
+
connector: "=",
|
|
223
|
+
label: "Reconnaître la nature d'une section de sphère ou de boule",
|
|
224
|
+
isSingleStep: true,
|
|
225
|
+
generator: (nb) => getDistinctQuestions(getRecognizeSectionsOfSphereOrBallQuestion, nb),
|
|
226
|
+
qcmTimer: 60,
|
|
227
|
+
freeTimer: 60,
|
|
228
|
+
getPropositions,
|
|
229
|
+
subject: "Mathématiques",
|
|
230
|
+
getQuestionFromIdentifiers,
|
|
231
|
+
answerType: "QCM",
|
|
232
|
+
isQCM: true,
|
|
233
|
+
getHint,
|
|
234
|
+
getCorrection,
|
|
235
|
+
hasHintAndCorrection: true,
|
|
236
|
+
};
|
|
@@ -7,10 +7,10 @@ export * from "../math/calcul/mentalCaluls/mentalAddAndSub.js";
|
|
|
7
7
|
export { log10PowerSimplifying } from "../math/functions/logarithm/log10PowerSimplifying.js";
|
|
8
8
|
export { log10SumSimplifying } from "../math/functions/logarithm/log10Simplifying.js";
|
|
9
9
|
export { log10PowerEquation } from "../math/functions/logarithm/logPowerEquation.js";
|
|
10
|
-
export * from "../math/calculLitteral/equation/equa1.js";
|
|
11
|
-
export * from "../math/calculLitteral/equation/equa2.js";
|
|
12
|
-
export * from "../math/calculLitteral/equation/equa3.js";
|
|
13
|
-
export * from "../math/calculLitteral/equation/equa4.js";
|
|
10
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa1.js";
|
|
11
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa2.js";
|
|
12
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa3.js";
|
|
13
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa4.js";
|
|
14
14
|
export * from "../math/geometry/vectors/scalarProduct/scalarProductViaCoords.js";
|
|
15
15
|
export * from "../math/geometry/vectors/scalarProduct/scalarProductViaCos.js";
|
|
16
16
|
export * from "../math/geometry/vectors/coordinatesReading.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mathExosInPC.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/mathExosInPC.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,wDAAwD,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,cAAc,
|
|
1
|
+
{"version":3,"file":"mathExosInPC.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/mathExosInPC.ts"],"names":[],"mappings":"AAAA,yBAAyB;AACzB,cAAc,mCAAmC,CAAC;AAClD,cAAc,wDAAwD,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,kEAAkE,CAAC;AACjF,cAAc,+DAA+D,CAAC;AAC9E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sDAAsD,CAAC;AACrE,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,6DAA6D,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,mEAAmE,CAAC;AAC1G,OAAO,EAAE,sBAAsB,EAAE,MAAM,oEAAoE,CAAC;AAC5G,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC"}
|
|
@@ -7,10 +7,10 @@ export * from "../math/calcul/mentalCaluls/mentalAddAndSub.js";
|
|
|
7
7
|
export { log10PowerSimplifying } from "../math/functions/logarithm/log10PowerSimplifying.js";
|
|
8
8
|
export { log10SumSimplifying } from "../math/functions/logarithm/log10Simplifying.js";
|
|
9
9
|
export { log10PowerEquation } from "../math/functions/logarithm/logPowerEquation.js";
|
|
10
|
-
export * from "../math/calculLitteral/equation/equa1.js";
|
|
11
|
-
export * from "../math/calculLitteral/equation/equa2.js";
|
|
12
|
-
export * from "../math/calculLitteral/equation/equa3.js";
|
|
13
|
-
export * from "../math/calculLitteral/equation/equa4.js";
|
|
10
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa1.js";
|
|
11
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa2.js";
|
|
12
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa3.js";
|
|
13
|
+
export * from "../math/calculLitteral/equation/firstDegree/equa4.js";
|
|
14
14
|
export * from "../math/geometry/vectors/scalarProduct/scalarProductViaCoords.js";
|
|
15
15
|
export * from "../math/geometry/vectors/scalarProduct/scalarProductViaCos.js";
|
|
16
16
|
export * from "../math/geometry/vectors/coordinatesReading.js";
|
package/lib/index.d.ts
CHANGED
|
@@ -85,7 +85,9 @@ declare const mathExercises: (Exercise<{
|
|
|
85
85
|
rand: number;
|
|
86
86
|
numerator: number;
|
|
87
87
|
denominator: number;
|
|
88
|
-
},
|
|
88
|
+
}, {
|
|
89
|
+
variantType: "original" | "proba";
|
|
90
|
+
}> | Exercise<{
|
|
89
91
|
rationalNum: number[];
|
|
90
92
|
rationalDenum: number[];
|
|
91
93
|
}, {
|
|
@@ -459,20 +461,6 @@ declare const mathExercises: (Exercise<{
|
|
|
459
461
|
}> | Exercise<{
|
|
460
462
|
a: number;
|
|
461
463
|
b: number;
|
|
462
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
463
|
-
a: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
464
|
-
b: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
465
|
-
isXRight: boolean;
|
|
466
|
-
aNumberType: string;
|
|
467
|
-
}, {
|
|
468
|
-
aNumberType: string[];
|
|
469
|
-
}> | Exercise<{
|
|
470
|
-
a: number;
|
|
471
|
-
b: number;
|
|
472
|
-
c: number;
|
|
473
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
474
|
-
a: number;
|
|
475
|
-
b: number;
|
|
476
464
|
c: number;
|
|
477
465
|
d: number;
|
|
478
466
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -483,26 +471,6 @@ declare const mathExercises: (Exercise<{
|
|
|
483
471
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
484
472
|
a: number;
|
|
485
473
|
b: number;
|
|
486
|
-
c: number;
|
|
487
|
-
d: number;
|
|
488
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
489
|
-
a: number;
|
|
490
|
-
b: number;
|
|
491
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
492
|
-
a: number;
|
|
493
|
-
b: number;
|
|
494
|
-
x: number;
|
|
495
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
496
|
-
a: number;
|
|
497
|
-
x: number;
|
|
498
|
-
b: number;
|
|
499
|
-
c: number;
|
|
500
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
501
|
-
a: number;
|
|
502
|
-
x: number;
|
|
503
|
-
b: number;
|
|
504
|
-
c: number;
|
|
505
|
-
d: number;
|
|
506
474
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
507
475
|
type: number;
|
|
508
476
|
vars: {
|
|
@@ -566,6 +534,47 @@ declare const mathExercises: (Exercise<{
|
|
|
566
534
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
567
535
|
a: number;
|
|
568
536
|
b: number;
|
|
537
|
+
}, {
|
|
538
|
+
solutionFormat: string;
|
|
539
|
+
}> | Exercise<{
|
|
540
|
+
a: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
541
|
+
b: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
542
|
+
isXRight: boolean;
|
|
543
|
+
aNumberType: string;
|
|
544
|
+
}, {
|
|
545
|
+
aNumberType: string[];
|
|
546
|
+
solutionFormat: string;
|
|
547
|
+
}> | Exercise<{
|
|
548
|
+
a: number;
|
|
549
|
+
b: number;
|
|
550
|
+
c: number;
|
|
551
|
+
}, {
|
|
552
|
+
solutionFormat: string;
|
|
553
|
+
}> | Exercise<{
|
|
554
|
+
a: number;
|
|
555
|
+
b: number;
|
|
556
|
+
c: number;
|
|
557
|
+
d: number;
|
|
558
|
+
}, {
|
|
559
|
+
solutionFormat: string;
|
|
560
|
+
}> | Exercise<{
|
|
561
|
+
a: number;
|
|
562
|
+
b: number;
|
|
563
|
+
x: number;
|
|
564
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
565
|
+
a: number;
|
|
566
|
+
x: number;
|
|
567
|
+
b: number;
|
|
568
|
+
c: number;
|
|
569
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
570
|
+
a: number;
|
|
571
|
+
x: number;
|
|
572
|
+
b: number;
|
|
573
|
+
c: number;
|
|
574
|
+
d: number;
|
|
575
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
576
|
+
a: number;
|
|
577
|
+
b: number;
|
|
569
578
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
570
579
|
a: number;
|
|
571
580
|
b: number;
|
|
@@ -1034,6 +1043,7 @@ declare const mathExercises: (Exercise<{
|
|
|
1034
1043
|
yB: number;
|
|
1035
1044
|
}, {
|
|
1036
1045
|
functionType?: string;
|
|
1046
|
+
coefType?: string;
|
|
1037
1047
|
}> | Exercise<{
|
|
1038
1048
|
xA: number;
|
|
1039
1049
|
xB: number;
|
|
@@ -1065,7 +1075,9 @@ declare const mathExercises: (Exercise<{
|
|
|
1065
1075
|
a: number;
|
|
1066
1076
|
b: number;
|
|
1067
1077
|
isAskingA: boolean;
|
|
1068
|
-
},
|
|
1078
|
+
}, {
|
|
1079
|
+
parameter: string;
|
|
1080
|
+
}> | Exercise<{
|
|
1069
1081
|
xValues: number[];
|
|
1070
1082
|
yValues: number[];
|
|
1071
1083
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -1119,7 +1131,9 @@ declare const mathExercises: (Exercise<{
|
|
|
1119
1131
|
isAnswer: boolean;
|
|
1120
1132
|
}[];
|
|
1121
1133
|
isLinear: boolean;
|
|
1122
|
-
},
|
|
1134
|
+
}, {
|
|
1135
|
+
functionType: string;
|
|
1136
|
+
}> | Exercise<{
|
|
1123
1137
|
coeffs: number[];
|
|
1124
1138
|
yValue: number;
|
|
1125
1139
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -2049,7 +2063,9 @@ declare const mathExercises: (Exercise<{
|
|
|
2049
2063
|
isSegmentHeight: boolean;
|
|
2050
2064
|
pointsIdentifiers: import("./math/geometry/point.js").PointIdentifiers[];
|
|
2051
2065
|
lengths: number[];
|
|
2052
|
-
},
|
|
2066
|
+
}, {
|
|
2067
|
+
theorem: string;
|
|
2068
|
+
}> | Exercise<{
|
|
2053
2069
|
point: string;
|
|
2054
2070
|
line: string;
|
|
2055
2071
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -2174,6 +2190,23 @@ declare const mathExercises: (Exercise<{
|
|
|
2174
2190
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2175
2191
|
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2176
2192
|
angleAsked: number;
|
|
2193
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2194
|
+
namePoints1: string[];
|
|
2195
|
+
namePoints2: string[];
|
|
2196
|
+
nodeIdsLengths1: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2197
|
+
nodeIdsLengths2: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2198
|
+
}, {
|
|
2199
|
+
numberTypesForLengths: ("Entier" | "D\u00E9cimal")[];
|
|
2200
|
+
numberTypesForCoeffs: ("Entier" | "D\u00E9cimal" | "Fraction")[];
|
|
2201
|
+
}> | Exercise<{
|
|
2202
|
+
triangleNames: string[];
|
|
2203
|
+
sameAngleValue: number;
|
|
2204
|
+
firstAngleValue: number;
|
|
2205
|
+
secondAngleValue: number;
|
|
2206
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2207
|
+
triangleIds1: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2208
|
+
triangleIds2: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2209
|
+
factor: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2177
2210
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2178
2211
|
perimeter: number;
|
|
2179
2212
|
askingX: boolean;
|
|
@@ -2436,6 +2469,7 @@ declare const mathExercises: (Exercise<{
|
|
|
2436
2469
|
sortedValues: number[];
|
|
2437
2470
|
}, {
|
|
2438
2471
|
nbValues: string;
|
|
2472
|
+
isOrdered: boolean;
|
|
2439
2473
|
}> | Exercise<{
|
|
2440
2474
|
randomValues: number[];
|
|
2441
2475
|
randomEffectives: number[];
|
|
@@ -2657,6 +2691,23 @@ declare const mathExercises: (Exercise<{
|
|
|
2657
2691
|
max: number;
|
|
2658
2692
|
target: number;
|
|
2659
2693
|
isIncluded: boolean;
|
|
2694
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2695
|
+
arrItem: {
|
|
2696
|
+
value: number;
|
|
2697
|
+
indexColor: number;
|
|
2698
|
+
}[];
|
|
2699
|
+
typeAsked: string;
|
|
2700
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2701
|
+
labels: string[];
|
|
2702
|
+
pValues: number[];
|
|
2703
|
+
missingIndex: number;
|
|
2704
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2705
|
+
proba: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2706
|
+
knownEffectif: number;
|
|
2707
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2708
|
+
xValues: number[];
|
|
2709
|
+
yValues: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2710
|
+
atLeastXIndex: number;
|
|
2660
2711
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2661
2712
|
indexSituation: number;
|
|
2662
2713
|
eventIds: {
|
|
@@ -2693,6 +2744,12 @@ declare const mathExercises: (Exercise<{
|
|
|
2693
2744
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2694
2745
|
situationIndex: number;
|
|
2695
2746
|
values: number[][];
|
|
2747
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2748
|
+
indexEvent: number;
|
|
2749
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2750
|
+
arrIndex: number[];
|
|
2751
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2752
|
+
indexEvent: number;
|
|
2696
2753
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2697
2754
|
firstValue: number;
|
|
2698
2755
|
askedRank: number;
|
|
@@ -2892,6 +2949,50 @@ declare const mathExercises: (Exercise<{
|
|
|
2892
2949
|
h: number;
|
|
2893
2950
|
askedPoint: string;
|
|
2894
2951
|
givenPoints: string[];
|
|
2952
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2953
|
+
strOfX: string;
|
|
2954
|
+
radius: number;
|
|
2955
|
+
isDiameterGiven: boolean;
|
|
2956
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2957
|
+
radius: number;
|
|
2958
|
+
height: number;
|
|
2959
|
+
isDiameterGiven: boolean;
|
|
2960
|
+
isHollow: boolean;
|
|
2961
|
+
isBaseCircle: boolean;
|
|
2962
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2963
|
+
radius: number;
|
|
2964
|
+
height: number;
|
|
2965
|
+
isDiameterGiven: boolean;
|
|
2966
|
+
isHollow: boolean;
|
|
2967
|
+
isBaseCircle: boolean;
|
|
2968
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2969
|
+
nothing: boolean;
|
|
2970
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2971
|
+
isDiameterGiven: boolean;
|
|
2972
|
+
radius: number;
|
|
2973
|
+
height: number;
|
|
2974
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2975
|
+
isDiameterGiven: boolean;
|
|
2976
|
+
radius: number;
|
|
2977
|
+
height: number;
|
|
2978
|
+
offset: number;
|
|
2979
|
+
planeType: string;
|
|
2980
|
+
}, {
|
|
2981
|
+
planeTypes: string[];
|
|
2982
|
+
}> | Exercise<{
|
|
2983
|
+
isDiameterGiven: boolean;
|
|
2984
|
+
radius: number;
|
|
2985
|
+
height: number;
|
|
2986
|
+
offset: number;
|
|
2987
|
+
planeType: string;
|
|
2988
|
+
}, {
|
|
2989
|
+
planeTypes: string[];
|
|
2990
|
+
}> | Exercise<{
|
|
2991
|
+
AB: number;
|
|
2992
|
+
AD: number;
|
|
2993
|
+
AE: number;
|
|
2994
|
+
offset: number;
|
|
2995
|
+
planeType: string;
|
|
2895
2996
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2896
2997
|
sqrtOperand: number;
|
|
2897
2998
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -3126,10 +3227,6 @@ declare const mathExercises: (Exercise<{
|
|
|
3126
3227
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3127
3228
|
points: number[][];
|
|
3128
3229
|
labels: string[];
|
|
3129
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3130
|
-
bounds: number[];
|
|
3131
|
-
data: number[];
|
|
3132
|
-
itemAsked: number;
|
|
3133
3230
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3134
3231
|
quartiles: number[];
|
|
3135
3232
|
arrQuartileIndex: (0 | 1 | 2 | 3 | 4)[];
|
|
@@ -3220,6 +3317,30 @@ declare const mathExercises: (Exercise<{
|
|
|
3220
3317
|
}[];
|
|
3221
3318
|
p: number;
|
|
3222
3319
|
}[];
|
|
3320
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3321
|
+
bounds: number[];
|
|
3322
|
+
data: number[];
|
|
3323
|
+
itemAsked: number;
|
|
3324
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3325
|
+
isMax: boolean;
|
|
3326
|
+
bounds: number[];
|
|
3327
|
+
data: number[];
|
|
3328
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3329
|
+
histogram: {
|
|
3330
|
+
bounds: number[];
|
|
3331
|
+
data: number[];
|
|
3332
|
+
};
|
|
3333
|
+
table: {
|
|
3334
|
+
bounds: number[];
|
|
3335
|
+
data: number[];
|
|
3336
|
+
} | undefined;
|
|
3337
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3338
|
+
bounds: number[];
|
|
3339
|
+
data: number[];
|
|
3340
|
+
initTable: string[][];
|
|
3341
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3342
|
+
bounds: number[];
|
|
3343
|
+
data: number[];
|
|
3223
3344
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3224
3345
|
epsilon: number;
|
|
3225
3346
|
l: number;
|
|
@@ -3661,23 +3782,30 @@ declare const pcExercises: (Exercise<{
|
|
|
3661
3782
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3662
3783
|
a: number;
|
|
3663
3784
|
b: number;
|
|
3664
|
-
},
|
|
3785
|
+
}, {
|
|
3786
|
+
solutionFormat: string;
|
|
3787
|
+
}> | Exercise<{
|
|
3665
3788
|
a: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3666
3789
|
b: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3667
3790
|
isXRight: boolean;
|
|
3668
3791
|
aNumberType: string;
|
|
3669
3792
|
}, {
|
|
3670
3793
|
aNumberType: string[];
|
|
3794
|
+
solutionFormat: string;
|
|
3671
3795
|
}> | Exercise<{
|
|
3672
3796
|
a: number;
|
|
3673
3797
|
b: number;
|
|
3674
3798
|
c: number;
|
|
3675
|
-
},
|
|
3799
|
+
}, {
|
|
3800
|
+
solutionFormat: string;
|
|
3801
|
+
}> | Exercise<{
|
|
3676
3802
|
a: number;
|
|
3677
3803
|
b: number;
|
|
3678
3804
|
c: number;
|
|
3679
3805
|
d: number;
|
|
3680
|
-
},
|
|
3806
|
+
}, {
|
|
3807
|
+
solutionFormat: string;
|
|
3808
|
+
}> | Exercise<{
|
|
3681
3809
|
coefficients: number[];
|
|
3682
3810
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3683
3811
|
coefficients: number[];
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { AlgebraicNode } from "../../tree/nodes/algebraicNode.js";
|
|
2
2
|
import { ToGGBCommandsProps } from "../../exercises/utils/geogebra/toGGBCommandsProps.js";
|
|
3
|
+
import { NodeIdentifiers } from "../../tree/nodes/nodeConstructor.js";
|
|
4
|
+
export type SpacePointIdentifiers = {
|
|
5
|
+
id: "spacePoint";
|
|
6
|
+
name: string;
|
|
7
|
+
x: NodeIdentifiers;
|
|
8
|
+
y: NodeIdentifiers;
|
|
9
|
+
z: NodeIdentifiers;
|
|
10
|
+
};
|
|
3
11
|
type AleaBound = {
|
|
4
12
|
min?: number;
|
|
5
13
|
max?: number;
|
|
6
14
|
excludes?: number[];
|
|
7
15
|
};
|
|
8
16
|
export declare abstract class SpacePointConstructor {
|
|
17
|
+
static fromIdentifiers(identifiers: SpacePointIdentifiers): SpacePoint;
|
|
9
18
|
static random(name: string, xOpts?: AleaBound, yOpts?: AleaBound, zOpts?: AleaBound): SpacePoint;
|
|
10
19
|
static randomDifferent(names: string[]): SpacePoint[];
|
|
11
20
|
static fromScalars(arr: number[], name?: string): SpacePoint;
|
|
@@ -16,6 +25,7 @@ export declare class SpacePoint {
|
|
|
16
25
|
y: AlgebraicNode;
|
|
17
26
|
z: AlgebraicNode;
|
|
18
27
|
constructor(name: string, x: AlgebraicNode, y: AlgebraicNode, z: AlgebraicNode);
|
|
28
|
+
toIdentifiers(): SpacePointIdentifiers;
|
|
19
29
|
getCoords(): AlgebraicNode[];
|
|
20
30
|
getEvaluatedCoords(): number[];
|
|
21
31
|
toMathString(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spacePoint.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/spacePoint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"spacePoint.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/spacePoint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,YAAY,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AAEF,KAAK,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACrE,8BAAsB,qBAAqB;IACz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