math-exercises 3.0.156 → 3.0.158
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/exercise.d.ts +7 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.d.ts +14 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.js +145 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts +16 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.js +444 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts +15 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.js +292 -0
- package/lib/exercises/math/calculLitteral/equation/exp/index.d.ts +4 -0
- package/lib/exercises/math/calculLitteral/equation/exp/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/index.js +3 -0
- package/lib/exercises/math/calculLitteral/equation/factorizeEquation.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/equation/factorizeEquation.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/factorizeEquation.js +148 -31
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +124 -44
- package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts +18 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.js +437 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/index.d.ts +2 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/index.js +1 -0
- package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/halfPieChartCommenting.js +4 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.js +29 -0
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.js +35 -2
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.js +19 -0
- package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts +10 -0
- package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.js +282 -0
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.js +30 -2
- package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/productDerivative.js +68 -1
- package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/quotientDerivative.js +40 -4
- package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.js +30 -3
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.d.ts +12 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.js +127 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.d.ts +13 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.js +161 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.d.ts +11 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.js +116 -0
- package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.d.ts +8 -0
- package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.js +142 -0
- package/lib/exercises/math/derivation/derivativeNumber/index.d.ts +4 -0
- package/lib/exercises/math/derivation/derivativeNumber/index.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/index.js +4 -0
- package/lib/exercises/math/derivation/index.d.ts +1 -1
- package/lib/exercises/math/derivation/index.js +1 -1
- package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/drawAffineFromPointAndLeadingCoeff.js +5 -4
- package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts +13 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.js +278 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts +11 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.js +211 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpN.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpN.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpN.js +142 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.d.ts +5 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.js +4 -0
- package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.d.ts +14 -0
- package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.js +337 -0
- package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts +11 -0
- package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.js +234 -0
- package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.js +190 -0
- package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.js +190 -0
- package/lib/exercises/math/functions/exponential/definition/index.d.ts +5 -0
- package/lib/exercises/math/functions/exponential/definition/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/index.js +4 -0
- package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts +13 -0
- package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.js +375 -0
- package/lib/exercises/math/functions/linear/linearFromExercise.d.ts.map +1 -1
- package/lib/exercises/math/functions/linear/linearFromExercise.js +4 -3
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.js +30 -3
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.js +35 -1
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.js +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.js +23 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +29 -0
- package/lib/exercises/math/functions/variations/exp/index.d.ts +3 -0
- package/lib/exercises/math/functions/variations/exp/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/exp/index.js +2 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts +9 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.js +101 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts +11 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.js +192 -0
- package/lib/exercises/math/geometry/euclidian/pinPointFromAxialOrCentralSymmetry.js +2 -2
- package/lib/exercises/math/geometry/euclidian/pinSegmentFromRotation.js +1 -1
- package/lib/exercises/math/geometry/euclidian/recognizeHomothetyCenter.d.ts.map +1 -1
- package/lib/exercises/math/geometry/euclidian/recognizeHomothetyCenter.js +4 -5
- package/lib/exercises/math/geometry/euclidianConstructions/placeHomothetyCenter.js +4 -4
- package/lib/exercises/math/geometry/perimeters/circleCircumference.d.ts.map +1 -1
- package/lib/exercises/math/geometry/perimeters/circleCircumference.js +5 -3
- package/lib/exercises/math/geometry/thales/thales.js +1 -1
- package/lib/exercises/math/geometry/thales/thalesCalcul.js +1 -1
- package/lib/exercises/math/geometry/vectors/colinearity/determinant.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/angleFromScalarProduct.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/findCoordinatesToOrthogonalize.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/findCoordinatesToOrthogonalize.js +33 -7
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +38 -1
- package/lib/exercises/math/geometry/volumes/parallelepipedVolume.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/parallelepipedVolume.js +18 -5
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.js +45 -21
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +33 -12
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.d.ts.map +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +38 -15
- package/lib/exercises/math/percent/findTVA.d.ts.map +1 -1
- package/lib/exercises/math/percent/findTVA.js +17 -11
- package/lib/exercises/math/percent/populationEffectifFromSubPopulation.js +1 -1
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/index.js +1 -1
- package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableSituations.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableSituations.js +114 -20
- package/lib/exercises/math/probaStat/basicProbas/pickEquiprobableTo.js +2 -2
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts +4 -1
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/conditionalProbability.js +38 -5
- package/lib/exercises/math/probaStat/independancy/independancy.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy/independancy.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/independancy.js +114 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCap.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCap.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCap.js +101 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCup.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCup.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCup.js +118 -0
- package/lib/exercises/math/probaStat/independancy/index.d.ts +5 -0
- package/lib/exercises/math/probaStat/independancy/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/index.js +4 -0
- package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.d.ts +10 -0
- package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.js +106 -0
- package/lib/exercises/math/probaStat/index.d.ts +1 -1
- package/lib/exercises/math/probaStat/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/index.js +1 -1
- package/lib/exercises/math/probaStat/randomVariable/randomVariableStandardDeviation.js +1 -1
- package/lib/exercises/math/probaStat/stats1var/etendueTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/etendueTable.js +5 -1
- package/lib/exercises/math/probaStat/stats1var/medianWithList.js +1 -1
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/medianWithTable.js +19 -5
- package/lib/exercises/math/probaStat/stats1var/plausibilityOfAverage.js +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.js +41 -29
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.js +10 -3
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.js +9 -2
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.js +25 -10
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.js +118 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +55 -6
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +42 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts +4 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +57 -7
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +24 -2
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +31 -8
- package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -1
- package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/index.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +11 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstRankOne.js +5 -5
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +3 -1
- package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindReason.js +41 -2
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +28 -2
- package/lib/exercises/math/sequences/sequenceEvaluation.d.ts.map +1 -1
- package/lib/exercises/math/sequences/sequenceEvaluation.js +22 -2
- package/lib/exercises/math/spaceGeometry/solids/recognizeSolidFromSolidPattern.js +1 -1
- package/lib/exercises/math/spaceGeometry/sphere/index.d.ts +2 -0
- package/lib/exercises/math/spaceGeometry/sphere/index.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/sphere/index.js +3 -1
- package/lib/exercises/math/spaceGeometry/sphere/pinPointLatLon.2d.d.ts +12 -0
- package/lib/exercises/math/spaceGeometry/sphere/pinPointLatLon.2d.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sphere/pinPointLatLon.2d.js +205 -0
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.d.ts +13 -0
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.js +215 -0
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.3d.d.ts +14 -0
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.3d.d.ts.map +1 -0
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.3d.js +390 -0
- package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.d.ts +9 -0
- package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.js +107 -0
- package/lib/exercises/math/trigonometry/circle/associatePoint.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/associatePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/associatePoint.js +86 -0
- package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.js +205 -0
- package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts +7 -0
- package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.js +121 -0
- package/lib/exercises/math/trigonometry/circle/index.d.ts +7 -0
- package/lib/exercises/math/trigonometry/circle/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/index.js +7 -0
- package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.js +100 -0
- package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts +8 -0
- package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.js +97 -0
- package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/remarkableValues.js +112 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts +7 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationCos.js +92 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts +7 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationSin.js +104 -0
- package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.d.ts +7 -0
- package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.js +83 -0
- package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.d.ts +8 -0
- package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.js +111 -0
- package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.d.ts +8 -0
- package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.js +101 -0
- package/lib/exercises/math/trigonometry/functions/index.d.ts +6 -0
- package/lib/exercises/math/trigonometry/functions/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/index.js +6 -0
- package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.d.ts +9 -0
- package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.js +151 -0
- package/lib/exercises/math/trigonometry/index.d.ts +3 -14
- package/lib/exercises/math/trigonometry/index.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/index.js +3 -14
- package/lib/exercises/math/trigonometry/triangle/index.d.ts +7 -0
- package/lib/exercises/math/trigonometry/triangle/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/index.js +6 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometry.d.ts +10 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometry.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometry.js +207 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.d.ts +10 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.js +174 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.d.ts +11 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.js +224 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.d.ts +13 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.js +189 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.d.ts +13 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.js +290 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.d.ts +18 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.js +386 -0
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -1
- package/lib/exercises/pc/mathExosInPC.d.ts +2 -2
- package/lib/exercises/pc/mathExosInPC.d.ts.map +1 -1
- package/lib/exercises/pc/mathExosInPC.js +2 -2
- package/lib/exercises/vea/setVEA.d.ts.map +1 -1
- package/lib/exercises/vea/setVEA.js +4 -0
- package/lib/index.d.ts +87 -29
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/segment.d.ts +1 -1
- package/lib/math/geometry/vector.d.ts +2 -1
- package/lib/math/geometry/vector.d.ts.map +1 -1
- package/lib/math/geometry/vector.js +1 -1
- package/lib/math/numbers/reals/real.d.ts.map +1 -1
- package/lib/math/numbers/reals/real.js +2 -0
- package/lib/playground.d.ts.map +1 -1
- package/lib/playground.js +3 -1
- package/lib/tree/nodes/algebraicNode.d.ts +1 -0
- package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sqrtNode.d.ts +2 -1
- package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sqrtNode.js +17 -6
- package/lib/tree/nodes/operators/multiplyNode.js +1 -1
- package/lib/utils/arrays/dichoFilter.d.ts +2 -0
- package/lib/utils/arrays/dichoFilter.d.ts.map +1 -0
- package/lib/utils/arrays/dichoFilter.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { numberVEA } from "../../../../exercises/vea/numberVEA.js";
|
|
4
|
+
import { randfloat } from "../../../../math/utils/random/randfloat.js";
|
|
5
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
6
|
+
import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
7
|
+
import { add } from "../../../../tree/nodes/operators/addNode.js";
|
|
8
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
9
|
+
import { substract } from "../../../../tree/nodes/operators/substractNode.js";
|
|
10
|
+
import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
11
|
+
import { alignTex } from "../../../../utils/latex/alignTex.js";
|
|
12
|
+
const getPropositions = (n, { answer, ...identifiers }) => {
|
|
13
|
+
const propositions = [];
|
|
14
|
+
const { pAIds, pBIds } = identifiers;
|
|
15
|
+
const pA = reifyAlgebraic(pAIds);
|
|
16
|
+
const pB = reifyAlgebraic(pBIds);
|
|
17
|
+
addValidProp(propositions, answer);
|
|
18
|
+
tryToAddWrongProp(propositions, multiply(pA, pB).simplify().toTex());
|
|
19
|
+
propWhile(propositions, n, () => {
|
|
20
|
+
tryToAddWrongProp(propositions, randfloat(0, 1, randint(1, 3)).frenchify());
|
|
21
|
+
});
|
|
22
|
+
return shuffleProps(propositions, n);
|
|
23
|
+
};
|
|
24
|
+
const getAnswer = (identifiers) => {
|
|
25
|
+
const { pAIds, pBIds } = identifiers;
|
|
26
|
+
const pA = reifyAlgebraic(pAIds);
|
|
27
|
+
const pB = reifyAlgebraic(pBIds);
|
|
28
|
+
return substract(add(pA, pB), multiply(pA, pB)).simplify().toTex();
|
|
29
|
+
};
|
|
30
|
+
const getInstruction = (identifiers) => {
|
|
31
|
+
const { pAIds, pBIds } = identifiers;
|
|
32
|
+
const pA = reifyAlgebraic(pAIds);
|
|
33
|
+
const pB = reifyAlgebraic(pBIds);
|
|
34
|
+
return `On considère deux événements indépendants $A$ et $B$, tels que $P(A) = ${pA.toTex()}$ et $P(B) = ${pB.toTex()}$.
|
|
35
|
+
|
|
36
|
+
Déterminer $P(A\\cup B)$.`;
|
|
37
|
+
};
|
|
38
|
+
const getHint = () => {
|
|
39
|
+
return `Deux événements $A$ et $B$ sont indépendants si et seulement si $P(A)\\times P(B) = P(A\\cap B)$.
|
|
40
|
+
|
|
41
|
+
D'autre part, on rappelle la formule de l'union :
|
|
42
|
+
|
|
43
|
+
$$
|
|
44
|
+
P(A \\cup B) = P(A) + P(B) - P(A \\cap B)
|
|
45
|
+
$$`;
|
|
46
|
+
};
|
|
47
|
+
const getCorrection = (identifiers) => {
|
|
48
|
+
const { pAIds, pBIds } = identifiers;
|
|
49
|
+
const pA = reifyAlgebraic(pAIds);
|
|
50
|
+
const pB = reifyAlgebraic(pBIds);
|
|
51
|
+
const pAB = multiply(pA, pB);
|
|
52
|
+
const pABSimp = pAB.simplify();
|
|
53
|
+
return `Puisque $A$ et $B$ sont indépendants, alors on a :
|
|
54
|
+
|
|
55
|
+
${alignTex([
|
|
56
|
+
["P(A\\cap B)", "=", "P(A)\\times P(B)"],
|
|
57
|
+
["", "=", pAB.toTex()],
|
|
58
|
+
["", "=", pABSimp.toTex()],
|
|
59
|
+
])}
|
|
60
|
+
|
|
61
|
+
On utilise ensuite la formule de l'union :
|
|
62
|
+
|
|
63
|
+
${alignTex([
|
|
64
|
+
["P(A \\cup B)", "=", "P(A) + P(B) - P(A \\cap B)"],
|
|
65
|
+
["", "=", substract(add(pA, pB), pABSimp).toTex()],
|
|
66
|
+
["", "=", substract(add(pA, pB), pABSimp).simplify().toTex()],
|
|
67
|
+
])}
|
|
68
|
+
`;
|
|
69
|
+
};
|
|
70
|
+
const getKeys = () => {
|
|
71
|
+
return [];
|
|
72
|
+
};
|
|
73
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
74
|
+
try {
|
|
75
|
+
return numberVEA(ans, answer);
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
return handleVEAError(err);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const getIndependancyFindCupQuestion = () => {
|
|
82
|
+
const pA = randfloat(0, 1, randint(1, 3));
|
|
83
|
+
const pB = randfloat(0, 1, randint(1, 3));
|
|
84
|
+
const identifiers = {
|
|
85
|
+
pAIds: pA.toTree().toIdentifiers(),
|
|
86
|
+
pBIds: pB.toTree().toIdentifiers(),
|
|
87
|
+
};
|
|
88
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
89
|
+
};
|
|
90
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
91
|
+
return {
|
|
92
|
+
answer: getAnswer(identifiers),
|
|
93
|
+
instruction: getInstruction(identifiers),
|
|
94
|
+
keys: getKeys(identifiers),
|
|
95
|
+
answerFormat: "tex",
|
|
96
|
+
identifiers,
|
|
97
|
+
hint: getHint(identifiers),
|
|
98
|
+
correction: getCorrection(identifiers),
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export const independancyFindCup = {
|
|
102
|
+
id: "independancyFindCup",
|
|
103
|
+
connector: "=",
|
|
104
|
+
label: "Calculer l'union de deux événements indépendants",
|
|
105
|
+
isSingleStep: true,
|
|
106
|
+
generator: (nb, opts) => getDistinctQuestions(() => getIndependancyFindCupQuestion(opts), nb),
|
|
107
|
+
qcmTimer: 60,
|
|
108
|
+
freeTimer: 60,
|
|
109
|
+
getPropositions,
|
|
110
|
+
isAnswerValid,
|
|
111
|
+
subject: "Mathématiques",
|
|
112
|
+
getInstruction,
|
|
113
|
+
getHint,
|
|
114
|
+
getCorrection,
|
|
115
|
+
getAnswer,
|
|
116
|
+
getQuestionFromIdentifiers,
|
|
117
|
+
hasHintAndCorrection: true,
|
|
118
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/independancy/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Exercise } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { NodeIdentifiers } from "../../../../tree/nodes/nodeConstructor.js";
|
|
3
|
+
type Identifiers = {
|
|
4
|
+
pAIds: NodeIdentifiers;
|
|
5
|
+
pBIds: NodeIdentifiers;
|
|
6
|
+
pABIds: NodeIdentifiers;
|
|
7
|
+
};
|
|
8
|
+
export declare const isIndependantFromDefinition: Exercise<Identifiers>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=isIndependantFromDefinition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isIndependantFromDefinition.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/independancy/isIndependantFromDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAYT,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AA8FF,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,WAAW,CAqB7D,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { randfloat } from "../../../../math/utils/random/randfloat.js";
|
|
4
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
5
|
+
import { round } from "../../../../math/utils/round.js";
|
|
6
|
+
import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
7
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
8
|
+
import { substract } from "../../../../tree/nodes/operators/substractNode.js";
|
|
9
|
+
import { coinFlip } from "../../../../utils/alea/coinFlip.js";
|
|
10
|
+
const getPropositions = (n, { answer }) => {
|
|
11
|
+
const propositions = [];
|
|
12
|
+
addValidProp(propositions, answer);
|
|
13
|
+
tryToAddWrongProp(propositions, "Oui", "raw");
|
|
14
|
+
tryToAddWrongProp(propositions, "Non", "raw");
|
|
15
|
+
tryToAddWrongProp(propositions, "On ne peut pas savoir", "raw");
|
|
16
|
+
return shuffleProps(propositions, n);
|
|
17
|
+
};
|
|
18
|
+
const getAnswer = (identifiers) => {
|
|
19
|
+
const { pABIds, pAIds, pBIds } = identifiers;
|
|
20
|
+
const pA = reifyAlgebraic(pAIds);
|
|
21
|
+
const pB = reifyAlgebraic(pBIds);
|
|
22
|
+
const pAB = reifyAlgebraic(pABIds);
|
|
23
|
+
return Math.abs(substract(pAB, multiply(pA, pB)).evaluate()) < 0.0001
|
|
24
|
+
? "Oui"
|
|
25
|
+
: "Non";
|
|
26
|
+
};
|
|
27
|
+
const getInstruction = (identifiers) => {
|
|
28
|
+
const { pABIds, pAIds, pBIds } = identifiers;
|
|
29
|
+
const pA = reifyAlgebraic(pAIds);
|
|
30
|
+
const pB = reifyAlgebraic(pBIds);
|
|
31
|
+
const pAB = reifyAlgebraic(pABIds);
|
|
32
|
+
return `On considère deux événements $A$ et $B$ tels que $P(A)= ${pA.toTex()}$, $P(B)=${pB.toTex()}$ et $P(A\\cap B) = ${pAB.toTex()}$.
|
|
33
|
+
|
|
34
|
+
Les événements $A$ et $B$ sont-ils indépendants ?`;
|
|
35
|
+
};
|
|
36
|
+
const getHint = () => {
|
|
37
|
+
return `Deux événements sont indépendants si et seulement si :
|
|
38
|
+
|
|
39
|
+
$$
|
|
40
|
+
P(A\\cap B) = P(A)\\times P(B)
|
|
41
|
+
$$`;
|
|
42
|
+
};
|
|
43
|
+
const getCorrection = (identifiers) => {
|
|
44
|
+
const { pAIds, pBIds } = identifiers;
|
|
45
|
+
const pA = reifyAlgebraic(pAIds);
|
|
46
|
+
const pB = reifyAlgebraic(pBIds);
|
|
47
|
+
const isIndependant = getAnswer(identifiers) === "Oui";
|
|
48
|
+
return `Deux événements sont indépendants si et seulement si :
|
|
49
|
+
|
|
50
|
+
$$
|
|
51
|
+
P(A\\cap B) = P(A)\\times P(B)
|
|
52
|
+
$$
|
|
53
|
+
|
|
54
|
+
Ici, on a :
|
|
55
|
+
|
|
56
|
+
$$
|
|
57
|
+
P(A)\\times P(B) = ${multiply(pA, pB).toSimplificationTex()}
|
|
58
|
+
$$
|
|
59
|
+
|
|
60
|
+
${isIndependant
|
|
61
|
+
? `Puisque $P(A\\cap B) = P(A)\\times P(B)$, les évènements $A$ et $B$ sont bien indépendants.`
|
|
62
|
+
: `Puisque $P(A\\cap B) \\neq P(A)\\times P(B)$, les évènements $A$ et $B$ ne sont pas indépendants.`}
|
|
63
|
+
`;
|
|
64
|
+
};
|
|
65
|
+
const getIsIndependantFromDefinitionQuestion = () => {
|
|
66
|
+
const pA = randfloat(0.1, 1, randint(1, 3));
|
|
67
|
+
const pB = randfloat(0.1, 1, randint(1, 3));
|
|
68
|
+
const isInde = coinFlip();
|
|
69
|
+
const pAB = isInde
|
|
70
|
+
? round(pA * pB, 5)
|
|
71
|
+
: randfloat(0, Math.min(pA, pB), randint(1, 3), [round(pA * pB, 5)]);
|
|
72
|
+
const identifiers = {
|
|
73
|
+
pAIds: pA.toTree().toIdentifiers(),
|
|
74
|
+
pABIds: pAB.toTree().toIdentifiers(),
|
|
75
|
+
pBIds: pB.toTree().toIdentifiers(),
|
|
76
|
+
};
|
|
77
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
78
|
+
};
|
|
79
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
80
|
+
return {
|
|
81
|
+
answer: getAnswer(identifiers),
|
|
82
|
+
instruction: getInstruction(identifiers),
|
|
83
|
+
keys: [],
|
|
84
|
+
answerFormat: "raw",
|
|
85
|
+
identifiers,
|
|
86
|
+
hint: getHint(identifiers),
|
|
87
|
+
correction: getCorrection(identifiers),
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export const isIndependantFromDefinition = {
|
|
91
|
+
id: "isIndependantFromDefinition",
|
|
92
|
+
label: "Déterminer si deux événements sont indépendants en comparant $P(A\\cap B)$ et $P(A)\\times P(B)$",
|
|
93
|
+
isSingleStep: true,
|
|
94
|
+
generator: (nb, opts) => getDistinctQuestions(() => getIsIndependantFromDefinitionQuestion(opts), nb),
|
|
95
|
+
qcmTimer: 60,
|
|
96
|
+
freeTimer: 60,
|
|
97
|
+
getPropositions,
|
|
98
|
+
subject: "Mathématiques",
|
|
99
|
+
getInstruction,
|
|
100
|
+
getHint,
|
|
101
|
+
getCorrection,
|
|
102
|
+
getAnswer,
|
|
103
|
+
getQuestionFromIdentifiers,
|
|
104
|
+
hasHintAndCorrection: true,
|
|
105
|
+
answerType: "QCU",
|
|
106
|
+
};
|
|
@@ -2,7 +2,7 @@ export * from "./conditionalProbability.js";
|
|
|
2
2
|
export * from "./probabilityTree.js";
|
|
3
3
|
export * from "./stats1var/index.js";
|
|
4
4
|
export * from "./stats2var/index.js";
|
|
5
|
-
export * from "./independancy.js";
|
|
5
|
+
export * from "./independancy/index.js";
|
|
6
6
|
export * from "./issuesCountingForCards.js";
|
|
7
7
|
export * from "./probaFromTableNoContext.js";
|
|
8
8
|
export * from "./probaFromTableWithContext.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/math/probaStat/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC"}
|
|
@@ -2,7 +2,7 @@ export * from "./conditionalProbability.js";
|
|
|
2
2
|
export * from "./probabilityTree.js";
|
|
3
3
|
export * from "./stats1var/index.js";
|
|
4
4
|
export * from "./stats2var/index.js";
|
|
5
|
-
export * from "./independancy.js";
|
|
5
|
+
export * from "./independancy/index.js";
|
|
6
6
|
export * from "./issuesCountingForCards.js";
|
|
7
7
|
export * from "./probaFromTableNoContext.js";
|
|
8
8
|
export * from "./probaFromTableWithContext.js";
|
|
@@ -18,7 +18,7 @@ const getPropositions = (n, { answer }) => {
|
|
|
18
18
|
const getAnswer = (identifiers) => {
|
|
19
19
|
const { xValuesIds, yValuesIds } = identifiers;
|
|
20
20
|
const va = new RandomVariable(xValuesIds.map((e) => reifyAlgebraic(e)), yValuesIds.map((e) => reifyAlgebraic(e)));
|
|
21
|
-
return round(va.getStandardDeviation().
|
|
21
|
+
return round(va.getStandardDeviation().evaluate(), 2).frenchify();
|
|
22
22
|
};
|
|
23
23
|
const getInstruction = (identifiers) => {
|
|
24
24
|
const { xValuesIds, yValuesIds } = identifiers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etendueTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/etendueTable.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAG9B,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"etendueTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/etendueTable.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAG9B,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAmHF,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAa9C,CAAC"}
|
|
@@ -45,7 +45,11 @@ const getHint = () => {
|
|
|
45
45
|
const getCorrection = (identifiers) => {
|
|
46
46
|
const { randomValues } = identifiers;
|
|
47
47
|
return `La plus grande valeur de cette série est $${randomValues[randomValues.length - 1]}$ et la plus petite est $${randomValues[0]}$.
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
$$
|
|
50
|
+
${randomValues[randomValues.length - 1]} - ${randomValues[0]} = ${randomValues[randomValues.length - 1] - randomValues[0]}
|
|
51
|
+
$$
|
|
52
|
+
|
|
49
53
|
L'étendue de la série est donc $${randomValues[randomValues.length - 1] - randomValues[0]}$.
|
|
50
54
|
`;
|
|
51
55
|
};
|
|
@@ -19,7 +19,7 @@ const getAnswer = (identifiers) => {
|
|
|
19
19
|
return median([...sortedValues].sort((a, b) => a - b)).frenchify();
|
|
20
20
|
};
|
|
21
21
|
const getHint = (_, opts) => {
|
|
22
|
-
return `La médiane est la valeur centrale de la série : il y a autant de
|
|
22
|
+
return `La médiane est la valeur centrale de la série : il y a autant de valeurs inférieures à la médiane que de valeurs supérieures à la médiane.
|
|
23
23
|
|
|
24
24
|
${opts?.isOrdered
|
|
25
25
|
? "Les valeurs sont déjà rangées par ordre croissant."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medianWithTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/medianWithTable.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAG9B,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;
|
|
1
|
+
{"version":3,"file":"medianWithTable.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/stats1var/medianWithTable.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAG9B,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAiJF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAajD,CAAC"}
|
|
@@ -55,7 +55,6 @@ const getCorrection = (identifiers) => {
|
|
|
55
55
|
eccs.push(s);
|
|
56
56
|
}
|
|
57
57
|
const total = eccs[eccs.length - 1];
|
|
58
|
-
const rank = total / 2;
|
|
59
58
|
return `On dresse le tableau des effectifs cumulés croissants (ECC) :
|
|
60
59
|
|
|
61
60
|
${mdTable([
|
|
@@ -64,11 +63,26 @@ ${mdTable([
|
|
|
64
63
|
["ECC", ...eccs.map((e) => dollarize(e))],
|
|
65
64
|
])}
|
|
66
65
|
|
|
67
|
-
L'effectif total est donc $${total}$.
|
|
66
|
+
L'effectif total est donc $${total}$.
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
${(() => {
|
|
69
|
+
switch (total % 2) {
|
|
70
|
+
case 0: {
|
|
71
|
+
const rank = total / 2;
|
|
72
|
+
return `L'effectif est pair. La médiane est entre la $${rank}$ème et la $${rank + 1}$ème valeur.`;
|
|
73
|
+
}
|
|
74
|
+
case 1: {
|
|
75
|
+
const rank = (total + 1) / 2;
|
|
76
|
+
return `L'effectif est impair.
|
|
77
|
+
|
|
78
|
+
$$
|
|
79
|
+
\\frac{${total}+1}{2} = ${rank.frenchify()}
|
|
80
|
+
$$
|
|
81
|
+
|
|
82
|
+
La médiane est la $${rank.frenchify()}$ème valeur.`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
})()}
|
|
72
86
|
|
|
73
87
|
La médiane est donc $${getAnswer(identifiers)}$.`;
|
|
74
88
|
};
|
|
@@ -89,7 +89,7 @@ Si l'on regarde les valeurs strictement supérieures à $${a.frenchify()}$ :
|
|
|
89
89
|
${valuesAboveA
|
|
90
90
|
.map((v) => `
|
|
91
91
|
|
|
92
|
-
$${v.frenchify()}$ est $${(v - a).frenchify()}$ points
|
|
92
|
+
$${v.frenchify()}$ est $${(v - a).frenchify()}$ points au dessus de $${a.frenchify()}$
|
|
93
93
|
|
|
94
94
|
`)
|
|
95
95
|
.join("")}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headsOrTailsTwiceOutcomes.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAS9B,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"headsOrTailsTwiceOutcomes.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAS9B,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AA6NF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CAa3D,CAAC"}
|
|
@@ -9,6 +9,7 @@ const arrStrOutcomeSmall = [`P`, `F`];
|
|
|
9
9
|
const getInstruction = (identifiers) => {
|
|
10
10
|
const { arrIndex } = identifiers;
|
|
11
11
|
const strRand = arrIndex.join("");
|
|
12
|
+
const topRow = [`\\text{Lancer} \\ 1$ /// $\\text{Lancer} \\ 2`, "P", "F"];
|
|
12
13
|
return `On tire deux fois à pile ou face avec une pièce de monnaie.
|
|
13
14
|
On note les issues de cette expérience aléatoire dans le tableau ci-dessous.
|
|
14
15
|
|
|
@@ -18,14 +19,14 @@ ${(() => {
|
|
|
18
19
|
{
|
|
19
20
|
return random([
|
|
20
21
|
`${mdTable([
|
|
21
|
-
|
|
22
|
-
["
|
|
23
|
-
["
|
|
22
|
+
topRow,
|
|
23
|
+
["P", "\\text{...}", "(P;F)"],
|
|
24
|
+
["F", "\\text{}", "\\text{}"],
|
|
24
25
|
], true)}`,
|
|
25
26
|
`${mdTable([
|
|
26
|
-
|
|
27
|
-
["
|
|
28
|
-
["
|
|
27
|
+
topRow,
|
|
28
|
+
["P", "\\text{...}", "\\text{}"],
|
|
29
|
+
["F", "(F;P)", "\\text{}"],
|
|
29
30
|
], true)}`,
|
|
30
31
|
]);
|
|
31
32
|
}
|
|
@@ -34,14 +35,14 @@ ${(() => {
|
|
|
34
35
|
{
|
|
35
36
|
return random([
|
|
36
37
|
`${mdTable([
|
|
37
|
-
|
|
38
|
-
["
|
|
39
|
-
["
|
|
38
|
+
topRow,
|
|
39
|
+
["P", "(P;P)", "\\text{...}"],
|
|
40
|
+
["F", "\\text{}", "\\text{}"],
|
|
40
41
|
], true)}`,
|
|
41
42
|
`${mdTable([
|
|
42
|
-
|
|
43
|
-
["
|
|
44
|
-
["
|
|
43
|
+
topRow,
|
|
44
|
+
["P", "\\text{}", "\\text{...}"],
|
|
45
|
+
["F", "\\text{}", "(F;F)"],
|
|
45
46
|
], true)}`,
|
|
46
47
|
]);
|
|
47
48
|
}
|
|
@@ -50,14 +51,14 @@ ${(() => {
|
|
|
50
51
|
{
|
|
51
52
|
return random([
|
|
52
53
|
`${mdTable([
|
|
53
|
-
|
|
54
|
-
["
|
|
55
|
-
["
|
|
54
|
+
topRow,
|
|
55
|
+
["P", "(P;P)", "\\text{}"],
|
|
56
|
+
["F", "\\text{...}", "\\text{}"],
|
|
56
57
|
], true)}`,
|
|
57
58
|
`${mdTable([
|
|
58
|
-
|
|
59
|
-
["
|
|
60
|
-
["
|
|
59
|
+
topRow,
|
|
60
|
+
["P", "\\text{}", "\\text{}"],
|
|
61
|
+
["F", "\\text{...}", "(F;F)"],
|
|
61
62
|
], true)}`,
|
|
62
63
|
]);
|
|
63
64
|
}
|
|
@@ -66,14 +67,14 @@ ${(() => {
|
|
|
66
67
|
{
|
|
67
68
|
return random([
|
|
68
69
|
`${mdTable([
|
|
69
|
-
|
|
70
|
-
["
|
|
71
|
-
["
|
|
70
|
+
topRow,
|
|
71
|
+
["P", "\\text{}", "(P;F)"],
|
|
72
|
+
["F", "\\text{}", "\\text{...}"],
|
|
72
73
|
], true)}`,
|
|
73
74
|
`${mdTable([
|
|
74
|
-
|
|
75
|
-
["
|
|
76
|
-
["
|
|
75
|
+
topRow,
|
|
76
|
+
["P", "\\text{}", "\\text{}"],
|
|
77
|
+
["F", "(F;P)", "\\text{...}"],
|
|
77
78
|
], true)}`,
|
|
78
79
|
]);
|
|
79
80
|
}
|
|
@@ -106,17 +107,14 @@ const getCorrection = (identifiers) => {
|
|
|
106
107
|
? highlighted(strEventSmall)
|
|
107
108
|
: strEventSmall;
|
|
108
109
|
});
|
|
110
|
+
const topRow = [`\\text{Lancer 1}$ /// $\\text{Lancer 2}`, "P", "F"];
|
|
109
111
|
return `Dans le tableau ci-dessous,
|
|
110
112
|
le premier élément dans la parenthèse désigne le résultat du premier lancer
|
|
111
113
|
et le deuxième élémént le résultat du deuxième lancer.
|
|
112
114
|
|
|
113
115
|
$P$ désigne $Pile$ et $F$ désigne $Face$.
|
|
114
116
|
|
|
115
|
-
${mdTable([
|
|
116
|
-
["\\text{}", "\\text{Lancer 2 :} P", "\\text{Lancer 2 :} F"],
|
|
117
|
-
["\\text{Lancer 1 : } P", arrStr[0], arrStr[2]],
|
|
118
|
-
["\\text{Lancer 1 : } F", arrStr[1], arrStr[3]],
|
|
119
|
-
], true)}
|
|
117
|
+
${mdTable([topRow, ["P", arrStr[0], arrStr[2]], ["F", arrStr[1], arrStr[3]]], true)}
|
|
120
118
|
`;
|
|
121
119
|
};
|
|
122
120
|
const getPropositions = (n, { answer }) => {
|
|
@@ -153,6 +151,20 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
153
151
|
identifiers,
|
|
154
152
|
hint: getHint(identifiers),
|
|
155
153
|
correction: getCorrection(identifiers),
|
|
154
|
+
style: {
|
|
155
|
+
tableOptions: {
|
|
156
|
+
firstColumnIsHeader: false,
|
|
157
|
+
firstRowIsHeader: false,
|
|
158
|
+
firstCellIsDivided: true,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
correctionStyle: {
|
|
162
|
+
tableOptions: {
|
|
163
|
+
firstCellIsDivided: true,
|
|
164
|
+
firstColumnIsHeader: true,
|
|
165
|
+
firstRowIsHeader: true,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
156
168
|
};
|
|
157
169
|
return question;
|
|
158
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headsOrTailsTwiceProbas.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAY9B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"headsOrTailsTwiceProbas.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAY9B,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA8LF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
|
|
@@ -85,9 +85,9 @@ const getCorrection = (identifiers) => {
|
|
|
85
85
|
return `Dans le tableau ci-dessous, on a indiqué en vert les issues qui réalisent l'évènement "${event.str}" :
|
|
86
86
|
|
|
87
87
|
${mdTable([
|
|
88
|
-
[
|
|
89
|
-
["
|
|
90
|
-
["
|
|
88
|
+
[`\\text{Lancer} \\ 1$ /// $\\text{Lancer} \\ 2`, "P", "F"],
|
|
89
|
+
["P", arrStr[0], arrStr[2]],
|
|
90
|
+
["F", arrStr[1], arrStr[3]],
|
|
91
91
|
], true)}
|
|
92
92
|
|
|
93
93
|
Sur les $${nbOutcomes.frenchify()}$ issues possibles, ${nbRealized === 1 ? "une seule réalise" : `$${nbRealized}$ réalisent`} l'évènement "${event.str}".
|
|
@@ -137,6 +137,13 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
137
137
|
identifiers,
|
|
138
138
|
hint: getHint(identifiers),
|
|
139
139
|
correction: getCorrection(identifiers),
|
|
140
|
+
correctionStyle: {
|
|
141
|
+
tableOptions: {
|
|
142
|
+
firstCellIsDivided: true,
|
|
143
|
+
firstColumnIsHeader: true,
|
|
144
|
+
firstRowIsHeader: true,
|
|
145
|
+
},
|
|
146
|
+
},
|
|
140
147
|
};
|
|
141
148
|
return question;
|
|
142
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numberPoolTwiceProbas.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAiB9B,KAAK,WAAW,GAAG;IAEjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"numberPoolTwiceProbas.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AAiB9B,KAAK,WAAW,GAAG;IAEjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAoOF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAcvD,CAAC"}
|
|
@@ -109,9 +109,9 @@ const getCorrection = (identifiers) => {
|
|
|
109
109
|
return `Dans le tableau ci-dessous, on a indiqué en vert les issues qui réalisent l'évènement "${event.str}" :
|
|
110
110
|
|
|
111
111
|
${mdTable([
|
|
112
|
-
["
|
|
112
|
+
["n_1$ /// $n_2", ...numberPool.map((i) => `${i}`)],
|
|
113
113
|
...Object.entries(arrArrStr).map(([s, arrStr]) => [
|
|
114
|
-
|
|
114
|
+
`${+s}`,
|
|
115
115
|
...Object.values(arrStr),
|
|
116
116
|
]),
|
|
117
117
|
], true)}
|
|
@@ -171,6 +171,13 @@ const getQuestionFromIdentifiers = (identifiers) => {
|
|
|
171
171
|
identifiers,
|
|
172
172
|
hint: getHint(identifiers),
|
|
173
173
|
correction: getCorrection(identifiers),
|
|
174
|
+
correctionStyle: {
|
|
175
|
+
tableOptions: {
|
|
176
|
+
firstCellIsDivided: true,
|
|
177
|
+
firstColumnIsHeader: true,
|
|
178
|
+
firstRowIsHeader: true,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
174
181
|
};
|
|
175
182
|
return question;
|
|
176
183
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twoStepExperimentProbas.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AA0B9B,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"twoStepExperimentProbas.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAcT,MAAM,sBAAsB,CAAC;AA0B9B,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;CACpB,CAAC;AAwjBF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,WAAW,CAczD,CAAC"}
|