math-exercises 2.0.1 → 2.0.3
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 +6 -7
- package/lib/exercises/calcul/addAndSub.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSub.js +63 -57
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts +6 -7
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSubWithoutRelatives.js +73 -66
- package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts +9 -13
- package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/euclideanDivision.js +60 -61
- 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 +4 -6
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.js +115 -113
- package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts +6 -10
- package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/primeNumbers.js +105 -104
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts +8 -14
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +77 -73
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts +7 -12
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +68 -61
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts +7 -12
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +67 -62
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts +8 -10
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +157 -111
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts +7 -9
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsDivision.js +62 -53
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts +7 -9
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsProduct.js +60 -51
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts +7 -9
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsSum.js +60 -51
- 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 +7 -7
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/simplifyFraction.js +52 -42
- 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 +17 -14
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPriorities.js +121 -113
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +18 -14
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +202 -194
- 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 +10 -7
- package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
- package/lib/exercises/calcul/proportionality/proportionalityTable.js +65 -61
- 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 +21 -23
- package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
- package/lib/exercises/calcul/rounding/rounding.js +141 -121
- package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts +10 -12
- package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/allIdentities.js +72 -52
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts +7 -9
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +74 -58
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts +10 -11
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +64 -56
- 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 +10 -11
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +65 -57
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts +8 -10
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +61 -54
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts +10 -11
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +69 -57
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts +6 -9
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +140 -94
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts +10 -12
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +60 -50
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts +10 -12
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +64 -51
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts +11 -13
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +68 -56
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts +12 -14
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +75 -58
- package/lib/exercises/calculLitteral/equation/expEquation.d.ts +7 -7
- package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/expEquation.js +75 -51
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts +7 -9
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +58 -45
- package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts +9 -7
- package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/fractionEquation.js +82 -58
- 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 +7 -7
- package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/logEquation.js +74 -52
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts +9 -7
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +78 -65
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts +7 -9
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +58 -51
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts +7 -9
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +60 -53
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts +7 -9
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +66 -55
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts +10 -12
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +91 -58
- 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 +8 -10
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.js +68 -48
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts +8 -10
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.js +80 -50
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts +9 -10
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.js +83 -50
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts +11 -10
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.js +92 -51
- 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 +9 -7
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +63 -48
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts +9 -8
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +116 -81
- 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 +8 -8
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +77 -61
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts +8 -9
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +114 -107
- package/lib/exercises/combinatory/anagrams.d.ts +6 -8
- package/lib/exercises/combinatory/anagrams.d.ts.map +1 -1
- package/lib/exercises/combinatory/anagrams.js +161 -157
- package/lib/exercises/combinatory/ballsCounting.d.ts +9 -11
- package/lib/exercises/combinatory/ballsCounting.d.ts.map +1 -1
- package/lib/exercises/combinatory/ballsCounting.js +110 -103
- package/lib/exercises/combinatory/diceCounting.d.ts +6 -8
- package/lib/exercises/combinatory/diceCounting.d.ts.map +1 -1
- package/lib/exercises/combinatory/diceCounting.js +122 -118
- 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 +9 -11
- package/lib/exercises/complex/addComplex.d.ts.map +1 -1
- package/lib/exercises/complex/addComplex.js +64 -51
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts +0 -9
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/complex/argumentFromAlgebraicComplex.js +52 -37
- package/lib/exercises/complex/conjugateComplex.ts.d.ts +7 -9
- package/lib/exercises/complex/conjugateComplex.ts.d.ts.map +1 -1
- package/lib/exercises/complex/conjugateComplex.ts.js +54 -46
- package/lib/exercises/complex/conjugateDivideComplex.d.ts +7 -7
- package/lib/exercises/complex/conjugateDivideComplex.d.ts.map +1 -1
- package/lib/exercises/complex/conjugateDivideComplex.js +61 -49
- package/lib/exercises/complex/conjugateMultiplyComplex.d.ts +7 -9
- package/lib/exercises/complex/conjugateMultiplyComplex.d.ts.map +1 -1
- package/lib/exercises/complex/conjugateMultiplyComplex.js +61 -51
- package/lib/exercises/complex/divideComplex.d.ts +7 -7
- package/lib/exercises/complex/divideComplex.d.ts.map +1 -1
- package/lib/exercises/complex/divideComplex.js +58 -45
- 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 +7 -9
- package/lib/exercises/complex/inverseComplex.d.ts.map +1 -1
- package/lib/exercises/complex/inverseComplex.js +54 -46
- package/lib/exercises/complex/linearCombinaisonComplex.d.ts +9 -7
- package/lib/exercises/complex/linearCombinaisonComplex.d.ts.map +1 -1
- package/lib/exercises/complex/linearCombinaisonComplex.js +59 -51
- package/lib/exercises/complex/moduloFromAlgebraicComplex.d.ts +7 -9
- package/lib/exercises/complex/moduloFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/complex/moduloFromAlgebraicComplex.js +55 -43
- package/lib/exercises/complex/mutiplyComplex.d.ts +7 -9
- package/lib/exercises/complex/mutiplyComplex.d.ts.map +1 -1
- package/lib/exercises/complex/mutiplyComplex.js +58 -47
- package/lib/exercises/complex/reAndIm.d.ts +8 -10
- package/lib/exercises/complex/reAndIm.d.ts.map +1 -1
- package/lib/exercises/complex/reAndIm.js +50 -46
- package/lib/exercises/conversion/aeraConversion.d.ts +8 -10
- package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/aeraConversion.js +60 -47
- package/lib/exercises/conversion/capacityConversion.d.ts +8 -10
- package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/capacityConversion.js +58 -45
- 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 +8 -10
- package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/lengthConversion.js +58 -45
- package/lib/exercises/conversion/massConversion.d.ts +8 -10
- package/lib/exercises/conversion/massConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/massConversion.js +58 -45
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts +9 -7
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/volumeCapacityConversion.js +74 -62
- package/lib/exercises/conversion/volumeConversion.d.ts +8 -10
- package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/volumeConversion.js +60 -47
- package/lib/exercises/derivation/derivative/constanteDerivative.d.ts +9 -10
- package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/constanteDerivative.js +54 -49
- package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts +7 -9
- package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/expDerivativeOne.js +62 -54
- package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts +7 -9
- package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/expDerivativeThree.js +55 -49
- package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts +7 -9
- package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/expDerivativeTwo.js +57 -52
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts +10 -11
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +52 -47
- 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 +6 -8
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +55 -44
- package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts +7 -9
- package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/lnDerivativeOne.js +68 -55
- package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts +7 -9
- package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/lnDerivativeThree.js +83 -61
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts +7 -9
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +60 -55
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts +7 -9
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +71 -51
- package/lib/exercises/derivation/derivative/productDerivative.d.ts +7 -9
- package/lib/exercises/derivation/derivative/productDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/productDerivative.js +59 -45
- package/lib/exercises/derivation/derivative/quotientDerivative.d.ts +7 -10
- package/lib/exercises/derivation/derivative/quotientDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/quotientDerivative.js +84 -48
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts +6 -8
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +78 -62
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts +9 -10
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +74 -55
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts +9 -10
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +81 -56
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts +9 -9
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +99 -66
- package/lib/exercises/derivation/derivative/usualderivative.d.ts +10 -12
- package/lib/exercises/derivation/derivative/usualderivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/usualderivative.js +108 -67
- package/lib/exercises/derivation/derivativeNumberCalcul.d.ts +7 -7
- package/lib/exercises/derivation/derivativeNumberCalcul.d.ts.map +1 -1
- package/lib/exercises/derivation/derivativeNumberCalcul.js +48 -42
- package/lib/exercises/derivation/derivativeNumberReading.d.ts +7 -9
- package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
- package/lib/exercises/derivation/derivativeNumberReading.js +85 -75
- 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 +6 -7
- package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts.map +1 -1
- package/lib/exercises/equaDiff/equaDiffGeneralForme.js +58 -51
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts +7 -7
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -1
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +68 -65
- 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 +50 -45
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercise.js +38 -38
- package/lib/exercises/functions/absolute/absoluteValueEquations.d.ts +7 -9
- package/lib/exercises/functions/absolute/absoluteValueEquations.d.ts.map +1 -1
- package/lib/exercises/functions/absolute/absoluteValueEquations.js +74 -56
- package/lib/exercises/functions/absolute/absoluteValueInequations.d.ts +8 -9
- package/lib/exercises/functions/absolute/absoluteValueInequations.d.ts.map +1 -1
- package/lib/exercises/functions/absolute/absoluteValueInequations.js +69 -47
- 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 +9 -11
- package/lib/exercises/functions/affines/leadingCoefficient.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficient.js +83 -84
- package/lib/exercises/functions/affines/leadingCoefficientCalculV1.d.ts +9 -11
- package/lib/exercises/functions/affines/leadingCoefficientCalculV1.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficientCalculV1.js +55 -47
- package/lib/exercises/functions/affines/leadingCoefficientCalculV2.d.ts +9 -11
- package/lib/exercises/functions/affines/leadingCoefficientCalculV2.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficientCalculV2.js +54 -46
- package/lib/exercises/functions/affines/signFunction.d.ts +8 -7
- package/lib/exercises/functions/affines/signFunction.d.ts.map +1 -1
- package/lib/exercises/functions/affines/signFunction.js +83 -68
- package/lib/exercises/functions/basics/imageFunction.d.ts +9 -7
- package/lib/exercises/functions/basics/imageFunction.d.ts.map +1 -1
- package/lib/exercises/functions/basics/imageFunction.js +64 -49
- package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts +9 -7
- package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/functions/basics/imageFunctionGeogebra.js +91 -74
- 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 +7 -7
- package/lib/exercises/functions/basics/inverseImageFunction.d.ts.map +1 -1
- package/lib/exercises/functions/basics/inverseImageFunction.js +52 -48
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts +10 -10
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.js +188 -145
- package/lib/exercises/functions/cube/cubicEquation.d.ts +6 -8
- package/lib/exercises/functions/cube/cubicEquation.d.ts.map +1 -1
- package/lib/exercises/functions/cube/cubicEquation.js +55 -43
- 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 +9 -11
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.d.ts.map +1 -1
- package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.js +64 -56
- package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.d.ts +7 -7
- package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.js +51 -45
- package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.d.ts +9 -11
- package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.js +66 -58
- package/lib/exercises/functions/trinoms/canonicalFromDevForm.d.ts +8 -8
- package/lib/exercises/functions/trinoms/canonicalFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/canonicalFromDevForm.js +52 -43
- package/lib/exercises/functions/trinoms/deltaTrinom.d.ts +8 -10
- package/lib/exercises/functions/trinoms/deltaTrinom.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/deltaTrinom.js +52 -45
- package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.d.ts +8 -10
- package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.js +57 -48
- package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.d.ts +8 -8
- package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.js +43 -41
- 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 +8 -7
- package/lib/exercises/functions/trinoms/niceRootsFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/niceRootsFromDevForm.js +56 -44
- package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts +8 -7
- package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/rootsFromDevForm.js +56 -44
- package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts +8 -10
- package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.js +70 -57
- package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.d.ts +8 -8
- package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.d.ts.map +1 -1
- package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.js +44 -40
- 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 +7 -9
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +95 -65
- 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 +7 -7
- package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/midpoint.js +63 -48
- 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 +7 -8
- package/lib/exercises/geometry/vectors/chasles.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/chasles.js +63 -56
- package/lib/exercises/geometry/vectors/coordinatesReading.d.ts +9 -11
- package/lib/exercises/geometry/vectors/coordinatesReading.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/coordinatesReading.js +66 -62
- package/lib/exercises/geometry/vectors/determinant.d.ts +7 -9
- package/lib/exercises/geometry/vectors/determinant.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/determinant.js +54 -47
- 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 +7 -7
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +52 -45
- package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts +7 -9
- package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.js +52 -48
- 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 +7 -8
- package/lib/exercises/limits/polynomLimit.d.ts.map +1 -1
- package/lib/exercises/limits/polynomLimit.js +53 -47
- package/lib/exercises/limits/polynomLimitNoFI.d.ts +7 -8
- package/lib/exercises/limits/polynomLimitNoFI.d.ts.map +1 -1
- package/lib/exercises/limits/polynomLimitNoFI.js +53 -47
- package/lib/exercises/limits/rationalFracForbiddenValueLimit.d.ts +8 -8
- package/lib/exercises/limits/rationalFracForbiddenValueLimit.d.ts.map +1 -1
- package/lib/exercises/limits/rationalFracForbiddenValueLimit.js +73 -61
- package/lib/exercises/limits/rationalFracLimit.d.ts +8 -8
- package/lib/exercises/limits/rationalFracLimit.d.ts.map +1 -1
- package/lib/exercises/limits/rationalFracLimit.js +101 -64
- package/lib/exercises/limits/sequenceGeometricLimit.d.ts +7 -9
- package/lib/exercises/limits/sequenceGeometricLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequenceGeometricLimit.js +51 -43
- package/lib/exercises/limits/sequencePolynomLimit.d.ts +6 -8
- package/lib/exercises/limits/sequencePolynomLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequencePolynomLimit.js +52 -46
- package/lib/exercises/limits/sequencePolynomNoFILimit.d.ts +6 -8
- package/lib/exercises/limits/sequencePolynomNoFILimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequencePolynomNoFILimit.js +52 -46
- package/lib/exercises/limits/sequencePolynomProductLimit.d.ts +7 -8
- package/lib/exercises/limits/sequencePolynomProductLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequencePolynomProductLimit.js +70 -54
- package/lib/exercises/limits/sequenceRationalFracLimit.d.ts +7 -8
- package/lib/exercises/limits/sequenceRationalFracLimit.d.ts.map +1 -1
- package/lib/exercises/limits/sequenceRationalFracLimit.js +100 -63
- package/lib/exercises/percent/applyPercent.d.ts +8 -7
- package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/percent/applyPercent.js +78 -60
- package/lib/exercises/percent/averageEvolutionRate.d.ts +7 -7
- package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/percent/averageEvolutionRate.js +54 -48
- package/lib/exercises/percent/evolutionToCM.d.ts +7 -9
- package/lib/exercises/percent/evolutionToCM.d.ts.map +1 -1
- package/lib/exercises/percent/evolutionToCM.js +64 -55
- package/lib/exercises/percent/globalPercent.d.ts +6 -7
- package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
- package/lib/exercises/percent/globalPercent.js +71 -61
- 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 +7 -7
- package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
- package/lib/exercises/percent/reciprocalPercentage.js +61 -50
- package/lib/exercises/powers/calculateNegativePower.d.ts +7 -9
- package/lib/exercises/powers/calculateNegativePower.d.ts.map +1 -1
- package/lib/exercises/powers/calculateNegativePower.js +73 -57
- package/lib/exercises/powers/calculatePower.d.ts +7 -9
- package/lib/exercises/powers/calculatePower.d.ts.map +1 -1
- package/lib/exercises/powers/calculatePower.js +65 -61
- package/lib/exercises/powers/decimalToScientific.d.ts +6 -8
- package/lib/exercises/powers/decimalToScientific.d.ts.map +1 -1
- package/lib/exercises/powers/decimalToScientific.js +76 -69
- 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 +7 -9
- package/lib/exercises/powers/powerDefinition.d.ts.map +1 -1
- package/lib/exercises/powers/powerDefinition.js +55 -50
- package/lib/exercises/powers/powersDivision.d.ts +12 -14
- package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
- package/lib/exercises/powers/powersDivision.js +87 -65
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts +9 -11
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/powersOfTenToDecimal.js +72 -66
- package/lib/exercises/powers/powersPower.d.ts +12 -14
- package/lib/exercises/powers/powersPower.d.ts.map +1 -1
- package/lib/exercises/powers/powersPower.js +94 -71
- package/lib/exercises/powers/powersProduct.d.ts +12 -14
- package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
- package/lib/exercises/powers/powersProduct.js +89 -66
- package/lib/exercises/powers/scientificToDecimal.d.ts +10 -12
- package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/scientificToDecimal.js +72 -66
- 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 +7 -9
- package/lib/exercises/probaStat/ballsBasicProbas.d.ts.map +1 -1
- package/lib/exercises/probaStat/ballsBasicProbas.js +63 -51
- package/lib/exercises/probaStat/cardBasicProbas.d.ts +6 -8
- package/lib/exercises/probaStat/cardBasicProbas.d.ts.map +1 -1
- package/lib/exercises/probaStat/cardBasicProbas.js +104 -83
- package/lib/exercises/probaStat/conditionalProbability.d.ts +9 -7
- package/lib/exercises/probaStat/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/probaStat/conditionalProbability.js +91 -86
- package/lib/exercises/probaStat/diceBasicProbas.d.ts +8 -10
- package/lib/exercises/probaStat/diceBasicProbas.d.ts.map +1 -1
- package/lib/exercises/probaStat/diceBasicProbas.js +77 -61
- 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 +12 -16
- package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -1
- package/lib/exercises/probaStat/probabilityTree.js +140 -129
- 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 +7 -7
- package/lib/exercises/probaStat/stats2var/averagePoint.d.ts.map +1 -1
- package/lib/exercises/probaStat/stats2var/averagePoint.js +65 -47
- 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 +8 -10
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +48 -44
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts +7 -9
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +55 -43
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts +8 -7
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +48 -44
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts +8 -7
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +47 -43
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts +8 -7
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +47 -43
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts +8 -10
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +57 -53
- package/lib/exercises/sequences/arithmetic/firstIntegersSum.d.ts +6 -8
- package/lib/exercises/sequences/arithmetic/firstIntegersSum.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/firstIntegersSum.js +46 -42
- 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 +7 -9
- package/lib/exercises/sequences/explicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/explicitFormulaUsage.js +50 -46
- package/lib/exercises/sequences/genericSequenceVariations.d.ts +6 -8
- package/lib/exercises/sequences/genericSequenceVariations.d.ts.map +1 -1
- package/lib/exercises/sequences/genericSequenceVariations.js +52 -48
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts +8 -10
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +52 -49
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts +7 -9
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +60 -49
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts +8 -9
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindReason.js +51 -46
- package/lib/exercises/sequences/geometric/geometricFirstTermsSum.d.ts +7 -9
- package/lib/exercises/sequences/geometric/geometricFirstTermsSum.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFirstTermsSum.js +55 -43
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts +8 -9
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricReasonUsage.js +49 -45
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts +8 -9
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +49 -45
- 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 +8 -10
- package/lib/exercises/sequences/recurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/recurrenceFormulaUsage.js +55 -51
- 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 +7 -9
- package/lib/exercises/sets/intervals/inequalityToInterval.d.ts.map +1 -1
- package/lib/exercises/sets/intervals/inequalityToInterval.js +145 -98
- package/lib/exercises/sets/intervals/intervalsIntersection.d.ts +7 -9
- package/lib/exercises/sets/intervals/intervalsIntersection.d.ts.map +1 -1
- package/lib/exercises/sets/intervals/intervalsIntersection.js +56 -44
- package/lib/exercises/sets/intervals/intervalsUnion.d.ts +7 -9
- package/lib/exercises/sets/intervals/intervalsUnion.d.ts.map +1 -1
- package/lib/exercises/sets/intervals/intervalsUnion.js +48 -44
- package/lib/exercises/sets/setBelonging.d.ts +7 -7
- package/lib/exercises/sets/setBelonging.d.ts.map +1 -1
- package/lib/exercises/sets/setBelonging.js +84 -71
- 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 +6 -7
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
- package/lib/exercises/squareRoots/simpifySquareRoot.js +54 -48
- package/lib/exercises/squareRoots/squareRootEquation.d.ts +6 -8
- package/lib/exercises/squareRoots/squareRootEquation.d.ts.map +1 -1
- package/lib/exercises/squareRoots/squareRootEquation.js +54 -44
- 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 +7 -7
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/mainRemarkableValues.js +69 -56
- package/lib/exercises/trigonometry/remarkableValues.d.ts +7 -7
- package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/exercises/trigonometry/remarkableValues.js +70 -59
- 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/cardsData.d.ts +21 -21
- package/lib/exercises/utils/cardsData.js +26 -26
- package/lib/exercises/utils/geogebra/getAdaptedCoords.js +1 -1
- package/lib/exercises/utils/getDistinctQuestions.d.ts +10 -10
- package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
- package/lib/exercises/utils/getDistinctQuestions.js +37 -38
- 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 +694 -15
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +61 -33
- package/lib/math/complex/complex.d.ts +24 -23
- package/lib/math/complex/complex.d.ts.map +1 -1
- package/lib/math/complex/complex.js +104 -106
- package/lib/math/geometry/point.d.ts +31 -32
- package/lib/math/geometry/point.d.ts.map +1 -1
- package/lib/math/geometry/point.js +73 -72
- package/lib/math/geometry/triangles.d.ts +53 -53
- package/lib/math/geometry/triangles.js +183 -183
- package/lib/math/geometry/vector.d.ts +17 -17
- package/lib/math/geometry/vector.d.ts.map +1 -1
- package/lib/math/geometry/vector.js +49 -39
- package/lib/math/numbers/decimals/decimal.d.ts +27 -27
- package/lib/math/numbers/decimals/decimal.d.ts.map +1 -1
- package/lib/math/numbers/decimals/decimal.js +187 -184
- package/lib/math/numbers/epsilon.d.ts +1 -1
- package/lib/math/numbers/epsilon.js +10 -10
- package/lib/math/numbers/integer/integer.d.ts +20 -16
- package/lib/math/numbers/integer/integer.d.ts.map +1 -1
- package/lib/math/numbers/integer/integer.js +111 -84
- package/lib/math/numbers/integer/power.d.ts +13 -13
- package/lib/math/numbers/integer/power.d.ts.map +1 -1
- package/lib/math/numbers/integer/power.js +52 -52
- package/lib/math/numbers/integer/primes.d.ts +1 -1
- package/lib/math/numbers/integer/primes.d.ts.map +1 -1
- package/lib/math/numbers/integer/primes.js +7 -4
- package/lib/math/numbers/nombre.d.ts +17 -22
- package/lib/math/numbers/nombre.d.ts.map +1 -1
- package/lib/math/numbers/nombre.js +37 -32
- package/lib/math/numbers/rationals/rational.d.ts +28 -31
- package/lib/math/numbers/rationals/rational.d.ts.map +1 -1
- package/lib/math/numbers/rationals/rational.js +132 -126
- package/lib/math/numbers/reals/extendedRingElement.d.ts +14 -12
- package/lib/math/numbers/reals/extendedRingElement.d.ts.map +1 -1
- package/lib/math/numbers/reals/extendedRingElement.js +41 -41
- package/lib/math/numbers/reals/real.d.ts +31 -30
- package/lib/math/numbers/reals/real.d.ts.map +1 -1
- package/lib/math/numbers/reals/real.js +114 -104
- package/lib/math/polynomials/affine.d.ts +15 -15
- package/lib/math/polynomials/affine.js +44 -44
- package/lib/math/polynomials/monom.d.ts +4 -4
- package/lib/math/polynomials/monom.js +14 -14
- package/lib/math/polynomials/polynomial.d.ts +45 -42
- package/lib/math/polynomials/polynomial.d.ts.map +1 -1
- package/lib/math/polynomials/polynomial.js +377 -310
- 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 +29 -28
- package/lib/math/polynomials/trinom.d.ts.map +1 -1
- package/lib/math/polynomials/trinom.js +176 -141
- package/lib/math/sequences/arithmeticSequence.js +1 -1
- package/lib/math/sequences/geometricSequence.d.ts +13 -13
- package/lib/math/sequences/geometricSequence.js +76 -76
- package/lib/math/sequences/sequence.d.ts +24 -24
- package/lib/math/sequences/sequence.js +22 -22
- package/lib/math/sets/discreteSet.d.ts +10 -10
- package/lib/math/sets/discreteSet.js +28 -28
- package/lib/math/sets/emptySet.js +6 -6
- package/lib/math/sets/intervals/intervals.d.ts +35 -40
- package/lib/math/sets/intervals/intervals.d.ts.map +1 -1
- package/lib/math/sets/intervals/intervals.js +261 -247
- package/lib/math/sets/mathSet.d.ts +8 -8
- package/lib/math/sets/mathSet.js +11 -11
- package/lib/math/sets/mathSetInterface.d.ts +6 -6
- package/lib/math/sets/mathSetInterface.js +2 -2
- package/lib/math/trigonometry/remarkableValue.d.ts +15 -10
- package/lib/math/trigonometry/remarkableValue.d.ts.map +1 -1
- package/lib/math/trigonometry/remarkableValue.js +40 -29
- package/lib/math/trigonometry/remarkableValues.d.ts +2 -2
- package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/math/trigonometry/remarkableValues.js +67 -56
- package/lib/math/utils/arithmetic/coprimesOf.d.ts +1 -1
- package/lib/math/utils/arithmetic/coprimesOf.js +13 -13
- package/lib/math/utils/arithmetic/dividersOf.d.ts +1 -1
- package/lib/math/utils/arithmetic/dividersOf.js +12 -12
- package/lib/math/utils/arithmetic/gcd.d.ts +2 -1
- package/lib/math/utils/arithmetic/gcd.d.ts.map +1 -1
- package/lib/math/utils/arithmetic/gcd.js +14 -7
- package/lib/math/utils/arithmetic/isSquare.d.ts +1 -1
- package/lib/math/utils/arithmetic/isSquare.js +7 -7
- package/lib/math/utils/arithmetic/lcd.d.ts +1 -1
- package/lib/math/utils/arithmetic/lcd.js +12 -12
- package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts +1 -1
- package/lib/math/utils/arithmetic/nonCoprimesOf.js +13 -13
- package/lib/math/utils/arithmetic/nonDividersOf.d.ts +1 -1
- package/lib/math/utils/arithmetic/nonDividersOf.js +14 -14
- package/lib/math/utils/arithmetic/primeFactors.d.ts +5 -5
- package/lib/math/utils/arithmetic/primeFactors.js +22 -22
- package/lib/math/utils/decimals/decimalPartLengthOf.d.ts +1 -1
- package/lib/math/utils/decimals/decimalPartLengthOf.js +14 -14
- 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 +9 -7
- package/lib/math/utils/random/randTupleInt.d.ts +13 -13
- package/lib/math/utils/random/randTupleInt.js +30 -30
- package/lib/math/utils/random/randint.d.ts +4 -4
- package/lib/math/utils/random/randint.js +18 -18
- package/lib/math/utils/round.d.ts +1 -1
- package/lib/math/utils/round.js +8 -8
- package/lib/server.d.ts +2 -1
- package/lib/server.d.ts.map +1 -1
- package/lib/server.js +119 -73
- 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 +12 -16
- package/lib/tree/nodes/complex/complexNode.d.ts.map +1 -1
- package/lib/tree/nodes/complex/complexNode.js +43 -67
- package/lib/tree/nodes/equations/equalNode.d.ts +13 -0
- package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -0
- package/lib/tree/nodes/equations/equalNode.js +38 -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 +16 -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 +15 -12
- package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/cosNode.js +41 -36
- package/lib/tree/nodes/functions/expNode.d.ts +16 -17
- package/lib/tree/nodes/functions/expNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/expNode.js +53 -45
- package/lib/tree/nodes/functions/functionNode.d.ts +16 -16
- package/lib/tree/nodes/functions/functionNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/functionNode.js +18 -22
- package/lib/tree/nodes/functions/logNode.d.ts +16 -12
- package/lib/tree/nodes/functions/logNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/logNode.js +51 -36
- package/lib/tree/nodes/functions/oppositeNode.d.ts +20 -10
- package/lib/tree/nodes/functions/oppositeNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/oppositeNode.js +82 -44
- package/lib/tree/nodes/functions/sinNode.d.ts +15 -12
- package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sinNode.js +41 -36
- package/lib/tree/nodes/functions/sqrtNode.d.ts +15 -11
- package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sqrtNode.js +54 -33
- 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 +33 -15
- package/lib/tree/nodes/node.d.ts.map +1 -1
- package/lib/tree/nodes/node.js +18 -11
- package/lib/tree/nodes/numbers/constantNode.d.ts +13 -12
- package/lib/tree/nodes/numbers/constantNode.d.ts.map +1 -1
- package/lib/tree/nodes/numbers/constantNode.js +32 -28
- 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 +15 -13
- package/lib/tree/nodes/numbers/numberNode.d.ts.map +1 -1
- package/lib/tree/nodes/numbers/numberNode.js +37 -33
- 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/numbers/piNode.d.ts +2 -2
- package/lib/tree/nodes/numbers/piNode.js +5 -5
- package/lib/tree/nodes/operators/addNode.d.ts +18 -10
- package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/addNode.js +77 -41
- package/lib/tree/nodes/operators/divideNode.d.ts +19 -14
- package/lib/tree/nodes/operators/divideNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/divideNode.js +63 -56
- package/lib/tree/nodes/operators/fractionNode.d.ts +21 -19
- package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/fractionNode.js +67 -59
- package/lib/tree/nodes/operators/multiplyNode.d.ts +19 -15
- package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/multiplyNode.js +193 -72
- package/lib/tree/nodes/operators/operatorNode.d.ts +20 -21
- package/lib/tree/nodes/operators/operatorNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/operatorNode.js +17 -35
- package/lib/tree/nodes/operators/powerNode.d.ts +19 -15
- package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/powerNode.js +77 -67
- package/lib/tree/nodes/operators/substractNode.d.ts +14 -10
- package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/substractNode.js +49 -42
- 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 +12 -11
- package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -1
- package/lib/tree/nodes/variables/variableNode.js +30 -26
- package/lib/tree/parsers/derivateParser.js +62 -62
- package/lib/tree/parsers/simplify.d.ts +0 -3
- package/lib/tree/parsers/simplify.d.ts.map +1 -1
- package/lib/tree/parsers/simplify.js +99 -76
- 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/types/keyIds.d.ts +31 -29
- package/lib/types/keyIds.d.ts.map +1 -1
- package/lib/types/keyIds.js +2 -2
- package/lib/utils/arrayEqual.d.ts +1 -1
- package/lib/utils/arrayEqual.js +13 -13
- package/lib/utils/average.d.ts +1 -1
- package/lib/utils/average.js +9 -9
- 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/coinFlip.d.ts +1 -1
- package/lib/utils/coinFlip.js +7 -7
- package/lib/utils/diceFlip.d.ts +1 -1
- package/lib/utils/diceFlip.js +12 -12
- package/lib/utils/enumToArray.d.ts +7 -7
- package/lib/utils/enumToArray.js +16 -16
- 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/lib/utils/probaFlip.d.ts +6 -6
- package/lib/utils/probaFlip.js +12 -12
- package/lib/utils/probaLawFlip.d.ts +1 -1
- package/lib/utils/probaLawFlip.js +19 -19
- package/lib/utils/random.d.ts +1 -1
- package/lib/utils/random.js +7 -7
- package/lib/utils/randomEnumValue.d.ts +1 -1
- package/lib/utils/randomEnumValue.js +9 -9
- package/lib/utils/randomLetter.d.ts +1 -1
- package/lib/utils/randomLetter.js +9 -9
- package/lib/utils/shuffle.d.ts +1 -1
- package/lib/utils/shuffle.js +15 -15
- package/package.json +3 -4
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.firstDegreeDerivative = exports.getFirstDegreeDerivativePropositions = exports.getFirstDegreeDerivative = void 0;
|
|
4
|
-
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
-
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
7
|
-
const randint_1 = require("../../../math/utils/random/randint");
|
|
8
|
-
const getFirstDegreeDerivative = () => {
|
|
9
|
-
const [a, b] = [(0, randint_1.randint)(-9, 10, [0]), (0, randint_1.randint)(-9, 10)];
|
|
10
|
-
const polynomial = new polynomial_1.Polynomial([b, a]);
|
|
11
|
-
const answer = a +
|
|
12
|
-
const question = {
|
|
13
|
-
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.
|
|
14
|
-
startStatement: `f'(x)`,
|
|
15
|
-
answer,
|
|
16
|
-
keys: [
|
|
17
|
-
answerFormat:
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
return question;
|
|
21
|
-
};
|
|
22
|
-
exports.getFirstDegreeDerivative = getFirstDegreeDerivative;
|
|
23
|
-
const getFirstDegreeDerivativePropositions = (n, { answer, a, b }) => {
|
|
24
|
-
const propositions = [];
|
|
25
|
-
(0, exercise_1.addValidProp)(propositions, answer);
|
|
26
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([0, a]).toTree().toTex());
|
|
27
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
28
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, b +
|
|
29
|
-
while (propositions.length < n) {
|
|
30
|
-
const wrongAnswer = (0, randint_1.randint)(-9, 10);
|
|
31
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer +
|
|
32
|
-
}
|
|
33
|
-
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
34
|
-
};
|
|
35
|
-
exports.getFirstDegreeDerivativePropositions = getFirstDegreeDerivativePropositions;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.firstDegreeDerivative = exports.isFirstDegreeDerivativeAnswerValid = exports.getFirstDegreeDerivativePropositions = exports.getFirstDegreeDerivative = void 0;
|
|
4
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
7
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
8
|
+
const getFirstDegreeDerivative = () => {
|
|
9
|
+
const [a, b] = [(0, randint_1.randint)(-9, 10, [0]), (0, randint_1.randint)(-9, 10)];
|
|
10
|
+
const polynomial = new polynomial_1.Polynomial([b, a]);
|
|
11
|
+
const answer = a + "";
|
|
12
|
+
const question = {
|
|
13
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) = ${polynomial.toTex()}$.`,
|
|
14
|
+
startStatement: `f'(x)`,
|
|
15
|
+
answer,
|
|
16
|
+
keys: ["x"],
|
|
17
|
+
answerFormat: "tex",
|
|
18
|
+
identifiers: { a, b },
|
|
19
|
+
};
|
|
20
|
+
return question;
|
|
21
|
+
};
|
|
22
|
+
exports.getFirstDegreeDerivative = getFirstDegreeDerivative;
|
|
23
|
+
const getFirstDegreeDerivativePropositions = (n, { answer, a, b }) => {
|
|
24
|
+
const propositions = [];
|
|
25
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
26
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new polynomial_1.Polynomial([0, a]).toTree().toTex());
|
|
27
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "x");
|
|
28
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, b + "");
|
|
29
|
+
while (propositions.length < n) {
|
|
30
|
+
const wrongAnswer = (0, randint_1.randint)(-9, 10);
|
|
31
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer + "");
|
|
32
|
+
}
|
|
33
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
34
|
+
};
|
|
35
|
+
exports.getFirstDegreeDerivativePropositions = getFirstDegreeDerivativePropositions;
|
|
36
|
+
const isFirstDegreeDerivativeAnswerValid = (ans, { answer }) => {
|
|
37
|
+
return ans === answer;
|
|
38
|
+
};
|
|
39
|
+
exports.isFirstDegreeDerivativeAnswerValid = isFirstDegreeDerivativeAnswerValid;
|
|
40
|
+
exports.firstDegreeDerivative = {
|
|
41
|
+
id: "firstDegreeDerivative",
|
|
42
|
+
connector: "=",
|
|
43
|
+
label: "Dérivée d'une fonction affine",
|
|
44
|
+
levels: ["1reESM", "1reSpé", "1reTech", "MathComp", "1rePro", "TermPro"],
|
|
45
|
+
sections: ["Dérivation"],
|
|
46
|
+
isSingleStep: false,
|
|
47
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(exports.getFirstDegreeDerivative, nb),
|
|
48
|
+
qcmTimer: 60,
|
|
49
|
+
freeTimer: 60,
|
|
50
|
+
getPropositions: exports.getFirstDegreeDerivativePropositions,
|
|
51
|
+
isAnswerValid: exports.isFirstDegreeDerivativeAnswerValid,
|
|
52
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { constanteDerivative } from "./constanteDerivative";
|
|
2
|
+
export * from "./expDerivativeOne";
|
|
3
|
+
export * from "./expDerivativeThree";
|
|
4
|
+
export * from "./expDerivativeTwo";
|
|
5
|
+
export { firstDegreeDerivative } from "./firstDegreeDerivative";
|
|
6
|
+
export * from "./inverseFunctionDerivative";
|
|
7
|
+
export * from "./lnDerivativeOne";
|
|
8
|
+
export * from "./lnDerivativeThree";
|
|
9
|
+
export * from "./lnDerivativeTwo";
|
|
10
|
+
export * from "./powerFunctionDerivative";
|
|
11
|
+
export * from "./quotientDerivative";
|
|
12
|
+
export * from "./productDerivative";
|
|
13
|
+
export * from "./rootFunctionDerivative";
|
|
14
|
+
export { secondDegreeDerivative } from "./secondDegreeDerivative";
|
|
15
|
+
export { thirdDegreeDerivative } from "./thirdDegreeDerivative";
|
|
16
|
+
export * from "./thirdDegreeFunctionVariation";
|
|
17
|
+
export * from "./usualderivative";
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.thirdDegreeDerivative = exports.secondDegreeDerivative = exports.firstDegreeDerivative = exports.constanteDerivative = void 0;
|
|
18
|
+
var constanteDerivative_1 = require("./constanteDerivative");
|
|
19
|
+
Object.defineProperty(exports, "constanteDerivative", { enumerable: true, get: function () { return constanteDerivative_1.constanteDerivative; } });
|
|
20
|
+
__exportStar(require("./expDerivativeOne"), exports);
|
|
21
|
+
__exportStar(require("./expDerivativeThree"), exports);
|
|
22
|
+
__exportStar(require("./expDerivativeTwo"), exports);
|
|
23
|
+
var firstDegreeDerivative_1 = require("./firstDegreeDerivative");
|
|
24
|
+
Object.defineProperty(exports, "firstDegreeDerivative", { enumerable: true, get: function () { return firstDegreeDerivative_1.firstDegreeDerivative; } });
|
|
25
|
+
__exportStar(require("./inverseFunctionDerivative"), exports);
|
|
26
|
+
__exportStar(require("./lnDerivativeOne"), exports);
|
|
27
|
+
__exportStar(require("./lnDerivativeThree"), exports);
|
|
28
|
+
__exportStar(require("./lnDerivativeTwo"), exports);
|
|
29
|
+
__exportStar(require("./powerFunctionDerivative"), exports);
|
|
30
|
+
__exportStar(require("./quotientDerivative"), exports);
|
|
31
|
+
__exportStar(require("./productDerivative"), exports);
|
|
32
|
+
__exportStar(require("./rootFunctionDerivative"), exports);
|
|
33
|
+
var secondDegreeDerivative_1 = require("./secondDegreeDerivative");
|
|
34
|
+
Object.defineProperty(exports, "secondDegreeDerivative", { enumerable: true, get: function () { return secondDegreeDerivative_1.secondDegreeDerivative; } });
|
|
35
|
+
var thirdDegreeDerivative_1 = require("./thirdDegreeDerivative");
|
|
36
|
+
Object.defineProperty(exports, "thirdDegreeDerivative", { enumerable: true, get: function () { return thirdDegreeDerivative_1.thirdDegreeDerivative; } });
|
|
37
|
+
__exportStar(require("./thirdDegreeFunctionVariation"), exports);
|
|
38
|
+
__exportStar(require("./usualderivative"), exports);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const inverseFunctionDerivative: MathExercise<QCMProps, VEAProps>;
|
|
8
|
-
export {};
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
a: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const inverseFunctionDerivative: MathExercise<Identifiers>;
|
|
6
|
+
export {};
|
|
9
7
|
//# sourceMappingURL=inverseFunctionDerivative.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inverseFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/inverseFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"inverseFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/inverseFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA2CF,eAAO,MAAM,yBAAyB,EAAE,YAAY,CAAC,WAAW,CAa/D,CAAC"}
|
|
@@ -1,44 +1,55 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.inverseFunctionDerivative = void 0;
|
|
4
|
-
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
-
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(0, exercise_1.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inverseFunctionDerivative = void 0;
|
|
4
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
9
|
+
const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
|
|
10
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
11
|
+
const getInverseFunctionDerivative = () => {
|
|
12
|
+
const a = (0, randint_1.randint)(-19, 20, [0]);
|
|
13
|
+
const answer = `${a > 0 ? "-" : ""}\\frac{${Math.abs(a)}}{x^2}`;
|
|
14
|
+
const question = {
|
|
15
|
+
instruction: `Déterminer la fonction dérivée $f'$ de la fonction $f$ définie par $f(x) =\\frac{${a}}{x}$.`,
|
|
16
|
+
startStatement: `f'(x)`,
|
|
17
|
+
answer,
|
|
18
|
+
keys: ["x"],
|
|
19
|
+
answerFormat: "tex",
|
|
20
|
+
identifiers: { a },
|
|
21
|
+
};
|
|
22
|
+
return question;
|
|
23
|
+
};
|
|
24
|
+
const getPropositions = (n, { answer, a }) => {
|
|
25
|
+
const propositions = [];
|
|
26
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
27
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{${a}}{x^2}`);
|
|
28
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{${a}}{x}`);
|
|
29
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `${a}`);
|
|
30
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{${2 * a}}{x}`);
|
|
31
|
+
while (propositions.length < n) {
|
|
32
|
+
const wrongAnswer = `\\frac{${(0, randint_1.randint)(-9, 10, [0, -a])}}{x^2}`;
|
|
33
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
34
|
+
}
|
|
35
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
36
|
+
};
|
|
37
|
+
const isAnswerValid = (ans, { a }) => {
|
|
38
|
+
const answerTree = new fractionNode_1.FractionNode(new numberNode_1.NumberNode(-a), new powerNode_1.SquareNode(new variableNode_1.VariableNode("x")));
|
|
39
|
+
const texs = answerTree.toAllValidTexs();
|
|
40
|
+
console.log(texs);
|
|
41
|
+
return texs.includes(ans);
|
|
42
|
+
};
|
|
43
|
+
exports.inverseFunctionDerivative = {
|
|
44
|
+
id: "inverseFunctionDerivative",
|
|
45
|
+
connector: "=",
|
|
46
|
+
label: "Dérivée d'une fonction inverse",
|
|
47
|
+
levels: ["1reESM", "1reSpé", "1reTech", "MathComp", "TermTech"],
|
|
48
|
+
sections: ["Dérivation", "Fonction inverse"],
|
|
49
|
+
isSingleStep: false,
|
|
50
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getInverseFunctionDerivative, nb),
|
|
51
|
+
qcmTimer: 60,
|
|
52
|
+
freeTimer: 60,
|
|
53
|
+
getPropositions,
|
|
54
|
+
isAnswerValid,
|
|
55
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const lnDerivativeOne: MathExercise<QCMProps, VEAProps>;
|
|
9
|
-
export {};
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const lnDerivativeOne: MathExercise<Identifiers>;
|
|
7
|
+
export {};
|
|
10
8
|
//# sourceMappingURL=lnDerivativeOne.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lnDerivativeOne.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeOne.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"lnDerivativeOne.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeOne.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAqDF,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,WAAW,CAYrD,CAAC"}
|
|
@@ -1,55 +1,68 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lnDerivativeOne = void 0;
|
|
4
|
-
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
-
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
38
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
39
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, polynom.toTree().toTex());
|
|
40
|
-
(0, exercise_1.tryToAddWrongProp)(propositions,
|
|
41
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lnDerivativeOne = void 0;
|
|
4
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
7
|
+
const rationalFrac_1 = require("../../../math/polynomials/rationalFrac");
|
|
8
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
9
|
+
const expNode_1 = require("../../../tree/nodes/functions/expNode");
|
|
10
|
+
const logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
11
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
12
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
13
|
+
const getLnDerivative = () => {
|
|
14
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
15
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
16
|
+
const polynom = new polynomial_1.Polynomial([b, a]);
|
|
17
|
+
const logTree = new logNode_1.LogNode(polynom.toTree());
|
|
18
|
+
const answer = new rationalFrac_1.RationalFrac(new polynomial_1.Polynomial([a]), polynom)
|
|
19
|
+
.simplify()
|
|
20
|
+
.toTree()
|
|
21
|
+
.toTex();
|
|
22
|
+
const question = {
|
|
23
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${logTree.toTex()}$.`,
|
|
24
|
+
startStatement: "f'(x)",
|
|
25
|
+
answer,
|
|
26
|
+
keys: ["x", "ln", "epower"],
|
|
27
|
+
answerFormat: "tex",
|
|
28
|
+
identifiers: { a, b },
|
|
29
|
+
};
|
|
30
|
+
return question;
|
|
31
|
+
};
|
|
32
|
+
const getPropositions = (n, { answer, a, b }) => {
|
|
33
|
+
const propositions = [];
|
|
34
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
35
|
+
const polynom = new polynomial_1.Polynomial([b, a]);
|
|
36
|
+
const logTree = new logNode_1.LogNode(polynom.toTree());
|
|
37
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), logTree).toTex());
|
|
38
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, a + "");
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new expNode_1.ExpNode(polynom.toTree()).toTex());
|
|
40
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, polynom.toTree().toTex());
|
|
41
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{${a}}{${logTree.toTex()}}`);
|
|
42
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `\\frac{1}{${polynom.toTree().toTex()}}`);
|
|
43
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
44
|
+
};
|
|
45
|
+
const isAnswerValid = (ans, { a, b }) => {
|
|
46
|
+
const frac = new rationalFrac_1.RationalFrac(new polynomial_1.Polynomial([a]), new polynomial_1.Polynomial([b, a]));
|
|
47
|
+
const nonSimplified = frac.toTree();
|
|
48
|
+
const simplified = frac.simplify().toTree();
|
|
49
|
+
const texs = [
|
|
50
|
+
...simplified.toAllValidTexs(),
|
|
51
|
+
...nonSimplified.toAllValidTexs(),
|
|
52
|
+
];
|
|
53
|
+
console.log(texs);
|
|
54
|
+
return texs.includes(ans);
|
|
55
|
+
};
|
|
56
|
+
exports.lnDerivativeOne = {
|
|
57
|
+
id: "lnDerivativeOne",
|
|
58
|
+
connector: "=",
|
|
59
|
+
label: "Dérivée de $\\ln(ax + b)$",
|
|
60
|
+
levels: ["1reESM", "1reSpé", "1reTech", "MathComp", "TermSpé"],
|
|
61
|
+
sections: ["Dérivation", "Logarithme népérien"],
|
|
62
|
+
isSingleStep: false,
|
|
63
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnDerivative, nb),
|
|
64
|
+
qcmTimer: 60,
|
|
65
|
+
freeTimer: 60,
|
|
66
|
+
getPropositions,
|
|
67
|
+
isAnswerValid,
|
|
68
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { MathExercise } from
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const lnDerivativeThree: MathExercise<QCMProps, VEAProps>;
|
|
9
|
-
export {};
|
|
1
|
+
import { MathExercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
a: number;
|
|
4
|
+
b: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const lnDerivativeThree: MathExercise<Identifiers>;
|
|
7
|
+
export {};
|
|
10
8
|
//# sourceMappingURL=lnDerivativeThree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lnDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"lnDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA8FF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAYvD,CAAC"}
|
|
@@ -1,61 +1,83 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lnDerivativeThree = void 0;
|
|
4
|
-
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
-
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const affine_1 = require("../../../math/polynomials/affine");
|
|
7
|
-
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
8
|
-
const randint_1 = require("../../../math/utils/random/randint");
|
|
9
|
-
const logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
10
|
-
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
11
|
-
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
12
|
-
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
13
|
-
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
14
|
-
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, new fractionNode_1.FractionNode(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.lnDerivativeThree = void 0;
|
|
4
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const affine_1 = require("../../../math/polynomials/affine");
|
|
7
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
8
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
9
|
+
const logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
10
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
11
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
12
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
13
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
14
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
15
|
+
const getLnDerivative = () => {
|
|
16
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
17
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
18
|
+
const affine = new polynomial_1.Polynomial([b, a]).toTree();
|
|
19
|
+
const myfunction = new multiplyNode_1.MultiplyNode(affine, new logNode_1.LogNode(new variableNode_1.VariableNode("x")));
|
|
20
|
+
const derivative = new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new logNode_1.LogNode(new variableNode_1.VariableNode("x"))), new fractionNode_1.FractionNode(affine, new variableNode_1.VariableNode("x")));
|
|
21
|
+
const answer = derivative.toTex();
|
|
22
|
+
const question = {
|
|
23
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${myfunction.toTex()} $.`,
|
|
24
|
+
startStatement: "f'(x)",
|
|
25
|
+
answer,
|
|
26
|
+
keys: ["x", "ln", "epower"],
|
|
27
|
+
answerFormat: "tex",
|
|
28
|
+
identifiers: { a, b },
|
|
29
|
+
};
|
|
30
|
+
return question;
|
|
31
|
+
};
|
|
32
|
+
const getPropositions = (n, { answer, a, b }) => {
|
|
33
|
+
const propositions = [];
|
|
34
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
35
|
+
const affine = new affine_1.Affine(a, b).toTree();
|
|
36
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode("x")).toTex());
|
|
37
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new fractionNode_1.FractionNode(affine, new variableNode_1.VariableNode("x")).toTex());
|
|
38
|
+
if (a === 1)
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "\\ln\\left(x\\right)");
|
|
40
|
+
else
|
|
41
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, `${a}\\ln\\left(x\\right)`);
|
|
42
|
+
while (propositions.length < n) {
|
|
43
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
44
|
+
const randomB = (0, randint_1.randint)(-9, 10);
|
|
45
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(randomA), new logNode_1.LogNode(new variableNode_1.VariableNode("x"))), new fractionNode_1.FractionNode(new polynomial_1.Polynomial([randomB, randomA]).toTree(), new variableNode_1.VariableNode("x"))).toTex());
|
|
46
|
+
}
|
|
47
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
48
|
+
};
|
|
49
|
+
const isAnswerValid = (ans, { a, b }) => {
|
|
50
|
+
const affine = new affine_1.Affine(a, b);
|
|
51
|
+
const xNode = new variableNode_1.VariableNode("x");
|
|
52
|
+
const aNode = new numberNode_1.NumberNode(a);
|
|
53
|
+
const bNode = new fractionNode_1.FractionNode(new numberNode_1.NumberNode(b), xNode);
|
|
54
|
+
const fracNode = new fractionNode_1.FractionNode(affine.toTree(), xNode);
|
|
55
|
+
const logNode = new logNode_1.LogNode(xNode);
|
|
56
|
+
const raw = new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(aNode, logNode), fracNode);
|
|
57
|
+
let developped = new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(aNode, logNode), fracNode);
|
|
58
|
+
let simplified = new multiplyNode_1.MultiplyNode(aNode, new addNode_1.AddNode(logNode, new numberNode_1.NumberNode(1)));
|
|
59
|
+
if (b !== 0) {
|
|
60
|
+
developped = new addNode_1.AddNode(developped, bNode);
|
|
61
|
+
simplified = new addNode_1.AddNode(simplified, bNode);
|
|
62
|
+
}
|
|
63
|
+
const texs = [
|
|
64
|
+
...raw.toAllValidTexs(),
|
|
65
|
+
...developped.toAllValidTexs(),
|
|
66
|
+
...simplified.toAllValidTexs(),
|
|
67
|
+
];
|
|
68
|
+
console.log(ans, texs);
|
|
69
|
+
return texs.includes(ans);
|
|
70
|
+
};
|
|
71
|
+
exports.lnDerivativeThree = {
|
|
72
|
+
id: "lnDerivativeThree",
|
|
73
|
+
connector: "=",
|
|
74
|
+
label: "Dérivée de $\\ln(x) \\times (ax+b)$",
|
|
75
|
+
levels: ["1reESM", "1reSpé", "1reTech", "MathComp", "TermSpé"],
|
|
76
|
+
sections: ["Dérivation", "Logarithme népérien"],
|
|
77
|
+
isSingleStep: false,
|
|
78
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnDerivative, nb),
|
|
79
|
+
qcmTimer: 60,
|
|
80
|
+
freeTimer: 60,
|
|
81
|
+
getPropositions,
|
|
82
|
+
isAnswerValid,
|
|
83
|
+
};
|