math-exercises 2.2.80 → 2.2.82
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/arithmetics/divisibiltyCriteria.d.ts.map +1 -1
- package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.js +1 -0
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType2.js +79 -30
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts +4 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +89 -39
- package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/inequations/squareFunctionInequation.js +37 -17
- package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/simplifying/evaluateExpression.js +55 -15
- package/lib/exercises/math/derivation/derivative/convexityQuadrinomials.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/convexityQuadrinomials.js +9 -18
- package/lib/exercises/math/derivation/derivative/lnDerivativeThree.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/lnDerivativeThree.js +3 -0
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
- package/lib/exercises/math/derivation/derivative/thirdDegreeFunctionVariation.js +11 -11
- package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.d.ts.map +1 -1
- package/lib/exercises/math/functions/absolute/absolueValueInequationsSup.js +10 -2
- package/lib/exercises/math/functions/absolute/absoluteValueInequations.d.ts.map +1 -1
- package/lib/exercises/math/functions/absolute/absoluteValueInequations.js +11 -4
- package/lib/exercises/math/functions/basics/graphicEquation.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/graphicEquation.js +46 -28
- package/lib/exercises/math/functions/basics/graphicInequation.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/graphicInequation.js +0 -1
- package/lib/exercises/math/functions/basics/graphicInequationAffine.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/graphicInequationAffine.js +10 -3
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.d.ts.map +1 -1
- package/lib/exercises/math/functions/basics/twoFunctionsInequation.js +74 -58
- package/lib/exercises/math/functions/exponentials/exponentialsVariations.d.ts.map +1 -1
- package/lib/exercises/math/functions/exponentials/exponentialsVariations.js +1 -0
- package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts +5 -2
- package/lib/exercises/math/functions/logarithm/log10Simplifying.d.ts.map +1 -1
- package/lib/exercises/math/functions/logarithm/log10Simplifying.js +2 -0
- package/lib/exercises/math/functions/logarithm/logEquation.d.ts.map +1 -1
- package/lib/exercises/math/functions/logarithm/logEquation.js +1 -0
- package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts +5 -2
- package/lib/exercises/math/functions/logarithm/logPowerEquation.d.ts.map +1 -1
- package/lib/exercises/math/functions/logarithm/logPowerEquation.js +2 -0
- package/lib/exercises/math/functions/logarithm/logSimplifiying.d.ts.map +1 -1
- package/lib/exercises/math/functions/logarithm/logSimplifiying.js +1 -0
- package/lib/exercises/math/functions/square/squareImageInterval.d.ts.map +1 -1
- package/lib/exercises/math/functions/square/squareImageInterval.js +13 -4
- package/lib/exercises/math/functions/trinoms/secondDegreeInequation.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/secondDegreeInequation.js +10 -6
- package/lib/exercises/math/functions/trinoms/trinomSignFromRoots.d.ts.map +1 -1
- package/lib/exercises/math/functions/trinoms/trinomSignFromRoots.js +12 -6
- package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.d.ts.map +1 -1
- package/lib/exercises/math/geometry/convexity/convexityQuadrinomialsGeo.js +9 -14
- package/lib/exercises/math/matrices/matrixInversibilityDomain.d.ts.map +1 -1
- package/lib/exercises/math/matrices/matrixInversibilityDomain.js +15 -2
- package/lib/exercises/math/probaStat/binomial/binomialInequation.d.ts.map +1 -1
- package/lib/exercises/math/python/pyForLoop1Exercise.d.ts.map +1 -1
- package/lib/exercises/math/sequences/genericSequenceVariations.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/inequalityToInterval.d.ts +2 -4
- package/lib/exercises/math/sets/intervals/inequalityToInterval.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/inequalityToInterval.js +28 -25
- package/lib/exercises/math/sets/intervals/intervalToInequality.d.ts +2 -4
- package/lib/exercises/math/sets/intervals/intervalToInequality.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/intervalToInequality.js +40 -78
- package/lib/exercises/math/sets/intervals/intervalsIntersection.d.ts +3 -7
- package/lib/exercises/math/sets/intervals/intervalsIntersection.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/intervalsIntersection.js +91 -31
- package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts +3 -7
- package/lib/exercises/math/sets/intervals/intervalsUnion.d.ts.map +1 -1
- package/lib/exercises/math/sets/intervals/intervalsUnion.js +58 -19
- package/lib/exercises/pc/index.d.ts +4 -0
- package/lib/exercises/pc/index.d.ts.map +1 -1
- package/lib/exercises/pc/index.js +4 -6
- package/lib/exercises/vea/equationVEA.js +2 -2
- package/lib/geogebra/lagrange.d.ts.map +1 -1
- package/lib/geogebra/spline.d.ts.map +1 -1
- package/lib/index.d.ts +49 -23
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/point.d.ts.map +1 -1
- package/lib/math/inequations/inequation.d.ts +1 -1
- package/lib/math/inequations/inequation.d.ts.map +1 -1
- package/lib/math/numbers/integer/integer.d.ts.map +1 -1
- package/lib/math/numbers/rationals/rational.d.ts +2 -3
- package/lib/math/numbers/rationals/rational.d.ts.map +1 -1
- package/lib/math/polynomials/trinom.d.ts +2 -4
- package/lib/math/polynomials/trinom.d.ts.map +1 -1
- package/lib/playground.d.ts.map +1 -1
- package/lib/playground.js +4 -4
- package/lib/tree/nodes/equations/equationSolutionNode.d.ts +0 -1
- package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -1
- package/lib/tree/nodes/equations/equationSolutionNode.js +0 -3
- package/lib/tree/nodes/inequations/inequationNode.d.ts +2 -1
- package/lib/tree/nodes/inequations/inequationNode.d.ts.map +1 -1
- package/lib/tree/nodes/inequations/inequationNode.js +4 -3
- package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts +0 -1
- package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts.map +1 -1
- package/lib/tree/nodes/inequations/inequationSolutionNode.js +0 -3
- package/lib/tree/nodes/numbers/numberNode.d.ts +1 -1
- package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/multiplyNode.js +6 -1
- package/lib/tree/nodes/sets/closure.d.ts +5 -0
- package/lib/tree/nodes/sets/closure.d.ts.map +1 -1
- package/lib/tree/nodes/sets/closure.js +32 -0
- package/lib/tree/nodes/sets/discreteSetNode.d.ts +4 -4
- package/lib/tree/nodes/sets/discreteSetNode.d.ts.map +1 -1
- package/lib/tree/nodes/sets/discreteSetNode.js +3 -4
- package/lib/tree/nodes/sets/intervalNode.d.ts +13 -1
- package/lib/tree/nodes/sets/intervalNode.d.ts.map +1 -1
- package/lib/tree/nodes/sets/intervalNode.js +154 -3
- package/lib/tree/parsers/discreteSetParser.d.ts +2 -2
- package/lib/tree/parsers/discreteSetParser.d.ts.map +1 -1
- package/lib/tree/parsers/discreteSetParser.js +2 -1
- package/lib/tree/parsers/equationSolutionParser.js +1 -1
- package/lib/tree/parsers/powerParser.d.ts +1 -1
- package/lib/tree/parsers/rationalParser.d.ts +1 -1
- package/lib/tree/parsers/unionIntervalParser.d.ts.map +1 -1
- package/lib/tree/parsers/unionIntervalParser.js +3 -1
- package/package.json +1 -1
|
@@ -3,17 +3,74 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.intervalsIntersection = void 0;
|
|
4
4
|
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const
|
|
6
|
+
const infiniteNode_1 = require("../../../../tree/nodes/numbers/infiniteNode");
|
|
7
7
|
const discreteSetNode_1 = require("../../../../tree/nodes/sets/discreteSetNode");
|
|
8
8
|
const intervalNode_1 = require("../../../../tree/nodes/sets/intervalNode");
|
|
9
|
+
const discreteSetParser_1 = require("../../../../tree/parsers/discreteSetParser");
|
|
10
|
+
const intervalParser_1 = require("../../../../tree/parsers/intervalParser");
|
|
9
11
|
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
12
|
+
const rebuildIdentifiers = (oldIds) => {
|
|
13
|
+
const a1 = oldIds.int1Min === "-infty" ? infiniteNode_1.MinusInfinityNode : oldIds.int1Min.toTree();
|
|
14
|
+
const b1 = oldIds.int1Max === "infty" ? infiniteNode_1.PlusInfinityNode : oldIds.int1Max.toTree();
|
|
15
|
+
const closure1 = oldIds.int1Closure;
|
|
16
|
+
const interval1 = new intervalNode_1.IntervalNode(a1, b1, closure1);
|
|
17
|
+
const a2 = oldIds.int2Min === "-infty" ? infiniteNode_1.MinusInfinityNode : oldIds.int2Min.toTree();
|
|
18
|
+
const b2 = oldIds.int2Max === "infty" ? infiniteNode_1.PlusInfinityNode : oldIds.int2Max.toTree();
|
|
19
|
+
const closure2 = oldIds.int2Closure;
|
|
20
|
+
const interval2 = new intervalNode_1.IntervalNode(a2, b2, closure2);
|
|
21
|
+
return {
|
|
22
|
+
int1Identifiers: interval1.toIdentifiers(),
|
|
23
|
+
int2Identifiers: interval2.toIdentifiers(),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const getInstruction = (identifiers) => {
|
|
27
|
+
const [int1, int2] = [
|
|
28
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int1Identifiers),
|
|
29
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int2Identifiers),
|
|
30
|
+
];
|
|
31
|
+
return `Soit $I = ${int1.toTex()}$ et $J = ${int2.toTex()}$.
|
|
32
|
+
|
|
33
|
+
Déterminer $I\\cap J$.`;
|
|
34
|
+
};
|
|
35
|
+
const getAnswer = (identifiers) => {
|
|
36
|
+
const [int1, int2] = [
|
|
37
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int1Identifiers),
|
|
38
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int2Identifiers),
|
|
39
|
+
];
|
|
40
|
+
const inter = int1.intersection(int2);
|
|
41
|
+
return inter.toTex();
|
|
42
|
+
};
|
|
43
|
+
const getCorrection = (identifiers) => {
|
|
44
|
+
const [int1, int2] = [
|
|
45
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int1Identifiers),
|
|
46
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int2Identifiers),
|
|
47
|
+
];
|
|
48
|
+
const inter = int1.intersection(int2);
|
|
49
|
+
const answer = inter.toTex();
|
|
50
|
+
return `$I$ contient les nombres ${int1.toText(true, false)}.
|
|
51
|
+
|
|
52
|
+
$J$ contient les nombres ${int2.toText(false, false)}.
|
|
53
|
+
|
|
54
|
+
${(0, discreteSetNode_1.isDiscreteSetNode)(inter) && inter.elements.length === 0
|
|
55
|
+
? `Il n'y a donc aucun nombre commun aux intervalles $I$ et $J$.`
|
|
56
|
+
: (0, discreteSetNode_1.isDiscreteSetNode)(inter) && inter.elements.length === 1
|
|
57
|
+
? `Il n'y a donc qu'un nombre commun aux intervalles $I$ et $J$ : $${inter.elements[0].toTex()}$.`
|
|
58
|
+
: (0, intervalNode_1.isIntervalNode)(inter) &&
|
|
59
|
+
`Les nombres communs à $I$ et $J$ sont donc les nombres ${inter.toText(true, false)}.`}
|
|
60
|
+
|
|
61
|
+
Ainsi, $I\\cap J = ${answer}$`;
|
|
62
|
+
};
|
|
10
63
|
const getIntervalsIntersectionQuestion = () => {
|
|
11
|
-
const [int1, int2] =
|
|
64
|
+
const [int1, int2] = intervalNode_1.IntervalNodeConstructor.differentRandoms(2);
|
|
12
65
|
const inter = int1.intersection(int2);
|
|
13
66
|
const answer = inter.toTex();
|
|
67
|
+
const identifiers = {
|
|
68
|
+
int1Identifiers: int1.toIdentifiers(),
|
|
69
|
+
int2Identifiers: int2.toIdentifiers(),
|
|
70
|
+
};
|
|
14
71
|
const question = {
|
|
15
|
-
answer,
|
|
16
|
-
instruction:
|
|
72
|
+
answer: getAnswer(identifiers),
|
|
73
|
+
instruction: getInstruction(identifiers),
|
|
17
74
|
keys: [
|
|
18
75
|
"infty",
|
|
19
76
|
"varnothing",
|
|
@@ -26,44 +83,46 @@ const getIntervalsIntersectionQuestion = () => {
|
|
|
26
83
|
"rbrace",
|
|
27
84
|
],
|
|
28
85
|
answerFormat: "tex",
|
|
29
|
-
identifiers
|
|
30
|
-
int1Closure: int1.closure,
|
|
31
|
-
int1Max: int1.max,
|
|
32
|
-
int1Min: int1.min,
|
|
33
|
-
int2Closure: int2.closure,
|
|
34
|
-
int2Max: int2.max,
|
|
35
|
-
int2Min: int2.min,
|
|
36
|
-
},
|
|
86
|
+
identifiers,
|
|
37
87
|
hint: `Détermine l'ensemble des nombres qui appartiennent à la fois à $I$ et à $J$.`,
|
|
38
|
-
correction:
|
|
39
|
-
|
|
40
|
-
$J$ contient les nombres ${int2.toTree().toText(false, false)}.
|
|
41
|
-
|
|
42
|
-
${(0, discreteSetNode_1.isDiscreteSetNode)(inter) && inter.elements.length === 0
|
|
43
|
-
? `Il n'y a donc aucun nombre commun aux intervalles $I$ et $J$.`
|
|
44
|
-
: (0, discreteSetNode_1.isDiscreteSetNode)(inter) && inter.elements.length === 1
|
|
45
|
-
? `Il n'y a donc qu'un nombre commun aux intervalles $I$ et $J$ : $${inter.elements[0].toTex()}$.`
|
|
46
|
-
: (0, intervalNode_1.isIntervalNode)(inter) &&
|
|
47
|
-
`Les nombres communs à $I$ et $J$ sont donc les nombres ${inter.toText(true, false)}.`}
|
|
48
|
-
|
|
49
|
-
Ainsi, $I\\cap J = ${answer}$`,
|
|
88
|
+
correction: getCorrection(identifiers),
|
|
50
89
|
};
|
|
51
90
|
return question;
|
|
52
91
|
};
|
|
53
|
-
const getPropositions = (n, { answer,
|
|
92
|
+
const getPropositions = (n, { answer, int1Identifiers, int2Identifiers }) => {
|
|
54
93
|
const propositions = [];
|
|
94
|
+
const [int1, int2] = [
|
|
95
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(int1Identifiers),
|
|
96
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(int2Identifiers),
|
|
97
|
+
];
|
|
55
98
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
56
|
-
|
|
57
|
-
const int2 = new intervals_1.Interval(int2Min.toTree(), int2Max.toTree(), int2Closure);
|
|
58
|
-
(0, exercise_1.tryToAddWrongProp)(propositions, int1.union(int2).tex);
|
|
99
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, int1.union(int2).toTex());
|
|
59
100
|
while (propositions.length < n) {
|
|
60
|
-
const wrongAnswer =
|
|
101
|
+
const wrongAnswer = intervalNode_1.IntervalNodeConstructor.random().toTex();
|
|
61
102
|
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
62
103
|
}
|
|
63
104
|
return (0, shuffle_1.shuffle)(propositions);
|
|
64
105
|
};
|
|
65
|
-
const isAnswerValid = (ans, { answer }) => {
|
|
66
|
-
|
|
106
|
+
const isAnswerValid = (ans, { answer, int1Identifiers, int2Identifiers }) => {
|
|
107
|
+
try {
|
|
108
|
+
if (answer === "\\varnothing")
|
|
109
|
+
return ans === answer;
|
|
110
|
+
if (answer.includes("\\{")) {
|
|
111
|
+
const setParsed = (0, discreteSetParser_1.discreteSetParser)(ans);
|
|
112
|
+
if (!setParsed)
|
|
113
|
+
return false;
|
|
114
|
+
return setParsed.simplify().toTex() === answer;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
const parsed = (0, intervalParser_1.intervalParser)(ans);
|
|
118
|
+
if (!parsed)
|
|
119
|
+
return false;
|
|
120
|
+
return parsed.simplify().toTex() === answer;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
catch (err) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
67
126
|
};
|
|
68
127
|
exports.intervalsIntersection = {
|
|
69
128
|
id: "intervalsIntersection",
|
|
@@ -79,4 +138,5 @@ exports.intervalsIntersection = {
|
|
|
79
138
|
isAnswerValid,
|
|
80
139
|
subject: "Mathématiques",
|
|
81
140
|
hasHintAndCorrection: true,
|
|
141
|
+
rebuildIdentifiers,
|
|
82
142
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { Exercise } from "../../../../exercises/exercise";
|
|
2
|
-
import {
|
|
2
|
+
import { IntervalNodeIdentifiers } from "../../../../tree/nodes/sets/intervalNode";
|
|
3
3
|
type Identifiers = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
int1Closure: ClosureType;
|
|
7
|
-
int2Min: number;
|
|
8
|
-
int2Max: number;
|
|
9
|
-
int2Closure: ClosureType;
|
|
4
|
+
int1Identifiers: IntervalNodeIdentifiers;
|
|
5
|
+
int2Identifiers: IntervalNodeIdentifiers;
|
|
10
6
|
};
|
|
11
7
|
export declare const intervalsUnion: Exercise<Identifiers>;
|
|
12
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intervalsUnion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sets/intervals/intervalsUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"intervalsUnion.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sets/intervals/intervalsUnion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAWT,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAGL,uBAAuB,EACxB,MAAM,oCAAoC,CAAC;AAI5C,KAAK,WAAW,GAAG;IAOjB,eAAe,EAAE,uBAAuB,CAAC;IACzC,eAAe,EAAE,uBAAuB,CAAC;CAC1C,CAAC;AAyFF,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,WAAW,CAehD,CAAC"}
|
|
@@ -3,42 +3,80 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.intervalsUnion = void 0;
|
|
4
4
|
const exercise_1 = require("../../../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const
|
|
6
|
+
const infiniteNode_1 = require("../../../../tree/nodes/numbers/infiniteNode");
|
|
7
|
+
const intervalNode_1 = require("../../../../tree/nodes/sets/intervalNode");
|
|
8
|
+
const unionIntervalParser_1 = require("../../../../tree/parsers/unionIntervalParser");
|
|
7
9
|
const shuffle_1 = require("../../../../utils/alea/shuffle");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
+
const rebuildIdentifiers = (oldIds) => {
|
|
11
|
+
const a1 = oldIds.int1Min === "-infty" ? infiniteNode_1.MinusInfinityNode : oldIds.int1Min.toTree();
|
|
12
|
+
const b1 = oldIds.int1Max === "infty" ? infiniteNode_1.PlusInfinityNode : oldIds.int1Max.toTree();
|
|
13
|
+
const closure1 = oldIds.int1Closure;
|
|
14
|
+
const interval1 = new intervalNode_1.IntervalNode(a1, b1, closure1);
|
|
15
|
+
const a2 = oldIds.int2Min === "-infty" ? infiniteNode_1.MinusInfinityNode : oldIds.int2Min.toTree();
|
|
16
|
+
const b2 = oldIds.int2Max === "infty" ? infiniteNode_1.PlusInfinityNode : oldIds.int2Max.toTree();
|
|
17
|
+
const closure2 = oldIds.int2Closure;
|
|
18
|
+
const interval2 = new intervalNode_1.IntervalNode(a2, b2, closure2);
|
|
19
|
+
return {
|
|
20
|
+
int1Identifiers: interval1.toIdentifiers(),
|
|
21
|
+
int2Identifiers: interval2.toIdentifiers(),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
const getInstruction = (identifiers) => {
|
|
25
|
+
const [int1, int2] = [
|
|
26
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int1Identifiers),
|
|
27
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int2Identifiers),
|
|
28
|
+
];
|
|
29
|
+
return `Soit $I = ${int1.toTex()}$ et $J = ${int2.toTex()}$.
|
|
30
|
+
|
|
31
|
+
Déterminer $I\\cup J$.`;
|
|
32
|
+
};
|
|
33
|
+
const getAnswer = (identifiers) => {
|
|
34
|
+
const [int1, int2] = [
|
|
35
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int1Identifiers),
|
|
36
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(identifiers.int2Identifiers),
|
|
37
|
+
];
|
|
10
38
|
const set = int1.union(int2);
|
|
11
|
-
|
|
39
|
+
return set.toTex();
|
|
40
|
+
};
|
|
41
|
+
const getIntervalsUnionQuestion = () => {
|
|
42
|
+
const [int1, int2] = intervalNode_1.IntervalNodeConstructor.differentRandoms(2);
|
|
43
|
+
const identifiers = {
|
|
44
|
+
int1Identifiers: int1.toIdentifiers(),
|
|
45
|
+
int2Identifiers: int2.toIdentifiers(),
|
|
46
|
+
};
|
|
12
47
|
const question = {
|
|
13
|
-
answer,
|
|
14
|
-
instruction:
|
|
48
|
+
answer: getAnswer(identifiers),
|
|
49
|
+
instruction: getInstruction(identifiers),
|
|
15
50
|
keys: ["infty", "lbracket", "rbracket", "semicolon", "cup", "cap"],
|
|
16
51
|
answerFormat: "tex",
|
|
17
|
-
identifiers
|
|
18
|
-
int1Closure: int1.closure,
|
|
19
|
-
int1Max: int1.max,
|
|
20
|
-
int1Min: int1.min,
|
|
21
|
-
int2Closure: int2.closure,
|
|
22
|
-
int2Max: int2.max,
|
|
23
|
-
int2Min: int2.min,
|
|
24
|
-
},
|
|
52
|
+
identifiers,
|
|
25
53
|
};
|
|
26
54
|
return question;
|
|
27
55
|
};
|
|
28
|
-
const getPropositions = (n, { answer,
|
|
56
|
+
const getPropositions = (n, { answer, int1Identifiers, int2Identifiers }) => {
|
|
29
57
|
const propositions = [];
|
|
30
58
|
(0, exercise_1.addValidProp)(propositions, answer);
|
|
31
|
-
const int1 =
|
|
32
|
-
|
|
59
|
+
const [int1, int2] = [
|
|
60
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(int1Identifiers),
|
|
61
|
+
intervalNode_1.IntervalNodeConstructor.fromIdentifiers(int2Identifiers),
|
|
62
|
+
];
|
|
33
63
|
(0, exercise_1.tryToAddWrongProp)(propositions, int1.intersection(int2).toTex());
|
|
34
64
|
while (propositions.length < n) {
|
|
35
|
-
const wrongAnswer =
|
|
65
|
+
const wrongAnswer = intervalNode_1.IntervalNodeConstructor.random().toTex();
|
|
36
66
|
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer);
|
|
37
67
|
}
|
|
38
68
|
return (0, shuffle_1.shuffle)(propositions);
|
|
39
69
|
};
|
|
40
70
|
const isAnswerValid = (ans, { answer }) => {
|
|
41
|
-
|
|
71
|
+
try {
|
|
72
|
+
const parsed = (0, unionIntervalParser_1.unionIntervalParser)(ans.replaceAll("S", "").replaceAll("=", ""));
|
|
73
|
+
if (!parsed)
|
|
74
|
+
return false;
|
|
75
|
+
return parsed.simplify().toTex() === answer;
|
|
76
|
+
}
|
|
77
|
+
catch (err) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
42
80
|
};
|
|
43
81
|
exports.intervalsUnion = {
|
|
44
82
|
id: "intervalsUnion",
|
|
@@ -53,4 +91,5 @@ exports.intervalsUnion = {
|
|
|
53
91
|
getPropositions,
|
|
54
92
|
isAnswerValid,
|
|
55
93
|
subject: "Mathématiques",
|
|
94
|
+
rebuildIdentifiers,
|
|
56
95
|
};
|
|
@@ -47,6 +47,8 @@ export * from "../math/geometry/vectors/scalarProduct/scalarProductViaCoords";
|
|
|
47
47
|
export * from "../math/geometry/vectors/scalarProduct/scalarProductViaCos";
|
|
48
48
|
export * from "../math/geometry/vectors/coordinatesReading";
|
|
49
49
|
export * from "../math/functions/affines/affineExpressionReading";
|
|
50
|
+
export * from "../math/geometry/thales/thales";
|
|
51
|
+
export * from "../math/geometry/thales/thalesCalcul";
|
|
50
52
|
export * from "../math/equaDiff/equaDiffCheckSolutionFirstOrder";
|
|
51
53
|
export * from "../math/equaDiff/equaDiffGeneralForme";
|
|
52
54
|
export * from "../math/equaDiff/equaDiffGeneralFormeWithIC";
|
|
@@ -55,4 +57,6 @@ export * from "../math/derivation/derivative/usualderivative";
|
|
|
55
57
|
export { thirdDegreeDerivative } from "../math/derivation/derivative/thirdDegreeDerivative";
|
|
56
58
|
export { firstDegreeDerivative } from "../math/derivation/derivative/firstDegreeDerivative";
|
|
57
59
|
export { secondDegreeDerivative } from "../math/derivation/derivative/secondDegreeDerivative";
|
|
60
|
+
export * from "../math/trigonometry/trigonometrySideCalcul";
|
|
61
|
+
export * from "../math/trigonometry/trigonometryAngleCalcul";
|
|
58
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,MAAM,CAAC;AACrB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,S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,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,+CAA+C,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC"}
|
|
@@ -68,9 +68,8 @@ __exportStar(require("../math/geometry/vectors/scalarProduct/scalarProductViaCoo
|
|
|
68
68
|
__exportStar(require("../math/geometry/vectors/scalarProduct/scalarProductViaCos"), exports);
|
|
69
69
|
__exportStar(require("../math/geometry/vectors/coordinatesReading"), exports);
|
|
70
70
|
__exportStar(require("../math/functions/affines/affineExpressionReading"), exports);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// export * from "../math/geometry/thales/thalesCalcul";
|
|
71
|
+
__exportStar(require("../math/geometry/thales/thales"), exports);
|
|
72
|
+
__exportStar(require("../math/geometry/thales/thalesCalcul"), exports);
|
|
74
73
|
__exportStar(require("../math/equaDiff/equaDiffCheckSolutionFirstOrder"), exports);
|
|
75
74
|
__exportStar(require("../math/equaDiff/equaDiffGeneralForme"), exports);
|
|
76
75
|
__exportStar(require("../math/equaDiff/equaDiffGeneralFormeWithIC"), exports);
|
|
@@ -82,6 +81,5 @@ var firstDegreeDerivative_1 = require("../math/derivation/derivative/firstDegree
|
|
|
82
81
|
Object.defineProperty(exports, "firstDegreeDerivative", { enumerable: true, get: function () { return firstDegreeDerivative_1.firstDegreeDerivative; } });
|
|
83
82
|
var secondDegreeDerivative_1 = require("../math/derivation/derivative/secondDegreeDerivative");
|
|
84
83
|
Object.defineProperty(exports, "secondDegreeDerivative", { enumerable: true, get: function () { return secondDegreeDerivative_1.secondDegreeDerivative; } });
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
//!FIX TRIANGLE
|
|
84
|
+
__exportStar(require("../math/trigonometry/trigonometrySideCalcul"), exports);
|
|
85
|
+
__exportStar(require("../math/trigonometry/trigonometryAngleCalcul"), exports);
|
|
@@ -12,9 +12,9 @@ const equationVEA = (ans, solutionTex) => {
|
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
14
|
const setParsed = (0, discreteSetParser_1.discreteSetParser)(ans);
|
|
15
|
-
if (!setParsed || setParsed.length !== 1)
|
|
15
|
+
if (!setParsed || setParsed.elements.length !== 1)
|
|
16
16
|
return false;
|
|
17
|
-
return (0, rationalVEA_1.rationalVEA)(setParsed[0].toTex(), solutionTex);
|
|
17
|
+
return (0, rationalVEA_1.rationalVEA)(setParsed.elements[0].toTex(), solutionTex);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lagrange.d.ts","sourceRoot":"","sources":["../../src/geogebra/lagrange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"lagrange.d.ts","sourceRoot":"","sources":["../../src/geogebra/lagrange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIlD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAelE,qBAAa,QAAQ;IACnB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;gBAEP,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE;IAuDpD,WAAW;CAUZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spline.d.ts","sourceRoot":"","sources":["../../src/geogebra/spline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"spline.d.ts","sourceRoot":"","sources":["../../src/geogebra/spline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAIlD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAKlE,8BAAsB,iBAAiB;IACrC,MAAM;CAQP;AACD,qBAAa,MAAM;IACjB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;gBAEP,QAAQ,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE;IAuDpD,WAAW;CAUZ"}
|
package/lib/index.d.ts
CHANGED
|
@@ -354,14 +354,18 @@ declare const mathExercises: (Exercise<{
|
|
|
354
354
|
a: number;
|
|
355
355
|
b: number;
|
|
356
356
|
c: number;
|
|
357
|
-
}, {
|
|
357
|
+
}, {
|
|
358
|
+
inequationSolutionFormat: string;
|
|
359
|
+
}> | Exercise<{
|
|
358
360
|
coeff: number;
|
|
359
361
|
ineqType: import("./math/inequations/inequation").InegalitySymbols;
|
|
360
362
|
a: number;
|
|
361
363
|
b: number;
|
|
362
364
|
c: number;
|
|
363
365
|
d: number;
|
|
364
|
-
}, {
|
|
366
|
+
}, {
|
|
367
|
+
inequationSolutionFormat: string;
|
|
368
|
+
}> | Exercise<{
|
|
365
369
|
k: number;
|
|
366
370
|
inequationSymbol: import("./math/inequations/inequation").InegalitySymbols;
|
|
367
371
|
}, {}> | Exercise<{
|
|
@@ -850,12 +854,16 @@ declare const mathExercises: (Exercise<{
|
|
|
850
854
|
c: number;
|
|
851
855
|
k: number;
|
|
852
856
|
isLog10: boolean;
|
|
853
|
-
}, {
|
|
857
|
+
}, {
|
|
858
|
+
isLog10: boolean;
|
|
859
|
+
}> | Exercise<{
|
|
854
860
|
nb: number;
|
|
855
861
|
powers: number[];
|
|
856
862
|
signs: number[];
|
|
857
863
|
isLog10: boolean;
|
|
858
|
-
}, {
|
|
864
|
+
}, {
|
|
865
|
+
isLog10: boolean;
|
|
866
|
+
}> | Exercise<{
|
|
859
867
|
type: string;
|
|
860
868
|
fctTex: string;
|
|
861
869
|
}, {}> | Exercise<{
|
|
@@ -1631,27 +1639,15 @@ declare const mathExercises: (Exercise<{
|
|
|
1631
1639
|
points: number[][];
|
|
1632
1640
|
isArithmetic: boolean;
|
|
1633
1641
|
}, {}> | Exercise<{
|
|
1634
|
-
|
|
1635
|
-
intervalMax: string | number;
|
|
1636
|
-
intervalClosure: import("./tree/nodes/sets/closure").ClosureType;
|
|
1642
|
+
intervalIdentifiers: import("./tree/nodes/sets/intervalNode").IntervalNodeIdentifiers;
|
|
1637
1643
|
}, {}> | Exercise<{
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
int1Closure: import("./tree/nodes/sets/closure").ClosureType;
|
|
1641
|
-
int2Min: number;
|
|
1642
|
-
int2Max: number;
|
|
1643
|
-
int2Closure: import("./tree/nodes/sets/closure").ClosureType;
|
|
1644
|
+
int1Identifiers: import("./tree/nodes/sets/intervalNode").IntervalNodeIdentifiers;
|
|
1645
|
+
int2Identifiers: import("./tree/nodes/sets/intervalNode").IntervalNodeIdentifiers;
|
|
1644
1646
|
}, {}> | Exercise<{
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
int1Closure: import("./tree/nodes/sets/closure").ClosureType;
|
|
1648
|
-
int2Min: number;
|
|
1649
|
-
int2Max: number;
|
|
1650
|
-
int2Closure: import("./tree/nodes/sets/closure").ClosureType;
|
|
1647
|
+
int1Identifiers: import("./tree/nodes/sets/intervalNode").IntervalNodeIdentifiers;
|
|
1648
|
+
int2Identifiers: import("./tree/nodes/sets/intervalNode").IntervalNodeIdentifiers;
|
|
1651
1649
|
}, {}> | Exercise<{
|
|
1652
|
-
|
|
1653
|
-
intervalMax: string | number;
|
|
1654
|
-
intervalClosure: import("./tree/nodes/sets/closure").ClosureType;
|
|
1650
|
+
intervalIdentifiers: import("./tree/nodes/sets/intervalNode").IntervalNodeIdentifiers;
|
|
1655
1651
|
}, {}> | Exercise<{
|
|
1656
1652
|
type: number;
|
|
1657
1653
|
nb: string;
|
|
@@ -1873,12 +1869,33 @@ declare const pcExercises: (Exercise<{
|
|
|
1873
1869
|
c: number;
|
|
1874
1870
|
k: number;
|
|
1875
1871
|
isLog10: boolean;
|
|
1876
|
-
}, {
|
|
1872
|
+
}, {
|
|
1873
|
+
isLog10: boolean;
|
|
1874
|
+
}> | Exercise<{
|
|
1877
1875
|
nb: number;
|
|
1878
1876
|
powers: number[];
|
|
1879
1877
|
signs: number[];
|
|
1880
1878
|
isLog10: boolean;
|
|
1879
|
+
}, {
|
|
1880
|
+
isLog10: boolean;
|
|
1881
|
+
}> | Exercise<{
|
|
1882
|
+
vertices: string[];
|
|
1883
|
+
xA: number;
|
|
1884
|
+
yA: number;
|
|
1885
|
+
xB: number;
|
|
1886
|
+
yB: number;
|
|
1887
|
+
xC: number;
|
|
1888
|
+
yC: number;
|
|
1889
|
+
factor: number;
|
|
1881
1890
|
}, {}> | Exercise<{
|
|
1891
|
+
ratio: number;
|
|
1892
|
+
triangleIdentifiers: import("./math/geometry/triangle").TriangleIdentifiers;
|
|
1893
|
+
insidePointsNames: string[];
|
|
1894
|
+
segmentAskedName: string;
|
|
1895
|
+
isPapillon: boolean;
|
|
1896
|
+
}, {
|
|
1897
|
+
configurationType: string;
|
|
1898
|
+
}> | Exercise<{
|
|
1882
1899
|
xA: number;
|
|
1883
1900
|
xB: number;
|
|
1884
1901
|
yA: number;
|
|
@@ -1899,6 +1916,15 @@ declare const pcExercises: (Exercise<{
|
|
|
1899
1916
|
a: number;
|
|
1900
1917
|
b: number;
|
|
1901
1918
|
c: number;
|
|
1919
|
+
}, {}> | Exercise<{
|
|
1920
|
+
randAngle: number;
|
|
1921
|
+
hiddenSide: number;
|
|
1922
|
+
triangleIdentifiers: import("./math/geometry/triangle").TriangleIdentifiers;
|
|
1923
|
+
}, {}> | Exercise<{
|
|
1924
|
+
sideAsked: number;
|
|
1925
|
+
givenSide: number;
|
|
1926
|
+
givenAngle: number;
|
|
1927
|
+
triangleIdentifiers: import("./math/geometry/triangle").TriangleIdentifiers;
|
|
1902
1928
|
}, {}> | Exercise<{
|
|
1903
1929
|
reactionArray: import("./pc/constants/molecularChemistry/reaction").ReactionSpecies[];
|
|
1904
1930
|
}, {}> | Exercise<{
|
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,sBAAsB,CAAC;AAG1D,OAAO,yBAAyB,CAAC;AAEjC,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,yBAAyB,CAAC;AAEjC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/point.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/point.ts"],"names":[],"mappings":"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AC;IACb,CAAC,EAAE,aAAa,CAAC;IACjB,CAAC,EAAE,aAAa,CAAC;gBAEf,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,aAAa,GAAG,MAAM,EACzB,CAAC,EAAE,aAAa,GAAG,MAAM;IAO3B,KAAK,IAAI,MAAM;IAGf,aAAa,IAAI,gBAAgB;IAQjC,eAAe,IAAI,MAAM;IAGzB,QAAQ,IAAI,MAAM;IAIlB,UAAU,IAAI,MAAM;IAIpB,UAAU,IAAI,MAAM;IAIpB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,SAAM,GAAG,KAAK;IAQrC,UAAU,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM;IAM5B,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO;IAGzB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK;IAK5B,YAAY;IAGZ,YAAY,CAAC,EACX,OAAc,EACd,SAAgB,EAChB,KAAK,EACL,IAAI,EACJ,KAAK,GACN,GAAE,kBAAuB;IAiB1B,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK;IAiBnC,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,SAAkB;IAIrD,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,SAAkB;IAI1C,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,SAAkB;CAIjD"}
|
|
@@ -11,6 +11,6 @@ export declare class InequationSymbol {
|
|
|
11
11
|
reversed: () => InegalitySymbols;
|
|
12
12
|
toReversed: () => InequationSymbol;
|
|
13
13
|
toStrictnessToggled: () => InequationSymbol;
|
|
14
|
-
strictnessToggled: () =>
|
|
14
|
+
strictnessToggled: () => InegalitySymbols;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=inequation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inequation.d.ts","sourceRoot":"","sources":["../../../src/math/inequations/inequation.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,8BAAsB,2BAA2B;IAC/C,MAAM,CAAC,MAAM;IAGb,MAAM,CAAC,YAAY;CAGpB;AACD,qBAAa,gBAAgB;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;gBACb,MAAM,EAAE,gBAAgB;IAKpC,QAAQ,QAAO,gBAAgB,CAW7B;IACF,UAAU,yBAER;IACF,mBAAmB,yBAEjB;IACF,iBAAiB,
|
|
1
|
+
{"version":3,"file":"inequation.d.ts","sourceRoot":"","sources":["../../../src/math/inequations/inequation.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,8BAAsB,2BAA2B;IAC/C,MAAM,CAAC,MAAM;IAGb,MAAM,CAAC,YAAY;CAGpB;AACD,qBAAa,gBAAgB;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;gBACb,MAAM,EAAE,gBAAgB;IAKpC,QAAQ,QAAO,gBAAgB,CAW7B;IACF,UAAU,yBAER;IACF,mBAAmB,yBAEjB;IACF,iBAAiB,QAAO,gBAAgB,CAWtC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integer.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/integer/integer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MA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qBAAa,OAAQ,YAAW,MAAM;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;gBAEL,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;IAMvC,MAAM,CAAC,CAAC,EAAE,MAAM;IAGhB,MAAM,IAAI,UAAU;IAIpB,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAMxB,KAAK,CAAC,SAAS,EAAE,MAAM;IAkCvB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAc1B,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO;IAYxC,QAAQ;IAGR,GAAG,CAAC,EAAE,EAAE,MAAM;CAYf"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AlgebraicNode } from "../../../tree/nodes/algebraicNode";
|
|
2
2
|
import { NodeOptions } from "../../../tree/nodes/node";
|
|
3
|
-
import { FractionNode } from "../../../tree/nodes/operators/fractionNode";
|
|
4
3
|
import { Integer } from "../integer/integer";
|
|
5
4
|
import { Nombre, NumberType } from "../nombre";
|
|
6
5
|
export declare abstract class RationalConstructor {
|
|
@@ -30,7 +29,7 @@ export declare class Rational implements Nombre {
|
|
|
30
29
|
reverse(shouldSimplify: boolean): Nombre;
|
|
31
30
|
divide(nb: Nombre): Nombre;
|
|
32
31
|
opposite(): Rational;
|
|
33
|
-
toTree(opts?: NodeOptions):
|
|
32
|
+
toTree(opts?: NodeOptions): AlgebraicNode;
|
|
34
33
|
isIrreductible(): boolean;
|
|
35
34
|
simplify(): Integer | Rational;
|
|
36
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rational.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/rationals/rational.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rational.d.ts","sourceRoot":"","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AG,aAAa;IAgBzC,cAAc;IAId,QAAQ,IAAI,OAAO,GAAG,QAAQ;CAqB/B"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { NumberNode } from "../../tree/nodes/numbers/numberNode";
|
|
2
2
|
import { AddNode } from "../../tree/nodes/operators/addNode";
|
|
3
|
-
import { FractionNode } from "../../tree/nodes/operators/fractionNode";
|
|
4
3
|
import { MultiplyNode } from "../../tree/nodes/operators/multiplyNode";
|
|
5
4
|
import { Point } from "../geometry/point";
|
|
6
5
|
import { Polynomial } from "./polynomial";
|
|
7
|
-
import { OppositeNode } from "../../tree/nodes/functions/oppositeNode";
|
|
8
6
|
import { AlgebraicNode } from "../../tree/nodes/algebraicNode";
|
|
9
7
|
export declare abstract class TrinomConstructor {
|
|
10
8
|
static random(aOpts?: {
|
|
@@ -65,9 +63,9 @@ export declare class Trinom extends Polynomial {
|
|
|
65
63
|
getRootsNode(): AlgebraicNode[];
|
|
66
64
|
getRootsEquationSolutionTex(): string;
|
|
67
65
|
getAlpha(): number;
|
|
68
|
-
getAlphaNode():
|
|
66
|
+
getAlphaNode(): AlgebraicNode | NumberNode;
|
|
69
67
|
getBeta(): number;
|
|
70
|
-
getBetaNode():
|
|
68
|
+
getBetaNode(): AlgebraicNode | NumberNode;
|
|
71
69
|
getFactorizedForm(): AlgebraicNode | MultiplyNode;
|
|
72
70
|
getCanonicalForm(): AddNode | MultiplyNode;
|
|
73
71
|
getSommet(): Point;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trinom.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/trinom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"trinom.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/trinom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,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AAK,EAAE,KAAK,EAAE;;;;KAA4C;CAYrE"}
|
package/lib/playground.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/playground.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../src/playground.ts"],"names":[],"mappings":"AAsDA,eAAO,MAAM,UAAU,YAGtB,CAAC"}
|
package/lib/playground.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.playground = void 0;
|
|
4
|
+
const sqrtNode_1 = require("./tree/nodes/functions/sqrtNode");
|
|
4
5
|
const nodeConstructor_1 = require("./tree/nodes/nodeConstructor");
|
|
6
|
+
const multiplyNode_1 = require("./tree/nodes/operators/multiplyNode");
|
|
5
7
|
const playground = () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// const a = "-3x^2";
|
|
9
|
-
// console.log(isMonom(parsed));
|
|
8
|
+
const a = (0, multiplyNode_1.multiply)(3, (0, sqrtNode_1.sqrt)(2));
|
|
9
|
+
console.log(a.simplify().toTex());
|
|
10
10
|
};
|
|
11
11
|
exports.playground = playground;
|
|
12
12
|
const logIdentifiers = () => {
|