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 @@
|
|
|
1
|
+
{"version":3,"file":"logEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/logEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,aAAa,IAAI,QAAQ,CAuDxC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLnEquation = exports.logEquation = 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 logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
8
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const equalNode_1 = require("../../../tree/nodes/operators/equalNode");
|
|
10
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
11
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
12
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
13
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
14
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
15
|
+
const uuid_1 = require("uuid");
|
|
16
|
+
exports.logEquation = {
|
|
17
|
+
id: 'logEquation',
|
|
18
|
+
connector: '=',
|
|
19
|
+
instruction: '',
|
|
20
|
+
label: 'Résoudre des équations de type $a \\times ln(x) = k$',
|
|
21
|
+
levels: ['1', '0'],
|
|
22
|
+
section: 'Fonction Logarithme népérien',
|
|
23
|
+
isSingleStep: false,
|
|
24
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLnEquation, nb),
|
|
25
|
+
keys: ['ln', 'exp'],
|
|
26
|
+
};
|
|
27
|
+
function getLnEquation() {
|
|
28
|
+
const a = (0, randint_1.randint)(-9, 20, [0]);
|
|
29
|
+
const k = (0, randint_1.randint)(-9, 20, [0]);
|
|
30
|
+
const equation = new equalNode_1.EqualNode((0, simplify_1.simplifyNode)(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new logNode_1.LogNode(new variableNode_1.VariableNode('x')))), new numberNode_1.NumberNode(k));
|
|
31
|
+
const answer = new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(k), new numberNode_1.NumberNode(a))));
|
|
32
|
+
const getPropositions = (numOptions) => {
|
|
33
|
+
const propositions = [];
|
|
34
|
+
propositions.push({
|
|
35
|
+
id: (0, uuid_1.v4)(),
|
|
36
|
+
statement: answer.toTex(),
|
|
37
|
+
isRightAnswer: true,
|
|
38
|
+
format: 'tex',
|
|
39
|
+
});
|
|
40
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
41
|
+
let isDuplicate;
|
|
42
|
+
let proposition;
|
|
43
|
+
do {
|
|
44
|
+
const randomA = (0, randint_1.randint)(1, 10);
|
|
45
|
+
const randomK = (0, randint_1.randint)(1, 20);
|
|
46
|
+
proposition = {
|
|
47
|
+
id: (0, uuid_1.v4)(),
|
|
48
|
+
statement: new expNode_1.ExpNode((0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(randomK), new numberNode_1.NumberNode(randomA)))).toTex(),
|
|
49
|
+
isRightAnswer: false,
|
|
50
|
+
format: 'tex',
|
|
51
|
+
};
|
|
52
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
53
|
+
} while (isDuplicate);
|
|
54
|
+
propositions.push(proposition);
|
|
55
|
+
}
|
|
56
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
57
|
+
};
|
|
58
|
+
const question = {
|
|
59
|
+
instruction: `Résoudre l'équation $${equation.toTex()}$.`,
|
|
60
|
+
answer: answer.toTex(),
|
|
61
|
+
keys: ['ln', 'exp'],
|
|
62
|
+
getPropositions,
|
|
63
|
+
answerFormat: 'tex',
|
|
64
|
+
};
|
|
65
|
+
return question;
|
|
66
|
+
}
|
|
67
|
+
exports.getLnEquation = getLnEquation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiplicationEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/multiplicationEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"multiplicationEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/multiplicationEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,sBAAsB,EAAE,QAUpC,CAAC;AAEF,wBAAgB,yBAAyB,IAAI,QAAQ,CAyEpD"}
|
|
@@ -38,6 +38,7 @@ function getMultiplicationEquation() {
|
|
|
38
38
|
id: (0, uuid_1.v4)() + '',
|
|
39
39
|
statement: answer,
|
|
40
40
|
isRightAnswer: true,
|
|
41
|
+
format: 'tex',
|
|
41
42
|
});
|
|
42
43
|
for (let i = 0; i < n - 1; i++) {
|
|
43
44
|
let isDuplicate;
|
|
@@ -56,6 +57,7 @@ function getMultiplicationEquation() {
|
|
|
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 getMultiplicationEquation() {
|
|
|
68
70
|
answer: `S = \\left\\{${(0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(-b), new numberNode_1.NumberNode(a))).toTex()};${(0, simplify_1.simplifyNode)(new fractionNode_1.FractionNode(new numberNode_1.NumberNode(-d), new numberNode_1.NumberNode(c))).toTex()}\\right\\}`,
|
|
69
71
|
keys: ['x', 'S', 'equal', 'lbrace', 'rbrace', 'semicolon', 'ou'],
|
|
70
72
|
getPropositions,
|
|
73
|
+
answerFormat: 'tex',
|
|
71
74
|
};
|
|
72
75
|
return question;
|
|
73
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"factoIdRmq1.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA2DhD"}
|
|
@@ -33,11 +33,13 @@ function getFactoType1Question() {
|
|
|
33
33
|
id: (0, uuid_1.v4)() + '',
|
|
34
34
|
statement: answerTree.toTex(),
|
|
35
35
|
isRightAnswer: true,
|
|
36
|
+
format: 'tex',
|
|
36
37
|
});
|
|
37
38
|
res.push({
|
|
38
39
|
id: (0, uuid_1.v4)() + '',
|
|
39
40
|
statement: new powerNode_1.PowerNode(new affine_1.Affine(affine.b, affine.a).toTree(), new numberNode_1.NumberNode(2)).toTex(),
|
|
40
41
|
isRightAnswer: false,
|
|
42
|
+
format: 'tex',
|
|
41
43
|
});
|
|
42
44
|
for (let i = 0; i < n - 2; i++) {
|
|
43
45
|
let isDuplicate;
|
|
@@ -48,6 +50,7 @@ function getFactoType1Question() {
|
|
|
48
50
|
id: (0, uuid_1.v4)() + '',
|
|
49
51
|
statement: wrongAnswer.toTex(),
|
|
50
52
|
isRightAnswer: false,
|
|
53
|
+
format: 'tex',
|
|
51
54
|
};
|
|
52
55
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
53
56
|
} while (isDuplicate);
|
|
@@ -60,6 +63,7 @@ function getFactoType1Question() {
|
|
|
60
63
|
answer: answerTree.toTex(),
|
|
61
64
|
keys: ['x'],
|
|
62
65
|
getPropositions,
|
|
66
|
+
answerFormat: 'tex',
|
|
63
67
|
};
|
|
64
68
|
return question;
|
|
65
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"factoIdRmq2.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAqEhD"}
|
|
@@ -34,17 +34,20 @@ function getFactoType1Question() {
|
|
|
34
34
|
id: (0, uuid_1.v4)() + '',
|
|
35
35
|
statement: answerTree.toTex(),
|
|
36
36
|
isRightAnswer: true,
|
|
37
|
+
format: 'tex',
|
|
37
38
|
});
|
|
38
39
|
res.push({
|
|
39
40
|
id: (0, uuid_1.v4)() + '',
|
|
40
41
|
statement: new powerNode_1.PowerNode(new affine_1.Affine(-affine.b, -affine.a).toTree(), new numberNode_1.NumberNode(2)).toTex(),
|
|
41
42
|
isRightAnswer: false,
|
|
43
|
+
format: 'tex',
|
|
42
44
|
});
|
|
43
45
|
if (n > 2)
|
|
44
46
|
res.push({
|
|
45
47
|
id: (0, uuid_1.v4)() + '',
|
|
46
48
|
statement: new powerNode_1.PowerNode(new affine_1.Affine(-affine.a, affine.b).toTree(), new numberNode_1.NumberNode(2)).toTex(),
|
|
47
49
|
isRightAnswer: false,
|
|
50
|
+
format: 'tex',
|
|
48
51
|
});
|
|
49
52
|
for (let i = 0; i < n - 3; i++) {
|
|
50
53
|
let isDuplicate;
|
|
@@ -55,6 +58,7 @@ function getFactoType1Question() {
|
|
|
55
58
|
id: (0, uuid_1.v4)() + '',
|
|
56
59
|
statement: wrongAnswer.toTex(),
|
|
57
60
|
isRightAnswer: false,
|
|
61
|
+
format: 'tex',
|
|
58
62
|
};
|
|
59
63
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
60
64
|
} while (isDuplicate);
|
|
@@ -67,6 +71,7 @@ function getFactoType1Question() {
|
|
|
67
71
|
answer: answerTree.toTex(),
|
|
68
72
|
keys: ['x'],
|
|
69
73
|
getPropositions,
|
|
74
|
+
answerFormat: 'tex',
|
|
70
75
|
};
|
|
71
76
|
return question;
|
|
72
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"factoIdRmq3.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoIdRmq3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAa3E,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA2EhD"}
|
|
@@ -33,23 +33,27 @@ function getFactoType1Question() {
|
|
|
33
33
|
id: (0, uuid_1.v4)() + '',
|
|
34
34
|
statement: answerTree.toTex(),
|
|
35
35
|
isRightAnswer: true,
|
|
36
|
+
format: 'tex',
|
|
36
37
|
});
|
|
37
38
|
res.push({
|
|
38
39
|
id: (0, uuid_1.v4)() + '',
|
|
39
40
|
statement: new multiplyNode_1.MultiplyNode(affine.toTree(), affine.toTree()).toTex(),
|
|
40
41
|
isRightAnswer: false,
|
|
42
|
+
format: 'tex',
|
|
41
43
|
});
|
|
42
44
|
if (n > 2)
|
|
43
45
|
res.push({
|
|
44
46
|
id: (0, uuid_1.v4)() + '',
|
|
45
47
|
statement: new multiplyNode_1.MultiplyNode(affine2.toTree(), affine2.toTree()).toTex(),
|
|
46
48
|
isRightAnswer: false,
|
|
49
|
+
format: 'tex',
|
|
47
50
|
});
|
|
48
51
|
if (n > 3)
|
|
49
52
|
res.push({
|
|
50
53
|
id: (0, uuid_1.v4)() + '',
|
|
51
54
|
statement: new multiplyNode_1.MultiplyNode(affine2.toTree(), new affine_1.Affine(-affine.b, affine.a).toTree()).toTex(),
|
|
52
55
|
isRightAnswer: false,
|
|
56
|
+
format: 'tex',
|
|
53
57
|
});
|
|
54
58
|
for (let i = 0; i < n - 4; i++) {
|
|
55
59
|
let isDuplicate;
|
|
@@ -60,6 +64,7 @@ function getFactoType1Question() {
|
|
|
60
64
|
id: (0, uuid_1.v4)() + '',
|
|
61
65
|
statement: wrongAnswer.toTex(),
|
|
62
66
|
isRightAnswer: false,
|
|
67
|
+
format: 'tex',
|
|
63
68
|
};
|
|
64
69
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
65
70
|
} while (isDuplicate);
|
|
@@ -72,6 +77,7 @@ function getFactoType1Question() {
|
|
|
72
77
|
answer: answerTree.toTex(),
|
|
73
78
|
keys: ['x'],
|
|
74
79
|
getPropositions,
|
|
80
|
+
answerFormat: 'tex',
|
|
75
81
|
};
|
|
76
82
|
return question;
|
|
77
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAmGhD"}
|
|
@@ -37,23 +37,27 @@ function getFactoType1Question() {
|
|
|
37
37
|
id: (0, uuid_1.v4)() + '',
|
|
38
38
|
statement: answerTree.toTex(),
|
|
39
39
|
isRightAnswer: true,
|
|
40
|
+
format: 'tex',
|
|
40
41
|
});
|
|
41
42
|
res.push({
|
|
42
43
|
id: (0, uuid_1.v4)() + '',
|
|
43
44
|
statement: new multiplyNode_1.MultiplyNode(affines[0].toTree(), affines[1].add(operation !== 'add' ? affines[2] : affines[2].opposite()).toTree()).toTex(),
|
|
44
45
|
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
45
47
|
});
|
|
46
48
|
if (n > 2)
|
|
47
49
|
res.push({
|
|
48
50
|
id: (0, uuid_1.v4)() + '',
|
|
49
51
|
statement: new multiplyNode_1.MultiplyNode(affines[1].toTree(), affines[0].add(operation === 'add' ? affines[2] : affines[2].opposite()).toTree()).toTex(),
|
|
50
52
|
isRightAnswer: false,
|
|
53
|
+
format: 'tex',
|
|
51
54
|
});
|
|
52
55
|
if (n > 3)
|
|
53
56
|
res.push({
|
|
54
57
|
id: (0, uuid_1.v4)() + '',
|
|
55
58
|
statement: new multiplyNode_1.MultiplyNode(affines[2].toTree(), affines[0].add(operation === 'add' ? affines[2] : affines[2].opposite()).toTree()).toTex(),
|
|
56
59
|
isRightAnswer: false,
|
|
60
|
+
format: 'tex',
|
|
57
61
|
});
|
|
58
62
|
for (let i = 0; i < n - 4; i++) {
|
|
59
63
|
let isDuplicate;
|
|
@@ -64,6 +68,7 @@ function getFactoType1Question() {
|
|
|
64
68
|
id: (0, uuid_1.v4)() + '',
|
|
65
69
|
statement: wrongAnswer.toTex(),
|
|
66
70
|
isRightAnswer: false,
|
|
71
|
+
format: 'tex',
|
|
67
72
|
};
|
|
68
73
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
69
74
|
} while (isDuplicate);
|
|
@@ -76,6 +81,7 @@ function getFactoType1Question() {
|
|
|
76
81
|
answer: answerTree.toTex(),
|
|
77
82
|
keys: ['x'],
|
|
78
83
|
getPropositions,
|
|
84
|
+
answerFormat: 'tex',
|
|
79
85
|
};
|
|
80
86
|
return question;
|
|
81
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluateExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/evaluateExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"evaluateExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/evaluateExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAoDhD"}
|
|
@@ -33,6 +33,7 @@ function getEvaluateExpression() {
|
|
|
33
33
|
id: (0, uuid_1.v4)() + '',
|
|
34
34
|
statement: answer + '',
|
|
35
35
|
isRightAnswer: true,
|
|
36
|
+
format: 'tex',
|
|
36
37
|
});
|
|
37
38
|
for (let i = 0; i < n - 1; i++) {
|
|
38
39
|
let isDuplicate;
|
|
@@ -43,6 +44,7 @@ function getEvaluateExpression() {
|
|
|
43
44
|
id: (0, uuid_1.v4)() + '',
|
|
44
45
|
statement: wrongAnswer + '',
|
|
45
46
|
isRightAnswer: false,
|
|
47
|
+
format: 'tex',
|
|
46
48
|
};
|
|
47
49
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
48
50
|
} while (isDuplicate);
|
|
@@ -55,6 +57,7 @@ function getEvaluateExpression() {
|
|
|
55
57
|
answer: answer + '',
|
|
56
58
|
keys: ['x'],
|
|
57
59
|
getPropositions,
|
|
60
|
+
answerFormat: 'tex',
|
|
58
61
|
};
|
|
59
62
|
return question;
|
|
60
63
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expSimplifiying.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/expSimplifiying.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAc3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAyG7C"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExpSimplifiying = exports.expSimplifiying = 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 fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
10
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
11
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
12
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
13
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
14
|
+
const uuid_1 = require("uuid");
|
|
15
|
+
exports.expSimplifiying = {
|
|
16
|
+
id: 'expSimplifiying',
|
|
17
|
+
connector: '\\iff',
|
|
18
|
+
instruction: '',
|
|
19
|
+
label: "Simplifier des expressions avec l'exponentielle",
|
|
20
|
+
levels: ['1', '0'],
|
|
21
|
+
section: 'Fonction Exponentielle',
|
|
22
|
+
isSingleStep: false,
|
|
23
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpSimplifiying, nb),
|
|
24
|
+
keys: ['exp'],
|
|
25
|
+
};
|
|
26
|
+
function getExpSimplifiying() {
|
|
27
|
+
const random = (0, randint_1.randint)(1, 4);
|
|
28
|
+
let expression;
|
|
29
|
+
switch (random) {
|
|
30
|
+
case 1:
|
|
31
|
+
expression = new fractionNode_1.FractionNode(new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([0, (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new numberNode_1.NumberNode((0, randint_1.randint)(-9, 10, [0])))), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
|
|
32
|
+
expression.shuffle();
|
|
33
|
+
break;
|
|
34
|
+
case 2:
|
|
35
|
+
expression = new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
|
|
36
|
+
expression.shuffle();
|
|
37
|
+
break;
|
|
38
|
+
case 3:
|
|
39
|
+
expression = new fractionNode_1.FractionNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
|
|
40
|
+
expression.shuffle();
|
|
41
|
+
break;
|
|
42
|
+
default:
|
|
43
|
+
expression = new expNode_1.ExpNode(new variableNode_1.VariableNode('x'));
|
|
44
|
+
}
|
|
45
|
+
const simplifiedExpression = (0, simplify_1.simplifyNode)(expression);
|
|
46
|
+
const getPropositions = (numOptions) => {
|
|
47
|
+
const propositions = [];
|
|
48
|
+
propositions.push({
|
|
49
|
+
id: (0, uuid_1.v4)(),
|
|
50
|
+
statement: simplifiedExpression.toTex(),
|
|
51
|
+
isRightAnswer: true,
|
|
52
|
+
format: 'tex',
|
|
53
|
+
});
|
|
54
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
55
|
+
let isDuplicate;
|
|
56
|
+
let proposition;
|
|
57
|
+
do {
|
|
58
|
+
let wrongExpression;
|
|
59
|
+
switch (random) {
|
|
60
|
+
case 1:
|
|
61
|
+
wrongExpression = new fractionNode_1.FractionNode(new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([0, (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new numberNode_1.NumberNode((0, randint_1.randint)(-9, 10, [0])))), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
|
|
62
|
+
wrongExpression.shuffle();
|
|
63
|
+
break;
|
|
64
|
+
case 2:
|
|
65
|
+
wrongExpression = new multiplyNode_1.MultiplyNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
|
|
66
|
+
wrongExpression.shuffle();
|
|
67
|
+
break;
|
|
68
|
+
case 3:
|
|
69
|
+
wrongExpression = new fractionNode_1.FractionNode(new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()), new expNode_1.ExpNode(new polynomial_1.Polynomial([(0, randint_1.randint)(-9, 10), (0, randint_1.randint)(-9, 10, [0])]).toTree()));
|
|
70
|
+
wrongExpression.shuffle();
|
|
71
|
+
break;
|
|
72
|
+
default:
|
|
73
|
+
wrongExpression = new expNode_1.ExpNode(new variableNode_1.VariableNode('x'));
|
|
74
|
+
}
|
|
75
|
+
proposition = {
|
|
76
|
+
id: (0, uuid_1.v4)(),
|
|
77
|
+
statement: (0, simplify_1.simplifyNode)(wrongExpression).toTex(),
|
|
78
|
+
isRightAnswer: false,
|
|
79
|
+
format: 'tex',
|
|
80
|
+
};
|
|
81
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
82
|
+
} while (isDuplicate);
|
|
83
|
+
propositions.push(proposition);
|
|
84
|
+
}
|
|
85
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
86
|
+
};
|
|
87
|
+
const question = {
|
|
88
|
+
instruction: `Simplifier l'expression $${expression.toTex()}$.`,
|
|
89
|
+
answer: simplifiedExpression.toTex(),
|
|
90
|
+
keys: ['exp'],
|
|
91
|
+
getPropositions,
|
|
92
|
+
answerFormat: 'tex',
|
|
93
|
+
};
|
|
94
|
+
return question;
|
|
95
|
+
}
|
|
96
|
+
exports.getExpSimplifiying = getExpSimplifiying;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logSimplifiying.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/logSimplifiying.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAY3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CA+D7C"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExpSimplifiying = exports.logSimplifiying = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
6
|
+
const logNode_1 = require("../../../tree/nodes/functions/logNode");
|
|
7
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
9
|
+
const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
|
|
10
|
+
const simplify_1 = require("../../../tree/parsers/simplify");
|
|
11
|
+
const coinFlip_1 = require("../../../utils/coinFlip");
|
|
12
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
13
|
+
const uuid_1 = require("uuid");
|
|
14
|
+
exports.logSimplifiying = {
|
|
15
|
+
id: 'logSimplifiying',
|
|
16
|
+
connector: '\\iff',
|
|
17
|
+
instruction: '',
|
|
18
|
+
label: 'Simplifier des expressions avec $ln$',
|
|
19
|
+
levels: ['1', '0'],
|
|
20
|
+
section: 'Fonction Logarithme népérien',
|
|
21
|
+
isSingleStep: false,
|
|
22
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getExpSimplifiying, nb),
|
|
23
|
+
keys: ['ln'],
|
|
24
|
+
};
|
|
25
|
+
function getExpSimplifiying() {
|
|
26
|
+
const a = (0, randint_1.randint)(1, 10);
|
|
27
|
+
const b = (0, randint_1.randint)(1, 10);
|
|
28
|
+
let expression;
|
|
29
|
+
let simplifiedExpression;
|
|
30
|
+
let pm = 0;
|
|
31
|
+
if ((0, coinFlip_1.coinFlip)()) {
|
|
32
|
+
expression = new addNode_1.AddNode(new logNode_1.LogNode(new numberNode_1.NumberNode(a)), new logNode_1.LogNode(new numberNode_1.NumberNode(b)));
|
|
33
|
+
simplifiedExpression = new logNode_1.LogNode(new numberNode_1.NumberNode(a * b));
|
|
34
|
+
pm = 1;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
expression = new substractNode_1.SubstractNode(new logNode_1.LogNode(new numberNode_1.NumberNode(a)), new logNode_1.LogNode(new numberNode_1.NumberNode(b)));
|
|
38
|
+
simplifiedExpression = new logNode_1.LogNode((0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(a / b)));
|
|
39
|
+
pm = -1;
|
|
40
|
+
}
|
|
41
|
+
const getPropositions = (numOptions) => {
|
|
42
|
+
const propositions = [];
|
|
43
|
+
propositions.push({
|
|
44
|
+
id: (0, uuid_1.v4)(),
|
|
45
|
+
statement: simplifiedExpression.toTex(),
|
|
46
|
+
isRightAnswer: true,
|
|
47
|
+
format: 'tex',
|
|
48
|
+
});
|
|
49
|
+
for (let i = 0; i < numOptions - 1; i++) {
|
|
50
|
+
let isDuplicate;
|
|
51
|
+
let proposition;
|
|
52
|
+
do {
|
|
53
|
+
const a = (0, randint_1.randint)(1, 10);
|
|
54
|
+
const b = (0, randint_1.randint)(1, 10);
|
|
55
|
+
proposition = {
|
|
56
|
+
id: (0, uuid_1.v4)(),
|
|
57
|
+
statement: pm > 0
|
|
58
|
+
? new logNode_1.LogNode(new numberNode_1.NumberNode(a * b)).toTex()
|
|
59
|
+
: new logNode_1.LogNode((0, simplify_1.simplifyNode)(new numberNode_1.NumberNode(a / b))).toTex(),
|
|
60
|
+
isRightAnswer: false,
|
|
61
|
+
format: 'tex',
|
|
62
|
+
};
|
|
63
|
+
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
64
|
+
} while (isDuplicate);
|
|
65
|
+
propositions.push(proposition);
|
|
66
|
+
}
|
|
67
|
+
return (0, shuffle_1.shuffle)(propositions);
|
|
68
|
+
};
|
|
69
|
+
const question = {
|
|
70
|
+
instruction: `Simplifier l'expression $${expression.toTex()}$.`,
|
|
71
|
+
answer: simplifiedExpression.toTex(),
|
|
72
|
+
keys: ['ln'],
|
|
73
|
+
getPropositions,
|
|
74
|
+
answerFormat: 'tex',
|
|
75
|
+
};
|
|
76
|
+
return question;
|
|
77
|
+
}
|
|
78
|
+
exports.getExpSimplifiying = getExpSimplifiying;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduceExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/reduceExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"reduceExpression.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/simplifying/reduceExpression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAmI9C"}
|
|
@@ -88,6 +88,7 @@ function getReduceExpression() {
|
|
|
88
88
|
id: (0, uuid_1.v4)() + '',
|
|
89
89
|
statement: answer,
|
|
90
90
|
isRightAnswer: true,
|
|
91
|
+
format: 'tex',
|
|
91
92
|
});
|
|
92
93
|
for (let i = 0; i < n - 1; i++) {
|
|
93
94
|
let isDuplicate;
|
|
@@ -100,6 +101,7 @@ function getReduceExpression() {
|
|
|
100
101
|
id: (0, uuid_1.v4)() + '',
|
|
101
102
|
statement: polynome1.add(polynome2).toTree().toTex(),
|
|
102
103
|
isRightAnswer: false,
|
|
104
|
+
format: 'tex',
|
|
103
105
|
};
|
|
104
106
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
105
107
|
} while (isDuplicate);
|
|
@@ -112,6 +114,7 @@ function getReduceExpression() {
|
|
|
112
114
|
answer,
|
|
113
115
|
keys: ['x'],
|
|
114
116
|
getPropositions,
|
|
117
|
+
answerFormat: 'tex',
|
|
115
118
|
};
|
|
116
119
|
return question;
|
|
117
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aeraConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/aeraConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"aeraConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/aeraConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAuD5C"}
|
|
@@ -30,6 +30,7 @@ function getAeraConversion() {
|
|
|
30
30
|
id: (0, uuid_1.v4)() + '',
|
|
31
31
|
statement: randomAera.multiplyByPowerOfTen(2 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
|
|
32
32
|
isRightAnswer: true,
|
|
33
|
+
format: 'tex',
|
|
33
34
|
});
|
|
34
35
|
for (let i = 0; i < n - 1; i++) {
|
|
35
36
|
let isDuplicate;
|
|
@@ -41,6 +42,7 @@ function getAeraConversion() {
|
|
|
41
42
|
id: (0, uuid_1.v4)() + '',
|
|
42
43
|
statement: wrongAnswer,
|
|
43
44
|
isRightAnswer: false,
|
|
45
|
+
format: 'tex',
|
|
44
46
|
};
|
|
45
47
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
46
48
|
} while (isDuplicate);
|
|
@@ -53,6 +55,7 @@ function getAeraConversion() {
|
|
|
53
55
|
answer: randomAera.multiplyByPowerOfTen(2 * (randomUnitIndex - randomUnitInstructionIndex)).value + '',
|
|
54
56
|
keys: [],
|
|
55
57
|
getPropositions,
|
|
58
|
+
answerFormat: 'tex',
|
|
56
59
|
};
|
|
57
60
|
return question;
|
|
58
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/capacityConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"capacityConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/capacityConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,kBAAkB,EAAE,QAUhC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAkDhD"}
|
|
@@ -28,6 +28,7 @@ function getCapacityConversion() {
|
|
|
28
28
|
id: (0, uuid_1.v4)() + '',
|
|
29
29
|
statement: randomCapacity.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
30
30
|
isRightAnswer: true,
|
|
31
|
+
format: 'tex',
|
|
31
32
|
});
|
|
32
33
|
for (let i = 0; i < n - 1; i++) {
|
|
33
34
|
let isDuplicate;
|
|
@@ -39,6 +40,7 @@ function getCapacityConversion() {
|
|
|
39
40
|
id: (0, uuid_1.v4)() + '',
|
|
40
41
|
statement: wrongAnswer,
|
|
41
42
|
isRightAnswer: false,
|
|
43
|
+
format: 'tex',
|
|
42
44
|
};
|
|
43
45
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
44
46
|
} while (isDuplicate);
|
|
@@ -51,6 +53,7 @@ function getCapacityConversion() {
|
|
|
51
53
|
answer: randomCapacity.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
52
54
|
keys: [],
|
|
53
55
|
getPropositions,
|
|
56
|
+
answerFormat: 'tex',
|
|
54
57
|
};
|
|
55
58
|
return question;
|
|
56
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lengthConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/lengthConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"lengthConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/lengthConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAiD9C"}
|
|
@@ -28,6 +28,7 @@ function getLengthConversion() {
|
|
|
28
28
|
id: (0, uuid_1.v4)() + '',
|
|
29
29
|
statement: randomlength.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
30
30
|
isRightAnswer: true,
|
|
31
|
+
format: 'tex',
|
|
31
32
|
});
|
|
32
33
|
for (let i = 0; i < n - 1; i++) {
|
|
33
34
|
let isDuplicate;
|
|
@@ -38,6 +39,7 @@ function getLengthConversion() {
|
|
|
38
39
|
id: (0, uuid_1.v4)() + '',
|
|
39
40
|
statement: wrongAnswer,
|
|
40
41
|
isRightAnswer: false,
|
|
42
|
+
format: 'tex',
|
|
41
43
|
};
|
|
42
44
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
43
45
|
} while (isDuplicate);
|
|
@@ -50,6 +52,7 @@ function getLengthConversion() {
|
|
|
50
52
|
answer: randomlength.multiplyByPowerOfTen(randomUnitIndex - randomUnitInstructionIndex).value + '',
|
|
51
53
|
keys: [],
|
|
52
54
|
getPropositions,
|
|
55
|
+
answerFormat: 'tex',
|
|
53
56
|
};
|
|
54
57
|
return question;
|
|
55
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"massConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/massConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"massConversion.d.ts","sourceRoot":"","sources":["../../../src/exercises/conversion/massConversion.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,cAAc,EAAE,QAU5B,CAAC;AAEF,wBAAgB,iBAAiB,IAAI,QAAQ,CAiD5C"}
|