math-exercises 3.0.9 → 3.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/exercises/math/calcul/fractions/fractionsOperations.d.ts.map +1 -1
- package/lib/exercises/math/calcul/fractions/fractionsOperations.js +0 -1
- package/lib/exercises/math/calculLitteral/equation/firstDegreeEquationIntType1.js +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/factorisation/factoType1Exercise.js +6 -2
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.d.ts +1 -1
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/imageFunctionGeogebra.js +54 -17
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts +11 -0
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/devForm/coefficientsIdentification.js +134 -0
- package/lib/exercises/math/functions/trinoms/devForm/index.d.ts +3 -0
- package/lib/exercises/math/functions/trinoms/devForm/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/devForm/index.js +2 -0
- package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/devForm/variationsFromAlgebricForm.js +42 -0
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/equation/deltaTrinom.js +50 -0
- package/lib/exercises/math/functions/trinoms/equation/index.d.ts +5 -0
- package/lib/exercises/math/functions/trinoms/equation/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/equation/index.js +4 -0
- package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.d.ts +11 -0
- package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.js +102 -0
- package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationByFactorisation.js +131 -0
- package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.d.ts +7 -0
- package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/equation/solveSecondDegreeEquationFromCano.js +69 -0
- package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/factoForm/factorizedFormFromRoots.js +72 -0
- package/lib/exercises/math/functions/trinoms/factoForm/index.d.ts +2 -0
- package/lib/exercises/math/functions/trinoms/factoForm/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/factoForm/index.js +1 -0
- package/lib/exercises/math/functions/trinoms/index.d.ts +7 -23
- package/lib/exercises/math/functions/trinoms/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/index.js +7 -23
- package/lib/exercises/math/functions/trinoms/parabole/index.d.ts +3 -0
- package/lib/exercises/math/functions/trinoms/parabole/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/parabole/index.js +2 -0
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.js +285 -0
- package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/parabole/trinomSymetryAxisFromFacto.js +112 -0
- package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.d.ts +10 -0
- package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/findSecondRoot.js +124 -0
- package/lib/exercises/math/functions/trinoms/roots/index.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/roots/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/index.js +7 -0
- package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.js +54 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.js +55 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsFromFactorizedForm.js +67 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsProduct.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsProduct.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsProduct.js +109 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsReading.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsReading.js +63 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsSum.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsSum.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/roots/rootsSum.js +109 -0
- package/lib/exercises/math/functions/trinoms/sign/index.d.ts +3 -0
- package/lib/exercises/math/functions/trinoms/sign/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/sign/index.js +2 -0
- package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/sign/trinomSignFromFacto.js +120 -0
- package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/sign/trinomSignFromRoots.js +119 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.d.ts +8 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaFromDevForm.js +49 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts +10 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/alphaBetaInCanonicalForm.js +64 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/canonicalFromDevForm.js +48 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumFromCanonicalForm.js +55 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/extremumTypeFromAlgebricForm.js +42 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/index.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/index.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/index.js +8 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromDevForm.js +90 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.js +55 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.d.ts +9 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.d.ts.map +1 -0
- package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitReading.js +59 -0
- package/lib/exercises/math/geometry/areas/triangleArea.d.ts +2 -0
- package/lib/exercises/math/geometry/areas/triangleArea.d.ts.map +1 -1
- package/lib/exercises/math/geometry/areas/triangleArea.js +56 -31
- package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.d.ts.map +1 -1
- package/lib/exercises/math/geometry/cartesian/drawAlineInGGB.js +34 -14
- package/lib/exercises/utils/geogebra/toGGBCommandsProps.d.ts +1 -0
- package/lib/exercises/utils/geogebra/toGGBCommandsProps.d.ts.map +1 -1
- package/lib/index.d.ts +43 -32
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/line.d.ts +1 -1
- package/lib/math/geometry/line.d.ts.map +1 -1
- package/lib/math/geometry/line.js +11 -1
- package/lib/math/geometry/parabola.d.ts +1 -1
- package/lib/math/geometry/parabola.d.ts.map +1 -1
- package/lib/math/geometry/parabola.js +4 -1
- package/lib/math/geometry/triangle.d.ts +1 -0
- package/lib/math/geometry/triangle.d.ts.map +1 -1
- package/lib/math/geometry/triangle.js +10 -2
- package/lib/math/systems/generalSystem.d.ts.map +1 -1
- package/lib/tests/questionTest.d.ts.map +1 -1
- package/lib/tests/questionTest.js +1 -1
- package/lib/tree/nodes/algebraicNode.d.ts +1 -0
- package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
- package/lib/tree/nodes/polynomials/trinomNode.d.ts +1 -0
- package/lib/tree/nodes/polynomials/trinomNode.d.ts.map +1 -1
- package/lib/tree/nodes/polynomials/trinomNode.js +9 -0
- package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -1
- package/lib/tree/nodes/variables/variableNode.js +1 -3
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@ export declare class TrinomNode implements AlgebraicNode {
|
|
|
62
62
|
toMathString(): string;
|
|
63
63
|
getRoots(): AlgebraicNode[];
|
|
64
64
|
toTree(): import("../../../tree/nodes/operators/addNode.js").AddNode | import("../../../tree/nodes/operators/multiplyNode.js").MultiplyNode;
|
|
65
|
+
toFactorized(): AlgebraicNode | import("../../../tree/nodes/operators/addNode.js").AddNode | import("../../../tree/nodes/operators/multiplyNode.js").MultiplyNode;
|
|
65
66
|
toTex(): string;
|
|
66
67
|
getCoeffs(): number[];
|
|
67
68
|
toIdentifiers(): TrinomNodeIdentifiers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinomNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/polynomials/trinomNode.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,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EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAGxD,QAAQ,CAAC,IAAI,CAAC,EAAE,eAAe;IAG/B,cAAc,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS;IAG7C,iBAAiB,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS;IAGhD,YAAY;IAIZ,QAAQ,IAAI,aAAa,EAAE;IAgB3B,MAAM;IAYN,YAAY;IAiBZ,KAAK;IAGL,SAAS;IAIT,aAAa,IAAI,qBAAqB;CASvC"}
|
|
@@ -138,6 +138,15 @@ export class TrinomNode {
|
|
|
138
138
|
return add(highMonom, this.c);
|
|
139
139
|
return add(highMonom, add(middleMonom, this.c));
|
|
140
140
|
}
|
|
141
|
+
toFactorized() {
|
|
142
|
+
const roots = this.getRoots();
|
|
143
|
+
if (!roots.length)
|
|
144
|
+
return this.toTree();
|
|
145
|
+
if (roots.length === 1) {
|
|
146
|
+
return multiply(this.a, square(substract(this.variable, roots[0]))).simplify();
|
|
147
|
+
}
|
|
148
|
+
return multiply(this.a, multiply(substract(this.variable, roots[0]), substract(this.variable, roots[1]))).simplify();
|
|
149
|
+
}
|
|
141
150
|
toTex() {
|
|
142
151
|
return this.toTree().toTex();
|
|
143
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variableNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/variables/variableNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,YAAY,CAEzD;AACD,qBAAa,YAAa,YAAW,aAAa;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,WAAqB;IACzB,SAAS,EAAE,OAAO,CAAC;gBACP,IAAI,EAAE,MAAM;IAIxB,aAAa;;;;IAMb,KAAK,IAAI,MAAM;IAGf,YAAY,IAAI,MAAM;IAGtB,QAAQ;IAGR,cAAc;IAGd,iBAAiB;IAIjB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQtC,QAAQ;IAGR,MAAM,CAAC,IAAI,EAAE,aAAa;IAG1B,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"variableNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/variables/variableNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAErD,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,IAAI,YAAY,CAEzD;AACD,qBAAa,YAAa,YAAW,aAAa;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,WAAqB;IACzB,SAAS,EAAE,OAAO,CAAC;gBACP,IAAI,EAAE,MAAM;IAIxB,aAAa;;;;IAMb,KAAK,IAAI,MAAM;IAGf,YAAY,IAAI,MAAM;IAGtB,QAAQ;IAGR,cAAc;IAGd,iBAAiB;IAIjB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQtC,QAAQ;IAGR,MAAM,CAAC,IAAI,EAAE,aAAa;IAG1B,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC;IAGxD,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa;CAKxD"}
|
|
@@ -47,9 +47,7 @@ export class VariableNode {
|
|
|
47
47
|
return isVariableNode(node) && node.name === this.name;
|
|
48
48
|
}
|
|
49
49
|
toDetailedEvaluation(vars) {
|
|
50
|
-
|
|
51
|
-
throw Error("Detailed Evaluation variable non handled");
|
|
52
|
-
return vars[this.name];
|
|
50
|
+
return vars[this.name] ?? this;
|
|
53
51
|
}
|
|
54
52
|
derivative(varName) {
|
|
55
53
|
const variable = varName ?? "x";
|