math-exercises 3.0.157 → 3.0.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/exercises/exercise.d.ts +7 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.d.ts +14 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfAffineEquals1Equation.js +145 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts +16 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.js +445 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts +15 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.js +371 -0
- package/lib/exercises/math/calculLitteral/equation/exp/index.d.ts +4 -0
- package/lib/exercises/math/calculLitteral/equation/exp/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/equation/exp/index.js +3 -0
- package/lib/exercises/math/calculLitteral/equation/factorizeEquation.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/factorizeEquation.js +8 -2
- package/lib/exercises/math/calculLitteral/equation/index.d.ts +1 -0
- package/lib/exercises/math/calculLitteral/equation/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/index.js +1 -0
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +27 -2
- package/lib/exercises/math/calculLitteral/equation/solveByFactorizingWithIdRmq3.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/solveByFactorizingWithIdRmq3.js +0 -1
- package/lib/exercises/math/calculLitteral/equation/square/equationSquareWithSteps.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/square/equationSquareWithSteps.js +0 -1
- package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts +18 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.js +444 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/index.d.ts +2 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/index.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/inequations/exp/index.js +1 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +11 -5
- package/lib/exercises/math/calculLitteral/inequations/index.d.ts +1 -0
- package/lib/exercises/math/calculLitteral/inequations/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/index.js +1 -0
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.js +91 -21
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.js +64 -15
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.js +71 -15
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.js +36 -17
- package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts +10 -0
- package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.js +294 -0
- package/lib/exercises/math/derivation/derivative/exp/index.d.ts +1 -0
- package/lib/exercises/math/derivation/derivative/exp/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/exp/index.js +1 -0
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/inverseFunctionDerivative.js +30 -2
- package/lib/exercises/math/derivation/derivative/productDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/productDerivative.js +68 -1
- package/lib/exercises/math/derivation/derivative/quotientDerivative.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/quotientDerivative.js +40 -4
- package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/sqrt/sqrtCompositionDerivation.js +30 -3
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.d.ts +12 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeAlgebraicExpression.js +127 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.d.ts +13 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromAlgebraic.js +161 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.d.ts +11 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/averageRateOfChangeFromImages.js +116 -0
- package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.d.ts +8 -0
- package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/derivativeNumberCalcul.js +142 -0
- package/lib/exercises/math/derivation/derivativeNumber/index.d.ts +4 -0
- package/lib/exercises/math/derivation/derivativeNumber/index.d.ts.map +1 -0
- package/lib/exercises/math/derivation/derivativeNumber/index.js +4 -0
- package/lib/exercises/math/derivation/index.d.ts +1 -1
- package/lib/exercises/math/derivation/index.js +1 -1
- package/lib/exercises/math/derivation/variations/index.d.ts +1 -0
- package/lib/exercises/math/derivation/variations/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/variations/index.js +1 -0
- package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.d.ts +7 -0
- package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.d.ts.map +1 -0
- package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.js +174 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts +13 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.js +305 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts +11 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.js +216 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpN.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpN.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/approxExpN.js +142 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.d.ts +5 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.js +4 -0
- package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.d.ts +14 -0
- package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.js +337 -0
- package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts +11 -0
- package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.js +223 -0
- package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.js +262 -0
- package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts +9 -0
- package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.js +245 -0
- package/lib/exercises/math/functions/exponential/definition/index.d.ts +5 -0
- package/lib/exercises/math/functions/exponential/definition/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/index.js +4 -0
- package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts +13 -0
- package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts.map +1 -0
- package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.js +366 -0
- package/lib/exercises/math/functions/exponential/expFactorization.d.ts.map +1 -1
- package/lib/exercises/math/functions/exponential/expFactorization.js +54 -42
- package/lib/exercises/math/functions/exponential/index.d.ts +2 -0
- package/lib/exercises/math/functions/exponential/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/exponential/index.js +2 -0
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.js +30 -3
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.js +35 -1
- package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.js +3 -0
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.js +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.js +23 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +29 -0
- package/lib/exercises/math/functions/variations/exp/index.d.ts +3 -0
- package/lib/exercises/math/functions/variations/exp/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/exp/index.js +2 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts +9 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.js +96 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts +11 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts.map +1 -0
- package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.js +190 -0
- package/lib/exercises/math/functions/variations/index.d.ts +1 -0
- package/lib/exercises/math/functions/variations/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/variations/index.js +1 -0
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPerpendicularLine.d.ts +12 -0
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPerpendicularLine.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPerpendicularLine.js +230 -0
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPointAndNormalVector.d.ts +10 -0
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPointAndNormalVector.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPointAndNormalVector.js +167 -0
- package/lib/exercises/math/geometry/cartesian/index.d.ts +3 -0
- package/lib/exercises/math/geometry/cartesian/index.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/index.js +3 -0
- package/lib/exercises/math/geometry/cartesian/normalVectorFromCartesianLineEquation.d.ts +10 -0
- package/lib/exercises/math/geometry/cartesian/normalVectorFromCartesianLineEquation.d.ts.map +1 -0
- package/lib/exercises/math/geometry/cartesian/normalVectorFromCartesianLineEquation.js +131 -0
- package/lib/exercises/math/geometry/circles/index.d.ts +2 -0
- package/lib/exercises/math/geometry/circles/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/circles/index.js +1 -0
- package/lib/exercises/math/geometry/circles/isPointOnCircleFromCartesianEquation.d.ts +11 -0
- package/lib/exercises/math/geometry/circles/isPointOnCircleFromCartesianEquation.d.ts.map +1 -0
- package/lib/exercises/math/geometry/circles/isPointOnCircleFromCartesianEquation.js +131 -0
- package/lib/exercises/math/geometry/euclidian/pinPointFromAxialOrCentralSymmetry.js +2 -2
- package/lib/exercises/math/geometry/euclidian/pinSegmentFromRotation.d.ts.map +1 -1
- package/lib/exercises/math/geometry/euclidian/pinSegmentFromRotation.js +0 -2
- package/lib/exercises/math/geometry/index.d.ts +1 -0
- package/lib/exercises/math/geometry/index.d.ts.map +1 -1
- package/lib/exercises/math/geometry/index.js +1 -0
- package/lib/exercises/math/geometry/thales/thales.js +1 -1
- package/lib/exercises/math/geometry/thales/thalesCalcul.js +1 -1
- package/lib/exercises/math/geometry/vectors/colinearity/determinant.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/index.d.ts +4 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/index.js +3 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.js +247 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiBH.d.ts +13 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiBH.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiBH.js +452 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.js +253 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/index.d.ts +4 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/index.js +3 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductIdentities.d.ts +10 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductIdentities.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductIdentities.js +174 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductInOrthonormalBasisIJ.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductInOrthonormalBasisIJ.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductInOrthonormalBasisIJ.js +231 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductLamdbaULambdaV.d.ts +14 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductLamdbaULambdaV.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductLamdbaULambdaV.js +292 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/angleFromScalarProduct.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/findCoordinatesToOrthogonalize.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/findCoordinatesToOrthogonalize.js +33 -7
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/index.d.ts +6 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/index.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/index.js +5 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsBasisIJ.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsBasisIJ.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsBasisIJ.js +202 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsUsingCoords.d.ts +9 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsUsingCoords.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsUsingCoords.js +127 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnCircle.d.ts +12 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnCircle.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnCircle.js +167 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnPerpendicularBisector.d.ts +12 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnPerpendicularBisector.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnPerpendicularBisector.js +180 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsRightTriangleUsingPointCoords.d.ts +12 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsRightTriangleUsingPointCoords.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsRightTriangleUsingPointCoords.js +235 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductComputeBH.d.ts +12 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductComputeBH.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductComputeBH.js +423 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOfVectsOnGrid1.d.ts +17 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOfVectsOnGrid1.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOfVectsOnGrid1.js +347 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductParallelogramDiagonalPlus.d.ts +8 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductParallelogramDiagonalPlus.d.ts.map +1 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductParallelogramDiagonalPlus.js +301 -0
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCoords.js +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.d.ts.map +1 -1
- package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductViaCos.js +38 -1
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts +4 -1
- package/lib/exercises/math/probaStat/conditionalProbability.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/conditionalProbability.js +38 -5
- package/lib/exercises/math/probaStat/independancy/independancy.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy/independancy.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/independancy.js +114 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCap.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCap.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCap.js +101 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCup.d.ts +9 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCup.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/independancyFindCup.js +118 -0
- package/lib/exercises/math/probaStat/independancy/index.d.ts +5 -0
- package/lib/exercises/math/probaStat/independancy/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/index.js +4 -0
- package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.d.ts +10 -0
- package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/independancy/isIndependantFromDefinition.js +106 -0
- package/lib/exercises/math/probaStat/index.d.ts +1 -1
- package/lib/exercises/math/probaStat/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/index.js +1 -1
- package/lib/exercises/math/probaStat/randomVariable/findValueForFairRandomVariable.d.ts +9 -0
- package/lib/exercises/math/probaStat/randomVariable/findValueForFairRandomVariable.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/randomVariable/findValueForFairRandomVariable.js +141 -0
- package/lib/exercises/math/probaStat/randomVariable/findValueToMatchRandomVariableAverage.d.ts +10 -0
- package/lib/exercises/math/probaStat/randomVariable/findValueToMatchRandomVariableAverage.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/randomVariable/findValueToMatchRandomVariableAverage.js +174 -0
- package/lib/exercises/math/probaStat/randomVariable/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/randomVariable/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/randomVariable/index.js +2 -0
- package/lib/exercises/math/probaStat/randomVariable/randomVariableStandardDeviation.js +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceOutcomes.js +7 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/headsOrTailsTwiceProbas.js +7 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/numberPoolTwiceProbas.js +7 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.js +7 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.d.ts +9 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.d.ts.map +1 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFirstTermRandom.js +118 -0
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindRandomTermFromTwoTerms.js +55 -6
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFindReasonRandomRange.js +42 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts +4 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticFirstTermsSum.js +57 -7
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +24 -2
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/arithmeticThresholdFind.js +31 -8
- package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -1
- package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/index.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/recognizeArithmeticFromGraph.js +11 -1
- package/lib/exercises/math/sequences/generation/index.d.ts +2 -0
- package/lib/exercises/math/sequences/generation/index.d.ts.map +1 -0
- package/lib/exercises/math/sequences/generation/index.js +1 -0
- package/lib/exercises/math/sequences/generation/recognizeRecurrenceOrExplicit.d.ts +8 -0
- package/lib/exercises/math/sequences/generation/recognizeRecurrenceOrExplicit.d.ts.map +1 -0
- package/lib/exercises/math/sequences/generation/recognizeRecurrenceOrExplicit.js +63 -0
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstRankOne.js +5 -5
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFirstTermRandom.js +3 -1
- package/lib/exercises/math/sequences/geometric/geometricFindReason.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindReason.js +41 -2
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricRecurrenceFormulaUsage.js +28 -2
- package/lib/exercises/math/sequences/graph/index.d.ts +2 -0
- package/lib/exercises/math/sequences/graph/index.d.ts.map +1 -0
- package/lib/exercises/math/sequences/graph/index.js +1 -0
- package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.d.ts +11 -0
- package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.d.ts.map +1 -0
- package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.js +113 -0
- package/lib/exercises/math/sequences/index.d.ts +2 -0
- package/lib/exercises/math/sequences/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/index.js +2 -0
- package/lib/exercises/math/sequences/notation/identifyRankInSequenceTermsList.d.ts +12 -0
- package/lib/exercises/math/sequences/notation/identifyRankInSequenceTermsList.d.ts.map +1 -0
- package/lib/exercises/math/sequences/notation/identifyRankInSequenceTermsList.js +114 -0
- package/lib/exercises/math/sequences/notation/identifySequenceTermInList.d.ts +12 -0
- package/lib/exercises/math/sequences/notation/identifySequenceTermInList.d.ts.map +1 -0
- package/lib/exercises/math/sequences/notation/identifySequenceTermInList.js +111 -0
- package/lib/exercises/math/sequences/notation/index.d.ts +3 -0
- package/lib/exercises/math/sequences/notation/index.d.ts.map +1 -0
- package/lib/exercises/math/sequences/notation/index.js +2 -0
- package/lib/exercises/math/sequences/sequenceEvaluation.d.ts.map +1 -1
- package/lib/exercises/math/sequences/sequenceEvaluation.js +22 -2
- package/lib/exercises/math/spaceGeometry/basis/findSpacePointOnRectangularPrism.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/basis/findSpacePointOnRectangularPrism.js +0 -1
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.d.ts.map +1 -1
- package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.js +0 -2
- package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.d.ts +9 -0
- package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/areReelsOnTheSameTrigoCirclePoint.js +107 -0
- package/lib/exercises/math/trigonometry/circle/associatePoint.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/associatePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/associatePoint.js +86 -0
- package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/associateReelToTrigoCirclePoint.js +205 -0
- package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts +7 -0
- package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.js +121 -0
- package/lib/exercises/math/trigonometry/circle/index.d.ts +7 -0
- package/lib/exercises/math/trigonometry/circle/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/index.js +7 -0
- package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/mainAngleMeasure.js +100 -0
- package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts +8 -0
- package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.js +97 -0
- package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts +10 -0
- package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/circle/remarkableValues.js +112 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts +7 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationCos.js +92 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts +7 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/basicEquationSin.js +104 -0
- package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.d.ts +7 -0
- package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/basicTrigoSystemEquation.js +83 -0
- package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.d.ts +8 -0
- package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/equationCosOnRandomInterval.js +111 -0
- package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.d.ts +8 -0
- package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.js +101 -0
- package/lib/exercises/math/trigonometry/functions/index.d.ts +6 -0
- package/lib/exercises/math/trigonometry/functions/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/index.js +6 -0
- package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.d.ts +9 -0
- package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/functions/trigoAssociateAngle.js +151 -0
- package/lib/exercises/math/trigonometry/index.d.ts +3 -14
- package/lib/exercises/math/trigonometry/index.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/index.js +3 -14
- package/lib/exercises/math/trigonometry/triangle/index.d.ts +7 -0
- package/lib/exercises/math/trigonometry/triangle/index.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/index.js +6 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometry.d.ts +10 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometry.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometry.js +207 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.d.ts +10 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.js +174 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.d.ts +11 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideCalcul.js +224 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.d.ts +13 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySideName.js +189 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.d.ts +13 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.js +290 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.d.ts +18 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaUse.js +386 -0
- package/lib/exercises/pc/mathExosInPC.d.ts +2 -2
- package/lib/exercises/pc/mathExosInPC.d.ts.map +1 -1
- package/lib/exercises/pc/mathExosInPC.js +2 -2
- package/lib/exercises/vea/cartesianLineVEA.d.ts +2 -0
- package/lib/exercises/vea/cartesianLineVEA.d.ts.map +1 -0
- package/lib/exercises/vea/cartesianLineVEA.js +1 -0
- package/lib/index.d.ts +186 -27
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/line.d.ts +2 -0
- package/lib/math/geometry/line.d.ts.map +1 -1
- package/lib/math/geometry/line.js +7 -0
- package/lib/math/geometry/point.d.ts +1 -0
- package/lib/math/geometry/point.d.ts.map +1 -1
- package/lib/math/geometry/point.js +5 -0
- package/lib/math/geometry/polygons/relationPP.d.ts +8 -0
- package/lib/math/geometry/polygons/relationPP.d.ts.map +1 -0
- package/lib/math/geometry/polygons/relationPP.js +41 -0
- package/lib/math/geometry/segment.d.ts +1 -1
- package/lib/math/geometry/vector.d.ts +2 -1
- package/lib/math/geometry/vector.d.ts.map +1 -1
- package/lib/math/geometry/vector.js +1 -1
- package/lib/math/numbers/reals/real.d.ts.map +1 -1
- package/lib/math/numbers/reals/real.js +2 -0
- package/lib/math/polynomials/trinom.d.ts +1 -1
- package/lib/math/polynomials/trinom.d.ts.map +1 -1
- package/lib/math/polynomials/trinom.js +15 -6
- package/lib/math/utils/arithmetic/primeFactors.js +1 -1
- package/lib/math/utils/geometry/randomVecs2.d.ts +6 -0
- package/lib/math/utils/geometry/randomVecs2.d.ts.map +1 -0
- package/lib/math/utils/geometry/randomVecs2.js +34 -0
- package/lib/playground.d.ts.map +1 -1
- package/lib/playground.js +3 -1
- package/lib/tests/questionTest.d.ts.map +1 -1
- package/lib/tests/questionTest.js +2 -2
- package/lib/tree/nodes/algebraicNode.d.ts +1 -0
- package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
- package/lib/tree/nodes/equations/equationSolutionNode.d.ts +1 -0
- package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -1
- package/lib/tree/nodes/equations/equationSolutionNode.js +3 -0
- package/lib/tree/nodes/functions/expNode.d.ts +1 -1
- package/lib/tree/nodes/functions/expNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sqrtNode.d.ts +2 -1
- package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
- package/lib/tree/nodes/functions/sqrtNode.js +17 -6
- package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts +1 -0
- package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts.map +1 -1
- package/lib/tree/nodes/inequations/inequationSolutionNode.js +3 -0
- package/lib/tree/nodes/operators/fractionNode.d.ts +1 -1
- package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/fractionNode.js +6 -4
- package/lib/tree/nodes/operators/multiplyNode.js +1 -1
- package/lib/tree/nodes/sets/intervalNode.d.ts +6 -0
- package/lib/tree/nodes/sets/intervalNode.d.ts.map +1 -1
- package/lib/tree/nodes/sets/namedIntervalNode.d.ts +31 -0
- package/lib/tree/nodes/sets/namedIntervalNode.d.ts.map +1 -0
- package/lib/tree/nodes/sets/namedIntervalNode.js +77 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -584,6 +584,24 @@ declare const mathExercises: (Exercise<{
|
|
|
584
584
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
585
585
|
a: number;
|
|
586
586
|
b: number;
|
|
587
|
+
}, {
|
|
588
|
+
solutionFormat: string;
|
|
589
|
+
}> | Exercise<{
|
|
590
|
+
a: number;
|
|
591
|
+
b: number;
|
|
592
|
+
c: number;
|
|
593
|
+
}, {
|
|
594
|
+
solutionFormat: string;
|
|
595
|
+
}> | Exercise<{
|
|
596
|
+
coeffsF: number[];
|
|
597
|
+
coeffsG: number[];
|
|
598
|
+
}, {
|
|
599
|
+
solutionFormat: string;
|
|
600
|
+
functionTypeF: string;
|
|
601
|
+
functionTypeG: string;
|
|
602
|
+
}> | Exercise<{
|
|
603
|
+
a: number;
|
|
604
|
+
b: number;
|
|
587
605
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
588
606
|
a: number;
|
|
589
607
|
b: number;
|
|
@@ -683,6 +701,14 @@ declare const mathExercises: (Exercise<{
|
|
|
683
701
|
k: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
684
702
|
inequationSymbol: import("./math/inequations/inequation.js").InegalitySymbols;
|
|
685
703
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
704
|
+
coeffsF: number[];
|
|
705
|
+
coeffsG: number[];
|
|
706
|
+
ineqType: import("./math/inequations/inequation.js").InegalitySymbols;
|
|
707
|
+
}, {
|
|
708
|
+
inequationSolutionFormat: string;
|
|
709
|
+
functionTypeF: string;
|
|
710
|
+
functionTypeG: string;
|
|
711
|
+
}> | Exercise<{
|
|
686
712
|
rand: boolean;
|
|
687
713
|
poly1: number[];
|
|
688
714
|
poly2: number[];
|
|
@@ -890,6 +916,11 @@ declare const mathExercises: (Exercise<{
|
|
|
890
916
|
affine2Coeffs: number[];
|
|
891
917
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
892
918
|
coeffs: number[];
|
|
919
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
920
|
+
a: number;
|
|
921
|
+
b: number;
|
|
922
|
+
c: number;
|
|
923
|
+
d: number;
|
|
893
924
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
894
925
|
a: number;
|
|
895
926
|
b: number;
|
|
@@ -957,6 +988,17 @@ declare const mathExercises: (Exercise<{
|
|
|
957
988
|
coeffs: number[];
|
|
958
989
|
x: number;
|
|
959
990
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
991
|
+
aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
992
|
+
bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
993
|
+
faIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
994
|
+
fbIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
995
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
996
|
+
fxIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
997
|
+
aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
998
|
+
bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
999
|
+
}, {
|
|
1000
|
+
functionType: string[];
|
|
1001
|
+
}> | Exercise<{
|
|
960
1002
|
abscisse: number;
|
|
961
1003
|
trinome: number[];
|
|
962
1004
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -995,6 +1037,8 @@ declare const mathExercises: (Exercise<{
|
|
|
995
1037
|
b: number;
|
|
996
1038
|
c: number;
|
|
997
1039
|
d: number;
|
|
1040
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1041
|
+
splinePoints: number[][];
|
|
998
1042
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
999
1043
|
coeffs: number[];
|
|
1000
1044
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -1409,6 +1453,49 @@ declare const mathExercises: (Exercise<{
|
|
|
1409
1453
|
e: number;
|
|
1410
1454
|
f: number;
|
|
1411
1455
|
uA: number;
|
|
1456
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1457
|
+
a: number;
|
|
1458
|
+
exp1Rounded: number;
|
|
1459
|
+
precision: number;
|
|
1460
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1461
|
+
nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1462
|
+
nodeIdsK: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1463
|
+
expARounded: number;
|
|
1464
|
+
precision: number;
|
|
1465
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1466
|
+
nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1467
|
+
nodeIdsB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1468
|
+
nodeIdsAOpB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1469
|
+
expARounded: number;
|
|
1470
|
+
expBRounded: number;
|
|
1471
|
+
precision: number;
|
|
1472
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1473
|
+
nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1474
|
+
nodeIdsB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1475
|
+
nodeIdsAOpB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1476
|
+
rand: number;
|
|
1477
|
+
}, {
|
|
1478
|
+
isUseExpNotation: boolean;
|
|
1479
|
+
}> | Exercise<{
|
|
1480
|
+
nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1481
|
+
nodeIdsT: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1482
|
+
x: number;
|
|
1483
|
+
s: number;
|
|
1484
|
+
coordsFrame: number[];
|
|
1485
|
+
rand: number;
|
|
1486
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1487
|
+
nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1488
|
+
nodeIdsH: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1489
|
+
nodeIdsAOpH: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1490
|
+
expARounded: number;
|
|
1491
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1492
|
+
a: number;
|
|
1493
|
+
isExpPrime: boolean;
|
|
1494
|
+
coordsFrame: number[];
|
|
1495
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1496
|
+
a: number;
|
|
1497
|
+
isExpPrime: boolean;
|
|
1498
|
+
coordsFrame: number[];
|
|
1412
1499
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1413
1500
|
a: number;
|
|
1414
1501
|
k: number;
|
|
@@ -1597,6 +1684,16 @@ declare const mathExercises: (Exercise<{
|
|
|
1597
1684
|
}> | Exercise<{
|
|
1598
1685
|
a: number;
|
|
1599
1686
|
b: number;
|
|
1687
|
+
intervalAskedIndex: number;
|
|
1688
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1689
|
+
a: number;
|
|
1690
|
+
b: number;
|
|
1691
|
+
c: number;
|
|
1692
|
+
d: number;
|
|
1693
|
+
intervalAskedIndex: number;
|
|
1694
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1695
|
+
a: number;
|
|
1696
|
+
b: number;
|
|
1600
1697
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1601
1698
|
twoSided: boolean;
|
|
1602
1699
|
a: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
@@ -1736,6 +1833,18 @@ declare const mathExercises: (Exercise<{
|
|
|
1736
1833
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1737
1834
|
pointIdentifiers: import("./math/geometry/point.js").PointIdentifiers;
|
|
1738
1835
|
pointBIdentifiers: import("./math/geometry/point.js").PointIdentifiers;
|
|
1836
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1837
|
+
aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1838
|
+
bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1839
|
+
cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1840
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1841
|
+
pointIds: import("./math/geometry/point.js").PointIdentifiers;
|
|
1842
|
+
vecIds: import("./math/geometry/vector.js").VectorIdentifiers;
|
|
1843
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1844
|
+
pointIds: import("./math/geometry/point.js").PointIdentifiers;
|
|
1845
|
+
aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1846
|
+
bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1847
|
+
cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1739
1848
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1740
1849
|
coin: boolean;
|
|
1741
1850
|
radius: number;
|
|
@@ -2310,6 +2419,10 @@ declare const mathExercises: (Exercise<{
|
|
|
2310
2419
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2311
2420
|
shape: number;
|
|
2312
2421
|
side: number;
|
|
2422
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2423
|
+
pointIds: import("./math/geometry/point.js").PointIdentifiers;
|
|
2424
|
+
radiusIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2425
|
+
centreIds: import("./math/geometry/point.js").PointIdentifiers;
|
|
2313
2426
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2314
2427
|
coeffs: number[];
|
|
2315
2428
|
to: "+\\infty" | "-\\infty";
|
|
@@ -2535,7 +2648,9 @@ declare const mathExercises: (Exercise<{
|
|
|
2535
2648
|
pAB?: number;
|
|
2536
2649
|
pA_B?: number;
|
|
2537
2650
|
pB_A?: number;
|
|
2538
|
-
},
|
|
2651
|
+
}, {
|
|
2652
|
+
probaType: string[];
|
|
2653
|
+
}> | Exercise<{
|
|
2539
2654
|
A: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2540
2655
|
B: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2541
2656
|
AC: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
@@ -2654,6 +2769,16 @@ declare const mathExercises: (Exercise<{
|
|
|
2654
2769
|
pA: number;
|
|
2655
2770
|
pB: number;
|
|
2656
2771
|
pUnion: number;
|
|
2772
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2773
|
+
pAIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2774
|
+
pBIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2775
|
+
pABIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2776
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2777
|
+
pAIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2778
|
+
pBIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2779
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2780
|
+
pAIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2781
|
+
pBIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2657
2782
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2658
2783
|
questionType: string;
|
|
2659
2784
|
value?: string;
|
|
@@ -2731,6 +2856,10 @@ declare const mathExercises: (Exercise<{
|
|
|
2731
2856
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2732
2857
|
xValuesIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2733
2858
|
yValuesIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2859
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2860
|
+
valuesIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2861
|
+
probasIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
2862
|
+
avgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2734
2863
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2735
2864
|
pA: number;
|
|
2736
2865
|
pB: number;
|
|
@@ -2901,7 +3030,9 @@ declare const mathExercises: (Exercise<{
|
|
|
2901
3030
|
firstValue: number;
|
|
2902
3031
|
reason: number;
|
|
2903
3032
|
nbTerms: number;
|
|
2904
|
-
},
|
|
3033
|
+
}, {
|
|
3034
|
+
firstTermRank: string;
|
|
3035
|
+
}> | Exercise<{
|
|
2905
3036
|
firstValue: number;
|
|
2906
3037
|
reason: number;
|
|
2907
3038
|
firstRank: number;
|
|
@@ -3001,6 +3132,23 @@ declare const mathExercises: (Exercise<{
|
|
|
3001
3132
|
points: number[][];
|
|
3002
3133
|
isArithmetic: boolean;
|
|
3003
3134
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3135
|
+
firstRank: number;
|
|
3136
|
+
values: number[];
|
|
3137
|
+
}, {
|
|
3138
|
+
firstRank: string;
|
|
3139
|
+
}> | Exercise<{
|
|
3140
|
+
values: number[];
|
|
3141
|
+
firstRank: number;
|
|
3142
|
+
askedIndex: number;
|
|
3143
|
+
}, {
|
|
3144
|
+
firstRank: string;
|
|
3145
|
+
}> | Exercise<{
|
|
3146
|
+
values: number[];
|
|
3147
|
+
firstRank: number;
|
|
3148
|
+
askedTerm: number;
|
|
3149
|
+
}, {
|
|
3150
|
+
firstRank: string;
|
|
3151
|
+
}> | Exercise<{
|
|
3004
3152
|
intervalIdentifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
|
|
3005
3153
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3006
3154
|
int1Identifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
|
|
@@ -3176,6 +3324,14 @@ declare const mathExercises: (Exercise<{
|
|
|
3176
3324
|
a: number;
|
|
3177
3325
|
k: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3178
3326
|
isSquareInside: boolean;
|
|
3327
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3328
|
+
angleValue: number;
|
|
3329
|
+
angleIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3330
|
+
point: string;
|
|
3331
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3332
|
+
degree: number;
|
|
3333
|
+
multipleOf2PiToAdd: number;
|
|
3334
|
+
nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3179
3335
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3180
3336
|
valueIndex: number;
|
|
3181
3337
|
isCos: boolean;
|
|
@@ -3184,23 +3340,13 @@ declare const mathExercises: (Exercise<{
|
|
|
3184
3340
|
isCos: boolean;
|
|
3185
3341
|
angleIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3186
3342
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3190
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3191
|
-
randAngle: number;
|
|
3192
|
-
hiddenSide: number;
|
|
3193
|
-
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3194
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3195
|
-
sideAsked: number;
|
|
3196
|
-
givenSide: number;
|
|
3197
|
-
givenAngle: number;
|
|
3198
|
-
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3199
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3200
|
-
angleValue: number;
|
|
3201
|
-
angleIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3202
|
-
point: string;
|
|
3343
|
+
aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3344
|
+
bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3203
3345
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3346
|
+
pointIndex: number;
|
|
3347
|
+
}, {
|
|
3348
|
+
solutionInterval: string;
|
|
3349
|
+
}> | Exercise<{
|
|
3204
3350
|
trigFunction: string;
|
|
3205
3351
|
trigValue: number;
|
|
3206
3352
|
angleInDegrees: number;
|
|
@@ -3215,8 +3361,11 @@ declare const mathExercises: (Exercise<{
|
|
|
3215
3361
|
degree: number;
|
|
3216
3362
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3217
3363
|
degree: number;
|
|
3218
|
-
|
|
3219
|
-
|
|
3364
|
+
leftBoundPiMultiple: number;
|
|
3365
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3366
|
+
isCos: boolean;
|
|
3367
|
+
value: number;
|
|
3368
|
+
associateType: number;
|
|
3220
3369
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3221
3370
|
degree: number;
|
|
3222
3371
|
radianNodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
@@ -3226,24 +3375,34 @@ declare const mathExercises: (Exercise<{
|
|
|
3226
3375
|
thetaInDegree: number | undefined;
|
|
3227
3376
|
thetaInRadNodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers | undefined;
|
|
3228
3377
|
isThetaInDegree: boolean;
|
|
3229
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3230
|
-
degree: number;
|
|
3231
|
-
leftBoundPiMultiple: number;
|
|
3232
3378
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3233
3379
|
givenValue: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3234
3380
|
isCosGiven: boolean;
|
|
3235
3381
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3236
|
-
|
|
3382
|
+
randAngle: number;
|
|
3383
|
+
randTrigo: number;
|
|
3384
|
+
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3385
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3386
|
+
randAngle: number;
|
|
3387
|
+
hiddenSide: number;
|
|
3388
|
+
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3389
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3390
|
+
sideAsked: number;
|
|
3391
|
+
givenSide: number;
|
|
3392
|
+
givenAngle: number;
|
|
3393
|
+
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3394
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3395
|
+
sideType: string;
|
|
3237
3396
|
indexPoint: number;
|
|
3238
3397
|
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3239
3398
|
}, {
|
|
3240
|
-
|
|
3399
|
+
sideTypes: string[];
|
|
3241
3400
|
}> | Exercise<{
|
|
3242
|
-
|
|
3401
|
+
nameTrigoFunc: string;
|
|
3243
3402
|
indexPoint: number;
|
|
3244
3403
|
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
3245
3404
|
}, {
|
|
3246
|
-
|
|
3405
|
+
acceptedInputType: string;
|
|
3247
3406
|
}> | Exercise<{
|
|
3248
3407
|
questionType: "frac" | "func";
|
|
3249
3408
|
targetType: string;
|
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;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
13
|
static random(name?: string): Line;
|
|
14
14
|
static fromIdentifiers(identifiers: LineIdentifiers): Line;
|
|
15
15
|
static fromSegment(segment: Segment): Line;
|
|
16
|
+
static fromPointAndNormalVector(point: Point, vector: Vector): Line;
|
|
16
17
|
static fromPointAndVector(point: Point, vector: Vector): Line;
|
|
17
18
|
static fromCartesian(eq: EqualNode): Line;
|
|
18
19
|
}
|
|
@@ -31,6 +32,7 @@ export declare class Line {
|
|
|
31
32
|
pointA: PointIdentifiers;
|
|
32
33
|
pointB: PointIdentifiers;
|
|
33
34
|
};
|
|
35
|
+
isCoincident(line: Line): boolean;
|
|
34
36
|
isParallele(line: Line): boolean;
|
|
35
37
|
getDirectorVector(): Vector;
|
|
36
38
|
getParallele(point: Point): Line;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAG1F,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAS,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAmB3E,OAAO,EAAE,KAAK,EAAoB,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAqB,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AACF,8BAAsB,eAAe;IACnC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM;IAO3B,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,eAAe;IAOnD,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO;IAGnC,MAAM,CAAC,kBAA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CAAC;gBAGd,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,KAAK,EACb,IAAI,CAAC,EAAE,MAAM;IA4Bf,aAAa;;;;;IAOb,YAAY,CAAC,IAAI,EAAE,IAAI;IAKvB,WAAW,CAAC,IAAI,EAAE,IAAI;IAYtB,iBAAiB;IAIjB,YAAY,CAAC,KAAK,EAAE,KAAK;IAYzB,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAW7B,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,SAAI;IAkBjC,aAAa,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM;IAK7C,aAAa,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM;IAW7C,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM;IAa5B,iBAAiB,QAAO,SAAS,CAO/B;IAEF,oBAAoB,IAAI,SAAS;IAUjC,iBAAiB;IA2BjB,KAAK;IAGL,gBAAgB;IAIhB,aAAa,CACX,iBAAiB,EAAE,OAAO,EAC1B,EACE,OAAc,EACd,gBAAwB,EACxB,SAAiB,EACjB,yBAAgC,EAEhC,KAAiB,EACjB,KAAiB,GAClB,GAAE,kBAAuB;IA+C5B,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE,MAAM;IAa5C,SAAS,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,EAAE,CAAC,EAAE,aAAa,GAAG,MAAM;CAG/D"}
|
|
@@ -29,6 +29,10 @@ export class LineConstructor {
|
|
|
29
29
|
static fromSegment(segment) {
|
|
30
30
|
return new Line(segment.pointA, segment.pointB);
|
|
31
31
|
}
|
|
32
|
+
static fromPointAndNormalVector(point, vector) {
|
|
33
|
+
const vecDir = vector.getOrthogonal();
|
|
34
|
+
return this.fromPointAndVector(point, vecDir);
|
|
35
|
+
}
|
|
32
36
|
static fromPointAndVector(point, vector) {
|
|
33
37
|
const pointB = vector.getEndPoint(point);
|
|
34
38
|
return new Line(point, pointB);
|
|
@@ -87,6 +91,9 @@ export class Line {
|
|
|
87
91
|
pointB: this.pointB.toIdentifiers(),
|
|
88
92
|
};
|
|
89
93
|
}
|
|
94
|
+
isCoincident(line) {
|
|
95
|
+
return (line.includes(this.pointA, 0.0001) && line.includes(this.pointB, 0.0001));
|
|
96
|
+
}
|
|
90
97
|
isParallele(line) {
|
|
91
98
|
if (this.isVertical) {
|
|
92
99
|
return line.isVertical;
|
|
@@ -52,6 +52,7 @@ export declare class Point {
|
|
|
52
52
|
toMathString(): string;
|
|
53
53
|
toGGBCommand({ isFixed, isSelectionnable, showLabel, style, size, color, label, }?: ToGGBCommandsProps): string[];
|
|
54
54
|
rotate(angle: number, _center: Point): Point;
|
|
55
|
+
centralRotate(angle: AlgebraicNode, center: Point): Point;
|
|
55
56
|
centralSymetric(center: Point, name?: string): Point;
|
|
56
57
|
project(line: Line, name?: string): Point;
|
|
57
58
|
axialSymetric(line: Line, name?: string): Point;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/point.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAEL,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,eAAe,CAAC;IACnB,CAAC,EAAE,eAAe,CAAC;CACpB,CAAC;AACF,8BAAsB,gBAAgB;IACpC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE;IAGrC,MAAM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,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,SAAkB;IAKhD,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe;IAG/B,SAAS,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,EAAE,CAAC,EAAE,aAAa,GAAG,MAAM;CAO/D"}
|
|
@@ -182,6 +182,11 @@ export class Point {
|
|
|
182
182
|
const sin = Math.sin(angle);
|
|
183
183
|
return new Point(this.name, substract(multiply(cos, this.x).simplify(), multiply(sin, this.y).simplify()).simplify(), add(multiply(sin, this.x).simplify(), multiply(cos, this.y).simplify()).simplify());
|
|
184
184
|
}
|
|
185
|
+
centralRotate(angle, center) {
|
|
186
|
+
const x = add(center.x, substract(multiply(substract(this.x, center.x), cos(angle)), multiply(substract(this.y, center.y), sin(angle)))).simplify();
|
|
187
|
+
const y = add(center.y, substract(multiply(substract(this.x, center.x), sin(angle)), multiply(substract(this.y, center.y), cos(angle)))).simplify();
|
|
188
|
+
return new Point(this.name + "'", x, y);
|
|
189
|
+
}
|
|
185
190
|
centralSymetric(center, name = this.name + "'") {
|
|
186
191
|
const vec = VectorConstructor.fromPoints(this, center);
|
|
187
192
|
return vec.getEndPoint(center, name);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Point } from "../point.js";
|
|
2
|
+
/** Get relationship between a point and a polygon using ray-casting algorithm
|
|
3
|
+
* @param {{x:number, y:number}} P: point to check
|
|
4
|
+
* @param {{x:number, y:number}[]} polygon: the polygon
|
|
5
|
+
* @returns -1: outside, 0: on edge, 1: inside
|
|
6
|
+
*/
|
|
7
|
+
export declare function relationPP(point: Point, polygon: Point[]): 1 | 0 | -1;
|
|
8
|
+
//# sourceMappingURL=relationPP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relationPP.d.ts","sourceRoot":"","sources":["../../../../src/math/geometry/polygons/relationPP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,cAiCxD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Get relationship between a point and a polygon using ray-casting algorithm
|
|
2
|
+
* @param {{x:number, y:number}} P: point to check
|
|
3
|
+
* @param {{x:number, y:number}[]} polygon: the polygon
|
|
4
|
+
* @returns -1: outside, 0: on edge, 1: inside
|
|
5
|
+
*/
|
|
6
|
+
export function relationPP(point, polygon) {
|
|
7
|
+
const P = {
|
|
8
|
+
x: point.x.evaluate(),
|
|
9
|
+
y: point.y.evaluate(),
|
|
10
|
+
};
|
|
11
|
+
const between = (p, a, b) => (p >= a && p <= b) || (p <= a && p >= b);
|
|
12
|
+
let inside = false;
|
|
13
|
+
for (let i = polygon.length - 1, j = 0; j < polygon.length; i = j, j++) {
|
|
14
|
+
const A = {
|
|
15
|
+
x: polygon[i].x.evaluate(),
|
|
16
|
+
y: polygon[i].y.evaluate(),
|
|
17
|
+
};
|
|
18
|
+
const B = {
|
|
19
|
+
x: polygon[j].x.evaluate(),
|
|
20
|
+
y: polygon[j].y.evaluate(),
|
|
21
|
+
};
|
|
22
|
+
// corner cases
|
|
23
|
+
if ((P.x == A.x && P.y == A.y) || (P.x == B.x && P.y == B.y))
|
|
24
|
+
return 0;
|
|
25
|
+
if (A.y == B.y && P.y == A.y && between(P.x, A.x, B.x))
|
|
26
|
+
return 0;
|
|
27
|
+
if (between(P.y, A.y, B.y)) {
|
|
28
|
+
// if P inside the vertical range
|
|
29
|
+
// filter out "ray pass vertex" problem by treating the line a little lower
|
|
30
|
+
if ((P.y == A.y && B.y >= A.y) || (P.y == B.y && A.y >= B.y))
|
|
31
|
+
continue;
|
|
32
|
+
// calc cross product `PA X PB`, P lays on left side of AB if c > 0
|
|
33
|
+
const c = (A.x - P.x) * (B.y - P.y) - (B.x - P.x) * (A.y - P.y);
|
|
34
|
+
if (c == 0)
|
|
35
|
+
return 0;
|
|
36
|
+
if (A.y < B.y == c > 0)
|
|
37
|
+
inside = !inside;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return inside ? 1 : -1;
|
|
41
|
+
}
|
|
@@ -30,7 +30,7 @@ export declare class Segment {
|
|
|
30
30
|
toIdentifiers(): SegmentIdentifiers;
|
|
31
31
|
getMidpoint(): Point;
|
|
32
32
|
getLength(): number;
|
|
33
|
-
getLengthNode(): AlgebraicNode;
|
|
33
|
+
getLengthNode(): AlgebraicNode | import("../../tree/nodes/operators/multiplyNode.js").MultiplyNode | import("../../tree/nodes/functions/sqrtNode.js").SqrtNode;
|
|
34
34
|
toTex(): string;
|
|
35
35
|
toInsideName(): string;
|
|
36
36
|
toLengthTex(): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AlgebraicNode } from "../../tree/nodes/algebraicNode.js";
|
|
2
2
|
import { NodeIdentifiers } from "../../tree/nodes/nodeConstructor.js";
|
|
3
|
+
import { AddNode } from "../../tree/nodes/operators/addNode.js";
|
|
3
4
|
import { Point } from "./point.js";
|
|
4
5
|
import { Segment } from "./segment.js";
|
|
5
6
|
export declare abstract class VectorConstructor {
|
|
@@ -34,7 +35,7 @@ export declare class Vector {
|
|
|
34
35
|
determinant(v: Vector): AlgebraicNode;
|
|
35
36
|
times(k: AlgebraicNode, name?: string): Vector;
|
|
36
37
|
opposite(): Vector;
|
|
37
|
-
scalarProduct(v: Vector):
|
|
38
|
+
scalarProduct(v: Vector): AddNode;
|
|
38
39
|
scalarProductNumber(v: Vector): number;
|
|
39
40
|
toUnited(): Vector;
|
|
40
41
|
toPrimeColinear(name?: string): Vector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;
|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IAAI,MAAM;IAM3B,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO;IAK9B,sBAAsB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO;IAI1C,kBAAkB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO;IAItC,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa;IAIrC,KAAK,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,MAAM;IAOrC,QAAQ;IAGR,aAAa,CAAC,CAAC,EAAE,MAAM;IAIvB,mBAAmB,CAAC,CAAC,EAAE,MAAM;IAO7B,QAAQ;IAGR,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM;IAwB7B,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAWtB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAG5B,OAAO,IAAI,aAAa;IAUxB,WAAW,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM;IAO5C,MAAM,CAAC,CAAC,EAAE,MAAM;IAIhB,YAAY;IAMZ,YAAY;IAOZ,aAAa;IAIb,MAAM;IAGN,aAAa;IAKb,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAqBnC"}
|
|
@@ -93,7 +93,7 @@ export class Vector {
|
|
|
93
93
|
return this.times((-1).toTree());
|
|
94
94
|
}
|
|
95
95
|
scalarProduct(v) {
|
|
96
|
-
return add(multiply(this.x, v.x), multiply(this.y, v.y))
|
|
96
|
+
return add(multiply(this.x, v.x), multiply(this.y, v.y));
|
|
97
97
|
}
|
|
98
98
|
scalarProductNumber(v) {
|
|
99
99
|
const xEv = this.x.evaluate();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"real.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/real.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAA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ACzC;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,EACxB,kBAA0B,EAC1B,SAAc,GACf;;;KAAA,GAAG,UAAU;IAed,MAAM,CAAC,kBAAkB,CAAC,GAAG,GAAE,MAAW,GAAG,UAAU;CAIxD;AAED,qBAAa,UAAW,SAAQ,IAAI;IAClC,OAAO,EAAE,MAAM,CAAC;gBACJ,OAAO,EAAE,MAAM;IAK3B,cAAc;IAOd,mBAAmB,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;IAkBvC,sDAAsD;IACtD,aAAa,IAAI,MAAM;IAMvB,QAAQ,IAAI,MAAM;IA+BlB,KAAK,IAAI,MAAM;IAIf,MAAM;CAGP"}
|
|
@@ -69,7 +69,7 @@ export declare class Trinom extends Polynomial {
|
|
|
69
69
|
getDeltaNode(): NumberNode;
|
|
70
70
|
getRoots(): number[];
|
|
71
71
|
getRootsNode(): AlgebraicNode[];
|
|
72
|
-
getRootsEquationSolutionTex(): string;
|
|
72
|
+
getRootsEquationSolutionTex(isFormatXEquals?: boolean): string;
|
|
73
73
|
getAlpha(): number;
|
|
74
74
|
getAlphaNode(): AlgebraicNode | NumberNode;
|
|
75
75
|
getBeta(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinom.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/trinom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAO,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAErE,OAAO,EAEL,YAAY,EACb,MAAM,4CAA4C,CAAC;AAGpD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAKlE,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM,CACX,KAAK,CAAC,EAAE;QAAE,GA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IAQjE,QAAQ;IAGR,YAAY,IAAI,UAAU;IAI1B,QAAQ;IAUR,YAAY,IAAI,aAAa,EAAE;IAyD/B,2BAA2B,CAAC,eAAe,CAAC,EAAE,OAAO;IAarD,QAAQ;IAGR,YAAY;IAIZ,OAAO;IAIP,WAAW;IAIX,YAAY;IAeZ,gBAAgB;IAsBhB,SAAS;IAIT,SAAS;IAYT,QAAQ;IAkCR,aAAa,CACX,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE;;;;KAA4C;CAYrE"}
|
|
@@ -165,13 +165,22 @@ export class Trinom extends Polynomial {
|
|
|
165
165
|
];
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
getRootsEquationSolutionTex() {
|
|
168
|
+
getRootsEquationSolutionTex(isFormatXEquals) {
|
|
169
169
|
const roots = this.getRootsNode();
|
|
170
|
-
if (!
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
if (!isFormatXEquals) {
|
|
171
|
+
if (!roots.length)
|
|
172
|
+
return `S=\\varnothing`;
|
|
173
|
+
if (roots.length === 1)
|
|
174
|
+
return `S=\\left\\{${roots[0].toTex()}\\right\\}`;
|
|
175
|
+
return `S=\\left\\{${roots[0].toTex()};${roots[1].toTex()}\\right\\}`;
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
if (!roots.length)
|
|
179
|
+
return `x\\in\\varnothing`;
|
|
180
|
+
if (roots.length === 1)
|
|
181
|
+
return `x=${roots[0].toTex()}`;
|
|
182
|
+
return `x=${roots[0].toTex()}\\text{ ou }x=${roots[1].toTex()}`;
|
|
183
|
+
}
|
|
175
184
|
}
|
|
176
185
|
getAlpha() {
|
|
177
186
|
return -this.b / (2 * this.a);
|