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
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getApplyPercentQuestion = exports.polynomeLimit = void 0;
|
|
4
|
+
const polynomial_1 = require("../../math/polynomials/polynomial");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
7
|
+
const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
|
|
8
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
9
|
+
const coinFlip_1 = require("../../utils/coinFlip");
|
|
10
|
+
const shuffle_1 = require("../../utils/shuffle");
|
|
11
|
+
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
12
|
+
const uuid_1 = require("uuid");
|
|
13
|
+
exports.polynomeLimit = {
|
|
14
|
+
id: 'polynomeLimit',
|
|
15
|
+
connector: '=',
|
|
16
|
+
instruction: '',
|
|
17
|
+
label: "Calculer la limite d'une fonction polynomiale",
|
|
18
|
+
levels: ['2', '1', '0'],
|
|
19
|
+
section: 'Limites',
|
|
20
|
+
isSingleStep: true,
|
|
21
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getApplyPercentQuestion, nb),
|
|
22
|
+
keys: ['infty'],
|
|
23
|
+
};
|
|
24
|
+
function getApplyPercentQuestion() {
|
|
25
|
+
const polynome1 = (0, polynomial_1.createRandomPolynomialWithOrder)((0, randint_1.randint)(2, 6));
|
|
26
|
+
const polynome2 = (0, polynomial_1.createRandomPolynomialWithOrder)((0, randint_1.randint)(2, 6));
|
|
27
|
+
// a_1x^n + b_2x^(n-1) + ...
|
|
28
|
+
const a1 = polynome1.coefficients[polynome1.coefficients.length - 1];
|
|
29
|
+
const a2 = polynome2.coefficients[polynome2.coefficients.length - 1];
|
|
30
|
+
const rand = (0, coinFlip_1.coinFlip)(); // polynome ou fraction
|
|
31
|
+
const randLimite = (0, coinFlip_1.coinFlip)() ? 1 : -1; // + infini ou - infini
|
|
32
|
+
let instruction = '';
|
|
33
|
+
let answer = '';
|
|
34
|
+
if (rand) {
|
|
35
|
+
instruction = `Déterminer la limite en $${randLimite > 0 ? `+` : `-`} \\infty$ de la fonction $f$ définie par : $f(x)$ = $${polynome1.toTex()}$.`;
|
|
36
|
+
answer = a1 * randLimite ** polynome1.degree > 0 ? `+\\infty` : `-\\infty`;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
instruction = `Déterminer la limite en $${randLimite > 0 ? `+` : `-`} \\infty$ de la fonction $f$ définie par : $f(x)$ = $${new fractionNode_1.FractionNode(polynome1.toTree(), polynome2.toTree()).toTex()}$.`;
|
|
40
|
+
if (polynome1.degree > polynome2.degree)
|
|
41
|
+
answer = a1 * randLimite > 0 ? `+\\infty` : `-\\infty`;
|
|
42
|
+
else if (polynome2.degree > polynome1.degree)
|
|
43
|
+
answer = '0';
|
|
44
|
+
else
|
|
45
|
+
answer = (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a1), new numberNode_1.NumberNode(a2))).toTex();
|
|
46
|
+
}
|
|
47
|
+
const getPropositions = (n) => {
|
|
48
|
+
const res = [];
|
|
49
|
+
let wrongAnswer = '';
|
|
50
|
+
let k = n - 1;
|
|
51
|
+
res.push({
|
|
52
|
+
id: (0, uuid_1.v4)() + '',
|
|
53
|
+
statement: answer,
|
|
54
|
+
isRightAnswer: true,
|
|
55
|
+
format: 'tex',
|
|
56
|
+
});
|
|
57
|
+
wrongAnswer = `+\\infty`;
|
|
58
|
+
if (k > 0 && answer !== wrongAnswer) {
|
|
59
|
+
res.push({
|
|
60
|
+
id: (0, uuid_1.v4)() + '',
|
|
61
|
+
statement: wrongAnswer,
|
|
62
|
+
isRightAnswer: false,
|
|
63
|
+
format: 'tex',
|
|
64
|
+
});
|
|
65
|
+
k--;
|
|
66
|
+
}
|
|
67
|
+
wrongAnswer = `-\\infty`;
|
|
68
|
+
if (k > 0 && answer !== wrongAnswer) {
|
|
69
|
+
res.push({
|
|
70
|
+
id: (0, uuid_1.v4)() + '',
|
|
71
|
+
statement: wrongAnswer,
|
|
72
|
+
isRightAnswer: false,
|
|
73
|
+
format: 'tex',
|
|
74
|
+
});
|
|
75
|
+
k--;
|
|
76
|
+
}
|
|
77
|
+
wrongAnswer = `0`;
|
|
78
|
+
if (k > 0 && answer !== wrongAnswer) {
|
|
79
|
+
res.push({
|
|
80
|
+
id: (0, uuid_1.v4)() + '',
|
|
81
|
+
statement: wrongAnswer,
|
|
82
|
+
isRightAnswer: false,
|
|
83
|
+
format: 'tex',
|
|
84
|
+
});
|
|
85
|
+
k--;
|
|
86
|
+
}
|
|
87
|
+
wrongAnswer = (0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(a1), new numberNode_1.NumberNode(a2))).toTex();
|
|
88
|
+
if (!rand && k > 0 && answer !== wrongAnswer) {
|
|
89
|
+
res.push({
|
|
90
|
+
id: (0, uuid_1.v4)() + '',
|
|
91
|
+
statement: wrongAnswer,
|
|
92
|
+
isRightAnswer: false,
|
|
93
|
+
format: 'tex',
|
|
94
|
+
});
|
|
95
|
+
k--;
|
|
96
|
+
}
|
|
97
|
+
wrongAnswer = `${a1}`;
|
|
98
|
+
if (k > 0 && answer !== wrongAnswer) {
|
|
99
|
+
res.push({
|
|
100
|
+
id: (0, uuid_1.v4)() + '',
|
|
101
|
+
statement: wrongAnswer,
|
|
102
|
+
isRightAnswer: false,
|
|
103
|
+
format: 'tex',
|
|
104
|
+
});
|
|
105
|
+
k--;
|
|
106
|
+
}
|
|
107
|
+
for (let i = 0; i < k; i++) {
|
|
108
|
+
let isDuplicate;
|
|
109
|
+
let proposition;
|
|
110
|
+
do {
|
|
111
|
+
proposition = {
|
|
112
|
+
id: (0, uuid_1.v4)() + '',
|
|
113
|
+
statement: (0, randint_1.randint)(-9, 10) + '',
|
|
114
|
+
isRightAnswer: false,
|
|
115
|
+
format: 'tex',
|
|
116
|
+
};
|
|
117
|
+
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
118
|
+
} while (isDuplicate);
|
|
119
|
+
res.push(proposition);
|
|
120
|
+
}
|
|
121
|
+
return (0, shuffle_1.shuffle)(res);
|
|
122
|
+
};
|
|
123
|
+
const question = {
|
|
124
|
+
instruction,
|
|
125
|
+
answer,
|
|
126
|
+
keys: ['infty'],
|
|
127
|
+
getPropositions,
|
|
128
|
+
answerFormat: 'tex',
|
|
129
|
+
};
|
|
130
|
+
return question;
|
|
131
|
+
}
|
|
132
|
+
exports.getApplyPercentQuestion = getApplyPercentQuestion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/applyPercent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"applyPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/applyPercent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CA+DlD"}
|
|
@@ -39,6 +39,7 @@ function getApplyPercentQuestion() {
|
|
|
39
39
|
id: (0, uuid_1.v4)() + '',
|
|
40
40
|
statement: ans.toString(),
|
|
41
41
|
isRightAnswer: true,
|
|
42
|
+
format: 'tex',
|
|
42
43
|
});
|
|
43
44
|
for (let i = 0; i < n - 1; i++) {
|
|
44
45
|
let isDuplicate;
|
|
@@ -53,6 +54,7 @@ function getApplyPercentQuestion() {
|
|
|
53
54
|
id: (0, uuid_1.v4)() + '',
|
|
54
55
|
statement: wrongAnswer.toString(),
|
|
55
56
|
isRightAnswer: false,
|
|
57
|
+
format: 'tex',
|
|
56
58
|
};
|
|
57
59
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
58
60
|
} while (isDuplicate);
|
|
@@ -65,6 +67,7 @@ function getApplyPercentQuestion() {
|
|
|
65
67
|
answer: ans.toString(),
|
|
66
68
|
keys: ['percent'],
|
|
67
69
|
getPropositions,
|
|
70
|
+
answerFormat: 'tex',
|
|
68
71
|
};
|
|
69
72
|
return question;
|
|
70
73
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"averageEvolutionRate.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/averageEvolutionRate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAsDlD"}
|
|
@@ -28,6 +28,7 @@ function getAverageEvolutionRate() {
|
|
|
28
28
|
id: (0, uuid_1.v4)() + '',
|
|
29
29
|
statement: `${answer}\\%`,
|
|
30
30
|
isRightAnswer: true,
|
|
31
|
+
format: 'tex',
|
|
31
32
|
});
|
|
32
33
|
for (let i = 0; i < n - 1; i++) {
|
|
33
34
|
let isDuplicate;
|
|
@@ -42,6 +43,7 @@ function getAverageEvolutionRate() {
|
|
|
42
43
|
id: (0, uuid_1.v4)() + '',
|
|
43
44
|
statement: `${wrongAnswer}\\%`,
|
|
44
45
|
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
45
47
|
};
|
|
46
48
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
47
49
|
} while (isDuplicate);
|
|
@@ -54,6 +56,7 @@ function getAverageEvolutionRate() {
|
|
|
54
56
|
answer: answer + `\\%`,
|
|
55
57
|
keys: ['percent'],
|
|
56
58
|
getPropositions,
|
|
59
|
+
answerFormat: 'tex',
|
|
57
60
|
};
|
|
58
61
|
return question;
|
|
59
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/globalPercent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"globalPercent.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/globalPercent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAqEnD"}
|
|
@@ -42,6 +42,7 @@ function getGlobalPercentQuestion() {
|
|
|
42
42
|
id: (0, uuid_1.v4)() + '',
|
|
43
43
|
statement: answer,
|
|
44
44
|
isRightAnswer: true,
|
|
45
|
+
format: 'tex',
|
|
45
46
|
});
|
|
46
47
|
for (let i = 0; i < n - 1; i++) {
|
|
47
48
|
let isDuplicate;
|
|
@@ -56,6 +57,7 @@ function getGlobalPercentQuestion() {
|
|
|
56
57
|
id: (0, uuid_1.v4)() + '',
|
|
57
58
|
statement: `${wrongAnswer} \\%`,
|
|
58
59
|
isRightAnswer: false,
|
|
60
|
+
format: 'tex',
|
|
59
61
|
};
|
|
60
62
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
61
63
|
} while (isDuplicate);
|
|
@@ -68,6 +70,7 @@ function getGlobalPercentQuestion() {
|
|
|
68
70
|
answer,
|
|
69
71
|
keys: ['percent'],
|
|
70
72
|
getPropositions,
|
|
73
|
+
answerFormat: 'tex',
|
|
71
74
|
};
|
|
72
75
|
return question;
|
|
73
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/reciprocalPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"reciprocalPercentage.d.ts","sourceRoot":"","sources":["../../../src/exercises/percent/reciprocalPercentage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAwD1D"}
|
|
@@ -30,6 +30,7 @@ function getReciprocalPercentageQuestion() {
|
|
|
30
30
|
id: (0, uuid_1.v4)() + '',
|
|
31
31
|
statement: `${ans > 0 ? '+' + (0, mathjs_1.round)(ans, 2) : (0, mathjs_1.round)(ans, 2)} \\%`,
|
|
32
32
|
isRightAnswer: true,
|
|
33
|
+
format: 'tex',
|
|
33
34
|
});
|
|
34
35
|
for (let i = 0; i < n - 1; i++) {
|
|
35
36
|
let isDuplicate;
|
|
@@ -44,6 +45,7 @@ function getReciprocalPercentageQuestion() {
|
|
|
44
45
|
id: (0, uuid_1.v4)() + '',
|
|
45
46
|
statement: `${wrongAnswer > 0 ? '+' + wrongAnswer : wrongAnswer} \\%`,
|
|
46
47
|
isRightAnswer: false,
|
|
48
|
+
format: 'tex',
|
|
47
49
|
};
|
|
48
50
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
49
51
|
} while (isDuplicate);
|
|
@@ -56,6 +58,7 @@ function getReciprocalPercentageQuestion() {
|
|
|
56
58
|
answer: `${ans > 0 ? '+' + (0, mathjs_1.round)(ans, 2) : (0, mathjs_1.round)(ans, 2)} \\%`,
|
|
57
59
|
keys: ['percent'],
|
|
58
60
|
getPropositions,
|
|
61
|
+
answerFormat: 'tex',
|
|
59
62
|
};
|
|
60
63
|
return question;
|
|
61
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAqDvF"}
|
|
@@ -44,6 +44,7 @@ function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
|
|
|
44
44
|
id: (0, uuid_1.v4)() + '',
|
|
45
45
|
statement: answerTree.toTex(),
|
|
46
46
|
isRightAnswer: true,
|
|
47
|
+
format: 'tex',
|
|
47
48
|
});
|
|
48
49
|
for (let i = 0; i < n - 1; i++) {
|
|
49
50
|
let isDuplicate;
|
|
@@ -56,6 +57,7 @@ function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
|
|
|
56
57
|
id: (0, uuid_1.v4)() + '',
|
|
57
58
|
statement: wrongAnswer,
|
|
58
59
|
isRightAnswer: false,
|
|
60
|
+
format: 'tex',
|
|
59
61
|
};
|
|
60
62
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
61
63
|
} while (isDuplicate);
|
|
@@ -68,6 +70,7 @@ function getPowersDivisionQuestion(useOnlyPowersOfTen = false) {
|
|
|
68
70
|
answer: answerTree.toTex(),
|
|
69
71
|
keys: [],
|
|
70
72
|
getPropositions,
|
|
73
|
+
answerFormat: 'tex',
|
|
71
74
|
};
|
|
72
75
|
return question;
|
|
73
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAiDzD"}
|
|
@@ -32,6 +32,7 @@ function getPowersOfTenDivisionQuestion() {
|
|
|
32
32
|
id: (0, uuid_1.v4)() + '',
|
|
33
33
|
statement: answerTree.toTex(),
|
|
34
34
|
isRightAnswer: true,
|
|
35
|
+
format: 'tex',
|
|
35
36
|
});
|
|
36
37
|
for (let i = 0; i < n - 1; i++) {
|
|
37
38
|
let isDuplicate;
|
|
@@ -44,6 +45,7 @@ function getPowersOfTenDivisionQuestion() {
|
|
|
44
45
|
id: (0, uuid_1.v4)() + '',
|
|
45
46
|
statement: wrongAnswer,
|
|
46
47
|
isRightAnswer: false,
|
|
48
|
+
format: 'tex',
|
|
47
49
|
};
|
|
48
50
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
49
51
|
} while (isDuplicate);
|
|
@@ -56,6 +58,7 @@ function getPowersOfTenDivisionQuestion() {
|
|
|
56
58
|
answer: answerTree.toTex(),
|
|
57
59
|
keys: [],
|
|
58
60
|
getPropositions,
|
|
61
|
+
answerFormat: 'tex',
|
|
59
62
|
};
|
|
60
63
|
return question;
|
|
61
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAkDpF"}
|
|
@@ -43,6 +43,7 @@ function getPowersPowerQuestion(useOnlyPowersOfTen = false) {
|
|
|
43
43
|
id: (0, uuid_1.v4)() + '',
|
|
44
44
|
statement: answerTree.toTex(),
|
|
45
45
|
isRightAnswer: true,
|
|
46
|
+
format: 'tex',
|
|
46
47
|
});
|
|
47
48
|
for (let i = 0; i < n - 1; i++) {
|
|
48
49
|
let isDuplicate;
|
|
@@ -55,6 +56,7 @@ function getPowersPowerQuestion(useOnlyPowersOfTen = false) {
|
|
|
55
56
|
id: (0, uuid_1.v4)() + '',
|
|
56
57
|
statement: wrongAnswer,
|
|
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 getPowersPowerQuestion(useOnlyPowersOfTen = false) {
|
|
|
67
69
|
answer: answerTree.toTex(),
|
|
68
70
|
keys: [],
|
|
69
71
|
getPropositions,
|
|
72
|
+
answerFormat: 'tex',
|
|
70
73
|
};
|
|
71
74
|
return question;
|
|
72
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAqDtF"}
|
|
@@ -44,6 +44,7 @@ function getPowersProductQuestion(useOnlyPowersOfTen = false) {
|
|
|
44
44
|
id: (0, uuid_1.v4)() + '',
|
|
45
45
|
statement: answerTree.toTex(),
|
|
46
46
|
isRightAnswer: true,
|
|
47
|
+
format: 'tex',
|
|
47
48
|
});
|
|
48
49
|
for (let i = 0; i < n - 1; i++) {
|
|
49
50
|
let isDuplicate;
|
|
@@ -56,6 +57,7 @@ function getPowersProductQuestion(useOnlyPowersOfTen = false) {
|
|
|
56
57
|
id: (0, uuid_1.v4)() + '',
|
|
57
58
|
statement: wrongAnswer,
|
|
58
59
|
isRightAnswer: false,
|
|
60
|
+
format: 'tex',
|
|
59
61
|
};
|
|
60
62
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
61
63
|
} while (isDuplicate);
|
|
@@ -68,6 +70,7 @@ function getPowersProductQuestion(useOnlyPowersOfTen = false) {
|
|
|
68
70
|
answer: answerTree.toTex(),
|
|
69
71
|
keys: [],
|
|
70
72
|
getPropositions,
|
|
73
|
+
answerFormat: 'tex',
|
|
71
74
|
};
|
|
72
75
|
return question;
|
|
73
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AASN,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,mBAAmB,EAAE,QAWjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AASN,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,mBAAmB,EAAE,QAWjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAqDzD"}
|
|
@@ -37,6 +37,7 @@ function getScientificToDecimalQuestion() {
|
|
|
37
37
|
id: (0, uuid_1.v4)() + '',
|
|
38
38
|
statement: answerTree.toTex(),
|
|
39
39
|
isRightAnswer: true,
|
|
40
|
+
format: 'tex',
|
|
40
41
|
});
|
|
41
42
|
for (let i = 0; i < n - 1; i++) {
|
|
42
43
|
let isDuplicate;
|
|
@@ -48,6 +49,7 @@ function getScientificToDecimalQuestion() {
|
|
|
48
49
|
id: (0, uuid_1.v4)() + '',
|
|
49
50
|
statement: wrongAnswer,
|
|
50
51
|
isRightAnswer: false,
|
|
52
|
+
format: 'tex',
|
|
51
53
|
};
|
|
52
54
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
53
55
|
} while (isDuplicate);
|
|
@@ -60,6 +62,7 @@ function getScientificToDecimalQuestion() {
|
|
|
60
62
|
answer: answerTree.toTex(),
|
|
61
63
|
keys: [],
|
|
62
64
|
getPropositions,
|
|
65
|
+
answerFormat: 'tex',
|
|
63
66
|
};
|
|
64
67
|
return question;
|
|
65
68
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constantPrimitive.d.ts","sourceRoot":"","sources":["../../../src/exercises/primitve/constantPrimitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CA6C/C"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConstantPrimitive = exports.constantPrimitive = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
6
|
+
const shuffle_1 = require("../../utils/shuffle");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
8
|
+
exports.constantPrimitive = {
|
|
9
|
+
id: 'constantPrimitive',
|
|
10
|
+
connector: '=',
|
|
11
|
+
instruction: '',
|
|
12
|
+
label: "Primitive d'une constante",
|
|
13
|
+
levels: ['1', '0'],
|
|
14
|
+
section: 'Intégration',
|
|
15
|
+
isSingleStep: false,
|
|
16
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getConstantPrimitive, nb),
|
|
17
|
+
keys: ['x', 'C'],
|
|
18
|
+
};
|
|
19
|
+
function getConstantPrimitive() {
|
|
20
|
+
const c = (0, randint_1.randint)(-9, 10, [0]);
|
|
21
|
+
const getPropositions = (n) => {
|
|
22
|
+
const propositions = [];
|
|
23
|
+
propositions.push({
|
|
24
|
+
id: (0, uuid_1.v4)(),
|
|
25
|
+
statement: `${c}x + C`,
|
|
26
|
+
isRightAnswer: true,
|
|
27
|
+
format: 'tex',
|
|
28
|
+
});
|
|
29
|
+
for (let i = 0; i < n - 1; i++) {
|
|
30
|
+
let isDuplicate;
|
|
31
|
+
let proposition;
|
|
32
|
+
do {
|
|
33
|
+
const wrongAnswer = `${(0, randint_1.randint)(-9, 10)}x + C`;
|
|
34
|
+
proposition = {
|
|
35
|
+
id: (0, uuid_1.v4)(),
|
|
36
|
+
statement: wrongAnswer,
|
|
37
|
+
isRightAnswer: false,
|
|
38
|
+
format: 'tex',
|
|
39
|
+
};
|
|
40
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
41
|
+
} while (isDuplicate);
|
|
42
|
+
propositions.push(proposition);
|
|
43
|
+
}
|
|
44
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
45
|
+
};
|
|
46
|
+
const question = {
|
|
47
|
+
instruction: `Déterminer la forme générale des primitives de la fonction constante $f$ définie par $f(x) = ${c}$.`,
|
|
48
|
+
startStatement: `F(x)`,
|
|
49
|
+
answer: `${c}x + C`,
|
|
50
|
+
keys: ['x', 'C'],
|
|
51
|
+
getPropositions,
|
|
52
|
+
answerFormat: 'tex',
|
|
53
|
+
};
|
|
54
|
+
return question;
|
|
55
|
+
}
|
|
56
|
+
exports.getConstantPrimitive = getConstantPrimitive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exponentialPrimitive.d.ts","sourceRoot":"","sources":["../../../src/exercises/primitve/exponentialPrimitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAiB3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAyFlD"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExponentialPrimitive = exports.exponentialPrimitive = 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 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 powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
13
|
+
const variableNode_1 = require("../../tree/nodes/variables/variableNode");
|
|
14
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
15
|
+
const coinFlip_1 = require("../../utils/coinFlip");
|
|
16
|
+
const shuffle_1 = require("../../utils/shuffle");
|
|
17
|
+
const uuid_1 = require("uuid");
|
|
18
|
+
exports.exponentialPrimitive = {
|
|
19
|
+
id: 'exponentialPrimitive',
|
|
20
|
+
connector: '=',
|
|
21
|
+
instruction: '',
|
|
22
|
+
label: 'Primitive de la fonction exponentielle',
|
|
23
|
+
levels: ['1', '0'],
|
|
24
|
+
section: 'Intégration',
|
|
25
|
+
isSingleStep: false,
|
|
26
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExponentialPrimitive, nb),
|
|
27
|
+
keys: ['x', 'C', 'exp'],
|
|
28
|
+
};
|
|
29
|
+
function getExponentialPrimitive() {
|
|
30
|
+
const rand = (0, coinFlip_1.coinFlip)();
|
|
31
|
+
const a = (0, randint_1.randint)(-9, 10);
|
|
32
|
+
const u = (0, polynomial_1.createRandomPolynomialWithOrder)((0, randint_1.randint)(1, 3));
|
|
33
|
+
let selectedFunction;
|
|
34
|
+
let integratedFuction;
|
|
35
|
+
if (rand) {
|
|
36
|
+
// a * e^(x)
|
|
37
|
+
selectedFunction = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new variableNode_1.VariableNode('x')))); // le simplify ici a pour but de éviter les 1*e / -1*e
|
|
38
|
+
integratedFuction = new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new variableNode_1.VariableNode('x')));
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
// u'(x) * e^(u(x))
|
|
42
|
+
const oneOrTwo = (0, coinFlip_1.coinFlip)();
|
|
43
|
+
selectedFunction = new multiplyNode_1.MultiplyNode(u.derivate().toTree(), new expNode_1.ExpNode(u.toTree()));
|
|
44
|
+
integratedFuction = new expNode_1.ExpNode(u.toTree());
|
|
45
|
+
}
|
|
46
|
+
const getPropositions = (n) => {
|
|
47
|
+
const propositions = [];
|
|
48
|
+
propositions.push({
|
|
49
|
+
id: (0, uuid_1.v4)(),
|
|
50
|
+
statement: `${(0, simplify_1.simplifyNode)(integratedFuction).toTex()} + C`,
|
|
51
|
+
isRightAnswer: true,
|
|
52
|
+
format: 'tex',
|
|
53
|
+
});
|
|
54
|
+
for (let i = 0; i < n - 1; i++) {
|
|
55
|
+
let isDuplicate;
|
|
56
|
+
let proposition;
|
|
57
|
+
let wrongIntegral;
|
|
58
|
+
do {
|
|
59
|
+
if (rand) {
|
|
60
|
+
const wrongIntegrals = [
|
|
61
|
+
new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(-a), new expNode_1.ExpNode(new variableNode_1.VariableNode('x'))),
|
|
62
|
+
new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')))),
|
|
63
|
+
new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new fractionNode_1.FractionNode(new variableNode_1.VariableNode('x'), new numberNode_1.NumberNode(a)))),
|
|
64
|
+
new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new addNode_1.AddNode(new variableNode_1.VariableNode('x'), new numberNode_1.NumberNode(a)))),
|
|
65
|
+
new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new expNode_1.ExpNode(new powerNode_1.PowerNode(new variableNode_1.VariableNode('x'), new numberNode_1.NumberNode(a)))),
|
|
66
|
+
new expNode_1.ExpNode(new variableNode_1.VariableNode('x')),
|
|
67
|
+
];
|
|
68
|
+
wrongIntegral = (0, simplify_1.simplifyNode)(wrongIntegrals[(0, randint_1.randint)(0, wrongIntegrals.length)]);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const wrongIntegrals = [
|
|
72
|
+
new multiplyNode_1.MultiplyNode(u.toTree(), new expNode_1.ExpNode(u.toTree())),
|
|
73
|
+
new multiplyNode_1.MultiplyNode(u.derivate().toTree(), new expNode_1.ExpNode(u.toTree())),
|
|
74
|
+
new multiplyNode_1.MultiplyNode(u.toTree(), new expNode_1.ExpNode(new variableNode_1.VariableNode('x'))),
|
|
75
|
+
new multiplyNode_1.MultiplyNode(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(1), u.toTree()), new expNode_1.ExpNode(new variableNode_1.VariableNode('x'))),
|
|
76
|
+
new multiplyNode_1.MultiplyNode(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(1), u.toTree()), new expNode_1.ExpNode(u.toTree())),
|
|
77
|
+
new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode((0, randint_1.randint)(-9, 10, [0])), new expNode_1.ExpNode(u.toTree())),
|
|
78
|
+
];
|
|
79
|
+
wrongIntegral = wrongIntegrals[(0, randint_1.randint)(0, wrongIntegrals.length)];
|
|
80
|
+
}
|
|
81
|
+
proposition = {
|
|
82
|
+
id: (0, uuid_1.v4)(),
|
|
83
|
+
statement: `${wrongIntegral.toTex()} + C`,
|
|
84
|
+
isRightAnswer: false,
|
|
85
|
+
format: 'tex',
|
|
86
|
+
};
|
|
87
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
88
|
+
} while (isDuplicate);
|
|
89
|
+
propositions.push(proposition);
|
|
90
|
+
}
|
|
91
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
92
|
+
};
|
|
93
|
+
const question = {
|
|
94
|
+
instruction: `Déterminer la forme générale des primitives de la fonction f définie par $f(x) = ${selectedFunction.toTex()}$.`,
|
|
95
|
+
startStatement: `F(x)`,
|
|
96
|
+
answer: `${(0, simplify_1.simplifyNode)(integratedFuction).toTex()} + C`,
|
|
97
|
+
keys: ['x', 'C', 'exp'],
|
|
98
|
+
getPropositions,
|
|
99
|
+
answerFormat: 'tex',
|
|
100
|
+
};
|
|
101
|
+
return question;
|
|
102
|
+
}
|
|
103
|
+
exports.getExponentialPrimitive = getExponentialPrimitive;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logarithmePrimitive.d.ts","sourceRoot":"","sources":["../../../src/exercises/primitve/logarithmePrimitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,mBAAmB,EAAE,QAUjC,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CAiEjD"}
|