math-exercises 2.2.27 → 2.2.28
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 +2 -1
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/exercise.js +1 -1
- package/lib/exercises/math/calcul/addAndSub.js +1 -1
- package/lib/exercises/math/calcul/addAndSubWithoutRelatives.js +1 -1
- package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +1 -1
- package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.js +1 -1
- package/lib/exercises/math/calcul/arithmetics/divisorsList.js +1 -1
- package/lib/exercises/math/calcul/arithmetics/paritySumsAndProducts.js +1 -1
- package/lib/exercises/math/calcul/decimals/multiplyDecimalByTens.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionAndIntegerSum.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionToPercentToDecimal.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsDivision.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsProduct.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsSum.js +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsSumsMultiplesDenominators.js +1 -1
- package/lib/exercises/math/calcul/fractions/simplifyFraction.js +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.js +2 -2
- package/lib/exercises/math/calcul/mentalCaluls/mentalDivisions.js +2 -2
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplications.js +2 -2
- package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationsNoRelative.js +2 -2
- package/lib/exercises/math/calcul/mentalCaluls/mentalPercentage.js +2 -2
- package/lib/exercises/math/calcul/operations/expressionNature.js +1 -1
- package/lib/exercises/math/calcul/operations/operationsPriorities.js +2 -2
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesis.js +1 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesParenthesisNoRelatives.js +1 -1
- package/lib/exercises/math/calcul/operations/operationsPrioritiesWithoutRelative.js +2 -2
- package/lib/exercises/math/calcul/ordering/decimalOrdering.js +1 -1
- package/lib/exercises/math/calcul/ordering/decimalOrderingNoRelatives.js +1 -1
- package/lib/exercises/math/calcul/ordering/framing.js +2 -2
- package/lib/exercises/math/calcul/ordering/integerOrdering.js +2 -2
- package/lib/exercises/math/calcul/proportionality/proportionalityTable.js +1 -1
- package/lib/exercises/math/calcul/proportionality/proportionalityTableCoefficient.js +1 -1
- package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +1 -1
- package/lib/exercises/math/calcul/proportionality/scaleUsage.js +1 -1
- package/lib/exercises/math/calcul/rounding/rounding.js +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/allIdentities.js +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivity.js +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/simpleDistributivity.js +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/binomialsTrinomialsProposedSolutions.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationFromSentenceExercise.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +3 -3
- package/lib/exercises/math/calculLitteral/equation/equationType1Exercise.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationType2Exercise.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationType3Exercise.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationType4Exercise.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquation.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/fractionEquation.js +1 -1
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +2 -2
- package/lib/exercises/math/calculLitteral/factorisation/factoType2.js +1 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType0.js +2 -2
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType1.js +2 -2
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.js +2 -2
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +2 -2
- package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.js +1 -1
- package/lib/exercises/math/calculLitteral/simplifying/distributeAndSimplify.js +1 -1
- package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.js +2 -2
- package/lib/exercises/math/calculLitteral/simplifying/reduceExpression.js +1 -1
- package/lib/exercises/math/calculLitteral/systems/basicNiceValuesSystemResolution.js +1 -1
- package/lib/exercises/math/calculLitteral/systems/basicSystemResolution.js +1 -1
- package/lib/exercises/math/calculLitteral/systems/verifySystemSolution.js +1 -1
- package/lib/exercises/math/combinatory/anagrams.js +1 -1
- package/lib/exercises/math/complex/addComplex.js +1 -1
- package/lib/exercises/math/complex/argumentFromAlgebraicComplex.js +1 -1
- package/lib/exercises/math/complex/conjugateComplex.ts.js +1 -1
- package/lib/exercises/math/complex/conjugateDivideComplex.js +1 -1
- package/lib/exercises/math/complex/conjugateMultiplyComplex.js +1 -1
- package/lib/exercises/math/complex/divideComplex.js +1 -1
- package/lib/exercises/math/complex/inverseComplex.js +1 -1
- package/lib/exercises/math/complex/linearCombinaisonComplex.js +1 -1
- package/lib/exercises/math/complex/mutiplyComplex.js +1 -1
- package/lib/exercises/math/complex/reAndIm.js +2 -2
- package/lib/exercises/math/conversion/aeraConversion.js +1 -1
- package/lib/exercises/math/conversion/capacityConversion.js +1 -1
- package/lib/exercises/math/conversion/hoursToDecimal.js +1 -1
- package/lib/exercises/math/conversion/lengthConversion.js +1 -1
- package/lib/exercises/math/conversion/massConversion.js +1 -1
- package/lib/exercises/math/conversion/volumeCapacityConversion.js +2 -2
- package/lib/exercises/math/conversion/volumeConversion.js +1 -1
- package/lib/exercises/math/derivation/derivative/convexityQuadrinomials.js +1 -1
- package/lib/exercises/math/derivation/derivative/lnDerivativeTwo.js +1 -1
- package/lib/exercises/math/derivation/derivative/rootFunctionDerivative.js +1 -1
- package/lib/exercises/math/derivation/derivative/secondDegreeDerivative.js +1 -1
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +2 -2
- package/lib/exercises/math/derivation/tangent/derivativeNumberReading.js +1 -1
- package/lib/exercises/math/derivation/tangent/derivativeTangentEquationReading.js +1 -1
- package/lib/exercises/math/equaDiff/equaDiffCheckSolutionFirstOrder.js +2 -2
- package/lib/exercises/math/equaDiff/equaDiffGeneralForme.js +1 -1
- package/lib/exercises/math/equaDiff/equaDiffGeneralFormeWithIC.js +1 -1
- package/lib/exercises/math/functions/absolute/absoluteValueEquations.js +2 -2
- package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +1 -1
- package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +1 -1
- package/lib/exercises/math/functions/affines/leadingCoeffAndOriginOrdinate.js +1 -1
- package/lib/exercises/math/functions/affines/leadingCoefficient.js +1 -1
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV1.js +1 -1
- package/lib/exercises/math/functions/affines/leadingCoefficientCalculV2.js +1 -1
- package/lib/exercises/math/functions/affines/signFunction.js +2 -2
- package/lib/exercises/math/functions/basics/graphicEquation.js +1 -1
- package/lib/exercises/math/functions/basics/graphicInequation.js +1 -1
- package/lib/exercises/math/functions/basics/imageFunction.js +2 -2
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.js +2 -2
- package/lib/exercises/math/functions/basics/inverseImageFunction.js +1 -1
- package/lib/exercises/math/functions/basics/inverseImageFunctionGeogebra.js +2 -2
- package/lib/exercises/math/functions/basics/inverseImageFunctionTable.js +3 -3
- package/lib/exercises/math/functions/basics/twoFunctionsEquation.js +2 -2
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +2 -2
- package/lib/exercises/math/functions/cube/cubicEquation.js +1 -1
- package/lib/exercises/math/functions/exponential/expEquation.js +1 -1
- package/lib/exercises/math/functions/exponential/expSimplifiying.js +1 -1
- package/lib/exercises/math/functions/integral/integralExpU.js +1 -1
- package/lib/exercises/math/functions/integral/integralFractions.js +1 -1
- package/lib/exercises/math/functions/logarithm/log10Simplifying.js +1 -1
- package/lib/exercises/math/functions/logarithm/logEquation.js +1 -1
- package/lib/exercises/math/functions/logarithm/logSimplifiying.js +2 -2
- package/lib/exercises/math/functions/parity/parityFromAlgebra.js +3 -3
- package/lib/exercises/math/functions/parity/parityFromGraph.js +3 -3
- package/lib/exercises/math/functions/rationalFraction/rationalFractionForbiddenValue.js +1 -1
- package/lib/exercises/math/functions/trinoms/alphaBetaFromDevForm.js +2 -2
- package/lib/exercises/math/functions/trinoms/alphaBetaInCanonicalForm.js +2 -2
- package/lib/exercises/math/functions/trinoms/canonicalFromDevForm.js +1 -1
- package/lib/exercises/math/functions/trinoms/deltaTrinom.js +1 -1
- package/lib/exercises/math/functions/trinoms/extremumFromCanonicalForm.js +1 -1
- package/lib/exercises/math/functions/trinoms/extremumTypeFromAlgebricForm.js +2 -2
- package/lib/exercises/math/functions/trinoms/factorizedFormFromRoots.js +1 -1
- package/lib/exercises/math/functions/trinoms/niceRootsFromDevForm.js +1 -1
- package/lib/exercises/math/functions/trinoms/rootsFromDevForm.js +1 -1
- package/lib/exercises/math/functions/trinoms/rootsFromFactorizedForm.js +1 -1
- package/lib/exercises/math/functions/trinoms/solveSecondDegreeEquationByFactorisation.js +1 -1
- package/lib/exercises/math/functions/trinoms/variationsFromAlgebricForm.js +2 -2
- package/lib/exercises/math/geometry/areas/circleArea.js +2 -2
- package/lib/exercises/math/geometry/areas/rectangleArea.js +1 -1
- package/lib/exercises/math/geometry/areas/rightTriangleArea.js +1 -1
- package/lib/exercises/math/geometry/areas/squareArea.js +1 -1
- package/lib/exercises/math/geometry/areas/triangleArea.js +1 -1
- package/lib/exercises/math/geometry/areas/triangleAreaV2.js +1 -1
- package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.js +1 -1
- package/lib/exercises/math/geometry/cartesian/index.d.ts +4 -0
- package/lib/exercises/math/geometry/cartesian/index.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/index.js +4 -0
- package/lib/exercises/math/geometry/cartesian/midpoint.js +1 -1
- package/lib/exercises/math/geometry/cartesian/placeAPoint.js +1 -1
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnLine.d.ts +13 -0
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnLine.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnLine.js +133 -0
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.d.ts +13 -0
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/placeAbscissOnSemiLine.js +132 -0
- package/lib/exercises/math/geometry/cartesian/pointCoordinatesNoOrthonorm.js +1 -1
- package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.d.ts +12 -0
- package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.js +151 -91
- package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.d.ts +13 -0
- package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.js +153 -0
- package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +1 -1
- package/lib/exercises/math/geometry/convexity/convexityTrinomialsGeo.js +1 -1
- package/lib/exercises/math/geometry/perimeters/circleCircumference.js +2 -2
- package/lib/exercises/math/geometry/perimeters/rectanglePerimeter.js +1 -1
- package/lib/exercises/math/geometry/perimeters/squarePerimeter.js +1 -1
- package/lib/exercises/math/geometry/perimeters/trianglePerimeter.js +1 -1
- package/lib/exercises/math/geometry/pythagore/pythagoreCalcul.js +2 -2
- package/lib/exercises/math/geometry/thales/thales.js +1 -1
- package/lib/exercises/math/geometry/thales/thalesCalcul.js +2 -2
- package/lib/exercises/math/geometry/vectors/alignementViaColinearity.js +2 -2
- package/lib/exercises/math/geometry/vectors/chasles.js +2 -2
- package/lib/exercises/math/geometry/vectors/colinearity.js +2 -2
- package/lib/exercises/math/geometry/vectors/determinant.js +1 -1
- package/lib/exercises/math/geometry/vectors/equalCaracteristicFromGraph.js +2 -2
- package/lib/exercises/math/geometry/vectors/fourthParallelogramPoint.js +1 -1
- package/lib/exercises/math/geometry/vectors/paralellismViaColinearity.js +2 -2
- package/lib/exercises/math/geometry/vectors/parallelogramViaEqualVectors.js +2 -2
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithSquareOrRectBase.js +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleBase.js +1 -1
- package/lib/exercises/math/geometry/volumes/volumeOfPyramidWithTriangleRectBase.js +1 -1
- package/lib/exercises/math/limits/limitReading.js +1 -1
- package/lib/exercises/math/limits/polynomLimit.js +2 -2
- package/lib/exercises/math/limits/polynomLimitNoFI.js +2 -2
- package/lib/exercises/math/limits/rationalFracForbiddenValueLimit.js +1 -1
- package/lib/exercises/math/limits/rationalFracLimit.js +2 -2
- package/lib/exercises/math/limits/sequencePolynomLimit.js +1 -1
- package/lib/exercises/math/limits/sequencePolynomNoFILimit.js +1 -1
- package/lib/exercises/math/limits/sequencePolynomProductLimit.js +1 -1
- package/lib/exercises/math/limits/sequenceRationalFracLimit.js +1 -1
- package/lib/exercises/math/percent/applyPercent.js +2 -2
- package/lib/exercises/math/percent/averageEvolutionRate.js +1 -1
- package/lib/exercises/math/percent/cmToEvolution.js +1 -1
- package/lib/exercises/math/percent/evolutionRateFromValues.d.ts +8 -0
- package/lib/exercises/math/percent/evolutionRateFromValues.d.ts.map +1 -0
- package/lib/exercises/math/percent/evolutionRateFromValues.js +71 -0
- package/lib/exercises/math/percent/findStartValueAfterEvolution.d.ts +8 -0
- package/lib/exercises/math/percent/findStartValueAfterEvolution.d.ts.map +1 -0
- package/lib/exercises/math/percent/findStartValueAfterEvolution.js +65 -0
- package/lib/exercises/math/percent/findTVA.js +2 -2
- package/lib/exercises/math/percent/globalPercent.js +1 -1
- package/lib/exercises/math/percent/htToTTC.js +2 -2
- package/lib/exercises/math/percent/index.d.ts +4 -0
- package/lib/exercises/math/percent/index.d.ts.map +1 -1
- package/lib/exercises/math/percent/index.js +4 -0
- package/lib/exercises/math/percent/isTableProportional.js +1 -1
- package/lib/exercises/math/percent/percentToDecimal.js +2 -2
- package/lib/exercises/math/percent/populationEffectifFromSubPopulation.d.ts +9 -0
- package/lib/exercises/math/percent/populationEffectifFromSubPopulation.d.ts.map +1 -0
- package/lib/exercises/math/percent/populationEffectifFromSubPopulation.js +93 -0
- package/lib/exercises/math/percent/reciprocalPercentage.js +2 -2
- package/lib/exercises/math/percent/subPopulationEffectifFromPercent.d.ts +9 -0
- package/lib/exercises/math/percent/subPopulationEffectifFromPercent.d.ts.map +1 -0
- package/lib/exercises/math/percent/subPopulationEffectifFromPercent.js +85 -0
- package/lib/exercises/math/percent/ttcToHT.js +2 -2
- package/lib/exercises/math/powers/decimalToScientific.js +1 -1
- package/lib/exercises/math/powers/powersDivision.js +1 -1
- package/lib/exercises/math/powers/powersOfTenToDecimal.js +1 -1
- package/lib/exercises/math/powers/powersProduct.js +1 -1
- package/lib/exercises/math/primitive/constantPrimitive.js +1 -1
- package/lib/exercises/math/primitive/logarithmePrimitive.js +1 -1
- package/lib/exercises/math/primitive/polynomialPrimitive.js +1 -1
- package/lib/exercises/math/primitive/sinCosPrimitive.js +2 -2
- package/lib/exercises/math/primitive/sinUCosUPrimitive.js +2 -2
- package/lib/exercises/math/probaStat/cardBasicProbas.js +2 -2
- package/lib/exercises/math/probaStat/conditionalProbability.js +1 -1
- package/lib/exercises/math/probaStat/diceBasicProbas.js +2 -2
- package/lib/exercises/math/probaStat/independancy.js +2 -2
- package/lib/exercises/math/probaStat/issuesCountingForCards.js +3 -3
- package/lib/exercises/math/probaStat/probaFromTableNoContext.js +1 -1
- package/lib/exercises/math/probaStat/probaFromTableWithContext.js +1 -1
- package/lib/exercises/math/probaStat/probabilityTree.js +1 -1
- package/lib/exercises/math/probaStat/stats1var/averageWithTable.js +1 -1
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/marginalAndConditionalFrequency.js +2 -1
- package/lib/exercises/math/probaStat/stats1var/median.js +1 -1
- package/lib/exercises/math/probaStat/stats1var/quartiles.js +1 -1
- package/lib/exercises/math/probaStat/stats2var/fineAdjustementExercise.js +1 -1
- package/lib/exercises/math/python/pyForLoop1Exercise.js +2 -2
- package/lib/exercises/math/python/pyNestedForLoopExercise.js +1 -1
- package/lib/exercises/math/python/pyWhileLoop1Exercise.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormula.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplictFormulaFirstTermRandom.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReason.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindTerm.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticReasonUsage.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/firstIntegersSum.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromFirstTerms.js +2 -2
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +2 -2
- package/lib/exercises/math/sequences/geometric/geometricExplicitFormulaUsage.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormula.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindReason.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindTerm.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsGeneralSum.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFirstTermsSum.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricReasonUsage.js +1 -1
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +1 -1
- package/lib/exercises/math/sequences/sequencePlot.js +1 -1
- package/lib/exercises/math/sets/intervals/inequalityToInterval.js +1 -1
- package/lib/exercises/math/sets/intervals/intervalToInequality.js +1 -1
- package/lib/exercises/math/sets/intervals/intervalsIntersection.js +1 -1
- package/lib/exercises/math/sets/intervals/intervalsUnion.js +1 -1
- package/lib/exercises/math/sets/setBelonging.js +2 -2
- package/lib/exercises/math/squareRoots/simpifySquareRoot.js +1 -1
- package/lib/exercises/math/squareRoots/squareRootEquation.js +1 -1
- package/lib/exercises/math/squareRoots/squareRootIdentities.js +2 -2
- package/lib/exercises/math/squareRoots/squareRootsSum.js +1 -1
- package/lib/exercises/math/trigonometry/arcLength.d.ts +10 -0
- package/lib/exercises/math/trigonometry/arcLength.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/arcLength.js +92 -0
- package/lib/exercises/math/trigonometry/associatePoint.js +1 -1
- package/lib/exercises/math/trigonometry/basicEquationCos.d.ts +7 -0
- package/lib/exercises/math/trigonometry/basicEquationCos.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/basicEquationCos.js +94 -0
- package/lib/exercises/math/trigonometry/basicEquationSin.d.ts +7 -0
- package/lib/exercises/math/trigonometry/basicEquationSin.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/basicEquationSin.js +106 -0
- package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.d.ts +7 -0
- package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.js +85 -0
- package/lib/exercises/math/trigonometry/calculateCosSinAndTan.js +1 -1
- package/lib/exercises/math/trigonometry/degreeToRadians.d.ts +9 -0
- package/lib/exercises/math/trigonometry/degreeToRadians.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/degreeToRadians.js +125 -0
- package/lib/exercises/math/trigonometry/index.d.ts +6 -0
- package/lib/exercises/math/trigonometry/index.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/index.js +6 -0
- package/lib/exercises/math/trigonometry/mainAngleMeasure.d.ts +9 -0
- package/lib/exercises/math/trigonometry/mainAngleMeasure.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/mainAngleMeasure.js +91 -0
- package/lib/exercises/math/trigonometry/mainRemarkableValues.js +2 -2
- package/lib/exercises/math/trigonometry/remarkableValues.js +3 -3
- package/lib/exercises/math/trigonometry/trigonometry.js +1 -1
- package/lib/exercises/math/trigonometry/trigonometryAngleCalcul.js +1 -1
- package/lib/exercises/math/trigonometry/trigonometrySideCalcul.js +1 -1
- package/lib/exercises/pc/calibrationCurveOfSolution.js +2 -2
- package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +1 -1
- package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.js +2 -2
- package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.js +1 -1
- package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.js +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.js +1 -1
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +1 -1
- package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +2 -2
- package/lib/exercises/pc/chemicalEquations.js +1 -1
- package/lib/exercises/pc/chemicalReactions/calculateCombustionEnergy.js +1 -1
- package/lib/exercises/pc/chemicalReactions/identifyStoichiometricMixture.js +1 -1
- package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +1 -1
- package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.js +1 -1
- package/lib/exercises/pc/chemicalReactionsProduct.js +1 -1
- package/lib/exercises/pc/delution.js +1 -1
- package/lib/exercises/pc/dosage/beerLambertRandomValue.js +1 -1
- package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.js +1 -1
- package/lib/exercises/pc/electricity/calculateVoltage.js +1 -1
- package/lib/exercises/pc/electricity/electricEnergyFromPower.js +1 -1
- package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +2 -2
- package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.js +1 -1
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +1 -1
- package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +2 -2
- package/lib/exercises/pc/fluids/mariotte.js +1 -1
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +1 -1
- package/lib/exercises/pc/forces/forceWork.js +1 -1
- package/lib/exercises/pc/forces/massWeight.js +1 -1
- package/lib/exercises/pc/forces/pressingForce.js +1 -1
- package/lib/exercises/pc/formulaFromComposition.js +1 -1
- package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.js +2 -2
- package/lib/exercises/pc/kineticEnergy.js +1 -1
- package/lib/exercises/pc/math/isolateVariables.js +1 -1
- package/lib/exercises/pc/math/proportionnalityCoeffFromLine.js +1 -1
- package/lib/exercises/pc/molarQuantity.js +1 -1
- package/lib/exercises/pc/mole/molarMass.js +1 -1
- package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.js +1 -1
- package/lib/exercises/pc/moleculeFormula.js +1 -1
- package/lib/exercises/pc/moleculeNomenclature.js +1 -1
- package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -1
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +1 -1
- package/lib/exercises/pc/motion/motionReference.js +1 -1
- package/lib/exercises/pc/motion/typeOfAcceleration.js +1 -1
- package/lib/exercises/pc/motion/typeOfMovement.js +1 -1
- package/lib/exercises/pc/pH.js +1 -1
- package/lib/exercises/pc/perceivedFrequency.js +1 -1
- package/lib/exercises/pc/potentialEnergy.js +1 -1
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +1 -1
- package/lib/exercises/pc/snellDescartes.js +1 -1
- package/lib/exercises/pc/sound/findPeriodFromGraph.js +1 -1
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +1 -1
- package/lib/exercises/pc/sound/frequencyComparison.js +1 -1
- package/lib/exercises/pc/waves/lightDistanceConversion.js +1 -1
- package/lib/exercises/pc/waves/periodicWaveCelerity.js +1 -1
- package/lib/exercises/pc/weight/weightOnTheMoon.js +1 -1
- package/lib/exercises/utils/getDistinctQuestions.d.ts +1 -1
- package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -1
- package/lib/exercises/utils/getDistinctQuestions.js +11 -5
- package/lib/geogebra/colors.js +1 -1
- package/lib/geogebra/geogebraConstructor.js +1 -1
- package/lib/geogebra/parsers/ggbPointToCoords.d.ts +5 -0
- package/lib/geogebra/parsers/ggbPointToCoords.d.ts.map +1 -0
- package/lib/geogebra/parsers/ggbPointToCoords.js +12 -0
- package/lib/geogebra/parsers/parseGGBPoints.d.ts +2 -0
- package/lib/geogebra/parsers/parseGGBPoints.d.ts.map +1 -0
- package/lib/geogebra/parsers/parseGGBPoints.js +10 -0
- package/lib/index.d.ts +61 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/line.d.ts.map +1 -1
- package/lib/math/geometry/line.js +0 -1
- package/lib/math/inequations/inequation.js +1 -1
- package/lib/math/numbers/integer/integer.js +1 -1
- package/lib/math/numbers/nombre.js +1 -1
- package/lib/math/numbers/rationals/rational.js +3 -3
- package/lib/math/numbers/reals/real.js +2 -2
- package/lib/math/polynomials/polynomial.js +1 -1
- package/lib/math/polynomials/trinom.js +1 -1
- package/lib/math/sequences/geometricSequence.d.ts +2 -2
- package/lib/math/sequences/geometricSequence.d.ts.map +1 -1
- package/lib/math/sequences/geometricSequence.js +13 -11
- package/lib/math/sets/discreteSet.d.ts +2 -2
- package/lib/math/sets/discreteSet.d.ts.map +1 -1
- package/lib/math/sets/discreteSet.js +4 -4
- package/lib/math/sets/intervals/intervals.js +1 -1
- package/lib/math/trigonometry/remarkableValue.js +1 -1
- package/lib/math/trigonometry/remarkableValues.d.ts +3 -0
- package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -1
- package/lib/math/trigonometry/remarkableValues.js +72 -1
- package/lib/math/utils/random/randTupleInt.js +1 -1
- package/lib/playground.d.ts.map +1 -1
- package/lib/playground.js +1 -31
- package/lib/tree/nodes/equations/multiEqualNode.js +2 -2
- package/lib/tree/nodes/geometry/degree.d.ts.map +1 -1
- package/lib/tree/nodes/geometry/degree.js +3 -2
- package/lib/tree/nodes/geometry/pointNode.js +1 -1
- package/lib/tree/nodes/inequations/inequationNode.js +1 -1
- package/lib/tree/nodes/operators/addNode.js +3 -3
- package/lib/tree/nodes/operators/divideNode.js +1 -1
- package/lib/tree/nodes/operators/multiplyNode.js +3 -3
- package/lib/tree/nodes/operators/substractNode.js +1 -1
- package/lib/tree/nodes/sets/discreteSetNode.d.ts +1 -0
- package/lib/tree/nodes/sets/discreteSetNode.d.ts.map +1 -1
- package/lib/tree/nodes/sets/discreteSetNode.js +8 -2
- package/lib/tree/nodes/sets/intervalNode.js +1 -1
- package/lib/tree/nodes/sets/unionIntervalNode.js +2 -2
- package/lib/tree/parsers/euroParser.d.ts +2 -0
- package/lib/tree/parsers/euroParser.d.ts.map +1 -0
- package/lib/tree/parsers/euroParser.js +12 -0
- package/lib/tree/parsers/percentParser.d.ts +1 -0
- package/lib/tree/parsers/percentParser.d.ts.map +1 -1
- package/lib/tree/parsers/percentParser.js +11 -0
- package/lib/utils/alea/coinFlip.d.ts +2 -0
- package/lib/utils/alea/coinFlip.d.ts.map +1 -0
- package/lib/utils/alea/coinFlip.js +7 -0
- package/lib/utils/alea/diceFlip.d.ts +2 -0
- package/lib/utils/alea/diceFlip.d.ts.map +1 -0
- package/lib/utils/alea/diceFlip.js +8 -0
- package/lib/utils/alea/probaFlip.d.ts +7 -0
- package/lib/utils/alea/probaFlip.d.ts.map +1 -0
- package/lib/utils/alea/probaFlip.js +12 -0
- package/lib/utils/alea/probaLawFlip.d.ts +7 -0
- package/lib/utils/alea/probaLawFlip.d.ts.map +1 -0
- package/lib/utils/alea/probaLawFlip.js +24 -0
- package/lib/utils/alea/random.d.ts +2 -0
- package/lib/utils/alea/random.d.ts.map +1 -0
- package/lib/utils/alea/random.js +7 -0
- package/lib/utils/alea/randomEnumValue.d.ts +2 -0
- package/lib/utils/alea/randomEnumValue.d.ts.map +1 -0
- package/lib/utils/alea/randomEnumValue.js +9 -0
- package/lib/utils/alea/shuffle.d.ts +2 -0
- package/lib/utils/alea/shuffle.d.ts.map +1 -0
- package/lib/utils/alea/shuffle.js +15 -0
- package/lib/utils/arrays/arrayEqual.d.ts +2 -0
- package/lib/utils/arrays/arrayEqual.d.ts.map +1 -0
- package/lib/utils/arrays/arrayEqual.js +13 -0
- package/lib/utils/arrays/arrayHasSameElement.d.ts +2 -0
- package/lib/utils/arrays/arrayHasSameElement.d.ts.map +1 -0
- package/lib/utils/arrays/arrayHasSameElement.js +8 -0
- package/lib/utils/arrays/cartesianProducts.d.ts +13 -0
- package/lib/utils/arrays/cartesianProducts.d.ts.map +1 -0
- package/lib/utils/arrays/cartesianProducts.js +64 -0
- package/lib/utils/arrays/enumToArray.d.ts +8 -0
- package/lib/utils/arrays/enumToArray.d.ts.map +1 -0
- package/lib/utils/arrays/enumToArray.js +16 -0
- package/lib/utils/arrays/permutations.d.ts +2 -0
- package/lib/utils/arrays/permutations.d.ts.map +1 -0
- package/lib/utils/arrays/permutations.js +21 -0
- package/lib/utils/latex/alignTex.d.ts +1 -1
- package/lib/utils/latex/alignTex.d.ts.map +1 -1
- package/lib/utils/latex/alignTex.js +3 -3
- package/package.json +1 -1
|
@@ -13,10 +13,11 @@ export type Proposition = {
|
|
|
13
13
|
};
|
|
14
14
|
export type GeogebraAxisOptions = {
|
|
15
15
|
steps?: number;
|
|
16
|
-
|
|
16
|
+
hidden?: boolean;
|
|
17
17
|
hideNumbers?: boolean;
|
|
18
18
|
label?: string;
|
|
19
19
|
natural?: boolean;
|
|
20
|
+
showPositive?: boolean;
|
|
20
21
|
};
|
|
21
22
|
export type GeogebraOptions = {
|
|
22
23
|
customToolBar?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CAAC;AACF,eAAO,MAAM,YAAY,UAChB,WAAW,EAAE,aACT,MAAM,WACT,KAAK,GAAG,KAAK,SAQtB,CA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,WAAW,GACX,mBAAmB,GACnB,wBAAwB,GACxB,WAAW,GACX,uBAAuB,GACvB,uBAAuB,GACvB,aAAa,GACb,aAAa,GACb,SAAS,GACT,qBAAqB,GACrB,oBAAoB,GACpB,UAAU,GACV,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,iBAAiB,GACjB,cAAc,GACd,cAAc,GACd,QAAQ,GACR,UAAU,GACV,uBAAuB,GACvB,oBAAoB,GACpB,eAAe,GACf,gBAAgB,GAChB,UAAU,CAAC;AAEf,MAAM,MAAM,SAAS,GACjB,mBAAmB,GACnB,sBAAsB,GACtB,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,SAAS,GACT,cAAc,GACd,+CAA+C,GAC/C,OAAO,GACP,KAAK,GACL,wBAAwB,GACxB,SAAS,GACT,KAAK,GACL,aAAa,GACb,4BAA4B,GAC5B,oBAAoB,GACpB,WAAW,GACX,iBAAiB,GACjB,SAAS,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.shuffleProps = exports.tryToAddWrongProp = exports.addWrongProp = exports.addValidProp = void 0;
|
|
4
|
-
const shuffle_1 = require("../utils/shuffle");
|
|
4
|
+
const shuffle_1 = require("../utils/alea/shuffle");
|
|
5
5
|
const uuidv4_1 = require("uuidv4");
|
|
6
6
|
const addValidProp = (props, statement, format = "tex") => {
|
|
7
7
|
props.push({
|
|
@@ -5,7 +5,7 @@ const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQues
|
|
|
5
5
|
const randint_1 = require("../../../math/utils/random/randint");
|
|
6
6
|
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
7
7
|
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
8
|
-
const shuffle_1 = require("../../../utils/shuffle");
|
|
8
|
+
const shuffle_1 = require("../../../utils/alea/shuffle");
|
|
9
9
|
const exercise_1 = require("../../exercise");
|
|
10
10
|
/**
|
|
11
11
|
* a±b±c±d
|
|
@@ -4,7 +4,7 @@ exports.addAndSubWithoutRelatives = void 0;
|
|
|
4
4
|
const randint_1 = require("../../../math/utils/random/randint");
|
|
5
5
|
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
6
6
|
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
7
|
-
const shuffle_1 = require("../../../utils/shuffle");
|
|
7
|
+
const shuffle_1 = require("../../../utils/alea/shuffle");
|
|
8
8
|
const exercise_1 = require("../../exercise");
|
|
9
9
|
const getDistinctQuestions_1 = require("../../utils/getDistinctQuestions");
|
|
10
10
|
/**
|
|
@@ -7,7 +7,7 @@ const dividersOf_1 = require("../../../../math/utils/arithmetic/dividersOf");
|
|
|
7
7
|
const gcd_1 = require("../../../../math/utils/arithmetic/gcd");
|
|
8
8
|
const isPrime_1 = require("../../../../math/utils/arithmetic/isPrime");
|
|
9
9
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
11
|
const doWhile_1 = require("../../../../utils/doWhile");
|
|
12
12
|
const getCommonDivisorsListQuestion = () => {
|
|
13
13
|
const a = (0, doWhile_1.doWhile)(() => (0, randint_1.randint)(30, 150), (x) => (0, isPrime_1.isPrime)(x));
|
|
@@ -4,7 +4,7 @@ exports.divisibiltyCriteria = void 0;
|
|
|
4
4
|
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const primes_1 = require("../../../../math/numbers/integer/primes");
|
|
7
|
-
const random_1 = require("../../../../utils/random");
|
|
7
|
+
const random_1 = require("../../../../utils/alea/random");
|
|
8
8
|
const getPropositions = (n, { answer, divisor }) => {
|
|
9
9
|
const propositions = [];
|
|
10
10
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const dividersOf_1 = require("../../../../math/utils/arithmetic/dividersOf");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
8
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
9
9
|
const doWhile_1 = require("../../../../utils/doWhile");
|
|
10
10
|
const getDivisorsListQuestion = () => {
|
|
11
11
|
const a = (0, randint_1.randint)(30, 90);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.paritySumsAndProducts = void 0;
|
|
4
4
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
5
5
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
6
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
6
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const getParitySumsAndProductsQuestion = () => {
|
|
9
9
|
const type = (0, randint_1.randint)(0, 12);
|
|
@@ -7,7 +7,7 @@ const decimal_1 = require("../../../../math/numbers/decimals/decimal");
|
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
8
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
11
|
const pluralize_1 = require("../../../../utils/strings/pluralize");
|
|
12
12
|
const getMultiplyDecimalByTensQuestion = () => {
|
|
13
13
|
const dec = decimal_1.DecimalConstructor.random(1, 200, (0, randint_1.randint)(1, 5));
|
|
@@ -8,7 +8,7 @@ const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
|
8
8
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
9
9
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
10
10
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
11
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
12
12
|
const getFractionAndIntegerDivision = () => {
|
|
13
13
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
14
14
|
const integerFirst = (0, coinFlip_1.coinFlip)();
|
|
@@ -7,7 +7,7 @@ const integer_1 = require("../../../../math/numbers/integer/integer");
|
|
|
7
7
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
8
8
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
11
11
|
const getFractionAndIntegerProduct = () => {
|
|
12
12
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
13
13
|
const integer = new integer_1.Integer((0, randint_1.randint)(-10, 11, [0, 1]));
|
|
@@ -7,7 +7,7 @@ const integer_1 = require("../../../../math/numbers/integer/integer");
|
|
|
7
7
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
8
8
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
9
9
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
10
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
11
11
|
const getFractionAndIntegerSum = () => {
|
|
12
12
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
13
13
|
const integer = new integer_1.Integer((0, randint_1.randint)(-10, 11, [0]));
|
|
@@ -11,7 +11,7 @@ const round_1 = require("../../../../math/utils/round");
|
|
|
11
11
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
12
12
|
const percentNode_1 = require("../../../../tree/nodes/numbers/percentNode");
|
|
13
13
|
const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
|
|
14
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
14
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
15
15
|
const getFractionToPercentToDecimal = () => {
|
|
16
16
|
const denominator = 2 ** (0, randint_1.randint)(0, 5) * 5 ** (0, randint_1.randint)(0, 5);
|
|
17
17
|
const numerator = denominator !== 1 ? (0, randint_1.randint)(1, denominator) : (0, randint_1.randint)(1, 100);
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
7
7
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
8
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
8
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
9
9
|
const getFractionsDivision = () => {
|
|
10
10
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
11
11
|
const rational2 = rational_1.RationalConstructor.randomIrreductible();
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
7
7
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
8
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
8
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
9
9
|
const getFractionsProduct = () => {
|
|
10
10
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
11
11
|
const rational2 = rational_1.RationalConstructor.randomIrreductible();
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
7
7
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
8
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
8
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
9
9
|
const getFractionsSum = () => {
|
|
10
10
|
const rational = rational_1.RationalConstructor.randomIrreductible();
|
|
11
11
|
const rational2 = rational_1.RationalConstructor.randomIrreductible();
|
|
@@ -6,7 +6,7 @@ const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQ
|
|
|
6
6
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
8
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
9
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
9
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
10
10
|
const getFractionsSumsMultiplesDenominatorsQuestion = () => {
|
|
11
11
|
let denom1 = (0, randint_1.randint)(2, 10);
|
|
12
12
|
let denom2 = denom1 * (0, randint_1.randint)(2, 10);
|
|
@@ -4,7 +4,7 @@ exports.simplifyFraction = void 0;
|
|
|
4
4
|
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
7
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
7
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
8
8
|
const getSimplifyFraction = () => {
|
|
9
9
|
const rational = rational_1.RationalConstructor.randomSimplifiable(10);
|
|
10
10
|
const rationalTex = rational.toTree().toTex();
|
|
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
|
|
|
7
7
|
const round_1 = require("../../../../math/utils/round");
|
|
8
8
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
9
9
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
12
|
const getMentalAddAndSub = () => {
|
|
13
13
|
let numbers = [];
|
|
14
14
|
const nbrOperations = (0, coinFlip_1.coinFlip)() ? 2 : 3;
|
|
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
|
|
|
7
7
|
const round_1 = require("../../../../math/utils/round");
|
|
8
8
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
9
9
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
12
|
const getMentalDivisions = () => {
|
|
13
13
|
let a = 1, b = 1, c = 1;
|
|
14
14
|
const rand = (0, randint_1.randint)(1, 7);
|
|
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
|
|
|
7
7
|
const round_1 = require("../../../../math/utils/round");
|
|
8
8
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
12
|
const getMentalMultiplications = () => {
|
|
13
13
|
const numbers = [];
|
|
14
14
|
const nbOfOperations = (0, randint_1.randint)(2, 4);
|
|
@@ -7,8 +7,8 @@ const randint_1 = require("../../../../math/utils/random/randint");
|
|
|
7
7
|
const round_1 = require("../../../../math/utils/round");
|
|
8
8
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
12
|
const getMentalMultiplicationsNoRelative = () => {
|
|
13
13
|
const numbers = [];
|
|
14
14
|
const nbOfOperations = (0, randint_1.randint)(2, 4);
|
|
@@ -5,8 +5,8 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
7
7
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
8
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
9
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
8
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
9
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
10
10
|
const getMentalPercentage = () => {
|
|
11
11
|
let a = 1, b = 1;
|
|
12
12
|
const rand = (0, randint_1.randint)(1, 10);
|
|
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
|
8
8
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
10
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
11
|
-
const diceFlip_1 = require("../../../../utils/diceFlip");
|
|
11
|
+
const diceFlip_1 = require("../../../../utils/alea/diceFlip");
|
|
12
12
|
const getExpressionNatureQuestion = () => {
|
|
13
13
|
let answer = "";
|
|
14
14
|
let statement = "";
|
|
@@ -15,8 +15,8 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
|
15
15
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
16
16
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
17
17
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
18
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
19
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
18
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
19
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
20
20
|
const getPriorityQuestions = () => {
|
|
21
21
|
const type = (0, randint_1.randint)(1, 9);
|
|
22
22
|
let startStatement = "";
|
|
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
|
8
8
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
10
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
11
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
12
12
|
const getOperationsPrioritiesParenthesisQuestion = () => {
|
|
13
13
|
const type = (0, randint_1.randint)(1, 5);
|
|
14
14
|
let a, b, c, d;
|
|
@@ -8,7 +8,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
|
8
8
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
10
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
11
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
12
12
|
const getOperationsPrioritiesParenthesisNoRelativesQuestion = () => {
|
|
13
13
|
const type = (0, randint_1.randint)(1, 5);
|
|
14
14
|
let a, b, c, d;
|
|
@@ -15,8 +15,8 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
|
15
15
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
16
16
|
const divideNode_1 = require("../../../../tree/nodes/operators/divideNode");
|
|
17
17
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
18
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
19
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
18
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
19
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
20
20
|
const getOperationsPrioritiesWithoutRelative = () => {
|
|
21
21
|
const type = (0, randint_1.randint)(1, 9);
|
|
22
22
|
const flip = (0, randint_1.randint)(1, 4);
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randfloat_1 = require("../../../../math/utils/random/randfloat");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
8
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
9
9
|
const getDecimalOrderingQuestion = () => {
|
|
10
10
|
const type = (0, randint_1.randint)(1, 5);
|
|
11
11
|
let a = 0;
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randfloat_1 = require("../../../../math/utils/random/randfloat");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
8
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
9
9
|
const getDecimalOrderingNoRelativesQuestion = () => {
|
|
10
10
|
const type = (0, randint_1.randint)(1, 5);
|
|
11
11
|
let a = 0;
|
|
@@ -12,8 +12,8 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
|
12
12
|
const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
|
|
13
13
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
14
14
|
const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
|
|
15
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
16
|
-
const random_1 = require("../../../../utils/random");
|
|
15
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
16
|
+
const random_1 = require("../../../../utils/alea/random");
|
|
17
17
|
//fraction: 1/3, 2/3, 1/6, 5/6, x/7
|
|
18
18
|
//décimal
|
|
19
19
|
const getFramingQuestion = () => {
|
|
@@ -4,8 +4,8 @@ exports.integerOrdering = void 0;
|
|
|
4
4
|
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
7
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
8
|
-
const probaFlip_1 = require("../../../../utils/probaFlip");
|
|
7
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
8
|
+
const probaFlip_1 = require("../../../../utils/alea/probaFlip");
|
|
9
9
|
const getIntegerOrderingQuestion = () => {
|
|
10
10
|
let a;
|
|
11
11
|
let b;
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const integer_1 = require("../../../../math/numbers/integer/integer");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
8
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
9
9
|
const getProportionalityTable = () => {
|
|
10
10
|
const fact = (0, randint_1.randint)(2, 10);
|
|
11
11
|
let [x1, x2] = integer_1.IntegerConstructor.randomDifferents(1, 100 / fact, 2);
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const integer_1 = require("../../../../math/numbers/integer/integer");
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
8
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
9
9
|
const getProportionalityTableCoefficient = () => {
|
|
10
10
|
const factor = (0, randint_1.randint)(2, 15);
|
|
11
11
|
const xValues = integer_1.IntegerConstructor.randomDifferents(1, 100 / factor, 3).sort((a, b) => a - b);
|
|
@@ -7,7 +7,7 @@ const rational_1 = require("../../../../math/numbers/rationals/rational");
|
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
8
|
const measure_1 = require("../../../../pc/measure/measure");
|
|
9
9
|
const distanceUnits_1 = require("../../../../pc/units/distanceUnits");
|
|
10
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
10
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
11
11
|
const getScaleCalculationQuestion = () => {
|
|
12
12
|
const isSmallScale = (0, coinFlip_1.coinFlip)();
|
|
13
13
|
const scale = isSmallScale ? (0, randint_1.randint)(1, 5) * 10 : (0, randint_1.randint)(5, 100) * 1000;
|
|
@@ -8,7 +8,7 @@ const randint_1 = require("../../../../math/utils/random/randint");
|
|
|
8
8
|
const measure_1 = require("../../../../pc/measure/measure");
|
|
9
9
|
const distanceUnits_1 = require("../../../../pc/units/distanceUnits");
|
|
10
10
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
11
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
11
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
12
12
|
const getScaleUsageQuestion = () => {
|
|
13
13
|
const isSmallScale = (0, coinFlip_1.coinFlip)();
|
|
14
14
|
const isFakeAsked = (0, coinFlip_1.coinFlip)();
|
|
@@ -7,7 +7,7 @@ const decimal_1 = require("../../../../math/numbers/decimals/decimal");
|
|
|
7
7
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
8
8
|
const round_1 = require("../../../../math/utils/round");
|
|
9
9
|
const numberParser_1 = require("../../../../tree/parsers/numberParser");
|
|
10
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
10
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
11
11
|
/**
|
|
12
12
|
* arrondi à l'unité
|
|
13
13
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.allIdentities = void 0;
|
|
4
4
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
5
|
-
const random_1 = require("../../../../utils/random");
|
|
5
|
+
const random_1 = require("../../../../utils/alea/random");
|
|
6
6
|
const firstIdentity_1 = require("./firstIdentity");
|
|
7
7
|
const secondIdentity_1 = require("./secondIdentity");
|
|
8
8
|
const thirdIdentity_1 = require("./thirdIdentity");
|
|
@@ -9,7 +9,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
|
9
9
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
10
10
|
const operatorComposition_1 = require("../../../../tree/utilities/operatorComposition");
|
|
11
11
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
12
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
12
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
13
13
|
const getDoubleDistributivityQuestion = () => {
|
|
14
14
|
const affines = affine_1.AffineConstructor.differentRandoms(2, undefined, {
|
|
15
15
|
excludes: [0],
|
|
@@ -10,7 +10,7 @@ const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
|
10
10
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
11
11
|
const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
|
|
12
12
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
13
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
13
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
14
14
|
const getFirstIdentityQuestion = () => {
|
|
15
15
|
const affine = affine_1.AffineConstructor.random({
|
|
16
16
|
min: 1,
|
|
@@ -11,7 +11,7 @@ const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
|
11
11
|
const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
|
|
12
12
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
13
13
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
14
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
14
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
15
15
|
const getSecondIdentityQuestion = () => {
|
|
16
16
|
const affine = affine_1.AffineConstructor.random({
|
|
17
17
|
min: 1,
|
|
@@ -9,7 +9,7 @@ const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
|
9
9
|
const addNode_1 = require("../../../../tree/nodes/operators/addNode");
|
|
10
10
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
11
11
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
12
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
12
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
13
13
|
const buildStatement = (identifiers) => {
|
|
14
14
|
const { a, b, coeff } = identifiers;
|
|
15
15
|
const affine = new affine_1.Affine(a, b);
|
|
@@ -8,7 +8,7 @@ const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
|
8
8
|
const powerNode_1 = require("../../../../tree/nodes/operators/powerNode");
|
|
9
9
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
10
10
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
11
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
11
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
12
|
const getThirdIdentityQuestion = () => {
|
|
13
13
|
const affine = affine_1.AffineConstructor.random(undefined, { excludes: [0] });
|
|
14
14
|
const affine2 = new affine_1.Affine(affine.a, -affine.b);
|
|
@@ -9,7 +9,7 @@ const randint_1 = require("../../../../math/utils/random/randint");
|
|
|
9
9
|
const equalNode_1 = require("../../../../tree/nodes/equations/equalNode");
|
|
10
10
|
const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
|
|
11
11
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
12
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
12
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
13
13
|
function generateTrinomialFromRoot(root, constante) {
|
|
14
14
|
const a = (0, randint_1.randint)(1, 5);
|
|
15
15
|
const r2 = (0, randint_1.randint)(-10, 10, [0]);
|
|
@@ -12,7 +12,7 @@ const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
|
|
|
12
12
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
13
13
|
const substractNode_1 = require("../../../../tree/nodes/operators/substractNode");
|
|
14
14
|
const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
|
|
15
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
15
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
16
16
|
const x = new variableNode_1.VariableNode("x");
|
|
17
17
|
const twoNode = new numberNode_1.NumberNode(2);
|
|
18
18
|
const getEquationFromSentenceExerciseQuestion = () => {
|
|
@@ -11,10 +11,10 @@ const equationSolutionNode_1 = require("../../../../tree/nodes/equations/equatio
|
|
|
11
11
|
const oppositeNode_1 = require("../../../../tree/nodes/functions/oppositeNode");
|
|
12
12
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
13
13
|
const discreteSetNode_1 = require("../../../../tree/nodes/sets/discreteSetNode");
|
|
14
|
-
const coinFlip_1 = require("../../../../utils/coinFlip");
|
|
15
|
-
const diceFlip_1 = require("../../../../utils/diceFlip");
|
|
14
|
+
const coinFlip_1 = require("../../../../utils/alea/coinFlip");
|
|
15
|
+
const diceFlip_1 = require("../../../../utils/alea/diceFlip");
|
|
16
16
|
const isInt_1 = require("../../../../utils/isInt");
|
|
17
|
-
const random_1 = require("../../../../utils/random");
|
|
17
|
+
const random_1 = require("../../../../utils/alea/random");
|
|
18
18
|
const squares = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].map((el) => el ** 2);
|
|
19
19
|
const higherFactor = (n) => {
|
|
20
20
|
for (let i = Math.floor(Math.sqrt(n)); i > 0; i--)
|
|
@@ -8,7 +8,7 @@ const affine_1 = require("../../../../math/polynomials/affine");
|
|
|
8
8
|
const randint_1 = require("../../../../math/utils/random/randint");
|
|
9
9
|
const equationSolutionNode_1 = require("../../../../tree/nodes/equations/equationSolutionNode");
|
|
10
10
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
11
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
11
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
12
|
const discreteSetNode_1 = require("../../../../tree/nodes/sets/discreteSetNode");
|
|
13
13
|
const equalNode_1 = require("../../../../tree/nodes/equations/equalNode");
|
|
14
14
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
@@ -11,7 +11,7 @@ const equationSolutionNode_1 = require("../../../../tree/nodes/equations/equatio
|
|
|
11
11
|
const equalNode_1 = require("../../../../tree/nodes/equations/equalNode");
|
|
12
12
|
const discreteSetNode_1 = require("../../../../tree/nodes/sets/discreteSetNode");
|
|
13
13
|
const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
|
|
14
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
14
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
15
15
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
16
16
|
const fractionNode_1 = require("../../../../tree/nodes/operators/fractionNode");
|
|
17
17
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
@@ -11,7 +11,7 @@ const equationSolutionNode_1 = require("../../../../tree/nodes/equations/equatio
|
|
|
11
11
|
const equalNode_1 = require("../../../../tree/nodes/equations/equalNode");
|
|
12
12
|
const discreteSetNode_1 = require("../../../../tree/nodes/sets/discreteSetNode");
|
|
13
13
|
const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
|
|
14
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
14
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
15
15
|
const numberNode_1 = require("../../../../tree/nodes/numbers/numberNode");
|
|
16
16
|
const alignTex_1 = require("../../../../utils/latex/alignTex");
|
|
17
17
|
const multiplyNode_1 = require("../../../../tree/nodes/operators/multiplyNode");
|
|
@@ -11,7 +11,7 @@ const equationSolutionNode_1 = require("../../../../tree/nodes/equations/equatio
|
|
|
11
11
|
const equalNode_1 = require("../../../../tree/nodes/equations/equalNode");
|
|
12
12
|
const discreteSetNode_1 = require("../../../../tree/nodes/sets/discreteSetNode");
|
|
13
13
|
const variableNode_1 = require("../../../../tree/nodes/variables/variableNode");
|
|
14
|
-
const shuffle_1 = require("../../../../utils/shuffle");
|
|
14
|
+
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
15
15
|
const getEquationType4ExerciseQuestion = () => {
|
|
16
16
|
const a = (0, randint_1.randint)(-10, 11, [0, 1]);
|
|
17
17
|
const b = (0, randint_1.randint)(-10, 11, [0]);
|