math-exercises 3.0.125 → 3.0.126
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/math/calcul/fractions/fractionsSumsPrimeDenominators.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.js +61 -1
- package/lib/exercises/math/calcul/mentalCaluls/index.d.ts +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/index.js +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts +15 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.js +217 -0
- package/lib/exercises/math/calcul/ordering/compareA10N.d.ts +16 -0
- package/lib/exercises/math/calcul/ordering/compareA10N.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ordering/compareA10N.js +327 -0
- package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.d.ts +8 -0
- package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ordering/compareABUsingQuotient.js +221 -0
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.d.ts +9 -0
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ordering/compareFracABWithFracAPlusCBPlusC.js +135 -0
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.d.ts +29 -0
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ordering/compareFracAndDec.js +367 -0
- package/lib/exercises/math/calcul/ordering/comparePowersOfFracs.d.ts +12 -0
- package/lib/exercises/math/calcul/ordering/comparePowersOfFracs.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ordering/comparePowersOfFracs.js +164 -0
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.d.ts +9 -0
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ordering/compareWithSquareRoots.js +140 -0
- package/lib/exercises/math/calcul/ordering/index.d.ts +6 -0
- package/lib/exercises/math/calcul/ordering/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/index.js +6 -0
- package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.d.ts +9 -0
- package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.d.ts.map +1 -0
- package/lib/exercises/math/calcul/rounding/estimateAroundPow10NTimesAroundPow10N.js +84 -0
- package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.d.ts +8 -0
- package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.d.ts.map +1 -0
- package/lib/exercises/math/calcul/rounding/estimatePow10NPlusPow10MinusN.js +90 -0
- package/lib/exercises/math/calcul/rounding/index.d.ts +2 -0
- package/lib/exercises/math/calcul/rounding/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/rounding/index.js +2 -0
- package/lib/exercises/math/calculLitteral/equation/equationFromProblem.d.ts +13 -0
- package/lib/exercises/math/calculLitteral/equation/equationFromProblem.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/equationFromProblem.js +414 -0
- package/lib/exercises/math/calculLitteral/equation/index.d.ts +1 -0
- package/lib/exercises/math/calculLitteral/equation/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/index.js +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/factorizeAX2PlusBX.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/factorisation/factorizeAX2PlusBX.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/factorizeAX2PlusBX.js +70 -0
- package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/index.js +1 -0
- package/lib/exercises/math/calculLitteral/index.d.ts +2 -0
- package/lib/exercises/math/calculLitteral/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/index.js +2 -0
- package/lib/exercises/math/calculLitteral/isolate/index.d.ts +2 -1
- package/lib/exercises/math/calculLitteral/isolate/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/isolate/index.js +2 -1
- package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/isolate/isolateUInInvXPlusInvYEqualsInvU.js +107 -0
- package/lib/exercises/math/calculLitteral/isolate/isolateXInInvXPlusInvYEqualsInvU.d.ts +7 -0
- package/lib/exercises/math/calculLitteral/isolate/isolateXInInvXPlusInvYEqualsInvU.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/isolate/isolateXInInvXPlusInvYEqualsInvU.js +80 -0
- package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/ordering/compareAMinusB.js +182 -0
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/ordering/compareFromPiMinusFrac.js +144 -0
- package/lib/exercises/math/calculLitteral/ordering/index.d.ts +3 -0
- package/lib/exercises/math/calculLitteral/ordering/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/ordering/index.js +2 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareATimes0.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareATimes0.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareATimes0.js +120 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareFracXA.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareFracXA.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareFracXA.js +67 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareMinusA.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareMinusA.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareMinusA.js +114 -0
- package/lib/exercises/math/calculLitteral/simplifying/index.d.ts +5 -0
- package/lib/exercises/math/calculLitteral/simplifying/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/simplifying/index.js +5 -0
- package/lib/exercises/math/calculLitteral/simplifying/pickSameAsAPercentOfB.d.ts +13 -0
- package/lib/exercises/math/calculLitteral/simplifying/pickSameAsAPercentOfB.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/pickSameAsAPercentOfB.js +125 -0
- package/lib/exercises/math/calculLitteral/simplifying/pickSameAsInverseOfFracAB.d.ts +14 -0
- package/lib/exercises/math/calculLitteral/simplifying/pickSameAsInverseOfFracAB.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/pickSameAsInverseOfFracAB.js +148 -0
- package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts +5 -27
- package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.js +178 -241
- package/lib/exercises/math/conversion/index.d.ts +4 -0
- package/lib/exercises/math/conversion/index.d.ts.map +1 -1
- package/lib/exercises/math/conversion/index.js +4 -0
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts +8 -0
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/kmPerMinToKmPerHourConversion.js +98 -0
- package/lib/exercises/math/conversion/minutesToHours.d.ts +10 -0
- package/lib/exercises/math/conversion/minutesToHours.d.ts.map +1 -0
- package/lib/exercises/math/conversion/minutesToHours.js +150 -0
- package/lib/exercises/math/conversion/prefixToNumber.d.ts +15 -0
- package/lib/exercises/math/conversion/prefixToNumber.d.ts.map +1 -0
- package/lib/exercises/math/conversion/prefixToNumber.js +233 -0
- package/lib/exercises/math/conversion/secondsToHours.d.ts +10 -0
- package/lib/exercises/math/conversion/secondsToHours.d.ts.map +1 -0
- package/lib/exercises/math/conversion/secondsToHours.js +150 -0
- package/lib/exercises/math/dataRepresentations/barChartInterpreting.d.ts +50 -0
- package/lib/exercises/math/dataRepresentations/barChartInterpreting.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/barChartInterpreting.js +517 -0
- package/lib/exercises/math/dataRepresentations/boxPlotInterpreting.d.ts +7 -0
- package/lib/exercises/math/dataRepresentations/boxPlotInterpreting.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/boxPlotInterpreting.js +223 -0
- package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.d.ts +10 -0
- package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/cartesianGraphExtremaReading.js +139 -0
- package/lib/exercises/math/dataRepresentations/dataToGraphGraphToData.d.ts +8 -0
- package/lib/exercises/math/dataRepresentations/dataToGraphGraphToData.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/dataToGraphGraphToData.js +133 -0
- package/lib/exercises/math/dataRepresentations/graphReading.d.ts +8 -0
- package/lib/exercises/math/dataRepresentations/graphReading.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/graphReading.js +136 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.d.ts +18 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.js +228 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartReading.d.ts +8 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartReading.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartReading.js +213 -0
- package/lib/exercises/math/dataRepresentations/histogramReading.d.ts +9 -0
- package/lib/exercises/math/dataRepresentations/histogramReading.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/histogramReading.js +163 -0
- package/lib/exercises/math/dataRepresentations/index.d.ts +10 -0
- package/lib/exercises/math/dataRepresentations/index.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/index.js +10 -0
- package/lib/exercises/math/dataRepresentations/plausibleGraph.d.ts +9 -0
- package/lib/exercises/math/dataRepresentations/plausibleGraph.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/plausibleGraph.js +145 -0
- package/lib/exercises/math/dataRepresentations/scatterPlotCommenting.d.ts +9 -0
- package/lib/exercises/math/dataRepresentations/scatterPlotCommenting.d.ts.map +1 -0
- package/lib/exercises/math/dataRepresentations/scatterPlotCommenting.js +308 -0
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.js +5 -6
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.d.ts +8 -0
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindX.js +103 -0
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.d.ts +8 -0
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/coordsOfPointOnAffineFindY.js +100 -0
- package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.d.ts +16 -0
- package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.js +215 -0
- package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.d.ts +13 -0
- package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/drawAffineFromProgCalc.js +206 -0
- package/lib/exercises/math/functions/affines/index.d.ts +7 -0
- package/lib/exercises/math/functions/affines/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/index.js +7 -0
- package/lib/exercises/math/functions/affines/recognizeExprAffine.d.ts +20 -0
- package/lib/exercises/math/functions/affines/recognizeExprAffine.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/recognizeExprAffine.js +284 -0
- package/lib/exercises/math/functions/affines/representationOfAffine.d.ts +13 -0
- package/lib/exercises/math/functions/affines/representationOfAffine.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/representationOfAffine.js +184 -0
- package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.d.ts +14 -0
- package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/coordsOfPointOnCurveFindY.js +216 -0
- package/lib/exercises/math/functions/basics/index.d.ts +1 -0
- package/lib/exercises/math/functions/basics/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/index.js +1 -0
- package/lib/exercises/math/functions/composition/functionComposition.d.ts +8 -0
- package/lib/exercises/math/functions/composition/functionComposition.d.ts.map +1 -0
- package/lib/exercises/math/functions/composition/functionComposition.js +238 -0
- package/lib/exercises/math/functions/composition/index.d.ts +2 -0
- package/lib/exercises/math/functions/composition/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/composition/index.js +1 -0
- package/lib/exercises/math/functions/index.d.ts +1 -0
- package/lib/exercises/math/functions/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/index.js +1 -0
- package/lib/exercises/math/geometry/angles/anglesUsingIsParallel.d.ts +23 -0
- package/lib/exercises/math/geometry/angles/anglesUsingIsParallel.d.ts.map +1 -0
- package/lib/exercises/math/geometry/angles/anglesUsingIsParallel.js +448 -0
- package/lib/exercises/math/geometry/angles/index.js +2 -0
- package/lib/exercises/math/geometry/angles/isParallelUsingAngles.d.ts +23 -0
- package/lib/exercises/math/geometry/angles/isParallelUsingAngles.d.ts.map +1 -0
- package/lib/exercises/math/geometry/angles/isParallelUsingAngles.js +402 -0
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.d.ts +9 -6
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.js +140 -60
- package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +1 -1
- package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/colinearity/colinearityFromPicture.js +121 -104
- package/lib/exercises/math/geometry/vectors/vectorRepresentative.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/vectorRepresentative.js +3 -2
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/index.js +1 -0
- package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.d.ts +0 -1
- package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/possibleValuesForProba.js +42 -80
- package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.d.ts +9 -0
- package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/conditionalProbaWriteFromFrench.js +217 -0
- package/lib/exercises/math/probaStat/index.d.ts +2 -0
- package/lib/exercises/math/probaStat/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/index.js +2 -0
- package/lib/exercises/math/probaStat/probaAsSumOfProbas.d.ts +30 -0
- package/lib/exercises/math/probaStat/probaAsSumOfProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/probaAsSumOfProbas.js +548 -0
- package/lib/exercises/math/probaStat/stats1var/index.d.ts +2 -0
- package/lib/exercises/math/probaStat/stats1var/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/index.js +2 -0
- package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.d.ts +9 -0
- package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/interpretIndicatorsForLists.js +90 -0
- package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.d.ts +10 -0
- package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.js +151 -0
- package/lib/exercises/pc/electricity/calculateUEqualsRI.d.ts +7 -0
- package/lib/exercises/pc/electricity/calculateUEqualsRI.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/calculateUEqualsRI.js +73 -0
- package/lib/exercises/pc/electricity/index.d.ts +1 -0
- package/lib/exercises/pc/electricity/index.d.ts.map +1 -1
- package/lib/exercises/pc/electricity/index.js +1 -0
- package/lib/exercises/pc/index.d.ts +1 -0
- package/lib/exercises/pc/index.d.ts.map +1 -1
- package/lib/exercises/pc/index.js +1 -0
- package/lib/exercises/pc/moleculeFormula.d.ts.map +1 -1
- package/lib/exercises/pc/moleculeFormula.js +4 -3
- package/lib/exercises/pc/optics/index.d.ts +2 -0
- package/lib/exercises/pc/optics/index.d.ts.map +1 -0
- package/lib/exercises/pc/optics/index.js +1 -0
- package/lib/exercises/pc/optics/lensFormula.d.ts +21 -0
- package/lib/exercises/pc/optics/lensFormula.d.ts.map +1 -0
- package/lib/exercises/pc/optics/lensFormula.js +415 -0
- package/lib/exercises/pc/weight/calculateWeight.d.ts +8 -1
- package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -1
- package/lib/exercises/pc/weight/calculateWeight.js +113 -38
- package/lib/geogebra/parsers/geogebraParser.d.ts +4 -0
- package/lib/geogebra/parsers/geogebraParser.d.ts.map +1 -1
- package/lib/geogebra/parsers/geogebraParser.js +17 -0
- package/lib/index.d.ts +346 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/latexTester.d.ts.map +1 -1
- package/lib/latexTester.js +1 -0
- package/lib/math/geometry/CloudPoints.d.ts +10 -0
- package/lib/math/geometry/CloudPoints.d.ts.map +1 -1
- package/lib/math/geometry/CloudPoints.js +119 -0
- package/lib/math/geometry/line.d.ts +1 -0
- package/lib/math/geometry/line.d.ts.map +1 -1
- package/lib/math/geometry/line.js +10 -2
- package/lib/math/geometry/vector.d.ts +1 -0
- package/lib/math/geometry/vector.d.ts.map +1 -1
- package/lib/math/geometry/vector.js +12 -0
- package/lib/math/progCalc/progCalc.d.ts +46 -0
- package/lib/math/progCalc/progCalc.d.ts.map +1 -0
- package/lib/math/progCalc/progCalc.js +239 -0
- package/lib/math/utils/latex/realize.d.ts +12 -0
- package/lib/math/utils/latex/realize.d.ts.map +1 -0
- package/lib/math/utils/latex/realize.js +43 -0
- package/lib/pc/constants/molecularChemistry/molecule.d.ts +2 -0
- package/lib/pc/constants/molecularChemistry/molecule.d.ts.map +1 -1
- package/lib/pc/constants/molecularChemistry/molecule.js +52 -0
- package/lib/tests/questionTest.d.ts.map +1 -1
- package/lib/tests/questionTest.js +1 -1
- package/lib/tests/singleExo.test.js +3 -3
- package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/addNode.d.ts +4 -2
- package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/addNode.js +8 -17
- package/lib/tree/nodes/operators/fractionNode.d.ts +1 -1
- package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/fractionNode.js +5 -1
- package/lib/tree/nodes/operators/multiplyNode.d.ts +4 -2
- package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/multiplyNode.js +8 -17
- package/lib/tree/nodes/operators/operatorNode.d.ts +3 -3
- package/lib/tree/nodes/operators/operatorNode.d.ts.map +1 -1
- package/lib/tree/nodes/variables/variableNode.d.ts +1 -1
- package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -1
- package/lib/tree/utilities/nodeShuffler.d.ts +12 -0
- package/lib/tree/utilities/nodeShuffler.d.ts.map +1 -0
- package/lib/tree/utilities/nodeShuffler.js +123 -0
- package/lib/utils/arrays/getAllPicks.d.ts +2 -0
- package/lib/utils/arrays/getAllPicks.d.ts.map +1 -0
- package/lib/utils/arrays/getAllPicks.js +17 -0
- package/lib/utils/errors/handleVEAError.d.ts +1 -1
- package/lib/utils/errors/handleVEAError.d.ts.map +1 -1
- package/lib/utils/strings/decapitalize.d.ts +2 -0
- package/lib/utils/strings/decapitalize.d.ts.map +1 -0
- package/lib/utils/strings/decapitalize.js +3 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsSumsPrimeDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionsSumsPrimeDenominators.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/fractions/fractionsSumsPrimeDenominators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAkBT,MAAM,6BAA6B,CAAC;AAcrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAyLF,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,WAAW,CAkBhE,CAAC"}
|
|
@@ -3,7 +3,9 @@ import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQue
|
|
|
3
3
|
import { Rational, RationalConstructor, } from "../../../../math/numbers/rationals/rational.js";
|
|
4
4
|
import { gcd } from "../../../../math/utils/arithmetic/gcd.js";
|
|
5
5
|
import { randint } from "../../../../math/utils/random/randint.js";
|
|
6
|
-
import { AddNode } from "../../../../tree/nodes/operators/addNode.js";
|
|
6
|
+
import { add, AddNode } from "../../../../tree/nodes/operators/addNode.js";
|
|
7
|
+
import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
|
|
8
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
7
9
|
import { rationalParser } from "../../../../tree/parsers/rationalParser.js";
|
|
8
10
|
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
9
11
|
const getInstruction = (identifiers, opts) => {
|
|
@@ -26,6 +28,61 @@ const getAnswer = (identifiers) => {
|
|
|
26
28
|
const answer = ratio1.add(ratio2).toTree().toTex();
|
|
27
29
|
return answer;
|
|
28
30
|
};
|
|
31
|
+
const getHint = () => {
|
|
32
|
+
return `Il faut tout d'abord mettre les fractions au même dénominateur. Ensuite, additionne les numérateurs, puis simplifie le résultat obtenu.`;
|
|
33
|
+
};
|
|
34
|
+
const getCorrection = (identifiers) => {
|
|
35
|
+
const { denom1, denom2, num1, num2 } = identifiers;
|
|
36
|
+
const firstFrac = frac(num1, denom1);
|
|
37
|
+
const secondFrac = frac(num2, denom2);
|
|
38
|
+
let technique = "";
|
|
39
|
+
let firstFracFinal = firstFrac;
|
|
40
|
+
let secondFracFinal = secondFrac;
|
|
41
|
+
const firstProduct = frac(multiply(num1, denom2), multiply(num2, denom2));
|
|
42
|
+
firstFracFinal = firstProduct.simplify({
|
|
43
|
+
forbidRationalSimplification: true,
|
|
44
|
+
});
|
|
45
|
+
const secondProduct = frac(multiply(num2, denom1), multiply(denom2, denom1));
|
|
46
|
+
secondFracFinal = secondProduct.simplify({
|
|
47
|
+
forbidRationalSimplification: true,
|
|
48
|
+
});
|
|
49
|
+
technique = `on multiple le numérateur et le dénominateur de la première fraction par $${denom2}$, et le numérateur et dénominateur de la deuxième fraction par $${denom1}$ :
|
|
50
|
+
|
|
51
|
+
$$
|
|
52
|
+
${firstFrac.toTex()} = ${firstProduct.toTex({
|
|
53
|
+
forceNoSimplification: true,
|
|
54
|
+
})} = ${firstFracFinal.toTex()}
|
|
55
|
+
$$
|
|
56
|
+
|
|
57
|
+
$$
|
|
58
|
+
${secondFrac.toTex()} = ${secondProduct.toTex({
|
|
59
|
+
forceNoSimplification: true,
|
|
60
|
+
})} = ${secondFracFinal.toTex()}
|
|
61
|
+
$$
|
|
62
|
+
`;
|
|
63
|
+
const sumFinal = add(firstFracFinal, secondFracFinal);
|
|
64
|
+
const subSumFinal = frac(add(firstFracFinal.leftChild, secondFracFinal.leftChild), firstFracFinal.rightChild);
|
|
65
|
+
const finalNonSimp = subSumFinal.simplify({
|
|
66
|
+
forbidRationalSimplification: true,
|
|
67
|
+
});
|
|
68
|
+
const final = subSumFinal.simplify();
|
|
69
|
+
const isSimplifiable = finalNonSimp.toTex() !== final.toTex();
|
|
70
|
+
return `On commence par mettre les fractions au même dénominateur. Pour cela, ${technique}
|
|
71
|
+
|
|
72
|
+
On peut alors additionner les deux fractions :
|
|
73
|
+
|
|
74
|
+
$$
|
|
75
|
+
${sumFinal.toTex()} = ${subSumFinal.toTex()} = ${finalNonSimp.toTex()}
|
|
76
|
+
$$
|
|
77
|
+
|
|
78
|
+
${isSimplifiable
|
|
79
|
+
? `On peut alors simplifier cette fraction :
|
|
80
|
+
|
|
81
|
+
$$
|
|
82
|
+
${finalNonSimp.toTex()} = ${final.toTex()}
|
|
83
|
+
$$`
|
|
84
|
+
: "Cette fraction est déjà simplifiée."}`;
|
|
85
|
+
};
|
|
29
86
|
const getQuestionFromIdentifiers = (identifiers) => {
|
|
30
87
|
const question = {
|
|
31
88
|
answer: getAnswer(identifiers),
|
|
@@ -33,6 +90,8 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
33
90
|
keys: [],
|
|
34
91
|
answerFormat: "tex",
|
|
35
92
|
identifiers,
|
|
93
|
+
hint: getHint(identifiers),
|
|
94
|
+
correction: getCorrection(identifiers),
|
|
36
95
|
};
|
|
37
96
|
return question;
|
|
38
97
|
};
|
|
@@ -103,4 +162,5 @@ export const fractionsSumsPrimeDenominators = {
|
|
|
103
162
|
subject: "Mathématiques",
|
|
104
163
|
options,
|
|
105
164
|
getQuestionFromIdentifiers,
|
|
165
|
+
hasHintAndCorrection: true,
|
|
106
166
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/mentalCaluls/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/mentalCaluls/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { NodeIdentifiers } from "../../../../tree/nodes/nodeConstructor.js";
|
|
3
|
+
import { ProgCalcIdentifiers } from "../../../../math/progCalc/progCalc.js";
|
|
4
|
+
type Identifiers = {
|
|
5
|
+
nodeIdsStartingNumber: NodeIdentifiers;
|
|
6
|
+
progCalcIds: ProgCalcIdentifiers;
|
|
7
|
+
};
|
|
8
|
+
type Options = {
|
|
9
|
+
numberType: "Integer" | "Decimal";
|
|
10
|
+
nbSteps: number;
|
|
11
|
+
nbDigits: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const mentalProgramSolve: Exercise<Identifiers, Options>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=mentalProgramSolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mentalProgramSolve.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/mentalCaluls/mentalProgramSolve.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAiBT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAI7C,OAAO,EAEL,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AA2BzC,KAAK,WAAW,GAAG;IACjB,qBAAqB,EAAE,eAAe,CAAC;IACvC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAoMF,KAAK,OAAO,GAAG;IACb,UAAU,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAiCF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAyB7D,CAAC"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, GeneratorOptionTarget, GeneratorOptionType, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
4
|
+
import { NodeConstructor, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
5
|
+
import { randomMany } from "../../../../utils/alea/random.js";
|
|
6
|
+
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
7
|
+
import { parseAlgebraic } from "../../../../tree/parsers/latexParser.js";
|
|
8
|
+
import { ProgCalcConstructor, } from "../../../../math/progCalc/progCalc.js";
|
|
9
|
+
import { add, AddNode } from "../../../../tree/nodes/operators/addNode.js";
|
|
10
|
+
import { abs } from "../../../../tree/nodes/functions/absNode.js";
|
|
11
|
+
const getStrSolvingStep = (nodeStep) => {
|
|
12
|
+
//write 10 + (-8) instead of 10 - 8
|
|
13
|
+
function isNegative(node) {
|
|
14
|
+
return !abs(node).simplify().equals(node.simplify());
|
|
15
|
+
}
|
|
16
|
+
if (nodeStep instanceof AddNode && isNegative(nodeStep.rightChild)) {
|
|
17
|
+
return `${nodeStep.leftChild.toTex()} + (${nodeStep.rightChild.toTex()}) = ${nodeStep
|
|
18
|
+
.simplify()
|
|
19
|
+
.toTex()}`;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const texL = nodeStep.toTex({
|
|
23
|
+
allowDoubleMinus: true,
|
|
24
|
+
forceTimesSign: true,
|
|
25
|
+
forceParenthesis: true,
|
|
26
|
+
forceNoSimplification: true,
|
|
27
|
+
allowMinusAnywhereInFraction: true,
|
|
28
|
+
});
|
|
29
|
+
const texR = nodeStep.simplify().toTex();
|
|
30
|
+
return `${texL} = ${texR}`;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const getPropositions = (n, { answer }) => {
|
|
34
|
+
const propositions = [];
|
|
35
|
+
addValidProp(propositions, answer);
|
|
36
|
+
const nodeFinalNumber = answer.toTree();
|
|
37
|
+
const nbWrong = n - 1;
|
|
38
|
+
const arrOffset = randomMany([-10, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 10], nbWrong);
|
|
39
|
+
for (let i = 0; i < arrOffset.length; i++) {
|
|
40
|
+
const offset = arrOffset[i];
|
|
41
|
+
tryToAddWrongProp(propositions, add(nodeFinalNumber, offset).simplify().toTex());
|
|
42
|
+
}
|
|
43
|
+
return shuffleProps(propositions, n);
|
|
44
|
+
};
|
|
45
|
+
const getAnswer = (identifiers) => {
|
|
46
|
+
const { nodeIdsStartingNumber } = identifiers;
|
|
47
|
+
const nodeStartingNumber = NodeConstructor.fromIdentifiers(nodeIdsStartingNumber);
|
|
48
|
+
return nodeStartingNumber.toTex();
|
|
49
|
+
};
|
|
50
|
+
const getInstruction = (identifiers, opts) => {
|
|
51
|
+
const { nodeIdsStartingNumber, progCalcIds } = identifiers;
|
|
52
|
+
const nodeStartingNumber = NodeConstructor.fromIdentifiers(nodeIdsStartingNumber);
|
|
53
|
+
const progCalc = ProgCalcConstructor.fromIdentifiers(progCalcIds);
|
|
54
|
+
const nodeFinalNumber = progCalc.apply(nodeStartingNumber).simplify();
|
|
55
|
+
const strOpening = `Voici un programme de calcul :`;
|
|
56
|
+
const strChooseANumber = `Choisir un nombre
|
|
57
|
+
|
|
58
|
+
`;
|
|
59
|
+
const arrStrProgCalc = progCalc.getArrOfFrenchStrings().map((str) => `
|
|
60
|
+
|
|
61
|
+
${str}`);
|
|
62
|
+
const strProgCalc = arrStrProgCalc.reduce((acc, str) => acc + str);
|
|
63
|
+
const strFinalNumber = opts?.numberType == "Integer"
|
|
64
|
+
? nodeFinalNumber.evaluate().frenchify()
|
|
65
|
+
: nodeFinalNumber
|
|
66
|
+
.evaluate()
|
|
67
|
+
.toFixed(opts?.nbDigits ?? 0)
|
|
68
|
+
.replace(".", ",");
|
|
69
|
+
const strQuestion = `Quel nombre faut-il choisir au départ pour obtenir $ ${strFinalNumber} $ à la fin ?`;
|
|
70
|
+
return `
|
|
71
|
+
${strOpening}
|
|
72
|
+
|
|
73
|
+
${strChooseANumber}
|
|
74
|
+
|
|
75
|
+
${strProgCalc}
|
|
76
|
+
|
|
77
|
+
${strQuestion}
|
|
78
|
+
`;
|
|
79
|
+
};
|
|
80
|
+
const getHint = () => {
|
|
81
|
+
return `Pars du résultat obtenu à la fin et remonte à l'envers en inversant chaque étape.`;
|
|
82
|
+
};
|
|
83
|
+
const getCorrection = (identifiers) => {
|
|
84
|
+
const { nodeIdsStartingNumber, progCalcIds } = identifiers;
|
|
85
|
+
const nodeStartingNumber = NodeConstructor.fromIdentifiers(nodeIdsStartingNumber);
|
|
86
|
+
const progCalc = ProgCalcConstructor.fromIdentifiers(progCalcIds);
|
|
87
|
+
const nodeFinalNumber = progCalc.apply(nodeStartingNumber).simplify();
|
|
88
|
+
const arrOpInverse = progCalc.getInverseProgCalc().operations;
|
|
89
|
+
const arrStrSolvingSteps = [];
|
|
90
|
+
let nodePrevious = nodeFinalNumber;
|
|
91
|
+
for (let i = 0; i < arrOpInverse.length; i++) {
|
|
92
|
+
const operation = arrOpInverse[i];
|
|
93
|
+
if (nodePrevious.opts) {
|
|
94
|
+
nodePrevious.opts.forceParenthesis = true;
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
nodePrevious.opts = {
|
|
98
|
+
forceParenthesis: true,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const nodeStep = operation.func(nodePrevious);
|
|
102
|
+
const strSolvingStep = getStrSolvingStep(nodeStep);
|
|
103
|
+
nodePrevious = nodeStep.simplify();
|
|
104
|
+
arrStrSolvingSteps.push(strSolvingStep);
|
|
105
|
+
}
|
|
106
|
+
return `
|
|
107
|
+
On part de la fin et on remonte à l'envers en inversant chaque étape.
|
|
108
|
+
|
|
109
|
+
${arrStrSolvingSteps.map((str) => `
|
|
110
|
+
|
|
111
|
+
$$
|
|
112
|
+
${str}
|
|
113
|
+
$$
|
|
114
|
+
`)}
|
|
115
|
+
|
|
116
|
+
Le nombre choisi au départ était donc $ ${nodeStartingNumber.toTex()} $.`;
|
|
117
|
+
};
|
|
118
|
+
const getKeys = () => {
|
|
119
|
+
return [];
|
|
120
|
+
};
|
|
121
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
122
|
+
try {
|
|
123
|
+
const parsed = parseAlgebraic(ans);
|
|
124
|
+
return parsed.simplify().toTex() === answer;
|
|
125
|
+
}
|
|
126
|
+
catch (err) {
|
|
127
|
+
return handleVEAError(err);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const getMentalProgramSolveQuestion = (optsIn) => {
|
|
131
|
+
const opts = optsIn ? Object.assign(optsDefault, optsIn) : optsDefault;
|
|
132
|
+
let nbDigits = 0;
|
|
133
|
+
switch (opts.numberType) {
|
|
134
|
+
case "Integer":
|
|
135
|
+
nbDigits = 0;
|
|
136
|
+
break;
|
|
137
|
+
case "Decimal":
|
|
138
|
+
nbDigits = opts.nbDigits ?? 2;
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
const powerOf10 = Math.pow(10, nbDigits);
|
|
142
|
+
const valueStart = randint(0, 33 * powerOf10, []) / powerOf10;
|
|
143
|
+
const nodeStartingNumber = valueStart.toTree();
|
|
144
|
+
const isSingleUseOperators = false;
|
|
145
|
+
const progCalc = ProgCalcConstructor.randomMental(opts.nbSteps, nodeStartingNumber, nbDigits, isSingleUseOperators);
|
|
146
|
+
const identifiers = {
|
|
147
|
+
nodeIdsStartingNumber: valueStart.toTree().toIdentifiers(),
|
|
148
|
+
progCalcIds: progCalc.toIdentifiers(),
|
|
149
|
+
};
|
|
150
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
151
|
+
};
|
|
152
|
+
const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
153
|
+
return {
|
|
154
|
+
answer: getAnswer(identifiers, opts),
|
|
155
|
+
instruction: getInstruction(identifiers, opts),
|
|
156
|
+
keys: getKeys(identifiers, opts),
|
|
157
|
+
answerFormat: "tex",
|
|
158
|
+
identifiers,
|
|
159
|
+
hint: getHint(identifiers, opts),
|
|
160
|
+
correction: getCorrection(identifiers, opts),
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
const optsDefault = {
|
|
164
|
+
numberType: "Integer",
|
|
165
|
+
nbSteps: 4,
|
|
166
|
+
nbDigits: 0,
|
|
167
|
+
};
|
|
168
|
+
const options = [
|
|
169
|
+
{
|
|
170
|
+
id: "numberType",
|
|
171
|
+
label: "Type de nombres utilisés",
|
|
172
|
+
defaultValue: optsDefault.numberType,
|
|
173
|
+
values: ["Integer", "Decimal"],
|
|
174
|
+
target: GeneratorOptionTarget.generation,
|
|
175
|
+
type: GeneratorOptionType.select,
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: "nbSteps",
|
|
179
|
+
label: "Nombre d'étapes de transformation",
|
|
180
|
+
defaultValue: optsDefault.nbSteps,
|
|
181
|
+
values: [2, 3, 4, 5, 6],
|
|
182
|
+
target: GeneratorOptionTarget.generation,
|
|
183
|
+
type: GeneratorOptionType.select,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: "nbDigits",
|
|
187
|
+
label: "Nombre de décimales",
|
|
188
|
+
defaultValue: optsDefault.nbDigits,
|
|
189
|
+
values: [0, 1, 2],
|
|
190
|
+
target: GeneratorOptionTarget.generation,
|
|
191
|
+
type: GeneratorOptionType.select,
|
|
192
|
+
},
|
|
193
|
+
];
|
|
194
|
+
export const mentalProgramSolve = {
|
|
195
|
+
id: "mentalProgramSolve",
|
|
196
|
+
label: "Résoudre un problème basé sur un programme de calcul avec des entiers ou des décimaux",
|
|
197
|
+
isSingleStep: true,
|
|
198
|
+
generator: (nb, opts) => getDistinctQuestions(() => getMentalProgramSolveQuestion(opts), nb),
|
|
199
|
+
options,
|
|
200
|
+
validateOptions: (opts) => {
|
|
201
|
+
return {
|
|
202
|
+
valid: !!opts?.numberType,
|
|
203
|
+
message: "Veuillez choisir un type de nombres.",
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
qcmTimer: 60,
|
|
207
|
+
freeTimer: 60,
|
|
208
|
+
getPropositions,
|
|
209
|
+
isAnswerValid,
|
|
210
|
+
subject: "Mathématiques",
|
|
211
|
+
getInstruction,
|
|
212
|
+
getHint,
|
|
213
|
+
getCorrection,
|
|
214
|
+
getAnswer,
|
|
215
|
+
getQuestionFromIdentifiers,
|
|
216
|
+
hasHintAndCorrection: true,
|
|
217
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
type A10N = {
|
|
3
|
+
a: number;
|
|
4
|
+
n: number;
|
|
5
|
+
};
|
|
6
|
+
type Identifiers = {
|
|
7
|
+
signType: string;
|
|
8
|
+
items: A10N[];
|
|
9
|
+
};
|
|
10
|
+
type Options = {
|
|
11
|
+
signTypes: string[];
|
|
12
|
+
nbCollisions: number[];
|
|
13
|
+
};
|
|
14
|
+
export declare const compareA10N: Exercise<Identifiers, Options>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=compareA10N.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compareA10N.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/ordering/compareA10N.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAkBT,MAAM,6BAA6B,CAAC;AAmBrC,KAAK,IAAI,GAAG;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAwTF,KAAK,OAAO,GAAG;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AA0CF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAgBtD,CAAC"}
|