math-exercises 1.3.41 → 1.3.43
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.map +1 -1
- package/lib/exercises/calcul/addAndSub.js +3 -0
- package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
- package/lib/exercises/calcul/addAndSubWithoutRelatives.js +3 -0
- package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts +4 -0
- package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts.map +1 -0
- package/lib/exercises/calcul/arithmetics/euclideanDivision.js +70 -0
- package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/primeNumbers.js +4 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +3 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +3 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +3 -0
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +3 -0
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsDivision.js +3 -0
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsProduct.js +3 -0
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/fractionsSum.js +3 -0
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -1
- package/lib/exercises/calcul/fractions/simplifyFraction.js +3 -0
- package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts.map +1 -1
- package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +3 -0
- package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts.map +1 -1
- package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +3 -0
- package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts.map +1 -1
- package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +3 -0
- package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts.map +1 -1
- package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.js +3 -0
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPriorities.js +3 -0
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +3 -0
- package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts.map +1 -1
- package/lib/exercises/calcul/proportionality/proportionalityTable.js +3 -0
- package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -1
- package/lib/exercises/calcul/rounding/rounding.js +6 -0
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +5 -0
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +6 -0
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +6 -0
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +6 -0
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +6 -0
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +12 -0
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +3 -0
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +3 -0
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +3 -0
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +3 -0
- package/lib/exercises/calculLitteral/equation/expEquation.d.ts +4 -0
- package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/expEquation.js +67 -0
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +3 -0
- package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/fractionEquation.js +3 -0
- package/lib/exercises/calculLitteral/equation/logEquation.d.ts +4 -0
- package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/logEquation.js +67 -0
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +3 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +4 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +5 -0
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +6 -0
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +6 -0
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +3 -0
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts +4 -0
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +96 -0
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts +4 -0
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +78 -0
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts.map +1 -1
- package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +3 -0
- package/lib/exercises/conversion/aeraConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/aeraConversion.js +3 -0
- package/lib/exercises/conversion/capacityConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/capacityConversion.js +3 -0
- package/lib/exercises/conversion/lengthConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/lengthConversion.js +3 -0
- package/lib/exercises/conversion/massConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/massConversion.js +3 -0
- package/lib/exercises/conversion/volumeCapacityConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/volumeCapacityConversion.js +3 -0
- package/lib/exercises/conversion/volumeConversion.d.ts.map +1 -1
- package/lib/exercises/conversion/volumeConversion.js +3 -0
- package/lib/exercises/derivation/derivative/constanteDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/constanteDerivative.js +4 -1
- package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts +4 -0
- package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/expDerivativeOne.js +65 -0
- package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts +4 -0
- package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/expDerivativeThree.js +64 -0
- package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts +4 -0
- package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/expDerivativeTwo.js +65 -0
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +3 -0
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +3 -0
- package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts +4 -0
- package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/lnDerivativeOne.js +63 -0
- package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts +4 -0
- package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/lnDerivativeThree.js +68 -0
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts +4 -0
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +66 -0
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +3 -0
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +4 -0
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +3 -0
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +3 -0
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts +4 -0
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -0
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +101 -0
- package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
- package/lib/exercises/derivation/derivativeNumberReading.js +3 -0
- package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts +4 -0
- package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts.map +1 -0
- package/lib/exercises/equaDiff/equaDiffGeneralForme.js +66 -0
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts +4 -0
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts.map +1 -0
- package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +80 -0
- package/lib/exercises/exercise.d.ts +2 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercises.d.ts.map +1 -1
- package/lib/exercises/exercises.js +66 -4
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +6 -0
- package/lib/exercises/geometry/cartesian/imageFunction.d.ts +4 -0
- package/lib/exercises/geometry/cartesian/imageFunction.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/imageFunction.js +65 -0
- package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts +4 -0
- package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.js +89 -0
- package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts +4 -0
- package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/inverseImageFunction.js +62 -0
- package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts +4 -0
- package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.js +154 -0
- package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/leadingCoefficient.js +3 -0
- package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.js +3 -0
- package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.js +3 -0
- package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -1
- package/lib/exercises/geometry/cartesian/midpoint.js +3 -0
- package/lib/exercises/geometry/cartesian/signFunction.d.ts +4 -0
- package/lib/exercises/geometry/cartesian/signFunction.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/signFunction.js +84 -0
- package/lib/exercises/geometry/euclidean/circleArea.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/circleArea.js +3 -0
- package/lib/exercises/geometry/euclidean/circleCircumference.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/circleCircumference.js +3 -0
- package/lib/exercises/geometry/euclidean/pythagore.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/pythagore.js +8 -0
- package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/pythagoreCalcul.js +3 -0
- package/lib/exercises/geometry/euclidean/rectangleArea.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/rectangleArea.js +3 -0
- package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/rectanglePerimeter.js +3 -0
- package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/rightTriangleArea.js +3 -0
- package/lib/exercises/geometry/euclidean/squareArea.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/squareArea.js +3 -0
- package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/squarePerimeter.js +3 -0
- package/lib/exercises/geometry/euclidean/thales.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/thales.js +3 -0
- package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/thalesCalcul.js +3 -0
- package/lib/exercises/geometry/euclidean/triangleArea.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/triangleArea.js +3 -0
- package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/triangleAreaV2.js +4 -0
- package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/trianglePerimeter.js +3 -0
- package/lib/exercises/geometry/euclidean/trigonometry.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/trigonometry.js +3 -0
- package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.js +3 -0
- package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts.map +1 -1
- package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.js +3 -0
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +3 -0
- package/lib/exercises/limits/polynomeLimit.d.ts +4 -0
- package/lib/exercises/limits/polynomeLimit.d.ts.map +1 -0
- package/lib/exercises/limits/polynomeLimit.js +132 -0
- package/lib/exercises/percent/applyPercent.d.ts.map +1 -1
- package/lib/exercises/percent/applyPercent.js +3 -0
- package/lib/exercises/percent/averageEvolutionRate.d.ts.map +1 -1
- package/lib/exercises/percent/averageEvolutionRate.js +3 -0
- package/lib/exercises/percent/globalPercent.d.ts.map +1 -1
- package/lib/exercises/percent/globalPercent.js +3 -0
- package/lib/exercises/percent/reciprocalPercentage.d.ts.map +1 -1
- package/lib/exercises/percent/reciprocalPercentage.js +3 -0
- package/lib/exercises/powers/powersDivision.d.ts.map +1 -1
- package/lib/exercises/powers/powersDivision.js +3 -0
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/powersOfTenToDecimal.js +3 -0
- package/lib/exercises/powers/powersPower.d.ts.map +1 -1
- package/lib/exercises/powers/powersPower.js +3 -0
- package/lib/exercises/powers/powersProduct.d.ts.map +1 -1
- package/lib/exercises/powers/powersProduct.js +3 -0
- package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -1
- package/lib/exercises/powers/scientificToDecimal.js +3 -0
- package/lib/exercises/primitve/constantPrimitive.d.ts +4 -0
- package/lib/exercises/primitve/constantPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitve/constantPrimitive.js +56 -0
- package/lib/exercises/primitve/exponentialPrimitive.d.ts +4 -0
- package/lib/exercises/primitve/exponentialPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitve/exponentialPrimitive.js +103 -0
- package/lib/exercises/primitve/logarithmePrimitive.d.ts +4 -0
- package/lib/exercises/primitve/logarithmePrimitive.d.ts.map +1 -0
- package/lib/exercises/primitve/logarithmePrimitive.js +74 -0
- package/lib/exercises/primitve/polynomialPrimitive.d.ts +4 -0
- package/lib/exercises/primitve/polynomialPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitve/polynomialPrimitive.js +80 -0
- package/lib/exercises/primitve/sinCosPrimitive.d.ts +4 -0
- package/lib/exercises/primitve/sinCosPrimitive.d.ts.map +1 -0
- package/lib/exercises/primitve/sinCosPrimitive.js +112 -0
- package/lib/exercises/primitve/usualPrimitives.d.ts +4 -0
- package/lib/exercises/primitve/usualPrimitives.d.ts.map +1 -0
- package/lib/exercises/primitve/usualPrimitives.js +39 -0
- package/lib/exercises/probaStat/conditionalProbability.d.ts +4 -0
- package/lib/exercises/probaStat/conditionalProbability.d.ts.map +1 -0
- package/lib/exercises/probaStat/conditionalProbability.js +102 -0
- package/lib/exercises/probaStat/frequencyTable.d.ts +4 -0
- package/lib/exercises/probaStat/frequencyTable.d.ts.map +1 -0
- package/lib/exercises/probaStat/frequencyTable.js +76 -0
- package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts +4 -0
- package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts.map +1 -0
- package/lib/exercises/probaStat/marginalAndConditionalFrequency.js +109 -0
- package/lib/exercises/probaStat/median.d.ts +4 -0
- package/lib/exercises/probaStat/median.d.ts.map +1 -0
- package/lib/exercises/probaStat/median.js +82 -0
- package/lib/exercises/probaStat/medianList.d.ts +4 -0
- package/lib/exercises/probaStat/medianList.d.ts.map +1 -0
- package/lib/exercises/probaStat/medianList.js +67 -0
- package/lib/exercises/probaStat/probabilityTree.d.ts +4 -0
- package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -0
- package/lib/exercises/probaStat/probabilityTree.js +135 -0
- package/lib/exercises/probaStat/quartiles.d.ts +4 -0
- package/lib/exercises/probaStat/quartiles.d.ts.map +1 -0
- package/lib/exercises/probaStat/quartiles.js +96 -0
- package/lib/exercises/probaStat/quartilesList.d.ts +4 -0
- package/lib/exercises/probaStat/quartilesList.d.ts.map +1 -0
- package/lib/exercises/probaStat/quartilesList.js +81 -0
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +3 -0
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +3 -0
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +3 -0
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +3 -0
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +3 -0
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +3 -0
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +3 -0
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +4 -0
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricFindReason.js +4 -0
- package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricReasonUsage.js +4 -0
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +4 -0
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -1
- package/lib/exercises/squareRoots/simpifySquareRoot.js +3 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lib/math/polynomials/polynomial.d.ts +3 -1
- package/lib/math/polynomials/polynomial.d.ts.map +1 -1
- package/lib/math/polynomials/polynomial.js +48 -2
- package/lib/tree/nodes/functions/expNode.d.ts +10 -0
- package/lib/tree/nodes/functions/expNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/expNode.js +21 -0
- package/lib/tree/nodes/functions/functionNode.d.ts +3 -1
- package/lib/tree/nodes/functions/functionNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/functionNode.js +2 -0
- package/lib/tree/nodes/functions/logNode.d.ts +10 -0
- package/lib/tree/nodes/functions/logNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/logNode.js +21 -0
- package/lib/tree/nodes/functions/sinNode.d.ts +9 -0
- package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sinNode.js +20 -0
- package/lib/tree/parsers/simplify.d.ts.map +1 -1
- package/lib/tree/parsers/simplify.js +12 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ function getMassConversion() {
|
|
|
28
28
|
id: (0, uuid_1.v4)() + '',
|
|
29
29
|
statement: randomMass.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
30
30
|
isRightAnswer: true,
|
|
31
|
+
format: 'tex',
|
|
31
32
|
});
|
|
32
33
|
for (let i = 0; i < n - 1; i++) {
|
|
33
34
|
let isDuplicate;
|
|
@@ -38,6 +39,7 @@ function getMassConversion() {
|
|
|
38
39
|
id: (0, uuid_1.v4)() + '',
|
|
39
40
|
statement: wrongAnswer,
|
|
40
41
|
isRightAnswer: false,
|
|
42
|
+
format: 'tex',
|
|
41
43
|
};
|
|
42
44
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
43
45
|
} while (isDuplicate);
|
|
@@ -50,6 +52,7 @@ function getMassConversion() {
|
|
|
50
52
|
answer: randomMass.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
51
53
|
keys: [],
|
|
52
54
|
getPropositions,
|
|
55
|
+
answerFormat: 'tex',
|
|
53
56
|
};
|
|
54
57
|
return question;
|
|
55
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeCapacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/volumeCapacityConversion.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,wBAAwB,EAAE,QAUtC,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"volumeCapacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/volumeCapacityConversion.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,wBAAwB,EAAE,QAUtC,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,CAmEtD"}
|
|
@@ -45,6 +45,7 @@ function getVolumeCapacityConversion() {
|
|
|
45
45
|
id: (0, uuid_1.v4)() + '',
|
|
46
46
|
statement: answer.value + '',
|
|
47
47
|
isRightAnswer: true,
|
|
48
|
+
format: 'tex',
|
|
48
49
|
});
|
|
49
50
|
for (let i = 0; i < n - 1; i++) {
|
|
50
51
|
let isDuplicate;
|
|
@@ -55,6 +56,7 @@ function getVolumeCapacityConversion() {
|
|
|
55
56
|
id: (0, uuid_1.v4)() + '',
|
|
56
57
|
statement: wrongAnswer.value + '',
|
|
57
58
|
isRightAnswer: false,
|
|
59
|
+
format: 'tex',
|
|
58
60
|
};
|
|
59
61
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
60
62
|
} while (isDuplicate);
|
|
@@ -67,6 +69,7 @@ function getVolumeCapacityConversion() {
|
|
|
67
69
|
answer: answer.value + '',
|
|
68
70
|
keys: [],
|
|
69
71
|
getPropositions,
|
|
72
|
+
answerFormat: 'tex',
|
|
70
73
|
};
|
|
71
74
|
return question;
|
|
72
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volumeConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/volumeConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"volumeConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/volumeConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAsD9C"}
|
|
@@ -30,6 +30,7 @@ function getVolumeConversion() {
|
|
|
30
30
|
id: (0, uuid_1.v4)() + '',
|
|
31
31
|
statement: randomVolume.multiplyByPowerOfTen(3 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
|
|
32
32
|
isRightAnswer: true,
|
|
33
|
+
format: 'tex',
|
|
33
34
|
});
|
|
34
35
|
for (let i = 0; i < n - 1; i++) {
|
|
35
36
|
let isDuplicate;
|
|
@@ -40,6 +41,7 @@ function getVolumeConversion() {
|
|
|
40
41
|
id: (0, uuid_1.v4)() + '',
|
|
41
42
|
statement: wrongAnswer,
|
|
42
43
|
isRightAnswer: false,
|
|
44
|
+
format: 'tex',
|
|
43
45
|
};
|
|
44
46
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
45
47
|
} while (isDuplicate);
|
|
@@ -52,6 +54,7 @@ function getVolumeConversion() {
|
|
|
52
54
|
answer: randomVolume.multiplyByPowerOfTen(3 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
|
|
53
55
|
keys: [],
|
|
54
56
|
getPropositions,
|
|
57
|
+
answerFormat: 'tex',
|
|
55
58
|
};
|
|
56
59
|
return question;
|
|
57
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constanteDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/constanteDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"constanteDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/constanteDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CA6CjD"}
|
|
@@ -22,8 +22,9 @@ function getConstanteDerivative() {
|
|
|
22
22
|
const propositions = [];
|
|
23
23
|
propositions.push({
|
|
24
24
|
id: (0, uuid_1.v4)(),
|
|
25
|
-
statement:
|
|
25
|
+
statement: 0 + '',
|
|
26
26
|
isRightAnswer: true,
|
|
27
|
+
format: 'tex',
|
|
27
28
|
});
|
|
28
29
|
for (let i = 0; i < n - 1; i++) {
|
|
29
30
|
let isDuplicate;
|
|
@@ -34,6 +35,7 @@ function getConstanteDerivative() {
|
|
|
34
35
|
id: (0, uuid_1.v4)(),
|
|
35
36
|
statement: wrongAnswer + '',
|
|
36
37
|
isRightAnswer: false,
|
|
38
|
+
format: 'tex',
|
|
37
39
|
};
|
|
38
40
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
39
41
|
} while (isDuplicate);
|
|
@@ -47,6 +49,7 @@ function getConstanteDerivative() {
|
|
|
47
49
|
answer: '0',
|
|
48
50
|
keys: [],
|
|
49
51
|
getPropositions,
|
|
52
|
+
answerFormat: 'tex',
|
|
50
53
|
};
|
|
51
54
|
return question;
|
|
52
55
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expDerivativeOne.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/expDerivativeOne.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,gBAAgB,IAAI,QAAQ,CAqD3C"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExpDerivative = exports.expDerivativeOne = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
6
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
+
const expNode_1 = require("../../../tree/nodes/functions/expNode");
|
|
8
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
10
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
11
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
12
|
+
const uuid_1 = require("uuid");
|
|
13
|
+
exports.expDerivativeOne = {
|
|
14
|
+
id: 'expDerivativeOne',
|
|
15
|
+
connector: '=',
|
|
16
|
+
instruction: '',
|
|
17
|
+
label: 'Dérivée de $exp(ax + b)$',
|
|
18
|
+
levels: ['1', '0'],
|
|
19
|
+
section: 'Fonction Exponentielle',
|
|
20
|
+
isSingleStep: false,
|
|
21
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpDerivative, nb),
|
|
22
|
+
keys: ['exp'],
|
|
23
|
+
};
|
|
24
|
+
function getExpDerivative() {
|
|
25
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
26
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
27
|
+
const myfunction = new expNode_1.ExpNode(new polynomial_1.Polynomial([b, a]).toTree());
|
|
28
|
+
const derivative = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), myfunction));
|
|
29
|
+
const getPropositions = (numOptions) => {
|
|
30
|
+
const propositions = [];
|
|
31
|
+
propositions.push({
|
|
32
|
+
id: (0, uuid_1.v4)(),
|
|
33
|
+
statement: derivative.toTex(),
|
|
34
|
+
isRightAnswer: true,
|
|
35
|
+
format: 'tex',
|
|
36
|
+
});
|
|
37
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
38
|
+
let isDuplicate;
|
|
39
|
+
let proposition;
|
|
40
|
+
do {
|
|
41
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
42
|
+
const randomB = (0, randint_1.randint)(-9, 10);
|
|
43
|
+
proposition = {
|
|
44
|
+
id: (0, uuid_1.v4)(),
|
|
45
|
+
statement: (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(randomA), new expNode_1.ExpNode(new polynomial_1.Polynomial([randomB, randomA]).toTree()))).toTex(),
|
|
46
|
+
isRightAnswer: false,
|
|
47
|
+
format: 'tex',
|
|
48
|
+
};
|
|
49
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
50
|
+
} while (isDuplicate);
|
|
51
|
+
propositions.push(proposition);
|
|
52
|
+
}
|
|
53
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
54
|
+
};
|
|
55
|
+
const question = {
|
|
56
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${myfunction.toTex()}$.`,
|
|
57
|
+
startStatement: "f'(x)",
|
|
58
|
+
answer: derivative.toTex(),
|
|
59
|
+
keys: ['exp'],
|
|
60
|
+
getPropositions,
|
|
61
|
+
answerFormat: 'tex',
|
|
62
|
+
};
|
|
63
|
+
return question;
|
|
64
|
+
}
|
|
65
|
+
exports.getExpDerivative = getExpDerivative;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/expDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAsDhD"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExpDerivativeThree = exports.expDerivativeThree = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
6
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
+
const expNode_1 = require("../../../tree/nodes/functions/expNode");
|
|
8
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
9
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
10
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
11
|
+
const uuid_1 = require("uuid");
|
|
12
|
+
exports.expDerivativeThree = {
|
|
13
|
+
id: 'expDerivativeThree',
|
|
14
|
+
connector: '=',
|
|
15
|
+
instruction: '',
|
|
16
|
+
label: 'Dérivée de $(ax+b) \\times exp(x)$',
|
|
17
|
+
levels: ['1', '0'],
|
|
18
|
+
section: 'Fonction Exponentielle',
|
|
19
|
+
isSingleStep: false,
|
|
20
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpDerivativeThree, nb),
|
|
21
|
+
keys: ['exp'],
|
|
22
|
+
};
|
|
23
|
+
function getExpDerivativeThree() {
|
|
24
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
25
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
26
|
+
const myfunction = new multiplyNode_1.MultiplyNode(new polynomial_1.Polynomial([b, a]).toTree(), new expNode_1.ExpNode(new variableNode_1.VariableNode('x')));
|
|
27
|
+
const derivative = new multiplyNode_1.MultiplyNode(new polynomial_1.Polynomial([b + a, a]).toTree(), new expNode_1.ExpNode(new variableNode_1.VariableNode('x')));
|
|
28
|
+
const getPropositions = (numOptions) => {
|
|
29
|
+
const propositions = [];
|
|
30
|
+
propositions.push({
|
|
31
|
+
id: (0, uuid_1.v4)(),
|
|
32
|
+
statement: derivative.toTex(),
|
|
33
|
+
isRightAnswer: true,
|
|
34
|
+
format: 'tex',
|
|
35
|
+
});
|
|
36
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
37
|
+
let isDuplicate;
|
|
38
|
+
let proposition;
|
|
39
|
+
do {
|
|
40
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
41
|
+
const randomB = (0, randint_1.randint)(-9, 10);
|
|
42
|
+
proposition = {
|
|
43
|
+
id: (0, uuid_1.v4)(),
|
|
44
|
+
statement: new multiplyNode_1.MultiplyNode(new polynomial_1.Polynomial([randomB + randomA, randomA]).toTree(), new expNode_1.ExpNode(new variableNode_1.VariableNode('x'))).toTex(),
|
|
45
|
+
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
47
|
+
};
|
|
48
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
49
|
+
} while (isDuplicate);
|
|
50
|
+
propositions.push(proposition);
|
|
51
|
+
}
|
|
52
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
53
|
+
};
|
|
54
|
+
const question = {
|
|
55
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${myfunction.toTex()}$.`,
|
|
56
|
+
startStatement: "f'(x)",
|
|
57
|
+
answer: derivative.toTex(),
|
|
58
|
+
keys: ['exp'],
|
|
59
|
+
getPropositions,
|
|
60
|
+
answerFormat: 'tex',
|
|
61
|
+
};
|
|
62
|
+
return question;
|
|
63
|
+
}
|
|
64
|
+
exports.getExpDerivativeThree = getExpDerivativeThree;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expDerivativeTwo.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/expDerivativeTwo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,gBAAgB,IAAI,QAAQ,CAsD3C"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExpDerivative = exports.expDerivativeTwo = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
6
|
+
const expNode_1 = require("../../../tree/nodes/functions/expNode"); // Importer le nœud d'exponentielle
|
|
7
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
9
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
10
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
11
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
12
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
13
|
+
const uuid_1 = require("uuid");
|
|
14
|
+
exports.expDerivativeTwo = {
|
|
15
|
+
id: 'expDerivativeTwo',
|
|
16
|
+
connector: '=',
|
|
17
|
+
instruction: '',
|
|
18
|
+
label: 'Dérivée de $a \\times exp(x) + b$',
|
|
19
|
+
levels: ['1', '0'],
|
|
20
|
+
section: 'Fonction Exponentielle',
|
|
21
|
+
isSingleStep: false,
|
|
22
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpDerivative, nb),
|
|
23
|
+
keys: ['exp'],
|
|
24
|
+
};
|
|
25
|
+
function getExpDerivative() {
|
|
26
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
27
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
28
|
+
const myfunction = new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new variableNode_1.VariableNode('x'))), new numberNode_1.NumberNode(b));
|
|
29
|
+
const derivative = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new variableNode_1.VariableNode('x'))));
|
|
30
|
+
const getPropositions = (numOptions) => {
|
|
31
|
+
const propositions = [];
|
|
32
|
+
propositions.push({
|
|
33
|
+
id: (0, uuid_1.v4)(),
|
|
34
|
+
statement: derivative.toTex(),
|
|
35
|
+
isRightAnswer: true,
|
|
36
|
+
format: 'tex',
|
|
37
|
+
});
|
|
38
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
39
|
+
let isDuplicate;
|
|
40
|
+
let proposition;
|
|
41
|
+
do {
|
|
42
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
43
|
+
proposition = {
|
|
44
|
+
id: (0, uuid_1.v4)(),
|
|
45
|
+
statement: (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(randomA), new expNode_1.ExpNode(new variableNode_1.VariableNode('x')))).toTex(),
|
|
46
|
+
isRightAnswer: false,
|
|
47
|
+
format: 'tex',
|
|
48
|
+
};
|
|
49
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
50
|
+
} while (isDuplicate);
|
|
51
|
+
propositions.push(proposition);
|
|
52
|
+
}
|
|
53
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
54
|
+
};
|
|
55
|
+
const question = {
|
|
56
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${myfunction.toTex()}$.`,
|
|
57
|
+
startStatement: "f'(x)",
|
|
58
|
+
answer: derivative.toTex(),
|
|
59
|
+
keys: ['exp'],
|
|
60
|
+
getPropositions,
|
|
61
|
+
answerFormat: 'tex',
|
|
62
|
+
};
|
|
63
|
+
return question;
|
|
64
|
+
}
|
|
65
|
+
exports.getExpDerivative = getExpDerivative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firstDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/firstDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"firstDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/firstDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CA8CnD"}
|
|
@@ -26,6 +26,7 @@ function getFirstDegreeDerivative() {
|
|
|
26
26
|
id: (0, uuid_1.v4)(),
|
|
27
27
|
statement: a + '',
|
|
28
28
|
isRightAnswer: true,
|
|
29
|
+
format: 'tex',
|
|
29
30
|
});
|
|
30
31
|
for (let i = 0; i < n - 1; i++) {
|
|
31
32
|
let isDuplicate;
|
|
@@ -36,6 +37,7 @@ function getFirstDegreeDerivative() {
|
|
|
36
37
|
id: (0, uuid_1.v4)(),
|
|
37
38
|
statement: wrongAnswer + '',
|
|
38
39
|
isRightAnswer: false,
|
|
40
|
+
format: 'tex',
|
|
39
41
|
};
|
|
40
42
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
41
43
|
} while (isDuplicate);
|
|
@@ -49,6 +51,7 @@ function getFirstDegreeDerivative() {
|
|
|
49
51
|
answer: a + '',
|
|
50
52
|
keys: [],
|
|
51
53
|
getPropositions,
|
|
54
|
+
answerFormat: 'tex',
|
|
52
55
|
};
|
|
53
56
|
return question;
|
|
54
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inverseFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/inverseFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"inverseFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/inverseFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CA6CvD"}
|
|
@@ -24,6 +24,7 @@ function getInverseFunctionDerivative() {
|
|
|
24
24
|
id: (0, uuid_1.v4)(),
|
|
25
25
|
statement: `\\frac{${-a}}{x^2}`,
|
|
26
26
|
isRightAnswer: true,
|
|
27
|
+
format: 'tex',
|
|
27
28
|
});
|
|
28
29
|
for (let i = 0; i < n - 1; i++) {
|
|
29
30
|
let isDuplicate;
|
|
@@ -34,6 +35,7 @@ function getInverseFunctionDerivative() {
|
|
|
34
35
|
id: (0, uuid_1.v4)(),
|
|
35
36
|
statement: wrongAnswer,
|
|
36
37
|
isRightAnswer: false,
|
|
38
|
+
format: 'tex',
|
|
37
39
|
};
|
|
38
40
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
39
41
|
} while (isDuplicate);
|
|
@@ -47,6 +49,7 @@ function getInverseFunctionDerivative() {
|
|
|
47
49
|
answer: `\\frac{${-a}}{x^2}`,
|
|
48
50
|
keys: ['x'],
|
|
49
51
|
getPropositions,
|
|
52
|
+
answerFormat: 'tex',
|
|
50
53
|
};
|
|
51
54
|
return question;
|
|
52
55
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lnDerivativeOne.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeOne.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAoD1C"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLnDerivative = exports.lnDerivativeOne = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
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 simplify_1 = require("../../../tree/parsers/simplify");
|
|
10
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
11
|
+
const uuid_1 = require("uuid");
|
|
12
|
+
exports.lnDerivativeOne = {
|
|
13
|
+
id: 'lnDerivativeOne',
|
|
14
|
+
connector: '=',
|
|
15
|
+
instruction: '',
|
|
16
|
+
label: 'Dérivée de $ln(ax + b)$',
|
|
17
|
+
levels: ['1', '0'],
|
|
18
|
+
section: 'Fonction Logarithme népérien',
|
|
19
|
+
isSingleStep: false,
|
|
20
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnDerivative, nb),
|
|
21
|
+
keys: ['ln'],
|
|
22
|
+
};
|
|
23
|
+
function getLnDerivative() {
|
|
24
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
25
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
26
|
+
const derivative = (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a), new polynomial_1.Polynomial([b, a]).toTree()));
|
|
27
|
+
const getPropositions = (numOptions) => {
|
|
28
|
+
const propositions = [];
|
|
29
|
+
propositions.push({
|
|
30
|
+
id: (0, uuid_1.v4)(),
|
|
31
|
+
statement: derivative.toTex(),
|
|
32
|
+
isRightAnswer: true,
|
|
33
|
+
format: 'tex',
|
|
34
|
+
});
|
|
35
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
36
|
+
let isDuplicate;
|
|
37
|
+
let proposition;
|
|
38
|
+
do {
|
|
39
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
40
|
+
const randomB = (0, randint_1.randint)(-9, 10);
|
|
41
|
+
proposition = {
|
|
42
|
+
id: (0, uuid_1.v4)(),
|
|
43
|
+
statement: (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(randomA), new polynomial_1.Polynomial([randomB, randomA]).toTree())).toTex(),
|
|
44
|
+
isRightAnswer: false,
|
|
45
|
+
format: 'tex',
|
|
46
|
+
};
|
|
47
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
48
|
+
} while (isDuplicate);
|
|
49
|
+
propositions.push(proposition);
|
|
50
|
+
}
|
|
51
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
52
|
+
};
|
|
53
|
+
const question = {
|
|
54
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = \\ln(${new polynomial_1.Polynomial([b, a])})$.`,
|
|
55
|
+
startStatement: "f'(x)",
|
|
56
|
+
answer: derivative.toTex(),
|
|
57
|
+
keys: ['ln'],
|
|
58
|
+
getPropositions,
|
|
59
|
+
answerFormat: 'tex',
|
|
60
|
+
};
|
|
61
|
+
return question;
|
|
62
|
+
}
|
|
63
|
+
exports.getLnDerivative = getLnDerivative;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lnDerivativeThree.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeThree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CA8D1C"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLnDerivative = exports.lnDerivativeThree = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const polynomial_1 = require("../../../math/polynomials/polynomial");
|
|
6
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
+
const logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
8
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
10
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
11
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
12
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
13
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
14
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
15
|
+
const uuid_1 = require("uuid");
|
|
16
|
+
exports.lnDerivativeThree = {
|
|
17
|
+
id: 'lnDerivativeThree',
|
|
18
|
+
connector: '=',
|
|
19
|
+
instruction: '',
|
|
20
|
+
label: 'Dérivée de $ln(x) \\times (ax+b)',
|
|
21
|
+
levels: ['1', '0'],
|
|
22
|
+
section: 'Fonction Logarithme népérien',
|
|
23
|
+
isSingleStep: false,
|
|
24
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnDerivative, nb),
|
|
25
|
+
keys: ['ln'],
|
|
26
|
+
};
|
|
27
|
+
function getLnDerivative() {
|
|
28
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
29
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
30
|
+
const myfunction = new multiplyNode_1.MultiplyNode(new polynomial_1.Polynomial([b, a]).toTree(), new logNode_1.LogNode(new variableNode_1.VariableNode('x')));
|
|
31
|
+
const derivative = (0, simplify_1.simplifyNode)(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(new polynomial_1.Polynomial([b, a]).toTree(), new variableNode_1.VariableNode('x'))));
|
|
32
|
+
const getPropositions = (numOptions) => {
|
|
33
|
+
const propositions = [];
|
|
34
|
+
propositions.push({
|
|
35
|
+
id: (0, uuid_1.v4)(),
|
|
36
|
+
statement: derivative.toTex(),
|
|
37
|
+
isRightAnswer: true,
|
|
38
|
+
format: 'tex',
|
|
39
|
+
});
|
|
40
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
41
|
+
let isDuplicate;
|
|
42
|
+
let proposition;
|
|
43
|
+
do {
|
|
44
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
45
|
+
const randomB = (0, randint_1.randint)(-9, 10);
|
|
46
|
+
proposition = {
|
|
47
|
+
id: (0, uuid_1.v4)(),
|
|
48
|
+
statement: (0, simplify_1.simplifyNode)(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(),
|
|
49
|
+
isRightAnswer: false,
|
|
50
|
+
format: 'tex',
|
|
51
|
+
};
|
|
52
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
53
|
+
} while (isDuplicate);
|
|
54
|
+
propositions.push(proposition);
|
|
55
|
+
}
|
|
56
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
57
|
+
};
|
|
58
|
+
const question = {
|
|
59
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${myfunction.toTex()} $.`,
|
|
60
|
+
startStatement: "f'(x)",
|
|
61
|
+
answer: derivative.toTex(),
|
|
62
|
+
keys: ['ln'],
|
|
63
|
+
getPropositions,
|
|
64
|
+
answerFormat: 'tex',
|
|
65
|
+
};
|
|
66
|
+
return question;
|
|
67
|
+
}
|
|
68
|
+
exports.getLnDerivative = getLnDerivative;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lnDerivativeTwo.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/lnDerivativeTwo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CAoD1C"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLnDerivative = exports.lnDerivativeTwo = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
6
|
+
const logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
7
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
9
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
10
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
11
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
12
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
13
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
14
|
+
const uuid_1 = require("uuid");
|
|
15
|
+
exports.lnDerivativeTwo = {
|
|
16
|
+
id: 'lnDerivativeTwo',
|
|
17
|
+
connector: '=',
|
|
18
|
+
instruction: '',
|
|
19
|
+
label: 'Dérivée de $a \\times ln(x) + b$',
|
|
20
|
+
levels: ['1', '0'],
|
|
21
|
+
section: 'Fonction Logarithme népérien',
|
|
22
|
+
isSingleStep: false,
|
|
23
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnDerivative, nb),
|
|
24
|
+
keys: ['x'],
|
|
25
|
+
};
|
|
26
|
+
function getLnDerivative() {
|
|
27
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
28
|
+
const b = (0, randint_1.randint)(-9, 10);
|
|
29
|
+
const myfunction = new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new logNode_1.LogNode(new variableNode_1.VariableNode('x'))), new numberNode_1.NumberNode(b));
|
|
30
|
+
const derivative = (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')));
|
|
31
|
+
const getPropositions = (numOptions) => {
|
|
32
|
+
const propositions = [];
|
|
33
|
+
propositions.push({
|
|
34
|
+
id: (0, uuid_1.v4)(),
|
|
35
|
+
statement: derivative.toTex(),
|
|
36
|
+
isRightAnswer: true,
|
|
37
|
+
format: 'tex',
|
|
38
|
+
});
|
|
39
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
40
|
+
let isDuplicate;
|
|
41
|
+
let proposition;
|
|
42
|
+
do {
|
|
43
|
+
const randomA = (0, randint_1.randint)(-9, 10, [0]);
|
|
44
|
+
proposition = {
|
|
45
|
+
id: (0, uuid_1.v4)(),
|
|
46
|
+
statement: (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(randomA), new variableNode_1.VariableNode('x'))).toTex(),
|
|
47
|
+
isRightAnswer: false,
|
|
48
|
+
format: 'tex',
|
|
49
|
+
};
|
|
50
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
51
|
+
} while (isDuplicate);
|
|
52
|
+
propositions.push(proposition);
|
|
53
|
+
}
|
|
54
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
55
|
+
};
|
|
56
|
+
const question = {
|
|
57
|
+
instruction: `Déterminer la dérivée de la fonction $f(x) = ${myfunction.toTex()}$.`,
|
|
58
|
+
startStatement: "f'(x)",
|
|
59
|
+
answer: derivative.toTex(),
|
|
60
|
+
keys: ['ln'],
|
|
61
|
+
getPropositions,
|
|
62
|
+
answerFormat: 'tex',
|
|
63
|
+
};
|
|
64
|
+
return question;
|
|
65
|
+
}
|
|
66
|
+
exports.getLnDerivative = getLnDerivative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powerFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/powerFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,uBAAuB,EAAE,QAUrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"powerFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/powerFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,uBAAuB,EAAE,QAUrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CA2DrD"}
|