math-exercises 3.0.200 → 3.0.201
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/math/calcul/fractions/fractionsSumsPrimeDenominators.js +1 -1
- package/lib/exercises/math/calcul/index.d.ts +1 -0
- package/lib/exercises/math/calcul/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/index.js +1 -0
- package/lib/exercises/math/calculLitteral/inequations/index.d.ts +1 -0
- package/lib/exercises/math/calculLitteral/inequations/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/index.js +1 -0
- package/lib/exercises/math/calculLitteral/inequations/inequationCenteredInterval.d.ts +14 -0
- package/lib/exercises/math/calculLitteral/inequations/inequationCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/inequationCenteredInterval.js +263 -0
- package/lib/exercises/math/combinatory/anagrams.d.ts.map +1 -1
- package/lib/exercises/math/combinatory/anagrams.js +89 -68
- package/lib/exercises/math/combinatory/index.d.ts +1 -0
- package/lib/exercises/math/combinatory/index.d.ts.map +1 -1
- package/lib/exercises/math/combinatory/index.js +1 -0
- package/lib/exercises/math/dataRepresentations/index.d.ts +1 -1
- package/lib/exercises/math/dataRepresentations/index.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/index.js +5 -1
- package/lib/exercises/math/dataRepresentations/scatterPlot/index.d.ts +0 -2
- package/lib/exercises/math/dataRepresentations/scatterPlot/index.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/scatterPlot/index.js +2 -2
- package/lib/exercises/math/derivation/derivative/trigo/index.d.ts +2 -0
- package/lib/exercises/math/derivation/derivative/trigo/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/trigo/index.js +3 -0
- package/lib/exercises/math/derivation/problems/index.d.ts +0 -1
- package/lib/exercises/math/derivation/problems/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/problems/index.js +1 -1
- package/lib/exercises/math/derivation/problems/problemMovementOnLineFindSpeedAtPoint.d.ts.map +1 -1
- package/lib/exercises/math/derivation/problems/problemMovementOnLineFindSpeedAtPoint.js +5 -2
- package/lib/exercises/math/derivation/tangent/index.d.ts +0 -1
- package/lib/exercises/math/derivation/tangent/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/tangent/index.js +1 -1
- package/lib/exercises/math/derivation/variations/index.d.ts +1 -1
- package/lib/exercises/math/derivation/variations/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/variations/index.js +2 -1
- package/lib/exercises/math/derivation/variations/signVarTableAffinePlusCXLogX.d.ts +10 -0
- package/lib/exercises/math/derivation/variations/signVarTableAffinePlusCXLogX.d.ts.map +1 -0
- package/lib/exercises/math/derivation/variations/signVarTableAffinePlusCXLogX.js +222 -0
- package/lib/exercises/math/derivation/variations/signVarTableProductFExp.js +1 -1
- package/lib/exercises/math/derivation/variations/signVarTableQuotientFExp.js +1 -1
- package/lib/exercises/math/functions/affines/index.d.ts +5 -0
- package/lib/exercises/math/functions/affines/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/index.js +5 -0
- package/lib/exercises/math/functions/integral/index.d.ts +1 -0
- package/lib/exercises/math/functions/integral/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/integral/index.js +1 -0
- package/lib/exercises/math/functions/integral/integralTrinomialOverX2.d.ts +12 -0
- package/lib/exercises/math/functions/integral/integralTrinomialOverX2.d.ts.map +1 -0
- package/lib/exercises/math/functions/integral/integralTrinomialOverX2.js +280 -0
- package/lib/exercises/math/functions/logarithm/findLargestPossibleDomainOfLogF.d.ts +13 -0
- package/lib/exercises/math/functions/logarithm/findLargestPossibleDomainOfLogF.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/findLargestPossibleDomainOfLogF.js +622 -0
- package/lib/exercises/math/functions/logarithm/index.d.ts +5 -0
- package/lib/exercises/math/functions/logarithm/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/logarithm/index.js +5 -0
- package/lib/exercises/math/functions/logarithm/logEquationLnAXPlusBEqualsK.d.ts +10 -0
- package/lib/exercises/math/functions/logarithm/logEquationLnAXPlusBEqualsK.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logEquationLnAXPlusBEqualsK.js +172 -0
- package/lib/exercises/math/functions/logarithm/logInequationIntegerSolutions.d.ts +11 -0
- package/lib/exercises/math/functions/logarithm/logInequationIntegerSolutions.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logInequationIntegerSolutions.js +163 -0
- package/lib/exercises/math/functions/logarithm/logInequationLnAXPlusBInfK.d.ts +18 -0
- package/lib/exercises/math/functions/logarithm/logInequationLnAXPlusBInfK.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logInequationLnAXPlusBInfK.js +330 -0
- package/lib/exercises/math/functions/logarithm/logLinearCombinationSimplifiying.d.ts +11 -0
- package/lib/exercises/math/functions/logarithm/logLinearCombinationSimplifiying.d.ts.map +1 -0
- package/lib/exercises/math/functions/logarithm/logLinearCombinationSimplifiying.js +185 -0
- package/lib/exercises/math/index.d.ts +1 -1
- package/lib/exercises/math/index.d.ts.map +1 -1
- package/lib/exercises/math/index.js +2 -1
- package/lib/exercises/math/integration/fromExpr/areaBetweenCrossingCurvesFixedPosFromExpr.d.ts +15 -0
- package/lib/exercises/math/integration/fromExpr/areaBetweenCrossingCurvesFixedPosFromExpr.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/areaBetweenCrossingCurvesFixedPosFromExpr.js +505 -0
- package/lib/exercises/math/integration/fromExpr/boundIntegralByBoundingFunctionWithAffinesFromExpr.d.ts +16 -0
- package/lib/exercises/math/integration/fromExpr/boundIntegralByBoundingFunctionWithAffinesFromExpr.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/boundIntegralByBoundingFunctionWithAffinesFromExpr.js +433 -0
- package/lib/exercises/math/integration/fromExpr/boundIntegralByManualRectanglesMethodFromExpr.d.ts +15 -0
- package/lib/exercises/math/integration/fromExpr/boundIntegralByManualRectanglesMethodFromExpr.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/boundIntegralByManualRectanglesMethodFromExpr.js +436 -0
- package/lib/exercises/math/integration/fromExpr/byParts/index.d.ts +3 -0
- package/lib/exercises/math/integration/fromExpr/byParts/index.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/byParts/index.js +2 -0
- package/lib/exercises/math/integration/fromExpr/byParts/integralOfAXPlusBTimesExpKXByParts.d.ts +9 -0
- package/lib/exercises/math/integration/fromExpr/byParts/integralOfAXPlusBTimesExpKXByParts.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/byParts/integralOfAXPlusBTimesExpKXByParts.js +234 -0
- package/lib/exercises/math/integration/fromExpr/byParts/integralOfPolynomialTimesLogXByParts.d.ts +12 -0
- package/lib/exercises/math/integration/fromExpr/byParts/integralOfPolynomialTimesLogXByParts.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/byParts/integralOfPolynomialTimesLogXByParts.js +330 -0
- package/lib/exercises/math/integration/fromExpr/checkIsPrimitiveFromExpr.d.ts +15 -0
- package/lib/exercises/math/integration/fromExpr/checkIsPrimitiveFromExpr.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/checkIsPrimitiveFromExpr.js +450 -0
- package/lib/exercises/math/integration/fromExpr/derivativeOfPrimitive.d.ts +10 -0
- package/lib/exercises/math/integration/fromExpr/derivativeOfPrimitive.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/derivativeOfPrimitive.js +261 -0
- package/lib/exercises/math/integration/fromExpr/index.d.ts +8 -0
- package/lib/exercises/math/integration/fromExpr/index.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/index.js +8 -0
- package/lib/exercises/math/integration/fromExpr/integralFromExpr.d.ts +13 -0
- package/lib/exercises/math/integration/fromExpr/integralFromExpr.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/integralFromExpr.js +359 -0
- package/lib/exercises/math/integration/fromExpr/meanValue/index.d.ts +2 -0
- package/lib/exercises/math/integration/fromExpr/meanValue/index.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/meanValue/index.js +1 -0
- package/lib/exercises/math/integration/fromExpr/meanValue/meanValueOfTrinomFromIntegralFromExpr.d.ts +14 -0
- package/lib/exercises/math/integration/fromExpr/meanValue/meanValueOfTrinomFromIntegralFromExpr.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromExpr/meanValue/meanValueOfTrinomFromIntegralFromExpr.js +429 -0
- package/lib/exercises/math/integration/fromGraph/boundIntegralByManipulatingAutomaticRectanglesMethodFromGraph.d.ts +10 -0
- package/lib/exercises/math/integration/fromGraph/boundIntegralByManipulatingAutomaticRectanglesMethodFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/boundIntegralByManipulatingAutomaticRectanglesMethodFromGraph.js +286 -0
- package/lib/exercises/math/integration/fromGraph/imageOfPrimitiveByManipulatingIntegralBoundsFromGraph.d.ts +9 -0
- package/lib/exercises/math/integration/fromGraph/imageOfPrimitiveByManipulatingIntegralBoundsFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/imageOfPrimitiveByManipulatingIntegralBoundsFromGraph.js +231 -0
- package/lib/exercises/math/integration/fromGraph/index.d.ts +7 -0
- package/lib/exercises/math/integration/fromGraph/index.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/index.js +6 -0
- package/lib/exercises/math/integration/fromGraph/integralOfAffineFromExprByComputingArea.d.ts +15 -0
- package/lib/exercises/math/integration/fromGraph/integralOfAffineFromExprByComputingArea.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/integralOfAffineFromExprByComputingArea.js +464 -0
- package/lib/exercises/math/integration/fromGraph/integralOfAffineFromGraph.d.ts +15 -0
- package/lib/exercises/math/integration/fromGraph/integralOfAffineFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/integralOfAffineFromGraph.js +493 -0
- package/lib/exercises/math/integration/fromGraph/integralOfPiecewiseAffineFromGraph.d.ts +18 -0
- package/lib/exercises/math/integration/fromGraph/integralOfPiecewiseAffineFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/integralOfPiecewiseAffineFromGraph.js +466 -0
- package/lib/exercises/math/integration/fromGraph/varTableOfPrimitiveFromGraph.d.ts +10 -0
- package/lib/exercises/math/integration/fromGraph/varTableOfPrimitiveFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/integration/fromGraph/varTableOfPrimitiveFromGraph.js +192 -0
- package/lib/exercises/math/integration/index.d.ts +4 -0
- package/lib/exercises/math/integration/index.d.ts.map +1 -0
- package/lib/exercises/math/integration/index.js +3 -0
- package/lib/exercises/math/integration/integralOfPiecewiseFunctionByUsingComputedIntegrals.d.ts +14 -0
- package/lib/exercises/math/integration/integralOfPiecewiseFunctionByUsingComputedIntegrals.d.ts.map +1 -0
- package/lib/exercises/math/integration/integralOfPiecewiseFunctionByUsingComputedIntegrals.js +222 -0
- package/lib/exercises/math/limits/frac1XTimesALogXPlusBLimit.d.ts +8 -0
- package/lib/exercises/math/limits/frac1XTimesALogXPlusBLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/frac1XTimesALogXPlusBLimit.js +121 -0
- package/lib/exercises/math/limits/index.d.ts +3 -0
- package/lib/exercises/math/limits/index.d.ts.map +1 -1
- package/lib/exercises/math/limits/index.js +3 -0
- package/lib/exercises/math/limits/kLogXPlusTrinomLimit.d.ts +12 -0
- package/lib/exercises/math/limits/kLogXPlusTrinomLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/kLogXPlusTrinomLimit.js +224 -0
- package/lib/exercises/math/limits/logOfPolynomialLimit.d.ts +10 -0
- package/lib/exercises/math/limits/logOfPolynomialLimit.d.ts.map +1 -0
- package/lib/exercises/math/limits/logOfPolynomialLimit.js +154 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfLinearCombination.d.ts +12 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfLinearCombination.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfLinearCombination.js +170 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfSumFromDice.d.ts +7 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfSumFromDice.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfSumFromDice.js +163 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfSumFromProbaLaw.d.ts +14 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfSumFromProbaLaw.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/expectedValueOfSumFromProbaLaw.js +150 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts +5 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/index.js +5 -0
- package/lib/exercises/math/probaStat/basicProbas/varianceOfLinearCombination.d.ts +12 -0
- package/lib/exercises/math/probaStat/basicProbas/varianceOfLinearCombination.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/varianceOfLinearCombination.js +193 -0
- package/lib/exercises/math/probaStat/basicProbas/varianceOfMean.d.ts +13 -0
- package/lib/exercises/math/probaStat/basicProbas/varianceOfMean.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/varianceOfMean.js +171 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialExpectedValueFromSituation.d.ts +9 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialExpectedValueFromSituation.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialExpectedValueFromSituation.js +125 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindParamsFromSituation.d.ts +9 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindParamsFromSituation.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindParamsFromSituation.js +126 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindProbaOfAtLeastOneSuccessFromSituation.d.ts +8 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindProbaOfAtLeastOneSuccessFromSituation.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindProbaOfAtLeastOneSuccessFromSituation.js +150 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindProbaOfXCompKFromSituation.d.ts +15 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindProbaOfXCompKFromSituation.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindProbaOfXCompKFromSituation.js +386 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindThresholdForNFromSituation.d.ts +14 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindThresholdForNFromSituation.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialFindThresholdForNFromSituation.js +248 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialSituations.d.ts +47 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialSituations.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/binomialSituations.js +184 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/buildTreeBernoulliFromSituation.d.ts +9 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/buildTreeBernoulliFromSituation.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/buildTreeBernoulliFromSituation.js +120 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/index.d.ts +7 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/binomial/fromSituation/index.js +6 -0
- package/lib/exercises/math/probaStat/binomial/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/binomial/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/binomial/index.js +1 -0
- package/lib/exercises/math/probaStat/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/index.js +1 -0
- package/lib/exercises/math/probaStat/tchebychev/index.d.ts +5 -0
- package/lib/exercises/math/probaStat/tchebychev/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/index.js +4 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/index.d.ts +4 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/index.js +3 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevFindRadiusToMinorizeProbaOfMeanInCenteredInterval.d.ts +11 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevFindRadiusToMinorizeProbaOfMeanInCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevFindRadiusToMinorizeProbaOfMeanInCenteredInterval.js +273 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevMajorizeProbaOfMeanOutOfCenteredInterval.d.ts +14 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevMajorizeProbaOfMeanOutOfCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevMajorizeProbaOfMeanOutOfCenteredInterval.js +219 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevMinorizeProbaOfMeanInCenteredInterval.d.ts +14 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevMinorizeProbaOfMeanInCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/mean/tchebychevMinorizeProbaOfMeanInCenteredInterval.js +245 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevFindRadiusToMajorizeProbaOfXOutOfCenteredInterval.d.ts +10 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevFindRadiusToMajorizeProbaOfXOutOfCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevFindRadiusToMajorizeProbaOfXOutOfCenteredInterval.js +191 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevMajorizeProbaOfXOutOfCenteredInterval.d.ts +10 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevMajorizeProbaOfXOutOfCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevMajorizeProbaOfXOutOfCenteredInterval.js +135 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevMinorizeProbaOfXInCenteredInterval.d.ts +10 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevMinorizeProbaOfXInCenteredInterval.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/tchebychev/tchebychevMinorizeProbaOfXInCenteredInterval.js +155 -0
- package/lib/exercises/math/probaStat/trees/buildTreeBernoulli.d.ts +9 -0
- package/lib/exercises/math/probaStat/trees/buildTreeBernoulli.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/trees/buildTreeBernoulli.js +124 -0
- package/lib/exercises/math/probaStat/trees/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/trees/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/trees/index.js +1 -0
- package/lib/exercises/math/sequences/geometric/graph/index.d.ts +4 -0
- package/lib/exercises/math/sequences/geometric/graph/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/graph/index.js +4 -0
- package/lib/exercises/math/sequences/geometric/index.d.ts +2 -0
- package/lib/exercises/math/sequences/geometric/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/index.js +2 -0
- package/lib/exercises/math/sequences/geometric/situations/geometricFindRankFromSituation.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/situations/geometricFindRankFromSituation.js +71 -48
- package/lib/exercises/math/sequences/geometric/situations/index.d.ts +2 -1
- package/lib/exercises/math/sequences/geometric/situations/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/situations/index.js +2 -2
- package/lib/exercises/math/sets/index.d.ts +3 -0
- package/lib/exercises/math/sets/index.d.ts.map +1 -1
- package/lib/exercises/math/sets/index.js +3 -0
- package/lib/exercises/math/spaceGeometry/basis/index.d.ts +6 -0
- package/lib/exercises/math/spaceGeometry/basis/index.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/basis/index.js +6 -0
- package/lib/exercises/math/spaceGeometry/basis/lineLineRelativePositionsFromCubeOuterPoints.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/basis/lineLineRelativePositionsFromCubeOuterPoints.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/basis/lineLineRelativePositionsFromCubeOuterPoints.js +576 -0
- package/lib/exercises/math/spaceGeometry/basis/linePlaneRelativePositionsFromCubeOuterPoints.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/basis/linePlaneRelativePositionsFromCubeOuterPoints.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/basis/linePlaneRelativePositionsFromCubeOuterPoints.js +595 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfPointInCubeCoordSystem.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfPointInCubeCoordSystem.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfPointInCubeCoordSystem.js +501 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfPointInCubeCoordSystemFromVecPath.d.ts +16 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfPointInCubeCoordSystemFromVecPath.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfPointInCubeCoordSystemFromVecPath.js +753 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfVectorInCubeCoordSystem.d.ts +12 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfVectorInCubeCoordSystem.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesOfVectorInCubeCoordSystem.js +546 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceVectorLinearCombinationFromCoords.d.ts +13 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceVectorLinearCombinationFromCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/basis/spaceVectorLinearCombinationFromCoords.js +233 -0
- package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromCoords.d.ts +11 -0
- package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromCoords.js +192 -0
- package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints.d.ts +15 -0
- package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints.js +511 -0
- package/lib/exercises/math/spaceGeometry/collinearity/index.d.ts +3 -0
- package/lib/exercises/math/spaceGeometry/collinearity/index.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/collinearity/index.js +2 -0
- package/lib/exercises/math/spaceGeometry/index.d.ts +5 -0
- package/lib/exercises/math/spaceGeometry/index.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/index.js +5 -1
- package/lib/exercises/math/spaceGeometry/orthogonalProjection/findOrthogonalProjectionOfPointOnPlane.d.ts +22 -0
- package/lib/exercises/math/spaceGeometry/orthogonalProjection/findOrthogonalProjectionOfPointOnPlane.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/orthogonalProjection/findOrthogonalProjectionOfPointOnPlane.js +366 -0
- package/lib/exercises/math/spaceGeometry/orthogonalProjection/index.d.ts +2 -0
- package/lib/exercises/math/spaceGeometry/orthogonalProjection/index.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/orthogonalProjection/index.js +2 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/index.d.ts +3 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/index.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/index.js +2 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.d.ts +14 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/lineLineRelativePositionsFromParametricLines.js +325 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/parametricLineFromPointAndDirectionVector.d.ts +13 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/parametricLineFromPointAndDirectionVector.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/parametricLine/parametricLineFromPointAndDirectionVector.js +181 -0
- package/lib/exercises/math/spaceGeometry/planes/checkIsPointBelongingToPlane.d.ts +10 -0
- package/lib/exercises/math/spaceGeometry/planes/checkIsPointBelongingToPlane.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/planes/checkIsPointBelongingToPlane.js +208 -0
- package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.d.ts +8 -0
- package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlaneEquation.js +255 -0
- package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlanePointsCoords.d.ts +10 -0
- package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlanePointsCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/planes/findNormalVectorFromPlanePointsCoords.js +232 -0
- package/lib/exercises/math/spaceGeometry/planes/index.d.ts +5 -1
- package/lib/exercises/math/spaceGeometry/planes/index.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/planes/index.js +6 -2
- package/lib/exercises/math/spaceGeometry/planes/planeEquationFromNormalVectorAndContainedPoint.d.ts +10 -0
- package/lib/exercises/math/spaceGeometry/planes/planeEquationFromNormalVectorAndContainedPoint.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/planes/planeEquationFromNormalVectorAndContainedPoint.js +273 -0
- package/lib/exercises/math/spaceGeometry/planes/planeEquationFromOrthogonalLineAndContainedPoint.d.ts +12 -0
- package/lib/exercises/math/spaceGeometry/planes/planeEquationFromOrthogonalLineAndContainedPoint.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/planes/planeEquationFromOrthogonalLineAndContainedPoint.js +398 -0
- package/lib/exercises/math/spaceGeometry/planes/planePlaneRelativePositions.d.ts +22 -0
- package/lib/exercises/math/spaceGeometry/planes/planePlaneRelativePositions.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/planes/planePlaneRelativePositions.js +509 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/angleFromScalarProductFromSpacePointCoords.d.ts +8 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/angleFromScalarProductFromSpacePointCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/angleFromScalarProductFromSpacePointCoords.js +229 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsOrthogonalLinesFromParametricReps.d.ts +9 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsOrthogonalLinesFromParametricReps.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsOrthogonalLinesFromParametricReps.js +200 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsOrthogonalSpaceVecsFromCoords.d.ts +8 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsOrthogonalSpaceVecsFromCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsOrthogonalSpaceVecsFromCoords.js +176 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsSpaceVecOrthogonalToPlaneFromCoords.d.ts +9 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsSpaceVecOrthogonalToPlaneFromCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/checkIsSpaceVecOrthogonalToPlaneFromCoords.js +263 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/index.d.ts +6 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/index.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/index.js +6 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/scalarProductFromCubeOuterPoints.d.ts +14 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/scalarProductFromCubeOuterPoints.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/scalarProductFromCubeOuterPoints.js +497 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/scalarProductFromSpacePointCoords.d.ts +8 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/scalarProductFromSpacePointCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/scalarProduct/scalarProductFromSpacePointCoords.js +173 -0
- package/lib/exercises/math/spaceGeometry/vectors/findLinearDecompositionWrtCoplanarUVFromCoords.d.ts +10 -0
- package/lib/exercises/math/spaceGeometry/vectors/findLinearDecompositionWrtCoplanarUVFromCoords.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/vectors/findLinearDecompositionWrtCoplanarUVFromCoords.js +236 -0
- package/lib/exercises/math/spaceGeometry/vectors/index.d.ts +2 -0
- package/lib/exercises/math/spaceGeometry/vectors/index.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/vectors/index.js +2 -0
- package/lib/exercises/math/spaceGeometry/vectors/spacePointsDistanceCalculation.d.ts +8 -0
- package/lib/exercises/math/spaceGeometry/vectors/spacePointsDistanceCalculation.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/vectors/spacePointsDistanceCalculation.js +156 -0
- package/lib/exercises/math/trigonometry/functions/index.d.ts +1 -0
- package/lib/exercises/math/trigonometry/functions/index.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/functions/index.js +1 -0
- package/lib/exercises/utils/data/randomDataTable.d.ts +4 -1
- package/lib/exercises/utils/data/randomDataTable.d.ts.map +1 -1
- package/lib/exercises/utils/data/randomDataTable.js +1 -2
- package/lib/exercises/vea/varLineVEA.d.ts.map +1 -1
- package/lib/exercises/vea/varLineVEA.js +15 -2
- package/lib/exercises/vea/xTableLineVEA.d.ts.map +1 -1
- package/lib/exercises/vea/xTableLineVEA.js +13 -2
- package/lib/index.d.ts +539 -34
- package/lib/index.d.ts.map +1 -1
- package/lib/latexTester.d.ts.map +1 -1
- package/lib/latexTester.js +9 -7
- package/lib/math/geometry/parametricLine.d.ts +1 -1
- package/lib/math/geometry/parametricLine.d.ts.map +1 -1
- package/lib/math/geometry/parametricLine.js +2 -2
- package/lib/math/geometry/spaceVector.d.ts +11 -1
- package/lib/math/geometry/spaceVector.d.ts.map +1 -1
- package/lib/math/geometry/spaceVector.js +18 -4
- package/lib/math/probability/randomVariable.d.ts +3 -2
- package/lib/math/probability/randomVariable.d.ts.map +1 -1
- package/lib/math/probability/randomVariable.js +14 -8
- package/lib/math/systems/generalSystem.d.ts +3 -3
- package/lib/math/systems/generalSystem.d.ts.map +1 -1
- package/lib/math/systems/generalSystem.js +20 -17
- package/lib/math/utils/functions/functionComparison.d.ts.map +1 -1
- package/lib/math/utils/functions/functionComparison.js +2 -45
- package/lib/math/utils/functions/functionComposition.d.ts +3 -1
- package/lib/math/utils/functions/functionComposition.d.ts.map +1 -1
- package/lib/math/utils/functions/functionComposition.js +17 -17
- package/lib/math/utils/integration/rectanglesMethod.d.ts +6 -0
- package/lib/math/utils/integration/rectanglesMethod.d.ts.map +1 -0
- package/lib/math/utils/integration/rectanglesMethod.js +66 -0
- package/lib/math/utils/polynomial/polynomialUtils.d.ts +9 -1
- package/lib/math/utils/polynomial/polynomialUtils.d.ts.map +1 -1
- package/lib/math/utils/polynomial/polynomialUtils.js +66 -7
- package/lib/math/utils/sequences/situations/seqGeometricSituations.d.ts +34 -2
- package/lib/math/utils/sequences/situations/seqGeometricSituations.d.ts.map +1 -1
- package/lib/math/utils/sequences/situations/seqGeometricSituations.js +288 -47
- package/lib/tests/questionTest.d.ts.map +1 -1
- package/lib/tests/questionTest.js +5 -2
- package/lib/tests/singleExo.test.js +2 -2
- package/lib/tree/nodes/functions/cosNode.d.ts +1 -1
- package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/cosNode.js +5 -2
- package/lib/tree/nodes/functions/factorialNode.d.ts +1 -0
- package/lib/tree/nodes/functions/factorialNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/factorialNode.js +16 -1
- package/lib/tree/nodes/functions/logNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/logNode.js +2 -1
- package/lib/tree/nodes/operators/binomialCoefficientNode.d.ts +2 -0
- package/lib/tree/nodes/operators/binomialCoefficientNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/binomialCoefficientNode.js +34 -0
- package/lib/tree/nodes/sets/discreteSetNode.d.ts.map +1 -1
- package/lib/tree/nodes/sets/discreteSetNode.js +1 -0
- package/lib/tree/utilities/nodeComparator.d.ts +7 -0
- package/lib/tree/utilities/nodeComparator.d.ts.map +1 -1
- package/lib/tree/utilities/nodeComparator.js +59 -0
- package/lib/tree/utilities/nodeInspector.d.ts +2 -0
- package/lib/tree/utilities/nodeInspector.d.ts.map +1 -1
- package/lib/tree/utilities/nodeInspector.js +23 -1
- package/lib/tree/utilities/nodeRewriter.d.ts.map +1 -1
- package/lib/tree/utilities/nodeRewriter.js +4 -1
- package/lib/types/keyIds.d.ts +1 -1
- package/lib/types/keyIds.d.ts.map +1 -1
- package/lib/utils/strings/splitAndKeep.d.ts +2 -0
- package/lib/utils/strings/splitAndKeep.d.ts.map +1 -0
- package/lib/utils/strings/splitAndKeep.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { GeneratorOptionTarget, GeneratorOptionType, addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
4
|
+
import { exp } from "../../../../tree/nodes/functions/expNode.js";
|
|
5
|
+
import { LogNode } from "../../../../tree/nodes/functions/logNode.js";
|
|
6
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
7
|
+
import { VariableNode } from "../../../../tree/nodes/variables/variableNode.js";
|
|
8
|
+
import { add } from "../../../../tree/nodes/operators/addNode.js";
|
|
9
|
+
import { substract } from "../../../../tree/nodes/operators/substractNode.js";
|
|
10
|
+
import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
|
|
11
|
+
import { alignTex } from "../../../../utils/latex/alignTex.js";
|
|
12
|
+
import { splitAndKeep } from "../../../../utils/strings/splitAndKeep.js";
|
|
13
|
+
import { IntervalNode } from "../../../../tree/nodes/sets/intervalNode.js";
|
|
14
|
+
import { ClosureType } from "../../../../tree/nodes/sets/closure.js";
|
|
15
|
+
import { random } from "../../../../utils/alea/random.js";
|
|
16
|
+
import { round } from "../../../../math/utils/round.js";
|
|
17
|
+
import { NodeConstructor, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
18
|
+
import { InequationSymbol, } from "../../../../math/inequations/inequation.js";
|
|
19
|
+
import { InequationSolutionNode } from "../../../../tree/nodes/inequations/inequationSolutionNode.js";
|
|
20
|
+
import { InequationNode } from "../../../../tree/nodes/inequations/inequationNode.js";
|
|
21
|
+
import { NamedIntervalIds, NamedIntervalNodeConstructor, } from "../../../../tree/nodes/sets/namedIntervalNode.js";
|
|
22
|
+
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
23
|
+
import { unionIntervalParser } from "../../../../tree/parsers/unionIntervalParser.js";
|
|
24
|
+
const getHydrated = (identifiers) => {
|
|
25
|
+
const { a, b, nodeIdsK, inegSymbol, nodeIdsIntervalRequired } = identifiers;
|
|
26
|
+
const nodeK = NodeConstructor.fromIdentifiers(nodeIdsK);
|
|
27
|
+
const nodeIntervalRequired = NodeConstructor.fromIdentifiers(nodeIdsIntervalRequired);
|
|
28
|
+
const nodeVarX = new VariableNode("x");
|
|
29
|
+
const nodeAffine = add(multiply(a, nodeVarX), b);
|
|
30
|
+
const nodeLogOfAffine = new LogNode(nodeAffine);
|
|
31
|
+
//step1 :
|
|
32
|
+
// ln(ax+b) <<= k
|
|
33
|
+
//<=> ax+b <<= e^k
|
|
34
|
+
//<=> ax <<= e^b - b
|
|
35
|
+
//<=> a>0 ? x <<= (e^b - b)/a : x >>= (e^b - b)/a
|
|
36
|
+
//<=> a>0 ? I_free = ]-\\infty; (e^b - b)/a [] : [] (e^b - b)/a ; +\\infty [
|
|
37
|
+
//step 2 :
|
|
38
|
+
//ln(ax+b) is defined on I_possible = a>0 ? : ] -b/a ; +\\infty [ : ]-\\infty; -b/a [
|
|
39
|
+
//I_available = I_possible inter I_free
|
|
40
|
+
//step 3 :
|
|
41
|
+
//S = I_required inter I_available
|
|
42
|
+
const nodeRoot = frac(substract(exp(nodeK), b).simplify(), a).simplify();
|
|
43
|
+
const nodeIntervalFree = new InequationNode([nodeVarX, nodeRoot], a > 0 ? inegSymbol : new InequationSymbol(inegSymbol).reversed()).toInterval();
|
|
44
|
+
const nodeIntervalPossible = new InequationNode([nodeVarX, frac(-b, a).simplify()], a > 0 ? ">" : "<").toInterval();
|
|
45
|
+
const nodeIntervalAvailable = nodeIntervalPossible.intersection(nodeIntervalFree);
|
|
46
|
+
const nodeIntervalSolution = nodeIntervalRequired.intersection(nodeIntervalAvailable);
|
|
47
|
+
const nodeAnswer = new InequationSolutionNode(nodeIntervalSolution);
|
|
48
|
+
return {
|
|
49
|
+
a,
|
|
50
|
+
b,
|
|
51
|
+
nodeK,
|
|
52
|
+
inegSymbol,
|
|
53
|
+
nodeIntervalRequired,
|
|
54
|
+
nodeAffine,
|
|
55
|
+
nodeLogOfAffine,
|
|
56
|
+
nodeRoot,
|
|
57
|
+
nodeIntervalFree,
|
|
58
|
+
nodeIntervalPossible,
|
|
59
|
+
nodeIntervalAvailable,
|
|
60
|
+
nodeIntervalSolution,
|
|
61
|
+
nodeAnswer,
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
const getInstruction = (identifiers) => {
|
|
65
|
+
const { a, b, nodeIdsK, inegSymbol, nodeIdsIntervalRequired } = identifiers;
|
|
66
|
+
const nodeK = NodeConstructor.fromIdentifiers(nodeIdsK);
|
|
67
|
+
const nodeIntervalRequired = NodeConstructor.fromIdentifiers(nodeIdsIntervalRequired);
|
|
68
|
+
const nodeVarX = new VariableNode("x");
|
|
69
|
+
const nodeAffine = add(multiply(a, nodeVarX), b);
|
|
70
|
+
const nodeLogOfAffine = new LogNode(nodeAffine);
|
|
71
|
+
const nodeInequation = new InequationNode([nodeLogOfAffine, nodeK], inegSymbol);
|
|
72
|
+
return `Résoudre dans $${nodeIntervalRequired.toTex()}$ l'inéquation :
|
|
73
|
+
|
|
74
|
+
$$
|
|
75
|
+
${nodeInequation.toTex()}
|
|
76
|
+
$$`;
|
|
77
|
+
};
|
|
78
|
+
const getAnswer = (identifiers) => {
|
|
79
|
+
const { nodeAnswer } = getHydrated(identifiers);
|
|
80
|
+
return nodeAnswer.toTex();
|
|
81
|
+
};
|
|
82
|
+
const getHint = (identifiers) => {
|
|
83
|
+
const { a, b } = identifiers;
|
|
84
|
+
const nodeVarX = new VariableNode("x");
|
|
85
|
+
const nodeAffine = add(multiply(a, nodeVarX), b);
|
|
86
|
+
const nodeLogOfAffine = new LogNode(nodeAffine);
|
|
87
|
+
return `Suppose qu'une solution existe et calcule-la,
|
|
88
|
+
puis calcule l'intersection avec l'ensemble de définition de $x \\mapsto ${nodeLogOfAffine.toTex()}$,
|
|
89
|
+
et enfin calcule l'intersection avec l'ensemble imposé dans l'énoncé.`;
|
|
90
|
+
};
|
|
91
|
+
const getCorrection = (identifiers) => {
|
|
92
|
+
const { a, b, nodeK, inegSymbol, nodeIntervalRequired, nodeAffine, nodeLogOfAffine, nodeIntervalFree, nodeIntervalPossible, nodeIntervalAvailable, nodeIntervalSolution, } = getHydrated(identifiers);
|
|
93
|
+
const nodeVarX = new VariableNode("x");
|
|
94
|
+
const nodeInequation1 = new InequationNode([nodeLogOfAffine, nodeK], inegSymbol);
|
|
95
|
+
const nodeInequation2 = new InequationNode([nodeAffine, exp(nodeK).simplify()], inegSymbol);
|
|
96
|
+
const nodeInequation3 = new InequationNode([multiply(a, nodeVarX), substract(exp(nodeK), b).simplify()], inegSymbol);
|
|
97
|
+
const inegSymbol4 = a > 0 ? inegSymbol : new InequationSymbol(inegSymbol).reversed();
|
|
98
|
+
const nodeInequation4 = new InequationNode([nodeVarX, frac(substract(exp(nodeK), b).simplify(), a)], inegSymbol4);
|
|
99
|
+
return `Supposons qu'une solution existe.
|
|
100
|
+
|
|
101
|
+
On aurait :
|
|
102
|
+
|
|
103
|
+
${alignTex([
|
|
104
|
+
["\\ \\ ", ...splitAndKeep(nodeInequation1.toTex(), inegSymbol)],
|
|
105
|
+
["\\Leftrightarrow", ...splitAndKeep(nodeInequation2.toTex(), inegSymbol)],
|
|
106
|
+
["\\Leftrightarrow", ...splitAndKeep(nodeInequation3.toTex(), inegSymbol)],
|
|
107
|
+
["\\Leftrightarrow", ...splitAndKeep(nodeInequation4.toTex(), inegSymbol4)],
|
|
108
|
+
])}
|
|
109
|
+
|
|
110
|
+
La fonction $x \\mapsto ${new LogNode(nodeVarX).toTex()}$ est définie sur $]0; +\\infty[$.
|
|
111
|
+
La fonction $x \\mapsto ${nodeLogOfAffine.toTex()}$ est définie sur $${nodeIntervalPossible.toTex()}$.
|
|
112
|
+
|
|
113
|
+
${alignTex([
|
|
114
|
+
[
|
|
115
|
+
`S_{\\text{provisoire}}`,
|
|
116
|
+
"=",
|
|
117
|
+
`${nodeIntervalPossible.toTex()} \\cap \\ ${nodeIntervalFree.toTex()}`,
|
|
118
|
+
],
|
|
119
|
+
["", "=", nodeIntervalAvailable.toTex()],
|
|
120
|
+
])}
|
|
121
|
+
|
|
122
|
+
L'intervalle imposé dans l'énoncé est $${nodeIntervalRequired.toTex()}$.
|
|
123
|
+
|
|
124
|
+
La solution de l'équation proposée est donc :
|
|
125
|
+
|
|
126
|
+
${alignTex([
|
|
127
|
+
[
|
|
128
|
+
`S`,
|
|
129
|
+
"=",
|
|
130
|
+
`${nodeIntervalRequired.toTex()} \\cap \\ ${nodeIntervalAvailable.toTex()}`,
|
|
131
|
+
],
|
|
132
|
+
["", "=", nodeIntervalSolution.toTex()],
|
|
133
|
+
])}
|
|
134
|
+
|
|
135
|
+
`;
|
|
136
|
+
};
|
|
137
|
+
const getPropositions = (n, { answer, ...identifiers }) => {
|
|
138
|
+
const propositions = [];
|
|
139
|
+
addValidProp(propositions, answer);
|
|
140
|
+
//correct inegSymbol
|
|
141
|
+
{
|
|
142
|
+
const { nodeIntervalFree, nodeIntervalPossible, nodeIntervalAvailable } = getHydrated(identifiers);
|
|
143
|
+
//student: does not care about intervals
|
|
144
|
+
{
|
|
145
|
+
tryToAddWrongProp(propositions, nodeIntervalFree.toTex());
|
|
146
|
+
}
|
|
147
|
+
//student: cares only about the definition of ln(ax+b)
|
|
148
|
+
{
|
|
149
|
+
tryToAddWrongProp(propositions, nodeIntervalPossible.toTex());
|
|
150
|
+
}
|
|
151
|
+
//student: does not take required interval into account
|
|
152
|
+
{
|
|
153
|
+
tryToAddWrongProp(propositions, nodeIntervalAvailable.toTex());
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
//reversed inegSymbol
|
|
157
|
+
{
|
|
158
|
+
const identifiersWrong = {
|
|
159
|
+
...identifiers,
|
|
160
|
+
inegSymbol: new InequationSymbol(identifiers.inegSymbol).reversed(),
|
|
161
|
+
};
|
|
162
|
+
const { nodeIntervalFree, nodeIntervalPossible, nodeIntervalAvailable } = getHydrated(identifiersWrong);
|
|
163
|
+
//student: does not care about intervals
|
|
164
|
+
{
|
|
165
|
+
tryToAddWrongProp(propositions, nodeIntervalFree.toTex());
|
|
166
|
+
}
|
|
167
|
+
//student: cares only about the definition of ln(ax+b)
|
|
168
|
+
{
|
|
169
|
+
tryToAddWrongProp(propositions, nodeIntervalPossible.toTex());
|
|
170
|
+
}
|
|
171
|
+
//student: does not take required interval into account
|
|
172
|
+
{
|
|
173
|
+
tryToAddWrongProp(propositions, nodeIntervalAvailable.toTex());
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
//student: a -> -a
|
|
177
|
+
{
|
|
178
|
+
const identifiersWrong = {
|
|
179
|
+
...identifiers,
|
|
180
|
+
a: -identifiers.a,
|
|
181
|
+
};
|
|
182
|
+
const { nodeIntervalFree, nodeIntervalPossible, nodeIntervalAvailable } = getHydrated(identifiersWrong);
|
|
183
|
+
//student: does not care about intervals
|
|
184
|
+
{
|
|
185
|
+
tryToAddWrongProp(propositions, nodeIntervalFree.toTex());
|
|
186
|
+
}
|
|
187
|
+
//student: cares only about the definition of ln(ax+b)
|
|
188
|
+
{
|
|
189
|
+
tryToAddWrongProp(propositions, nodeIntervalPossible.toTex());
|
|
190
|
+
}
|
|
191
|
+
//student: does not take required interval into account
|
|
192
|
+
{
|
|
193
|
+
tryToAddWrongProp(propositions, nodeIntervalAvailable.toTex());
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return shuffleProps(propositions, n);
|
|
197
|
+
};
|
|
198
|
+
const getKeys = () => {
|
|
199
|
+
return [
|
|
200
|
+
"x",
|
|
201
|
+
"equal",
|
|
202
|
+
"lnBrackets",
|
|
203
|
+
"e",
|
|
204
|
+
"epower",
|
|
205
|
+
"lbracket",
|
|
206
|
+
"S",
|
|
207
|
+
"semicolon",
|
|
208
|
+
"rbracket",
|
|
209
|
+
"varnothing",
|
|
210
|
+
];
|
|
211
|
+
};
|
|
212
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
213
|
+
try {
|
|
214
|
+
//S=\ \varnothing
|
|
215
|
+
{
|
|
216
|
+
const answerRefined = answer.replace("\\ ", "");
|
|
217
|
+
if (ans === answerRefined) {
|
|
218
|
+
return true;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
//else
|
|
222
|
+
const parsed = unionIntervalParser(ans.replaceAll("S", "").replaceAll("=", ""));
|
|
223
|
+
if (!parsed)
|
|
224
|
+
return false;
|
|
225
|
+
return "S=\\ " + parsed.simplify().toTex() === answer;
|
|
226
|
+
}
|
|
227
|
+
catch (e) {
|
|
228
|
+
handleVEAError(e);
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const getLogInequationLnAXPlusBInfKQuestion = (optsIn) => {
|
|
233
|
+
const opts = optsIn ?? optsDefault;
|
|
234
|
+
const a = randint(-9, 20, [0]);
|
|
235
|
+
const b = randint(-9, 20, [0]);
|
|
236
|
+
const nodeK = (() => {
|
|
237
|
+
switch (opts.typeK) {
|
|
238
|
+
case "$k$":
|
|
239
|
+
return randint(-9, 20, [0]).toTree();
|
|
240
|
+
case "$\\ln(k')$":
|
|
241
|
+
return new LogNode(randint(2, 20, [0]).toTree());
|
|
242
|
+
default:
|
|
243
|
+
throw new Error("Unsupported opts.typeK: " + opts.typeK);
|
|
244
|
+
}
|
|
245
|
+
})();
|
|
246
|
+
const inegSymbol = random(["<", "\\le", "\\ge", ">"]);
|
|
247
|
+
const nodeIntervalRequired = (() => {
|
|
248
|
+
switch (opts.typeIntervalRequired) {
|
|
249
|
+
case "$\\mathbb{R}$":
|
|
250
|
+
return NamedIntervalNodeConstructor.fromName(NamedIntervalIds.R);
|
|
251
|
+
case "intervalle aléatoire": {
|
|
252
|
+
const nodeBoundLowPossible = frac(-b, a);
|
|
253
|
+
const nodeBoundLowRequired = (() => {
|
|
254
|
+
const valueBoundLowPossibleRounded = round(nodeBoundLowPossible.evaluate(), 0);
|
|
255
|
+
return randint(valueBoundLowPossibleRounded - 10, valueBoundLowPossibleRounded + 10).toTree();
|
|
256
|
+
})();
|
|
257
|
+
const nodeBoundLowMax = substract(nodeBoundLowRequired, nodeBoundLowPossible).evaluate() > 0
|
|
258
|
+
? nodeBoundLowRequired
|
|
259
|
+
: nodeBoundLowPossible;
|
|
260
|
+
const nodeBoundHighRequired = Math.ceil(add(nodeBoundLowMax, randint(1, 11)).evaluate()).toTree();
|
|
261
|
+
const closureType = random([
|
|
262
|
+
ClosureType.OO,
|
|
263
|
+
ClosureType.OF,
|
|
264
|
+
ClosureType.FO,
|
|
265
|
+
ClosureType.FF,
|
|
266
|
+
]);
|
|
267
|
+
return new IntervalNode(nodeBoundLowRequired, nodeBoundHighRequired, closureType);
|
|
268
|
+
}
|
|
269
|
+
default:
|
|
270
|
+
throw new Error("Unsupported opts.typeIntervalRequired: " + opts.typeIntervalRequired);
|
|
271
|
+
}
|
|
272
|
+
})();
|
|
273
|
+
const identifiers = {
|
|
274
|
+
a,
|
|
275
|
+
b,
|
|
276
|
+
nodeIdsK: nodeK.toIdentifiers(),
|
|
277
|
+
inegSymbol,
|
|
278
|
+
nodeIdsIntervalRequired: nodeIntervalRequired.toIdentifiers(),
|
|
279
|
+
};
|
|
280
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
281
|
+
};
|
|
282
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
283
|
+
const question = {
|
|
284
|
+
instruction: getInstruction(identifiers),
|
|
285
|
+
answer: getAnswer(identifiers),
|
|
286
|
+
keys: getKeys(identifiers),
|
|
287
|
+
answerFormat: "tex",
|
|
288
|
+
identifiers,
|
|
289
|
+
hint: getHint(identifiers),
|
|
290
|
+
correction: getCorrection(identifiers),
|
|
291
|
+
};
|
|
292
|
+
return question;
|
|
293
|
+
};
|
|
294
|
+
const optsDefault = {
|
|
295
|
+
typeIntervalRequired: "$\\mathbb{R}$",
|
|
296
|
+
typeK: "$k$",
|
|
297
|
+
};
|
|
298
|
+
const options = [
|
|
299
|
+
{
|
|
300
|
+
id: "typeIntervalRequired",
|
|
301
|
+
label: "Résoudre dans : ",
|
|
302
|
+
type: GeneratorOptionType.select,
|
|
303
|
+
target: GeneratorOptionTarget.generation,
|
|
304
|
+
values: ["$\\mathbb{R}$", "intervalle aléatoire"],
|
|
305
|
+
defaultValue: optsDefault.typeIntervalRequired,
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
id: "typeK",
|
|
309
|
+
label: "Format du membre de droite",
|
|
310
|
+
type: GeneratorOptionType.select,
|
|
311
|
+
target: GeneratorOptionTarget.generation,
|
|
312
|
+
values: ["$k$", "$\\ln(k')$"],
|
|
313
|
+
defaultValue: optsDefault.typeK,
|
|
314
|
+
},
|
|
315
|
+
];
|
|
316
|
+
export const logInequationLnAXPlusBInfK = {
|
|
317
|
+
id: "logInequationLnAXPlusBInfK",
|
|
318
|
+
connector: "=",
|
|
319
|
+
label: "Résoudre des équations de type $\\ln(ax+b) < k$",
|
|
320
|
+
isSingleStep: false,
|
|
321
|
+
generator: (nb, opts) => getDistinctQuestions(() => getLogInequationLnAXPlusBInfKQuestion(opts), nb),
|
|
322
|
+
options,
|
|
323
|
+
getPropositions,
|
|
324
|
+
qcmTimer: 60,
|
|
325
|
+
freeTimer: 60,
|
|
326
|
+
isAnswerValid,
|
|
327
|
+
subject: "Mathématiques",
|
|
328
|
+
getQuestionFromIdentifiers,
|
|
329
|
+
hasHintAndCorrection: true,
|
|
330
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
pm: number;
|
|
4
|
+
a: number;
|
|
5
|
+
b: number;
|
|
6
|
+
c: number;
|
|
7
|
+
d: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const logLinearCombinationSimplifiying: Exercise<Identifiers>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=logLinearCombinationSimplifiying.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logLinearCombinationSimplifiying.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/functions/logarithm/logLinearCombinationSimplifiying.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAeT,MAAM,6BAA6B,CAAC;AA+BrC,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AA4NF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAclE,CAAC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { addValidProp, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { primeDecompNode } from "../../../../math/utils/arithmetic/primeDecompNode.js";
|
|
4
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
5
|
+
import { isLogNode, LogNode } from "../../../../tree/nodes/functions/logNode.js";
|
|
6
|
+
import { add } from "../../../../tree/nodes/operators/addNode.js";
|
|
7
|
+
import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
|
|
8
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
9
|
+
import { power } from "../../../../tree/nodes/operators/powerNode.js";
|
|
10
|
+
import { substract } from "../../../../tree/nodes/operators/substractNode.js";
|
|
11
|
+
import { parseAlgebraic } from "../../../../tree/parsers/latexParser.js";
|
|
12
|
+
import { NodeComparator } from "../../../../tree/utilities/nodeComparator.js";
|
|
13
|
+
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
14
|
+
import { randomMany } from "../../../../utils/alea/random.js";
|
|
15
|
+
import { shuffle } from "../../../../utils/alea/shuffle.js";
|
|
16
|
+
import { alignTex } from "../../../../utils/latex/alignTex.js";
|
|
17
|
+
const getHydratedMini = (identifiers) => {
|
|
18
|
+
const { pm, a, b, c, d } = identifiers;
|
|
19
|
+
const [nodeLhs, nodeRhs] = [
|
|
20
|
+
[a, b],
|
|
21
|
+
[c, d],
|
|
22
|
+
].map(([vFactor, v]) => multiply(vFactor, new LogNode(v.toTree())));
|
|
23
|
+
const addSub = pm === 1 ? add : substract;
|
|
24
|
+
const nodeSumRaw = addSub(nodeLhs, nodeRhs);
|
|
25
|
+
const mulFrac = pm === 1 ? multiply : frac;
|
|
26
|
+
const nodeInside = mulFrac(power(b, a), power(d, c));
|
|
27
|
+
const nodeSumRewrittenSimplified = new LogNode(nodeInside.simplify({ calculatePowers: true, forbidFactorize: true }));
|
|
28
|
+
return {
|
|
29
|
+
nodeSumRaw,
|
|
30
|
+
nodeSumRewrittenSimplified,
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
const getHydrated = (identifiers) => {
|
|
34
|
+
const { pm, a, b, c, d } = identifiers;
|
|
35
|
+
const [nodeLhs, nodeRhs] = [
|
|
36
|
+
[a, b],
|
|
37
|
+
[c, d],
|
|
38
|
+
].map(([vFactor, v]) => multiply(vFactor, new LogNode(v.toTree())));
|
|
39
|
+
const addSub = pm === 1 ? add : substract;
|
|
40
|
+
const nodeSumRaw = addSub(nodeLhs, nodeRhs);
|
|
41
|
+
const mulFrac = pm === 1 ? multiply : frac;
|
|
42
|
+
const nodeInside = mulFrac(power(b, a), power(d, c));
|
|
43
|
+
const nodeSumRewritten = new LogNode(nodeInside);
|
|
44
|
+
const [nodeDecompB, nodeDecompD] = [b, d].map((v) => primeDecompNode(v, true));
|
|
45
|
+
const nodeSumRewrittenDeveloped = new LogNode(mulFrac(power(nodeDecompB, a), power(nodeDecompD, c)));
|
|
46
|
+
const nodeSumRewrittenSimplified = new LogNode(nodeInside.simplify({ calculatePowers: true, forbidFactorize: true }));
|
|
47
|
+
return {
|
|
48
|
+
nodeSumRaw,
|
|
49
|
+
nodeSumRewritten,
|
|
50
|
+
nodeSumRewrittenDeveloped,
|
|
51
|
+
nodeSumRewrittenSimplified,
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const getInstruction = (identifiers) => {
|
|
55
|
+
const { nodeSumRaw } = getHydrated(identifiers);
|
|
56
|
+
return `Écrire le nombre suivant sous la forme $\\ln\\left(k\\right)$ :
|
|
57
|
+
|
|
58
|
+
$$
|
|
59
|
+
${nodeSumRaw.toTex()}
|
|
60
|
+
$$`;
|
|
61
|
+
};
|
|
62
|
+
const getAnswer = (identifiers) => {
|
|
63
|
+
const { nodeSumRewrittenSimplified } = getHydratedMini(identifiers);
|
|
64
|
+
return nodeSumRewrittenSimplified.toTex();
|
|
65
|
+
};
|
|
66
|
+
const getHint = (_identifiers) => {
|
|
67
|
+
return `Utilise les propriétés suivantes, pour $a$ et $b$ entiers positifs :
|
|
68
|
+
|
|
69
|
+
$$
|
|
70
|
+
b \\ln(a) = \\ln(a^b)
|
|
71
|
+
$$
|
|
72
|
+
|
|
73
|
+
$$
|
|
74
|
+
\\ln(a) + \\ln(b) = \\ln(ab)
|
|
75
|
+
$$
|
|
76
|
+
|
|
77
|
+
$$
|
|
78
|
+
\\ln(a) - \\ln(b) = \\ln(\\frac{a}{b})
|
|
79
|
+
$$
|
|
80
|
+
|
|
81
|
+
`;
|
|
82
|
+
};
|
|
83
|
+
const getCorrection = (identifiers) => {
|
|
84
|
+
const { pm } = identifiers;
|
|
85
|
+
const { nodeSumRaw, nodeSumRewritten, nodeSumRewrittenDeveloped, nodeSumRewrittenSimplified, } = getHydrated(identifiers);
|
|
86
|
+
return `
|
|
87
|
+
|
|
88
|
+
${alignTex([
|
|
89
|
+
["", nodeSumRaw.toTex()],
|
|
90
|
+
["=", nodeSumRewritten.toTex()],
|
|
91
|
+
...(pm === -1 ? [["=", nodeSumRewrittenDeveloped.toTex()]] : []),
|
|
92
|
+
["=", nodeSumRewrittenSimplified.toTex()],
|
|
93
|
+
])}
|
|
94
|
+
|
|
95
|
+
`;
|
|
96
|
+
};
|
|
97
|
+
const getPropositions = (n, { answer, ...identifiers }) => {
|
|
98
|
+
const propositions = [];
|
|
99
|
+
addValidProp(propositions, answer);
|
|
100
|
+
const { pm, a, b, c, d } = identifiers;
|
|
101
|
+
//student: ignores factors ln(b) + ln(d)
|
|
102
|
+
{
|
|
103
|
+
const identifiersWrong = { pm, a: 1, c: 1, b, d };
|
|
104
|
+
tryToAddWrongProp(propositions, getAnswer(identifiersWrong));
|
|
105
|
+
}
|
|
106
|
+
//student: ignores rhs
|
|
107
|
+
{
|
|
108
|
+
const identifiersWrong = { pm, a, b, c: 0, d: 1 };
|
|
109
|
+
tryToAddWrongProp(propositions, getAnswer(identifiersWrong));
|
|
110
|
+
}
|
|
111
|
+
//student: pm -> mp
|
|
112
|
+
{
|
|
113
|
+
const identifiersWrong = { pm: -pm, a, b, c, d };
|
|
114
|
+
tryToAddWrongProp(propositions, getAnswer(identifiersWrong));
|
|
115
|
+
}
|
|
116
|
+
propWhile(propositions, n, () => {
|
|
117
|
+
const identifiersWrong = createRandomIdentifiers();
|
|
118
|
+
tryToAddWrongProp(propositions, getAnswer(identifiersWrong));
|
|
119
|
+
});
|
|
120
|
+
return shuffle(propositions);
|
|
121
|
+
};
|
|
122
|
+
const getKeys = () => {
|
|
123
|
+
return ["lnBrackets"];
|
|
124
|
+
};
|
|
125
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
126
|
+
const nodeAns = parseAlgebraic(ans);
|
|
127
|
+
if (!isLogNode(nodeAns)) {
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
const nodeAnswer = parseAlgebraic(answer);
|
|
131
|
+
const [nodeChildAns, nodeChildAnswer] = [nodeAns, nodeAnswer].map((node) => node.child);
|
|
132
|
+
return (NodeComparator.isEqualViaSub(nodeChildAns, nodeChildAnswer) ||
|
|
133
|
+
NodeComparator.isEqualViaFrac(nodeChildAns, nodeChildAnswer));
|
|
134
|
+
};
|
|
135
|
+
const createRandomIdentifiers = () => {
|
|
136
|
+
const pm = coinFlip() ? +1 : -1;
|
|
137
|
+
const [a, b, c, d] = (() => {
|
|
138
|
+
if (pm === +1) {
|
|
139
|
+
const [b, d] = randomMany([2, 3, 5, 7], 2);
|
|
140
|
+
const a = randint(2, 5);
|
|
141
|
+
const c = randint(2, 5);
|
|
142
|
+
return [a, b, c, d];
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
const [p1, p2, p3] = randomMany([2, 3, 5, 7], 3);
|
|
146
|
+
const b = p1 * p2;
|
|
147
|
+
const d = p2 * p3;
|
|
148
|
+
const a = randint(2, 5);
|
|
149
|
+
const c = randint(2, 5);
|
|
150
|
+
return [a, b, c, d];
|
|
151
|
+
}
|
|
152
|
+
})();
|
|
153
|
+
const identifiers = { pm, a, b, c, d };
|
|
154
|
+
return identifiers;
|
|
155
|
+
};
|
|
156
|
+
const getLogLinearCombinationSimplifiying = () => {
|
|
157
|
+
const identifiers = createRandomIdentifiers();
|
|
158
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
159
|
+
};
|
|
160
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
161
|
+
const question = {
|
|
162
|
+
instruction: getInstruction(identifiers),
|
|
163
|
+
answer: getAnswer(identifiers),
|
|
164
|
+
keys: getKeys(identifiers),
|
|
165
|
+
answerFormat: "tex",
|
|
166
|
+
identifiers,
|
|
167
|
+
hint: getHint(identifiers),
|
|
168
|
+
correction: getCorrection(identifiers),
|
|
169
|
+
};
|
|
170
|
+
return question;
|
|
171
|
+
};
|
|
172
|
+
export const logLinearCombinationSimplifiying = {
|
|
173
|
+
id: "logLinearCombinationSimplifiying",
|
|
174
|
+
connector: "\\iff",
|
|
175
|
+
label: "Simplifier $a \\ln(b) + c \\ln(d)$",
|
|
176
|
+
isSingleStep: false,
|
|
177
|
+
generator: (nb) => getDistinctQuestions(getLogLinearCombinationSimplifiying, nb),
|
|
178
|
+
qcmTimer: 60,
|
|
179
|
+
freeTimer: 60,
|
|
180
|
+
getPropositions,
|
|
181
|
+
isAnswerValid,
|
|
182
|
+
subject: "Mathématiques",
|
|
183
|
+
getQuestionFromIdentifiers,
|
|
184
|
+
hasHintAndCorrection: true,
|
|
185
|
+
};
|
|
@@ -25,5 +25,5 @@ export * from "./dataRepresentations/index.js";
|
|
|
25
25
|
export * from "./tests/index.js";
|
|
26
26
|
export * from "./pcExosInMath.js";
|
|
27
27
|
export * from "./scratch/index.js";
|
|
28
|
-
export * from "./
|
|
28
|
+
export * from "./integration/index.js";
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|
|
@@ -25,4 +25,5 @@ export * from "./dataRepresentations/index.js";
|
|
|
25
25
|
export * from "./tests/index.js";
|
|
26
26
|
export * from "./pcExosInMath.js";
|
|
27
27
|
export * from "./scratch/index.js";
|
|
28
|
-
export * from "./
|
|
28
|
+
export * from "./integration/index.js";
|
|
29
|
+
// export * from "./_debug/index.js";
|
package/lib/exercises/math/integration/fromExpr/areaBetweenCrossingCurvesFixedPosFromExpr.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { NodeIdentifiers } from "../../../../tree/nodes/nodeConstructor.js";
|
|
3
|
+
type Identifiers = {
|
|
4
|
+
nodeIdsF: NodeIdentifiers;
|
|
5
|
+
nodeIdsG: NodeIdentifiers;
|
|
6
|
+
nodeIdsBounds: [NodeIdentifiers, NodeIdentifiers];
|
|
7
|
+
};
|
|
8
|
+
type Options = {
|
|
9
|
+
typeCrossingCurves: string;
|
|
10
|
+
typeSignBoundLow: string;
|
|
11
|
+
typeSignBoundHigh: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const areaBetweenCrossingCurvesFixedPosFromExpr: Exercise<Identifiers, Options>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=areaBetweenCrossingCurvesFixedPosFromExpr.d.ts.map
|
package/lib/exercises/math/integration/fromExpr/areaBetweenCrossingCurvesFixedPosFromExpr.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areaBetweenCrossingCurvesFixedPosFromExpr.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/integration/fromExpr/areaBetweenCrossingCurvesFixedPosFromExpr.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAmBT,MAAM,6BAA6B,CAAC;AAarC,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAc7C,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,aAAa,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC;CACnD,CAAC;AAojBF,KAAK,OAAO,GAAG;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAkDF,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAC9D,WAAW,EACX,OAAO,CAsBR,CAAC"}
|