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
|
@@ -32,6 +32,7 @@ function getPowerFunctionDerivative() {
|
|
|
32
32
|
id: (0, uuid_1.v4)(),
|
|
33
33
|
statement: answerStatement.toTex(),
|
|
34
34
|
isRightAnswer: true,
|
|
35
|
+
format: 'tex',
|
|
35
36
|
});
|
|
36
37
|
for (let i = 0; i < numOptions - 1; i++) {
|
|
37
38
|
let isDuplicate;
|
|
@@ -42,6 +43,7 @@ function getPowerFunctionDerivative() {
|
|
|
42
43
|
id: (0, uuid_1.v4)(),
|
|
43
44
|
statement: (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a * wrongExponent), new powerNode_1.PowerNode(new variableNode_1.VariableNode('x'), new numberNode_1.NumberNode(wrongExponent - 1)))).toTex(),
|
|
44
45
|
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
45
47
|
};
|
|
46
48
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
47
49
|
} while (isDuplicate);
|
|
@@ -55,6 +57,7 @@ function getPowerFunctionDerivative() {
|
|
|
55
57
|
answer: answerStatement.toTex(),
|
|
56
58
|
keys: ['x'],
|
|
57
59
|
getPropositions,
|
|
60
|
+
answerFormat: 'tex',
|
|
58
61
|
};
|
|
59
62
|
return question;
|
|
60
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/rootFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"rootFunctionDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/rootFunctionDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAkEpD"}
|
|
@@ -37,6 +37,7 @@ function getRootFunctionDerivative() {
|
|
|
37
37
|
id: (0, uuid_1.v4)(),
|
|
38
38
|
statement: answer,
|
|
39
39
|
isRightAnswer: true,
|
|
40
|
+
format: 'tex',
|
|
40
41
|
});
|
|
41
42
|
for (let i = 0; i < numOptions - 1; i++) {
|
|
42
43
|
let isDuplicate;
|
|
@@ -49,6 +50,7 @@ function getRootFunctionDerivative() {
|
|
|
49
50
|
id: (0, uuid_1.v4)(),
|
|
50
51
|
statement: `\\frac{${randomA / 2}}{\\sqrt{x}}`,
|
|
51
52
|
isRightAnswer: false,
|
|
53
|
+
format: 'tex',
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
else {
|
|
@@ -56,6 +58,7 @@ function getRootFunctionDerivative() {
|
|
|
56
58
|
id: 'wrong' + i,
|
|
57
59
|
statement: `\\frac{${randomA}}{2\\sqrt{x}}`,
|
|
58
60
|
isRightAnswer: false,
|
|
61
|
+
format: 'tex',
|
|
59
62
|
};
|
|
60
63
|
}
|
|
61
64
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
@@ -70,6 +73,7 @@ function getRootFunctionDerivative() {
|
|
|
70
73
|
answer,
|
|
71
74
|
keys: ['x'],
|
|
72
75
|
getPropositions,
|
|
76
|
+
answerFormat: 'tex',
|
|
73
77
|
};
|
|
74
78
|
return question;
|
|
75
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/secondDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"secondDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/secondDegreeDerivative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAqDpD"}
|
|
@@ -27,6 +27,7 @@ function getSecondDegreeDerivative() {
|
|
|
27
27
|
id: (0, uuid_1.v4)(),
|
|
28
28
|
statement: derivative.toString(),
|
|
29
29
|
isRightAnswer: true,
|
|
30
|
+
format: 'tex',
|
|
30
31
|
});
|
|
31
32
|
for (let i = 0; i < numOptions - 1; i++) {
|
|
32
33
|
let isDuplicate;
|
|
@@ -42,6 +43,7 @@ function getSecondDegreeDerivative() {
|
|
|
42
43
|
id: (0, uuid_1.v4)(),
|
|
43
44
|
statement: randomPolynomial.derivate().toString(),
|
|
44
45
|
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
45
47
|
};
|
|
46
48
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
47
49
|
} while (isDuplicate);
|
|
@@ -55,6 +57,7 @@ function getSecondDegreeDerivative() {
|
|
|
55
57
|
answer: derivative.toString(),
|
|
56
58
|
keys: ['x'],
|
|
57
59
|
getPropositions,
|
|
60
|
+
answerFormat: 'tex',
|
|
58
61
|
};
|
|
59
62
|
return question;
|
|
60
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeDerivative.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":"thirdDegreeDerivative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeDerivative.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,CAwDnD"}
|
|
@@ -30,6 +30,7 @@ function getThirdDegreeDerivative() {
|
|
|
30
30
|
id: (0, uuid_1.v4)(),
|
|
31
31
|
statement: derivative.toString(),
|
|
32
32
|
isRightAnswer: true,
|
|
33
|
+
format: 'tex',
|
|
33
34
|
});
|
|
34
35
|
for (let i = 0; i < numOptions - 1; i++) {
|
|
35
36
|
let isDuplicate;
|
|
@@ -44,6 +45,7 @@ function getThirdDegreeDerivative() {
|
|
|
44
45
|
id: (0, uuid_1.v4)(),
|
|
45
46
|
statement: randomPolynomial.derivate().toString(),
|
|
46
47
|
isRightAnswer: false,
|
|
48
|
+
format: 'tex',
|
|
47
49
|
};
|
|
48
50
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
49
51
|
} while (isDuplicate);
|
|
@@ -57,6 +59,7 @@ function getThirdDegreeDerivative() {
|
|
|
57
59
|
answer: derivative.toString(),
|
|
58
60
|
keys: ['x'],
|
|
59
61
|
getPropositions,
|
|
62
|
+
answerFormat: 'tex',
|
|
60
63
|
};
|
|
61
64
|
return question;
|
|
62
65
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thirdDegreeFunctionVariation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/derivation/derivative/thirdDegreeFunctionVariation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,4BAA4B,EAAE,QAU1C,CAAC;AAEF,wBAAgB,+BAA+B,IAAI,QAAQ,CAiG1D"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getThirdDegreeFunctionVariation = exports.thirdDegreeFunctionVariation = 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 coinFlip_1 = require("../../../utils/coinFlip");
|
|
8
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
9
|
+
const uuid_1 = require("uuid");
|
|
10
|
+
exports.thirdDegreeFunctionVariation = {
|
|
11
|
+
id: 'thirdDegreeFunctionVariation',
|
|
12
|
+
connector: '=',
|
|
13
|
+
instruction: '',
|
|
14
|
+
label: "Lecture du signe de la dérivée via les variations d'une fonction",
|
|
15
|
+
levels: ['1', '0'],
|
|
16
|
+
section: 'Dérivation',
|
|
17
|
+
isSingleStep: true,
|
|
18
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getThirdDegreeFunctionVariation, nb),
|
|
19
|
+
keys: ['lbracket', 'rbracket', 'semicolon', 'infty'],
|
|
20
|
+
};
|
|
21
|
+
function getThirdDegreeFunctionVariation() {
|
|
22
|
+
const a = (0, randint_1.randint)(-3, 4, [0]);
|
|
23
|
+
const c = (0, randint_1.randint)(-2, 3);
|
|
24
|
+
const racine1 = (0, randint_1.randint)(-5, 4);
|
|
25
|
+
const racine2 = (0, randint_1.randint)(racine1 + 1, 6);
|
|
26
|
+
const coefs = [c, a * racine1 * racine2, (-a * (racine1 + racine2)) / 2, a / 3];
|
|
27
|
+
const polynome = new polynomial_1.Polynomial(coefs);
|
|
28
|
+
const coin = (0, coinFlip_1.coinFlip)() ? -1 : 1;
|
|
29
|
+
const instruction = `Soit $f$ la fonction représentée ci-dessous. Sur quel intervalle la dérivée de $f$ est-elle ` +
|
|
30
|
+
(coin < 0 ? 'négative ?' : 'positive ?');
|
|
31
|
+
const answer = coin * a < 0
|
|
32
|
+
? `\\left[${racine1};${racine2}\\right]`
|
|
33
|
+
: `\\left]-\\infty;${racine1}\\right] \\cup \\left[${racine2};+\\infty\\right[`;
|
|
34
|
+
const getPropositions = (n) => {
|
|
35
|
+
const res = [];
|
|
36
|
+
res.push({
|
|
37
|
+
id: (0, uuid_1.v4)() + '',
|
|
38
|
+
statement: answer,
|
|
39
|
+
isRightAnswer: true,
|
|
40
|
+
format: 'tex',
|
|
41
|
+
});
|
|
42
|
+
res.push({
|
|
43
|
+
id: (0, uuid_1.v4)() + '',
|
|
44
|
+
statement: `\\left[${racine2};+\\infty\\right[`,
|
|
45
|
+
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
47
|
+
});
|
|
48
|
+
if (n > 2)
|
|
49
|
+
res.push({
|
|
50
|
+
id: (0, uuid_1.v4)() + '',
|
|
51
|
+
statement: `\\left]-\\infty;${racine1}\\right]`,
|
|
52
|
+
isRightAnswer: false,
|
|
53
|
+
format: 'tex',
|
|
54
|
+
});
|
|
55
|
+
if (n > 3)
|
|
56
|
+
res.push({
|
|
57
|
+
id: (0, uuid_1.v4)() + '',
|
|
58
|
+
statement: `\\left]-\\infty;${racine1}\\right] \\cup \\left[${racine2};+\\infty\\right[`,
|
|
59
|
+
isRightAnswer: false,
|
|
60
|
+
format: 'tex',
|
|
61
|
+
});
|
|
62
|
+
for (let i = 0; i < n - 4; i++) {
|
|
63
|
+
let isDuplicate;
|
|
64
|
+
let proposition;
|
|
65
|
+
do {
|
|
66
|
+
const racine1 = (0, randint_1.randint)(-5, 4);
|
|
67
|
+
const racine2 = (0, randint_1.randint)(racine1 + 1, 6);
|
|
68
|
+
const wrongAnswer = `\\left[${racine1};${racine2}\\right]`;
|
|
69
|
+
proposition = {
|
|
70
|
+
id: (0, uuid_1.v4)() + '',
|
|
71
|
+
statement: wrongAnswer,
|
|
72
|
+
isRightAnswer: false,
|
|
73
|
+
format: 'tex',
|
|
74
|
+
};
|
|
75
|
+
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
76
|
+
} while (isDuplicate);
|
|
77
|
+
res.push(proposition);
|
|
78
|
+
}
|
|
79
|
+
return (0, shuffle_1.shuffle)(res);
|
|
80
|
+
};
|
|
81
|
+
const commands = [polynome.toString()];
|
|
82
|
+
const ymax = Math.max(polynome.calculate(racine1), polynome.calculate(racine2));
|
|
83
|
+
const ymin = Math.min(polynome.calculate(racine1), polynome.calculate(racine2));
|
|
84
|
+
const question = {
|
|
85
|
+
instruction,
|
|
86
|
+
startStatement: 'S',
|
|
87
|
+
answer,
|
|
88
|
+
keys: ['lbracket', 'rbracket', 'semicolon', 'infty'],
|
|
89
|
+
getPropositions,
|
|
90
|
+
answerFormat: 'tex',
|
|
91
|
+
coords: [
|
|
92
|
+
racine1 - ((0, randint_1.randint)(7, 20) / 10) * (racine2 - racine1),
|
|
93
|
+
racine2 + ((0, randint_1.randint)(7, 20) / 10) * (racine2 - racine1),
|
|
94
|
+
ymin - ((ymax - ymin) * (0, randint_1.randint)(7, 20)) / 10,
|
|
95
|
+
ymax + ((ymax - ymin) * (0, randint_1.randint)(7, 20)) / 10,
|
|
96
|
+
],
|
|
97
|
+
commands,
|
|
98
|
+
};
|
|
99
|
+
return question;
|
|
100
|
+
}
|
|
101
|
+
exports.getThirdDegreeFunctionVariation = getThirdDegreeFunctionVariation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../src/exercises/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"derivativeNumberReading.d.ts","sourceRoot":"","sources":["../../../src/exercises/derivation/derivativeNumberReading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,uBAAuB,EAAE,QASrC,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,QAAQ,CAyErD"}
|
|
@@ -49,6 +49,7 @@ function getDerivativeNumberReading() {
|
|
|
49
49
|
id: (0, uuid_1.v4)() + '',
|
|
50
50
|
statement: droite.getLeadingCoefficient(),
|
|
51
51
|
isRightAnswer: true,
|
|
52
|
+
format: 'tex',
|
|
52
53
|
});
|
|
53
54
|
for (let i = 0; i < n - 1; i++) {
|
|
54
55
|
let isDuplicate;
|
|
@@ -61,6 +62,7 @@ function getDerivativeNumberReading() {
|
|
|
61
62
|
id: (0, uuid_1.v4)() + '',
|
|
62
63
|
statement: wrongAnswer.toTex(),
|
|
63
64
|
isRightAnswer: false,
|
|
65
|
+
format: 'tex',
|
|
64
66
|
};
|
|
65
67
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
66
68
|
} while (isDuplicate);
|
|
@@ -75,6 +77,7 @@ function getDerivativeNumberReading() {
|
|
|
75
77
|
commands,
|
|
76
78
|
coords: [xA - 5, xA + 5, yA - 5, yA + 5],
|
|
77
79
|
getPropositions,
|
|
80
|
+
answerFormat: 'tex',
|
|
78
81
|
};
|
|
79
82
|
return question;
|
|
80
83
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equaDiffGeneralForme.d.ts","sourceRoot":"","sources":["../../../src/exercises/equaDiff/equaDiffGeneralForme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,+BAA+B,EAAE,QAU7C,CAAC;AAEF,wBAAgB,sBAAsB,IAAI,QAAQ,CA8DjD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExponentialEquation = exports.exponentialDifferentialEquation = 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");
|
|
7
|
+
const constantNode_1 = require("../../tree/nodes/numbers/constantNode");
|
|
8
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const equalNode_1 = require("../../tree/nodes/operators/equalNode");
|
|
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.exponentialDifferentialEquation = {
|
|
16
|
+
id: 'exponentialDifferentialEquation',
|
|
17
|
+
connector: '=',
|
|
18
|
+
instruction: '',
|
|
19
|
+
label: "Équation Différentielle : y' = ay",
|
|
20
|
+
levels: ['1', '0'],
|
|
21
|
+
section: 'Équations Différentielles',
|
|
22
|
+
isSingleStep: false,
|
|
23
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExponentialEquation, nb),
|
|
24
|
+
keys: ['x', 'y', 'exp', 'C', 'equal'],
|
|
25
|
+
};
|
|
26
|
+
function getExponentialEquation() {
|
|
27
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
28
|
+
const myEquation = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('y')));
|
|
29
|
+
const myAnswer = new equalNode_1.EqualNode(new variableNode_1.VariableNode('y'), new multiplyNode_1.MultiplyNode(new constantNode_1.ConstantNode('C', 'C'), new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')))))); // y = Ce^(ax);
|
|
30
|
+
const getPropositions = (n) => {
|
|
31
|
+
const propositions = [];
|
|
32
|
+
propositions.push({
|
|
33
|
+
id: (0, uuid_1.v4)(),
|
|
34
|
+
statement: myAnswer.toTex(),
|
|
35
|
+
isRightAnswer: true,
|
|
36
|
+
format: 'tex',
|
|
37
|
+
});
|
|
38
|
+
for (let i = 0; i < n - 1; i++) {
|
|
39
|
+
let isDuplicate;
|
|
40
|
+
let proposition;
|
|
41
|
+
do {
|
|
42
|
+
const a = (0, randint_1.randint)(1, 10);
|
|
43
|
+
const myWrongAnswer = new equalNode_1.EqualNode(new variableNode_1.VariableNode('y'), new multiplyNode_1.MultiplyNode(new constantNode_1.ConstantNode('C', 'C'), new expNode_1.ExpNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')))));
|
|
44
|
+
proposition = {
|
|
45
|
+
id: (0, uuid_1.v4)(),
|
|
46
|
+
statement: myWrongAnswer.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: `Résoudre l'équation différentielle suivante : $y' = ${myEquation.toTex()}$.`,
|
|
58
|
+
startStatement: `y(x)`,
|
|
59
|
+
answer: myAnswer.toTex(),
|
|
60
|
+
keys: ['x', 'y', 'exp', 'C', 'equal'],
|
|
61
|
+
getPropositions,
|
|
62
|
+
answerFormat: 'tex',
|
|
63
|
+
};
|
|
64
|
+
return question;
|
|
65
|
+
}
|
|
66
|
+
exports.getExponentialEquation = getExponentialEquation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equaDiffGeneralFormeWithIC.d.ts","sourceRoot":"","sources":["../../../src/exercises/equaDiff/equaDiffGeneralFormeWithIC.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,qCAAqC,EAAE,QAUnD,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CA+EzD"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.solveExponentialEquationWithIC = exports.exponentialDifferentialEquationWithIC = 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");
|
|
7
|
+
const oppositeNode_1 = require("../../tree/nodes/functions/oppositeNode");
|
|
8
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const equalNode_1 = require("../../tree/nodes/operators/equalNode");
|
|
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.exponentialDifferentialEquationWithIC = {
|
|
16
|
+
id: 'exponentialDifferentialEquationWithIC',
|
|
17
|
+
connector: '=',
|
|
18
|
+
instruction: '',
|
|
19
|
+
label: "Équation Différentielle : y' = ay avec Conditions Initiales",
|
|
20
|
+
levels: ['1', '0'],
|
|
21
|
+
section: 'Équations Différentielles',
|
|
22
|
+
isSingleStep: false,
|
|
23
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(solveExponentialEquationWithIC, nb),
|
|
24
|
+
keys: ['x', 'y', 'exp', 'equal'],
|
|
25
|
+
};
|
|
26
|
+
function solveExponentialEquationWithIC() {
|
|
27
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
28
|
+
const initialY = (0, randint_1.randint)(-9, 10);
|
|
29
|
+
const myEquation = (0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('y')));
|
|
30
|
+
const myAnswer = initialY === 0
|
|
31
|
+
? new numberNode_1.NumberNode(0) // y(0) = 0 ==> y(x) = 0
|
|
32
|
+
: new equalNode_1.EqualNode(new variableNode_1.VariableNode('y'), initialY === 1
|
|
33
|
+
? new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')))) // éviter les 1e^(x)
|
|
34
|
+
: initialY === -1
|
|
35
|
+
? new oppositeNode_1.OppositeNode(new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x'))))) // éviter les -1e^(x)
|
|
36
|
+
: new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(initialY), new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')))))); // y = y(0)e^(ax);
|
|
37
|
+
const getPropositions = (n) => {
|
|
38
|
+
const propositions = [];
|
|
39
|
+
propositions.push({
|
|
40
|
+
id: (0, uuid_1.v4)(),
|
|
41
|
+
statement: myAnswer.toTex(),
|
|
42
|
+
isRightAnswer: true,
|
|
43
|
+
format: 'tex',
|
|
44
|
+
});
|
|
45
|
+
for (let i = 0; i < n - 1; i++) {
|
|
46
|
+
let isDuplicate;
|
|
47
|
+
let proposition;
|
|
48
|
+
do {
|
|
49
|
+
const a = (0, randint_1.randint)(-9, 10, [0]);
|
|
50
|
+
const initialY = (0, randint_1.randint)(-9, 10);
|
|
51
|
+
const myWrongAnswer = initialY === 0
|
|
52
|
+
? new numberNode_1.NumberNode(0)
|
|
53
|
+
: new equalNode_1.EqualNode(new variableNode_1.VariableNode('y'), initialY === 1
|
|
54
|
+
? new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x'))))
|
|
55
|
+
: initialY === -1
|
|
56
|
+
? new oppositeNode_1.OppositeNode(new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x')))))
|
|
57
|
+
: new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(initialY), new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new variableNode_1.VariableNode('x'))))));
|
|
58
|
+
proposition = {
|
|
59
|
+
id: (0, uuid_1.v4)(),
|
|
60
|
+
statement: myWrongAnswer.toTex(),
|
|
61
|
+
isRightAnswer: false,
|
|
62
|
+
format: 'tex',
|
|
63
|
+
};
|
|
64
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
65
|
+
} while (isDuplicate);
|
|
66
|
+
propositions.push(proposition);
|
|
67
|
+
}
|
|
68
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
69
|
+
};
|
|
70
|
+
const question = {
|
|
71
|
+
instruction: `Résoudre l'équation différentielle suivante avec la condition initiale $y(0) = ${initialY}$ : $y' = ${myEquation.toTex()}$.`,
|
|
72
|
+
startStatement: `y(x)`,
|
|
73
|
+
answer: myAnswer.toTex(),
|
|
74
|
+
keys: ['x', 'y', 'exp', 'equal'],
|
|
75
|
+
getPropositions,
|
|
76
|
+
answerFormat: 'tex',
|
|
77
|
+
};
|
|
78
|
+
return question;
|
|
79
|
+
}
|
|
80
|
+
exports.solveExponentialEquationWithIC = solveExponentialEquationWithIC;
|
|
@@ -3,11 +3,13 @@ export type Proposition = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
statement: string;
|
|
5
5
|
isRightAnswer: boolean;
|
|
6
|
+
format: 'tex' | 'raw';
|
|
6
7
|
};
|
|
7
8
|
export interface Question {
|
|
8
9
|
instruction?: string;
|
|
9
10
|
startStatement?: string;
|
|
10
11
|
answer: string;
|
|
12
|
+
answerFormat?: 'tex' | 'raw';
|
|
11
13
|
keys?: string[];
|
|
12
14
|
commands?: string[];
|
|
13
15
|
coords?: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAC;CACvB,CAAC;AACF,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,WAAW,EAAE,CAAC;CAChD;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,GAAG,OAAO,GAAG,UAAU,CAAC;IACtC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,QAAQ,EAAE,CAAC;CAC/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AA8IA,eAAO,MAAM,SAAS,iCA4LrB,CAAC"}
|
|
@@ -74,9 +74,9 @@ const powersOfTenToDecimal_1 = require("./powers/powersOfTenToDecimal");
|
|
|
74
74
|
const powersPower_1 = require("./powers/powersPower");
|
|
75
75
|
const powersProduct_1 = require("./powers/powersProduct");
|
|
76
76
|
const scientificToDecimal_1 = require("./powers/scientificToDecimal");
|
|
77
|
-
const conditionalProbability_1 = require("./
|
|
78
|
-
const marginalAndConditionalFrequency_1 = require("./
|
|
79
|
-
const probabilityTree_1 = require("./
|
|
77
|
+
const conditionalProbability_1 = require("./probaStat/conditionalProbability");
|
|
78
|
+
const marginalAndConditionalFrequency_1 = require("./probaStat/marginalAndConditionalFrequency");
|
|
79
|
+
const probabilityTree_1 = require("./probaStat/probabilityTree");
|
|
80
80
|
const arithmeticExplicitFormulaUsage_1 = require("./sequences/arithmetic/arithmeticExplicitFormulaUsage");
|
|
81
81
|
const arithmeticFindExplicitFormula_1 = require("./sequences/arithmetic/arithmeticFindExplicitFormula");
|
|
82
82
|
const arithmeticFindReason_1 = require("./sequences/arithmetic/arithmeticFindReason");
|
|
@@ -97,11 +97,42 @@ const trianglePerimeter_1 = require("./geometry/euclidean/trianglePerimeter");
|
|
|
97
97
|
const triangleAreaV2_1 = require("./geometry/euclidean/triangleAreaV2");
|
|
98
98
|
const circleArea_1 = require("./geometry/euclidean/circleArea");
|
|
99
99
|
const circleCircumference_1 = require("./geometry/euclidean/circleCircumference");
|
|
100
|
-
const triangleArea_1 = require("./geometry/euclidean/triangleArea");
|
|
101
100
|
const distanceBetweenTwoPoints_1 = require("./geometry/cartesian/distanceBetweenTwoPoints");
|
|
102
101
|
const reduceExpression_1 = require("./calculLitteral/simplifying/reduceExpression");
|
|
103
102
|
const evaluateExpression_1 = require("./calculLitteral/simplifying/evaluateExpression");
|
|
104
103
|
const proportionalityTable_1 = require("./calcul/proportionality/proportionalityTable");
|
|
104
|
+
const imageFunction_1 = require("./geometry/cartesian/imageFunction");
|
|
105
|
+
const inverseImageFunction_1 = require("./geometry/cartesian/inverseImageFunction");
|
|
106
|
+
const triangleArea_1 = require("./geometry/euclidean/triangleArea");
|
|
107
|
+
const lnDerivativeOne_1 = require("./derivation/derivative/lnDerivativeOne");
|
|
108
|
+
const lnDerivativeTwo_1 = require("./derivation/derivative/lnDerivativeTwo");
|
|
109
|
+
const lnDerivativeThree_1 = require("./derivation/derivative/lnDerivativeThree");
|
|
110
|
+
const expDerivativeOne_1 = require("./derivation/derivative/expDerivativeOne");
|
|
111
|
+
const expDerivativeTwo_1 = require("./derivation/derivative/expDerivativeTwo");
|
|
112
|
+
const expDerivativeThree_1 = require("./derivation/derivative/expDerivativeThree");
|
|
113
|
+
const logEquation_1 = require("./calculLitteral/equation/logEquation");
|
|
114
|
+
const expEquation_1 = require("./calculLitteral/equation/expEquation");
|
|
115
|
+
const expSimplifiying_1 = require("./calculLitteral/simplifying/expSimplifiying");
|
|
116
|
+
const logSimplifiying_1 = require("./calculLitteral/simplifying/logSimplifiying");
|
|
117
|
+
const imageFunctionGeogebra_1 = require("../exercises/geometry/cartesian/imageFunctionGeogebra");
|
|
118
|
+
const inverseImageFunctionGeogebra_1 = require("../exercises/geometry/cartesian/inverseImageFunctionGeogebra");
|
|
119
|
+
const frequencyTable_1 = require("../exercises/probaStat/frequencyTable");
|
|
120
|
+
const median_1 = require("../exercises/probaStat/median");
|
|
121
|
+
const quartiles_1 = require("../exercises/probaStat/quartiles");
|
|
122
|
+
const medianList_1 = require("../exercises/probaStat/medianList");
|
|
123
|
+
const quartilesList_1 = require("../exercises/probaStat/quartilesList");
|
|
124
|
+
const euclideanDivision_1 = require("../exercises/calcul/arithmetics/euclideanDivision");
|
|
125
|
+
const signFunction_1 = require("../exercises/geometry/cartesian/signFunction");
|
|
126
|
+
const thirdDegreeFunctionVariation_1 = require("../exercises/derivation/derivative/thirdDegreeFunctionVariation");
|
|
127
|
+
const polynomeLimit_1 = require("../exercises/limits/polynomeLimit");
|
|
128
|
+
const constantPrimitive_1 = require("../exercises/primitve/constantPrimitive");
|
|
129
|
+
const polynomialPrimitive_1 = require("../exercises/primitve/polynomialPrimitive");
|
|
130
|
+
const sinCosPrimitive_1 = require("../exercises/primitve/sinCosPrimitive");
|
|
131
|
+
const exponentialPrimitive_1 = require("../exercises/primitve/exponentialPrimitive");
|
|
132
|
+
const logarithmePrimitive_1 = require("../exercises/primitve/logarithmePrimitive");
|
|
133
|
+
const usualPrimitives_1 = require("../exercises/primitve/usualPrimitives");
|
|
134
|
+
const equaDiffGeneralForme_1 = require("../exercises/equaDiff/equaDiffGeneralForme");
|
|
135
|
+
const equaDiffGeneralFormeWithIC_1 = require("../exercises/equaDiff/equaDiffGeneralFormeWithIC");
|
|
105
136
|
exports.exercises = [
|
|
106
137
|
/**
|
|
107
138
|
* calcul litteral
|
|
@@ -247,4 +278,35 @@ exports.exercises = [
|
|
|
247
278
|
reduceExpression_1.reduceExpression,
|
|
248
279
|
evaluateExpression_1.evaluateExpression,
|
|
249
280
|
proportionalityTable_1.proportionalityTable,
|
|
281
|
+
imageFunction_1.imageFunction,
|
|
282
|
+
inverseImageFunction_1.inverseImageFunction,
|
|
283
|
+
lnDerivativeOne_1.lnDerivativeOne,
|
|
284
|
+
lnDerivativeTwo_1.lnDerivativeTwo,
|
|
285
|
+
lnDerivativeThree_1.lnDerivativeThree,
|
|
286
|
+
expDerivativeOne_1.expDerivativeOne,
|
|
287
|
+
expDerivativeTwo_1.expDerivativeTwo,
|
|
288
|
+
expDerivativeThree_1.expDerivativeThree,
|
|
289
|
+
logEquation_1.logEquation,
|
|
290
|
+
expEquation_1.expEquation,
|
|
291
|
+
expSimplifiying_1.expSimplifiying,
|
|
292
|
+
logSimplifiying_1.logSimplifiying,
|
|
293
|
+
imageFunctionGeogebra_1.imageFunctionGeogebra,
|
|
294
|
+
inverseImageFunctionGeogebra_1.inverseImageFunctionGeogebra,
|
|
295
|
+
frequencyTable_1.frequencyTable,
|
|
296
|
+
median_1.median,
|
|
297
|
+
quartiles_1.quartiles,
|
|
298
|
+
medianList_1.medianList,
|
|
299
|
+
quartilesList_1.quartilesList,
|
|
300
|
+
euclideanDivision_1.euclideanDivision,
|
|
301
|
+
signFunction_1.signFunction,
|
|
302
|
+
thirdDegreeFunctionVariation_1.thirdDegreeFunctionVariation,
|
|
303
|
+
polynomeLimit_1.polynomeLimit,
|
|
304
|
+
constantPrimitive_1.constantPrimitive,
|
|
305
|
+
polynomialPrimitive_1.polynomialPrimitive,
|
|
306
|
+
sinCosPrimitive_1.sinCosPrimitive,
|
|
307
|
+
exponentialPrimitive_1.exponentialPrimitive,
|
|
308
|
+
logarithmePrimitive_1.logarithmePrimitive,
|
|
309
|
+
usualPrimitives_1.usualPrimitives,
|
|
310
|
+
equaDiffGeneralForme_1.exponentialDifferentialEquation,
|
|
311
|
+
equaDiffGeneralFormeWithIC_1.exponentialDifferentialEquationWithIC,
|
|
250
312
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distanceBetweenTwoPoints.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/distanceBetweenTwoPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,wBAAwB,EAAE,QAUtC,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"distanceBetweenTwoPoints.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/distanceBetweenTwoPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,wBAAwB,EAAE,QAUtC,CAAC;AAEF,wBAAgB,2BAA2B,IAAI,QAAQ,CAkGtD"}
|
|
@@ -33,6 +33,7 @@ function getDistanceBetweenTwoPoints() {
|
|
|
33
33
|
id: (0, uuid_1.v4)() + '',
|
|
34
34
|
statement: answer,
|
|
35
35
|
isRightAnswer: true,
|
|
36
|
+
format: 'tex',
|
|
36
37
|
});
|
|
37
38
|
temp--;
|
|
38
39
|
A = new point_1.Point('A', new numberNode_1.NumberNode(coords1[0]), new numberNode_1.NumberNode(coords1[1]));
|
|
@@ -44,6 +45,7 @@ function getDistanceBetweenTwoPoints() {
|
|
|
44
45
|
id: (0, uuid_1.v4)() + '',
|
|
45
46
|
statement: wrongStatement,
|
|
46
47
|
isRightAnswer: false,
|
|
48
|
+
format: 'tex',
|
|
47
49
|
});
|
|
48
50
|
temp--;
|
|
49
51
|
}
|
|
@@ -56,6 +58,7 @@ function getDistanceBetweenTwoPoints() {
|
|
|
56
58
|
id: (0, uuid_1.v4)() + '',
|
|
57
59
|
statement: wrongStatement,
|
|
58
60
|
isRightAnswer: false,
|
|
61
|
+
format: 'tex',
|
|
59
62
|
});
|
|
60
63
|
temp--;
|
|
61
64
|
}
|
|
@@ -68,6 +71,7 @@ function getDistanceBetweenTwoPoints() {
|
|
|
68
71
|
id: (0, uuid_1.v4)() + '',
|
|
69
72
|
statement: wrongStatement,
|
|
70
73
|
isRightAnswer: false,
|
|
74
|
+
format: 'tex',
|
|
71
75
|
});
|
|
72
76
|
temp--;
|
|
73
77
|
}
|
|
@@ -81,6 +85,7 @@ function getDistanceBetweenTwoPoints() {
|
|
|
81
85
|
id: (0, uuid_1.v4)() + '',
|
|
82
86
|
statement: new squareRoot_1.SquareRoot((0, round_1.round)(A.distanceTo(B) ** 2, 0)).simplify().toTree().toTex(),
|
|
83
87
|
isRightAnswer: false,
|
|
88
|
+
format: 'tex',
|
|
84
89
|
};
|
|
85
90
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
86
91
|
} while (isDuplicate);
|
|
@@ -95,6 +100,7 @@ function getDistanceBetweenTwoPoints() {
|
|
|
95
100
|
answer,
|
|
96
101
|
keys: [],
|
|
97
102
|
getPropositions,
|
|
103
|
+
answerFormat: 'tex',
|
|
98
104
|
};
|
|
99
105
|
return question;
|
|
100
106
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imageFunction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/imageFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAC;AAEF,wBAAgB,gBAAgB,IAAI,QAAQ,CAqD3C"}
|