math-exercises 3.0.105 → 3.0.107
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 +1 -6
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/getParityBetweenTwoNumbers.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/getParityBetweenTwoNumbers.js +3 -4
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +0 -2
- package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.js +0 -2
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +0 -2
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistri.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistri.js +0 -2
- package/lib/exercises/math/calculLitteral/distributivity/simpleDistri.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/simpleDistri.js +0 -2
- package/lib/exercises/math/calculLitteral/equation/equa1.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equa1.js +0 -2
- package/lib/exercises/math/calculLitteral/equation/equa2.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equa2.js +0 -2
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +0 -2
- package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +0 -2
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.js +0 -2
- package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.js +0 -2
- package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.js +0 -2
- package/lib/exercises/math/calculLitteral/systems/verifySystemSolution.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/systems/verifySystemSolution.js +0 -2
- package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/productDerivative.js +0 -2
- package/lib/exercises/math/derivation/derivative/trigo/cosSecondDegreeDerivative.js +1 -1
- package/lib/exercises/math/derivation/derivative/trigo/sinSecondDegreeDerivative.js +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustment.js +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/affineAdjustmentRsquared.js +5 -1
- package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.d.ts +1 -0
- package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/algebricExpressionOfAffine.js +6 -3
- package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.js +2 -1
- package/lib/exercises/math/functions/basics/countFunctionZeroes.js +1 -1
- package/lib/exercises/math/functions/basics/findZeroesProductQuotient.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/findZeroesProductQuotient.js +18 -3
- package/lib/exercises/math/functions/basics/graphicInequation.js +2 -2
- package/lib/exercises/math/functions/basics/graphicInequationAffine.js +1 -1
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +1 -1
- package/lib/exercises/math/functions/integral/integralKCosinus.js +1 -1
- package/lib/exercises/math/functions/parity/parityFromAlgebra.js +1 -1
- package/lib/exercises/math/functions/sign/affineProductSignTable.d.ts.map +1 -1
- package/lib/exercises/math/functions/sign/affineProductSignTable.js +4 -2
- package/lib/exercises/math/functions/sign/affineProductSignTableThirdLine.js +1 -1
- package/lib/exercises/math/functions/sign/affineSignTable.d.ts.map +1 -1
- package/lib/exercises/math/functions/sign/affineSignTable.js +3 -1
- package/lib/exercises/math/functions/sign/equationFromSignTable.js +2 -2
- package/lib/exercises/math/functions/sign/readSignTable.js +2 -2
- package/lib/exercises/math/functions/variations/compareImagesInVarTable.d.ts.map +1 -1
- package/lib/exercises/math/functions/variations/compareImagesInVarTable.js +8 -7
- package/lib/exercises/math/functions/variations/partialVarTableFromGraph.js +2 -2
- package/lib/exercises/math/functions/variations/readExtremaOnGraph.d.ts.map +1 -1
- package/lib/exercises/math/functions/variations/readExtremaOnGraph.js +12 -6
- package/lib/exercises/math/functions/variations/readVarOnGraph.js +8 -8
- package/lib/exercises/math/functions/variations/varTableExtremaReading.js +6 -6
- package/lib/exercises/math/functions/variations/varTableFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/functions/variations/varTableFromGraph.js +2 -7
- package/lib/exercises/math/functions/variations/varTableFromSentences.d.ts.map +1 -1
- package/lib/exercises/math/functions/variations/varTableFromSentences.js +3 -1
- package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.d.ts.map +1 -1
- package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +0 -2
- package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.d.ts.map +1 -1
- package/lib/exercises/math/geometry/euclidianConstructions/buildMediatriceWithCompass.js +0 -2
- package/lib/exercises/math/geometry/optimisation/geometryExtremaReadingOnGraph.js +5 -5
- package/lib/exercises/math/geometry/optimisation/lengthIntervalOnPicture.js +1 -1
- package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -1
- package/lib/exercises/math/geometry/thales/thalesCalcul.js +3 -2
- package/lib/exercises/math/geometry/triangles/traceMedianInTriangle.js +0 -2
- package/lib/exercises/math/geometry/volumes/volumeOfCube.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfCube.js +0 -2
- package/lib/exercises/math/limits/polynomLimitNoFI.d.ts.map +1 -1
- package/lib/exercises/math/limits/polynomLimitNoFI.js +0 -2
- package/lib/exercises/math/percent/evolutions/findStartValueAfterEvolution.d.ts.map +1 -1
- package/lib/exercises/math/percent/evolutions/findStartValueAfterEvolution.js +3 -2
- package/lib/exercises/math/percent/htToTTC.d.ts.map +1 -1
- package/lib/exercises/math/percent/htToTTC.js +0 -2
- package/lib/exercises/math/percent/percentToDecimal.d.ts.map +1 -1
- package/lib/exercises/math/percent/percentToDecimal.js +0 -2
- package/lib/exercises/math/percent/ttcToHT.d.ts.map +1 -1
- package/lib/exercises/math/percent/ttcToHT.js +0 -2
- package/lib/exercises/math/powers/powersProduct.d.ts.map +1 -1
- package/lib/exercises/math/powers/powersProduct.js +0 -2
- package/lib/exercises/math/primitive/exponentialPrimitive.d.ts.map +1 -1
- package/lib/exercises/math/primitive/exponentialPrimitive.js +0 -2
- package/lib/exercises/math/probaStat/binomial/expectedValueOfBinomialProba.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/binomial/expectedValueOfBinomialProba.js +1 -3
- package/lib/exercises/math/probaStat/binomial/varianceOfBinomialProba.js +1 -1
- package/lib/exercises/math/probaStat/stats1var/averageList.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/averageList.js +0 -2
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.js +0 -2
- package/lib/exercises/math/probaStat/stats1var/index.d.ts +2 -2
- package/lib/exercises/math/probaStat/stats1var/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/index.js +2 -2
- package/lib/exercises/math/probaStat/stats1var/medianWithList.d.ts +7 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithList.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithList.js +80 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.d.ts +8 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.js +108 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.js +9 -1
- package/lib/exercises/math/sets/intervals/intervalsIntersection.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/intervalsIntersection.js +0 -2
- package/lib/exercises/math/sets/setBelonging.d.ts.map +1 -1
- package/lib/exercises/math/sets/setBelonging.js +0 -2
- package/lib/exercises/math/trigonometry/arcValue.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/arcValue.js +0 -2
- package/lib/exercises/math/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/remarkableValues.js +0 -2
- package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +1 -1
- package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +1 -1
- package/lib/exercises/pc/dosage/beerLambertRandomValue.js +2 -2
- package/lib/exercises/pc/dosage/concentrationCalculation.js +3 -3
- package/lib/exercises/pc/dosage/concentrationFromMassCalculation.js +3 -3
- package/lib/exercises/pc/electricity/calculateVoltage.js +1 -1
- package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +2 -2
- package/lib/exercises/pc/electricity/ohmLaw.js +1 -1
- package/lib/exercises/pc/energy/calorificValue.js +1 -1
- package/lib/exercises/pc/energy/combustionTransferEnergy.js +1 -1
- package/lib/exercises/pc/energy/combustionTransferEnergy2.js +2 -2
- package/lib/exercises/pc/energy/efficiencyCalculation.js +3 -3
- package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +5 -5
- package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +1 -1
- package/lib/exercises/pc/forces/gravitationalForcePlanets.js +1 -1
- package/lib/exercises/pc/forces/pressureDifferenceCalculation.js +1 -3
- package/lib/exercises/pc/math/isolateVariables.d.ts.map +1 -1
- package/lib/exercises/pc/math/isolateVariables.js +0 -1
- package/lib/exercises/pc/mole/concentrationReading.d.ts.map +1 -1
- package/lib/exercises/pc/mole/concentrationReading.js +0 -1
- package/lib/exercises/pc/motion/averageSpeedCalculation.js +4 -4
- package/lib/exercises/pc/motion/recognizeFreeFall.js +0 -2
- package/lib/exercises/pc/orderOfMagnitude.js +1 -1
- package/lib/exercises/pc/power/calculatePowerOfLight.js +1 -1
- package/lib/exercises/pc/spectral/spectralEnergy.js +1 -1
- package/lib/exercises/pc/waves/lightDistanceConversion.js +4 -4
- package/lib/exercises/pc/waves/periodicWaveCelerity.js +3 -3
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/triangles/triangle.d.ts +2 -1
- package/lib/math/geometry/triangles/triangle.d.ts.map +1 -1
- package/lib/math/geometry/triangles/triangle.js +3 -1
- package/lib/math/utils/round.d.ts.map +1 -1
- package/lib/math/utils/round.js +4 -0
- package/lib/playground.d.ts.map +1 -1
- package/lib/playground.js +1 -3
- package/lib/tree/nodes/sets/intervalNode.d.ts +4 -0
- package/lib/tree/nodes/sets/intervalNode.d.ts.map +1 -1
- package/lib/tree/nodes/sets/intervalNode.js +12 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concentrationReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/mole/concentrationReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAoEF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"concentrationReading.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/mole/concentrationReading.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAOrC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAoEF,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAYtD,CAAC"}
|
|
@@ -39,7 +39,7 @@ const getInstruction = (identifiers) => {
|
|
|
39
39
|
notScientific: true,
|
|
40
40
|
})}$.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Utiliser ces informations pour calculer ${targetVariable.name === "distance" ||
|
|
43
43
|
targetVariable.name === "vitesse moyenne"
|
|
44
44
|
? "la"
|
|
45
45
|
: "le"} ${targetVariable.name} en $${targetVariable.value.getUnit().toTex()}$.`;
|
|
@@ -55,10 +55,10 @@ const getAnswer = (identifiers) => {
|
|
|
55
55
|
const getHint = (identifiers) => {
|
|
56
56
|
const { speed, distance, deltaTime, target } = identifiers;
|
|
57
57
|
const hint = target === "vitesse moyenne"
|
|
58
|
-
? `
|
|
58
|
+
? `Rappelle-toi la formule de la vitesse moyenne : $v = \\frac{d}{\\Delta t}$.`
|
|
59
59
|
: target === "distance"
|
|
60
|
-
? `
|
|
61
|
-
: `
|
|
60
|
+
? `Rappelle-toi la formule de la distance : $d = v \\times \\Delta t$.`
|
|
61
|
+
: `Rappelle-toi la formule du temps : $\\Delta t = \\frac{d}{v}$.`;
|
|
62
62
|
return hint;
|
|
63
63
|
};
|
|
64
64
|
const getCorrection = (identifiers) => {
|
|
@@ -40,9 +40,7 @@ export {};
|
|
|
40
40
|
// id: "recognizeFreeFall",
|
|
41
41
|
// connector: "",
|
|
42
42
|
// label: "",
|
|
43
|
-
// levels: [],
|
|
44
43
|
// isSingleStep: true,
|
|
45
|
-
// sections: [],
|
|
46
44
|
// generator: (nb: number) =>
|
|
47
45
|
// getDistinctQuestions(getRecognizeFreeFallQuestion, nb),
|
|
48
46
|
// qcmTimer: 60,
|
|
@@ -10,7 +10,7 @@ const ten = new NumberNode(10);
|
|
|
10
10
|
const getInstruction = (identifiers) => {
|
|
11
11
|
const { order, multiplier } = identifiers;
|
|
12
12
|
const diameter = new Measure(multiplier, order, DistanceUnit.m);
|
|
13
|
-
const instruction = `Supposons qu'on ait un atome de diamètre $${diameter.toTex()}$.
|
|
13
|
+
const instruction = `Supposons qu'on ait un atome de diamètre $${diameter.toTex()}$. Indiquer l'ordre de grandeur du diamètre de cet atome.`;
|
|
14
14
|
return instruction;
|
|
15
15
|
};
|
|
16
16
|
const getAnswer = (identifiers) => {
|
|
@@ -18,7 +18,7 @@ La surface utile $S$ de cette cellule est de $${SMeasure.toTex({
|
|
|
18
18
|
notScientific: true,
|
|
19
19
|
})}$.
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Calcule la puissance lumineuse reçue par la cellule photovoltaïque.`;
|
|
22
22
|
return instruction;
|
|
23
23
|
};
|
|
24
24
|
const getAnswer = (identifiers) => {
|
|
@@ -30,7 +30,7 @@ Les mesures que vous avez obtenues sont les suivantes :
|
|
|
30
30
|
- Longueur d'onde de la lumière verte : $\\lambda_{verte} = ${wavelengths[1]}\\ \\textrm{nm}$,
|
|
31
31
|
- Longueur d'onde de la lumière rouge : $\\lambda_{rouge} = ${wavelengths[2]}\\ \\textrm{nm}$.
|
|
32
32
|
|
|
33
|
-
En utilisant ces données,
|
|
33
|
+
En utilisant ces données, calculer l'énergie de transition en joules pour la lumière ${targetColor} émise par l'échantillon.`;
|
|
34
34
|
};
|
|
35
35
|
const getAnswer = (identifiers) => {
|
|
36
36
|
const { targetColor, wavelengths } = identifiers;
|
|
@@ -27,7 +27,7 @@ const getAnswer = (identifiers) => {
|
|
|
27
27
|
const getHint = (identifiers) => {
|
|
28
28
|
const { lightYear, distanceMeters, isLightYearToMeters } = identifiers;
|
|
29
29
|
const hint = isLightYearToMeters
|
|
30
|
-
? `Pour convertir des années-lumière en mètres,
|
|
30
|
+
? `Pour convertir des années-lumière en mètres, utilise les relations suivantes :
|
|
31
31
|
|
|
32
32
|
- Une année-lumière est la distance parcourue par la lumière en une année.
|
|
33
33
|
- La vitesse de la lumière est $c = 3 \\times 10^8 \\ \\textrm{m}/\\textrm{s}$.
|
|
@@ -39,8 +39,8 @@ $$
|
|
|
39
39
|
c \\times \\text{secondes par année}
|
|
40
40
|
$$
|
|
41
41
|
|
|
42
|
-
Pour convertir des années-lumière en mètres,
|
|
43
|
-
: `Pour convertir une distance en mètres en années-lumières,
|
|
42
|
+
Pour convertir des années-lumière en mètres, multiplie la distance en années-lumière par la distance parcourue par la lumière en une année.`
|
|
43
|
+
: `Pour convertir une distance en mètres en années-lumières, utilise les relations suivantes :
|
|
44
44
|
|
|
45
45
|
- Une année-lumière est la distance parcourue par la lumière en une année.
|
|
46
46
|
- La vitesse de la lumière est $c = 3 \\times 10^8 \\textrm{m/s}$.
|
|
@@ -52,7 +52,7 @@ $$
|
|
|
52
52
|
c \\times \\text{secondes par année}
|
|
53
53
|
$$
|
|
54
54
|
|
|
55
|
-
Pour convertir des mètres en années-lumière,
|
|
55
|
+
Pour convertir des mètres en années-lumière, divise la distance en mètres par la distance parcourue par la lumière en une année.`;
|
|
56
56
|
return hint;
|
|
57
57
|
};
|
|
58
58
|
const getCorrection = (identifiers) => {
|
|
@@ -44,14 +44,14 @@ const getHint = (identifiers) => {
|
|
|
44
44
|
const { varAsked, v, l, T } = identifiers;
|
|
45
45
|
switch (varAsked) {
|
|
46
46
|
case "v":
|
|
47
|
-
return "
|
|
47
|
+
return "Utilise la formule de la célérité: $v = \\frac{\\lambda}{T}$";
|
|
48
48
|
break;
|
|
49
49
|
case "T":
|
|
50
|
-
return "
|
|
50
|
+
return "Utilise la formule de la période: $T = \\frac{\\lambda}{v}$";
|
|
51
51
|
break;
|
|
52
52
|
case "l":
|
|
53
53
|
default:
|
|
54
|
-
return "
|
|
54
|
+
return "Utilise la formule de la longueur d'onde: $\\lambda = v \\times T$";
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
};
|
package/lib/index.d.ts
CHANGED
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;AAE/D,QAAA,MAAM,aAAa
|
|
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;AAE/D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -8,7 +8,7 @@ export type TriangleIdentifiers = {
|
|
|
8
8
|
props?: TrianglePropsIdentifiers;
|
|
9
9
|
};
|
|
10
10
|
export declare abstract class TriangleConstructor {
|
|
11
|
-
static fromIdentifiers(identifiers: TriangleIdentifiers): Triangle;
|
|
11
|
+
static fromIdentifiers(identifiers: TriangleIdentifiers, props?: TriangleProps): Triangle;
|
|
12
12
|
static randomNiceSides({ names, randomName, intSides, minAngle, }: {
|
|
13
13
|
names?: string[] | undefined;
|
|
14
14
|
randomName?: boolean | undefined;
|
|
@@ -27,6 +27,7 @@ export type TriangleProps = {
|
|
|
27
27
|
sidesLengths?: (AlgebraicNode | undefined)[];
|
|
28
28
|
anglesRadianValues?: AlgebraicNode[];
|
|
29
29
|
anglesDegreeValues?: AlgebraicNode[];
|
|
30
|
+
pointsSize?: number;
|
|
30
31
|
};
|
|
31
32
|
export declare class Triangle {
|
|
32
33
|
angles: Angle[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triangle.d.ts","sourceRoot":"","sources":["../../../../src/math/geometry/triangles/triangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKpC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAG7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,wBAAwB,CAAC;CAClC,CAAC;AAEF,8BAAsB,mBAAmB;IACvC,MAAM,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"triangle.d.ts","sourceRoot":"","sources":["../../../../src/math/geometry/triangles/triangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKpC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAG7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,wBAAwB,CAAC;CAClC,CA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MAAM,EACb,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAcH,cAAc,CACZ,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;IAKH,eAAe,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE;IAQtC,SAAS,CACP,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAYH,UAAU,CACR,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,KAAK,CAAC;KACnB;IAuCH,cAAc,IAAI,MAAM,EAAE;IAkB1B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CAgB5E"}
|
|
@@ -9,11 +9,12 @@ import { LineConstructor } from "../line.js";
|
|
|
9
9
|
import { reifyAlgebraic, } from "../../../tree/nodes/nodeConstructor.js";
|
|
10
10
|
import { randint } from "../../utils/random/randint.js";
|
|
11
11
|
export class TriangleConstructor {
|
|
12
|
-
static fromIdentifiers(identifiers) {
|
|
12
|
+
static fromIdentifiers(identifiers, props) {
|
|
13
13
|
return new Triangle(identifiers.points.map((p) => PointConstructor.fromIdentifiers(p)), {
|
|
14
14
|
anglesRadianValues: identifiers.props?.anglesRadianValues?.map((n) => reifyAlgebraic(n)),
|
|
15
15
|
anglesDegreeValues: identifiers.props?.anglesDegreeValues?.map((n) => reifyAlgebraic(n)),
|
|
16
16
|
sidesLengths: identifiers.props?.sidesLengths?.map((n) => n ? reifyAlgebraic(n) : undefined),
|
|
17
|
+
...props,
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
static randomNiceSides({ names = ["A", "B", "C"], randomName = false, intSides = false, minAngle = 0, }) {
|
|
@@ -108,6 +109,7 @@ export class Triangle {
|
|
|
108
109
|
...points.flatMap((p) => p.toGGBCommand({
|
|
109
110
|
isFixed: true,
|
|
110
111
|
showLabel: true,
|
|
112
|
+
size: props?.pointsSize,
|
|
111
113
|
})),
|
|
112
114
|
...this.sides.flatMap((s) => s.toGGBCommands(false)),
|
|
113
115
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"round.d.ts","sourceRoot":"","sources":["../../../src/math/utils/round.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,OAAO,GACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"round.d.ts","sourceRoot":"","sources":["../../../src/math/utils/round.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,EACT,SAAS,EAAE,MAAM,EACjB,YAAY,CAAC,EAAE,OAAO,GACrB,MAAM,CAwBR;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAG5D"}
|
package/lib/math/utils/round.js
CHANGED
|
@@ -3,6 +3,10 @@ export function round(x, precision, fillDecimals) {
|
|
|
3
3
|
return +(Math.round(Number(x + "e+" + precision)) + "e-" + precision);
|
|
4
4
|
}
|
|
5
5
|
else {
|
|
6
|
+
//!this is because geogebra doesn't understands "e"
|
|
7
|
+
//!probably not the best way to do this
|
|
8
|
+
if (("" + x).includes("e-"))
|
|
9
|
+
return 0;
|
|
6
10
|
const arr = ("" + x).split("e");
|
|
7
11
|
let sig = "";
|
|
8
12
|
if (+arr[1] + precision > 0) {
|
package/lib/playground.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/playground.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/playground.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,UAAU,YAAW,CAAC;AAEnC;;;;GAIG"}
|
package/lib/playground.js
CHANGED
|
@@ -40,6 +40,10 @@ export declare class IntervalNode implements SetNode {
|
|
|
40
40
|
toRandomDifferentClosure(): IntervalNode;
|
|
41
41
|
toComplement(): UnionIntervalNode | IntervalNode;
|
|
42
42
|
toTex(): string;
|
|
43
|
+
/**
|
|
44
|
+
* à ne surtout pas utiliser si c'est une réponse (le clavier produit des espaces sur les crochets)
|
|
45
|
+
* */
|
|
46
|
+
toTexNoSpace(): string;
|
|
43
47
|
toAllTexs(opts?: NodeOptions): string[];
|
|
44
48
|
toIdentifiers(): IntervalNodeIdentifiers;
|
|
45
49
|
toText(isPlural: boolean, isFeminine: boolean): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intervalNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/sets/intervalNode.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAOxE,OAAO,EAAW,WAAW,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAY,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAa,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,wBAAgB,cAAc,CAAC,CAAC,EAAE,I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,CAAC,EAAE,MAAM,GAAG,aAAa;IAG3C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,eAAe;IAG9D,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IASxD,YAAY;IAGZ,aAAa;IAGb,QAAQ,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO;IAanC,UAAU,CAAC,QAAQ,EAAE,YAAY;IAEjC,YAAY,CAAC,QAAQ,EAAE,YAAY;IA0DnC,YAAY;IAIZ,SAAS,CAAC,CAAC,EAAE,WAAW;IAGxB,KAAK,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY,GAAG,iBAAiB;CAkDhE"}
|
|
@@ -180,6 +180,18 @@ export class IntervalNode {
|
|
|
180
180
|
: "\\ [\\ ";
|
|
181
181
|
return `${left}${this.a.toTex()};${this.b.toTex()}${right}`;
|
|
182
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* à ne surtout pas utiliser si c'est une réponse (le clavier produit des espaces sur les crochets)
|
|
185
|
+
* */
|
|
186
|
+
toTexNoSpace() {
|
|
187
|
+
const left = this.closure === ClosureType.FF || this.closure === ClosureType.FO
|
|
188
|
+
? "["
|
|
189
|
+
: "]";
|
|
190
|
+
const right = this.closure === ClosureType.FF || this.closure === ClosureType.OF
|
|
191
|
+
? "]"
|
|
192
|
+
: "[";
|
|
193
|
+
return `${left}${this.a.toTex()};${this.b.toTex()}${right}`;
|
|
194
|
+
}
|
|
183
195
|
toAllTexs(opts) {
|
|
184
196
|
const res = [this.toTex()];
|
|
185
197
|
if (opts?.allowCommaInInterval) {
|