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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"addAndSub.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSub.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAsDhD"}
|
|
@@ -39,6 +39,7 @@ function getAddAndSubQuestions() {
|
|
|
39
39
|
id: (0, uuid_1.v4)() + '',
|
|
40
40
|
statement: answer.toString(),
|
|
41
41
|
isRightAnswer: true,
|
|
42
|
+
format: 'tex',
|
|
42
43
|
});
|
|
43
44
|
for (let i = 0; i < n - 1; i++) {
|
|
44
45
|
let isDuplicate;
|
|
@@ -50,6 +51,7 @@ function getAddAndSubQuestions() {
|
|
|
50
51
|
id: (0, uuid_1.v4)() + '',
|
|
51
52
|
statement: wrongAnswer.toString(),
|
|
52
53
|
isRightAnswer: false,
|
|
54
|
+
format: 'tex',
|
|
53
55
|
};
|
|
54
56
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
55
57
|
} while (isDuplicate);
|
|
@@ -62,6 +64,7 @@ function getAddAndSubQuestions() {
|
|
|
62
64
|
answer: answer + '',
|
|
63
65
|
keys: [],
|
|
64
66
|
getPropositions,
|
|
67
|
+
answerFormat: 'tex',
|
|
65
68
|
};
|
|
66
69
|
return question;
|
|
67
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addAndSubWithoutRelatives.d.ts","sourceRoot":"","sources":["../../../src/exercises/calcul/addAndSubWithoutRelatives.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI9D;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAmEvD"}
|
|
@@ -49,6 +49,7 @@ function getAddAndSubWithoutRelatives() {
|
|
|
49
49
|
id: (0, uuid_1.v4)() + '',
|
|
50
50
|
statement: answer.toString(),
|
|
51
51
|
isRightAnswer: true,
|
|
52
|
+
format: 'tex',
|
|
52
53
|
});
|
|
53
54
|
for (let i = 0; i < n - 1; i++) {
|
|
54
55
|
let isDuplicate;
|
|
@@ -59,6 +60,7 @@ function getAddAndSubWithoutRelatives() {
|
|
|
59
60
|
id: (0, uuid_1.v4)() + '',
|
|
60
61
|
statement: incorrectAnswer.toString(),
|
|
61
62
|
isRightAnswer: false,
|
|
63
|
+
format: 'tex',
|
|
62
64
|
};
|
|
63
65
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
64
66
|
} while (isDuplicate);
|
|
@@ -71,6 +73,7 @@ function getAddAndSubWithoutRelatives() {
|
|
|
71
73
|
answer: answer.toString(),
|
|
72
74
|
keys: [],
|
|
73
75
|
getPropositions,
|
|
76
|
+
answerFormat: 'tex',
|
|
74
77
|
};
|
|
75
78
|
return question;
|
|
76
79
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"euclideanDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/euclideanDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAgExD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEuclideanDivisionQuestions = exports.euclideanDivision = void 0;
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
6
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
7
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
8
|
+
const equalNode_1 = require("../../../tree/nodes/operators/equalNode");
|
|
9
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
10
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
11
|
+
const uuid_1 = require("uuid");
|
|
12
|
+
exports.euclideanDivision = {
|
|
13
|
+
id: 'euclideanDivision',
|
|
14
|
+
connector: '=',
|
|
15
|
+
instruction: '',
|
|
16
|
+
label: 'Ecrire une division euclidienne',
|
|
17
|
+
levels: ['6', '5', '4'],
|
|
18
|
+
section: 'Arithmétique',
|
|
19
|
+
isSingleStep: true,
|
|
20
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getEuclideanDivisionQuestions, nb),
|
|
21
|
+
keys: ['equal'],
|
|
22
|
+
};
|
|
23
|
+
function getEuclideanDivisionQuestions() {
|
|
24
|
+
let dividend = (0, randint_1.randint)(5, 100);
|
|
25
|
+
let divisor = (0, randint_1.randint)(2, 11);
|
|
26
|
+
while (dividend % divisor === 0) {
|
|
27
|
+
dividend = (0, randint_1.randint)(5, 100);
|
|
28
|
+
divisor = (0, randint_1.randint)(2, 11);
|
|
29
|
+
}
|
|
30
|
+
const quotient = Math.floor(dividend / divisor);
|
|
31
|
+
const remainder = dividend % divisor;
|
|
32
|
+
const answer = new equalNode_1.EqualNode(new numberNode_1.NumberNode(dividend), new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(divisor), new numberNode_1.NumberNode(quotient)), new numberNode_1.NumberNode(remainder)));
|
|
33
|
+
const getPropositions = (n) => {
|
|
34
|
+
const res = [];
|
|
35
|
+
res.push({
|
|
36
|
+
id: (0, uuid_1.v4)() + '',
|
|
37
|
+
statement: answer.toTex(),
|
|
38
|
+
isRightAnswer: true,
|
|
39
|
+
format: 'tex',
|
|
40
|
+
});
|
|
41
|
+
for (let i = 0; i < n - 1; i++) {
|
|
42
|
+
let isDuplicate;
|
|
43
|
+
let proposition;
|
|
44
|
+
do {
|
|
45
|
+
const divisor = (0, randint_1.randint)(2, 11);
|
|
46
|
+
const quotient = Math.floor((0, randint_1.randint)(5, 100) / divisor);
|
|
47
|
+
const remainder = (0, randint_1.randint)(5, 100) % divisor;
|
|
48
|
+
const wrongAnswer = new equalNode_1.EqualNode(new numberNode_1.NumberNode(dividend), new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(divisor), new numberNode_1.NumberNode(quotient)), new numberNode_1.NumberNode(remainder)));
|
|
49
|
+
proposition = {
|
|
50
|
+
id: (0, uuid_1.v4)() + '',
|
|
51
|
+
statement: wrongAnswer.toTex(),
|
|
52
|
+
isRightAnswer: false,
|
|
53
|
+
format: 'tex',
|
|
54
|
+
};
|
|
55
|
+
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
56
|
+
} while (isDuplicate);
|
|
57
|
+
res.push(proposition);
|
|
58
|
+
}
|
|
59
|
+
return (0, shuffle_1.shuffle)(res);
|
|
60
|
+
};
|
|
61
|
+
const question = {
|
|
62
|
+
instruction: `Ecrire la division euclidienne de ${dividend} par ${divisor}`,
|
|
63
|
+
answer: answer.toTex(),
|
|
64
|
+
keys: ['equal'],
|
|
65
|
+
getPropositions,
|
|
66
|
+
answerFormat: 'tex',
|
|
67
|
+
};
|
|
68
|
+
return question;
|
|
69
|
+
}
|
|
70
|
+
exports.getEuclideanDivisionQuestions = getEuclideanDivisionQuestions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeNumbers.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/primeNumbers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGjE;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAQF,wBAAgB,eAAe,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"primeNumbers.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/arithmetics/primeNumbers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGjE;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAQF,wBAAgB,eAAe,IAAI,QAAQ,CA4E1C"}
|
|
@@ -14,7 +14,7 @@ exports.primeNumbers = {
|
|
|
14
14
|
instruction: 'Donner la décomposition en nombre premiers',
|
|
15
15
|
label: 'Décomposition en nombres premiers',
|
|
16
16
|
levels: ['5', '4', '3', '2'],
|
|
17
|
-
section: '
|
|
17
|
+
section: 'Arithmétique',
|
|
18
18
|
isSingleStep: false,
|
|
19
19
|
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getPrimeNumbers, nb),
|
|
20
20
|
keys: [],
|
|
@@ -50,6 +50,7 @@ function getPrimeNumbers() {
|
|
|
50
50
|
id: (0, uuid_1.v4)() + '',
|
|
51
51
|
statement: answer,
|
|
52
52
|
isRightAnswer: true,
|
|
53
|
+
format: 'tex',
|
|
53
54
|
});
|
|
54
55
|
const wrongFactors = [...choosenNumbers];
|
|
55
56
|
for (let i = 0; i < n - 1; i++) {
|
|
@@ -72,6 +73,7 @@ function getPrimeNumbers() {
|
|
|
72
73
|
id: (0, uuid_1.v4)() + '',
|
|
73
74
|
statement: wrongAnswer,
|
|
74
75
|
isRightAnswer: false,
|
|
76
|
+
format: 'tex',
|
|
75
77
|
});
|
|
76
78
|
}
|
|
77
79
|
return (0, shuffle_1.shuffle)(res);
|
|
@@ -81,6 +83,7 @@ function getPrimeNumbers() {
|
|
|
81
83
|
answer,
|
|
82
84
|
keys: [],
|
|
83
85
|
getPropositions,
|
|
86
|
+
answerFormat: 'tex',
|
|
84
87
|
};
|
|
85
88
|
return question;
|
|
86
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,0BAA0B,EAAE,QAUxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,0BAA0B,EAAE,QAUxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAwDxD"}
|
|
@@ -34,6 +34,7 @@ function getFractionAndIntegerDivision() {
|
|
|
34
34
|
id: (0, uuid_1.v4)() + '',
|
|
35
35
|
statement: answerTree.toTex(),
|
|
36
36
|
isRightAnswer: true,
|
|
37
|
+
format: 'tex',
|
|
37
38
|
});
|
|
38
39
|
for (let i = 0; i < n - 1; i++) {
|
|
39
40
|
let isDuplicate;
|
|
@@ -47,6 +48,7 @@ function getFractionAndIntegerDivision() {
|
|
|
47
48
|
id: (0, uuid_1.v4)() + '',
|
|
48
49
|
statement: wrongAnswerTree.toTex(),
|
|
49
50
|
isRightAnswer: false,
|
|
51
|
+
format: 'tex',
|
|
50
52
|
};
|
|
51
53
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
52
54
|
} while (isDuplicate);
|
|
@@ -60,6 +62,7 @@ function getFractionAndIntegerDivision() {
|
|
|
60
62
|
answer: answerTree.toTex(),
|
|
61
63
|
keys: [],
|
|
62
64
|
getPropositions,
|
|
65
|
+
answerFormat: 'tex',
|
|
63
66
|
};
|
|
64
67
|
return question;
|
|
65
68
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,yBAAyB,EAAE,QAUvC,CAAC;AAEF,wBAAgB,4BAA4B,IAAI,QAAQ,CAgDvD"}
|
|
@@ -31,6 +31,7 @@ function getFractionAndIntegerProduct() {
|
|
|
31
31
|
id: (0, uuid_1.v4)() + '',
|
|
32
32
|
statement: answerTree.toTex(),
|
|
33
33
|
isRightAnswer: true,
|
|
34
|
+
format: 'tex',
|
|
34
35
|
});
|
|
35
36
|
for (let i = 0; i < n - 1; i++) {
|
|
36
37
|
let isDuplicate;
|
|
@@ -42,6 +43,7 @@ function getFractionAndIntegerProduct() {
|
|
|
42
43
|
id: (0, uuid_1.v4)() + '',
|
|
43
44
|
statement: wrongAnswerTree.toTex(),
|
|
44
45
|
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
45
47
|
};
|
|
46
48
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
47
49
|
} while (isDuplicate);
|
|
@@ -55,6 +57,7 @@ function getFractionAndIntegerProduct() {
|
|
|
55
57
|
answer: answerTree.toTex(),
|
|
56
58
|
keys: [],
|
|
57
59
|
getPropositions,
|
|
60
|
+
answerFormat: 'tex',
|
|
58
61
|
};
|
|
59
62
|
return question;
|
|
60
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionAndIntegerSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionAndIntegerSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionAndIntegerSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAiDnD"}
|
|
@@ -31,6 +31,7 @@ function getFractionAndIntegerSum() {
|
|
|
31
31
|
id: (0, uuid_1.v4)() + '',
|
|
32
32
|
statement: answerTree.toTex(),
|
|
33
33
|
isRightAnswer: true,
|
|
34
|
+
format: 'tex',
|
|
34
35
|
});
|
|
35
36
|
for (let i = 0; i < n - 1; i++) {
|
|
36
37
|
let isDuplicate;
|
|
@@ -42,6 +43,7 @@ function getFractionAndIntegerSum() {
|
|
|
42
43
|
id: (0, uuid_1.v4)() + '',
|
|
43
44
|
statement: wrongAnswerTree.toTex(),
|
|
44
45
|
isRightAnswer: false,
|
|
46
|
+
format: 'tex',
|
|
45
47
|
};
|
|
46
48
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
47
49
|
} while (isDuplicate);
|
|
@@ -55,6 +57,7 @@ function getFractionAndIntegerSum() {
|
|
|
55
57
|
answer: answerTree.toTex(),
|
|
56
58
|
keys: [],
|
|
57
59
|
getPropositions,
|
|
60
|
+
answerFormat: 'tex',
|
|
58
61
|
};
|
|
59
62
|
return question;
|
|
60
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionToPercentToDecimal.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionToPercentToDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionToPercentToDecimal.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionToPercentToDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,0BAA0B,EAAE,QASxC,CAAC;AAEF,wBAAgB,6BAA6B,IAAI,QAAQ,CAwHxD"}
|
|
@@ -66,6 +66,7 @@ function getFractionToPercentToDecimal() {
|
|
|
66
66
|
id: (0, uuid_1.v4)(),
|
|
67
67
|
statement: answer,
|
|
68
68
|
isRightAnswer: true,
|
|
69
|
+
format: 'tex',
|
|
69
70
|
});
|
|
70
71
|
for (let i = 0; i < n - 1; i++) {
|
|
71
72
|
let isDuplicate;
|
|
@@ -98,6 +99,7 @@ function getFractionToPercentToDecimal() {
|
|
|
98
99
|
id: (0, uuid_1.v4)(),
|
|
99
100
|
statement,
|
|
100
101
|
isRightAnswer: false,
|
|
102
|
+
format: 'tex',
|
|
101
103
|
};
|
|
102
104
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
103
105
|
} while (isDuplicate);
|
|
@@ -110,6 +112,7 @@ function getFractionToPercentToDecimal() {
|
|
|
110
112
|
answer,
|
|
111
113
|
keys: ['percent'],
|
|
112
114
|
getPropositions,
|
|
115
|
+
answerFormat: 'tex',
|
|
113
116
|
};
|
|
114
117
|
return question;
|
|
115
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionsDivision.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsDivision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,iBAAiB,EAAE,QAU/B,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CAgD/C"}
|
|
@@ -28,6 +28,7 @@ function getFractionsDivision() {
|
|
|
28
28
|
id: (0, uuid_1.v4)() + '',
|
|
29
29
|
statement: answerTree.toTex(),
|
|
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 getFractionsDivision() {
|
|
|
39
40
|
id: (0, uuid_1.v4)() + '',
|
|
40
41
|
statement: wrongAnswerTree.toTex(),
|
|
41
42
|
isRightAnswer: false,
|
|
43
|
+
format: 'tex',
|
|
42
44
|
};
|
|
43
45
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
44
46
|
} while (isDuplicate);
|
|
@@ -52,6 +54,7 @@ function getFractionsDivision() {
|
|
|
52
54
|
answer: answerTree.toTex(),
|
|
53
55
|
keys: [],
|
|
54
56
|
getPropositions,
|
|
57
|
+
answerFormat: 'tex',
|
|
55
58
|
};
|
|
56
59
|
return question;
|
|
57
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionsProduct.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA+C9C"}
|
|
@@ -28,6 +28,7 @@ function getFractionsProduct() {
|
|
|
28
28
|
id: (0, uuid_1.v4)() + '',
|
|
29
29
|
statement: answerTree.toTex(),
|
|
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 getFractionsProduct() {
|
|
|
39
40
|
id: (0, uuid_1.v4)() + '',
|
|
40
41
|
statement: wrongAnswerTree.toTex(),
|
|
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 getFractionsProduct() {
|
|
|
51
53
|
answer: answerTree.toTex(),
|
|
52
54
|
keys: [],
|
|
53
55
|
getPropositions,
|
|
56
|
+
answerFormat: 'tex',
|
|
54
57
|
};
|
|
55
58
|
return question;
|
|
56
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"fractionsSum.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/fractionsSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,YAAY,EAAE,QAU1B,CAAC;AAEF,wBAAgB,eAAe,IAAI,QAAQ,CA+C1C"}
|
|
@@ -28,6 +28,7 @@ function getFractionsSum() {
|
|
|
28
28
|
id: (0, uuid_1.v4)(),
|
|
29
29
|
statement: answerTree.toTex(),
|
|
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 getFractionsSum() {
|
|
|
39
40
|
id: (0, uuid_1.v4)(),
|
|
40
41
|
statement: incorrectRational.add(incorrectRational2).toTree().toTex(),
|
|
41
42
|
isRightAnswer: false,
|
|
43
|
+
format: 'tex',
|
|
42
44
|
};
|
|
43
45
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
44
46
|
} while (isDuplicate);
|
|
@@ -51,6 +53,7 @@ function getFractionsSum() {
|
|
|
51
53
|
answer: answerTree.toTex(),
|
|
52
54
|
keys: [],
|
|
53
55
|
getPropositions,
|
|
56
|
+
answerFormat: 'tex',
|
|
54
57
|
};
|
|
55
58
|
return question;
|
|
56
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simplifyFraction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/simplifyFraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"simplifyFraction.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/fractions/simplifyFraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA2C9C"}
|
|
@@ -24,6 +24,7 @@ function getSimplifyFraction() {
|
|
|
24
24
|
id: (0, uuid_1.v4)(),
|
|
25
25
|
statement: rational.simplify().toTree().toTex(),
|
|
26
26
|
isRightAnswer: true,
|
|
27
|
+
format: 'tex',
|
|
27
28
|
});
|
|
28
29
|
for (let i = 0; i < n - 1; i++) {
|
|
29
30
|
let isDuplicate;
|
|
@@ -34,6 +35,7 @@ function getSimplifyFraction() {
|
|
|
34
35
|
id: (0, uuid_1.v4)(),
|
|
35
36
|
statement: incorrectRational.simplify().toTree().toTex(),
|
|
36
37
|
isRightAnswer: false,
|
|
38
|
+
format: 'tex',
|
|
37
39
|
};
|
|
38
40
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
39
41
|
} while (isDuplicate);
|
|
@@ -46,6 +48,7 @@ function getSimplifyFraction() {
|
|
|
46
48
|
answer: rational.simplify().toTree().toTex(),
|
|
47
49
|
keys: [],
|
|
48
50
|
getPropositions,
|
|
51
|
+
answerFormat: 'tex',
|
|
49
52
|
};
|
|
50
53
|
return question;
|
|
51
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentalAddAndSub.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"mentalAddAndSub.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CAkE7C"}
|
|
@@ -46,6 +46,7 @@ function getMentalAddAndSub() {
|
|
|
46
46
|
id: (0, uuid_1.v4)() + '',
|
|
47
47
|
statement: answer.toString(),
|
|
48
48
|
isRightAnswer: true,
|
|
49
|
+
format: 'tex',
|
|
49
50
|
});
|
|
50
51
|
// Ajout des propositions incorrectes
|
|
51
52
|
for (let i = 0; i < n - 1; i++) {
|
|
@@ -57,6 +58,7 @@ function getMentalAddAndSub() {
|
|
|
57
58
|
id: (0, uuid_1.v4)() + '',
|
|
58
59
|
statement: incorrectSum.toString(),
|
|
59
60
|
isRightAnswer: false,
|
|
61
|
+
format: 'tex',
|
|
60
62
|
};
|
|
61
63
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
62
64
|
} while (isDuplicate);
|
|
@@ -70,6 +72,7 @@ function getMentalAddAndSub() {
|
|
|
70
72
|
answer: (0, round_1.round)(sum, 2) + '',
|
|
71
73
|
keys: [],
|
|
72
74
|
getPropositions,
|
|
75
|
+
answerFormat: 'tex',
|
|
73
76
|
};
|
|
74
77
|
return question;
|
|
75
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentalDivisions.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalDivisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"mentalDivisions.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalDivisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,eAAe,EAAE,QAU7B,CAAC;AAEF,wBAAgB,kBAAkB,IAAI,QAAQ,CA4F7C"}
|
|
@@ -63,6 +63,7 @@ function getMentalDivisions() {
|
|
|
63
63
|
id: (0, uuid_1.v4)() + '',
|
|
64
64
|
statement: answer.toString(),
|
|
65
65
|
isRightAnswer: true,
|
|
66
|
+
format: 'tex',
|
|
66
67
|
});
|
|
67
68
|
// Ajout des propositions incorrectes
|
|
68
69
|
for (let i = 0; i < n - 1; i++) {
|
|
@@ -74,6 +75,7 @@ function getMentalDivisions() {
|
|
|
74
75
|
id: (0, uuid_1.v4)() + '',
|
|
75
76
|
statement: incorrectAnswer.toString(),
|
|
76
77
|
isRightAnswer: false,
|
|
78
|
+
format: 'tex',
|
|
77
79
|
};
|
|
78
80
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
79
81
|
} while (isDuplicate);
|
|
@@ -87,6 +89,7 @@ function getMentalDivisions() {
|
|
|
87
89
|
answer: (0, round_1.round)(answer, 2) + '',
|
|
88
90
|
keys: [],
|
|
89
91
|
getPropositions,
|
|
92
|
+
answerFormat: 'tex',
|
|
90
93
|
};
|
|
91
94
|
return question;
|
|
92
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentalMultiplications.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalMultiplications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"mentalMultiplications.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalMultiplications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU3E,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,QAAQ,CAqEnD"}
|
|
@@ -49,6 +49,7 @@ function getMentalMultiplications() {
|
|
|
49
49
|
id: (0, uuid_1.v4)() + '',
|
|
50
50
|
statement: answer.toString(),
|
|
51
51
|
isRightAnswer: true,
|
|
52
|
+
format: 'tex',
|
|
52
53
|
});
|
|
53
54
|
for (let i = 0; i < n - 1; i++) {
|
|
54
55
|
let isDuplicate;
|
|
@@ -59,6 +60,7 @@ function getMentalMultiplications() {
|
|
|
59
60
|
id: (0, uuid_1.v4)() + '',
|
|
60
61
|
statement: incorrectAnswer.toString(),
|
|
61
62
|
isRightAnswer: false,
|
|
63
|
+
format: 'tex',
|
|
62
64
|
};
|
|
63
65
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
64
66
|
} while (isDuplicate);
|
|
@@ -71,6 +73,7 @@ function getMentalMultiplications() {
|
|
|
71
73
|
answer: (0, round_1.round)(answer, 2) + '',
|
|
72
74
|
keys: [],
|
|
73
75
|
getPropositions,
|
|
76
|
+
answerFormat: 'tex',
|
|
74
77
|
};
|
|
75
78
|
return question;
|
|
76
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentalPercentage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalPercentage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"mentalPercentage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/mentalCaluls.ts/mentalPercentage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAO3E,eAAO,MAAM,gBAAgB,EAAE,QAU9B,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CA8I9C"}
|
|
@@ -65,6 +65,7 @@ function getMentalPercentage() {
|
|
|
65
65
|
id: (0, uuid_1.v4)() + '',
|
|
66
66
|
statement: (a * b) / 100 + '',
|
|
67
67
|
isRightAnswer: true,
|
|
68
|
+
format: 'tex',
|
|
68
69
|
});
|
|
69
70
|
for (let i = 0; i < n - 1; i++) {
|
|
70
71
|
let isDuplicate;
|
|
@@ -114,6 +115,7 @@ function getMentalPercentage() {
|
|
|
114
115
|
id: (0, uuid_1.v4)() + '',
|
|
115
116
|
statement: incorrectAnswer.toString(),
|
|
116
117
|
isRightAnswer: false,
|
|
118
|
+
format: 'tex',
|
|
117
119
|
};
|
|
118
120
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
119
121
|
} while (isDuplicate);
|
|
@@ -126,6 +128,7 @@ function getMentalPercentage() {
|
|
|
126
128
|
answer: (a * b) / 100 + '',
|
|
127
129
|
keys: [],
|
|
128
130
|
getPropositions,
|
|
131
|
+
answerFormat: 'tex',
|
|
129
132
|
};
|
|
130
133
|
return question;
|
|
131
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationsPriorities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPriorities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"operationsPriorities.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPriorities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,oBAAoB,IAAI,QAAQ,CAgI/C"}
|
|
@@ -98,6 +98,7 @@ function getPriorityQuestions() {
|
|
|
98
98
|
id: (0, uuid_1.v4)(),
|
|
99
99
|
statement: answer,
|
|
100
100
|
isRightAnswer: true,
|
|
101
|
+
format: 'tex',
|
|
101
102
|
});
|
|
102
103
|
for (let i = 0; i < n - 1; i++) {
|
|
103
104
|
let isDuplicate;
|
|
@@ -107,6 +108,7 @@ function getPriorityQuestions() {
|
|
|
107
108
|
id: (0, uuid_1.v4)(),
|
|
108
109
|
statement: (0, randint_1.randint)(-100, 100) + '',
|
|
109
110
|
isRightAnswer: false,
|
|
111
|
+
format: 'tex',
|
|
110
112
|
};
|
|
111
113
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
112
114
|
} while (isDuplicate);
|
|
@@ -119,6 +121,7 @@ function getPriorityQuestions() {
|
|
|
119
121
|
answer,
|
|
120
122
|
keys: [],
|
|
121
123
|
getPropositions,
|
|
124
|
+
answerFormat: 'tex',
|
|
122
125
|
};
|
|
123
126
|
return question;
|
|
124
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationsPrioritiesWithoutRelative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPrioritiesWithoutRelative.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,mCAAmC,EAAE,QAUjD,CAAC;AAEF,wBAAgB,sCAAsC,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"operationsPrioritiesWithoutRelative.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/operations/operationsPrioritiesWithoutRelative.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW3E,eAAO,MAAM,mCAAmC,EAAE,QAUjD,CAAC;AAEF,wBAAgB,sCAAsC,IAAI,QAAQ,CAkQjE"}
|
|
@@ -179,6 +179,7 @@ function getOperationsPrioritiesWithoutRelative() {
|
|
|
179
179
|
id: (0, uuid_1.v4)(),
|
|
180
180
|
statement: answer,
|
|
181
181
|
isRightAnswer: true,
|
|
182
|
+
format: 'tex',
|
|
182
183
|
});
|
|
183
184
|
for (let i = 0; i < n - 1; i++) {
|
|
184
185
|
let isDuplicate;
|
|
@@ -188,6 +189,7 @@ function getOperationsPrioritiesWithoutRelative() {
|
|
|
188
189
|
id: (0, uuid_1.v4)(),
|
|
189
190
|
statement: (0, randint_1.randint)(1, 50) + '',
|
|
190
191
|
isRightAnswer: false,
|
|
192
|
+
format: 'tex',
|
|
191
193
|
};
|
|
192
194
|
isDuplicate = propositions.some((p) => p.statement === proposition.statement);
|
|
193
195
|
} while (isDuplicate);
|
|
@@ -200,6 +202,7 @@ function getOperationsPrioritiesWithoutRelative() {
|
|
|
200
202
|
answer,
|
|
201
203
|
keys: [],
|
|
202
204
|
getPropositions,
|
|
205
|
+
answerFormat: 'tex',
|
|
203
206
|
};
|
|
204
207
|
return question;
|
|
205
208
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proportionalityTable.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/proportionality/proportionalityTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,
|
|
1
|
+
{"version":3,"file":"proportionalityTable.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/proportionality/proportionalityTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM3E,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAyElD"}
|
|
@@ -46,6 +46,7 @@ function getProportionalityTable() {
|
|
|
46
46
|
id: (0, uuid_1.v4)() + '',
|
|
47
47
|
statement: answer + '',
|
|
48
48
|
isRightAnswer: true,
|
|
49
|
+
format: 'tex',
|
|
49
50
|
});
|
|
50
51
|
for (let i = 0; i < n - 1; i++) {
|
|
51
52
|
let isDuplicate;
|
|
@@ -55,6 +56,7 @@ function getProportionalityTable() {
|
|
|
55
56
|
id: (0, uuid_1.v4)() + '',
|
|
56
57
|
statement: answer + (0, randint_1.randint)(-answer + 1, 20, [0]) + '',
|
|
57
58
|
isRightAnswer: false,
|
|
59
|
+
format: 'tex',
|
|
58
60
|
};
|
|
59
61
|
isDuplicate = res.some((p) => p.statement === proposition.statement);
|
|
60
62
|
} while (isDuplicate);
|
|
@@ -74,6 +76,7 @@ Déterminer le nombre manquant.`,
|
|
|
74
76
|
answer: answer + '',
|
|
75
77
|
keys: [],
|
|
76
78
|
getPropositions,
|
|
79
|
+
answerFormat: 'tex',
|
|
77
80
|
};
|
|
78
81
|
return question;
|
|
79
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AASF,wBAAgB,iBAAiB,CAAC,cAAc,GAAE,MAAU,GAAG,QAAQ,
|
|
1
|
+
{"version":3,"file":"rounding.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calcul/rounding/rounding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAe,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ3E;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,QAUzB,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,QAS7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAS1B,CAAC;AASF,wBAAgB,iBAAiB,CAAC,cAAc,GAAE,MAAU,GAAG,QAAQ,CA0EtE"}
|