math-exercises 2.0.44 → 2.1.1
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/README.md +2 -2
- package/lib/exercises/exercise.d.ts +4 -2
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/addAndSub.d.ts +7 -0
- package/lib/exercises/math/calcul/addAndSub.d.ts.map +1 -0
- package/lib/exercises/math/calcul/addAndSub.js +64 -0
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.d.ts +7 -0
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.d.ts.map +1 -0
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.js +74 -0
- package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts +8 -0
- package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +65 -0
- package/lib/exercises/math/calcul/arithmetics/divisorsList.d.ts +7 -0
- package/lib/exercises/math/calcul/arithmetics/divisorsList.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/divisorsList.js +57 -0
- package/lib/exercises/math/calcul/arithmetics/euclideanDivision.d.ts +10 -0
- package/lib/exercises/math/calcul/arithmetics/euclideanDivision.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/euclideanDivision.js +61 -0
- package/lib/exercises/math/calcul/arithmetics/index.d.ts +7 -0
- package/lib/exercises/math/calcul/arithmetics/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/index.js +22 -0
- package/lib/exercises/math/calcul/arithmetics/paritySumsAndProducts.d.ts +7 -0
- package/lib/exercises/math/calcul/arithmetics/paritySumsAndProducts.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/paritySumsAndProducts.js +116 -0
- package/lib/exercises/math/calcul/arithmetics/pgcdCalcul.d.ts +8 -0
- package/lib/exercises/math/calcul/arithmetics/pgcdCalcul.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/pgcdCalcul.js +48 -0
- package/lib/exercises/math/calcul/arithmetics/primeNumbers.d.ts +7 -0
- package/lib/exercises/math/calcul/arithmetics/primeNumbers.d.ts.map +1 -0
- package/lib/exercises/math/calcul/arithmetics/primeNumbers.js +106 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts +9 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +78 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts +8 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +69 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerSum.d.ts +8 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerSum.js +68 -0
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.d.ts +9 -0
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.js +158 -0
- package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts +8 -0
- package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionsDivision.js +63 -0
- package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts +8 -0
- package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionsProduct.js +61 -0
- package/lib/exercises/math/calcul/fractions/fractionsSum.d.ts +8 -0
- package/lib/exercises/math/calcul/fractions/fractionsSum.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/fractionsSum.js +61 -0
- package/lib/exercises/math/calcul/fractions/index.d.ts +10 -0
- package/lib/exercises/math/calcul/fractions/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/index.js +25 -0
- package/lib/exercises/math/calcul/fractions/periodicWritingToFraction.d.ts +9 -0
- package/lib/exercises/math/calcul/fractions/periodicWritingToFraction.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/periodicWritingToFraction.js +81 -0
- package/lib/exercises/math/calcul/fractions/simplifyFraction.d.ts +8 -0
- package/lib/exercises/math/calcul/fractions/simplifyFraction.d.ts.map +1 -0
- package/lib/exercises/math/calcul/fractions/simplifyFraction.js +53 -0
- package/lib/exercises/math/calcul/index.d.ts +9 -0
- package/lib/exercises/math/calcul/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/index.js +24 -0
- package/lib/exercises/math/calcul/mentalCaluls/index.d.ts +5 -0
- package/lib/exercises/math/calcul/mentalCaluls/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/index.js +20 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.d.ts +7 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.js +85 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.d.ts +10 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.js +102 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.d.ts +7 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.js +85 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.d.ts +9 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.js +141 -0
- package/lib/exercises/math/calcul/operations/index.d.ts +3 -0
- package/lib/exercises/math/calcul/operations/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/operations/index.js +18 -0
- package/lib/exercises/math/calcul/operations/operationsPriorities.d.ts +18 -0
- package/lib/exercises/math/calcul/operations/operationsPriorities.d.ts.map +1 -0
- package/lib/exercises/math/calcul/operations/operationsPriorities.js +122 -0
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +19 -0
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -0
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.js +203 -0
- package/lib/exercises/math/calcul/proportionality/index.d.ts +2 -0
- package/lib/exercises/math/calcul/proportionality/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/proportionality/index.js +17 -0
- package/lib/exercises/math/calcul/proportionality/proportionalityTable.d.ts +11 -0
- package/lib/exercises/math/calcul/proportionality/proportionalityTable.d.ts.map +1 -0
- package/lib/exercises/math/calcul/proportionality/proportionalityTable.js +73 -0
- package/lib/exercises/math/calcul/rounding/index.d.ts +2 -0
- package/lib/exercises/math/calcul/rounding/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/rounding/index.js +17 -0
- package/lib/exercises/math/calcul/rounding/rounding.d.ts +22 -0
- package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -0
- package/lib/exercises/math/calcul/rounding/rounding.js +146 -0
- package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +73 -0
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +75 -0
- package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +71 -0
- package/lib/exercises/math/calculLitteral/distributivity/index.d.ts +7 -0
- package/lib/exercises/math/calculLitteral/distributivity/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/index.js +26 -0
- package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +73 -0
- package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +62 -0
- package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +68 -0
- package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts +7 -0
- package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +141 -0
- package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +61 -0
- package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +63 -0
- package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.d.ts +12 -0
- package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +65 -0
- package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.d.ts +13 -0
- package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +70 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +59 -0
- package/lib/exercises/math/calculLitteral/equation/fractionEquation.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/equation/fractionEquation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +83 -0
- package/lib/exercises/math/calculLitteral/equation/index.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/equation/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/index.js +24 -0
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +79 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +57 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +59 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +66 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +92 -0
- package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +5 -0
- package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/factorisation/index.js +20 -0
- package/lib/exercises/math/calculLitteral/index.d.ts +7 -0
- package/lib/exercises/math/calculLitteral/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/index.js +22 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.js +65 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.js +71 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.d.ts +11 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.js +74 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts +13 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +83 -0
- package/lib/exercises/math/calculLitteral/inequations/index.d.ts +6 -0
- package/lib/exercises/math/calculLitteral/inequations/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/index.js +21 -0
- package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.js +66 -0
- package/lib/exercises/math/calculLitteral/simplifying/distributeAndSimplify.d.ts +14 -0
- package/lib/exercises/math/calculLitteral/simplifying/distributeAndSimplify.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/distributeAndSimplify.js +68 -0
- package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.d.ts +10 -0
- package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.js +64 -0
- package/lib/exercises/math/calculLitteral/simplifying/index.d.ts +4 -0
- package/lib/exercises/math/calculLitteral/simplifying/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/index.js +19 -0
- package/lib/exercises/math/calculLitteral/simplifying/reduceExpression.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/simplifying/reduceExpression.js +115 -0
- package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.js +57 -0
- package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.d.ts +8 -0
- package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.js +68 -0
- package/lib/exercises/math/calculLitteral/systems/index.d.ts +3 -0
- package/lib/exercises/math/calculLitteral/systems/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/systems/index.js +18 -0
- package/lib/exercises/math/combinatory/anagrams.d.ts +7 -0
- package/lib/exercises/math/combinatory/anagrams.d.ts.map +1 -0
- package/lib/exercises/math/combinatory/anagrams.js +162 -0
- package/lib/exercises/math/combinatory/ballsCounting.d.ts +10 -0
- package/lib/exercises/math/combinatory/ballsCounting.d.ts.map +1 -0
- package/lib/exercises/math/combinatory/ballsCounting.js +113 -0
- package/lib/exercises/math/combinatory/diceCounting.d.ts +10 -0
- package/lib/exercises/math/combinatory/diceCounting.d.ts.map +1 -0
- package/lib/exercises/math/combinatory/diceCounting.js +125 -0
- package/lib/exercises/math/combinatory/index.d.ts +4 -0
- package/lib/exercises/math/combinatory/index.d.ts.map +1 -0
- package/lib/exercises/math/combinatory/index.js +19 -0
- package/lib/exercises/math/complex/addComplex.d.ts +10 -0
- package/lib/exercises/math/complex/addComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/addComplex.js +65 -0
- package/lib/exercises/math/complex/argumentFromAlgebraicComplex.d.ts +8 -0
- package/lib/exercises/math/complex/argumentFromAlgebraicComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/argumentFromAlgebraicComplex.js +64 -0
- package/lib/exercises/math/complex/conjugateComplex.ts.d.ts +8 -0
- package/lib/exercises/math/complex/conjugateComplex.ts.d.ts.map +1 -0
- package/lib/exercises/math/complex/conjugateComplex.ts.js +55 -0
- package/lib/exercises/math/complex/conjugateDivideComplex.d.ts +8 -0
- package/lib/exercises/math/complex/conjugateDivideComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/conjugateDivideComplex.js +62 -0
- package/lib/exercises/math/complex/conjugateMultiplyComplex.d.ts +8 -0
- package/lib/exercises/math/complex/conjugateMultiplyComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/conjugateMultiplyComplex.js +62 -0
- package/lib/exercises/math/complex/divideComplex.d.ts +8 -0
- package/lib/exercises/math/complex/divideComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/divideComplex.js +59 -0
- package/lib/exercises/math/complex/index.d.ts +12 -0
- package/lib/exercises/math/complex/index.d.ts.map +1 -0
- package/lib/exercises/math/complex/index.js +28 -0
- package/lib/exercises/math/complex/inverseComplex.d.ts +8 -0
- package/lib/exercises/math/complex/inverseComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/inverseComplex.js +55 -0
- package/lib/exercises/math/complex/linearCombinaisonComplex.d.ts +10 -0
- package/lib/exercises/math/complex/linearCombinaisonComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/linearCombinaisonComplex.js +60 -0
- package/lib/exercises/math/complex/moduloFromAlgebraicComplex.d.ts +8 -0
- package/lib/exercises/math/complex/moduloFromAlgebraicComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/moduloFromAlgebraicComplex.js +56 -0
- package/lib/exercises/math/complex/mutiplyComplex.d.ts +8 -0
- package/lib/exercises/math/complex/mutiplyComplex.d.ts.map +1 -0
- package/lib/exercises/math/complex/mutiplyComplex.js +59 -0
- package/lib/exercises/math/complex/reAndIm.d.ts +9 -0
- package/lib/exercises/math/complex/reAndIm.d.ts.map +1 -0
- package/lib/exercises/math/complex/reAndIm.js +51 -0
- package/lib/exercises/math/conversion/aeraConversion.d.ts +9 -0
- package/lib/exercises/math/conversion/aeraConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/aeraConversion.js +63 -0
- package/lib/exercises/math/conversion/capacityConversion.d.ts +9 -0
- package/lib/exercises/math/conversion/capacityConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/capacityConversion.js +61 -0
- package/lib/exercises/math/conversion/hoursToDecimal.d.ts +8 -0
- package/lib/exercises/math/conversion/hoursToDecimal.d.ts.map +1 -0
- package/lib/exercises/math/conversion/hoursToDecimal.js +73 -0
- package/lib/exercises/math/conversion/index.d.ts +8 -0
- package/lib/exercises/math/conversion/index.d.ts.map +1 -0
- package/lib/exercises/math/conversion/index.js +23 -0
- package/lib/exercises/math/conversion/lengthConversion.d.ts +9 -0
- package/lib/exercises/math/conversion/lengthConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/lengthConversion.js +61 -0
- package/lib/exercises/math/conversion/massConversion.d.ts +9 -0
- package/lib/exercises/math/conversion/massConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/massConversion.js +61 -0
- package/lib/exercises/math/conversion/volumeCapacityConversion.d.ts +10 -0
- package/lib/exercises/math/conversion/volumeCapacityConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/volumeCapacityConversion.js +77 -0
- package/lib/exercises/math/conversion/volumeConversion.d.ts +9 -0
- package/lib/exercises/math/conversion/volumeConversion.d.ts.map +1 -0
- package/lib/exercises/math/conversion/volumeConversion.js +63 -0
- package/lib/exercises/math/derivation/derivative/constanteDerivative.d.ts +10 -0
- package/lib/exercises/math/derivation/derivative/constanteDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/constanteDerivative.js +55 -0
- package/lib/exercises/math/derivation/derivative/cosCompositionDerivation.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/cosCompositionDerivation.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/cosCompositionDerivation.js +57 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeOne.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeOne.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeOne.js +63 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeThree.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeThree.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeThree.js +56 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeTwo.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeTwo.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/expDerivativeTwo.js +58 -0
- package/lib/exercises/math/derivation/derivative/firstDegreeDerivative.d.ts +11 -0
- package/lib/exercises/math/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/firstDegreeDerivative.js +53 -0
- package/lib/exercises/math/derivation/derivative/index.d.ts +22 -0
- package/lib/exercises/math/derivation/derivative/index.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/index.js +42 -0
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts +7 -0
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.js +56 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeOne.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeOne.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeOne.js +69 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeThree.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeThree.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeThree.js +84 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeTwo.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/lnDerivativeTwo.js +61 -0
- package/lib/exercises/math/derivation/derivative/powerCompositionDerivation.d.ts +9 -0
- package/lib/exercises/math/derivation/derivative/powerCompositionDerivation.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/powerCompositionDerivation.js +62 -0
- package/lib/exercises/math/derivation/derivative/powerFunctionDerivative.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/powerFunctionDerivative.js +72 -0
- package/lib/exercises/math/derivation/derivative/productDerivative.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/productDerivative.js +60 -0
- package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/quotientDerivative.js +85 -0
- package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.d.ts +7 -0
- package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.js +79 -0
- package/lib/exercises/math/derivation/derivative/secondDegreeDerivative.d.ts +10 -0
- package/lib/exercises/math/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/secondDegreeDerivative.js +77 -0
- package/lib/exercises/math/derivation/derivative/sinCompositionDerivation.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/sinCompositionDerivation.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/sinCompositionDerivation.js +58 -0
- package/lib/exercises/math/derivation/derivative/sqrtCompositionDerivation.d.ts +8 -0
- package/lib/exercises/math/derivation/derivative/sqrtCompositionDerivation.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/sqrtCompositionDerivation.js +62 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeDerivative.d.ts +10 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeDerivative.js +84 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.d.ts +10 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +123 -0
- package/lib/exercises/math/derivation/derivative/usualderivative.d.ts +11 -0
- package/lib/exercises/math/derivation/derivative/usualderivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/usualderivative.js +109 -0
- package/lib/exercises/math/derivation/derivativeNumberCalcul.d.ts +8 -0
- package/lib/exercises/math/derivation/derivativeNumberCalcul.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumberCalcul.js +49 -0
- package/lib/exercises/math/derivation/derivativeNumberReading.d.ts +8 -0
- package/lib/exercises/math/derivation/derivativeNumberReading.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumberReading.js +103 -0
- package/lib/exercises/math/derivation/index.d.ts +4 -0
- package/lib/exercises/math/derivation/index.d.ts.map +1 -0
- package/lib/exercises/math/derivation/index.js +19 -0
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts +10 -0
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts.map +1 -0
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +102 -0
- package/lib/exercises/math/equaDiff/equaDiffGeneralForme.d.ts +7 -0
- package/lib/exercises/math/equaDiff/equaDiffGeneralForme.d.ts.map +1 -0
- package/lib/exercises/math/equaDiff/equaDiffGeneralForme.js +59 -0
- package/lib/exercises/math/equaDiff/equaDiffGeneralFormeWithIC.d.ts +8 -0
- package/lib/exercises/math/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -0
- package/lib/exercises/math/equaDiff/equaDiffGeneralFormeWithIC.js +69 -0
- package/lib/exercises/math/equaDiff/index.d.ts +4 -0
- package/lib/exercises/math/equaDiff/index.d.ts.map +1 -0
- package/lib/exercises/math/equaDiff/index.js +19 -0
- package/lib/exercises/math/functions/absolute/absoluteValueEquations.d.ts +8 -0
- package/lib/exercises/math/functions/absolute/absoluteValueEquations.d.ts.map +1 -0
- package/lib/exercises/math/functions/absolute/absoluteValueEquations.js +75 -0
- package/lib/exercises/math/functions/absolute/absoluteValueInequations.d.ts +9 -0
- package/lib/exercises/math/functions/absolute/absoluteValueInequations.d.ts.map +1 -0
- package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +74 -0
- package/lib/exercises/math/functions/absolute/index.d.ts +3 -0
- package/lib/exercises/math/functions/absolute/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/absolute/index.js +18 -0
- package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts +8 -0
- package/lib/exercises/math/functions/affines/affineExpressionReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/affineExpressionReading.js +99 -0
- package/lib/exercises/math/functions/affines/index.d.ts +7 -0
- package/lib/exercises/math/functions/affines/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/index.js +22 -0
- package/lib/exercises/math/functions/affines/interceptReading.d.ts +8 -0
- package/lib/exercises/math/functions/affines/interceptReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/interceptReading.js +70 -0
- package/lib/exercises/math/functions/affines/leadingCoefficient.d.ts +10 -0
- package/lib/exercises/math/functions/affines/leadingCoefficient.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/leadingCoefficient.js +80 -0
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.d.ts +10 -0
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.js +56 -0
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV2.d.ts +10 -0
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV2.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV2.js +55 -0
- package/lib/exercises/math/functions/affines/signFunction.d.ts +9 -0
- package/lib/exercises/math/functions/affines/signFunction.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/signFunction.js +85 -0
- package/lib/exercises/math/functions/basics/graphicEquation.d.ts +8 -0
- package/lib/exercises/math/functions/basics/graphicEquation.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/graphicEquation.js +114 -0
- package/lib/exercises/math/functions/basics/graphicInequation.d.ts +16 -0
- package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/graphicInequation.js +154 -0
- package/lib/exercises/math/functions/basics/imageFunction.d.ts +10 -0
- package/lib/exercises/math/functions/basics/imageFunction.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/imageFunction.js +65 -0
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.d.ts +10 -0
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.js +87 -0
- package/lib/exercises/math/functions/basics/index.d.ts +9 -0
- package/lib/exercises/math/functions/basics/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/index.js +24 -0
- package/lib/exercises/math/functions/basics/inverseImageFunction.d.ts +8 -0
- package/lib/exercises/math/functions/basics/inverseImageFunction.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/inverseImageFunction.js +53 -0
- package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.d.ts +11 -0
- package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +141 -0
- package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts +9 -0
- package/lib/exercises/math/functions/basics/twoFunctionsEquation.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +136 -0
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts +17 -0
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -0
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +182 -0
- package/lib/exercises/math/functions/cube/cubicEquation.d.ts +7 -0
- package/lib/exercises/math/functions/cube/cubicEquation.d.ts.map +1 -0
- package/lib/exercises/math/functions/cube/cubicEquation.js +56 -0
- package/lib/exercises/math/functions/cube/index.d.ts +2 -0
- package/lib/exercises/math/functions/cube/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/cube/index.js +17 -0
- package/lib/exercises/math/functions/exponential/expEquation.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/expEquation.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/expEquation.js +76 -0
- package/lib/exercises/math/functions/exponential/expSimplifiying.d.ts +10 -0
- package/lib/exercises/math/functions/exponential/expSimplifiying.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/expSimplifiying.js +117 -0
- package/lib/exercises/math/functions/exponential/index.d.ts +3 -0
- package/lib/exercises/math/functions/exponential/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/index.js +18 -0
- package/lib/exercises/math/functions/index.d.ts +11 -0
- package/lib/exercises/math/functions/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/index.js +26 -0
- package/lib/exercises/math/functions/logarithm/index.d.ts +6 -0
- package/lib/exercises/math/functions/logarithm/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/index.js +21 -0
- package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts +8 -0
- package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/log10PowerSimplifying.js +56 -0
- package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts +11 -0
- package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/log10Simplifying.js +100 -0
- package/lib/exercises/math/functions/logarithm/logEquation.d.ts +9 -0
- package/lib/exercises/math/functions/logarithm/logEquation.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logEquation.js +74 -0
- package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts +12 -0
- package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logPowerEquation.js +105 -0
- package/lib/exercises/math/functions/logarithm/logSimplifiying.d.ts +9 -0
- package/lib/exercises/math/functions/logarithm/logSimplifiying.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logSimplifiying.js +78 -0
- package/lib/exercises/math/functions/parity/index.d.ts +3 -0
- package/lib/exercises/math/functions/parity/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/parity/index.js +18 -0
- package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts +8 -0
- package/lib/exercises/math/functions/parity/parityFromAlgebra.d.ts.map +1 -0
- package/lib/exercises/math/functions/parity/parityFromAlgebra.js +118 -0
- package/lib/exercises/math/functions/parity/parityFromGraph.d.ts +8 -0
- package/lib/exercises/math/functions/parity/parityFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/parity/parityFromGraph.js +129 -0
- package/lib/exercises/math/functions/rationalFraction/index.d.ts +2 -0
- package/lib/exercises/math/functions/rationalFraction/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/rationalFraction/index.js +17 -0
- package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.d.ts +10 -0
- package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -0
- package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.js +65 -0
- package/lib/exercises/math/functions/square/index.d.ts +2 -0
- package/lib/exercises/math/functions/square/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/square/index.js +17 -0
- package/lib/exercises/math/functions/square/squareImageInterval.d.ts +11 -0
- package/lib/exercises/math/functions/square/squareImageInterval.d.ts.map +1 -0
- package/lib/exercises/math/functions/square/squareImageInterval.js +110 -0
- package/lib/exercises/math/functions/trinoms/alphaBetaFromDevForm.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/alphaBetaFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/alphaBetaFromDevForm.js +52 -0
- package/lib/exercises/math/functions/trinoms/alphaBetaInCanonicalForm.d.ts +10 -0
- package/lib/exercises/math/functions/trinoms/alphaBetaInCanonicalForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/alphaBetaInCanonicalForm.js +67 -0
- package/lib/exercises/math/functions/trinoms/canonicalFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/canonicalFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/canonicalFromDevForm.js +51 -0
- package/lib/exercises/math/functions/trinoms/deltaTrinom.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/deltaTrinom.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/deltaTrinom.js +53 -0
- package/lib/exercises/math/functions/trinoms/extremumFromCanonicalForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/extremumFromCanonicalForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/extremumFromCanonicalForm.js +58 -0
- package/lib/exercises/math/functions/trinoms/extremumTypeFromAlgebricForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/extremumTypeFromAlgebricForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/extremumTypeFromAlgebricForm.js +44 -0
- package/lib/exercises/math/functions/trinoms/factorizedFormFromRoots.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/factorizedFormFromRoots.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/factorizedFormFromRoots.js +68 -0
- package/lib/exercises/math/functions/trinoms/index.d.ts +17 -0
- package/lib/exercises/math/functions/trinoms/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/index.js +32 -0
- package/lib/exercises/math/functions/trinoms/niceRootsFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/niceRootsFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/niceRootsFromDevForm.js +57 -0
- package/lib/exercises/math/functions/trinoms/rootsFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/rootsFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/rootsFromDevForm.js +57 -0
- package/lib/exercises/math/functions/trinoms/rootsFromFactorizedForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/rootsFromFactorizedForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/rootsFromFactorizedForm.js +71 -0
- package/lib/exercises/math/functions/trinoms/rootsReading.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/rootsReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/rootsReading.js +69 -0
- package/lib/exercises/math/functions/trinoms/secondDegreeInequation.d.ts +11 -0
- package/lib/exercises/math/functions/trinoms/secondDegreeInequation.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/secondDegreeInequation.js +100 -0
- package/lib/exercises/math/functions/trinoms/summitAbscissFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAbscissFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAbscissFromDevForm.js +55 -0
- package/lib/exercises/math/functions/trinoms/summitAbscissFromRoots.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAbscissFromRoots.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAbscissFromRoots.js +60 -0
- package/lib/exercises/math/functions/trinoms/summitReading.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitReading.js +61 -0
- package/lib/exercises/math/functions/trinoms/variationsFromAlgebricForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/variationsFromAlgebricForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/variationsFromAlgebricForm.js +45 -0
- package/lib/exercises/math/geometry/areas/circleArea.d.ts +9 -0
- package/lib/exercises/math/geometry/areas/circleArea.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/circleArea.js +53 -0
- package/lib/exercises/math/geometry/areas/index.d.ts +7 -0
- package/lib/exercises/math/geometry/areas/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/index.js +22 -0
- package/lib/exercises/math/geometry/areas/rectangleArea.d.ts +8 -0
- package/lib/exercises/math/geometry/areas/rectangleArea.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/rectangleArea.js +47 -0
- package/lib/exercises/math/geometry/areas/rightTriangleArea.d.ts +7 -0
- package/lib/exercises/math/geometry/areas/rightTriangleArea.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/rightTriangleArea.js +83 -0
- package/lib/exercises/math/geometry/areas/squareArea.d.ts +7 -0
- package/lib/exercises/math/geometry/areas/squareArea.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/squareArea.js +47 -0
- package/lib/exercises/math/geometry/areas/triangleArea.d.ts +5 -0
- package/lib/exercises/math/geometry/areas/triangleArea.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/triangleArea.js +107 -0
- package/lib/exercises/math/geometry/areas/triangleAreaV2.d.ts +7 -0
- package/lib/exercises/math/geometry/areas/triangleAreaV2.d.ts.map +1 -0
- package/lib/exercises/math/geometry/areas/triangleAreaV2.js +72 -0
- package/lib/exercises/math/geometry/cartesian/distanceBetweenTwoPoints.d.ts +8 -0
- package/lib/exercises/math/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/distanceBetweenTwoPoints.js +96 -0
- package/lib/exercises/math/geometry/cartesian/index.d.ts +3 -0
- package/lib/exercises/math/geometry/cartesian/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/index.js +18 -0
- package/lib/exercises/math/geometry/cartesian/midpoint.d.ts +8 -0
- package/lib/exercises/math/geometry/cartesian/midpoint.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/midpoint.js +64 -0
- package/lib/exercises/math/geometry/index.d.ts +7 -0
- package/lib/exercises/math/geometry/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/index.js +22 -0
- package/lib/exercises/math/geometry/perimeters/circleCircumference.d.ts +9 -0
- package/lib/exercises/math/geometry/perimeters/circleCircumference.d.ts.map +1 -0
- package/lib/exercises/math/geometry/perimeters/circleCircumference.js +53 -0
- package/lib/exercises/math/geometry/perimeters/index.d.ts +5 -0
- package/lib/exercises/math/geometry/perimeters/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/perimeters/index.js +20 -0
- package/lib/exercises/math/geometry/perimeters/rectanglePerimeter.d.ts +8 -0
- package/lib/exercises/math/geometry/perimeters/rectanglePerimeter.d.ts.map +1 -0
- package/lib/exercises/math/geometry/perimeters/rectanglePerimeter.js +47 -0
- package/lib/exercises/math/geometry/perimeters/squarePerimeter.d.ts +7 -0
- package/lib/exercises/math/geometry/perimeters/squarePerimeter.d.ts.map +1 -0
- package/lib/exercises/math/geometry/perimeters/squarePerimeter.js +47 -0
- package/lib/exercises/math/geometry/perimeters/trianglePerimeter.d.ts +7 -0
- package/lib/exercises/math/geometry/perimeters/trianglePerimeter.d.ts.map +1 -0
- package/lib/exercises/math/geometry/perimeters/trianglePerimeter.js +47 -0
- package/lib/exercises/math/geometry/pythagore/index.d.ts +3 -0
- package/lib/exercises/math/geometry/pythagore/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/pythagore/index.js +18 -0
- package/lib/exercises/math/geometry/pythagore/pythagore.d.ts +9 -0
- package/lib/exercises/math/geometry/pythagore/pythagore.d.ts.map +1 -0
- package/lib/exercises/math/geometry/pythagore/pythagore.js +73 -0
- package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.d.ts +8 -0
- package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.d.ts.map +1 -0
- package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.js +110 -0
- package/lib/exercises/math/geometry/thales/index.d.ts +3 -0
- package/lib/exercises/math/geometry/thales/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/thales/index.js +18 -0
- package/lib/exercises/math/geometry/thales/thales.d.ts +7 -0
- package/lib/exercises/math/geometry/thales/thales.d.ts.map +1 -0
- package/lib/exercises/math/geometry/thales/thales.js +136 -0
- package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts +10 -0
- package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -0
- package/lib/exercises/math/geometry/thales/thalesCalcul.js +151 -0
- package/lib/exercises/math/geometry/vectors/alignementViaColinearity.d.ts +12 -0
- package/lib/exercises/math/geometry/vectors/alignementViaColinearity.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/alignementViaColinearity.js +65 -0
- package/lib/exercises/math/geometry/vectors/chasles.d.ts +8 -0
- package/lib/exercises/math/geometry/vectors/chasles.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/chasles.js +64 -0
- package/lib/exercises/math/geometry/vectors/colinearity.d.ts +10 -0
- package/lib/exercises/math/geometry/vectors/colinearity.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/colinearity.js +60 -0
- package/lib/exercises/math/geometry/vectors/coordinatesReading.d.ts +10 -0
- package/lib/exercises/math/geometry/vectors/coordinatesReading.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/coordinatesReading.js +75 -0
- package/lib/exercises/math/geometry/vectors/determinant.d.ts +8 -0
- package/lib/exercises/math/geometry/vectors/determinant.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/determinant.js +55 -0
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +196 -0
- package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.d.ts +14 -0
- package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.js +66 -0
- package/lib/exercises/math/geometry/vectors/index.d.ts +13 -0
- package/lib/exercises/math/geometry/vectors/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/index.js +28 -0
- package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.d.ts +14 -0
- package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.js +76 -0
- package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.d.ts +14 -0
- package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.js +68 -0
- package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts +8 -0
- package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +53 -0
- package/lib/exercises/math/geometry/vectors/scalarProductViaCos.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/scalarProductViaCos.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProductViaCos.js +67 -0
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts +8 -0
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +53 -0
- package/lib/exercises/math/index.d.ts +20 -0
- package/lib/exercises/math/index.d.ts.map +1 -0
- package/lib/exercises/math/index.js +35 -0
- package/lib/exercises/math/limits/index.d.ts +11 -0
- package/lib/exercises/math/limits/index.d.ts.map +1 -0
- package/lib/exercises/math/limits/index.js +26 -0
- package/lib/exercises/math/limits/limitReading.d.ts +10 -0
- package/lib/exercises/math/limits/limitReading.d.ts.map +1 -0
- package/lib/exercises/math/limits/limitReading.js +121 -0
- package/lib/exercises/math/limits/polynomLimit.d.ts +8 -0
- package/lib/exercises/math/limits/polynomLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/polynomLimit.js +54 -0
- package/lib/exercises/math/limits/polynomLimitNoFI.d.ts +8 -0
- package/lib/exercises/math/limits/polynomLimitNoFI.d.ts.map +1 -0
- package/lib/exercises/math/limits/polynomLimitNoFI.js +54 -0
- package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.d.ts +9 -0
- package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.js +70 -0
- package/lib/exercises/math/limits/rationalFracLimit.d.ts +9 -0
- package/lib/exercises/math/limits/rationalFracLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/rationalFracLimit.js +102 -0
- package/lib/exercises/math/limits/sequenceGeometricLimit.d.ts +8 -0
- package/lib/exercises/math/limits/sequenceGeometricLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/sequenceGeometricLimit.js +52 -0
- package/lib/exercises/math/limits/sequencePolynomLimit.d.ts +7 -0
- package/lib/exercises/math/limits/sequencePolynomLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/sequencePolynomLimit.js +53 -0
- package/lib/exercises/math/limits/sequencePolynomNoFILimit.d.ts +7 -0
- package/lib/exercises/math/limits/sequencePolynomNoFILimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/sequencePolynomNoFILimit.js +53 -0
- package/lib/exercises/math/limits/sequencePolynomProductLimit.d.ts +8 -0
- package/lib/exercises/math/limits/sequencePolynomProductLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/sequencePolynomProductLimit.js +71 -0
- package/lib/exercises/math/limits/sequenceRationalFracLimit.d.ts +8 -0
- package/lib/exercises/math/limits/sequenceRationalFracLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/sequenceRationalFracLimit.js +101 -0
- package/lib/exercises/math/matrices/index.d.ts +3 -0
- package/lib/exercises/math/matrices/index.d.ts.map +1 -0
- package/lib/exercises/math/matrices/index.js +19 -0
- package/lib/exercises/math/matrices/matrixGeneralTerm.d.ts +10 -0
- package/lib/exercises/math/matrices/matrixGeneralTerm.d.ts.map +1 -0
- package/lib/exercises/math/matrices/matrixGeneralTerm.js +58 -0
- package/lib/exercises/math/matrices/matrixInversibilityDomain.d.ts +10 -0
- package/lib/exercises/math/matrices/matrixInversibilityDomain.d.ts.map +1 -0
- package/lib/exercises/math/matrices/matrixInversibilityDomain.js +95 -0
- package/lib/exercises/math/matrices/productCell.d.ts +10 -0
- package/lib/exercises/math/matrices/productCell.d.ts.map +1 -0
- package/lib/exercises/math/matrices/productCell.js +58 -0
- package/lib/exercises/math/percent/applyPercent.d.ts +9 -0
- package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -0
- package/lib/exercises/math/percent/applyPercent.js +79 -0
- package/lib/exercises/math/percent/averageEvolutionRate.d.ts +8 -0
- package/lib/exercises/math/percent/averageEvolutionRate.d.ts.map +1 -0
- package/lib/exercises/math/percent/averageEvolutionRate.js +55 -0
- package/lib/exercises/math/percent/evolutionToCM.d.ts +8 -0
- package/lib/exercises/math/percent/evolutionToCM.d.ts.map +1 -0
- package/lib/exercises/math/percent/evolutionToCM.js +65 -0
- package/lib/exercises/math/percent/globalPercent.d.ts +7 -0
- package/lib/exercises/math/percent/globalPercent.d.ts.map +1 -0
- package/lib/exercises/math/percent/globalPercent.js +72 -0
- package/lib/exercises/math/percent/index.d.ts +8 -0
- package/lib/exercises/math/percent/index.d.ts.map +1 -0
- package/lib/exercises/math/percent/index.js +23 -0
- package/lib/exercises/math/percent/percentToDecimal.d.ts +8 -0
- package/lib/exercises/math/percent/percentToDecimal.d.ts.map +1 -0
- package/lib/exercises/math/percent/percentToDecimal.js +71 -0
- package/lib/exercises/math/percent/reciprocalPercentage.d.ts +8 -0
- package/lib/exercises/math/percent/reciprocalPercentage.d.ts.map +1 -0
- package/lib/exercises/math/percent/reciprocalPercentage.js +62 -0
- package/lib/exercises/math/percent/valuePercent.d.ts +8 -0
- package/lib/exercises/math/percent/valuePercent.d.ts.map +1 -0
- package/lib/exercises/math/percent/valuePercent.js +46 -0
- package/lib/exercises/math/powers/calculateNegativePower.d.ts +8 -0
- package/lib/exercises/math/powers/calculateNegativePower.d.ts.map +1 -0
- package/lib/exercises/math/powers/calculateNegativePower.js +74 -0
- package/lib/exercises/math/powers/calculatePower.d.ts +8 -0
- package/lib/exercises/math/powers/calculatePower.d.ts.map +1 -0
- package/lib/exercises/math/powers/calculatePower.js +66 -0
- package/lib/exercises/math/powers/decimalToScientific.d.ts +7 -0
- package/lib/exercises/math/powers/decimalToScientific.d.ts.map +1 -0
- package/lib/exercises/math/powers/decimalToScientific.js +77 -0
- package/lib/exercises/math/powers/index.d.ts +10 -0
- package/lib/exercises/math/powers/index.d.ts.map +1 -0
- package/lib/exercises/math/powers/index.js +25 -0
- package/lib/exercises/math/powers/powerDefinition.d.ts +8 -0
- package/lib/exercises/math/powers/powerDefinition.d.ts.map +1 -0
- package/lib/exercises/math/powers/powerDefinition.js +56 -0
- package/lib/exercises/math/powers/powersDivision.d.ts +13 -0
- package/lib/exercises/math/powers/powersDivision.d.ts.map +1 -0
- package/lib/exercises/math/powers/powersDivision.js +89 -0
- package/lib/exercises/math/powers/powersOfTenToDecimal.d.ts +10 -0
- package/lib/exercises/math/powers/powersOfTenToDecimal.d.ts.map +1 -0
- package/lib/exercises/math/powers/powersOfTenToDecimal.js +73 -0
- package/lib/exercises/math/powers/powersPower.d.ts +13 -0
- package/lib/exercises/math/powers/powersPower.d.ts.map +1 -0
- package/lib/exercises/math/powers/powersPower.js +96 -0
- package/lib/exercises/math/powers/powersProduct.d.ts +13 -0
- package/lib/exercises/math/powers/powersProduct.d.ts.map +1 -0
- package/lib/exercises/math/powers/powersProduct.js +91 -0
- package/lib/exercises/math/powers/scientificToDecimal.d.ts +11 -0
- package/lib/exercises/math/powers/scientificToDecimal.d.ts.map +1 -0
- package/lib/exercises/math/powers/scientificToDecimal.js +75 -0
- package/lib/exercises/math/primitive/constantPrimitive.d.ts +10 -0
- package/lib/exercises/math/primitive/constantPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/constantPrimitive.js +57 -0
- package/lib/exercises/math/primitive/expUPrimitive.d.ts +10 -0
- package/lib/exercises/math/primitive/expUPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/expUPrimitive.js +77 -0
- package/lib/exercises/math/primitive/exponentialPrimitive.d.ts +10 -0
- package/lib/exercises/math/primitive/exponentialPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/exponentialPrimitive.js +73 -0
- package/lib/exercises/math/primitive/index.d.ts +9 -0
- package/lib/exercises/math/primitive/index.d.ts.map +1 -0
- package/lib/exercises/math/primitive/index.js +32 -0
- package/lib/exercises/math/primitive/logarithmePrimitive.d.ts +9 -0
- package/lib/exercises/math/primitive/logarithmePrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/logarithmePrimitive.js +80 -0
- package/lib/exercises/math/primitive/polynomialPrimitive.d.ts +10 -0
- package/lib/exercises/math/primitive/polynomialPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/polynomialPrimitive.js +61 -0
- package/lib/exercises/math/primitive/sinCosPrimitive.d.ts +11 -0
- package/lib/exercises/math/primitive/sinCosPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/sinCosPrimitive.js +80 -0
- package/lib/exercises/math/primitive/sinUCosUPrimitive.d.ts +11 -0
- package/lib/exercises/math/primitive/sinUCosUPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/primitive/sinUCosUPrimitive.js +86 -0
- package/lib/exercises/math/primitive/usualPrimitives.d.ts +11 -0
- package/lib/exercises/math/primitive/usualPrimitives.d.ts.map +1 -0
- package/lib/exercises/math/primitive/usualPrimitives.js +109 -0
- package/lib/exercises/math/probaStat/ballsBasicProbas.d.ts +8 -0
- package/lib/exercises/math/probaStat/ballsBasicProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/ballsBasicProbas.js +64 -0
- package/lib/exercises/math/probaStat/cardBasicProbas.d.ts +7 -0
- package/lib/exercises/math/probaStat/cardBasicProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/cardBasicProbas.js +105 -0
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts +10 -0
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/conditionalProbability.js +92 -0
- package/lib/exercises/math/probaStat/diceBasicProbas.d.ts +9 -0
- package/lib/exercises/math/probaStat/diceBasicProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/diceBasicProbas.js +78 -0
- package/lib/exercises/math/probaStat/independancy.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy.js +60 -0
- package/lib/exercises/math/probaStat/index.d.ts +12 -0
- package/lib/exercises/math/probaStat/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/index.js +27 -0
- package/lib/exercises/math/probaStat/issuesCountingForCards.d.ts +7 -0
- package/lib/exercises/math/probaStat/issuesCountingForCards.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/issuesCountingForCards.js +79 -0
- package/lib/exercises/math/probaStat/probaFromTableNoContext.d.ts +13 -0
- package/lib/exercises/math/probaStat/probaFromTableNoContext.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/probaFromTableNoContext.js +116 -0
- package/lib/exercises/math/probaStat/probaFromTableWithContext.d.ts +13 -0
- package/lib/exercises/math/probaStat/probaFromTableWithContext.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/probaFromTableWithContext.js +122 -0
- package/lib/exercises/math/probaStat/probabilityTree.d.ts +13 -0
- package/lib/exercises/math/probaStat/probabilityTree.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/probabilityTree.js +146 -0
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.d.ts +8 -0
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.js +69 -0
- package/lib/exercises/math/probaStat/stats1var/index.d.ts +7 -0
- package/lib/exercises/math/probaStat/stats1var/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/index.js +22 -0
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.d.ts +11 -0
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.js +130 -0
- package/lib/exercises/math/probaStat/stats1var/median.d.ts +7 -0
- package/lib/exercises/math/probaStat/stats1var/median.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/median.js +72 -0
- package/lib/exercises/math/probaStat/stats1var/medianList.d.ts +7 -0
- package/lib/exercises/math/probaStat/stats1var/medianList.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/medianList.js +57 -0
- package/lib/exercises/math/probaStat/stats1var/quartiles.d.ts +9 -0
- package/lib/exercises/math/probaStat/stats1var/quartiles.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/quartiles.js +85 -0
- package/lib/exercises/math/probaStat/stats1var/quartilesList.d.ts +8 -0
- package/lib/exercises/math/probaStat/stats1var/quartilesList.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/quartilesList.js +73 -0
- package/lib/exercises/math/probaStat/stats2var/averagePoint.d.ts +8 -0
- package/lib/exercises/math/probaStat/stats2var/averagePoint.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats2var/averagePoint.js +74 -0
- package/lib/exercises/math/probaStat/stats2var/index.d.ts +2 -0
- package/lib/exercises/math/probaStat/stats2var/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats2var/index.js +17 -0
- package/lib/exercises/math/python/index.d.ts +1 -0
- package/lib/exercises/math/python/index.d.ts.map +1 -0
- package/lib/exercises/math/python/index.js +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +55 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts +8 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.js +58 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.js +49 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts +10 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +51 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.js +52 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +52 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +60 -0
- package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.d.ts +7 -0
- package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.js +47 -0
- package/lib/exercises/math/sequences/arithmetic/index.d.ts +13 -0
- package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/index.js +28 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts +8 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +72 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts +8 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +92 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.d.ts +8 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.js +45 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.d.ts +8 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +63 -0
- package/lib/exercises/math/sequences/explicitFormulaUsage.d.ts +8 -0
- package/lib/exercises/math/sequences/explicitFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/explicitFormulaUsage.js +51 -0
- package/lib/exercises/math/sequences/genericSequenceVariations.d.ts +7 -0
- package/lib/exercises/math/sequences/genericSequenceVariations.d.ts.map +1 -0
- package/lib/exercises/math/sequences/genericSequenceVariations.js +53 -0
- package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +57 -0
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.d.ts +8 -0
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.js +61 -0
- package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts +9 -0
- package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/geometricFindReason.js +52 -0
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.d.ts +8 -0
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.js +56 -0
- package/lib/exercises/math/sequences/geometric/geometricReasonUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/geometric/geometricReasonUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/geometricReasonUsage.js +54 -0
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +55 -0
- package/lib/exercises/math/sequences/geometric/index.d.ts +7 -0
- package/lib/exercises/math/sequences/geometric/index.d.ts.map +1 -0
- package/lib/exercises/math/sequences/geometric/index.js +22 -0
- package/lib/exercises/math/sequences/index.d.ts +6 -0
- package/lib/exercises/math/sequences/index.d.ts.map +1 -0
- package/lib/exercises/math/sequences/index.js +21 -0
- package/lib/exercises/math/sequences/recurrenceFormulaUsage.d.ts +9 -0
- package/lib/exercises/math/sequences/recurrenceFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/math/sequences/recurrenceFormulaUsage.js +56 -0
- package/lib/exercises/math/sets/index.d.ts +3 -0
- package/lib/exercises/math/sets/index.d.ts.map +1 -0
- package/lib/exercises/math/sets/index.js +18 -0
- package/lib/exercises/math/sets/intervals/index.d.ts +4 -0
- package/lib/exercises/math/sets/intervals/index.d.ts.map +1 -0
- package/lib/exercises/math/sets/intervals/index.js +19 -0
- package/lib/exercises/math/sets/intervals/inequalityToInterval.d.ts +11 -0
- package/lib/exercises/math/sets/intervals/inequalityToInterval.d.ts.map +1 -0
- package/lib/exercises/math/sets/intervals/inequalityToInterval.js +149 -0
- package/lib/exercises/math/sets/intervals/intervalsIntersection.d.ts +13 -0
- package/lib/exercises/math/sets/intervals/intervalsIntersection.d.ts.map +1 -0
- package/lib/exercises/math/sets/intervals/intervalsIntersection.js +64 -0
- package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts +13 -0
- package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts.map +1 -0
- package/lib/exercises/math/sets/intervals/intervalsUnion.js +56 -0
- package/lib/exercises/math/sets/setBelonging.d.ts +8 -0
- package/lib/exercises/math/sets/setBelonging.d.ts.map +1 -0
- package/lib/exercises/math/sets/setBelonging.js +85 -0
- package/lib/exercises/math/squareRoots/index.d.ts +6 -0
- package/lib/exercises/math/squareRoots/index.d.ts.map +1 -0
- package/lib/exercises/math/squareRoots/index.js +21 -0
- package/lib/exercises/math/squareRoots/simpifySquareRoot.d.ts +7 -0
- package/lib/exercises/math/squareRoots/simpifySquareRoot.d.ts.map +1 -0
- package/lib/exercises/math/squareRoots/simpifySquareRoot.js +55 -0
- package/lib/exercises/math/squareRoots/squareRootEquation.d.ts +7 -0
- package/lib/exercises/math/squareRoots/squareRootEquation.d.ts.map +1 -0
- package/lib/exercises/math/squareRoots/squareRootEquation.js +55 -0
- package/lib/exercises/math/squareRoots/squareRootIdentities.d.ts +11 -0
- package/lib/exercises/math/squareRoots/squareRootIdentities.d.ts.map +1 -0
- package/lib/exercises/math/squareRoots/squareRootIdentities.js +125 -0
- package/lib/exercises/math/squareRoots/squareRootsDistributivity.d.ts +10 -0
- package/lib/exercises/math/squareRoots/squareRootsDistributivity.d.ts.map +1 -0
- package/lib/exercises/math/squareRoots/squareRootsDistributivity.js +68 -0
- package/lib/exercises/math/squareRoots/squareRootsSum.d.ts +13 -0
- package/lib/exercises/math/squareRoots/squareRootsSum.d.ts.map +1 -0
- package/lib/exercises/math/squareRoots/squareRootsSum.js +81 -0
- package/lib/exercises/math/trigonometry/associatePoint.d.ts +7 -0
- package/lib/exercises/math/trigonometry/associatePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/associatePoint.js +65 -0
- package/lib/exercises/math/trigonometry/index.d.ts +7 -0
- package/lib/exercises/math/trigonometry/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/index.js +22 -0
- package/lib/exercises/math/trigonometry/mainRemarkableValues.d.ts +8 -0
- package/lib/exercises/math/trigonometry/mainRemarkableValues.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/mainRemarkableValues.js +73 -0
- package/lib/exercises/math/trigonometry/remarkableValues.d.ts +8 -0
- package/lib/exercises/math/trigonometry/remarkableValues.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/remarkableValues.js +76 -0
- package/lib/exercises/math/trigonometry/trigonometry.d.ts +11 -0
- package/lib/exercises/math/trigonometry/trigonometry.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/trigonometry.js +120 -0
- package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.d.ts +9 -0
- package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.js +79 -0
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts +10 -0
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +93 -0
- package/lib/exercises/pc/chemicalEquations.d.ts +8 -0
- package/lib/exercises/pc/chemicalEquations.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalEquations.js +46 -0
- package/lib/exercises/pc/chemicalReactionsProduct.d.ts +9 -0
- package/lib/exercises/pc/chemicalReactionsProduct.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalReactionsProduct.js +52 -0
- package/lib/exercises/pc/delution.d.ts +9 -0
- package/lib/exercises/pc/delution.d.ts.map +1 -0
- package/lib/exercises/pc/delution.js +57 -0
- package/lib/exercises/pc/formulaFromComposition.d.ts +7 -0
- package/lib/exercises/pc/formulaFromComposition.d.ts.map +1 -0
- package/lib/exercises/pc/formulaFromComposition.js +70 -0
- package/lib/exercises/pc/index.d.ts +13 -0
- package/lib/exercises/pc/index.d.ts.map +1 -0
- package/lib/exercises/pc/index.js +28 -0
- package/lib/exercises/pc/kineticEnergy.d.ts +8 -0
- package/lib/exercises/pc/kineticEnergy.d.ts.map +1 -0
- package/lib/exercises/pc/kineticEnergy.js +51 -0
- package/lib/exercises/pc/molarQuantity.d.ts +8 -0
- package/lib/exercises/pc/molarQuantity.d.ts.map +1 -0
- package/lib/exercises/pc/molarQuantity.js +63 -0
- package/lib/exercises/pc/moleculeFormula.d.ts +7 -0
- package/lib/exercises/pc/moleculeFormula.d.ts.map +1 -0
- package/lib/exercises/pc/moleculeFormula.js +52 -0
- package/lib/exercises/pc/moleculeNomenclature.d.ts +7 -0
- package/lib/exercises/pc/moleculeNomenclature.d.ts.map +1 -0
- package/lib/exercises/pc/moleculeNomenclature.js +51 -0
- package/lib/exercises/pc/pH.d.ts +8 -0
- package/lib/exercises/pc/pH.d.ts.map +1 -0
- package/lib/exercises/pc/pH.js +54 -0
- package/lib/exercises/pc/perceivedFrequency.d.ts +8 -0
- package/lib/exercises/pc/perceivedFrequency.d.ts.map +1 -0
- package/lib/exercises/pc/perceivedFrequency.js +57 -0
- package/lib/exercises/pc/potentialEnergy.d.ts +8 -0
- package/lib/exercises/pc/potentialEnergy.d.ts.map +1 -0
- package/lib/exercises/pc/potentialEnergy.js +53 -0
- package/lib/exercises/pc/snellDescartes.d.ts +9 -0
- package/lib/exercises/pc/snellDescartes.d.ts.map +1 -0
- package/lib/exercises/pc/snellDescartes.js +110 -0
- package/lib/index.d.ts +329 -358
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -4
- package/lib/math/numbers/integer/integer.d.ts.map +1 -1
- package/lib/pc/molecularChemistry/atomSymbols.d.ts +2 -0
- package/lib/pc/molecularChemistry/atomSymbols.d.ts.map +1 -0
- package/lib/pc/molecularChemistry/atomSymbols.js +2 -0
- package/lib/pc/molecularChemistry/atome.d.ts +17 -0
- package/lib/pc/molecularChemistry/atome.d.ts.map +1 -0
- package/lib/pc/molecularChemistry/atome.js +138 -0
- package/lib/pc/molecularChemistry/molecule.d.ts +24 -0
- package/lib/pc/molecularChemistry/molecule.d.ts.map +1 -0
- package/lib/pc/molecularChemistry/molecule.js +568 -0
- package/lib/pc/molecularChemistry/reaction.d.ts +26 -0
- package/lib/pc/molecularChemistry/reaction.d.ts.map +1 -0
- package/lib/pc/molecularChemistry/reaction.js +462 -0
- package/lib/server.d.ts +0 -2
- package/lib/server.d.ts.map +1 -1
- package/lib/server.js +7 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Incoming improvements :
|
|
|
22
22
|
|
|
23
23
|
## Exercises format
|
|
24
24
|
|
|
25
|
-
Each
|
|
25
|
+
Each Exercise has a `generator` that will return distinct questions for this exercise.
|
|
26
26
|
|
|
27
27
|
The Question in itself has an `instruction`, a `startStatement` and an `answer` (which are all tex strings).
|
|
28
28
|
|
|
@@ -33,7 +33,7 @@ You can see all the exercises implemented so far [by playing with the select inp
|
|
|
33
33
|
Example with (ax+b)^2 questions :
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
|
-
import { firstIdentity } from
|
|
36
|
+
import { firstIdentity } from "exercises/calculLitteral/distributivity/firstIdentity";
|
|
37
37
|
|
|
38
38
|
console.log(firstIdentity.instruction);
|
|
39
39
|
const question = firstIdentity.generator(1);
|
|
@@ -37,11 +37,11 @@ export type VEA<TIdentifiers> = (studentAnswer: string, args: {
|
|
|
37
37
|
answer: string;
|
|
38
38
|
} & TIdentifiers) => boolean;
|
|
39
39
|
export type QuestionGenerator<TIdentifiers = {}, TOptions = {}> = (opts?: TOptions) => Question<TIdentifiers>;
|
|
40
|
-
export interface
|
|
40
|
+
export interface Exercise<TIdentifiers = {}> {
|
|
41
41
|
id: string;
|
|
42
42
|
isSingleStep: boolean;
|
|
43
43
|
label: string;
|
|
44
|
-
sections: MathSection[];
|
|
44
|
+
sections: (MathSection | PCSection)[];
|
|
45
45
|
levels: MathLevel[];
|
|
46
46
|
connector?: "=" | "\\iff" | "\\approx";
|
|
47
47
|
generator: (n: number) => Question<TIdentifiers>[];
|
|
@@ -54,7 +54,9 @@ export interface MathExercise<TIdentifiers = {}> {
|
|
|
54
54
|
} & TIdentifiers>;
|
|
55
55
|
isAnswerValid?: VEA<TIdentifiers>;
|
|
56
56
|
hasGeogebra?: boolean;
|
|
57
|
+
subject: "Mathématiques" | "Chimie" | "Physique";
|
|
57
58
|
}
|
|
58
59
|
export type MathLevel = "6ème" | "5ème" | "4ème" | "3ème" | "2nde" | "1reTech" | "1reESM" | "1reSpé" | "TermSpé" | "TermTech" | "MathExp" | "MathComp" | "CAP" | "2ndPro" | "1rePro" | "TermPro";
|
|
59
60
|
export type MathSection = "Aires" | "Arithmétique" | "Calcul littéral" | "Calculs" | "Combinatoire et dénombrement" | "Conversions" | "Dérivation" | "Droites" | "Ensembles et intervalles" | "Équations" | "Équations différentielles" | "Exponentielle" | "Fonction cube" | "Fonction inverse" | "Fonctions" | "Fonctions affines" | "Fonctions de référence" | "Fractions" | "Géométrie cartésienne" | "Géométrie euclidienne" | "Inéquations" | "Intégration" | "Limites" | "Logarithme népérien" | "Logarithme décimal" | "Matrices" | "Nombres complexes" | "Périmètres" | "Pourcentages" | "Primitives" | "Probabilités" | "Produit scalaire" | "Proportionnalité" | "Puissances" | "Racines carrées" | "Second degré" | "Statistiques" | "Suites" | "Systèmes" | "Théorème de Pythagore" | "Théorème de Thalès" | "Trigonométrie" | "Valeur absolue" | "Vecteurs";
|
|
61
|
+
export type PCSection = "Réaction chimique" | "Chimie des solutions" | "Chimie organique" | "Mécanique" | "Lumière" | "Acide / Base" | "Constitution et transformations de la matière" | "Ondes";
|
|
60
62
|
//# sourceMappingURL=exercise.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAI3C,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AACF,MAAM,WAAW,QAAQ,CAAC,YAAY,GAAG,EAAE;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,KAAK,GAAG,KAAK,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;QACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,cAAc,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACvC,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,MAAM,YAAY,CAAC,YAAY,IAAI,CACvC,CAAC,EAAE,MAAM,EACT,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,KACpC,WAAW,EAAE,CAAC;AACnB,MAAM,MAAM,GAAG,CAAC,YAAY,IAAI,CAC9B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,KACpC,OAAO,CAAC;AACb,MAAM,MAAM,iBAAiB,CAAC,YAAY,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,IAAI,CAChE,IAAI,CAAC,EAAE,QAAQ,KACZ,QAAQ,CAAC,YAAY,CAAC,CAAC;AAC5B,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAI3C,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,iBAAiB,UACrB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAUtB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,WAAW,EAAE,KAAK,MAAM,kBAE3D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AACF,MAAM,WAAW,QAAQ,CAAC,YAAY,GAAG,EAAE;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,KAAK,GAAG,KAAK,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;QACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC;IACF,cAAc,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACvC,WAAW,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,MAAM,YAAY,CAAC,YAAY,IAAI,CACvC,CAAC,EAAE,MAAM,EACT,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,KACpC,WAAW,EAAE,CAAC;AACnB,MAAM,MAAM,GAAG,CAAC,YAAY,IAAI,CAC9B,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,KACpC,OAAO,CAAC;AACb,MAAM,MAAM,iBAAiB,CAAC,YAAY,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,IAAI,CAChE,IAAI,CAAC,EAAE,QAAQ,KACZ,QAAQ,CAAC,YAAY,CAAC,CAAC;AAC5B,MAAM,WAAW,QAAQ,CAAC,YAAY,GAAG,EAAE;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,WAAW,GAAG,SAAS,CAAC,EAAE,CAAC;IACtC,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;IACnD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,YAAY,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,YAAY,CAAC,CAAC;IAClE,aAAa,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;CAClD;AAED,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,GACN,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,SAAS,GACT,UAAU,GACV,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,cAAc,GACd,iBAAiB,GACjB,SAAS,GACT,8BAA8B,GAC9B,aAAa,GACb,YAAY,GACZ,SAAS,GACT,0BAA0B,GAC1B,WAAW,GACX,2BAA2B,GAC3B,eAAe,GACf,eAAe,GACf,kBAAkB,GAClB,WAAW,GACX,mBAAmB,GACnB,wBAAwB,GACxB,WAAW,GACX,uBAAuB,GACvB,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,UAAU,GACV,uBAAuB,GACvB,oBAAoB,GACpB,eAAe,GACf,gBAAgB,GAChB,UAAU,CAAC;AAEf,MAAM,MAAM,SAAS,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,+CAA+C,GAC/C,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/calcul/addAndSub.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AA6BxB,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAoBzC,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAanD,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addAndSubExercise = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
6
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
7
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
8
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
9
|
+
const exercise_1 = require("../../exercise");
|
|
10
|
+
/**
|
|
11
|
+
* a±b±c±d
|
|
12
|
+
*/
|
|
13
|
+
const getAddAndSubQuestions = () => {
|
|
14
|
+
const nbOperations = (0, randint_1.randint)(2, 4);
|
|
15
|
+
const numbers = [];
|
|
16
|
+
for (let i = 0; i < nbOperations + 1; i++) {
|
|
17
|
+
numbers.push((0, randint_1.randint)(-15, 15, [0]));
|
|
18
|
+
}
|
|
19
|
+
const allNumbersNodes = numbers.map((nb) => new numberNode_1.NumberNode(nb));
|
|
20
|
+
let statementTree = new addNode_1.AddNode(allNumbersNodes[0], allNumbersNodes[1]);
|
|
21
|
+
for (let i = 2; i < allNumbersNodes.length; i++) {
|
|
22
|
+
statementTree = new addNode_1.AddNode(statementTree, allNumbersNodes[i]);
|
|
23
|
+
}
|
|
24
|
+
const answer = numbers.reduce((a, b) => a + b) + "";
|
|
25
|
+
const statement = statementTree.toTex();
|
|
26
|
+
const question = {
|
|
27
|
+
instruction: `Calculer : $${statement}$`,
|
|
28
|
+
startStatement: statement,
|
|
29
|
+
answer,
|
|
30
|
+
keys: [],
|
|
31
|
+
answerFormat: "tex",
|
|
32
|
+
identifiers: { numbers },
|
|
33
|
+
};
|
|
34
|
+
return question;
|
|
35
|
+
};
|
|
36
|
+
const getPropositions = (n, { answer }) => {
|
|
37
|
+
const propositions = [];
|
|
38
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
39
|
+
while (propositions.length < n) {
|
|
40
|
+
const randomOffset = (0, randint_1.randint)(-9, 10, [0]);
|
|
41
|
+
const wrongAnswer = Number(answer) + randomOffset;
|
|
42
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer.toString());
|
|
43
|
+
}
|
|
44
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
45
|
+
};
|
|
46
|
+
const isAnswerValid = (studentAns, { answer }) => {
|
|
47
|
+
const answerTree = new numberNode_1.NumberNode(Number(answer));
|
|
48
|
+
const texs = answerTree.toAllValidTexs();
|
|
49
|
+
return texs.includes(studentAns);
|
|
50
|
+
};
|
|
51
|
+
exports.addAndSubExercise = {
|
|
52
|
+
id: "addAndSub",
|
|
53
|
+
connector: "=",
|
|
54
|
+
label: "Additions et soustractions",
|
|
55
|
+
levels: ["6ème", "5ème"],
|
|
56
|
+
sections: ["Calculs"],
|
|
57
|
+
isSingleStep: true,
|
|
58
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAddAndSubQuestions, nb),
|
|
59
|
+
qcmTimer: 60,
|
|
60
|
+
freeTimer: 60,
|
|
61
|
+
getPropositions,
|
|
62
|
+
isAnswerValid,
|
|
63
|
+
subject: "Mathématiques",
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,QAAQ,EAQT,MAAM,gBAAgB,CAAC;AA4CxB,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAoBzC,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAc3D,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addAndSubWithoutRelatives = void 0;
|
|
4
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
5
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
6
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
7
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
8
|
+
const exercise_1 = require("../../exercise");
|
|
9
|
+
const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
|
|
10
|
+
/**
|
|
11
|
+
* a±b±c±d
|
|
12
|
+
*/
|
|
13
|
+
const getAddAndSubWithoutRelatives = () => {
|
|
14
|
+
let answer = -1;
|
|
15
|
+
let statementTree;
|
|
16
|
+
let numbers = [];
|
|
17
|
+
while (answer < 0) {
|
|
18
|
+
const nbOperations = (0, randint_1.randint)(2, 4);
|
|
19
|
+
numbers = [];
|
|
20
|
+
do {
|
|
21
|
+
numbers = [];
|
|
22
|
+
numbers.push((0, randint_1.randint)(1, 15));
|
|
23
|
+
let sum = numbers[0];
|
|
24
|
+
for (let i = 1; i < nbOperations + 1; i++) {
|
|
25
|
+
numbers.push((0, randint_1.randint)(-sum, 15, [0]));
|
|
26
|
+
sum += numbers[i];
|
|
27
|
+
}
|
|
28
|
+
} while (numbers.every((a) => a > 0));
|
|
29
|
+
const allNumbersNodes = numbers.map((nb) => new numberNode_1.NumberNode(nb));
|
|
30
|
+
statementTree = new addNode_1.AddNode(allNumbersNodes[0], allNumbersNodes[1]);
|
|
31
|
+
for (let i = 2; i < allNumbersNodes.length; i++) {
|
|
32
|
+
statementTree = new addNode_1.AddNode(statementTree, allNumbersNodes[i]);
|
|
33
|
+
}
|
|
34
|
+
answer = numbers.reduce((a, b) => a + b);
|
|
35
|
+
}
|
|
36
|
+
const answerTex = answer.toString();
|
|
37
|
+
const question = {
|
|
38
|
+
instruction: `Calculer : $${statementTree.toTex()}$`,
|
|
39
|
+
startStatement: statementTree.toTex(),
|
|
40
|
+
answer: answerTex,
|
|
41
|
+
keys: [],
|
|
42
|
+
answerFormat: "tex",
|
|
43
|
+
identifiers: { numbers },
|
|
44
|
+
};
|
|
45
|
+
return question;
|
|
46
|
+
};
|
|
47
|
+
const getPropositions = (n, { answer }) => {
|
|
48
|
+
const propositions = [];
|
|
49
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
50
|
+
while (propositions.length < n) {
|
|
51
|
+
const incorrectAnswer = Number(answer) + (0, randint_1.randint)(-5, 6, [0]);
|
|
52
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, incorrectAnswer.toString());
|
|
53
|
+
}
|
|
54
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
55
|
+
};
|
|
56
|
+
const isAnswerValid = (studentAns, { answer }) => {
|
|
57
|
+
const answerTree = new numberNode_1.NumberNode(Number(answer));
|
|
58
|
+
const texs = answerTree.toAllValidTexs();
|
|
59
|
+
return texs.includes(studentAns);
|
|
60
|
+
};
|
|
61
|
+
exports.addAndSubWithoutRelatives = {
|
|
62
|
+
id: "addAndSubWithoutRelatives",
|
|
63
|
+
connector: "=",
|
|
64
|
+
label: "Additions et soustractions sans les nombres relatifs",
|
|
65
|
+
levels: ["6ème", "5ème"],
|
|
66
|
+
sections: ["Calculs"],
|
|
67
|
+
isSingleStep: true,
|
|
68
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAddAndSubWithoutRelatives, nb),
|
|
69
|
+
qcmTimer: 60,
|
|
70
|
+
freeTimer: 60,
|
|
71
|
+
getPropositions,
|
|
72
|
+
isAnswerValid,
|
|
73
|
+
subject: "Mathématiques",
|
|
74
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonDivisorsList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/commonDivisorsList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA2DF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAapD,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commonDivisorsList = void 0;
|
|
4
|
+
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const dividersOf_1 = require("../../../../math/utils/arithmetic/dividersOf");
|
|
7
|
+
const gcd_1 = require("../../../../math/utils/arithmetic/gcd");
|
|
8
|
+
const isPrime_1 = require("../../../../math/utils/arithmetic/isPrime");
|
|
9
|
+
const randint_1 = require("../../../../math/utils/random/randint");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
+
const doWhile_1 = require("../../../../utils/doWhile");
|
|
12
|
+
const getCommonDivisorsListQuestion = () => {
|
|
13
|
+
const a = (0, doWhile_1.doWhile)(() => (0, randint_1.randint)(30, 150), (x) => (0, isPrime_1.isPrime)(x));
|
|
14
|
+
const b = (0, doWhile_1.doWhile)(() => (0, randint_1.randint)(30, 150), (x) => x === a || (0, gcd_1.gcd)(a, x) === 1);
|
|
15
|
+
const divisorsA = (0, dividersOf_1.dividersOf)(a);
|
|
16
|
+
const divisorsB = (0, dividersOf_1.dividersOf)(b);
|
|
17
|
+
const res = [];
|
|
18
|
+
divisorsA.forEach((n) => divisorsB.includes(n) && res.push(n));
|
|
19
|
+
res.sort((a, b) => a - b);
|
|
20
|
+
const answer = res.join(",");
|
|
21
|
+
const question = {
|
|
22
|
+
answer,
|
|
23
|
+
instruction: `Donner la liste des diviseurs communs à ${a} et ${b} (séparer les valeurs par des virgules).`,
|
|
24
|
+
keys: [],
|
|
25
|
+
answerFormat: "tex",
|
|
26
|
+
identifiers: { a, b },
|
|
27
|
+
};
|
|
28
|
+
return question;
|
|
29
|
+
};
|
|
30
|
+
const getPropositions = (n, { answer, a, b }) => {
|
|
31
|
+
const propositions = [];
|
|
32
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
33
|
+
const values = answer.split(",").map((v) => Number(v));
|
|
34
|
+
const max = Math.max(a, b);
|
|
35
|
+
while (propositions.length < n) {
|
|
36
|
+
const newValue = (0, doWhile_1.doWhile)(() => (0, randint_1.randint)(2, max), (x) => values.includes(max));
|
|
37
|
+
const copy = values.slice();
|
|
38
|
+
const willRemove = (0, coinFlip_1.coinFlip)();
|
|
39
|
+
willRemove
|
|
40
|
+
? copy.splice((0, randint_1.randint)(0, values.length), 1)
|
|
41
|
+
: copy.splice(0, 0, newValue);
|
|
42
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, willRemove ? copy.join(",") : copy.sort((a, b) => a - b).join(","));
|
|
43
|
+
}
|
|
44
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
45
|
+
};
|
|
46
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
47
|
+
let values = ans.split(",").map((v) => Number(v));
|
|
48
|
+
if (values.some((v) => isNaN(v)))
|
|
49
|
+
return false;
|
|
50
|
+
values.sort((a, b) => a - b);
|
|
51
|
+
return values.join(",") === answer;
|
|
52
|
+
};
|
|
53
|
+
exports.commonDivisorsList = {
|
|
54
|
+
id: "commonDivisorsList",
|
|
55
|
+
label: "Déterminer les diviseurs communs de deux nombres",
|
|
56
|
+
levels: ["2nde"],
|
|
57
|
+
isSingleStep: true,
|
|
58
|
+
sections: ["Arithmétique"],
|
|
59
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getCommonDivisorsListQuestion, nb),
|
|
60
|
+
qcmTimer: 60,
|
|
61
|
+
freeTimer: 60,
|
|
62
|
+
getPropositions,
|
|
63
|
+
isAnswerValid,
|
|
64
|
+
subject: "Mathématiques",
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divisorsList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/divisorsList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA6CF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAY9C,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.divisorsList = void 0;
|
|
4
|
+
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const dividersOf_1 = require("../../../../math/utils/arithmetic/dividersOf");
|
|
7
|
+
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
+
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
9
|
+
const doWhile_1 = require("../../../../utils/doWhile");
|
|
10
|
+
const getDivisorsListQuestion = () => {
|
|
11
|
+
const a = (0, randint_1.randint)(30, 90);
|
|
12
|
+
const divisors = (0, dividersOf_1.dividersOf)(a);
|
|
13
|
+
const answer = divisors.join(",");
|
|
14
|
+
const question = {
|
|
15
|
+
answer,
|
|
16
|
+
instruction: `Donner la liste des diviseurs de ${a} (séparer les valeurs par des virgules).`,
|
|
17
|
+
keys: [],
|
|
18
|
+
answerFormat: "tex",
|
|
19
|
+
identifiers: { a },
|
|
20
|
+
};
|
|
21
|
+
return question;
|
|
22
|
+
};
|
|
23
|
+
const getPropositions = (n, { answer }) => {
|
|
24
|
+
const propositions = [];
|
|
25
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
26
|
+
const values = answer.split(",").map((v) => Number(v));
|
|
27
|
+
while (propositions.length < n) {
|
|
28
|
+
const newValue = (0, doWhile_1.doWhile)(() => (0, randint_1.randint)(2, values[values.length - 1]), (x) => values.includes(x));
|
|
29
|
+
const copy = values.slice();
|
|
30
|
+
const willRemove = (0, coinFlip_1.coinFlip)();
|
|
31
|
+
willRemove
|
|
32
|
+
? copy.splice((0, randint_1.randint)(0, values.length), 1)
|
|
33
|
+
: copy.splice(0, 0, newValue);
|
|
34
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, willRemove ? copy.join(",") : copy.sort((a, b) => a - b).join(","));
|
|
35
|
+
}
|
|
36
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
37
|
+
};
|
|
38
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
39
|
+
let values = ans.split(",").map((v) => Number(v));
|
|
40
|
+
if (values.some((v) => isNaN(v)))
|
|
41
|
+
return false;
|
|
42
|
+
values.sort((a, b) => a - b);
|
|
43
|
+
return values.join(",") === answer;
|
|
44
|
+
};
|
|
45
|
+
exports.divisorsList = {
|
|
46
|
+
id: "divisorsList",
|
|
47
|
+
label: "Déterminer les diviseurs d'un nombre",
|
|
48
|
+
levels: ["2nde"],
|
|
49
|
+
isSingleStep: true,
|
|
50
|
+
sections: ["Arithmétique"],
|
|
51
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getDivisorsListQuestion, nb),
|
|
52
|
+
qcmTimer: 60,
|
|
53
|
+
freeTimer: 60,
|
|
54
|
+
getPropositions,
|
|
55
|
+
isAnswerValid,
|
|
56
|
+
subject: "Mathématiques",
|
|
57
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
dividend: number;
|
|
4
|
+
divisor: number;
|
|
5
|
+
quotient: number;
|
|
6
|
+
remainder: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const euclideanDivision: Exercise<Identifiers>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=euclideanDivision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"euclideanDivision.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/euclideanDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAsClC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAwCF,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,WAAW,CAanD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.euclideanDivision = void 0;
|
|
4
|
+
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const randint_1 = require("../../../../math/utils/random/randint");
|
|
7
|
+
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
8
|
+
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
9
|
+
const equalNode_1 = require("../../../../tree/nodes/equations/equalNode");
|
|
10
|
+
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
11
|
+
const getEuclideanDivisionQuestions = () => {
|
|
12
|
+
let dividend = (0, randint_1.randint)(5, 100);
|
|
13
|
+
let divisor = (0, randint_1.randint)(2, 11);
|
|
14
|
+
while (dividend % divisor === 0) {
|
|
15
|
+
dividend = (0, randint_1.randint)(5, 100);
|
|
16
|
+
divisor = (0, randint_1.randint)(2, 11);
|
|
17
|
+
}
|
|
18
|
+
const quotient = Math.floor(dividend / divisor);
|
|
19
|
+
const remainder = dividend % divisor;
|
|
20
|
+
const answer = new equalNode_1.EqualNode(new numberNode_1.NumberNode(dividend), new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(divisor), new numberNode_1.NumberNode(quotient)), new numberNode_1.NumberNode(remainder)));
|
|
21
|
+
const answerTex = answer.toTex();
|
|
22
|
+
const question = {
|
|
23
|
+
instruction: `Ecrire la division euclidienne de ${dividend} par ${divisor}.`,
|
|
24
|
+
answer: answerTex,
|
|
25
|
+
keys: ["equal"],
|
|
26
|
+
answerFormat: "tex",
|
|
27
|
+
identifiers: { dividend, divisor, quotient, remainder },
|
|
28
|
+
};
|
|
29
|
+
return question;
|
|
30
|
+
};
|
|
31
|
+
const isAnswerValid = (ans, { dividend, divisor, quotient, remainder }) => {
|
|
32
|
+
const tree = new equalNode_1.EqualNode(new numberNode_1.NumberNode(dividend), new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(divisor), new numberNode_1.NumberNode(quotient)), new numberNode_1.NumberNode(remainder)), { allowRawRightChildAsSolution: true });
|
|
33
|
+
const validLatexs = tree.toAllValidTexs();
|
|
34
|
+
return validLatexs.includes(ans);
|
|
35
|
+
};
|
|
36
|
+
const getPropositions = (n, { answer, dividend }) => {
|
|
37
|
+
const propositions = [];
|
|
38
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
39
|
+
while (propositions.length < n) {
|
|
40
|
+
const divisor = (0, randint_1.randint)(2, 11);
|
|
41
|
+
const quotient = Math.floor((0, randint_1.randint)(5, 100) / divisor);
|
|
42
|
+
const remainder = (0, randint_1.randint)(5, 100) % divisor;
|
|
43
|
+
const wrongAnswer = new equalNode_1.EqualNode(new numberNode_1.NumberNode(dividend), new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(divisor), new numberNode_1.NumberNode(quotient)), new numberNode_1.NumberNode(remainder)));
|
|
44
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer.toTex());
|
|
45
|
+
}
|
|
46
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
47
|
+
};
|
|
48
|
+
exports.euclideanDivision = {
|
|
49
|
+
id: "euclideanDivision",
|
|
50
|
+
connector: "=",
|
|
51
|
+
label: "Ecrire une division euclidienne",
|
|
52
|
+
levels: ["6ème", "5ème", "4ème"],
|
|
53
|
+
sections: ["Arithmétique"],
|
|
54
|
+
isSingleStep: true,
|
|
55
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEuclideanDivisionQuestions, nb),
|
|
56
|
+
qcmTimer: 60,
|
|
57
|
+
freeTimer: 60,
|
|
58
|
+
getPropositions,
|
|
59
|
+
isAnswerValid,
|
|
60
|
+
subject: "Mathématiques",
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./euclideanDivision"), exports);
|
|
18
|
+
__exportStar(require("./paritySumsAndProducts"), exports);
|
|
19
|
+
__exportStar(require("./primeNumbers"), exports);
|
|
20
|
+
__exportStar(require("./pgcdCalcul"), exports);
|
|
21
|
+
__exportStar(require("./divisorsList"), exports);
|
|
22
|
+
__exportStar(require("./commonDivisorsList"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paritySumsAndProducts.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/paritySumsAndProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAKT,MAAM,0BAA0B,CAAC;AAyElC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAgCF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAevD,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paritySumsAndProducts = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../../../math/utils/random/randint");
|
|
6
|
+
const shuffle_1 = require("../../../../utils/shuffle");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
8
|
+
const getParitySumsAndProductsQuestion = () => {
|
|
9
|
+
const type = (0, randint_1.randint)(0, 12);
|
|
10
|
+
let instruction = "";
|
|
11
|
+
let answer = "Pair";
|
|
12
|
+
switch (type) {
|
|
13
|
+
case 0:
|
|
14
|
+
instruction = "La somme de deux nombres pairs est un nombre...";
|
|
15
|
+
answer = "Pair";
|
|
16
|
+
break;
|
|
17
|
+
case 1:
|
|
18
|
+
instruction = "La somme de deux nombres impairs est un nombre...";
|
|
19
|
+
answer = "Pair";
|
|
20
|
+
break;
|
|
21
|
+
case 2:
|
|
22
|
+
instruction =
|
|
23
|
+
"La somme d'un nombre pair et d'un nombre impair un nombre...";
|
|
24
|
+
answer = "Impair";
|
|
25
|
+
break;
|
|
26
|
+
case 3:
|
|
27
|
+
instruction = "La somme de trois nombres impairs est un nombre...";
|
|
28
|
+
answer = "Impair";
|
|
29
|
+
break;
|
|
30
|
+
case 4:
|
|
31
|
+
instruction = "La somme de trois nombres consécutifs est un nombre...";
|
|
32
|
+
answer = "Parfois pair, parfois impair";
|
|
33
|
+
break;
|
|
34
|
+
case 5:
|
|
35
|
+
instruction = "La somme de quatre nombres consécutifs est un nombre...";
|
|
36
|
+
answer = "Pair";
|
|
37
|
+
break;
|
|
38
|
+
case 6:
|
|
39
|
+
instruction = "Le produit de deux nombres pairs est un nombre...";
|
|
40
|
+
answer = "Pair";
|
|
41
|
+
break;
|
|
42
|
+
case 7:
|
|
43
|
+
instruction = "Le produit de deux nombres impairs est un nombre...";
|
|
44
|
+
answer = "Impair";
|
|
45
|
+
break;
|
|
46
|
+
case 8:
|
|
47
|
+
instruction =
|
|
48
|
+
"Le produit d'un nombre pair et d'un nombre impair est un nombre...";
|
|
49
|
+
answer = "Pair";
|
|
50
|
+
break;
|
|
51
|
+
case 9:
|
|
52
|
+
instruction = "Le produit de trois nombres consécutifs est un nombre...";
|
|
53
|
+
answer = "Pair";
|
|
54
|
+
break;
|
|
55
|
+
case 10:
|
|
56
|
+
instruction = "Le produit de trois nombres impairs est un nombre...";
|
|
57
|
+
answer = "Impair";
|
|
58
|
+
break;
|
|
59
|
+
case 11:
|
|
60
|
+
instruction = "Le produit de trois nombres pairs est un nombre...";
|
|
61
|
+
answer = "Pair";
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
const question = {
|
|
65
|
+
answer: answer,
|
|
66
|
+
instruction,
|
|
67
|
+
keys: [],
|
|
68
|
+
answerFormat: "raw",
|
|
69
|
+
identifiers: { type },
|
|
70
|
+
};
|
|
71
|
+
return question;
|
|
72
|
+
};
|
|
73
|
+
const getPropositions = (n, { answer }) => {
|
|
74
|
+
const propositions = [
|
|
75
|
+
{
|
|
76
|
+
id: (0, uuid_1.v4)(),
|
|
77
|
+
statement: `Pair`,
|
|
78
|
+
isRightAnswer: answer === "Pair",
|
|
79
|
+
format: "raw",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: (0, uuid_1.v4)(),
|
|
83
|
+
statement: `Impair`,
|
|
84
|
+
isRightAnswer: answer === "Impair",
|
|
85
|
+
format: "raw",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: (0, uuid_1.v4)(),
|
|
89
|
+
statement: `Parfois pair, parfois impair`,
|
|
90
|
+
isRightAnswer: answer === "Parfois pair, parfois impair",
|
|
91
|
+
format: "raw",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: (0, uuid_1.v4)(),
|
|
95
|
+
statement: `Premier`,
|
|
96
|
+
isRightAnswer: answer === "Premier",
|
|
97
|
+
format: "raw",
|
|
98
|
+
},
|
|
99
|
+
];
|
|
100
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
101
|
+
};
|
|
102
|
+
exports.paritySumsAndProducts = {
|
|
103
|
+
id: "paritySumsAndProducts",
|
|
104
|
+
connector: "=",
|
|
105
|
+
label: "Parité de sommes et de produits",
|
|
106
|
+
levels: ["2nde"],
|
|
107
|
+
isSingleStep: true,
|
|
108
|
+
sections: ["Arithmétique"],
|
|
109
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getParitySumsAndProductsQuestion, nb, 12),
|
|
110
|
+
qcmTimer: 60,
|
|
111
|
+
freeTimer: 60,
|
|
112
|
+
answerType: "QCM",
|
|
113
|
+
maxAllowedQuestions: 12,
|
|
114
|
+
getPropositions,
|
|
115
|
+
subject: "Mathématiques",
|
|
116
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pgcdCalcul.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/calcul/arithmetics/pgcdCalcul.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqCF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,WAAW,CAa5C,CAAC"}
|