math-exercises 3.0.69 → 3.0.71
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 +9 -1
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/addAndSub.d.ts.map +1 -1
- package/lib/exercises/math/calcul/addAndSub.js +4 -0
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.d.ts +3 -0
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.d.ts.map +1 -1
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.js +33 -20
- package/lib/exercises/math/calcul/digitDecimalRank.d.ts.map +1 -1
- package/lib/exercises/math/calcul/digitDecimalRank.js +36 -13
- package/lib/exercises/math/calcul/digitDecimalRankNumber.d.ts.map +1 -1
- package/lib/exercises/math/calcul/digitDecimalRankNumber.js +27 -12
- package/lib/exercises/math/calcul/digitRank.d.ts.map +1 -1
- package/lib/exercises/math/calcul/digitRank.js +37 -13
- package/lib/exercises/math/calcul/digitRankNumber.d.ts.map +1 -1
- package/lib/exercises/math/calcul/digitRankNumber.js +21 -12
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.js +33 -17
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSubNoRelative.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSubNoRelative.js +36 -18
- package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.js +38 -30
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.js +35 -21
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationsNoRelative.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationsNoRelative.js +4 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.js +22 -9
- package/lib/exercises/math/calcul/operations/expressionNature.d.ts +2 -1
- package/lib/exercises/math/calcul/operations/expressionNature.d.ts.map +1 -1
- package/lib/exercises/math/calcul/operations/expressionNature.js +36 -15
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.d.ts +2 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.d.ts.map +1 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.js +26 -15
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.d.ts +2 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.d.ts.map +1 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.js +26 -17
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +1 -0
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.js +89 -60
- package/lib/exercises/math/calcul/ordering/decimalOrdering.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/decimalOrdering.js +30 -13
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +26 -13
- package/lib/exercises/math/calcul/ordering/framing.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/framing.js +70 -59
- package/lib/exercises/math/calcul/ordering/integerOrdering.d.ts.map +1 -1
- package/lib/exercises/math/calcul/ordering/integerOrdering.js +30 -11
- package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/findCoeffInProportionalTableNonIntegers.js +4 -0
- package/lib/exercises/math/calcul/proportionality/isTableProportional.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportional.js +42 -24
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +4 -0
- package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts +1 -0
- package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/scaleUsage.js +75 -39
- package/lib/exercises/math/calcul/writing/index.d.ts +1 -1
- package/lib/exercises/math/calcul/writing/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/writing/index.js +3 -1
- package/lib/exercises/math/calcul/writing/numberToFrenchWriting.d.ts +0 -5
- package/lib/exercises/math/calcul/writing/numberToFrenchWriting.d.ts.map +1 -1
- package/lib/exercises/math/calcul/writing/numberToFrenchWriting.js +87 -64
- package/lib/exercises/math/calculLitteral/distributivity/allIdentities.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +29 -5
- package/lib/exercises/math/calculLitteral/distributivity/idRmq1.d.ts +2 -1
- package/lib/exercises/math/calculLitteral/distributivity/idRmq1.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/idRmq1.js +3 -3
- package/lib/exercises/math/calculLitteral/distributivity/idRmq2.d.ts +2 -1
- package/lib/exercises/math/calculLitteral/distributivity/idRmq2.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/idRmq2.js +3 -3
- package/lib/exercises/math/calculLitteral/distributivity/idRmq3.d.ts +2 -1
- package/lib/exercises/math/calculLitteral/distributivity/idRmq3.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/idRmq3.js +3 -3
- package/lib/exercises/math/calculLitteral/factorisation/facto1.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/facto1.js +3 -1
- package/lib/exercises/math/complex/addComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/addComplex.js +31 -18
- package/lib/exercises/math/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/argumentFromAlgebraicComplex.js +24 -11
- package/lib/exercises/math/complex/conjugateComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/conjugateComplex.js +20 -7
- package/lib/exercises/math/complex/conjugateDivideComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/conjugateDivideComplex.js +29 -16
- package/lib/exercises/math/complex/conjugateMultiplyComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/conjugateMultiplyComplex.js +26 -13
- package/lib/exercises/math/complex/divideComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/divideComplex.js +29 -16
- package/lib/exercises/math/complex/inverseComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/inverseComplex.js +18 -7
- package/lib/exercises/math/complex/linearCombinaisonComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/linearCombinaisonComplex.js +30 -13
- package/lib/exercises/math/complex/moduloFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/moduloFromAlgebraicComplex.js +20 -8
- package/lib/exercises/math/complex/mutiplyComplex.d.ts.map +1 -1
- package/lib/exercises/math/complex/mutiplyComplex.js +26 -13
- package/lib/exercises/math/complex/reAndIm.d.ts.map +1 -1
- package/lib/exercises/math/complex/reAndIm.js +22 -9
- package/lib/exercises/math/conversion/volumeCapacityConversion.d.ts.map +1 -1
- package/lib/exercises/math/conversion/volumeCapacityConversion.js +1 -0
- package/lib/exercises/math/dataRepresentations/testGen.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/testGen.js +5 -1
- package/lib/exercises/math/dataRepresentations/testGenGGB.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/testGenGGB.js +5 -1
- package/lib/exercises/math/dataRepresentations/testGenStudentGGB.d.ts.map +1 -1
- package/lib/exercises/math/dataRepresentations/testGenStudentGGB.js +5 -1
- package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.d.ts.map +1 -1
- package/lib/exercises/math/derivation/convexity/convexityQuadrinomials.js +4 -0
- package/lib/exercises/math/derivation/convexity/convexityTrinomials.d.ts.map +1 -1
- package/lib/exercises/math/derivation/convexity/convexityTrinomials.js +4 -0
- package/lib/exercises/math/derivation/convexity/inflexionPointQuadrinomials.d.ts.map +1 -1
- package/lib/exercises/math/derivation/convexity/inflexionPointQuadrinomials.js +4 -2
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.js +4 -2
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.js +4 -0
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.js +4 -0
- package/lib/exercises/math/derivation/derivative/exp/secondDerivativeOfExpoFunction.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/secondDerivativeOfExpoFunction.js +4 -2
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/ln/lnDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/ln/lnDerivativeTwo.js +4 -0
- package/lib/exercises/math/derivation/derivative/polynomial/constanteDerivative.d.ts +2 -1
- package/lib/exercises/math/derivation/derivative/polynomial/constanteDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/constanteDerivative.js +6 -4
- package/lib/exercises/math/derivation/derivative/polynomial/firstDegreeDerivative.d.ts +2 -1
- package/lib/exercises/math/derivation/derivative/polynomial/firstDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/firstDegreeDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/polynomial/secondDegreeDerivative.d.ts +2 -1
- package/lib/exercises/math/derivation/derivative/polynomial/secondDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/secondDegreeDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfThirdDegreeFunction.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfThirdDegreeFunction.js +4 -0
- package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfTrinom.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/secondDerivativeOfTrinom.js +4 -0
- package/lib/exercises/math/derivation/derivative/polynomial/thirdDegreeDerivative.d.ts +2 -1
- package/lib/exercises/math/derivation/derivative/polynomial/thirdDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/thirdDegreeDerivative.js +4 -10
- package/lib/exercises/math/derivation/derivative/polynomial/usualderivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/polynomial/usualderivative.js +32 -4
- package/lib/exercises/math/derivation/derivative/power/powerCompositionDerivation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/power/powerCompositionDerivation.js +4 -2
- package/lib/exercises/math/derivation/derivative/power/powerFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/power/powerFunctionDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/productDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/quotientDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/sqrt/rootFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/sqrt/rootFunctionDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.js +4 -0
- package/lib/exercises/math/derivation/derivative/trigo/cosCompositionDerivation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/trigo/cosCompositionDerivation.js +4 -0
- package/lib/exercises/math/derivation/derivative/trigo/cosSecondDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/trigo/cosSecondDegreeDerivative.js +4 -0
- package/lib/exercises/math/derivation/derivative/trigo/sinCompositionDerivation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/trigo/sinCompositionDerivation.js +4 -0
- package/lib/exercises/math/derivation/derivative/trigo/sinSecondDegreeDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/trigo/sinSecondDegreeDerivative.js +4 -0
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts +4 -3
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.d.ts.map +1 -1
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +32 -16
- package/lib/exercises/math/functions/exponential/expFactorization.d.ts.map +1 -1
- package/lib/exercises/math/functions/exponential/expFactorization.js +1 -0
- package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.js +73 -41
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.js +32 -16
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.js +1 -2
- package/lib/exercises/math/geometry/areas/circleRadiusFromArea.d.ts.map +1 -1
- package/lib/exercises/math/geometry/areas/circleRadiusFromArea.js +1 -0
- package/lib/exercises/math/geometry/areas/squareSideFromArea.d.ts.map +1 -1
- package/lib/exercises/math/geometry/areas/squareSideFromArea.js +1 -0
- package/lib/exercises/math/geometry/shapes/basicShapesNaming.d.ts +4 -1
- package/lib/exercises/math/geometry/shapes/basicShapesNaming.d.ts.map +1 -1
- package/lib/exercises/math/geometry/shapes/basicShapesNaming.js +97 -44
- package/lib/exercises/math/geometry/vectors/coordinatesReading.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/coordinatesReading.js +28 -14
- package/lib/exercises/math/geometry/vectors/determinant.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/determinant.js +26 -12
- package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/drawAVectorInGGB.js +25 -11
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts +1 -0
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +60 -33
- package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.js +34 -19
- package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.js +42 -20
- package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.js +42 -20
- package/lib/exercises/math/geometry/vectors/traceOppositeVector.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/traceOppositeVector.js +4 -0
- package/lib/exercises/math/geometry/vectors/traceVectorDifference.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/traceVectorDifference.js +4 -0
- package/lib/exercises/math/geometry/vectors/traceVectorMultiple.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/traceVectorMultiple.js +4 -0
- package/lib/exercises/math/geometry/vectors/traceVectorSum.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/traceVectorSum.js +4 -0
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts +2 -0
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +45 -25
- package/lib/exercises/math/geometry/vectors/vectorLinearCombination.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/vectorLinearCombination.js +33 -14
- package/lib/exercises/math/geometry/vectors/vectorNormCalculation.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/vectorNormCalculation.js +9 -3
- package/lib/exercises/math/limits/limitReading.d.ts +5 -1
- package/lib/exercises/math/limits/limitReading.d.ts.map +1 -1
- package/lib/exercises/math/limits/limitReading.js +96 -38
- package/lib/exercises/math/limits/polynomLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/polynomLimit.js +0 -2
- package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.js +37 -20
- package/lib/exercises/math/limits/rationalFracLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/rationalFracLimit.js +34 -17
- package/lib/exercises/math/limits/sequenceGeometricLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/sequenceGeometricLimit.js +4 -0
- package/lib/exercises/math/limits/sequencePolynomLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/sequencePolynomLimit.js +23 -10
- package/lib/exercises/math/limits/sequencePolynomNoFILimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/sequencePolynomNoFILimit.js +24 -11
- package/lib/exercises/math/limits/sequencePolynomProductLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/sequencePolynomProductLimit.js +31 -18
- package/lib/exercises/math/limits/sequenceRationalFracLimit.d.ts.map +1 -1
- package/lib/exercises/math/limits/sequenceRationalFracLimit.js +33 -16
- package/lib/exercises/math/matrices/matrixGeneralTerm.d.ts.map +1 -1
- package/lib/exercises/math/matrices/matrixGeneralTerm.js +21 -8
- package/lib/exercises/math/matrices/matrixInversibilityDomain.d.ts.map +1 -1
- package/lib/exercises/math/matrices/matrixInversibilityDomain.js +44 -26
- package/lib/exercises/math/matrices/productCell.d.ts +2 -0
- package/lib/exercises/math/matrices/productCell.d.ts.map +1 -1
- package/lib/exercises/math/matrices/productCell.js +27 -12
- package/lib/exercises/math/powers/decimalToScientific.d.ts.map +1 -1
- package/lib/exercises/math/powers/decimalToScientific.js +9 -0
- package/lib/exercises/math/primitive/constantPrimitive.d.ts +2 -1
- package/lib/exercises/math/primitive/constantPrimitive.d.ts.map +1 -1
- package/lib/exercises/math/primitive/constantPrimitive.js +3 -3
- package/lib/exercises/math/primitive/exponentialPrimitive.d.ts +2 -1
- package/lib/exercises/math/primitive/exponentialPrimitive.d.ts.map +1 -1
- package/lib/exercises/math/primitive/exponentialPrimitive.js +3 -3
- package/lib/exercises/math/primitive/polynomialPrimitive.d.ts +2 -1
- package/lib/exercises/math/primitive/polynomialPrimitive.d.ts.map +1 -1
- package/lib/exercises/math/primitive/polynomialPrimitive.js +3 -3
- package/lib/exercises/math/primitive/sinCosPrimitive.d.ts +2 -1
- package/lib/exercises/math/primitive/sinCosPrimitive.d.ts.map +1 -1
- package/lib/exercises/math/primitive/sinCosPrimitive.js +3 -3
- package/lib/exercises/math/primitive/usualPrimitives.d.ts.map +1 -1
- package/lib/exercises/math/primitive/usualPrimitives.js +33 -6
- package/lib/exercises/math/probaStat/binomial/varianceOfBinomialProba.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/binomial/varianceOfBinomialProba.js +1 -0
- package/lib/exercises/math/probaStat/stats1var/quartilesList.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/quartilesList.js +4 -1
- package/lib/exercises/math/probaStat/stats2var/averagePoint.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats2var/averagePoint.js +1 -2
- package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +47 -23
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.js +4 -6
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplictFormulaFirstTermRandom.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplictFormulaFirstTermRandom.js +4 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +30 -12
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.js +4 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +23 -9
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.js +62 -41
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +4 -2
- package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.js +4 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +26 -10
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +33 -14
- package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.js +4 -2
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +35 -14
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +37 -24
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromFirstTerms.js +4 -0
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeReasonFromGraph.js +29 -15
- package/lib/exercises/math/sequences/explicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/explicitFormulaUsage.js +27 -10
- package/lib/exercises/math/sequences/genericSequenceVariations.d.ts.map +1 -1
- package/lib/exercises/math/sequences/genericSequenceVariations.js +23 -10
- package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +9 -3
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.js +45 -17
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +20 -9
- package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindReason.js +20 -9
- package/lib/exercises/math/sequences/geometric/geometricFindTerm.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindTerm.js +60 -41
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.js +1 -0
- package/lib/exercises/math/sequences/geometric/geometricReasonUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricReasonUsage.js +26 -10
- package/lib/exercises/math/sequences/geometric/geometricRecognizeReasonFromFirstTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricRecognizeReasonFromFirstTerms.js +4 -0
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +27 -10
- package/lib/exercises/math/sequences/geometric/geometricVariations.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricVariations.js +4 -0
- package/lib/exercises/math/sequences/recurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/recurrenceFormulaUsage.js +23 -11
- package/lib/exercises/math/sequences/sequenceEvaluation.d.ts.map +1 -1
- package/lib/exercises/math/sequences/sequenceEvaluation.js +45 -21
- package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/intervalsUnion.js +1 -2
- package/lib/exercises/pc/calibrationCurveOfSolution.d.ts.map +1 -1
- package/lib/exercises/pc/calibrationCurveOfSolution.js +56 -48
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +3 -1
- package/lib/exercises/pc/chemicalElements/weightPercent.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/weightPercent.js +1 -0
- package/lib/exercises/pc/chemicalEquations.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalEquations.js +0 -2
- package/lib/exercises/pc/chemicalReactions/chemicalEquations.d.ts +8 -0
- package/lib/exercises/pc/chemicalReactions/chemicalEquations.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalReactions/chemicalEquations.js +62 -0
- package/lib/exercises/pc/chemicalReactions/chemicalReactionsProduct.d.ts +9 -0
- package/lib/exercises/pc/chemicalReactions/chemicalReactionsProduct.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalReactions/chemicalReactionsProduct.js +70 -0
- package/lib/exercises/pc/chemicalReactions/index.d.ts +2 -0
- package/lib/exercises/pc/chemicalReactions/index.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalReactions/index.js +2 -0
- package/lib/exercises/pc/delution.d.ts.map +1 -1
- package/lib/exercises/pc/delution.js +25 -12
- package/lib/exercises/pc/dosage/concentrationCalculation.d.ts.map +1 -1
- package/lib/exercises/pc/dosage/concentrationCalculation.js +5 -3
- package/lib/exercises/pc/electricity/calculateVoltage.d.ts.map +1 -1
- package/lib/exercises/pc/electricity/calculateVoltage.js +112 -90
- package/lib/exercises/pc/electricity/electricEnergyFromPower.d.ts.map +1 -1
- package/lib/exercises/pc/electricity/electricEnergyFromPower.js +1 -0
- package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -1
- package/lib/exercises/pc/energy/efficiencyCalculation.js +5 -3
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -1
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +0 -1
- package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts.map +1 -1
- package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +87 -38
- package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts.map +1 -1
- package/lib/exercises/pc/forces/gravitationalAttractionValue.js +31 -16
- package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts.map +1 -1
- package/lib/exercises/pc/forces/gravitationalForcePlanets.js +71 -31
- package/lib/exercises/pc/forces/massWeight.d.ts.map +1 -1
- package/lib/exercises/pc/forces/massWeight.js +53 -20
- package/lib/exercises/pc/forces/pressingForce.d.ts.map +1 -1
- package/lib/exercises/pc/forces/pressingForce.js +71 -31
- package/lib/exercises/pc/formulaFromComposition.d.ts.map +1 -1
- package/lib/exercises/pc/formulaFromComposition.js +28 -8
- package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.d.ts.map +1 -1
- package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.js +31 -12
- package/lib/exercises/pc/index.d.ts +4 -6
- package/lib/exercises/pc/index.d.ts.map +1 -1
- package/lib/exercises/pc/index.js +4 -6
- package/lib/exercises/pc/kineticEnergy.d.ts.map +1 -1
- package/lib/exercises/pc/kineticEnergy.js +22 -10
- package/lib/exercises/pc/math/isolateVariables.d.ts.map +1 -1
- package/lib/exercises/pc/math/isolateVariables.js +114 -32
- package/lib/exercises/pc/math/proportionnalityCoeffFromLine.d.ts.map +1 -1
- package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +34 -16
- package/lib/exercises/pc/mecanicalWaves/elongationReading.d.ts.map +1 -1
- package/lib/exercises/pc/mecanicalWaves/elongationReading.js +35 -13
- package/lib/exercises/pc/molarQuantity.d.ts.map +1 -1
- package/lib/exercises/pc/molarQuantity.js +29 -13
- package/lib/exercises/pc/mole/concentrationReading.d.ts +4 -1
- package/lib/exercises/pc/mole/concentrationReading.d.ts.map +1 -1
- package/lib/exercises/pc/mole/concentrationReading.js +28 -10
- package/lib/exercises/pc/mole/molFromMass.d.ts.map +1 -1
- package/lib/exercises/pc/mole/molFromMass.js +21 -8
- package/lib/exercises/pc/mole/molFromMolarMass.d.ts.map +1 -1
- package/lib/exercises/pc/mole/molFromMolarMass.js +21 -8
- package/lib/exercises/pc/mole/molarMass.d.ts +3 -1
- package/lib/exercises/pc/mole/molarMass.d.ts.map +1 -1
- package/lib/exercises/pc/mole/molarMass.js +22 -9
- package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.d.ts.map +1 -1
- package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.js +25 -11
- package/lib/exercises/pc/mole/moleculeCountFromMol.d.ts.map +1 -1
- package/lib/exercises/pc/mole/moleculeCountFromMol.js +18 -7
- package/lib/exercises/pc/moleculeFormula.d.ts.map +1 -1
- package/lib/exercises/pc/moleculeFormula.js +30 -9
- package/lib/exercises/pc/moleculeNomenclature.d.ts.map +1 -1
- package/lib/exercises/pc/moleculeNomenclature.js +23 -8
- package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -1
- package/lib/exercises/pc/motion/averageSpeed.js +68 -55
- package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts.map +1 -1
- package/lib/exercises/pc/motion/averageSpeedCalculation.js +97 -39
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts +4 -1
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts.map +1 -1
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +51 -49
- package/lib/exercises/pc/motion/motionReference.d.ts +1 -0
- package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -1
- package/lib/exercises/pc/motion/motionReference.js +47 -26
- package/lib/exercises/pc/motion/typeOfAcceleration.d.ts +1 -1
- package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -1
- package/lib/exercises/pc/motion/typeOfAcceleration.js +61 -62
- package/lib/exercises/pc/motion/typeOfMovement.d.ts +2 -1
- package/lib/exercises/pc/motion/typeOfMovement.d.ts.map +1 -1
- package/lib/exercises/pc/motion/typeOfMovement.js +58 -57
- package/lib/exercises/pc/orderOfMagnitude.d.ts.map +1 -1
- package/lib/exercises/pc/orderOfMagnitude.js +24 -23
- package/lib/exercises/pc/pH.d.ts.map +1 -1
- package/lib/exercises/pc/pH.js +37 -16
- package/lib/exercises/pc/perceivedFrequency.d.ts.map +1 -1
- package/lib/exercises/pc/perceivedFrequency.js +26 -13
- package/lib/exercises/pc/potentialEnergy.d.ts.map +1 -1
- package/lib/exercises/pc/potentialEnergy.js +23 -11
- package/lib/exercises/pc/power/calculatePowerOfLight.d.ts +2 -2
- package/lib/exercises/pc/power/calculatePowerOfLight.d.ts.map +1 -1
- package/lib/exercises/pc/power/calculatePowerOfLight.js +65 -39
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts +3 -1
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts.map +1 -1
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +48 -47
- package/lib/exercises/pc/snellDescartes.d.ts.map +1 -1
- package/lib/exercises/pc/snellDescartes.js +31 -13
- package/lib/exercises/pc/sound/findPeriodFromGraph.d.ts.map +1 -1
- package/lib/exercises/pc/sound/findPeriodFromGraph.js +42 -26
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts +1 -0
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts.map +1 -1
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +51 -32
- package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.d.ts.map +1 -1
- package/lib/exercises/pc/sound/findSoundFrequencyFromPeriod.js +20 -7
- package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.d.ts.map +1 -1
- package/lib/exercises/pc/sound/findSoundPeriodFromFrequency.js +20 -7
- package/lib/exercises/pc/sound/frequencyComparison.d.ts.map +1 -1
- package/lib/exercises/pc/sound/frequencyComparison.js +25 -14
- package/lib/exercises/pc/spectral/spectralEnergy.d.ts +1 -3
- package/lib/exercises/pc/spectral/spectralEnergy.d.ts.map +1 -1
- package/lib/exercises/pc/spectral/spectralEnergy.js +98 -56
- package/lib/exercises/pc/waves/findDistanceFromEarth.d.ts.map +1 -1
- package/lib/exercises/pc/waves/findDistanceFromEarth.js +22 -9
- package/lib/exercises/pc/waves/lightDistanceConversion.d.ts.map +1 -1
- package/lib/exercises/pc/waves/lightDistanceConversion.js +104 -76
- package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts +1 -0
- package/lib/exercises/pc/waves/periodicWaveCelerity.d.ts.map +1 -1
- package/lib/exercises/pc/waves/periodicWaveCelerity.js +81 -25
- package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -1
- package/lib/exercises/pc/weight/calculateWeight.js +55 -26
- package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -1
- package/lib/exercises/pc/weight/weightOnTheMoon.js +67 -32
- package/lib/index.d.ts +58 -37
- package/lib/index.d.ts.map +1 -1
- package/lib/latexTester.js +7 -2
- package/lib/math/geometry/ray.d.ts +8 -1
- package/lib/math/geometry/ray.d.ts.map +1 -1
- package/lib/math/geometry/ray.js +11 -1
- package/lib/math/polynomials/trinom.d.ts +5 -0
- package/lib/math/polynomials/trinom.d.ts.map +1 -1
- package/lib/math/polynomials/trinom.js +6 -0
- package/lib/pc/constants/molecularChemistry/reaction.js +1 -1
- package/lib/pc/measure/measure.d.ts +11 -4
- package/lib/pc/measure/measure.d.ts.map +1 -1
- package/lib/pc/measure/measure.js +10 -6
- package/lib/playground.d.ts.map +1 -1
- package/lib/playground.js +8 -1
- package/lib/tests/exoTest.d.ts.map +1 -1
- package/lib/tests/exoTest.js +13 -0
- package/lib/tests/mega.test.d.ts +2 -0
- package/lib/tests/mega.test.d.ts.map +1 -0
- package/lib/tests/mega.test.js +13 -0
- package/lib/tests/megaxl.test.d.ts +2 -0
- package/lib/tests/megaxl.test.d.ts.map +1 -0
- package/lib/tests/megaxl.test.js +10 -0
- package/lib/tests/singleExo.test.d.ts.map +1 -1
- package/lib/tests/singleExo.test.js +2 -2
- package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/powerNode.js +2 -1
- package/package.json +3 -1
|
@@ -4,6 +4,84 @@ import { randfloat } from "../../../math/utils/random/randfloat.js";
|
|
|
4
4
|
import { round, roundSignificant } from "../../../math/utils/round.js";
|
|
5
5
|
import { random } from "../../../utils/alea/random.js";
|
|
6
6
|
// v = lambda / T
|
|
7
|
+
const getInstruction = (identifiers) => {
|
|
8
|
+
const { varAsked, v, l, T } = identifiers;
|
|
9
|
+
switch (varAsked) {
|
|
10
|
+
case "v":
|
|
11
|
+
return `Une onde périodique a une longueur d'onde de $${roundSignificant(l, 1)}\\ \\textrm{m}$ et une période de $${roundSignificant(T, 1)}\\ \\textrm{s}$.
|
|
12
|
+
|
|
13
|
+
Quelle est sa célérité ?`;
|
|
14
|
+
break;
|
|
15
|
+
case "T":
|
|
16
|
+
return `Une onde périodique a une longueur d'onde de $${roundSignificant(l, 1)}\\ \\textrm{m}$ et une célérité de $${roundSignificant(v, 1)}\\ \\textrm{m}\\cdot\\textrm{s}^{-1}$.
|
|
17
|
+
|
|
18
|
+
Quelle est sa période ?`;
|
|
19
|
+
break;
|
|
20
|
+
case "l":
|
|
21
|
+
default:
|
|
22
|
+
return `Une onde périodique a une période de $${roundSignificant(T, 1)}\\ \\textrm{m}$ et une célérité de $${roundSignificant(v, 1)}\\ \\textrm{m}\\cdot\\textrm{s}^{-1}$.
|
|
23
|
+
|
|
24
|
+
Quelle est sa longueur d'onde ?`;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const getAnswer = (identifiers) => {
|
|
29
|
+
const { varAsked, v, l, T } = identifiers;
|
|
30
|
+
switch (varAsked) {
|
|
31
|
+
case "v":
|
|
32
|
+
return roundSignificant(v, 1);
|
|
33
|
+
break;
|
|
34
|
+
case "T":
|
|
35
|
+
return roundSignificant(T, 1);
|
|
36
|
+
break;
|
|
37
|
+
case "l":
|
|
38
|
+
default:
|
|
39
|
+
return roundSignificant(l, 1);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const getHint = (identifiers) => {
|
|
44
|
+
const { varAsked, v, l, T } = identifiers;
|
|
45
|
+
switch (varAsked) {
|
|
46
|
+
case "v":
|
|
47
|
+
return "Utilisez la formule de la célérité: $v = \\frac{\\lambda}{T}$";
|
|
48
|
+
break;
|
|
49
|
+
case "T":
|
|
50
|
+
return "Utilisez la formule de la période: $T = \\frac{\\lambda}{v}$";
|
|
51
|
+
break;
|
|
52
|
+
case "l":
|
|
53
|
+
default:
|
|
54
|
+
return "Utilisez la formule de la longueur d'onde: $\\lambda = v \\times T$";
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const getCorrection = (identifiers) => {
|
|
59
|
+
const { varAsked, v, l, T } = identifiers;
|
|
60
|
+
switch (varAsked) {
|
|
61
|
+
case "v":
|
|
62
|
+
return `La célérité est donnée par $v = \\frac{\\lambda}{T} = \\frac{${roundSignificant(l, 1)}}{${roundSignificant(T, 1)}} = ${roundSignificant(v, 1)}$.`;
|
|
63
|
+
break;
|
|
64
|
+
case "T":
|
|
65
|
+
return `La période est donnée par $T = \\frac{\\lambda}{v} = \\frac{${roundSignificant(l, 1)}}{${roundSignificant(v, 1)}} = ${roundSignificant(T, 1)}$.`;
|
|
66
|
+
break;
|
|
67
|
+
case "l":
|
|
68
|
+
default:
|
|
69
|
+
return `La longueur d'onde est donnée par $\\lambda = v \\times T = ${roundSignificant(v, 1)} \\times ${roundSignificant(T, 1)} = ${roundSignificant(l, 1)}$.`;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
74
|
+
const question = {
|
|
75
|
+
answer: getAnswer(identifiers),
|
|
76
|
+
instruction: getInstruction(identifiers),
|
|
77
|
+
hint: getHint(identifiers),
|
|
78
|
+
correction: getCorrection(identifiers),
|
|
79
|
+
keys: [],
|
|
80
|
+
answerFormat: "tex",
|
|
81
|
+
identifiers,
|
|
82
|
+
};
|
|
83
|
+
return question;
|
|
84
|
+
};
|
|
7
85
|
const getPeriodicWaveCelerityQuestion = () => {
|
|
8
86
|
const varAsked = random(["v", "T", "l"]);
|
|
9
87
|
let v;
|
|
@@ -18,42 +96,21 @@ const getPeriodicWaveCelerityQuestion = () => {
|
|
|
18
96
|
T = randfloat(1, 10, 1);
|
|
19
97
|
l = randfloat(1, 10, 1);
|
|
20
98
|
v = round(l / T, 1);
|
|
21
|
-
instruction = `Une onde périodique a une longueur d'onde de $${roundSignificant(l, 1)}\\ \\text{m}$ et une période de $${roundSignificant(T, 1)}\\ \\text{s}$. Quelle est sa célérité ?`;
|
|
22
|
-
hint = "Utilisez la formule de la célérité: $v = \\frac{\\lambda}{T}$";
|
|
23
|
-
correction = `La célérité est donnée par $v = \\frac{\\lambda}{T} = \\frac{${roundSignificant(l, 1)}}{${roundSignificant(T, 1)}} = ${roundSignificant(v, 1)}$.`;
|
|
24
|
-
answer = roundSignificant(v, 1);
|
|
25
99
|
break;
|
|
26
100
|
case "T":
|
|
27
101
|
l = randfloat(1, 10, 1);
|
|
28
102
|
v = randfloat(1, 10, 1);
|
|
29
103
|
T = round(l / v, 1);
|
|
30
|
-
instruction = `Une onde périodique a une longueur d'onde de $${roundSignificant(l, 1)}\\ \\text{m}$ et une célérité de $${roundSignificant(v, 1)}\\ \\text{m}\\cdot\\text{s}^{-1}$. Quelle est sa période ?`;
|
|
31
|
-
hint = "Utilisez la formule de la période: $T = \\frac{\\lambda}{v}$";
|
|
32
|
-
correction = `La période est donnée par $T = \\frac{\\lambda}{v} = \\frac{${roundSignificant(l, 1)}}{${roundSignificant(v, 1)}} = ${roundSignificant(T, 1)}$.`;
|
|
33
|
-
answer = roundSignificant(T, 1);
|
|
34
104
|
break;
|
|
35
105
|
case "l":
|
|
36
106
|
default:
|
|
37
107
|
v = randfloat(1, 10, 1);
|
|
38
108
|
T = randfloat(1, 10, 1);
|
|
39
109
|
l = round(v * T, 1);
|
|
40
|
-
instruction = `Une onde périodique a une période de $${roundSignificant(T, 1)}\\ \\text{m}$ et une célérité de $${roundSignificant(v, 1)}\\ \\text{m}\\cdot\\text{s}^{-1}$. Quelle est sa longueur d'onde ?`;
|
|
41
|
-
hint =
|
|
42
|
-
"Utilisez la formule de la longueur d'onde: $\\lambda = v \\times T$";
|
|
43
|
-
correction = `La longueur d'onde est donnée par $\\lambda = v \\times T = ${roundSignificant(v, 1)} \\times ${roundSignificant(T, 1)} = ${roundSignificant(l, 1)}$.`;
|
|
44
|
-
answer = roundSignificant(l, 1);
|
|
45
110
|
break;
|
|
46
111
|
}
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
instruction,
|
|
50
|
-
hint,
|
|
51
|
-
correction,
|
|
52
|
-
keys: [],
|
|
53
|
-
answerFormat: "tex",
|
|
54
|
-
identifiers: { v, T, l },
|
|
55
|
-
};
|
|
56
|
-
return question;
|
|
112
|
+
const identifiers = { varAsked, v, T, l };
|
|
113
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
57
114
|
};
|
|
58
115
|
const getPropositions = (n, { answer }) => {
|
|
59
116
|
const propositions = [];
|
|
@@ -70,9 +127,7 @@ export const periodicWaveCelerity = {
|
|
|
70
127
|
id: "periodicWaveCelerity",
|
|
71
128
|
connector: "=",
|
|
72
129
|
label: "Célérité d'une onde periodique",
|
|
73
|
-
levels: ["1reSpé"],
|
|
74
130
|
isSingleStep: true,
|
|
75
|
-
sections: ["Ondes"],
|
|
76
131
|
generator: (nb) => getDistinctQuestions(getPeriodicWaveCelerityQuestion, nb),
|
|
77
132
|
qcmTimer: 60,
|
|
78
133
|
freeTimer: 60,
|
|
@@ -80,4 +135,5 @@ export const periodicWaveCelerity = {
|
|
|
80
135
|
isAnswerValid,
|
|
81
136
|
subject: "Physique",
|
|
82
137
|
hasHintAndCorrection: true,
|
|
138
|
+
getQuestionFromIdentifiers,
|
|
83
139
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/calculateWeight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"calculateWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/calculateWeight.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAiGF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAajD,CAAC"}
|
|
@@ -4,19 +4,66 @@ import { randfloat } from "../../../math/utils/random/randfloat.js";
|
|
|
4
4
|
import { randint } from "../../../math/utils/random/randint.js";
|
|
5
5
|
import { earthGravity } from "../../../pc/constants/gravity.js";
|
|
6
6
|
const g = +earthGravity.measure.significantPart.toFixed(2);
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const getInstruction = (identifiers) => {
|
|
8
|
+
const { mass } = identifiers;
|
|
9
|
+
const instruction = `Soit un objet avec une masse de $${mass}\\ \\textrm{kg}$.
|
|
10
|
+
|
|
11
|
+
Calculer le poids de cet objet.`;
|
|
12
|
+
return instruction;
|
|
13
|
+
};
|
|
14
|
+
const getAnswer = (identifiers) => {
|
|
15
|
+
const { mass } = identifiers;
|
|
16
|
+
const answer = (mass * g).toScientific(2);
|
|
17
|
+
return answer.toTex();
|
|
18
|
+
};
|
|
19
|
+
const getHint = (identifiers) => {
|
|
20
|
+
const { mass } = identifiers;
|
|
21
|
+
const hint = `Le poids $P$ se calcule en utilisant la formule :
|
|
22
|
+
|
|
23
|
+
$$
|
|
24
|
+
P=m \\cdot g
|
|
25
|
+
$$
|
|
26
|
+
|
|
27
|
+
où
|
|
28
|
+
|
|
29
|
+
- m est la masse de l'objet (en $\\textrm{kg}$).
|
|
30
|
+
|
|
31
|
+
- g est l'accélération due à la gravité (en $\\textrm{m} \\cdot \\textrm{s}^${-1}$).`;
|
|
32
|
+
return hint;
|
|
33
|
+
};
|
|
34
|
+
const getCorrection = (identifiers) => {
|
|
35
|
+
const { mass } = identifiers;
|
|
36
|
+
const answer = getAnswer(identifiers);
|
|
37
|
+
const correction = `Pour calculer le poids de l'objet, on utilise la formule :
|
|
38
|
+
|
|
39
|
+
$$
|
|
40
|
+
P=m \\cdot g
|
|
41
|
+
$$
|
|
42
|
+
|
|
43
|
+
On a :
|
|
44
|
+
|
|
45
|
+
$$
|
|
46
|
+
P = ${mass.frenchify()} \\times ${g.frenchify()} \\Rightarrow P=${answer}\\ \\textrm{N}
|
|
47
|
+
$$`;
|
|
48
|
+
return correction;
|
|
49
|
+
};
|
|
50
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
9
51
|
const question = {
|
|
10
|
-
answer:
|
|
11
|
-
instruction:
|
|
52
|
+
answer: getAnswer(identifiers),
|
|
53
|
+
instruction: getInstruction(identifiers),
|
|
12
54
|
keys: [],
|
|
13
|
-
hint:
|
|
14
|
-
correction:
|
|
55
|
+
hint: getHint(identifiers),
|
|
56
|
+
correction: getCorrection(identifiers),
|
|
15
57
|
answerFormat: "tex",
|
|
16
|
-
identifiers
|
|
58
|
+
identifiers,
|
|
17
59
|
};
|
|
18
60
|
return question;
|
|
19
61
|
};
|
|
62
|
+
const getCalculateWeightQuestion = () => {
|
|
63
|
+
const mass = randint(30, 151);
|
|
64
|
+
const identifiers = { mass: mass };
|
|
65
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
66
|
+
};
|
|
20
67
|
const getPropositions = (n, { answer, mass }) => {
|
|
21
68
|
const propositions = [];
|
|
22
69
|
const weight = mass * g;
|
|
@@ -37,29 +84,10 @@ const generatePropositions = (mass) => {
|
|
|
37
84
|
const second = (randfloat(weight - 100, weight + 100, 2, [weight]) / 10).toScientific(2);
|
|
38
85
|
return [first.toTex(), second.toTex()];
|
|
39
86
|
};
|
|
40
|
-
const generateExercise = () => {
|
|
41
|
-
const mass = randint(30, 151);
|
|
42
|
-
const instruction = `Soit un objet avec une masse de $${mass}$ $kg$. Calculer le poids de cet objet.`;
|
|
43
|
-
const answer = (mass * g).toScientific(2);
|
|
44
|
-
const hint = `Rappel : le poids $P$ se calcule en utilisant la formule $P=m \\cdot g$. \n \\
|
|
45
|
-
- m est la masse de l'objet (en kilogrammes, $kg$).\n \\
|
|
46
|
-
- g est l'accélération due à la gravité (en $m \\cdot s^${-1}$).`;
|
|
47
|
-
const correction = `Pour calculer le poids de l'objet, on utilise la formule : $P=m \\cdot g$. \n \\
|
|
48
|
-
$P = ${mass.frenchify()} \\times ${g.frenchify()}$ $\\Rightarrow$ $P=${answer.toTex()}$ $N$`;
|
|
49
|
-
return {
|
|
50
|
-
instruction,
|
|
51
|
-
answer,
|
|
52
|
-
hint,
|
|
53
|
-
correction,
|
|
54
|
-
mass,
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
87
|
export const calculateWeight = {
|
|
58
88
|
id: "calculateWeight",
|
|
59
89
|
label: "Calculer le poids d'un objet",
|
|
60
|
-
levels: ["2nde"],
|
|
61
90
|
isSingleStep: true,
|
|
62
|
-
sections: ["Forces"],
|
|
63
91
|
generator: (nb) => getDistinctQuestions(getCalculateWeightQuestion, nb),
|
|
64
92
|
qcmTimer: 60,
|
|
65
93
|
freeTimer: 60,
|
|
@@ -67,4 +95,5 @@ export const calculateWeight = {
|
|
|
67
95
|
isAnswerValid,
|
|
68
96
|
subject: "Physique",
|
|
69
97
|
hasHintAndCorrection: true,
|
|
98
|
+
getQuestionFromIdentifiers,
|
|
70
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weightOnTheMoon.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/weightOnTheMoon.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"weightOnTheMoon.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/weight/weightOnTheMoon.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AAYrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AA6HF,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,WAAW,CAcjD,CAAC"}
|
|
@@ -1,37 +1,87 @@
|
|
|
1
1
|
import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
|
|
2
2
|
import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
-
import { frenchify } from "../../../math/utils/latex/frenchify.js";
|
|
4
3
|
import { randfloat } from "../../../math/utils/random/randfloat.js";
|
|
5
4
|
import { round } from "../../../math/utils/round.js";
|
|
6
5
|
import { earthGravity, moonGravity, } from "../../../pc/constants/mechanics/gravitational.js";
|
|
7
6
|
import { coinFlip } from "../../../utils/alea/coinFlip.js";
|
|
8
|
-
const
|
|
9
|
-
const originIsMoon =
|
|
7
|
+
const getInstruction = (identifiers) => {
|
|
8
|
+
const { weight, originIsMoon } = identifiers;
|
|
10
9
|
const origin = originIsMoon ? "Lune" : "Terre";
|
|
11
10
|
const destination = originIsMoon ? "Terre" : "Lune";
|
|
12
|
-
const weight = round(randfloat(2, 30), 1);
|
|
13
11
|
const gl = moonGravity.measure.toSignificant(1);
|
|
14
12
|
const gt = earthGravity.measure.toSignificant(1);
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
return `Un objet a un poids de $${weight.frenchify()}\\ \\text{N}$ sur la ${origin}. Quel est son poids sur la ${destination} ?
|
|
14
|
+
|
|
15
|
+
Données : $g_T = ${gt.toTex()}$, $g_L = ${gl.toTex()}$
|
|
16
|
+
`;
|
|
17
|
+
};
|
|
18
|
+
const getAnswer = (identifiers) => {
|
|
19
|
+
const { weight, originIsMoon } = identifiers;
|
|
20
|
+
const gl = moonGravity.measure.toSignificant(1);
|
|
21
|
+
const gt = earthGravity.measure.toSignificant(1);
|
|
17
22
|
const answer = round(originIsMoon
|
|
18
23
|
? (weight / gl.evaluate()) * gt.evaluate()
|
|
19
|
-
: (weight / gt.evaluate()) * gl.evaluate(), 1) + "N";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
: (weight / gt.evaluate()) * gl.evaluate(), 1).frenchify() + "N";
|
|
25
|
+
return answer;
|
|
26
|
+
};
|
|
27
|
+
const getHint = (identifiers) => {
|
|
28
|
+
return "On rappelle que : $m=\\frac{p_T}{g_T}$ et $m=\\frac{p_L}{g_L}$";
|
|
29
|
+
};
|
|
30
|
+
const getCorrection = (identifiers) => {
|
|
31
|
+
const { weight, originIsMoon } = identifiers;
|
|
32
|
+
const gl = moonGravity.measure.toSignificant(1);
|
|
33
|
+
const gt = earthGravity.measure.toSignificant(1);
|
|
34
|
+
const answer = getAnswer(identifiers);
|
|
35
|
+
if (originIsMoon) {
|
|
36
|
+
return `- Trouver la masse de l'objet en utilisant son poids sur la Lune $p_L$ et l'accélération due à la gravité luanire $g_L$ :
|
|
23
37
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
38
|
+
$$
|
|
39
|
+
m = \\frac{p_L}{g_L} \\Leftrightarrow m=${round(weight / gl.evaluate(), 1)}\\textrm{kg}
|
|
40
|
+
$$
|
|
41
|
+
|
|
42
|
+
- Utiliser la masse trouvée et l'accélération due à la gravité sur la Terre $g_T$ pour calculer le poids sur la Terre $p_T$ :
|
|
43
|
+
|
|
44
|
+
$$
|
|
45
|
+
p_T = m \\ \\cdot g_T \\Leftrightarrow p_T = ${answer}
|
|
46
|
+
$$`;
|
|
47
|
+
}
|
|
48
|
+
return `- Trouver la masse de l'objet en utilisant son poids sur Terre $p_T$ et l'accélération due à la gravité terrestre $g_T$ :
|
|
49
|
+
|
|
50
|
+
$$
|
|
51
|
+
m = \\frac{p_T}{g_T} \\Leftrightarrow m=${round(weight / gt.evaluate(), 1)}\\textrm{kg}
|
|
52
|
+
$$
|
|
53
|
+
|
|
54
|
+
- Utiliser la masse trouvée et l'accélération due à la gravité sur la Lune $g_L$ pour calculer le poids sur la Lune $p_L$ :
|
|
55
|
+
|
|
56
|
+
$$
|
|
57
|
+
p_L = m \\ \\cdot g_L \\Leftrightarrow
|
|
58
|
+
$$
|
|
59
|
+
|
|
60
|
+
$$
|
|
61
|
+
p_L = ${answer}
|
|
62
|
+
$$
|
|
63
|
+
`;
|
|
64
|
+
};
|
|
65
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
66
|
+
const question = {
|
|
67
|
+
answer: getAnswer(identifiers),
|
|
68
|
+
instruction: getInstruction(identifiers),
|
|
69
|
+
hint: getHint(identifiers),
|
|
70
|
+
correction: getCorrection(identifiers),
|
|
29
71
|
keys: ["N"],
|
|
30
72
|
answerFormat: "tex",
|
|
31
|
-
identifiers
|
|
73
|
+
identifiers,
|
|
32
74
|
};
|
|
33
75
|
return question;
|
|
34
76
|
};
|
|
77
|
+
const getWeightOnTheMoonQuestion = () => {
|
|
78
|
+
const originIsMoon = coinFlip();
|
|
79
|
+
const weight = round(randfloat(2, 30), 1);
|
|
80
|
+
//Pt = m gt = Pl/gl gt
|
|
81
|
+
//Pl = m gl = Pt/gt gl
|
|
82
|
+
const identifiers = { weight, originIsMoon };
|
|
83
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
84
|
+
};
|
|
35
85
|
const getPropositions = (n, { answer, originIsMoon, weight }) => {
|
|
36
86
|
const propositions = [];
|
|
37
87
|
addValidProp(propositions, answer);
|
|
@@ -45,20 +95,6 @@ const getPropositions = (n, { answer, originIsMoon, weight }) => {
|
|
|
45
95
|
}
|
|
46
96
|
return shuffleProps(propositions, n);
|
|
47
97
|
};
|
|
48
|
-
const getCorrection = (origin, weight, answer, gt, gl) => {
|
|
49
|
-
switch (origin) {
|
|
50
|
-
case "Terre":
|
|
51
|
-
return `1 . Trouver la masse de l'objet en utilisant son poids sur Terre $p_T$ et l'accélération due à la gravité terrestre $g_T$ : \n $m = \\frac{p_T}{g_T} \\Leftrightarrow m=${round(weight / gt.evaluate(), 1)}\\text{kg}$. \n \\
|
|
52
|
-
2 . Utiliser la masse trouvée et l'accélération due à la gravité sur la Lune $g_L$ pour calculer le poids sur la Lune $p_L$ : $p_L = m \\ \\cdot g_L \\Leftrightarrow$ $p_L = ${frenchify(answer)}$.`;
|
|
53
|
-
case "Lune":
|
|
54
|
-
return `1 . Trouver la masse de l'objet en utilisant son poids sur la Lune $p_L$ et l'accélération due à la gravité luanire $g_L$ :
|
|
55
|
-
$m = \\frac{p_L}{g_L} \\Leftrightarrow m=${round(weight / gl.evaluate(), 1)}\\text{kg}$. \n \\
|
|
56
|
-
2 . Utiliser la masse trouvée et l'accélération due à la gravité sur la Terre $g_T$ pour calculer le poids sur la Terre $p_T$ :
|
|
57
|
-
$p_T = m \\ \\cdot g_T \\Leftrightarrow p_T = ${frenchify(answer)}$.`;
|
|
58
|
-
default:
|
|
59
|
-
return "";
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
98
|
const isAnswerValid = (ans, { answer }) => {
|
|
63
99
|
return [answer, answer.replace("N", "")].includes(ans);
|
|
64
100
|
};
|
|
@@ -66,9 +102,7 @@ export const weightOnTheMoon = {
|
|
|
66
102
|
id: "weightOnTheMoon",
|
|
67
103
|
connector: "=",
|
|
68
104
|
label: "Passer du poids sur la Lune au poids sur la Terre",
|
|
69
|
-
levels: ["2nde"],
|
|
70
105
|
isSingleStep: true,
|
|
71
|
-
sections: ["Forces"],
|
|
72
106
|
generator: (nb) => getDistinctQuestions(getWeightOnTheMoonQuestion, nb),
|
|
73
107
|
qcmTimer: 60,
|
|
74
108
|
freeTimer: 60,
|
|
@@ -76,4 +110,5 @@ export const weightOnTheMoon = {
|
|
|
76
110
|
isAnswerValid,
|
|
77
111
|
subject: "Physique",
|
|
78
112
|
hasHintAndCorrection: true,
|
|
113
|
+
getQuestionFromIdentifiers,
|
|
79
114
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -128,19 +128,20 @@ declare const mathExercises: (Exercise<{
|
|
|
128
128
|
}, {}> | Exercise<{
|
|
129
129
|
type: number;
|
|
130
130
|
flip: number;
|
|
131
|
+
subFlip: boolean;
|
|
131
132
|
a: number;
|
|
132
133
|
b: number;
|
|
133
134
|
c: number;
|
|
134
135
|
d: number;
|
|
135
136
|
}, {}> | Exercise<{
|
|
136
|
-
nodeIds:
|
|
137
|
+
nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
137
138
|
type: number;
|
|
138
139
|
subType: number;
|
|
139
140
|
}, {}> | Exercise<{
|
|
140
|
-
nodeIds:
|
|
141
|
+
nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
141
142
|
type: number;
|
|
142
143
|
}, {}> | Exercise<{
|
|
143
|
-
nodeIds:
|
|
144
|
+
nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
144
145
|
type: number;
|
|
145
146
|
}, {}> | Exercise<{
|
|
146
147
|
nb: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
@@ -160,6 +161,7 @@ declare const mathExercises: (Exercise<{
|
|
|
160
161
|
}, {}> | Exercise<{
|
|
161
162
|
scale: number;
|
|
162
163
|
isSmallScale: boolean;
|
|
164
|
+
isFakeAsked: boolean;
|
|
163
165
|
fakeDistance: number;
|
|
164
166
|
}, {}> | Exercise<{
|
|
165
167
|
coeffIds: any;
|
|
@@ -645,9 +647,9 @@ declare const mathExercises: (Exercise<{
|
|
|
645
647
|
initialY: number;
|
|
646
648
|
}, {}> | Exercise<{
|
|
647
649
|
type: string;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
650
|
+
randFuncIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
651
|
+
equaDiffIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
652
|
+
isSolution: boolean;
|
|
651
653
|
}, {}> | Exercise<{
|
|
652
654
|
a: number;
|
|
653
655
|
b: number;
|
|
@@ -1149,6 +1151,8 @@ declare const mathExercises: (Exercise<{
|
|
|
1149
1151
|
}, {}> | Exercise<{
|
|
1150
1152
|
A: number[];
|
|
1151
1153
|
B: number[];
|
|
1154
|
+
startLetter: string;
|
|
1155
|
+
endLetter: string;
|
|
1152
1156
|
}, {}> | Exercise<{
|
|
1153
1157
|
xu: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1154
1158
|
yu: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
@@ -1192,6 +1196,7 @@ declare const mathExercises: (Exercise<{
|
|
|
1192
1196
|
caracAsked: string;
|
|
1193
1197
|
uPoints: number[][];
|
|
1194
1198
|
vPoints: number[][];
|
|
1199
|
+
isTrue: boolean;
|
|
1195
1200
|
}, {}> | Exercise<{
|
|
1196
1201
|
a: number;
|
|
1197
1202
|
b: number;
|
|
@@ -1322,7 +1327,7 @@ declare const mathExercises: (Exercise<{
|
|
|
1322
1327
|
commands: string[];
|
|
1323
1328
|
}, {}> | Exercise<{
|
|
1324
1329
|
type: number;
|
|
1325
|
-
|
|
1330
|
+
objIds: import("./math/geometry/segment.js").SegmentIdentifiers | import("./math/geometry/ray.js").RayIdentifiers | import("./math/geometry/line.js").LineIdentifiers;
|
|
1326
1331
|
}, {}> | Exercise<{
|
|
1327
1332
|
isAskingLength: boolean;
|
|
1328
1333
|
isSegmentHeight: boolean;
|
|
@@ -1465,8 +1470,12 @@ declare const mathExercises: (Exercise<{
|
|
|
1465
1470
|
}, {}> | Exercise<{
|
|
1466
1471
|
type: number;
|
|
1467
1472
|
to: string;
|
|
1468
|
-
from:
|
|
1473
|
+
from: "+" | "-" | undefined;
|
|
1474
|
+
aPositive?: boolean;
|
|
1469
1475
|
a: number | undefined;
|
|
1476
|
+
b?: number;
|
|
1477
|
+
c?: number;
|
|
1478
|
+
polyPoints?: number[][];
|
|
1470
1479
|
}, {}> | Exercise<{
|
|
1471
1480
|
a: string;
|
|
1472
1481
|
b: string;
|
|
@@ -1477,6 +1486,8 @@ declare const mathExercises: (Exercise<{
|
|
|
1477
1486
|
AjCoeff: number;
|
|
1478
1487
|
BiCoeff: number;
|
|
1479
1488
|
BjCoeff: number;
|
|
1489
|
+
i: number;
|
|
1490
|
+
j: number;
|
|
1480
1491
|
}, {}> | Exercise<{
|
|
1481
1492
|
isPercentToDecimal: boolean;
|
|
1482
1493
|
nb: number;
|
|
@@ -2148,9 +2159,9 @@ declare const pcExercises: (Exercise<{
|
|
|
2148
2159
|
initialY: number;
|
|
2149
2160
|
}, {}> | Exercise<{
|
|
2150
2161
|
type: string;
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2162
|
+
randFuncIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2163
|
+
equaDiffIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2164
|
+
isSolution: boolean;
|
|
2154
2165
|
}, {}> | Exercise<{
|
|
2155
2166
|
b: number;
|
|
2156
2167
|
secondPoint: number[];
|
|
@@ -2220,10 +2231,9 @@ declare const pcExercises: (Exercise<{
|
|
|
2220
2231
|
givenAngle: number;
|
|
2221
2232
|
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2222
2233
|
}, {}> | Exercise<{
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
randomSpacieIndex: number;
|
|
2234
|
+
epsilon: number;
|
|
2235
|
+
l: number;
|
|
2236
|
+
molecule: string;
|
|
2227
2237
|
}, {}> | Exercise<{
|
|
2228
2238
|
concentrationMere: number;
|
|
2229
2239
|
volumeFille: number;
|
|
@@ -2253,6 +2263,18 @@ declare const pcExercises: (Exercise<{
|
|
|
2253
2263
|
randomMaterial1: number;
|
|
2254
2264
|
randomMaterial2: number;
|
|
2255
2265
|
ramdonAngleIncidenceDeg: number;
|
|
2266
|
+
}, {}> | Exercise<{
|
|
2267
|
+
atomicMass: number;
|
|
2268
|
+
atomicNumber: number;
|
|
2269
|
+
isAsking: string;
|
|
2270
|
+
symbol: string;
|
|
2271
|
+
}, {}> | Exercise<{
|
|
2272
|
+
isAsking: string;
|
|
2273
|
+
enetringLightX: number;
|
|
2274
|
+
enetringLightY: number;
|
|
2275
|
+
}, {}> | Exercise<{
|
|
2276
|
+
order: number;
|
|
2277
|
+
multiplier: number;
|
|
2256
2278
|
}, {}> | Exercise<{
|
|
2257
2279
|
frequency1: number;
|
|
2258
2280
|
frequency2: number;
|
|
@@ -2268,6 +2290,7 @@ declare const pcExercises: (Exercise<{
|
|
|
2268
2290
|
period: number;
|
|
2269
2291
|
frequency: number;
|
|
2270
2292
|
splinePoints: number[][];
|
|
2293
|
+
isAsking: "p\u00E9riode" | "fr\u00E9quence";
|
|
2271
2294
|
}, {}> | Exercise<{
|
|
2272
2295
|
xA: number;
|
|
2273
2296
|
yA: number;
|
|
@@ -2327,6 +2350,7 @@ declare const pcExercises: (Exercise<{
|
|
|
2327
2350
|
}, {}> | Exercise<{
|
|
2328
2351
|
lightYear: number;
|
|
2329
2352
|
}, {}> | Exercise<{
|
|
2353
|
+
varAsked: string;
|
|
2330
2354
|
v: number;
|
|
2331
2355
|
l: number;
|
|
2332
2356
|
T: number;
|
|
@@ -2395,7 +2419,14 @@ declare const pcExercises: (Exercise<{
|
|
|
2395
2419
|
vA: number;
|
|
2396
2420
|
vB: number;
|
|
2397
2421
|
cB: number;
|
|
2398
|
-
}, {}> | Exercise<{
|
|
2422
|
+
}, {}> | Exercise<{
|
|
2423
|
+
reactionArray: import("./pc/constants/molecularChemistry/reaction.js").ReactionSpecies[];
|
|
2424
|
+
}, {}> | Exercise<{
|
|
2425
|
+
reactionArray: import("./pc/constants/molecularChemistry/reaction.js").ReactionSpecies[];
|
|
2426
|
+
randomSpacieIndex: number;
|
|
2427
|
+
}, {}> | Exercise<{
|
|
2428
|
+
molecule: string;
|
|
2429
|
+
}, {}> | Exercise<{
|
|
2399
2430
|
mol: number;
|
|
2400
2431
|
molarMass: number;
|
|
2401
2432
|
}, {}> | Exercise<{
|
|
@@ -2490,10 +2521,14 @@ declare const pcExercises: (Exercise<{
|
|
|
2490
2521
|
efficiency: number;
|
|
2491
2522
|
variable: "P_in" | "P_out" | "\u03B7";
|
|
2492
2523
|
}, {}> | Exercise<{
|
|
2493
|
-
|
|
2524
|
+
delta: number;
|
|
2525
|
+
constant: number;
|
|
2526
|
+
step: number;
|
|
2527
|
+
speedVectorX1: number;
|
|
2494
2528
|
}, {}> | Exercise<{
|
|
2495
|
-
ggbCommands: string[];
|
|
2496
2529
|
movementType: string;
|
|
2530
|
+
a: number;
|
|
2531
|
+
b: number;
|
|
2497
2532
|
}, {}> | Exercise<{
|
|
2498
2533
|
distance: {
|
|
2499
2534
|
value: number;
|
|
@@ -2505,20 +2540,17 @@ declare const pcExercises: (Exercise<{
|
|
|
2505
2540
|
};
|
|
2506
2541
|
}, {}> | Exercise<{
|
|
2507
2542
|
typeOfAcceleration: string;
|
|
2508
|
-
|
|
2543
|
+
step: number;
|
|
2509
2544
|
}, {}> | Exercise<{
|
|
2510
2545
|
object1: string;
|
|
2511
2546
|
object2: string;
|
|
2512
2547
|
reference: "\u00E0 l'autre" | "au sol";
|
|
2548
|
+
isAskingObject1: boolean;
|
|
2513
2549
|
}, {}> | Exercise<{
|
|
2514
2550
|
speed: number;
|
|
2515
2551
|
distance: number;
|
|
2516
2552
|
deltaTime: number;
|
|
2517
2553
|
target: "vitesse moyenne" | "distance" | "temps";
|
|
2518
|
-
}, {}> | Exercise<{
|
|
2519
|
-
epsilon: number;
|
|
2520
|
-
l: number;
|
|
2521
|
-
molecule: string;
|
|
2522
2554
|
}, {}> | Exercise<{
|
|
2523
2555
|
moleculeName: string;
|
|
2524
2556
|
concentration: number;
|
|
@@ -2537,22 +2569,11 @@ declare const pcExercises: (Exercise<{
|
|
|
2537
2569
|
molarMass: number;
|
|
2538
2570
|
variable: "C" | "t" | "M";
|
|
2539
2571
|
}, {}> | Exercise<{
|
|
2540
|
-
wavelengths:
|
|
2572
|
+
wavelengths: number[];
|
|
2541
2573
|
targetColor: "bleue" | "verte" | "rouge";
|
|
2542
|
-
energy: import("./pc/measure/measure.js").Measure;
|
|
2543
|
-
}, {}> | Exercise<{
|
|
2544
|
-
atomicMass: number;
|
|
2545
|
-
atomicNumber: number;
|
|
2546
|
-
isAsking: string;
|
|
2547
|
-
symbol: string;
|
|
2548
2574
|
}, {}> | Exercise<{
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
order: number;
|
|
2552
|
-
multiplier: number;
|
|
2553
|
-
}, {}> | Exercise<{
|
|
2554
|
-
E: number;
|
|
2555
|
-
S: number;
|
|
2575
|
+
E: number[];
|
|
2576
|
+
S: number[];
|
|
2556
2577
|
}, {}>)[];
|
|
2557
2578
|
export { mathExercises, pcExercises, Exercise, Question, parseAlgebraic };
|
|
2558
2579
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/lib/latexTester.js
CHANGED
|
@@ -23,13 +23,13 @@ export const latexTester = (latex, isDefaultInMathMode = false) => {
|
|
|
23
23
|
if (inDoubleDollarMode &&
|
|
24
24
|
nextNextChar !== undefined &&
|
|
25
25
|
nextNextChar !== "\n") {
|
|
26
|
-
throw new Error(`Whitespace missing after start double dollar, got char ${nextNextChar}`);
|
|
26
|
+
throw new Error(`Whitespace missing after start double dollar, got char ${nextNextChar}, latex : ${latex}`);
|
|
27
27
|
}
|
|
28
28
|
if (!inDoubleDollarMode &&
|
|
29
29
|
nextNextChar !== undefined &&
|
|
30
30
|
nextNextChar !== "\n" &&
|
|
31
31
|
nextNextChar !== " ") {
|
|
32
|
-
throw new Error(`Whitespace missing after end double dollar, got char ${nextNextChar}`);
|
|
32
|
+
throw new Error(`Whitespace missing after end double dollar, got char ${nextNextChar} latex : ${latex}`);
|
|
33
33
|
}
|
|
34
34
|
i++;
|
|
35
35
|
}
|
|
@@ -228,4 +228,9 @@ const validCmds = [
|
|
|
228
228
|
"\\lambda",
|
|
229
229
|
"\\ell",
|
|
230
230
|
"\\cancel",
|
|
231
|
+
"\\sum",
|
|
232
|
+
"\\parallel",
|
|
233
|
+
"\\Rightarrow",
|
|
234
|
+
"\\eta",
|
|
235
|
+
"\\Leftrightarrow",
|
|
231
236
|
];
|