math-exercises 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/exercises/calcul/addAndSub.d.ts +4 -5
- package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSub.js +14 -8
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts +4 -5
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSubWithoutRelatives.js +15 -8
- package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts +3 -7
- package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/euclideanDivision.js +10 -11
- package/lib/exercises/calcul/arithmetics/index.d.ts +4 -0
- package/lib/exercises/calcul/arithmetics/index.d.ts.map +1 -0
- package/lib/exercises/calcul/arithmetics/index.js +19 -0
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.d.ts +3 -5
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.js +44 -42
- package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts +3 -7
- package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/primeNumbers.js +18 -17
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts +3 -9
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +17 -13
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts +3 -8
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +16 -9
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts +3 -8
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +12 -7
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts +3 -5
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +75 -29
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts +3 -5
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsDivision.js +17 -8
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts +3 -5
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsProduct.js +17 -8
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts +3 -5
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsSum.js +17 -8
- package/lib/exercises/calcul/fractions/index.d.ts +9 -0
- package/lib/exercises/calcul/fractions/index.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/index.js +24 -0
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts +5 -5
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/simplifyFraction.js +17 -7
- package/lib/exercises/calcul/index.d.ts +9 -0
- package/lib/exercises/calcul/index.d.ts.map +1 -0
- package/lib/exercises/calcul/index.js +24 -0
- package/lib/exercises/calcul/mentalCaluls/index.d.ts +5 -0
- package/lib/exercises/calcul/mentalCaluls/index.d.ts.map +1 -0
- package/lib/exercises/calcul/mentalCaluls/index.js +20 -0
- package/lib/exercises/calcul/mentalCaluls/mentalAddAndSub.d.ts +7 -0
- package/lib/exercises/calcul/mentalCaluls/mentalAddAndSub.d.ts.map +1 -0
- package/lib/exercises/calcul/mentalCaluls/mentalAddAndSub.js +84 -0
- package/lib/exercises/calcul/mentalCaluls/mentalDivisions.d.ts +10 -0
- package/lib/exercises/calcul/mentalCaluls/mentalDivisions.d.ts.map +1 -0
- package/lib/exercises/calcul/mentalCaluls/mentalDivisions.js +101 -0
- package/lib/exercises/calcul/mentalCaluls/mentalMultiplications.d.ts +7 -0
- package/lib/exercises/calcul/mentalCaluls/mentalMultiplications.d.ts.map +1 -0
- package/lib/exercises/calcul/mentalCaluls/mentalMultiplications.js +84 -0
- package/lib/exercises/calcul/mentalCaluls/mentalPercentage.d.ts +9 -0
- package/lib/exercises/calcul/mentalCaluls/mentalPercentage.d.ts.map +1 -0
- package/lib/exercises/calcul/mentalCaluls/mentalPercentage.js +140 -0
- package/lib/exercises/calcul/operations/index.d.ts +3 -0
- package/lib/exercises/calcul/operations/index.d.ts.map +1 -0
- package/lib/exercises/calcul/operations/index.js +18 -0
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts +8 -5
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPriorities.js +18 -10
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +9 -5
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +19 -11
- package/lib/exercises/calcul/proportionality/index.d.ts +2 -0
- package/lib/exercises/calcul/proportionality/index.d.ts.map +1 -0
- package/lib/exercises/calcul/proportionality/index.js +17 -0
- package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts +8 -5
- package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
- package/lib/exercises/calcul/proportionality/proportionalityTable.js +21 -17
- package/lib/exercises/calcul/rounding/index.d.ts +2 -0
- package/lib/exercises/calcul/rounding/index.d.ts.map +1 -0
- package/lib/exercises/calcul/rounding/index.js +17 -0
- package/lib/exercises/calcul/rounding/rounding.d.ts +7 -9
- package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
- package/lib/exercises/calcul/rounding/rounding.js +52 -32
- package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts +3 -5
- package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/allIdentities.js +31 -11
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts +3 -5
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +26 -10
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts +6 -7
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +18 -10
- package/lib/exercises/calculLitteral/distributivity/index.d.ts +7 -0
- package/lib/exercises/calculLitteral/distributivity/index.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/index.js +26 -0
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts +6 -7
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +19 -11
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts +3 -5
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +16 -9
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts +6 -7
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +22 -10
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts +2 -5
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +72 -26
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts +3 -5
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +19 -9
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts +3 -5
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +25 -12
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts +3 -5
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +25 -13
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts +3 -5
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +32 -15
- package/lib/exercises/calculLitteral/equation/expEquation.d.ts +5 -5
- package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/expEquation.js +38 -14
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts +3 -5
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +25 -12
- package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts +7 -5
- package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/fractionEquation.js +42 -18
- package/lib/exercises/calculLitteral/equation/index.d.ts +11 -0
- package/lib/exercises/calculLitteral/equation/index.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/index.js +26 -0
- package/lib/exercises/calculLitteral/equation/logEquation.d.ts +5 -5
- package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/logEquation.js +36 -14
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts +7 -5
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +30 -17
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts +3 -5
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +16 -9
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts +3 -5
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +17 -10
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts +3 -5
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +20 -9
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts +3 -5
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +48 -15
- package/lib/exercises/calculLitteral/factorisation/index.d.ts +5 -0
- package/lib/exercises/calculLitteral/factorisation/index.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/factorisation/index.js +20 -0
- package/lib/exercises/calculLitteral/index.d.ts +6 -0
- package/lib/exercises/calculLitteral/index.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/index.js +21 -0
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.d.ts +5 -7
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.js +32 -12
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts +4 -6
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.js +42 -12
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts +5 -6
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.js +46 -13
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts +7 -6
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.js +54 -13
- package/lib/exercises/calculLitteral/inequations/index.d.ts +5 -0
- package/lib/exercises/calculLitteral/inequations/index.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/inequations/index.js +20 -0
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts +7 -5
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +28 -13
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts +6 -5
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +71 -36
- package/lib/exercises/calculLitteral/simplifying/index.d.ts +5 -0
- package/lib/exercises/calculLitteral/simplifying/index.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/simplifying/index.js +20 -0
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts +5 -5
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +35 -19
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts +4 -5
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +50 -43
- package/lib/exercises/combinatory/anagrams.d.ts +3 -5
- package/lib/exercises/combinatory/anagrams.d.ts.map +1 -1
- package/lib/exercises/combinatory/anagrams.js +108 -104
- package/lib/exercises/combinatory/ballsCounting.d.ts +3 -5
- package/lib/exercises/combinatory/ballsCounting.d.ts.map +1 -1
- package/lib/exercises/combinatory/ballsCounting.js +38 -31
- package/lib/exercises/combinatory/diceCounting.d.ts +3 -5
- package/lib/exercises/combinatory/diceCounting.d.ts.map +1 -1
- package/lib/exercises/combinatory/diceCounting.js +43 -39
- package/lib/exercises/combinatory/index.d.ts +4 -0
- package/lib/exercises/combinatory/index.d.ts.map +1 -0
- package/lib/exercises/combinatory/index.js +19 -0
- package/lib/exercises/complex/addComplex.d.ts +3 -5
- package/lib/exercises/complex/addComplex.d.ts.map +1 -1
- package/lib/exercises/complex/addComplex.js +27 -14
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts +0 -9
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/complex/argumentFromAlgebraicComplex.js +51 -36
- package/lib/exercises/complex/conjugateComplex.ts.d.ts +3 -5
- package/lib/exercises/complex/conjugateComplex.ts.d.ts.map +1 -1
- package/lib/exercises/complex/conjugateComplex.ts.js +16 -8
- package/lib/exercises/complex/conjugateDivideComplex.d.ts +5 -5
- package/lib/exercises/complex/conjugateDivideComplex.d.ts.map +1 -1
- package/lib/exercises/complex/conjugateDivideComplex.js +19 -7
- package/lib/exercises/complex/conjugateMultiplyComplex.d.ts +3 -5
- package/lib/exercises/complex/conjugateMultiplyComplex.d.ts.map +1 -1
- package/lib/exercises/complex/conjugateMultiplyComplex.js +18 -8
- package/lib/exercises/complex/divideComplex.d.ts +5 -5
- package/lib/exercises/complex/divideComplex.d.ts.map +1 -1
- package/lib/exercises/complex/divideComplex.js +22 -9
- package/lib/exercises/complex/index.d.ts +11 -0
- package/lib/exercises/complex/index.d.ts.map +1 -0
- package/lib/exercises/complex/index.js +27 -0
- package/lib/exercises/complex/inverseComplex.d.ts +3 -5
- package/lib/exercises/complex/inverseComplex.d.ts.map +1 -1
- package/lib/exercises/complex/inverseComplex.js +16 -8
- package/lib/exercises/complex/linearCombinaisonComplex.d.ts +7 -5
- package/lib/exercises/complex/linearCombinaisonComplex.d.ts.map +1 -1
- package/lib/exercises/complex/linearCombinaisonComplex.js +21 -13
- package/lib/exercises/complex/moduloFromAlgebraicComplex.d.ts +2 -4
- package/lib/exercises/complex/moduloFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/complex/moduloFromAlgebraicComplex.js +13 -1
- package/lib/exercises/complex/mutiplyComplex.d.ts +3 -5
- package/lib/exercises/complex/mutiplyComplex.d.ts.map +1 -1
- package/lib/exercises/complex/mutiplyComplex.js +20 -9
- package/lib/exercises/complex/reAndIm.d.ts +3 -5
- package/lib/exercises/complex/reAndIm.d.ts.map +1 -1
- package/lib/exercises/complex/reAndIm.js +16 -12
- package/lib/exercises/conversion/aeraConversion.d.ts +3 -5
- package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/aeraConversion.js +24 -11
- package/lib/exercises/conversion/capacityConversion.d.ts +3 -5
- package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/capacityConversion.js +24 -11
- package/lib/exercises/conversion/index.d.ts +7 -0
- package/lib/exercises/conversion/index.d.ts.map +1 -0
- package/lib/exercises/conversion/index.js +22 -0
- package/lib/exercises/conversion/lengthConversion.d.ts +3 -5
- package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/lengthConversion.js +24 -11
- package/lib/exercises/conversion/massConversion.d.ts +3 -5
- package/lib/exercises/conversion/massConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/massConversion.js +24 -11
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts +7 -5
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/volumeCapacityConversion.js +28 -16
- package/lib/exercises/conversion/volumeConversion.d.ts +3 -5
- package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/volumeConversion.js +25 -12
- package/lib/exercises/derivation/derivative/constanteDerivative.d.ts +6 -7
- package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/constanteDerivative.js +18 -13
- package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts +3 -5
- package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/expDerivativeOne.js +20 -13
- package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts +3 -5
- package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/expDerivativeThree.js +21 -15
- package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts +3 -5
- package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/expDerivativeTwo.js +19 -14
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts +6 -7
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +18 -13
- package/lib/exercises/derivation/derivative/index.d.ts +18 -0
- package/lib/exercises/derivation/derivative/index.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/index.js +38 -0
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts +3 -5
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +19 -8
- package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts +3 -5
- package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/lnDerivativeOne.js +27 -14
- package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts +3 -5
- package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/lnDerivativeThree.js +37 -15
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts +3 -5
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +21 -16
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts +3 -5
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +34 -14
- package/lib/exercises/derivation/derivative/productDerivative.d.ts +3 -5
- package/lib/exercises/derivation/derivative/productDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/productDerivative.js +21 -7
- package/lib/exercises/derivation/derivative/quotientDerivative.d.ts +3 -6
- package/lib/exercises/derivation/derivative/quotientDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/quotientDerivative.js +50 -14
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts +3 -5
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +26 -10
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts +6 -7
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +28 -9
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts +6 -7
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +35 -10
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts +5 -5
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +45 -12
- package/lib/exercises/derivation/derivative/usualderivative.d.ts +3 -5
- package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/usualderivative.js +56 -15
- package/lib/exercises/derivation/derivativeNumberCalcul.d.ts +5 -5
- package/lib/exercises/derivation/derivativeNumberCalcul.d.ts.map +1 -1
- package/lib/exercises/derivation/derivativeNumberCalcul.js +16 -10
- package/lib/exercises/derivation/derivativeNumberReading.d.ts +3 -5
- package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
- package/lib/exercises/derivation/derivativeNumberReading.js +43 -33
- package/lib/exercises/derivation/index.d.ts +4 -0
- package/lib/exercises/derivation/index.d.ts.map +1 -0
- package/lib/exercises/derivation/index.js +19 -0
- package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts +4 -5
- package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts.map +1 -1
- package/lib/exercises/equaDiff/equaDiffGeneralForme.js +23 -16
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts +5 -5
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -1
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +31 -28
- package/lib/exercises/equaDiff/index.d.ts +3 -0
- package/lib/exercises/equaDiff/index.d.ts.map +1 -0
- package/lib/exercises/equaDiff/index.js +18 -0
- package/lib/exercises/exercise.d.ts +26 -21
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercise.js +3 -3
- package/lib/exercises/functions/absolute/absoluteValueEquations.d.ts +3 -5
- package/lib/exercises/functions/absolute/absoluteValueEquations.d.ts.map +1 -1
- package/lib/exercises/functions/absolute/absoluteValueEquations.js +27 -9
- package/lib/exercises/functions/absolute/absoluteValueInequations.d.ts +4 -5
- package/lib/exercises/functions/absolute/absoluteValueInequations.d.ts.map +1 -1
- package/lib/exercises/functions/absolute/absoluteValueInequations.js +31 -9
- package/lib/exercises/functions/absolute/index.d.ts +3 -0
- package/lib/exercises/functions/absolute/index.d.ts.map +1 -0
- package/lib/exercises/functions/absolute/index.js +18 -0
- package/lib/exercises/functions/affines/index.d.ts +5 -0
- package/lib/exercises/functions/affines/index.d.ts.map +1 -0
- package/lib/exercises/functions/affines/index.js +20 -0
- package/lib/exercises/functions/affines/leadingCoefficient.d.ts +3 -5
- package/lib/exercises/functions/affines/leadingCoefficient.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficient.js +34 -35
- package/lib/exercises/functions/affines/leadingCoefficientCalculV1.d.ts +3 -5
- package/lib/exercises/functions/affines/leadingCoefficientCalculV1.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficientCalculV1.js +19 -11
- package/lib/exercises/functions/affines/leadingCoefficientCalculV2.d.ts +3 -5
- package/lib/exercises/functions/affines/leadingCoefficientCalculV2.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficientCalculV2.js +18 -10
- package/lib/exercises/functions/affines/signFunction.d.ts +6 -5
- package/lib/exercises/functions/affines/signFunction.d.ts.map +1 -1
- package/lib/exercises/functions/affines/signFunction.js +44 -29
- package/lib/exercises/functions/basics/imageFunction.d.ts +7 -5
- package/lib/exercises/functions/basics/imageFunction.d.ts.map +1 -1
- package/lib/exercises/functions/basics/imageFunction.js +24 -9
- package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts +7 -5
- package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/functions/basics/imageFunctionGeogebra.js +29 -12
- package/lib/exercises/functions/basics/index.d.ts +5 -0
- package/lib/exercises/functions/basics/index.d.ts.map +1 -0
- package/lib/exercises/functions/basics/index.js +20 -0
- package/lib/exercises/functions/basics/inverseImageFunction.d.ts +5 -5
- package/lib/exercises/functions/basics/inverseImageFunction.d.ts.map +1 -1
- package/lib/exercises/functions/basics/inverseImageFunction.js +18 -14
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts +3 -5
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.js +34 -13
- package/lib/exercises/functions/cube/cubicEquation.d.ts +3 -5
- package/lib/exercises/functions/cube/cubicEquation.d.ts.map +1 -1
- package/lib/exercises/functions/cube/cubicEquation.js +21 -9
- package/lib/exercises/functions/cube/index.d.ts +2 -0
- package/lib/exercises/functions/cube/index.d.ts.map +1 -0
- package/lib/exercises/functions/cube/index.js +17 -0
- package/lib/exercises/functions/index.d.ts +7 -0
- package/lib/exercises/functions/index.d.ts.map +1 -0
- package/lib/exercises/functions/index.js +22 -0
- package/lib/exercises/functions/rationalFraction/index.d.ts +2 -0
- package/lib/exercises/functions/rationalFraction/index.d.ts.map +1 -0
- package/lib/exercises/functions/rationalFraction/index.js +17 -0
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.d.ts +2 -4
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -1
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.js +10 -2
- package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.d.ts +5 -5
- package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.js +17 -11
- package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.d.ts +3 -5
- package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.js +22 -14
- package/lib/exercises/functions/trinoms/canonicalFromDevForm.d.ts +5 -5
- package/lib/exercises/functions/trinoms/canonicalFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/canonicalFromDevForm.js +18 -9
- package/lib/exercises/functions/trinoms/deltaTrinom.d.ts +3 -5
- package/lib/exercises/functions/trinoms/deltaTrinom.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/deltaTrinom.js +18 -11
- package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.d.ts +3 -5
- package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.js +21 -12
- package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.d.ts +5 -5
- package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.js +14 -12
- package/lib/exercises/functions/trinoms/index.d.ts +11 -0
- package/lib/exercises/functions/trinoms/index.d.ts.map +1 -0
- package/lib/exercises/functions/trinoms/index.js +26 -0
- package/lib/exercises/functions/trinoms/niceRootsFromDevForm.d.ts +6 -5
- package/lib/exercises/functions/trinoms/niceRootsFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/niceRootsFromDevForm.js +22 -10
- package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts +6 -5
- package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/rootsFromDevForm.js +22 -10
- package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts +3 -5
- package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.js +26 -13
- package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.d.ts +5 -5
- package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.js +16 -12
- package/lib/exercises/geometry/areas/circleArea.d.ts +9 -0
- package/lib/exercises/geometry/areas/circleArea.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/circleArea.js +52 -0
- package/lib/exercises/geometry/areas/index.d.ts +7 -0
- package/lib/exercises/geometry/areas/index.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/index.js +22 -0
- package/lib/exercises/geometry/areas/rectangleArea.d.ts +8 -0
- package/lib/exercises/geometry/areas/rectangleArea.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/rectangleArea.js +46 -0
- package/lib/exercises/geometry/areas/rightTriangleArea.d.ts +7 -0
- package/lib/exercises/geometry/areas/rightTriangleArea.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/rightTriangleArea.js +75 -0
- package/lib/exercises/geometry/areas/squareArea.d.ts +7 -0
- package/lib/exercises/geometry/areas/squareArea.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/squareArea.js +46 -0
- package/lib/exercises/geometry/areas/triangleArea.d.ts +5 -0
- package/lib/exercises/geometry/areas/triangleArea.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/triangleArea.js +97 -0
- package/lib/exercises/geometry/areas/triangleAreaV2.d.ts +7 -0
- package/lib/exercises/geometry/areas/triangleAreaV2.d.ts.map +1 -0
- package/lib/exercises/geometry/areas/triangleAreaV2.js +71 -0
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts +3 -5
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +54 -24
- package/lib/exercises/geometry/cartesian/index.d.ts +3 -0
- package/lib/exercises/geometry/cartesian/index.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/index.js +18 -0
- package/lib/exercises/geometry/cartesian/midpoint.d.ts +5 -5
- package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/midpoint.js +29 -14
- package/lib/exercises/geometry/index.d.ts +7 -0
- package/lib/exercises/geometry/index.d.ts.map +1 -0
- package/lib/exercises/geometry/index.js +22 -0
- package/lib/exercises/geometry/perimeters/circleCircumference.d.ts +9 -0
- package/lib/exercises/geometry/perimeters/circleCircumference.d.ts.map +1 -0
- package/lib/exercises/geometry/perimeters/circleCircumference.js +52 -0
- package/lib/exercises/geometry/perimeters/index.d.ts +5 -0
- package/lib/exercises/geometry/perimeters/index.d.ts.map +1 -0
- package/lib/exercises/geometry/perimeters/index.js +20 -0
- package/lib/exercises/geometry/perimeters/rectanglePerimeter.d.ts +8 -0
- package/lib/exercises/geometry/perimeters/rectanglePerimeter.d.ts.map +1 -0
- package/lib/exercises/geometry/perimeters/rectanglePerimeter.js +46 -0
- package/lib/exercises/geometry/perimeters/squarePerimeter.d.ts +7 -0
- package/lib/exercises/geometry/perimeters/squarePerimeter.d.ts.map +1 -0
- package/lib/exercises/geometry/perimeters/squarePerimeter.js +46 -0
- package/lib/exercises/geometry/perimeters/trianglePerimeter.d.ts +7 -0
- package/lib/exercises/geometry/perimeters/trianglePerimeter.d.ts.map +1 -0
- package/lib/exercises/geometry/perimeters/trianglePerimeter.js +46 -0
- package/lib/exercises/geometry/pythagore/index.d.ts +3 -0
- package/lib/exercises/geometry/pythagore/index.d.ts.map +1 -0
- package/lib/exercises/geometry/pythagore/index.js +18 -0
- package/lib/exercises/geometry/pythagore/pythagore.d.ts +9 -0
- package/lib/exercises/geometry/pythagore/pythagore.d.ts.map +1 -0
- package/lib/exercises/geometry/pythagore/pythagore.js +65 -0
- package/lib/exercises/geometry/pythagore/pythagoreCalcul.d.ts +8 -0
- package/lib/exercises/geometry/pythagore/pythagoreCalcul.d.ts.map +1 -0
- package/lib/exercises/geometry/pythagore/pythagoreCalcul.js +102 -0
- package/lib/exercises/geometry/thales/index.d.ts +3 -0
- package/lib/exercises/geometry/thales/index.d.ts.map +1 -0
- package/lib/exercises/geometry/thales/index.js +18 -0
- package/lib/exercises/geometry/thales/thales.d.ts +7 -0
- package/lib/exercises/geometry/thales/thales.d.ts.map +1 -0
- package/lib/exercises/geometry/thales/thales.js +130 -0
- package/lib/exercises/geometry/thales/thalesCalcul.d.ts +10 -0
- package/lib/exercises/geometry/thales/thalesCalcul.d.ts.map +1 -0
- package/lib/exercises/geometry/thales/thalesCalcul.js +145 -0
- package/lib/exercises/geometry/vectors/chasles.d.ts +4 -5
- package/lib/exercises/geometry/vectors/chasles.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/chasles.js +23 -16
- package/lib/exercises/geometry/vectors/coordinatesReading.d.ts +3 -5
- package/lib/exercises/geometry/vectors/coordinatesReading.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/coordinatesReading.js +12 -8
- package/lib/exercises/geometry/vectors/determinant.d.ts +3 -5
- package/lib/exercises/geometry/vectors/determinant.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/determinant.js +19 -12
- package/lib/exercises/geometry/vectors/index.d.ts +6 -0
- package/lib/exercises/geometry/vectors/index.d.ts.map +1 -0
- package/lib/exercises/geometry/vectors/index.js +21 -0
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts +5 -5
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +16 -9
- package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts +3 -5
- package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.js +12 -8
- package/lib/exercises/index.d.ts +19 -0
- package/lib/exercises/index.d.ts.map +1 -0
- package/lib/exercises/index.js +34 -0
- package/lib/exercises/limits/index.d.ts +10 -0
- package/lib/exercises/limits/index.d.ts.map +1 -0
- package/lib/exercises/limits/index.js +25 -0
- package/lib/exercises/limits/polynomLimit.d.ts +4 -5
- package/lib/exercises/limits/polynomLimit.d.ts.map +1 -1
- package/lib/exercises/limits/polynomLimit.js +20 -14
- package/lib/exercises/limits/polynomLimitNoFI.d.ts +4 -5
- package/lib/exercises/limits/polynomLimitNoFI.d.ts.map +1 -1
- package/lib/exercises/limits/polynomLimitNoFI.js +20 -14
- package/lib/exercises/limits/rationalFracForbiddenValueLimit.d.ts +6 -6
- package/lib/exercises/limits/rationalFracForbiddenValueLimit.d.ts.map +1 -1
- package/lib/exercises/limits/rationalFracForbiddenValueLimit.js +32 -20
- package/lib/exercises/limits/rationalFracLimit.d.ts +6 -6
- package/lib/exercises/limits/rationalFracLimit.d.ts.map +1 -1
- package/lib/exercises/limits/rationalFracLimit.js +52 -15
- package/lib/exercises/limits/sequenceGeometricLimit.d.ts +3 -5
- package/lib/exercises/limits/sequenceGeometricLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequenceGeometricLimit.js +23 -15
- package/lib/exercises/limits/sequencePolynomLimit.d.ts +3 -5
- package/lib/exercises/limits/sequencePolynomLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequencePolynomLimit.js +21 -15
- package/lib/exercises/limits/sequencePolynomNoFILimit.d.ts +3 -5
- package/lib/exercises/limits/sequencePolynomNoFILimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequencePolynomNoFILimit.js +21 -15
- package/lib/exercises/limits/sequencePolynomProductLimit.d.ts +5 -6
- package/lib/exercises/limits/sequencePolynomProductLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequencePolynomProductLimit.js +35 -19
- package/lib/exercises/limits/sequenceRationalFracLimit.d.ts +5 -6
- package/lib/exercises/limits/sequenceRationalFracLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequenceRationalFracLimit.js +55 -18
- package/lib/exercises/percent/applyPercent.d.ts +6 -5
- package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/percent/applyPercent.js +32 -14
- package/lib/exercises/percent/averageEvolutionRate.d.ts +5 -5
- package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/percent/averageEvolutionRate.js +17 -11
- package/lib/exercises/percent/evolutionToCM.d.ts +3 -5
- package/lib/exercises/percent/evolutionToCM.d.ts.map +1 -1
- package/lib/exercises/percent/evolutionToCM.js +24 -15
- package/lib/exercises/percent/globalPercent.d.ts +4 -5
- package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
- package/lib/exercises/percent/globalPercent.js +23 -13
- package/lib/exercises/percent/index.d.ts +6 -0
- package/lib/exercises/percent/index.d.ts.map +1 -0
- package/lib/exercises/percent/index.js +21 -0
- package/lib/exercises/percent/reciprocalPercentage.d.ts +5 -5
- package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
- package/lib/exercises/percent/reciprocalPercentage.js +25 -14
- package/lib/exercises/powers/calculateNegativePower.d.ts +3 -5
- package/lib/exercises/powers/calculateNegativePower.d.ts.map +1 -1
- package/lib/exercises/powers/calculateNegativePower.js +38 -22
- package/lib/exercises/powers/calculatePower.d.ts +3 -5
- package/lib/exercises/powers/calculatePower.d.ts.map +1 -1
- package/lib/exercises/powers/calculatePower.js +26 -22
- package/lib/exercises/powers/decimalToScientific.d.ts +3 -5
- package/lib/exercises/powers/decimalToScientific.d.ts.map +1 -1
- package/lib/exercises/powers/decimalToScientific.js +25 -18
- package/lib/exercises/powers/index.d.ts +10 -0
- package/lib/exercises/powers/index.d.ts.map +1 -0
- package/lib/exercises/powers/index.js +25 -0
- package/lib/exercises/powers/powerDefinition.d.ts +3 -5
- package/lib/exercises/powers/powerDefinition.d.ts.map +1 -1
- package/lib/exercises/powers/powerDefinition.js +15 -10
- package/lib/exercises/powers/powersDivision.d.ts +4 -6
- package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
- package/lib/exercises/powers/powersDivision.js +36 -14
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts +3 -5
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/powersOfTenToDecimal.js +26 -20
- package/lib/exercises/powers/powersPower.d.ts +4 -6
- package/lib/exercises/powers/powersPower.d.ts.map +1 -1
- package/lib/exercises/powers/powersPower.js +41 -18
- package/lib/exercises/powers/powersProduct.d.ts +4 -6
- package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
- package/lib/exercises/powers/powersProduct.js +36 -13
- package/lib/exercises/powers/scientificToDecimal.d.ts +3 -5
- package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/scientificToDecimal.js +24 -18
- package/lib/exercises/primitive/constantPrimitive.d.ts +10 -0
- package/lib/exercises/primitive/constantPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/constantPrimitive.js +56 -0
- package/lib/exercises/primitive/expUPrimitive.d.ts +10 -0
- package/lib/exercises/primitive/expUPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/expUPrimitive.js +76 -0
- package/lib/exercises/primitive/exponentialPrimitive.d.ts +10 -0
- package/lib/exercises/primitive/exponentialPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/exponentialPrimitive.js +72 -0
- package/lib/exercises/primitive/index.d.ts +8 -0
- package/lib/exercises/primitive/index.d.ts.map +1 -0
- package/lib/exercises/primitive/index.js +31 -0
- package/lib/exercises/primitive/logarithmePrimitive.d.ts +9 -0
- package/lib/exercises/primitive/logarithmePrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/logarithmePrimitive.js +79 -0
- package/lib/exercises/primitive/polynomialPrimitive.d.ts +10 -0
- package/lib/exercises/primitive/polynomialPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/polynomialPrimitive.js +60 -0
- package/lib/exercises/primitive/sinCosPrimitive.d.ts +11 -0
- package/lib/exercises/primitive/sinCosPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/sinCosPrimitive.js +79 -0
- package/lib/exercises/primitive/sinUCosUPrimitive.d.ts +11 -0
- package/lib/exercises/primitive/sinUCosUPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitive/sinUCosUPrimitive.js +85 -0
- package/lib/exercises/primitive/usualPrimitives.d.ts +11 -0
- package/lib/exercises/primitive/usualPrimitives.d.ts.map +1 -0
- package/lib/exercises/primitive/usualPrimitives.js +108 -0
- package/lib/exercises/probaStat/ballsBasicProbas.d.ts +5 -7
- package/lib/exercises/probaStat/ballsBasicProbas.d.ts.map +1 -1
- package/lib/exercises/probaStat/ballsBasicProbas.js +24 -12
- package/lib/exercises/probaStat/cardBasicProbas.d.ts +3 -5
- package/lib/exercises/probaStat/cardBasicProbas.d.ts.map +1 -1
- package/lib/exercises/probaStat/cardBasicProbas.js +49 -28
- package/lib/exercises/probaStat/conditionalProbability.d.ts +7 -5
- package/lib/exercises/probaStat/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/probaStat/conditionalProbability.js +24 -19
- package/lib/exercises/probaStat/diceBasicProbas.d.ts +3 -5
- package/lib/exercises/probaStat/diceBasicProbas.d.ts.map +1 -1
- package/lib/exercises/probaStat/diceBasicProbas.js +27 -11
- package/lib/exercises/probaStat/index.d.ts +8 -0
- package/lib/exercises/probaStat/index.d.ts.map +1 -0
- package/lib/exercises/probaStat/index.js +23 -0
- package/lib/exercises/probaStat/probabilityTree.d.ts +3 -7
- package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -1
- package/lib/exercises/probaStat/probabilityTree.js +62 -51
- package/lib/exercises/probaStat/stats1var/averageWithTable.d.ts +8 -0
- package/lib/exercises/probaStat/stats1var/averageWithTable.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/averageWithTable.js +68 -0
- package/lib/exercises/probaStat/stats1var/index.d.ts +7 -0
- package/lib/exercises/probaStat/stats1var/index.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/index.js +22 -0
- package/lib/exercises/probaStat/stats1var/marginalAndConditionalFrequency.d.ts +11 -0
- package/lib/exercises/probaStat/stats1var/marginalAndConditionalFrequency.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/marginalAndConditionalFrequency.js +129 -0
- package/lib/exercises/probaStat/stats1var/median.d.ts +7 -0
- package/lib/exercises/probaStat/stats1var/median.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/median.js +71 -0
- package/lib/exercises/probaStat/stats1var/medianList.d.ts +7 -0
- package/lib/exercises/probaStat/stats1var/medianList.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/medianList.js +56 -0
- package/lib/exercises/probaStat/stats1var/quartiles.d.ts +9 -0
- package/lib/exercises/probaStat/stats1var/quartiles.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/quartiles.js +84 -0
- package/lib/exercises/probaStat/stats1var/quartilesList.d.ts +8 -0
- package/lib/exercises/probaStat/stats1var/quartilesList.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats1var/quartilesList.js +72 -0
- package/lib/exercises/probaStat/stats2var/averagePoint.d.ts +5 -5
- package/lib/exercises/probaStat/stats2var/averagePoint.d.ts.map +1 -1
- package/lib/exercises/probaStat/stats2var/averagePoint.js +29 -11
- package/lib/exercises/probaStat/stats2var/index.d.ts +2 -0
- package/lib/exercises/probaStat/stats2var/index.d.ts.map +1 -0
- package/lib/exercises/probaStat/stats2var/index.js +17 -0
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts +3 -5
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +12 -8
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts +3 -5
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +22 -10
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts +6 -5
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +14 -10
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts +6 -5
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +12 -8
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts +6 -5
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +12 -8
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts +3 -5
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +14 -10
- package/lib/exercises/sequences/arithmetic/firstIntegersSum.d.ts +3 -5
- package/lib/exercises/sequences/arithmetic/firstIntegersSum.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/firstIntegersSum.js +12 -8
- package/lib/exercises/sequences/arithmetic/index.d.ts +8 -0
- package/lib/exercises/sequences/arithmetic/index.d.ts.map +1 -0
- package/lib/exercises/sequences/arithmetic/index.js +23 -0
- package/lib/exercises/sequences/explicitFormulaUsage.d.ts +3 -5
- package/lib/exercises/sequences/explicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/explicitFormulaUsage.js +15 -11
- package/lib/exercises/sequences/genericSequenceVariations.d.ts +4 -6
- package/lib/exercises/sequences/genericSequenceVariations.d.ts.map +1 -1
- package/lib/exercises/sequences/genericSequenceVariations.js +22 -18
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts +3 -5
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +13 -10
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts +3 -5
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +24 -13
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts +5 -6
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindReason.js +16 -11
- package/lib/exercises/sequences/geometric/geometricFirstTermsSum.d.ts +3 -5
- package/lib/exercises/sequences/geometric/geometricFirstTermsSum.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFirstTermsSum.js +23 -11
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts +4 -5
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricReasonUsage.js +12 -8
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts +4 -5
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +13 -9
- package/lib/exercises/sequences/geometric/index.d.ts +7 -0
- package/lib/exercises/sequences/geometric/index.d.ts.map +1 -0
- package/lib/exercises/sequences/geometric/index.js +22 -0
- package/lib/exercises/sequences/index.d.ts +6 -0
- package/lib/exercises/sequences/index.d.ts.map +1 -0
- package/lib/exercises/sequences/index.js +21 -0
- package/lib/exercises/sequences/recurrenceFormulaUsage.d.ts +3 -5
- package/lib/exercises/sequences/recurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/recurrenceFormulaUsage.js +15 -11
- package/lib/exercises/sets/index.d.ts +3 -0
- package/lib/exercises/sets/index.d.ts.map +1 -0
- package/lib/exercises/sets/index.js +18 -0
- package/lib/exercises/sets/intervals/index.d.ts +4 -0
- package/lib/exercises/sets/intervals/index.d.ts.map +1 -0
- package/lib/exercises/sets/intervals/index.js +19 -0
- package/lib/exercises/sets/intervals/inequalityToInterval.d.ts +3 -5
- package/lib/exercises/sets/intervals/inequalityToInterval.d.ts.map +1 -1
- package/lib/exercises/sets/intervals/inequalityToInterval.js +92 -45
- package/lib/exercises/sets/intervals/intervalsIntersection.d.ts +3 -5
- package/lib/exercises/sets/intervals/intervalsIntersection.d.ts.map +1 -1
- package/lib/exercises/sets/intervals/intervalsIntersection.js +19 -7
- package/lib/exercises/sets/intervals/intervalsUnion.d.ts +3 -5
- package/lib/exercises/sets/intervals/intervalsUnion.d.ts.map +1 -1
- package/lib/exercises/sets/intervals/intervalsUnion.js +11 -7
- package/lib/exercises/sets/setBelonging.d.ts +5 -5
- package/lib/exercises/sets/setBelonging.d.ts.map +1 -1
- package/lib/exercises/sets/setBelonging.js +32 -19
- package/lib/exercises/squareRoots/index.d.ts +3 -0
- package/lib/exercises/squareRoots/index.d.ts.map +1 -0
- package/lib/exercises/squareRoots/index.js +18 -0
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts +4 -5
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
- package/lib/exercises/squareRoots/simpifySquareRoot.js +13 -7
- package/lib/exercises/squareRoots/squareRootEquation.d.ts +3 -5
- package/lib/exercises/squareRoots/squareRootEquation.d.ts.map +1 -1
- package/lib/exercises/squareRoots/squareRootEquation.js +20 -10
- package/lib/exercises/trigonometry/index.d.ts +6 -0
- package/lib/exercises/trigonometry/index.d.ts.map +1 -0
- package/lib/exercises/trigonometry/index.js +21 -0
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts +5 -5
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/mainRemarkableValues.js +33 -20
- package/lib/exercises/trigonometry/remarkableValues.d.ts +5 -5
- package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/remarkableValues.js +29 -18
- package/lib/exercises/trigonometry/trigonometry.d.ts +11 -0
- package/lib/exercises/trigonometry/trigonometry.d.ts.map +1 -0
- package/lib/exercises/trigonometry/trigonometry.js +114 -0
- package/lib/exercises/trigonometry/trigonometryAngleCalcul.d.ts +9 -0
- package/lib/exercises/trigonometry/trigonometryAngleCalcul.d.ts.map +1 -0
- package/lib/exercises/trigonometry/trigonometryAngleCalcul.js +73 -0
- package/lib/exercises/trigonometry/trigonometrySideCalcul.d.ts +10 -0
- package/lib/exercises/trigonometry/trigonometrySideCalcul.d.ts.map +1 -0
- package/lib/exercises/trigonometry/trigonometrySideCalcul.js +85 -0
- package/lib/exercises/utils/getDistinctQuestions.d.ts +2 -2
- package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
- package/lib/exercises/utils/getDistinctQuestions.js +2 -3
- package/lib/exercises/utils/keys/equationKeys.d.ts +3 -0
- package/lib/exercises/utils/keys/equationKeys.d.ts.map +1 -0
- package/lib/exercises/utils/keys/equationKeys.js +12 -0
- package/lib/exercises/utils/keys/inequationKeys.d.ts +3 -0
- package/lib/exercises/utils/keys/inequationKeys.d.ts.map +1 -0
- package/lib/exercises/utils/keys/inequationKeys.js +17 -0
- package/lib/index.d.ts +692 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +51 -23
- package/lib/math/complex/complex.d.ts +4 -3
- package/lib/math/complex/complex.d.ts.map +1 -1
- package/lib/math/complex/complex.js +15 -17
- package/lib/math/geometry/point.d.ts +3 -4
- package/lib/math/geometry/point.d.ts.map +1 -1
- package/lib/math/geometry/point.js +23 -22
- package/lib/math/geometry/vector.d.ts +2 -2
- package/lib/math/geometry/vector.d.ts.map +1 -1
- package/lib/math/geometry/vector.js +15 -5
- package/lib/math/numbers/decimals/decimal.d.ts +2 -2
- package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
- package/lib/math/numbers/decimals/decimal.js +24 -21
- package/lib/math/numbers/integer/integer.d.ts +6 -2
- package/lib/math/numbers/integer/integer.d.ts.map +1 -1
- package/lib/math/numbers/integer/integer.js +34 -7
- package/lib/math/numbers/integer/power.d.ts +2 -2
- package/lib/math/numbers/integer/power.d.ts.map +1 -1
- package/lib/math/numbers/integer/power.js +6 -6
- package/lib/math/numbers/integer/primes.d.ts.map +1 -1
- package/lib/math/numbers/integer/primes.js +4 -1
- package/lib/math/numbers/nombre.d.ts +3 -8
- package/lib/math/numbers/nombre.d.ts.map +1 -1
- package/lib/math/numbers/nombre.js +6 -1
- package/lib/math/numbers/rationals/rational.d.ts +7 -10
- package/lib/math/numbers/rationals/rational.d.ts.map +1 -1
- package/lib/math/numbers/rationals/rational.js +16 -10
- package/lib/math/numbers/reals/extendedRingElement.d.ts +3 -1
- package/lib/math/numbers/reals/extendedRingElement.d.ts.map +1 -1
- package/lib/math/numbers/reals/real.d.ts +2 -1
- package/lib/math/numbers/reals/real.d.ts.map +1 -1
- package/lib/math/numbers/reals/real.js +11 -1
- package/lib/math/polynomials/polynomial.d.ts +9 -6
- package/lib/math/polynomials/polynomial.d.ts.map +1 -1
- package/lib/math/polynomials/polynomial.js +102 -35
- package/lib/math/polynomials/rationalFrac.d.ts +12 -0
- package/lib/math/polynomials/rationalFrac.d.ts.map +1 -0
- package/lib/math/polynomials/rationalFrac.js +50 -0
- package/lib/math/polynomials/trinom.d.ts +6 -5
- package/lib/math/polynomials/trinom.d.ts.map +1 -1
- package/lib/math/polynomials/trinom.js +57 -22
- package/lib/math/sets/intervals/intervals.d.ts +11 -16
- package/lib/math/sets/intervals/intervals.d.ts.map +1 -1
- package/lib/math/sets/intervals/intervals.js +77 -63
- package/lib/math/trigonometry/remarkableValue.d.ts +7 -2
- package/lib/math/trigonometry/remarkableValue.d.ts.map +1 -1
- package/lib/math/trigonometry/remarkableValue.js +16 -5
- package/lib/math/trigonometry/remarkableValues.d.ts +1 -1
- package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/math/trigonometry/remarkableValues.js +11 -0
- package/lib/math/utils/latex/frenchify.d.ts +1 -1
- package/lib/math/utils/latex/frenchify.d.ts.map +1 -1
- package/lib/math/utils/latex/frenchify.js +3 -1
- package/lib/server.d.ts +2 -1
- package/lib/server.d.ts.map +1 -1
- package/lib/server.js +58 -14
- package/lib/tree/nodes/algebraicNode.d.ts +4 -0
- package/lib/tree/nodes/algebraicNode.d.ts.map +1 -0
- package/lib/tree/nodes/algebraicNode.js +5 -0
- package/lib/tree/nodes/complex/complexNode.d.ts +7 -10
- package/lib/tree/nodes/complex/complexNode.d.ts.map +1 -1
- package/lib/tree/nodes/complex/complexNode.js +20 -41
- package/lib/tree/nodes/equations/equalNode.d.ts +14 -0
- package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -0
- package/lib/tree/nodes/equations/equalNode.js +41 -0
- package/lib/tree/nodes/equations/equationSolutionNode.d.ts +21 -0
- package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -0
- package/lib/tree/nodes/equations/equationSolutionNode.js +44 -0
- package/lib/tree/nodes/equations/multiEqualNode.d.ts +14 -0
- package/lib/tree/nodes/equations/multiEqualNode.d.ts.map +1 -0
- package/lib/tree/nodes/equations/multiEqualNode.js +39 -0
- package/lib/tree/nodes/functions/absNode.d.ts +17 -0
- package/lib/tree/nodes/functions/absNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/absNode.js +41 -0
- package/lib/tree/nodes/functions/cosNode.d.ts +8 -4
- package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/cosNode.js +8 -3
- package/lib/tree/nodes/functions/expNode.d.ts +9 -9
- package/lib/tree/nodes/functions/expNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/expNode.js +13 -5
- package/lib/tree/nodes/functions/functionNode.d.ts +7 -7
- package/lib/tree/nodes/functions/functionNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/functionNode.js +6 -10
- package/lib/tree/nodes/functions/logNode.d.ts +9 -4
- package/lib/tree/nodes/functions/logNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/logNode.js +20 -5
- package/lib/tree/nodes/functions/oppositeNode.d.ts +17 -6
- package/lib/tree/nodes/functions/oppositeNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/oppositeNode.js +55 -14
- package/lib/tree/nodes/functions/sinNode.d.ts +8 -4
- package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sinNode.js +8 -3
- package/lib/tree/nodes/functions/sqrtNode.d.ts +10 -5
- package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sqrtNode.js +26 -5
- package/lib/tree/nodes/geometry/lengthNode.d.ts +14 -0
- package/lib/tree/nodes/geometry/lengthNode.d.ts.map +1 -0
- package/lib/tree/nodes/geometry/lengthNode.js +33 -0
- package/lib/tree/nodes/geometry/pointNode.d.ts +15 -0
- package/lib/tree/nodes/geometry/pointNode.d.ts.map +1 -0
- package/lib/tree/nodes/geometry/pointNode.js +41 -0
- package/lib/tree/nodes/geometry/vectorNode.d.ts +14 -0
- package/lib/tree/nodes/geometry/vectorNode.d.ts.map +1 -0
- package/lib/tree/nodes/geometry/vectorNode.js +30 -0
- package/lib/tree/nodes/inequations/inequationNode.d.ts +21 -0
- package/lib/tree/nodes/inequations/inequationNode.d.ts.map +1 -0
- package/lib/tree/nodes/inequations/inequationNode.js +116 -0
- package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts +21 -0
- package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts.map +1 -0
- package/lib/tree/nodes/inequations/inequationSolutionNode.js +46 -0
- package/lib/tree/nodes/node.d.ts +22 -3
- package/lib/tree/nodes/node.d.ts.map +1 -1
- package/lib/tree/nodes/node.js +7 -0
- package/lib/tree/nodes/numbers/constantNode.d.ts +4 -2
- package/lib/tree/nodes/numbers/constantNode.d.ts.map +1 -1
- package/lib/tree/nodes/numbers/constantNode.js +5 -1
- package/lib/tree/nodes/numbers/infiniteNode.d.ts +5 -0
- package/lib/tree/nodes/numbers/infiniteNode.d.ts.map +1 -0
- package/lib/tree/nodes/numbers/infiniteNode.js +7 -0
- package/lib/tree/nodes/numbers/numberNode.d.ts +4 -2
- package/lib/tree/nodes/numbers/numberNode.d.ts.map +1 -1
- package/lib/tree/nodes/numbers/numberNode.js +9 -5
- package/lib/tree/nodes/numbers/percentNode.d.ts +12 -0
- package/lib/tree/nodes/numbers/percentNode.d.ts.map +1 -0
- package/lib/tree/nodes/numbers/percentNode.js +26 -0
- package/lib/tree/nodes/operators/addNode.d.ts +15 -6
- package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/addNode.js +53 -14
- package/lib/tree/nodes/operators/divideNode.d.ts +11 -5
- package/lib/tree/nodes/operators/divideNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/divideNode.js +20 -10
- package/lib/tree/nodes/operators/fractionNode.d.ts +14 -11
- package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/fractionNode.js +28 -17
- package/lib/tree/nodes/operators/multiplyNode.d.ts +16 -11
- package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/multiplyNode.js +154 -33
- package/lib/tree/nodes/operators/operatorNode.d.ts +11 -12
- package/lib/tree/nodes/operators/operatorNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/operatorNode.js +4 -22
- package/lib/tree/nodes/operators/powerNode.d.ts +14 -9
- package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/powerNode.js +21 -8
- package/lib/tree/nodes/operators/substractNode.d.ts +8 -3
- package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/substractNode.js +15 -5
- package/lib/tree/nodes/sets/belongsNode.d.ts +15 -0
- package/lib/tree/nodes/sets/belongsNode.d.ts.map +1 -0
- package/lib/tree/nodes/sets/belongsNode.js +36 -0
- package/lib/tree/nodes/sets/discreteSetNode.d.ts +15 -0
- package/lib/tree/nodes/sets/discreteSetNode.d.ts.map +1 -0
- package/lib/tree/nodes/sets/discreteSetNode.js +54 -0
- package/lib/tree/nodes/sets/intervalNode.d.ts +24 -0
- package/lib/tree/nodes/sets/intervalNode.d.ts.map +1 -0
- package/lib/tree/nodes/sets/intervalNode.js +71 -0
- package/lib/tree/nodes/sets/setNode.d.ts +4 -0
- package/lib/tree/nodes/sets/setNode.d.ts.map +1 -0
- package/lib/tree/nodes/sets/setNode.js +2 -0
- package/lib/tree/nodes/sets/unionIntervalNode.d.ts +20 -0
- package/lib/tree/nodes/sets/unionIntervalNode.d.ts.map +1 -0
- package/lib/tree/nodes/sets/unionIntervalNode.js +44 -0
- package/lib/tree/nodes/variables/variableNode.d.ts +2 -1
- package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -1
- package/lib/tree/nodes/variables/variableNode.js +5 -1
- package/lib/tree/parsers/simplify.d.ts +1 -1
- package/lib/tree/parsers/simplify.d.ts.map +1 -1
- package/lib/tree/parsers/simplify.js +15 -15
- package/lib/tree/utilities/functionComposition.d.ts +5 -0
- package/lib/tree/utilities/functionComposition.d.ts.map +1 -0
- package/lib/tree/utilities/functionComposition.js +14 -0
- package/lib/tree/utilities/operatorComposition.d.ts +5 -0
- package/lib/tree/utilities/operatorComposition.d.ts.map +1 -0
- package/lib/tree/utilities/operatorComposition.js +14 -0
- package/lib/types/class.d.ts +4 -0
- package/lib/types/class.d.ts.map +1 -0
- package/lib/types/class.js +2 -0
- package/lib/utils/cartesianProducts.d.ts +13 -0
- package/lib/utils/cartesianProducts.d.ts.map +1 -0
- package/lib/utils/cartesianProducts.js +64 -0
- package/lib/utils/isInt.d.ts +2 -0
- package/lib/utils/isInt.d.ts.map +1 -0
- package/lib/utils/isInt.js +7 -0
- package/lib/utils/isLetter.d.ts +2 -0
- package/lib/utils/isLetter.d.ts.map +1 -0
- package/lib/utils/isLetter.js +7 -0
- package/lib/utils/permutations.d.ts +2 -0
- package/lib/utils/permutations.d.ts.map +1 -0
- package/lib/utils/permutations.js +21 -0
- package/package.json +1 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import { MathExercise } from "../exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
numbers: number[];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
export declare const addAndSubExercise: MathExercise<QCMProps, VEAProps>;
|
|
5
|
+
export declare const addAndSubExercise: MathExercise<Identifiers>;
|
|
7
6
|
export {};
|
|
8
7
|
//# sourceMappingURL=addAndSub.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EAQb,MAAM,aAAa,CAAC;AA8BrB,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAoBzC,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAYvD,CAAC"}
|
|
@@ -21,15 +21,15 @@ const getAddAndSubQuestions = () => {
|
|
|
21
21
|
for (let i = 2; i < allNumbersNodes.length; i++) {
|
|
22
22
|
statementTree = new addNode_1.AddNode(statementTree, allNumbersNodes[i]);
|
|
23
23
|
}
|
|
24
|
-
const answer = numbers.reduce((a, b) => a + b) +
|
|
24
|
+
const answer = numbers.reduce((a, b) => a + b) + "";
|
|
25
25
|
const statement = statementTree.toTex();
|
|
26
26
|
const question = {
|
|
27
27
|
instruction: `Calculer : $${statement}$`,
|
|
28
28
|
startStatement: statement,
|
|
29
29
|
answer,
|
|
30
30
|
keys: [],
|
|
31
|
-
answerFormat:
|
|
32
|
-
|
|
31
|
+
answerFormat: "tex",
|
|
32
|
+
identifiers: { numbers },
|
|
33
33
|
};
|
|
34
34
|
return question;
|
|
35
35
|
};
|
|
@@ -43,15 +43,21 @@ const getPropositions = (n, { answer }) => {
|
|
|
43
43
|
}
|
|
44
44
|
return (0, shuffle_1.shuffle)(propositions);
|
|
45
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
|
+
};
|
|
46
51
|
exports.addAndSubExercise = {
|
|
47
|
-
id:
|
|
48
|
-
connector:
|
|
49
|
-
label:
|
|
50
|
-
levels: [
|
|
51
|
-
sections: [
|
|
52
|
+
id: "addAndSub",
|
|
53
|
+
connector: "=",
|
|
54
|
+
label: "Additions et soustractions",
|
|
55
|
+
levels: ["6ème", "5ème"],
|
|
56
|
+
sections: ["Calculs"],
|
|
52
57
|
isSingleStep: true,
|
|
53
58
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAddAndSubQuestions, nb),
|
|
54
59
|
qcmTimer: 60,
|
|
55
60
|
freeTimer: 60,
|
|
56
61
|
getPropositions,
|
|
62
|
+
isAnswerValid,
|
|
57
63
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import { MathExercise } from "../exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
numbers: number[];
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
export declare const addAndSubWithoutRelatives: MathExercise<QCMProps, VEAProps>;
|
|
5
|
+
export declare const addAndSubWithoutRelatives: MathExercise<Identifiers>;
|
|
7
6
|
export {};
|
|
8
7
|
//# sourceMappingURL=addAndSubWithoutRelatives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAQb,MAAM,aAAa,CAAC;AA4CrB,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAoBzC,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,WAAW,CAa/D,CAAC"}
|
|
@@ -13,9 +13,10 @@ const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
|
13
13
|
const getAddAndSubWithoutRelatives = () => {
|
|
14
14
|
let answer = -1;
|
|
15
15
|
let statementTree;
|
|
16
|
+
let numbers = [];
|
|
16
17
|
while (answer < 0) {
|
|
17
18
|
const nbOperations = (0, randint_1.randint)(2, 4);
|
|
18
|
-
|
|
19
|
+
numbers = [];
|
|
19
20
|
do {
|
|
20
21
|
numbers = [];
|
|
21
22
|
numbers.push((0, randint_1.randint)(1, 15));
|
|
@@ -38,8 +39,8 @@ const getAddAndSubWithoutRelatives = () => {
|
|
|
38
39
|
startStatement: statementTree.toTex(),
|
|
39
40
|
answer: answerTex,
|
|
40
41
|
keys: [],
|
|
41
|
-
answerFormat:
|
|
42
|
-
|
|
42
|
+
answerFormat: "tex",
|
|
43
|
+
identifiers: { numbers },
|
|
43
44
|
};
|
|
44
45
|
return question;
|
|
45
46
|
};
|
|
@@ -52,15 +53,21 @@ const getPropositions = (n, { answer }) => {
|
|
|
52
53
|
}
|
|
53
54
|
return (0, shuffle_1.shuffle)(propositions);
|
|
54
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
|
+
};
|
|
55
61
|
exports.addAndSubWithoutRelatives = {
|
|
56
|
-
id:
|
|
57
|
-
connector:
|
|
58
|
-
label:
|
|
59
|
-
levels: [
|
|
60
|
-
sections: [
|
|
62
|
+
id: "addAndSubWithoutRelatives",
|
|
63
|
+
connector: "=",
|
|
64
|
+
label: "Additions et soustractions sans les nombres relatifs",
|
|
65
|
+
levels: ["6ème", "5ème"],
|
|
66
|
+
sections: ["Calculs"],
|
|
61
67
|
isSingleStep: true,
|
|
62
68
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAddAndSubWithoutRelatives, nb),
|
|
63
69
|
qcmTimer: 60,
|
|
64
70
|
freeTimer: 60,
|
|
65
71
|
getPropositions,
|
|
72
|
+
isAnswerValid,
|
|
66
73
|
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
3
|
dividend: number;
|
|
4
4
|
divisor: number;
|
|
5
5
|
quotient: number;
|
|
6
6
|
remainder: number;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
answer: string;
|
|
10
|
-
dividend: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const euclideanDivision: MathExercise<QCMProps, VEAProps>;
|
|
8
|
+
export declare const euclideanDivision: MathExercise<Identifiers>;
|
|
13
9
|
export {};
|
|
14
10
|
//# sourceMappingURL=euclideanDivision.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"euclideanDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/euclideanDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"euclideanDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/euclideanDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,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,YAAY,CAAC,WAAW,CAYvD,CAAC"}
|
|
@@ -6,7 +6,7 @@ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQues
|
|
|
6
6
|
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
7
|
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
8
|
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
9
|
-
const equalNode_1 = require("../../../tree/nodes/
|
|
9
|
+
const equalNode_1 = require("../../../tree/nodes/equations/equalNode");
|
|
10
10
|
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
11
11
|
const getEuclideanDivisionQuestions = () => {
|
|
12
12
|
let dividend = (0, randint_1.randint)(5, 100);
|
|
@@ -22,15 +22,14 @@ const getEuclideanDivisionQuestions = () => {
|
|
|
22
22
|
const question = {
|
|
23
23
|
instruction: `Ecrire la division euclidienne de ${dividend} par ${divisor}.`,
|
|
24
24
|
answer: answerTex,
|
|
25
|
-
keys: [
|
|
26
|
-
answerFormat:
|
|
27
|
-
|
|
28
|
-
veaProps: { dividend, divisor, quotient, remainder },
|
|
25
|
+
keys: ["equal"],
|
|
26
|
+
answerFormat: "tex",
|
|
27
|
+
identifiers: { dividend, divisor, quotient, remainder },
|
|
29
28
|
};
|
|
30
29
|
return question;
|
|
31
30
|
};
|
|
32
31
|
const isAnswerValid = (ans, { dividend, divisor, quotient, remainder }) => {
|
|
33
|
-
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)), {
|
|
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 });
|
|
34
33
|
const validLatexs = tree.toAllValidTexs();
|
|
35
34
|
return validLatexs.includes(ans);
|
|
36
35
|
};
|
|
@@ -47,11 +46,11 @@ const getPropositions = (n, { answer, dividend }) => {
|
|
|
47
46
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
48
47
|
};
|
|
49
48
|
exports.euclideanDivision = {
|
|
50
|
-
id:
|
|
51
|
-
connector:
|
|
52
|
-
label:
|
|
53
|
-
levels: [
|
|
54
|
-
sections: [
|
|
49
|
+
id: "euclideanDivision",
|
|
50
|
+
connector: "=",
|
|
51
|
+
label: "Ecrire une division euclidienne",
|
|
52
|
+
levels: ["6ème", "5ème", "4ème"],
|
|
53
|
+
sections: ["Arithmétique"],
|
|
55
54
|
isSingleStep: true,
|
|
56
55
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEuclideanDivisionQuestions, nb),
|
|
57
56
|
qcmTimer: 60,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
export declare const paritySumsAndProducts: MathExercise<QCMProps>;
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {};
|
|
3
|
+
export declare const paritySumsAndProducts: MathExercise<Identifiers>;
|
|
6
4
|
export {};
|
|
7
5
|
//# sourceMappingURL=paritySumsAndProducts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paritySumsAndProducts.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/paritySumsAndProducts.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"paritySumsAndProducts.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/paritySumsAndProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAKb,MAAM,0BAA0B,CAAC;AAyElC,KAAK,WAAW,GAAG,EAAE,CAAC;AAgCtB,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAc3D,CAAC"}
|
|
@@ -7,64 +7,66 @@ const shuffle_1 = require("../../../utils/shuffle");
|
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const getParitySumsAndProductsQuestion = () => {
|
|
9
9
|
const type = (0, randint_1.randint)(0, 12);
|
|
10
|
-
let instruction =
|
|
11
|
-
let answer =
|
|
10
|
+
let instruction = "";
|
|
11
|
+
let answer = "Pair";
|
|
12
12
|
switch (type) {
|
|
13
13
|
case 0:
|
|
14
|
-
instruction =
|
|
15
|
-
answer =
|
|
14
|
+
instruction = "La somme de deux nombres pairs est un nombre...";
|
|
15
|
+
answer = "Pair";
|
|
16
16
|
break;
|
|
17
17
|
case 1:
|
|
18
|
-
instruction =
|
|
19
|
-
answer =
|
|
18
|
+
instruction = "La somme de deux nombres impairs est un nombre...";
|
|
19
|
+
answer = "Pair";
|
|
20
20
|
break;
|
|
21
21
|
case 2:
|
|
22
|
-
instruction =
|
|
23
|
-
|
|
22
|
+
instruction =
|
|
23
|
+
"La somme d'un nombre pair et d'un nombre impair un nombre...";
|
|
24
|
+
answer = "Impair";
|
|
24
25
|
break;
|
|
25
26
|
case 3:
|
|
26
|
-
instruction =
|
|
27
|
-
answer =
|
|
27
|
+
instruction = "La somme de trois nombres impairs est un nombre...";
|
|
28
|
+
answer = "Impair";
|
|
28
29
|
break;
|
|
29
30
|
case 4:
|
|
30
|
-
instruction =
|
|
31
|
-
answer =
|
|
31
|
+
instruction = "La somme de trois nombres consécutifs est un nombre...";
|
|
32
|
+
answer = "Parfois pair, parfois impair";
|
|
32
33
|
break;
|
|
33
34
|
case 5:
|
|
34
|
-
instruction =
|
|
35
|
-
answer =
|
|
35
|
+
instruction = "La somme de quatre nombres consécutifs est un nombre...";
|
|
36
|
+
answer = "Pair";
|
|
36
37
|
break;
|
|
37
38
|
case 6:
|
|
38
|
-
instruction =
|
|
39
|
-
answer =
|
|
39
|
+
instruction = "Le produit de deux nombres pairs est un nombre...";
|
|
40
|
+
answer = "Pair";
|
|
40
41
|
break;
|
|
41
42
|
case 7:
|
|
42
|
-
instruction =
|
|
43
|
-
answer =
|
|
43
|
+
instruction = "Le produit de deux nombres impairs est un nombre...";
|
|
44
|
+
answer = "Impair";
|
|
44
45
|
break;
|
|
45
46
|
case 8:
|
|
46
|
-
instruction =
|
|
47
|
-
|
|
47
|
+
instruction =
|
|
48
|
+
"Le produit d'un nombre pair et d'un nombre impair est un nombre...";
|
|
49
|
+
answer = "Pair";
|
|
48
50
|
break;
|
|
49
51
|
case 9:
|
|
50
|
-
instruction =
|
|
51
|
-
answer =
|
|
52
|
+
instruction = "Le produit de trois nombres consécutifs est un nombre...";
|
|
53
|
+
answer = "Pair";
|
|
52
54
|
break;
|
|
53
55
|
case 10:
|
|
54
|
-
instruction =
|
|
55
|
-
answer =
|
|
56
|
+
instruction = "Le produit de trois nombres impairs est un nombre...";
|
|
57
|
+
answer = "Impair";
|
|
56
58
|
break;
|
|
57
59
|
case 11:
|
|
58
|
-
instruction =
|
|
59
|
-
answer =
|
|
60
|
+
instruction = "Le produit de trois nombres pairs est un nombre...";
|
|
61
|
+
answer = "Pair";
|
|
60
62
|
break;
|
|
61
63
|
}
|
|
62
64
|
const question = {
|
|
63
65
|
answer: answer,
|
|
64
66
|
instruction,
|
|
65
67
|
keys: [],
|
|
66
|
-
answerFormat:
|
|
67
|
-
|
|
68
|
+
answerFormat: "raw",
|
|
69
|
+
identifiers: { answer },
|
|
68
70
|
};
|
|
69
71
|
return question;
|
|
70
72
|
};
|
|
@@ -73,41 +75,41 @@ const getPropositions = (n, { answer }) => {
|
|
|
73
75
|
{
|
|
74
76
|
id: (0, uuid_1.v4)(),
|
|
75
77
|
statement: `Pair`,
|
|
76
|
-
isRightAnswer: answer ===
|
|
77
|
-
format:
|
|
78
|
+
isRightAnswer: answer === "Pair",
|
|
79
|
+
format: "raw",
|
|
78
80
|
},
|
|
79
81
|
{
|
|
80
82
|
id: (0, uuid_1.v4)(),
|
|
81
83
|
statement: `Impair`,
|
|
82
|
-
isRightAnswer: answer ===
|
|
83
|
-
format:
|
|
84
|
+
isRightAnswer: answer === "Impair",
|
|
85
|
+
format: "raw",
|
|
84
86
|
},
|
|
85
87
|
{
|
|
86
88
|
id: (0, uuid_1.v4)(),
|
|
87
89
|
statement: `Parfois pair, parfois impair`,
|
|
88
|
-
isRightAnswer: answer ===
|
|
89
|
-
format:
|
|
90
|
+
isRightAnswer: answer === "Parfois pair, parfois impair",
|
|
91
|
+
format: "raw",
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
id: (0, uuid_1.v4)(),
|
|
93
95
|
statement: `Premier`,
|
|
94
|
-
isRightAnswer: answer ===
|
|
95
|
-
format:
|
|
96
|
+
isRightAnswer: answer === "Premier",
|
|
97
|
+
format: "raw",
|
|
96
98
|
},
|
|
97
99
|
];
|
|
98
100
|
return (0, shuffle_1.shuffle)(propositions);
|
|
99
101
|
};
|
|
100
102
|
exports.paritySumsAndProducts = {
|
|
101
|
-
id:
|
|
102
|
-
connector:
|
|
103
|
-
label:
|
|
104
|
-
levels: [
|
|
103
|
+
id: "paritySumsAndProducts",
|
|
104
|
+
connector: "=",
|
|
105
|
+
label: "Parité de sommes et de produits",
|
|
106
|
+
levels: ["2nde"],
|
|
105
107
|
isSingleStep: true,
|
|
106
|
-
sections: [
|
|
108
|
+
sections: ["Arithmétique"],
|
|
107
109
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getParitySumsAndProductsQuestion, nb, 12),
|
|
108
110
|
qcmTimer: 60,
|
|
109
111
|
freeTimer: 60,
|
|
110
|
-
answerType:
|
|
112
|
+
answerType: "QCM",
|
|
111
113
|
maxAllowedQuestions: 12,
|
|
112
114
|
getPropositions,
|
|
113
115
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
chosenNumbers: number[];
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
chosenNumbers: number[];
|
|
8
|
-
};
|
|
9
|
-
export declare const primeNumbers: MathExercise<QCMProps, VEAProps>;
|
|
5
|
+
export declare const primeNumbers: MathExercise<Identifiers>;
|
|
10
6
|
export {};
|
|
11
7
|
//# sourceMappingURL=primeNumbers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeNumbers.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/primeNumbers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EASb,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"primeNumbers.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/primeNumbers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EASb,MAAM,gBAAgB,CAAC;AAsDxB,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB,CAAC;AAuDF,eAAO,MAAM,YAAY,EAAE,YAAY,CAAC,WAAW,CAYlD,CAAC"}
|
|
@@ -7,6 +7,7 @@ const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
|
|
|
7
7
|
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
8
|
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
9
9
|
const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
|
|
10
|
+
const operatorComposition_1 = require("../../../tree/utilities/operatorComposition");
|
|
10
11
|
function prodNumbers(tab) {
|
|
11
12
|
let temp = 1;
|
|
12
13
|
for (let i = 0; i < tab.length; i++)
|
|
@@ -39,9 +40,8 @@ const getPrimeNumbers = () => {
|
|
|
39
40
|
startStatement: `${prod}`,
|
|
40
41
|
answer,
|
|
41
42
|
keys: [],
|
|
42
|
-
answerFormat:
|
|
43
|
-
|
|
44
|
-
veaProps: { chosenNumbers },
|
|
43
|
+
answerFormat: "tex",
|
|
44
|
+
identifiers: { chosenNumbers },
|
|
45
45
|
};
|
|
46
46
|
return question;
|
|
47
47
|
};
|
|
@@ -77,24 +77,25 @@ const isAnswerValid = (ans, { chosenNumbers }) => {
|
|
|
77
77
|
nbsToPower.push([nb, count]);
|
|
78
78
|
});
|
|
79
79
|
const nodes = nbsToPower.map((el) => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
const nbNode = new numberNode_1.NumberNode(el[0]);
|
|
81
|
+
if (el[1] === 1) {
|
|
82
|
+
return nbNode;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return new powerNode_1.PowerNode(nbNode, new numberNode_1.NumberNode(el[1]));
|
|
86
|
+
}
|
|
84
87
|
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
const texs = tree.toAllValidTexs();
|
|
88
|
+
const answer = nodes.length === 1 ? nodes[0] : (0, operatorComposition_1.operatorComposition)(multiplyNode_1.MultiplyNode, nodes);
|
|
89
|
+
const texs = answer.toAllValidTexs();
|
|
90
|
+
console.log(texs);
|
|
90
91
|
return texs.includes(ans);
|
|
91
92
|
};
|
|
92
93
|
exports.primeNumbers = {
|
|
93
|
-
id:
|
|
94
|
-
connector:
|
|
95
|
-
label:
|
|
96
|
-
levels: [
|
|
97
|
-
sections: [
|
|
94
|
+
id: "primeNumbers",
|
|
95
|
+
connector: "=",
|
|
96
|
+
label: "Décomposition en nombres premiers",
|
|
97
|
+
levels: ["5ème", "4ème", "3ème", "2nde"],
|
|
98
|
+
sections: ["Arithmétique"],
|
|
98
99
|
isSingleStep: false,
|
|
99
100
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPrimeNumbers, nb),
|
|
100
101
|
qcmTimer: 60,
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
integerFirst: boolean;
|
|
5
4
|
integer: number;
|
|
6
5
|
rational: [number, number];
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
integerFirst: boolean;
|
|
10
|
-
integer: number;
|
|
11
|
-
rational: [number, number];
|
|
12
|
-
};
|
|
13
|
-
export declare const fractionAndIntegerDivision: MathExercise<QCMProps, VEAProps>;
|
|
7
|
+
export declare const fractionAndIntegerDivision: MathExercise<Identifiers>;
|
|
14
8
|
export {};
|
|
15
9
|
//# sourceMappingURL=fractionAndIntegerDivision.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAwClC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAyCF,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,WAAW,CAahE,CAAC"}
|
|
@@ -11,25 +11,27 @@ const coinFlip_1 = require("../../../utils/coinFlip");
|
|
|
11
11
|
const getFractionAndIntegerDivision = () => {
|
|
12
12
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
13
13
|
const integerFirst = (0, coinFlip_1.coinFlip)();
|
|
14
|
-
const integer = integerFirst
|
|
14
|
+
const integer = integerFirst
|
|
15
|
+
? new integer_1.Integer((0, randint_1.randint)(-10, 11, [0]))
|
|
16
|
+
: new integer_1.Integer((0, randint_1.randint)(-10, 11, [0, 1]));
|
|
15
17
|
const statementTree = integerFirst
|
|
16
18
|
? new divideNode_1.DivideNode(integer.toTree(), rational.toTree())
|
|
17
19
|
: new divideNode_1.DivideNode(rational.toTree(), integer.toTree());
|
|
18
|
-
const answerTree = integerFirst
|
|
20
|
+
const answerTree = integerFirst
|
|
21
|
+
? integer.divide(rational).toTree()
|
|
22
|
+
: rational.divide(integer).toTree();
|
|
19
23
|
const answerTex = answerTree.toTex();
|
|
20
24
|
const question = {
|
|
21
25
|
instruction: `Calculer et donner le résultat sous la forme d'une fraction irréductible : $${statementTree.toTex()}$`,
|
|
22
26
|
startStatement: statementTree.toTex(),
|
|
23
27
|
answer: answerTex,
|
|
24
28
|
keys: [],
|
|
25
|
-
answerFormat:
|
|
26
|
-
|
|
27
|
-
answer: answerTex,
|
|
29
|
+
answerFormat: "tex",
|
|
30
|
+
identifiers: {
|
|
28
31
|
integerFirst,
|
|
29
32
|
integer: integer.value,
|
|
30
33
|
rational: [rational.num, rational.denum],
|
|
31
34
|
},
|
|
32
|
-
veaProps: { integerFirst, integer: integer.value, rational: [rational.num, rational.denum] },
|
|
33
35
|
};
|
|
34
36
|
return question;
|
|
35
37
|
};
|
|
@@ -38,7 +40,9 @@ const getPropositions = (n, { answer, integerFirst, integer, rational }) => {
|
|
|
38
40
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
39
41
|
const integerObj = new integer_1.Integer(integer);
|
|
40
42
|
const rationalObj = new rational_1.Rational(rational[0], rational[1]);
|
|
41
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, !integerFirst
|
|
43
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, !integerFirst
|
|
44
|
+
? integerObj.divide(rationalObj).toTree().toTex()
|
|
45
|
+
: rationalObj.divide(integerObj).toTree().toTex());
|
|
42
46
|
while (propositions.length < n) {
|
|
43
47
|
const wrongRational = rational_1.RationalConstructor.randomIrreductible();
|
|
44
48
|
const wrongAnswerTree = integerFirst
|
|
@@ -52,19 +56,19 @@ const isAnswerValid = (ans, { integer, integerFirst, rational }) => {
|
|
|
52
56
|
const integerObj = new integer_1.Integer(integer);
|
|
53
57
|
const rationalObj = new rational_1.Rational(rational[0], rational[1]);
|
|
54
58
|
const answerTree = integerFirst
|
|
55
|
-
? integerObj.divide(rationalObj).toTree({
|
|
56
|
-
: rationalObj.divide(integerObj).toTree({
|
|
59
|
+
? integerObj.divide(rationalObj).toTree({ allowFractionToDecimal: true })
|
|
60
|
+
: rationalObj.divide(integerObj).toTree({ allowFractionToDecimal: true });
|
|
57
61
|
const texs = answerTree.toAllValidTexs();
|
|
58
62
|
console.log(texs);
|
|
59
63
|
return texs.includes(ans);
|
|
60
64
|
};
|
|
61
65
|
exports.fractionAndIntegerDivision = {
|
|
62
|
-
id:
|
|
63
|
-
connector:
|
|
66
|
+
id: "fractionAndIntegerDivision",
|
|
67
|
+
connector: "=",
|
|
64
68
|
label: "Division d'un entier et d'une fraction",
|
|
65
|
-
levels: [
|
|
69
|
+
levels: ["4ème", "3ème", "2nde", "2ndPro", "1rePro", "CAP"],
|
|
66
70
|
isSingleStep: false,
|
|
67
|
-
sections: [
|
|
71
|
+
sections: ["Fractions"],
|
|
68
72
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getFractionAndIntegerDivision, nb),
|
|
69
73
|
qcmTimer: 60,
|
|
70
74
|
freeTimer: 60,
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
integer: number;
|
|
5
4
|
rational: [number, number];
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
integer: number;
|
|
9
|
-
rational: [number, number];
|
|
10
|
-
};
|
|
11
|
-
export declare const fractionAndIntegerProduct: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const fractionAndIntegerProduct: MathExercise<Identifiers>;
|
|
12
7
|
export {};
|
|
13
8
|
//# sourceMappingURL=fractionAndIntegerProduct.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAQb,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAiClC,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5B,CAAC;AAsCF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,WAAW,CAa/D,CAAC"}
|