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
|
a: number;
|
|
5
4
|
power: number;
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export declare const powerFunctionDerivative: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const powerFunctionDerivative: MathExercise<Identifiers>;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=powerFunctionDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powerFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/powerFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"powerFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/powerFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAgHF,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,WAAW,CAc7D,CAAC"}
|
|
@@ -8,44 +8,64 @@ 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
10
|
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
11
|
-
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
12
11
|
const getPowerFunctionDerivative = () => {
|
|
13
12
|
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
14
13
|
const power = (0, randint_1.randint)(2, 10);
|
|
15
|
-
const statement =
|
|
16
|
-
const answerStatement =
|
|
14
|
+
const statement = new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(power)));
|
|
15
|
+
const answerStatement = power > 2
|
|
16
|
+
? new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * power), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(power - 1)))
|
|
17
|
+
: new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * power), new variableNode_1.VariableNode("x"));
|
|
17
18
|
const answer = answerStatement.toTex();
|
|
18
19
|
const question = {
|
|
19
20
|
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =${statement.toTex()}$.`,
|
|
20
21
|
startStatement: `f'(x)`,
|
|
21
22
|
answer,
|
|
22
|
-
keys: [
|
|
23
|
-
answerFormat:
|
|
24
|
-
|
|
23
|
+
keys: ["x"],
|
|
24
|
+
answerFormat: "tex",
|
|
25
|
+
identifiers: { a, power },
|
|
25
26
|
};
|
|
26
27
|
return question;
|
|
27
28
|
};
|
|
28
29
|
const getPropositions = (n, { answer, a, power }) => {
|
|
29
30
|
const propositions = [];
|
|
30
31
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
if (power === 2)
|
|
33
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode("x")).toTex());
|
|
34
|
+
if (power > 2)
|
|
35
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(power - 1))).toTex());
|
|
36
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * power), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(power))).toTex());
|
|
37
|
+
if (a !== 1)
|
|
38
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a - 1), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(power))).toTex());
|
|
34
39
|
while (propositions.length < n) {
|
|
35
40
|
const wrongExponent = (0, randint_1.randint)(2, 10);
|
|
36
|
-
|
|
41
|
+
if (wrongExponent === 2) {
|
|
42
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * wrongExponent), new variableNode_1.VariableNode("x")).toTex());
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * wrongExponent), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(wrongExponent - 1))).toTex());
|
|
46
|
+
}
|
|
37
47
|
}
|
|
38
48
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
39
49
|
};
|
|
50
|
+
const isAnswerValid = (ans, { a, power }) => {
|
|
51
|
+
const opts = { forbidPowerToProduct: true };
|
|
52
|
+
const answerTree = power > 2
|
|
53
|
+
? new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * power), new powerNode_1.PowerNode(new variableNode_1.VariableNode("x"), new numberNode_1.NumberNode(power - 1), opts), opts)
|
|
54
|
+
: new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * power), new variableNode_1.VariableNode("x"), opts);
|
|
55
|
+
const texs = answerTree.toAllValidTexs();
|
|
56
|
+
console.log(texs);
|
|
57
|
+
return texs.includes(ans);
|
|
58
|
+
};
|
|
40
59
|
exports.powerFunctionDerivative = {
|
|
41
|
-
id:
|
|
42
|
-
connector:
|
|
60
|
+
id: "powerFunctionDerivative",
|
|
61
|
+
connector: "=",
|
|
43
62
|
label: "Dérivée d'une fonction puissance",
|
|
44
|
-
levels: [
|
|
45
|
-
sections: [
|
|
63
|
+
levels: ["1reESM", "1reSpé", "1reTech", "MathComp"],
|
|
64
|
+
sections: ["Dérivation"],
|
|
46
65
|
isSingleStep: false,
|
|
47
66
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPowerFunctionDerivative, nb),
|
|
48
67
|
getPropositions,
|
|
68
|
+
isAnswerValid,
|
|
49
69
|
qcmTimer: 60,
|
|
50
70
|
freeTimer: 60,
|
|
51
71
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
poly1Coeffs: number[];
|
|
5
4
|
poly2Coeffs: number[];
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
export declare const productDerivative: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const productDerivative: MathExercise<Identifiers>;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=productDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/productDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,
|
|
1
|
+
{"version":3,"file":"productDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/productDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAQlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AA4DF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAavD,CAAC"}
|
|
@@ -12,9 +12,12 @@ const getProductDerivativeQuestion = () => {
|
|
|
12
12
|
const question = {
|
|
13
13
|
answer: answer,
|
|
14
14
|
instruction: `Déterminer la dérivée de la fonction $f$ définie par $f(x) = ${new multiplyNode_1.MultiplyNode(poly1.toTree(), poly2.toTree()).toTex()}$`,
|
|
15
|
-
keys: [
|
|
16
|
-
answerFormat:
|
|
17
|
-
|
|
15
|
+
keys: ["x", "xsquare", "xcube"],
|
|
16
|
+
answerFormat: "tex",
|
|
17
|
+
identifiers: {
|
|
18
|
+
poly1Coeffs: poly1.coefficients,
|
|
19
|
+
poly2Coeffs: poly2.coefficients,
|
|
20
|
+
},
|
|
18
21
|
};
|
|
19
22
|
return question;
|
|
20
23
|
};
|
|
@@ -31,15 +34,26 @@ const getPropositions = (n, { answer, poly1Coeffs, poly2Coeffs }) => {
|
|
|
31
34
|
}
|
|
32
35
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
33
36
|
};
|
|
37
|
+
const isAnswerValid = (ans, { poly1Coeffs, poly2Coeffs }) => {
|
|
38
|
+
const poly1 = new polynomial_1.Polynomial(poly1Coeffs);
|
|
39
|
+
const poly2 = new polynomial_1.Polynomial(poly2Coeffs);
|
|
40
|
+
const answer = poly1
|
|
41
|
+
.multiply(poly2)
|
|
42
|
+
.derivate()
|
|
43
|
+
.toTree({ forbidPowerToProduct: true });
|
|
44
|
+
const texs = answer.toAllValidTexs();
|
|
45
|
+
return texs.includes(ans);
|
|
46
|
+
};
|
|
34
47
|
exports.productDerivative = {
|
|
35
|
-
id:
|
|
36
|
-
connector:
|
|
48
|
+
id: "productDerivative",
|
|
49
|
+
connector: "=",
|
|
37
50
|
getPropositions,
|
|
38
51
|
label: "Dérivée d'un produit de polynômes",
|
|
39
|
-
levels: [
|
|
52
|
+
levels: ["1reSpé", "MathComp"],
|
|
40
53
|
isSingleStep: true,
|
|
41
|
-
sections: [
|
|
54
|
+
sections: ["Dérivation"],
|
|
42
55
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getProductDerivativeQuestion, nb),
|
|
43
56
|
qcmTimer: 60,
|
|
44
57
|
freeTimer: 60,
|
|
58
|
+
isAnswerValid,
|
|
45
59
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
4
|
-
answerDenum: string;
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
5
3
|
poly1Coeffs: number[];
|
|
6
4
|
poly2Coeffs: number[];
|
|
7
5
|
};
|
|
8
|
-
|
|
9
|
-
export declare const quotientDerivative: MathExercise<QCMProps, VEAProps>;
|
|
6
|
+
export declare const quotientDerivative: MathExercise<Identifiers>;
|
|
10
7
|
export {};
|
|
11
8
|
//# sourceMappingURL=quotientDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotientDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/quotientDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,
|
|
1
|
+
{"version":3,"file":"quotientDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/quotientDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC;AAoFF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAaxD,CAAC"}
|
|
@@ -9,40 +9,76 @@ const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
|
9
9
|
const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
|
|
10
10
|
const getProductDerivativeQuestion = () => {
|
|
11
11
|
const poly1 = polynomial_1.PolynomialConstructor.randomWithLength(2, 2);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
let poly2;
|
|
13
|
+
let isMultiple = false;
|
|
14
|
+
do {
|
|
15
|
+
poly2 = polynomial_1.PolynomialConstructor.randomWithLength(2, 2);
|
|
16
|
+
isMultiple =
|
|
17
|
+
poly2.degree === poly1.degree &&
|
|
18
|
+
poly2.coefficients.every((coeff, index) => coeff / poly1.coefficients[index] ===
|
|
19
|
+
poly2.coefficients[0] / poly1.coefficients[0]);
|
|
20
|
+
} while (isMultiple);
|
|
21
|
+
const answerNum = poly1
|
|
22
|
+
.derivate()
|
|
23
|
+
.multiply(poly2)
|
|
24
|
+
.add(poly1.opposite().multiply(poly2.derivate()))
|
|
25
|
+
.toTree();
|
|
26
|
+
const answerDenum = new powerNode_1.SquareNode(poly2.toTree());
|
|
27
|
+
const answer = new fractionNode_1.FractionNode(answerNum, answerDenum).toTex();
|
|
16
28
|
const question = {
|
|
17
29
|
answer,
|
|
18
30
|
instruction: `Déterminer la dérivée de la fonction $f$ définie par $f(x) = ${new fractionNode_1.FractionNode(poly1.toTree(), poly2.toTree()).toTex()}$`,
|
|
19
|
-
keys: [
|
|
20
|
-
answerFormat:
|
|
21
|
-
|
|
31
|
+
keys: ["x", "xsquare", "xcube"],
|
|
32
|
+
answerFormat: "tex",
|
|
33
|
+
identifiers: {
|
|
34
|
+
poly1Coeffs: poly1.coefficients,
|
|
35
|
+
poly2Coeffs: poly2.coefficients,
|
|
36
|
+
},
|
|
22
37
|
};
|
|
23
38
|
return question;
|
|
24
39
|
};
|
|
25
|
-
const getPropositions = (n, { answer,
|
|
40
|
+
const getPropositions = (n, { answer, poly1Coeffs, poly2Coeffs }) => {
|
|
26
41
|
const propositions = [];
|
|
27
42
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
28
43
|
const poly1 = new polynomial_1.Polynomial(poly1Coeffs);
|
|
29
44
|
const poly2 = new polynomial_1.Polynomial(poly2Coeffs);
|
|
30
|
-
|
|
45
|
+
const answerDenum = new powerNode_1.SquareNode(poly2.toTree()).toTex();
|
|
46
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{${poly1.derivate().toTree().toTex()}}{${poly2
|
|
47
|
+
.derivate()
|
|
48
|
+
.toTree()
|
|
49
|
+
.toTex()}}`);
|
|
31
50
|
while (propositions.length < n) {
|
|
32
|
-
const wrongAnswer = `\\frac{${polynomial_1.PolynomialConstructor.random(2)
|
|
51
|
+
const wrongAnswer = `\\frac{${polynomial_1.PolynomialConstructor.random(2)
|
|
52
|
+
.toTree()
|
|
53
|
+
.toTex()}}{${answerDenum}}`;
|
|
33
54
|
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
34
55
|
}
|
|
35
56
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
36
57
|
};
|
|
58
|
+
const isAnswerValid = (ans, { poly1Coeffs, poly2Coeffs }) => {
|
|
59
|
+
const poly1 = new polynomial_1.Polynomial(poly1Coeffs);
|
|
60
|
+
const poly2 = new polynomial_1.Polynomial(poly2Coeffs);
|
|
61
|
+
const answerNum = poly1
|
|
62
|
+
.derivate()
|
|
63
|
+
.multiply(poly2)
|
|
64
|
+
.add(poly1.opposite().multiply(poly2.derivate()))
|
|
65
|
+
.toTree({ forbidPowerToProduct: true });
|
|
66
|
+
const answerDenum = new powerNode_1.PowerNode(poly2.toTree(), new numberNode_1.NumberNode(2));
|
|
67
|
+
const answer = new fractionNode_1.FractionNode(answerNum, answerDenum);
|
|
68
|
+
const texs = answer.toAllValidTexs();
|
|
69
|
+
console.log(ans, texs);
|
|
70
|
+
return texs.includes(ans);
|
|
71
|
+
};
|
|
37
72
|
exports.quotientDerivative = {
|
|
38
|
-
id:
|
|
39
|
-
connector:
|
|
73
|
+
id: "quotientDerivative",
|
|
74
|
+
connector: "=",
|
|
40
75
|
label: "Dérivée d'un quotient de polynômes",
|
|
41
|
-
levels: [
|
|
76
|
+
levels: ["1reSpé", "MathComp"],
|
|
42
77
|
isSingleStep: true,
|
|
43
|
-
sections: [
|
|
78
|
+
sections: ["Dérivation"],
|
|
44
79
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getProductDerivativeQuestion, nb),
|
|
45
80
|
qcmTimer: 60,
|
|
46
81
|
freeTimer: 60,
|
|
47
82
|
getPropositions,
|
|
83
|
+
isAnswerValid,
|
|
48
84
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
a: number;
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export declare const rootFunctionDerivative: MathExercise<QCMProps, VEAProps>;
|
|
5
|
+
export declare const rootFunctionDerivative: MathExercise<Identifiers>;
|
|
8
6
|
export {};
|
|
9
7
|
//# sourceMappingURL=rootFunctionDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/rootFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"rootFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/rootFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAclC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAiEF,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,WAAW,CAa5D,CAAC"}
|
|
@@ -5,11 +5,16 @@ const exercise_1 = require("../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
7
|
const round_1 = require("../../../math/utils/round");
|
|
8
|
+
const sqrtNode_1 = require("../../../tree/nodes/functions/sqrtNode");
|
|
9
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
10
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
11
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
12
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
8
13
|
const shuffle_1 = require("../../../utils/shuffle");
|
|
9
14
|
const getRootFunctionDerivative = () => {
|
|
10
15
|
const a = (0, randint_1.randint)(-19, 20, [0]);
|
|
11
16
|
let instruction = `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =$ `;
|
|
12
|
-
let answer =
|
|
17
|
+
let answer = "";
|
|
13
18
|
if (a === 1)
|
|
14
19
|
instruction += `$\\sqrt{x}$.`;
|
|
15
20
|
else if (a === -1)
|
|
@@ -17,16 +22,16 @@ const getRootFunctionDerivative = () => {
|
|
|
17
22
|
else
|
|
18
23
|
instruction += `$${a}\\sqrt{x}$.`;
|
|
19
24
|
if (a % 2 === 0)
|
|
20
|
-
answer = `${a < 0 ?
|
|
25
|
+
answer = `${a < 0 ? "-" : ""}\\frac{${Math.abs(a / 2)}}{\\sqrt{x}}`;
|
|
21
26
|
else
|
|
22
|
-
answer = `${a < 0 ?
|
|
27
|
+
answer = `${a < 0 ? "-" : ""}\\frac{${Math.abs(a)}}{2\\sqrt{x}}`;
|
|
23
28
|
const question = {
|
|
24
29
|
instruction,
|
|
25
30
|
startStatement: `f'(x)`,
|
|
26
31
|
answer,
|
|
27
|
-
keys: [
|
|
28
|
-
answerFormat:
|
|
29
|
-
|
|
32
|
+
keys: ["x"],
|
|
33
|
+
answerFormat: "tex",
|
|
34
|
+
identifiers: { a },
|
|
30
35
|
};
|
|
31
36
|
return question;
|
|
32
37
|
};
|
|
@@ -48,15 +53,26 @@ const getPropositions = (n, { answer, a }) => {
|
|
|
48
53
|
}
|
|
49
54
|
return (0, shuffle_1.shuffle)(propositions);
|
|
50
55
|
};
|
|
56
|
+
const isAnswerValid = (ans, { a }) => {
|
|
57
|
+
let answer;
|
|
58
|
+
if (a % 2 === 0)
|
|
59
|
+
answer = new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a / 2), new sqrtNode_1.SqrtNode(new variableNode_1.VariableNode("x")));
|
|
60
|
+
else
|
|
61
|
+
answer = new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a), new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(2), new sqrtNode_1.SqrtNode(new variableNode_1.VariableNode("x"))));
|
|
62
|
+
const texs = answer.toAllValidTexs();
|
|
63
|
+
console.log(texs);
|
|
64
|
+
return texs.includes(ans);
|
|
65
|
+
};
|
|
51
66
|
exports.rootFunctionDerivative = {
|
|
52
|
-
id:
|
|
53
|
-
connector:
|
|
67
|
+
id: "rootFunctionDerivative",
|
|
68
|
+
connector: "=",
|
|
54
69
|
label: "Dérivée d'une fonction racine",
|
|
55
|
-
levels: [
|
|
56
|
-
sections: [
|
|
70
|
+
levels: ["1reESM", "1reSpé", "1reTech", "MathComp"],
|
|
71
|
+
sections: ["Dérivation", "Racines carrées"],
|
|
57
72
|
isSingleStep: false,
|
|
58
73
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getRootFunctionDerivative, nb),
|
|
59
74
|
qcmTimer: 60,
|
|
60
75
|
freeTimer: 60,
|
|
61
76
|
getPropositions,
|
|
77
|
+
isAnswerValid,
|
|
62
78
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { MathExercise, QCMGenerator, QuestionGenerator } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise, QCMGenerator, QuestionGenerator, VEA } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
coefficients: number[];
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const secondDegreeDerivative: MathExercise<
|
|
5
|
+
export declare const getSecondDegreeDerivative: QuestionGenerator<Identifiers>;
|
|
6
|
+
export declare const getSecondDegreeDerivativePropositions: QCMGenerator<Identifiers>;
|
|
7
|
+
export declare const isSecondDegreeDerivativeAnswerValid: VEA<Identifiers>;
|
|
8
|
+
export declare const secondDegreeDerivative: MathExercise<Identifiers>;
|
|
10
9
|
export {};
|
|
11
10
|
//# sourceMappingURL=secondDegreeDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/secondDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,YAAY,EAEZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"secondDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/secondDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAGJ,MAAM,0BAA0B,CAAC;AAOlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAAiB,CAAC,WAAW,CAgBpE,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,YAAY,CAC9D,WAAW,CA4BZ,CAAC;AACF,eAAO,MAAM,mCAAmC,EAAE,GAAG,CAAC,WAAW,CAShE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,WAAW,CAqB5D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.secondDegreeDerivative = exports.getSecondDegreeDerivativePropositions = exports.getSecondDegreeDerivative = void 0;
|
|
3
|
+
exports.secondDegreeDerivative = exports.isSecondDegreeDerivativeAnswerValid = exports.getSecondDegreeDerivativePropositions = exports.getSecondDegreeDerivative = void 0;
|
|
4
4
|
const exercise_1 = require("../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
@@ -15,9 +15,9 @@ const getSecondDegreeDerivative = () => {
|
|
|
15
15
|
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}$.`,
|
|
16
16
|
startStatement: `f'(x)`,
|
|
17
17
|
answer,
|
|
18
|
-
keys: [
|
|
19
|
-
answerFormat:
|
|
20
|
-
|
|
18
|
+
keys: ["x"],
|
|
19
|
+
answerFormat: "tex",
|
|
20
|
+
identifiers: { coefficients },
|
|
21
21
|
};
|
|
22
22
|
return question;
|
|
23
23
|
};
|
|
@@ -28,7 +28,9 @@ const getSecondDegreeDerivativePropositions = (n, { answer, coefficients }) => {
|
|
|
28
28
|
if (coefficients[1] !== 0)
|
|
29
29
|
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([coefficients[0], coefficients[1]]).toTree().toTex());
|
|
30
30
|
if (coefficients[1] !== 0)
|
|
31
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([coefficients[0] + coefficients[1], coefficients[1]])
|
|
31
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([coefficients[0] + coefficients[1], coefficients[1]])
|
|
32
|
+
.toTree()
|
|
33
|
+
.toTex());
|
|
32
34
|
while (propositions.length < n) {
|
|
33
35
|
const randomCoefficients = [
|
|
34
36
|
(0, randint_1.randint)(-9, 10),
|
|
@@ -41,15 +43,32 @@ const getSecondDegreeDerivativePropositions = (n, { answer, coefficients }) => {
|
|
|
41
43
|
return (0, shuffle_1.shuffle)(propositions);
|
|
42
44
|
};
|
|
43
45
|
exports.getSecondDegreeDerivativePropositions = getSecondDegreeDerivativePropositions;
|
|
46
|
+
const isSecondDegreeDerivativeAnswerValid = (ans, { coefficients }) => {
|
|
47
|
+
const polynomial = new polynomial_1.Polynomial(coefficients);
|
|
48
|
+
const derivative = polynomial.derivate().toTree();
|
|
49
|
+
const texs = derivative.toAllValidTexs();
|
|
50
|
+
console.log(texs);
|
|
51
|
+
return texs.includes(ans);
|
|
52
|
+
};
|
|
53
|
+
exports.isSecondDegreeDerivativeAnswerValid = isSecondDegreeDerivativeAnswerValid;
|
|
44
54
|
exports.secondDegreeDerivative = {
|
|
45
|
-
id:
|
|
46
|
-
connector:
|
|
55
|
+
id: "secondDegreeDerivative",
|
|
56
|
+
connector: "=",
|
|
47
57
|
label: "Dérivée d'un polynôme de degré 2",
|
|
48
|
-
levels: [
|
|
49
|
-
|
|
58
|
+
levels: [
|
|
59
|
+
"1reESM",
|
|
60
|
+
"1reSpé",
|
|
61
|
+
"1reTech",
|
|
62
|
+
"MathComp",
|
|
63
|
+
"1rePro",
|
|
64
|
+
"TermPro",
|
|
65
|
+
"TermTech",
|
|
66
|
+
],
|
|
67
|
+
sections: ["Dérivation"],
|
|
50
68
|
isSingleStep: false,
|
|
51
69
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(exports.getSecondDegreeDerivative, nb),
|
|
52
70
|
qcmTimer: 60,
|
|
53
71
|
freeTimer: 60,
|
|
54
72
|
getPropositions: exports.getSecondDegreeDerivativePropositions,
|
|
73
|
+
isAnswerValid: exports.isSecondDegreeDerivativeAnswerValid,
|
|
55
74
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { MathExercise, QCMGenerator, QuestionGenerator } from
|
|
2
|
-
type
|
|
3
|
-
answer: string;
|
|
1
|
+
import { MathExercise, QCMGenerator, QuestionGenerator, VEA } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
4
3
|
coefficients: number[];
|
|
5
4
|
};
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const thirdDegreeDerivative: MathExercise<
|
|
5
|
+
export declare const getThirdDegreeDerivative: QuestionGenerator<Identifiers>;
|
|
6
|
+
export declare const getThirdDegreeDerivativePropositions: QCMGenerator<Identifiers>;
|
|
7
|
+
export declare const isThirdDegreeDerivativeAnswerValid: VEA<Identifiers>;
|
|
8
|
+
export declare const thirdDegreeDerivative: MathExercise<Identifiers>;
|
|
10
9
|
export {};
|
|
11
10
|
//# sourceMappingURL=thirdDegreeDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,YAAY,EAEZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,YAAY,EAEZ,iBAAiB,EACjB,GAAG,EAIJ,MAAM,0BAA0B,CAAC;AAKlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,WAAW,CAoBnE,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,YAAY,CAAC,WAAW,CAqC1E,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,GAAG,CAAC,WAAW,CAS/D,CAAC;AACF,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAoB3D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.thirdDegreeDerivative = exports.getThirdDegreeDerivativePropositions = exports.getThirdDegreeDerivative = void 0;
|
|
3
|
+
exports.thirdDegreeDerivative = exports.isThirdDegreeDerivativeAnswerValid = exports.getThirdDegreeDerivativePropositions = exports.getThirdDegreeDerivative = void 0;
|
|
4
4
|
const exercise_1 = require("../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
@@ -17,9 +17,9 @@ const getThirdDegreeDerivative = () => {
|
|
|
17
17
|
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toString()}$.`,
|
|
18
18
|
startStatement: `f'(x)`,
|
|
19
19
|
answer: answer,
|
|
20
|
-
keys: [
|
|
21
|
-
answerFormat:
|
|
22
|
-
|
|
20
|
+
keys: ["x"],
|
|
21
|
+
answerFormat: "tex",
|
|
22
|
+
identifiers: { coefficients },
|
|
23
23
|
};
|
|
24
24
|
return question;
|
|
25
25
|
};
|
|
@@ -28,9 +28,17 @@ const getThirdDegreeDerivativePropositions = (n, { answer, coefficients }) => {
|
|
|
28
28
|
const propositions = [];
|
|
29
29
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
30
30
|
if (coefficients[2] !== 0)
|
|
31
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([coefficients[0], coefficients[1], coefficients[2]])
|
|
31
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([coefficients[0], coefficients[1], coefficients[2]])
|
|
32
|
+
.toTree()
|
|
33
|
+
.toTex());
|
|
32
34
|
if (coefficients[2] !== 0)
|
|
33
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([
|
|
35
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([
|
|
36
|
+
coefficients[0] + coefficients[1],
|
|
37
|
+
coefficients[1],
|
|
38
|
+
coefficients[2],
|
|
39
|
+
])
|
|
40
|
+
.toTree()
|
|
41
|
+
.toTex());
|
|
34
42
|
while (propositions.length < n) {
|
|
35
43
|
const randomCoefficients = [];
|
|
36
44
|
for (let j = 1; j <= 3; j++)
|
|
@@ -42,15 +50,32 @@ const getThirdDegreeDerivativePropositions = (n, { answer, coefficients }) => {
|
|
|
42
50
|
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
43
51
|
};
|
|
44
52
|
exports.getThirdDegreeDerivativePropositions = getThirdDegreeDerivativePropositions;
|
|
53
|
+
const isThirdDegreeDerivativeAnswerValid = (ans, { coefficients }) => {
|
|
54
|
+
const polynomial = new polynomial_1.Polynomial(coefficients);
|
|
55
|
+
const derivative = polynomial.derivate().toTree();
|
|
56
|
+
const texs = derivative.toAllValidTexs();
|
|
57
|
+
console.log(texs);
|
|
58
|
+
return texs.includes(ans);
|
|
59
|
+
};
|
|
60
|
+
exports.isThirdDegreeDerivativeAnswerValid = isThirdDegreeDerivativeAnswerValid;
|
|
45
61
|
exports.thirdDegreeDerivative = {
|
|
46
|
-
id:
|
|
47
|
-
connector:
|
|
62
|
+
id: "thirdDegreeDerivative",
|
|
63
|
+
connector: "=",
|
|
48
64
|
label: "Dérivée d'un polynôme de degré 3",
|
|
49
|
-
levels: [
|
|
50
|
-
|
|
65
|
+
levels: [
|
|
66
|
+
"1reESM",
|
|
67
|
+
"1reSpé",
|
|
68
|
+
"1reTech",
|
|
69
|
+
"MathComp",
|
|
70
|
+
"1rePro",
|
|
71
|
+
"TermPro",
|
|
72
|
+
"TermTech",
|
|
73
|
+
],
|
|
74
|
+
sections: ["Dérivation"],
|
|
51
75
|
isSingleStep: false,
|
|
52
76
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(exports.getThirdDegreeDerivative, nb),
|
|
53
77
|
qcmTimer: 60,
|
|
54
78
|
freeTimer: 60,
|
|
55
79
|
getPropositions: exports.getThirdDegreeDerivativePropositions,
|
|
80
|
+
isAnswerValid: exports.isThirdDegreeDerivativeAnswerValid,
|
|
56
81
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
a: number;
|
|
4
|
+
coin: number;
|
|
4
5
|
racine1: number;
|
|
5
6
|
racine2: number;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
export declare const thirdDegreeFunctionVariation: MathExercise<QCMProps, VEAProps>;
|
|
8
|
+
export declare const thirdDegreeFunctionVariation: MathExercise<Identifiers>;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=thirdDegreeFunctionVariation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAkGF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CAsBlE,CAAC"}
|