math-exercises 2.0.0 → 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 +3 -6
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +79 -33
- 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 +45 -37
- 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 +1 -0
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts.map +1 -0
- package/lib/exercises/complex/argumentFromAlgebraicComplex.js +52 -0
- 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 +8 -0
- package/lib/exercises/complex/moduloFromAlgebraicComplex.d.ts.map +1 -0
- package/lib/exercises/complex/moduloFromAlgebraicComplex.js +55 -0
- 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/exercises.d.ts +1 -1
- package/lib/exercises/exercises.d.ts.map +1 -1
- package/lib/exercises/exercises.js +4 -0
- 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 +10 -0
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -0
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.js +64 -0
- 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 +32 -13
- 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 -11
- 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 -14
- 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 +10 -4
- package/lib/math/complex/complex.d.ts.map +1 -1
- package/lib/math/complex/complex.js +49 -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 +5 -4
- package/lib/math/numbers/reals/real.d.ts.map +1 -1
- package/lib/math/numbers/reals/real.js +19 -6
- 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,10 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
int: number;
|
|
5
4
|
power: number;
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export declare const calculateNegativePower: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const calculateNegativePower: MathExercise<Identifiers>;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=calculateNegativePower.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateNegativePower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/calculateNegativePower.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"calculateNegativePower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/calculateNegativePower.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAmEF,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,WAAW,CAa5D,CAAC"}
|
|
@@ -3,55 +3,71 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.calculateNegativePower = void 0;
|
|
4
4
|
const exercise_1 = require("../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const power_1 = require("../../math/numbers/integer/power");
|
|
6
7
|
const rational_1 = require("../../math/numbers/rationals/rational");
|
|
7
8
|
const randint_1 = require("../../math/utils/random/randint");
|
|
8
9
|
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
10
|
+
const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
|
|
9
11
|
const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
10
12
|
const getCalculatePowerQuestion = () => {
|
|
11
|
-
const int = (0, randint_1.randint)(
|
|
13
|
+
const int = (0, randint_1.randint)(1, 11);
|
|
12
14
|
const power = (0, randint_1.randint)(-5, 0);
|
|
13
15
|
const statement = new powerNode_1.PowerNode(new numberNode_1.NumberNode(int), new numberNode_1.NumberNode(power)).toTex();
|
|
14
|
-
const answer =
|
|
16
|
+
const answer = new rational_1.Rational(1, int ** Math.abs(power))
|
|
17
|
+
.simplify()
|
|
18
|
+
.toTree()
|
|
19
|
+
.toTex();
|
|
15
20
|
const question = {
|
|
16
21
|
answer,
|
|
17
22
|
instruction: `Calculer : $${statement}$`,
|
|
18
23
|
keys: [],
|
|
19
|
-
answerFormat:
|
|
20
|
-
|
|
24
|
+
answerFormat: "tex",
|
|
25
|
+
identifiers: { int, power },
|
|
21
26
|
};
|
|
22
27
|
return question;
|
|
23
28
|
};
|
|
24
29
|
const getPropositions = (n, { answer, int, power }) => {
|
|
25
30
|
const propositions = [];
|
|
26
31
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
27
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, int * power +
|
|
28
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, -(int ** Math.abs(power)) +
|
|
29
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, int * power +
|
|
30
|
-
if (int
|
|
31
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
32
|
-
|
|
33
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
34
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
35
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
36
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
37
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, '2');
|
|
38
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, -power + '');
|
|
32
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, int * power + "");
|
|
33
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, -(int ** Math.abs(power)) + "");
|
|
34
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, int * power + "");
|
|
35
|
+
if (int === 1) {
|
|
36
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, power + "");
|
|
37
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "0");
|
|
38
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "1");
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "-1");
|
|
40
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "2");
|
|
41
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, -power + "");
|
|
39
42
|
}
|
|
40
43
|
while (propositions.length < n) {
|
|
41
|
-
const wrongAnswer = new rational_1.Rational(1, int ** (0, randint_1.randint)(0, 6, [power]))
|
|
44
|
+
const wrongAnswer = new rational_1.Rational(1, int ** (0, randint_1.randint)(0, 6, [power]))
|
|
45
|
+
.simplify()
|
|
46
|
+
.toTree()
|
|
47
|
+
.toTex();
|
|
42
48
|
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
43
49
|
}
|
|
44
50
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
45
51
|
};
|
|
52
|
+
const isAnswerValid = (ans, { int, power }) => {
|
|
53
|
+
const answerTree = new rational_1.Rational(1, int ** Math.abs(power))
|
|
54
|
+
.simplify()
|
|
55
|
+
.toTree({ allowFractionToDecimal: true });
|
|
56
|
+
const secondTree = new fractionNode_1.FractionNode(new numberNode_1.NumberNode(1), new power_1.Power(int, -power).simplify());
|
|
57
|
+
const texs = [...answerTree.toAllValidTexs(), ...secondTree.toAllValidTexs()];
|
|
58
|
+
console.log(texs);
|
|
59
|
+
return texs.includes(ans);
|
|
60
|
+
};
|
|
46
61
|
exports.calculateNegativePower = {
|
|
47
|
-
id:
|
|
48
|
-
connector:
|
|
49
|
-
label:
|
|
50
|
-
levels: [
|
|
62
|
+
id: "calculateNegativePower",
|
|
63
|
+
connector: "=",
|
|
64
|
+
label: "Calculer une puissance négative",
|
|
65
|
+
levels: ["4ème", "3ème", "2ndPro", "2nde", "CAP"],
|
|
51
66
|
isSingleStep: true,
|
|
52
|
-
sections: [
|
|
67
|
+
sections: ["Puissances"],
|
|
53
68
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getCalculatePowerQuestion, nb),
|
|
54
69
|
qcmTimer: 60,
|
|
55
70
|
freeTimer: 60,
|
|
56
71
|
getPropositions,
|
|
72
|
+
isAnswerValid,
|
|
57
73
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
int: number;
|
|
5
4
|
power: number;
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export declare const calculatePower: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const calculatePower: MathExercise<Identifiers>;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=calculatePower.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculatePower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/calculatePower.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"calculatePower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/calculatePower.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAuDF,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,WAAW,CAapD,CAAC"}
|
|
@@ -10,52 +10,56 @@ const getCalculatePowerQuestion = () => {
|
|
|
10
10
|
const int = (0, randint_1.randint)(-10, 11);
|
|
11
11
|
const power = (0, randint_1.randint)(0, 6);
|
|
12
12
|
const statement = new powerNode_1.PowerNode(new numberNode_1.NumberNode(int), new numberNode_1.NumberNode(power)).toTex();
|
|
13
|
-
const answer = int ** power +
|
|
13
|
+
const answer = int ** power + "";
|
|
14
14
|
const question = {
|
|
15
15
|
answer,
|
|
16
16
|
instruction: `Calculer : $${statement}$`,
|
|
17
17
|
keys: [],
|
|
18
|
-
answerFormat:
|
|
19
|
-
|
|
18
|
+
answerFormat: "tex",
|
|
19
|
+
identifiers: { int, power },
|
|
20
20
|
};
|
|
21
21
|
return question;
|
|
22
22
|
};
|
|
23
23
|
const getPropositions = (n, { answer, int, power }) => {
|
|
24
24
|
const propositions = [];
|
|
25
25
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
26
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, int * power +
|
|
26
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, int * power + "");
|
|
27
27
|
if (int < 0)
|
|
28
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, -(int ** power) +
|
|
28
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, -(int ** power) + "");
|
|
29
29
|
if (int === 0) {
|
|
30
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, power +
|
|
31
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
32
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, -power +
|
|
33
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
34
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
30
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, power + "");
|
|
31
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "1");
|
|
32
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, -power + "");
|
|
33
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "-1");
|
|
34
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "2");
|
|
35
35
|
}
|
|
36
36
|
if (int === 1 || int === -1) {
|
|
37
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, power +
|
|
38
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
39
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
40
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
41
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
42
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, -power +
|
|
37
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, power + "");
|
|
38
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "0");
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "1");
|
|
40
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "-1");
|
|
41
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "2");
|
|
42
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, -power + "");
|
|
43
43
|
}
|
|
44
44
|
while (propositions.length < n) {
|
|
45
|
-
const wrongAnswer = int ** (0, randint_1.randint)(0, 6, [power]) +
|
|
45
|
+
const wrongAnswer = int ** (0, randint_1.randint)(0, 6, [power]) + "";
|
|
46
46
|
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
47
47
|
}
|
|
48
48
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
49
49
|
};
|
|
50
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
51
|
+
return ans === answer;
|
|
52
|
+
};
|
|
50
53
|
exports.calculatePower = {
|
|
51
|
-
id:
|
|
52
|
-
connector:
|
|
53
|
-
label:
|
|
54
|
-
levels: [
|
|
54
|
+
id: "calculatePower",
|
|
55
|
+
connector: "=",
|
|
56
|
+
label: "Calculer une puissance",
|
|
57
|
+
levels: ["4ème", "3ème", "2ndPro", "2nde", "CAP"],
|
|
55
58
|
isSingleStep: true,
|
|
56
|
-
sections: [
|
|
59
|
+
sections: ["Puissances"],
|
|
57
60
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getCalculatePowerQuestion, nb),
|
|
58
61
|
qcmTimer: 60,
|
|
59
62
|
freeTimer: 60,
|
|
60
63
|
getPropositions,
|
|
64
|
+
isAnswerValid,
|
|
61
65
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
decimal: number;
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export declare const decimalToScientific: MathExercise<QCMProps, VEAProps>;
|
|
5
|
+
export declare const decimalToScientific: MathExercise<Identifiers>;
|
|
8
6
|
export {};
|
|
9
7
|
//# sourceMappingURL=decimalToScientific.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decimalToScientific.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/decimalToScientific.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decimalToScientific.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/decimalToScientific.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,YAAY,EASb,MAAM,aAAa,CAAC;AAGrB,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAqDF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,WAAW,CA0BzD,CAAC"}
|
|
@@ -14,7 +14,7 @@ const getDecimalToScientificQuestion = () => {
|
|
|
14
14
|
const isZero = (0, probaFlip_1.probaFlip)(0.2);
|
|
15
15
|
let intPart, dec;
|
|
16
16
|
if (isZero) {
|
|
17
|
-
dec = decimal_1.DecimalConstructor.fromParts(
|
|
17
|
+
dec = decimal_1.DecimalConstructor.fromParts("0", decimal_1.DecimalConstructor.randomFracPart((0, randint_1.randint)(2, 5), (0, randint_1.randint)(1, 4)));
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
20
|
intPart = integer_1.IntegerConstructor.random((0, randint_1.randint)(2, 5));
|
|
@@ -27,8 +27,8 @@ const getDecimalToScientificQuestion = () => {
|
|
|
27
27
|
startStatement: decTex,
|
|
28
28
|
answer: answer,
|
|
29
29
|
keys: [],
|
|
30
|
-
answerFormat:
|
|
31
|
-
|
|
30
|
+
answerFormat: "tex",
|
|
31
|
+
identifiers: { decimal: dec.value },
|
|
32
32
|
};
|
|
33
33
|
return question;
|
|
34
34
|
};
|
|
@@ -42,28 +42,35 @@ const getPropositions = (n, { answer, decimal }) => {
|
|
|
42
42
|
}
|
|
43
43
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
44
44
|
};
|
|
45
|
+
const isAnswerValid = (ans, { decimal }) => {
|
|
46
|
+
const answerTree = new decimal_1.Decimal(decimal).toScientificNotation();
|
|
47
|
+
const texs = answerTree.toAllValidTexs({ forbidPowerToProduct: true });
|
|
48
|
+
console.log(ans, texs);
|
|
49
|
+
return texs.includes(ans);
|
|
50
|
+
};
|
|
45
51
|
exports.decimalToScientific = {
|
|
46
|
-
id:
|
|
47
|
-
connector:
|
|
52
|
+
id: "decimalToScientific",
|
|
53
|
+
connector: "=",
|
|
48
54
|
label: "Passer d'écriture décimale à écriture scientifique",
|
|
49
55
|
levels: [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
"5ème",
|
|
57
|
+
"4ème",
|
|
58
|
+
"3ème",
|
|
59
|
+
"2nde",
|
|
60
|
+
"CAP",
|
|
61
|
+
"2ndPro",
|
|
62
|
+
"1reESM",
|
|
63
|
+
"1rePro",
|
|
64
|
+
"1reSpé",
|
|
65
|
+
"1reTech",
|
|
66
|
+
"TermPro",
|
|
67
|
+
"TermTech",
|
|
62
68
|
],
|
|
63
|
-
sections: [
|
|
69
|
+
sections: ["Puissances"],
|
|
64
70
|
isSingleStep: true,
|
|
65
71
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getDecimalToScientificQuestion, nb),
|
|
66
72
|
qcmTimer: 60,
|
|
67
73
|
freeTimer: 60,
|
|
68
74
|
getPropositions,
|
|
75
|
+
isAnswerValid,
|
|
69
76
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./calculateNegativePower";
|
|
2
|
+
export * from "./calculatePower";
|
|
3
|
+
export * from "./decimalToScientific";
|
|
4
|
+
export * from "./powerDefinition";
|
|
5
|
+
export * from "./powersDivision";
|
|
6
|
+
export * from "./powersOfTenToDecimal";
|
|
7
|
+
export * from "./powersPower";
|
|
8
|
+
export * from "./powersProduct";
|
|
9
|
+
export * from "./scientificToDecimal";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./calculateNegativePower"), exports);
|
|
18
|
+
__exportStar(require("./calculatePower"), exports);
|
|
19
|
+
__exportStar(require("./decimalToScientific"), exports);
|
|
20
|
+
__exportStar(require("./powerDefinition"), exports);
|
|
21
|
+
__exportStar(require("./powersDivision"), exports);
|
|
22
|
+
__exportStar(require("./powersOfTenToDecimal"), exports);
|
|
23
|
+
__exportStar(require("./powersPower"), exports);
|
|
24
|
+
__exportStar(require("./powersProduct"), exports);
|
|
25
|
+
__exportStar(require("./scientificToDecimal"), exports);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
int: number;
|
|
5
4
|
power: number;
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export declare const powerDefinition: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const powerDefinition: MathExercise<Identifiers>;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=powerDefinition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powerDefinition.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powerDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"powerDefinition.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powerDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAqDF,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,WAAW,CAarD,CAAC"}
|
|
@@ -9,22 +9,26 @@ const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
|
9
9
|
const getPowerDefinitionQuestion = () => {
|
|
10
10
|
const int = (0, randint_1.randint)(2, 11);
|
|
11
11
|
const power = (0, randint_1.randint)(2, 6);
|
|
12
|
-
let statement =
|
|
12
|
+
let statement = "";
|
|
13
13
|
for (let i = 0; i < power; i++) {
|
|
14
|
-
statement += int +
|
|
14
|
+
statement += int + "";
|
|
15
15
|
if (i < power - 1)
|
|
16
|
-
statement +=
|
|
16
|
+
statement += "\\times";
|
|
17
17
|
}
|
|
18
18
|
const answer = new powerNode_1.PowerNode(new numberNode_1.NumberNode(int), new numberNode_1.NumberNode(power)).toTex();
|
|
19
19
|
const question = {
|
|
20
20
|
answer,
|
|
21
21
|
instruction: `Écrire sous forme de puissance : $${statement}$`,
|
|
22
22
|
keys: [],
|
|
23
|
-
answerFormat:
|
|
24
|
-
|
|
23
|
+
answerFormat: "tex",
|
|
24
|
+
identifiers: { int, power },
|
|
25
25
|
};
|
|
26
26
|
return question;
|
|
27
27
|
};
|
|
28
|
+
const isAnswerValid = (ans, { int, power }) => {
|
|
29
|
+
const answer = new powerNode_1.PowerNode(new numberNode_1.NumberNode(int), new numberNode_1.NumberNode(power)).toTex();
|
|
30
|
+
return ans === answer;
|
|
31
|
+
};
|
|
28
32
|
const getPropositions = (n, { answer, int, power }) => {
|
|
29
33
|
const propositions = [];
|
|
30
34
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
@@ -37,14 +41,15 @@ const getPropositions = (n, { answer, int, power }) => {
|
|
|
37
41
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
38
42
|
};
|
|
39
43
|
exports.powerDefinition = {
|
|
40
|
-
id:
|
|
41
|
-
connector:
|
|
42
|
-
label:
|
|
43
|
-
levels: [
|
|
44
|
+
id: "powerDefinition",
|
|
45
|
+
connector: "=",
|
|
46
|
+
label: "Écrire un produit sous forme de puissance",
|
|
47
|
+
levels: ["4ème", "3ème", "2ndPro", "CAP"],
|
|
44
48
|
isSingleStep: true,
|
|
45
|
-
sections: [
|
|
49
|
+
sections: ["Puissances"],
|
|
46
50
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowerDefinitionQuestion, nb),
|
|
47
51
|
qcmTimer: 60,
|
|
48
52
|
freeTimer: 60,
|
|
49
53
|
getPropositions,
|
|
54
|
+
isAnswerValid,
|
|
50
55
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* a^b/a^c
|
|
3
3
|
*/
|
|
4
|
-
import { MathExercise } from
|
|
5
|
-
type
|
|
6
|
-
answer: string;
|
|
4
|
+
import { MathExercise } from "../exercise";
|
|
5
|
+
type Identifiers = {
|
|
7
6
|
a: number;
|
|
8
7
|
b: number;
|
|
9
8
|
c: number;
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const powersOfTenDivision: MathExercise<QCMProps, VEAProps>;
|
|
10
|
+
export declare const powersDivision: MathExercise<Identifiers>;
|
|
11
|
+
export declare const powersOfTenDivision: MathExercise<Identifiers>;
|
|
14
12
|
export {};
|
|
15
13
|
//# sourceMappingURL=powersDivision.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EACL,YAAY,EAQb,MAAM,aAAa,CAAC;AAGrB,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAmDF,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,WAAW,CA2BpD,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,WAAW,CAgBzD,CAAC"}
|
|
@@ -19,12 +19,12 @@ const getPowersDivisionQuestion = (opts) => {
|
|
|
19
19
|
const answerTree = new power_1.Power(a, b - c).simplify();
|
|
20
20
|
const answer = answerTree.toTex();
|
|
21
21
|
const question = {
|
|
22
|
-
instruction: `
|
|
22
|
+
instruction: `Simplifier : $${statement.toTex()}$`,
|
|
23
23
|
startStatement: statement.toTex(),
|
|
24
24
|
answer,
|
|
25
25
|
keys: [],
|
|
26
|
-
answerFormat:
|
|
27
|
-
|
|
26
|
+
answerFormat: "tex",
|
|
27
|
+
identifiers: { a, b, c },
|
|
28
28
|
};
|
|
29
29
|
return question;
|
|
30
30
|
};
|
|
@@ -39,27 +39,49 @@ const getPropositions = (n, { answer, a, b, c }) => {
|
|
|
39
39
|
}
|
|
40
40
|
return (0, shuffle_1.shuffle)(propositions);
|
|
41
41
|
};
|
|
42
|
+
const isAnswerValid = (ans, { a, b, c }) => {
|
|
43
|
+
const power = new power_1.Power(a, b - c);
|
|
44
|
+
const answerTree = power.simplify();
|
|
45
|
+
const texs = answerTree.toAllValidTexs();
|
|
46
|
+
const rawTex = power.toTree().toTex();
|
|
47
|
+
if (!texs.includes(rawTex))
|
|
48
|
+
texs.push(rawTex);
|
|
49
|
+
return texs.includes(ans);
|
|
50
|
+
};
|
|
42
51
|
exports.powersDivision = {
|
|
43
|
-
id:
|
|
44
|
-
connector:
|
|
45
|
-
label:
|
|
46
|
-
levels: [
|
|
47
|
-
|
|
52
|
+
id: "powersDivision",
|
|
53
|
+
connector: "=",
|
|
54
|
+
label: "Division de puissances",
|
|
55
|
+
levels: [
|
|
56
|
+
"4ème",
|
|
57
|
+
"3ème",
|
|
58
|
+
"2nde",
|
|
59
|
+
"2ndPro",
|
|
60
|
+
"1reESM",
|
|
61
|
+
"1rePro",
|
|
62
|
+
"1reSpé",
|
|
63
|
+
"1reTech",
|
|
64
|
+
"TermPro",
|
|
65
|
+
"TermTech",
|
|
66
|
+
],
|
|
67
|
+
sections: ["Puissances"],
|
|
48
68
|
isSingleStep: true,
|
|
49
|
-
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getPowersDivisionQuestion({ useOnlyPowersOfTen:
|
|
69
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getPowersDivisionQuestion({ useOnlyPowersOfTen: false }), nb),
|
|
50
70
|
qcmTimer: 60,
|
|
51
71
|
freeTimer: 60,
|
|
52
72
|
getPropositions,
|
|
73
|
+
isAnswerValid,
|
|
53
74
|
};
|
|
54
75
|
exports.powersOfTenDivision = {
|
|
55
|
-
id:
|
|
56
|
-
connector:
|
|
57
|
-
label:
|
|
58
|
-
levels: [
|
|
59
|
-
sections: [
|
|
76
|
+
id: "powersOfTenDivision",
|
|
77
|
+
connector: "=",
|
|
78
|
+
label: "Division de puissances de 10",
|
|
79
|
+
levels: ["4ème", "3ème", "2nde"],
|
|
80
|
+
sections: ["Puissances"],
|
|
60
81
|
isSingleStep: true,
|
|
61
82
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getPowersDivisionQuestion({ useOnlyPowersOfTen: true }), nb),
|
|
62
83
|
qcmTimer: 60,
|
|
63
84
|
freeTimer: 60,
|
|
64
85
|
getPropositions,
|
|
86
|
+
isAnswerValid,
|
|
65
87
|
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 10^(-x) into 0,0...1
|
|
3
3
|
*/
|
|
4
|
-
import { MathExercise } from
|
|
5
|
-
type
|
|
6
|
-
answer: string;
|
|
4
|
+
import { MathExercise } from "../exercise";
|
|
5
|
+
type Identifiers = {
|
|
7
6
|
randPower: number;
|
|
8
7
|
};
|
|
9
|
-
|
|
10
|
-
export declare const powersOfTenToDecimal: MathExercise<QCMProps, VEAProps>;
|
|
8
|
+
export declare const powersOfTenToDecimal: MathExercise<Identifiers>;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=powersOfTenToDecimal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EACL,YAAY,EAQb,MAAM,aAAa,CAAC;AAGrB,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AA4CF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,WAAW,CA2B1D,CAAC"}
|
|
@@ -15,15 +15,15 @@ const getPowersOfTenToDecimalQuestion = () => {
|
|
|
15
15
|
const randPower = (0, randint_1.randint)(-9, 10);
|
|
16
16
|
const statement = new powerNode_1.PowerNode(new numberNode_1.NumberNode(10), new numberNode_1.NumberNode(randPower));
|
|
17
17
|
const answerTree = new power_1.Power(10, randPower).toDecimalWriting().toTree();
|
|
18
|
-
const answer = answerTree.toTex().replace(
|
|
18
|
+
const answer = answerTree.toTex().replace(".", ",");
|
|
19
19
|
const statementTex = statement.toTex();
|
|
20
20
|
const question = {
|
|
21
21
|
instruction: `Donner l'écriture décimale de : $${statementTex}$`,
|
|
22
22
|
startStatement: statementTex,
|
|
23
23
|
answer,
|
|
24
24
|
keys: [],
|
|
25
|
-
answerFormat:
|
|
26
|
-
|
|
25
|
+
answerFormat: "tex",
|
|
26
|
+
identifiers: { randPower },
|
|
27
27
|
};
|
|
28
28
|
return question;
|
|
29
29
|
};
|
|
@@ -32,35 +32,41 @@ const getPropositions = (n, { answer, randPower }) => {
|
|
|
32
32
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
33
33
|
while (propositions.length < n) {
|
|
34
34
|
const wrongPower = randPower + (0, randint_1.randint)(-3, 4, [0]);
|
|
35
|
-
const wrongAnswerTree = new power_1.Power(10, wrongPower)
|
|
35
|
+
const wrongAnswerTree = new power_1.Power(10, wrongPower)
|
|
36
|
+
.toDecimalWriting()
|
|
37
|
+
.toTree();
|
|
36
38
|
const wrongAnswer = wrongAnswerTree.toTex();
|
|
37
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer.replace(".", ","));
|
|
38
40
|
}
|
|
39
41
|
return (0, shuffle_1.shuffle)(propositions);
|
|
40
42
|
};
|
|
43
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
44
|
+
return ans === answer;
|
|
45
|
+
};
|
|
41
46
|
exports.powersOfTenToDecimal = {
|
|
42
|
-
id:
|
|
43
|
-
connector:
|
|
47
|
+
id: "powersOfTenToDecimal",
|
|
48
|
+
connector: "=",
|
|
44
49
|
label: "Ecriture décimale d'une puissance de 10",
|
|
45
50
|
levels: [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
"5ème",
|
|
52
|
+
"4ème",
|
|
53
|
+
"3ème",
|
|
54
|
+
"2nde",
|
|
55
|
+
"CAP",
|
|
56
|
+
"2ndPro",
|
|
57
|
+
"1reESM",
|
|
58
|
+
"1rePro",
|
|
59
|
+
"1reSpé",
|
|
60
|
+
"1reTech",
|
|
61
|
+
"TermPro",
|
|
62
|
+
"TermTech",
|
|
58
63
|
],
|
|
59
|
-
sections: [
|
|
64
|
+
sections: ["Puissances"],
|
|
60
65
|
isSingleStep: true,
|
|
61
66
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowersOfTenToDecimalQuestion, nb, 19),
|
|
62
67
|
qcmTimer: 60,
|
|
63
68
|
freeTimer: 60,
|
|
64
69
|
maxAllowedQuestions: 19,
|
|
65
70
|
getPropositions,
|
|
71
|
+
isAnswerValid,
|
|
66
72
|
};
|