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,233 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, tryToAddWrongProp, propWhile, GeneratorOptionTarget, GeneratorOptionType, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { SpacePoint, SpacePointConstructor, } from "../../../../math/geometry/spacePoint.js";
|
|
4
|
+
import { SpaceVector } from "../../../../math/geometry/spaceVector.js";
|
|
5
|
+
import { nodeBySubstitutingVar } from "../../../../math/utils/functions/functionComposition.js";
|
|
6
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
7
|
+
import { opposite } from "../../../../tree/nodes/functions/oppositeNode.js";
|
|
8
|
+
import { NodeConstructor, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
9
|
+
import { add } from "../../../../tree/nodes/operators/addNode.js";
|
|
10
|
+
import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
|
|
11
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
12
|
+
import { VariableNode } from "../../../../tree/nodes/variables/variableNode.js";
|
|
13
|
+
import { parseAlgebraic } from "../../../../tree/parsers/latexParser.js";
|
|
14
|
+
import { NodeComparator } from "../../../../tree/utilities/nodeComparator.js";
|
|
15
|
+
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
16
|
+
import { randomMany } from "../../../../utils/alea/random.js";
|
|
17
|
+
import { zip } from "../../../../utils/arrays/arrayZip.js";
|
|
18
|
+
import { permute } from "../../../../utils/arrays/permutations.js";
|
|
19
|
+
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
20
|
+
import { alignTex } from "../../../../utils/latex/alignTex.js";
|
|
21
|
+
const getHydrated = (identifiers) => {
|
|
22
|
+
const { spacePointIdsVecs, nodeIdsLinearCombination } = identifiers;
|
|
23
|
+
const [vecU, vecV] = zip(["u", "v"], spacePointIdsVecs).map(([name, pointIds]) => {
|
|
24
|
+
const spacePoint = SpacePointConstructor.fromIdentifiers(pointIds);
|
|
25
|
+
return new SpaceVector(name, spacePoint.x, spacePoint.y, spacePoint.z);
|
|
26
|
+
});
|
|
27
|
+
const nodeLinearCombination = NodeConstructor.fromIdentifiers(nodeIdsLinearCombination);
|
|
28
|
+
const vecLinearCombination = (() => {
|
|
29
|
+
const [nodeX, nodeY, nodeZ] = ["x", "y", "z"].map((axis) => nodeBySubstitutingVar(nodeBySubstitutingVar(nodeLinearCombination, vecU[axis], new VariableNode(vecU.toTex())), vecV[axis], new VariableNode(vecV.toTex())));
|
|
30
|
+
return new SpaceVector("w", nodeX, nodeY, nodeZ);
|
|
31
|
+
})();
|
|
32
|
+
const vecLinearCombinationSimplified = new SpaceVector(vecLinearCombination.name, vecLinearCombination.x.simplify(), vecLinearCombination.y.simplify(), vecLinearCombination.z.simplify());
|
|
33
|
+
return {
|
|
34
|
+
vecU,
|
|
35
|
+
vecV,
|
|
36
|
+
nodeLinearCombination,
|
|
37
|
+
vecLinearCombination,
|
|
38
|
+
vecLinearCombinationSimplified,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const getInstruction = (identifiers) => {
|
|
42
|
+
const { vecU, vecV, nodeLinearCombination } = getHydrated(identifiers);
|
|
43
|
+
return `Soient deux vecteurs $\\overrightarrow{u}$ et $\\overrightarrow{v}$ tels que :
|
|
44
|
+
|
|
45
|
+
$$
|
|
46
|
+
\\overrightarrow{u} = ${vecU.toCoordsTex()}
|
|
47
|
+
$$
|
|
48
|
+
|
|
49
|
+
$$
|
|
50
|
+
\\overrightarrow{v} = ${vecV.toCoordsTex()}
|
|
51
|
+
$$
|
|
52
|
+
|
|
53
|
+
Déterminer les coordonnées (en ligne) du vecteur :
|
|
54
|
+
|
|
55
|
+
$$
|
|
56
|
+
${nodeLinearCombination.toTex()}
|
|
57
|
+
$$
|
|
58
|
+
|
|
59
|
+
`;
|
|
60
|
+
};
|
|
61
|
+
const getAnswer = (identifiers) => {
|
|
62
|
+
const { vecLinearCombinationSimplified } = getHydrated(identifiers);
|
|
63
|
+
return vecLinearCombinationSimplified.toInlineCoordsTex();
|
|
64
|
+
};
|
|
65
|
+
const getHint = () => {
|
|
66
|
+
const nodeVarK = new VariableNode("k");
|
|
67
|
+
return `Soit $k$ un nombre réel et $\\overrightarrow{u}$ le vecteur de coordonnées :
|
|
68
|
+
|
|
69
|
+
$$
|
|
70
|
+
\\overrightarrow{u} = ${new SpaceVector("hintVector1", new VariableNode(`u_{x}`), new VariableNode(`u_{y}`), new VariableNode(`u_{z}`)).toCoordsTex()}
|
|
71
|
+
$$
|
|
72
|
+
|
|
73
|
+
alors
|
|
74
|
+
|
|
75
|
+
$$
|
|
76
|
+
k\\overrightarrow{u} = ${new SpaceVector("hintVector2", multiply(nodeVarK, new VariableNode(`u_{x}`)), multiply(nodeVarK, new VariableNode(`u_{y}`)), multiply(nodeVarK, new VariableNode(`u_{z}`))).toCoordsTex()}
|
|
77
|
+
$$
|
|
78
|
+
|
|
79
|
+
`;
|
|
80
|
+
};
|
|
81
|
+
const getCorrection = (identifiers) => {
|
|
82
|
+
const { vecU, vecV, nodeLinearCombination, vecLinearCombination, vecLinearCombinationSimplified, } = getHydrated(identifiers);
|
|
83
|
+
const texLinearCombinationPretty = `\\begin{pmatrix}${vecLinearCombination.x.toTex({ forceTimesSign: true, forceNoSimplification: true })} \\\\ ${vecLinearCombination.y.toTex({
|
|
84
|
+
forceTimesSign: true,
|
|
85
|
+
forceNoSimplification: true,
|
|
86
|
+
})} \\\\ ${vecLinearCombination.z.toTex({
|
|
87
|
+
forceTimesSign: true,
|
|
88
|
+
forceNoSimplification: true,
|
|
89
|
+
})} \\end{pmatrix}`;
|
|
90
|
+
return `${alignTex([
|
|
91
|
+
[
|
|
92
|
+
`${nodeLinearCombination.toTex()}`,
|
|
93
|
+
"=",
|
|
94
|
+
`${nodeBySubstitutingVar(nodeBySubstitutingVar(nodeLinearCombination, new VariableNode(vecU.toCoordsTex()), //forgive me father
|
|
95
|
+
new VariableNode(vecU.toTex())), new VariableNode(vecV.toCoordsTex()), //forgive me father
|
|
96
|
+
new VariableNode(vecV.toTex())).toTex()}`,
|
|
97
|
+
],
|
|
98
|
+
["", "=", texLinearCombinationPretty],
|
|
99
|
+
["", "=", vecLinearCombinationSimplified.toCoordsTex()],
|
|
100
|
+
])}
|
|
101
|
+
|
|
102
|
+
`;
|
|
103
|
+
};
|
|
104
|
+
const getPropositions = (n, { answer, ...identifiers }, optsIn) => {
|
|
105
|
+
const opts = optsIn ?? optsDefault;
|
|
106
|
+
const isAllowRationalFactors = opts.isAllowRationalFactors;
|
|
107
|
+
const propositions = [];
|
|
108
|
+
addValidProp(propositions, answer);
|
|
109
|
+
const { vecLinearCombinationSimplified } = getHydrated(identifiers);
|
|
110
|
+
const arrNodeAnswer = [
|
|
111
|
+
vecLinearCombinationSimplified.x,
|
|
112
|
+
vecLinearCombinationSimplified.y,
|
|
113
|
+
vecLinearCombinationSimplified.z,
|
|
114
|
+
];
|
|
115
|
+
permute(arrNodeAnswer).forEach((arrNodeAnswerWrong) => {
|
|
116
|
+
const [nodeX, nodeY, nodeZ] = arrNodeAnswerWrong;
|
|
117
|
+
const spacePointWrong = new SpacePoint("MWrong", nodeX, nodeY, nodeZ);
|
|
118
|
+
tryToAddWrongProp(propositions, spacePointWrong.toCoords());
|
|
119
|
+
});
|
|
120
|
+
propWhile(propositions, n, () => {
|
|
121
|
+
const identifiersWrong = createRandomIdentifiers(isAllowRationalFactors);
|
|
122
|
+
tryToAddWrongProp(propositions, getAnswer(identifiersWrong));
|
|
123
|
+
});
|
|
124
|
+
return shuffleProps(propositions, n);
|
|
125
|
+
};
|
|
126
|
+
const getKeys = () => {
|
|
127
|
+
return ["semicolon"];
|
|
128
|
+
};
|
|
129
|
+
const isAnswerValid = (ans, { answer, ...identifiers }) => {
|
|
130
|
+
const { vecLinearCombinationSimplified } = getHydrated(identifiers);
|
|
131
|
+
const arrNodeAnswer = [
|
|
132
|
+
vecLinearCombinationSimplified.x,
|
|
133
|
+
vecLinearCombinationSimplified.y,
|
|
134
|
+
vecLinearCombinationSimplified.z,
|
|
135
|
+
];
|
|
136
|
+
function matchGroups(regex, input) {
|
|
137
|
+
const match = regex.exec(input);
|
|
138
|
+
return match?.groups || undefined;
|
|
139
|
+
}
|
|
140
|
+
try {
|
|
141
|
+
const arrNodeAns = (() => {
|
|
142
|
+
const arrKey = [...Array(3).keys()]
|
|
143
|
+
.map((i) => i + 1)
|
|
144
|
+
.map((v) => `str${v}`);
|
|
145
|
+
//TODO: input is column of coords
|
|
146
|
+
// const strRegex = `^\\\\begin\\{pmatrix\\}\\(${arrKey
|
|
147
|
+
// .map((strKey) => `(?<${strKey}>.*(?!\\w$))`)
|
|
148
|
+
// .join("\\\\\\w")}\\\\end\\{pmatrix\\}\\)$`;
|
|
149
|
+
const strRegex = `^\\\\left\\(${arrKey
|
|
150
|
+
.map((strKey) => `(?<${strKey}>.*(?!;$))`)
|
|
151
|
+
.join(";")}\\\\right\\)$`;
|
|
152
|
+
const regex = new RegExp(strRegex);
|
|
153
|
+
const ansParts = matchGroups(regex, ans);
|
|
154
|
+
if (ansParts === undefined) {
|
|
155
|
+
throw new Error("Parsing error: ans is not a tuple");
|
|
156
|
+
}
|
|
157
|
+
const arrNode = Object.entries(ansParts).map(([_key, str]) => parseAlgebraic(str));
|
|
158
|
+
return arrNode;
|
|
159
|
+
})();
|
|
160
|
+
return zip(arrNodeAns, arrNodeAnswer).every(([nodeAns, nodeAnswer]) => NodeComparator.isEqualViaSub(nodeAns, nodeAnswer));
|
|
161
|
+
}
|
|
162
|
+
catch (err) {
|
|
163
|
+
return handleVEAError(err);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const createRandomIdentifiers = (isAllowRationalFactors) => {
|
|
167
|
+
const [nodeFactor1, nodeFactor2] = randomMany([
|
|
168
|
+
(-2).toTree(),
|
|
169
|
+
(-1).toTree(),
|
|
170
|
+
(2).toTree(),
|
|
171
|
+
(3).toTree(),
|
|
172
|
+
...(isAllowRationalFactors ? [opposite(frac(1, 2)), frac(1, 2)] : []),
|
|
173
|
+
], 2);
|
|
174
|
+
const funcRand1 = () => randint(-3, 4, coinFlip() ? [0] : []).toTree();
|
|
175
|
+
const funcRand2 = () => randint(-6, 7, coinFlip() ? [0] : []).toTree();
|
|
176
|
+
const funcRand3 = () => randint(-9, 10, coinFlip() ? [0] : []).toTree();
|
|
177
|
+
const [vecU, vecV] = zip(["u", "v"], [
|
|
178
|
+
[funcRand1, funcRand2, funcRand3],
|
|
179
|
+
[funcRand3, funcRand2, funcRand1],
|
|
180
|
+
]).map(([name, [funcRandX, funcRandY, funcRandZ]]) => new SpaceVector(name, funcRandX(), funcRandY(), funcRandZ()));
|
|
181
|
+
const nodeLinearCombination = add(multiply(nodeFactor1, new VariableNode(vecU.toTex())), multiply(nodeFactor2, new VariableNode(vecV.toTex())));
|
|
182
|
+
const identifiers = {
|
|
183
|
+
spacePointIdsVecs: [vecU, vecV].map((vec) => new SpacePoint(vec.name, vec.x, vec.y, vec.z).toIdentifiers()),
|
|
184
|
+
nodeIdsLinearCombination: nodeLinearCombination.toIdentifiers(),
|
|
185
|
+
};
|
|
186
|
+
return identifiers;
|
|
187
|
+
};
|
|
188
|
+
const getSpaceVectorLinearCombinationFromCoordsQuestion = (optsIn) => {
|
|
189
|
+
const opts = optsIn ?? optsDefault;
|
|
190
|
+
const isAllowRationalFactors = opts.isAllowRationalFactors;
|
|
191
|
+
const identifiers = createRandomIdentifiers(isAllowRationalFactors);
|
|
192
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
193
|
+
};
|
|
194
|
+
const getQuestionFromIdentifiers = (identifiers, _opts) => {
|
|
195
|
+
const question = {
|
|
196
|
+
answer: getAnswer(identifiers),
|
|
197
|
+
instruction: getInstruction(identifiers),
|
|
198
|
+
keys: getKeys(identifiers),
|
|
199
|
+
answerFormat: "tex",
|
|
200
|
+
identifiers,
|
|
201
|
+
hint: getHint(identifiers),
|
|
202
|
+
correction: getCorrection(identifiers),
|
|
203
|
+
};
|
|
204
|
+
return question;
|
|
205
|
+
};
|
|
206
|
+
const optsDefault = {
|
|
207
|
+
isAllowRationalFactors: false,
|
|
208
|
+
};
|
|
209
|
+
const options = [
|
|
210
|
+
{
|
|
211
|
+
id: "isAllowRationalFactors",
|
|
212
|
+
label: "Permettre des facteurs rationnels",
|
|
213
|
+
target: GeneratorOptionTarget.generation,
|
|
214
|
+
type: GeneratorOptionType.checkbox,
|
|
215
|
+
defaultValue: optsDefault.isAllowRationalFactors,
|
|
216
|
+
},
|
|
217
|
+
];
|
|
218
|
+
export const spaceVectorLinearCombinationFromCoords = {
|
|
219
|
+
id: "spaceVectorLinearCombinationFromCoords",
|
|
220
|
+
label: "Les coordonnées de deux vecteurs $\\overrightarrow{u}$ et $\\overrightarrow{v}$ étant données, calculer les coordonnes de $a\\overrightarrow{u}+b\\overrightarrow{v}$",
|
|
221
|
+
isSingleStep: true,
|
|
222
|
+
generator: (nb, opts) => getDistinctQuestions(() => getSpaceVectorLinearCombinationFromCoordsQuestion(opts), nb),
|
|
223
|
+
options,
|
|
224
|
+
qcmTimer: 60,
|
|
225
|
+
freeTimer: 60,
|
|
226
|
+
getPropositions,
|
|
227
|
+
isAnswerValid,
|
|
228
|
+
subject: "Mathématiques",
|
|
229
|
+
getQuestionFromIdentifiers,
|
|
230
|
+
getHint,
|
|
231
|
+
getCorrection,
|
|
232
|
+
hasHintAndCorrection: true,
|
|
233
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { SpacePointIdentifiers } from "../../../../math/geometry/spacePoint.js";
|
|
3
|
+
type Identifiers = {
|
|
4
|
+
spacePointIds: SpacePointIdentifiers[];
|
|
5
|
+
};
|
|
6
|
+
type Options = {
|
|
7
|
+
isAllowRationalCoeffs: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const checkSpacePointCollinearity: Exercise<Identifiers, Options>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=checkAlignedSpacePointsFromCoords.d.ts.map
|
package/lib/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromCoords.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkAlignedSpacePointsFromCoords.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAGL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAiD3C,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAuNF,KAAK,OAAO,GAAG;IACb,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAcF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAmBtE,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, tryToAddWrongProp, GeneratorOptionTarget, GeneratorOptionType, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { SpacePoint, SpacePointConstructor, } from "../../../../math/geometry/spacePoint.js";
|
|
4
|
+
import { SpaceVector } from "../../../../math/geometry/spaceVector.js";
|
|
5
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
6
|
+
import { opposite } from "../../../../tree/nodes/functions/oppositeNode.js";
|
|
7
|
+
import { add } from "../../../../tree/nodes/operators/addNode.js";
|
|
8
|
+
import { frac } from "../../../../tree/nodes/operators/fractionNode.js";
|
|
9
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
10
|
+
import { substract } from "../../../../tree/nodes/operators/substractNode.js";
|
|
11
|
+
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
12
|
+
import { probaLawFlip } from "../../../../utils/alea/probaLawFlip.js";
|
|
13
|
+
import { random, randomMany } from "../../../../utils/alea/random.js";
|
|
14
|
+
import { shuffle } from "../../../../utils/alea/shuffle.js";
|
|
15
|
+
import { zip } from "../../../../utils/arrays/arrayZip.js";
|
|
16
|
+
import { alignTex } from "../../../../utils/latex/alignTex.js";
|
|
17
|
+
const spaceVectorFromPointsRaw = (spacePointStart, spacePointEnd) => {
|
|
18
|
+
return new SpaceVector(`${spacePointStart.name}${spacePointEnd.name}`, substract(spacePointEnd.x, spacePointStart.x), substract(spacePointEnd.y, spacePointStart.y), substract(spacePointEnd.z, spacePointStart.z));
|
|
19
|
+
};
|
|
20
|
+
const vectorialProductRaw = (v1, v2) => {
|
|
21
|
+
return new SpaceVector(`vectorialProductRaw`, substract(multiply(v1.y, v2.z), multiply(v1.z, v2.y)), substract(multiply(v1.z, v2.x), multiply(v1.x, v2.z)), substract(multiply(v1.x, v2.y), multiply(v1.y, v2.x)));
|
|
22
|
+
};
|
|
23
|
+
const simplifySpaceVector = (vec, opts = {}) => {
|
|
24
|
+
return new SpaceVector(vec.name, vec.x.simplify(opts), vec.y.simplify(opts), vec.z.simplify(opts));
|
|
25
|
+
};
|
|
26
|
+
const getHydrated = (identifiers) => {
|
|
27
|
+
const { spacePointIds } = identifiers;
|
|
28
|
+
const [A, B, C] = spacePointIds.map((pointIds) => SpacePointConstructor.fromIdentifiers(pointIds));
|
|
29
|
+
const vecAB = spaceVectorFromPointsRaw(A, B);
|
|
30
|
+
const vecABSimplified = simplifySpaceVector(vecAB);
|
|
31
|
+
const vecAC = spaceVectorFromPointsRaw(A, C);
|
|
32
|
+
const vecACSimplified = simplifySpaceVector(vecAC);
|
|
33
|
+
const vecABVProdAC = vectorialProductRaw(vecABSimplified, vecACSimplified);
|
|
34
|
+
const vecABVProdACSimplified = simplifySpaceVector(vecABVProdAC);
|
|
35
|
+
const isCollinear = vecABVProdACSimplified.equals(new SpaceVector("0", (0).toTree(), (0).toTree(), (0).toTree()));
|
|
36
|
+
return {
|
|
37
|
+
A,
|
|
38
|
+
B,
|
|
39
|
+
C,
|
|
40
|
+
vecAB,
|
|
41
|
+
vecABSimplified,
|
|
42
|
+
vecAC,
|
|
43
|
+
vecACSimplified,
|
|
44
|
+
vecABVProdAC,
|
|
45
|
+
vecABVProdACSimplified,
|
|
46
|
+
isCollinear,
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
const getInstruction = (identifiers) => {
|
|
50
|
+
const { A, B, C } = getHydrated(identifiers);
|
|
51
|
+
return `Soient trois points $A$, $B$ et $C$ tels que :
|
|
52
|
+
|
|
53
|
+
${alignTex([A, B, C].map((spacePoint) => [spacePoint.name, "=", spacePoint.toCoords()]))}
|
|
54
|
+
|
|
55
|
+
Les points $A$, $B$ et $C$ sont-ils alignés ?`;
|
|
56
|
+
};
|
|
57
|
+
const getAnswer = (identifiers) => {
|
|
58
|
+
const { isCollinear } = getHydrated(identifiers);
|
|
59
|
+
return isCollinear ? "Oui" : "Non";
|
|
60
|
+
};
|
|
61
|
+
const getHint = () => {
|
|
62
|
+
return `$A$, $B$ et $C$ sont alignés si et seulement si $\\overrightarrow{AB}$ et $\\overrightarrow{AC}$ sont colinéaires.
|
|
63
|
+
Pour montrer que $\\overrightarrow{AB}$ et $\\overrightarrow{AC}$ sont colinéaires, on peut, entre autres :
|
|
64
|
+
- montrer par le calcul que $\\overrightarrow{AB} \\wedge \\overrightarrow{AC} = \\overrightarrow{0}$
|
|
65
|
+
- trouver un réel $k$ tel que $\\overrightarrow{AB} = k \\overrightarrow{AC}$`;
|
|
66
|
+
};
|
|
67
|
+
const getCorrection = (identifiers) => {
|
|
68
|
+
const { vecAB, vecAC, vecABSimplified, vecACSimplified, vecABVProdAC, vecABVProdACSimplified, isCollinear, } = getHydrated(identifiers);
|
|
69
|
+
return `On calcule :
|
|
70
|
+
|
|
71
|
+
${alignTex([
|
|
72
|
+
[vecAB, vecABSimplified],
|
|
73
|
+
[vecAC, vecACSimplified],
|
|
74
|
+
].map(([vec, vecSimplified]) => [
|
|
75
|
+
vec.toTex(),
|
|
76
|
+
"=",
|
|
77
|
+
vec.toCoordsTex(),
|
|
78
|
+
"=",
|
|
79
|
+
vecSimplified.toCoordsTex(),
|
|
80
|
+
]))}
|
|
81
|
+
|
|
82
|
+
${alignTex([
|
|
83
|
+
[
|
|
84
|
+
"\\overrightarrow{AB} \\wedge \\overrightarrow{AC}",
|
|
85
|
+
"=",
|
|
86
|
+
vecABVProdAC.toCoordsTex(),
|
|
87
|
+
],
|
|
88
|
+
["", "=", vecABVProdACSimplified.toCoordsTex()],
|
|
89
|
+
])}
|
|
90
|
+
|
|
91
|
+
${isCollinear
|
|
92
|
+
? "Les points $A$,$B$ et $C$ sont donc alignés."
|
|
93
|
+
: "Les points $A$,$B$ et $C$ ne sont donc pas alignés."}`;
|
|
94
|
+
};
|
|
95
|
+
const getPropositions = (n, { answer }) => {
|
|
96
|
+
const propositions = [];
|
|
97
|
+
addValidProp(propositions, answer, "raw");
|
|
98
|
+
tryToAddWrongProp(propositions, "Oui", "raw");
|
|
99
|
+
tryToAddWrongProp(propositions, "Non", "raw");
|
|
100
|
+
tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
|
|
101
|
+
return shuffleProps(propositions, n);
|
|
102
|
+
};
|
|
103
|
+
const createRandomIdentifiers = (isAllowRationalCoeffs) => {
|
|
104
|
+
const funcRandCoeff = () => isAllowRationalCoeffs
|
|
105
|
+
? frac(randint(-7, 8), probaLawFlip([
|
|
106
|
+
[1, 0.6],
|
|
107
|
+
[2, 0.3],
|
|
108
|
+
[3, 0.1],
|
|
109
|
+
])).simplify()
|
|
110
|
+
: randint(-7, 8).toTree();
|
|
111
|
+
const A = new SpacePoint("A", funcRandCoeff(), funcRandCoeff(), funcRandCoeff());
|
|
112
|
+
const [nodeFactor1, nodeFactor2] = randomMany([
|
|
113
|
+
(-2).toTree(),
|
|
114
|
+
(-1).toTree(),
|
|
115
|
+
(2).toTree(),
|
|
116
|
+
(3).toTree(),
|
|
117
|
+
...(isAllowRationalCoeffs ? [opposite(frac(1, 2)), frac(1, 2)] : []),
|
|
118
|
+
], 2);
|
|
119
|
+
const funcRand1 = () => randint(-3, 4, coinFlip() ? [0] : []).toTree();
|
|
120
|
+
const funcRand2 = () => randint(-6, 7, coinFlip() ? [0] : []).toTree();
|
|
121
|
+
const funcRand3 = () => randint(-9, 10, coinFlip() ? [0] : []).toTree();
|
|
122
|
+
const [vecU] = zip(["u"], [shuffle([funcRand1, funcRand2, funcRand3])]).map(([name, [funcRandX, funcRandY, funcRandZ]]) => new SpaceVector(name, funcRandX(), funcRandY(), funcRandZ()));
|
|
123
|
+
const [P1, P2] = zip([nodeFactor1, nodeFactor2], [vecU, vecU]).map(([nodeFactor, vec]) => vec.times(nodeFactor).getEndPoint(A));
|
|
124
|
+
const funcOffset1 = () => randint(-3, 4, coinFlip() ? [0] : []).toTree();
|
|
125
|
+
const funcOffset2 = () => randint(-6, 7, coinFlip() ? [0] : []).toTree();
|
|
126
|
+
const funcOffset3 = () => randint(-9, 10, coinFlip() ? [0] : []).toTree();
|
|
127
|
+
const funcOffset = random([funcOffset1, funcOffset2, funcOffset3]);
|
|
128
|
+
const isCollinear = coinFlip();
|
|
129
|
+
const [B, C] = zip(["B", "C"], zip(shuffle([P1, P2]), shuffle([!isCollinear, false]))).map(([name, [spacePointSrc, isBroken]]) => {
|
|
130
|
+
const [funcOffsetX, funcOffsetY, funcOffsetZ] = isBroken
|
|
131
|
+
? shuffle([
|
|
132
|
+
(node) => add(node, funcOffset()).simplify(),
|
|
133
|
+
(node) => node,
|
|
134
|
+
(node) => node,
|
|
135
|
+
])
|
|
136
|
+
: [
|
|
137
|
+
(node) => node,
|
|
138
|
+
(node) => node,
|
|
139
|
+
(node) => node,
|
|
140
|
+
];
|
|
141
|
+
return new SpacePoint(name, funcOffsetX(spacePointSrc.x), funcOffsetY(spacePointSrc.y), funcOffsetZ(spacePointSrc.z));
|
|
142
|
+
});
|
|
143
|
+
const identifiers = {
|
|
144
|
+
spacePointIds: [A, B, C].map((spacePoint) => spacePoint.toIdentifiers()),
|
|
145
|
+
};
|
|
146
|
+
return identifiers;
|
|
147
|
+
};
|
|
148
|
+
const getCheckSpacePointCollinearityQuestion = (optsIn) => {
|
|
149
|
+
const opts = optsIn ?? optsDefault;
|
|
150
|
+
const isAllowRationalCoeffs = opts.isAllowRationalCoeffs;
|
|
151
|
+
const identifiers = createRandomIdentifiers(isAllowRationalCoeffs);
|
|
152
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
153
|
+
};
|
|
154
|
+
const getQuestionFromIdentifiers = (identifiers, _opts) => {
|
|
155
|
+
const question = {
|
|
156
|
+
answer: getAnswer(identifiers),
|
|
157
|
+
instruction: getInstruction(identifiers),
|
|
158
|
+
answerFormat: "tex",
|
|
159
|
+
identifiers,
|
|
160
|
+
hint: getHint(identifiers),
|
|
161
|
+
correction: getCorrection(identifiers),
|
|
162
|
+
};
|
|
163
|
+
return question;
|
|
164
|
+
};
|
|
165
|
+
const optsDefault = {
|
|
166
|
+
isAllowRationalCoeffs: false,
|
|
167
|
+
};
|
|
168
|
+
const options = [
|
|
169
|
+
{
|
|
170
|
+
id: "isAllowRationalCoeffs",
|
|
171
|
+
label: "Permettre des coefficients rationnels",
|
|
172
|
+
target: GeneratorOptionTarget.generation,
|
|
173
|
+
type: GeneratorOptionType.checkbox,
|
|
174
|
+
defaultValue: optsDefault.isAllowRationalCoeffs,
|
|
175
|
+
},
|
|
176
|
+
];
|
|
177
|
+
export const checkSpacePointCollinearity = {
|
|
178
|
+
id: "checkSpacePointCollinearity",
|
|
179
|
+
label: "Déterminer si $3$ points de coordonnées données sont alignés",
|
|
180
|
+
isSingleStep: true,
|
|
181
|
+
generator: (nb, opts) => getDistinctQuestions(() => getCheckSpacePointCollinearityQuestion(opts), nb),
|
|
182
|
+
options,
|
|
183
|
+
qcmTimer: 60,
|
|
184
|
+
freeTimer: 60,
|
|
185
|
+
getPropositions,
|
|
186
|
+
subject: "Mathématiques",
|
|
187
|
+
getQuestionFromIdentifiers,
|
|
188
|
+
getHint,
|
|
189
|
+
getCorrection,
|
|
190
|
+
hasHintAndCorrection: true,
|
|
191
|
+
answerType: "QCU",
|
|
192
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { SpacePointIdentifiers } from "../../../../math/geometry/spacePoint.js";
|
|
3
|
+
import { NodeIdentifiers } from "../../../../tree/nodes/nodeConstructor.js";
|
|
4
|
+
/**
|
|
5
|
+
END CUBE STUFF
|
|
6
|
+
*/
|
|
7
|
+
type Identifiers = {
|
|
8
|
+
spacePointIdsCubeOrigin: SpacePointIdentifiers;
|
|
9
|
+
spacePointIdsCubeVecsEndPoint: SpacePointIdentifiers[];
|
|
10
|
+
spacePointIdsWrtBaseVecs: SpacePointIdentifiers[];
|
|
11
|
+
nodeIdsVecEquation: NodeIdentifiers[];
|
|
12
|
+
};
|
|
13
|
+
export declare const checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints: Exercise<Identifiers>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/collinearity/checkAlignedSpacePointsFromVecPathsFromCubeOuterPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAaT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAGL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAO3C,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAkS7C;;EAEE;AAEF,KAAK,WAAW,GAAG;IACjB,uBAAuB,EAAE,qBAAqB,CAAC;IAC/C,6BAA6B,EAAE,qBAAqB,EAAE,CAAC;IACvD,wBAAwB,EAAE,qBAAqB,EAAE,CAAC;IAClD,kBAAkB,EAAE,eAAe,EAAE,CAAC;CACvC,CAAC;AAofF,eAAO,MAAM,sDAAsD,EAAE,QAAQ,CAAC,WAAW,CAwBtF,CAAC"}
|