math-exercises 3.0.144 → 3.0.146
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 +1 -0
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/addAndSub.d.ts.map +1 -1
- package/lib/exercises/math/calcul/addAndSub.js +20 -1
- package/lib/exercises/math/calcul/arithmetics/euclideanDivision.js +1 -1
- package/lib/exercises/math/calcul/index.d.ts +1 -0
- package/lib/exercises/math/calcul/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/index.js +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/index.d.ts +2 -0
- package/lib/exercises/math/calcul/mentalCaluls/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/index.js +2 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalAddAndSub.js +22 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalFractionageOfInteger.d.ts +9 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalFractionageOfInteger.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalFractionageOfInteger.js +152 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalFractionageOfQuantity.d.ts +15 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalFractionageOfQuantity.d.ts.map +1 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalFractionageOfQuantity.js +412 -0
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.d.ts.map +1 -1
- package/lib/exercises/math/calcul/mentalCaluls/mentalProgramSolve.js +6 -8
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/isTableProportionalNonInteger.js +37 -7
- package/lib/exercises/math/calcul/ratio/index.d.ts +2 -0
- package/lib/exercises/math/calcul/ratio/index.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ratio/index.js +2 -0
- package/lib/exercises/math/calcul/ratio/partUsingRatio.d.ts +14 -0
- package/lib/exercises/math/calcul/ratio/partUsingRatio.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ratio/partUsingRatio.js +388 -0
- package/lib/exercises/math/calcul/ratio/ratioFromParts.d.ts +10 -0
- package/lib/exercises/math/calcul/ratio/ratioFromParts.d.ts.map +1 -0
- package/lib/exercises/math/calcul/ratio/ratioFromParts.js +198 -0
- package/lib/exercises/math/calculLitteral/equation/equationFromSentenceExercise.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/equation/equationFromSentenceExercise.js +50 -0
- package/lib/exercises/math/calculLitteral/simplifying/compareMinusA.js +1 -1
- package/lib/exercises/math/index.d.ts +1 -0
- package/lib/exercises/math/index.d.ts.map +1 -1
- package/lib/exercises/math/index.js +1 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/basicProbas/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/basicProbas/index.js +1 -0
- package/lib/exercises/math/probaStat/basicProbas/rangeBasicProbas.d.ts +10 -0
- package/lib/exercises/math/probaStat/basicProbas/rangeBasicProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/basicProbas/rangeBasicProbas.js +113 -0
- package/lib/exercises/math/probaStat/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/index.js +1 -0
- package/lib/exercises/math/probaStat/stats1var/etendueTable.d.ts +8 -0
- package/lib/exercises/math/probaStat/stats1var/etendueTable.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/stats1var/etendueTable.js +89 -0
- package/lib/exercises/math/probaStat/stats1var/index.d.ts +1 -0
- package/lib/exercises/math/probaStat/stats1var/index.d.ts.map +1 -1
- package/lib/exercises/math/probaStat/stats1var/index.js +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/countIssuesTwoStepExperiment.d.ts +8 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/countIssuesTwoStepExperiment.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/countIssuesTwoStepExperiment.js +244 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/index.d.ts +3 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/index.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/index.js +2 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.d.ts +8 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.d.ts.map +1 -0
- package/lib/exercises/math/probaStat/twoStepExperiments/twoStepExperimentProbas.js +452 -0
- package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.d.ts.map +1 -1
- package/lib/exercises/math/python/pythonWhileStatementOperationCompletion.js +3 -0
- package/lib/exercises/math/scratch/index.d.ts +2 -0
- package/lib/exercises/math/scratch/index.d.ts.map +1 -0
- package/lib/exercises/math/scratch/index.js +1 -0
- package/lib/exercises/math/scratch/scratchLoopStepsCount.d.ts +8 -0
- package/lib/exercises/math/scratch/scratchLoopStepsCount.d.ts.map +1 -0
- package/lib/exercises/math/scratch/scratchLoopStepsCount.js +85 -0
- package/lib/exercises/math/scratch/testScratch.d.ts +8 -0
- package/lib/exercises/math/scratch/testScratch.d.ts.map +1 -0
- package/lib/exercises/math/scratch/testScratch.js +79 -0
- package/lib/exercises/math/trigonometry/index.d.ts +3 -0
- package/lib/exercises/math/trigonometry/index.d.ts.map +1 -1
- package/lib/exercises/math/trigonometry/index.js +3 -0
- package/lib/exercises/math/trigonometry/trigonometrySideName.d.ts +13 -0
- package/lib/exercises/math/trigonometry/trigonometrySideName.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/trigonometrySideName.js +189 -0
- package/lib/exercises/math/trigonometry/trigonometrySohcahtoaCalcul.d.ts +13 -0
- package/lib/exercises/math/trigonometry/trigonometrySohcahtoaCalcul.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/trigonometrySohcahtoaCalcul.js +290 -0
- package/lib/exercises/math/trigonometry/trigonometrySohcahtoaUse.d.ts +18 -0
- package/lib/exercises/math/trigonometry/trigonometrySohcahtoaUse.d.ts.map +1 -0
- package/lib/exercises/math/trigonometry/trigonometrySohcahtoaUse.js +386 -0
- package/lib/index.d.ts +58 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/latexTester.d.ts.map +1 -1
- package/lib/latexTester.js +5 -0
- package/lib/math/geometry/triangles/triangle.d.ts +1 -0
- package/lib/math/geometry/triangles/triangle.d.ts.map +1 -1
- package/lib/math/geometry/triangles/triangle.js +1 -0
- package/lib/math/numbers/fractions/isDecimalFraction.d.ts +3 -0
- package/lib/math/numbers/fractions/isDecimalFraction.d.ts.map +1 -0
- package/lib/math/numbers/fractions/isDecimalFraction.js +14 -0
- package/lib/math/polynomials/polynomial.js +1 -1
- package/lib/types/keyIds.d.ts +1 -1
- package/lib/types/keyIds.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { GeneratorOptionTarget, GeneratorOptionType, addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { blueMain, red } from "../../../geogebra/colors.js";
|
|
4
|
+
import { GeogebraConstructor } from "../../../geogebra/geogebraConstructor.js";
|
|
5
|
+
import { RightTriangleConstructor } from "../../../math/geometry/triangles/rightTriangle.js";
|
|
6
|
+
import { TriangleConstructor, } from "../../../math/geometry/triangles/triangle.js";
|
|
7
|
+
import { randint } from "../../../math/utils/random/randint.js";
|
|
8
|
+
import { frac } from "../../../tree/nodes/operators/fractionNode.js";
|
|
9
|
+
import { VariableNode } from "../../../tree/nodes/variables/variableNode.js";
|
|
10
|
+
import { random, randomMany } from "../../../utils/alea/random.js";
|
|
11
|
+
import { shuffle } from "../../../utils/alea/shuffle.js";
|
|
12
|
+
import { getAllPicks } from "../../../utils/arrays/getAllPicks.js";
|
|
13
|
+
const trigoFuncsDict = {
|
|
14
|
+
sin: {
|
|
15
|
+
id: "sin",
|
|
16
|
+
strFrench: "sinus",
|
|
17
|
+
funcTex: (content) => `\\sin(${content})`,
|
|
18
|
+
funcIndexesSegment: (indexPoint) => {
|
|
19
|
+
switch (indexPoint) {
|
|
20
|
+
case 1:
|
|
21
|
+
return [1, 0];
|
|
22
|
+
case 2:
|
|
23
|
+
return [2, 0];
|
|
24
|
+
default:
|
|
25
|
+
throw new Error("Unsupported indexPoint: " + indexPoint);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
texEqFrac: "\\sin(\\text{angle}) = \\frac{\\text{opposé}}{\\text{hypoténuse}}",
|
|
29
|
+
},
|
|
30
|
+
cos: {
|
|
31
|
+
id: "cos",
|
|
32
|
+
strFrench: "cosinus",
|
|
33
|
+
funcTex: (content) => `\\cos(${content})`,
|
|
34
|
+
funcIndexesSegment: (indexPoint) => {
|
|
35
|
+
switch (indexPoint) {
|
|
36
|
+
case 1:
|
|
37
|
+
return [2, 0];
|
|
38
|
+
case 2:
|
|
39
|
+
return [1, 0];
|
|
40
|
+
default:
|
|
41
|
+
throw new Error("Unsupported indexPoint: " + indexPoint);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
texEqFrac: "\\cos(\\text{angle}) = \\frac{\\text{adjacent}}{\\text{hypoténuse}}",
|
|
45
|
+
},
|
|
46
|
+
tan: {
|
|
47
|
+
id: "tan",
|
|
48
|
+
strFrench: "tangente",
|
|
49
|
+
funcTex: (content) => `\\tan(${content})`,
|
|
50
|
+
funcIndexesSegment: (indexPoint) => {
|
|
51
|
+
switch (indexPoint) {
|
|
52
|
+
case 1:
|
|
53
|
+
return [1, 2];
|
|
54
|
+
case 2:
|
|
55
|
+
return [2, 1];
|
|
56
|
+
default:
|
|
57
|
+
throw new Error("Unsupported indexPoint: " + indexPoint);
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
texEqFrac: "\\tan(\\text{angle}) = \\frac{\\text{opposé}}{\\text{adjacent}}",
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
const getTrigoFuncEntryForTargetAngle = (indexTarget, indexesGivenSegments) => {
|
|
64
|
+
return Object.entries(trigoFuncsDict).find(([_, trigoFunc]) => {
|
|
65
|
+
const indexesSegment = trigoFunc.funcIndexesSegment(indexTarget);
|
|
66
|
+
return ([...new Set([...indexesSegment, ...indexesGivenSegments])].length === 2);
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
const getTrigoFuncEntryForTargetSide = (indexTarget, indexGivenSegment, indexGivenAngle) => {
|
|
70
|
+
return Object.entries(trigoFuncsDict).find(([_, trigoFunc]) => {
|
|
71
|
+
const indexesSegment = trigoFunc.funcIndexesSegment(indexGivenAngle);
|
|
72
|
+
return ([...new Set([...indexesSegment, ...[indexTarget, indexGivenSegment]])]
|
|
73
|
+
.length === 2);
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
const getTrigoFuncAndIndexesSegmentDict = (targetType, indexTarget, indexesGivenSegments, indexGivenAngle) => {
|
|
77
|
+
let trigoFunc;
|
|
78
|
+
let indexesSegment;
|
|
79
|
+
switch (targetType) {
|
|
80
|
+
case "angle":
|
|
81
|
+
{
|
|
82
|
+
[, trigoFunc] = getTrigoFuncEntryForTargetAngle(indexTarget, indexesGivenSegments);
|
|
83
|
+
indexesSegment = trigoFunc.funcIndexesSegment(indexTarget);
|
|
84
|
+
}
|
|
85
|
+
break;
|
|
86
|
+
case "segment":
|
|
87
|
+
{
|
|
88
|
+
[, trigoFunc] = getTrigoFuncEntryForTargetSide(indexTarget, indexesGivenSegments[0], indexGivenAngle);
|
|
89
|
+
indexesSegment = trigoFunc.funcIndexesSegment(indexGivenAngle);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
return { trigoFunc, indexesSegment };
|
|
94
|
+
};
|
|
95
|
+
const getInstruction = (identifiers) => {
|
|
96
|
+
const { targetType, indexTarget, triangleIdentifiers, indexesGivenSegments, indexGivenAngle, } = identifiers;
|
|
97
|
+
const triangle = TriangleConstructor.fromIdentifiers(triangleIdentifiers);
|
|
98
|
+
switch (identifiers.questionType) {
|
|
99
|
+
case "frac":
|
|
100
|
+
{
|
|
101
|
+
switch (targetType) {
|
|
102
|
+
case "angle": {
|
|
103
|
+
const texAngle = `\\widehat{${triangle.points[indexTarget].toTex()}}`;
|
|
104
|
+
return `Dans le triangle $${triangle.name}$ ci-dessous, on connaît la longueur $${triangle.sides[indexesGivenSegments[0]].toInsideName()}$ et la longueur $${triangle.sides[indexesGivenSegments[1]].toInsideName()}$. Quel rapport trigonométrique doit-on utiliser pour calculer la mesure de $${texAngle}$ ?`;
|
|
105
|
+
}
|
|
106
|
+
case "segment": {
|
|
107
|
+
return `Dans le triangle $${triangle.name}$ ci-dessous, on connaît la longueur $${triangle.sides[indexesGivenSegments[0]].toInsideName()}$ et la mesure de l'angle $\\widehat{${triangle.points[indexGivenAngle].toTex()}}$. Quel rapport trigonométrique doit-on utiliser pour calculer la longueur $${triangle.sides[indexTarget].toInsideName()}$ ?`;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
case "func": {
|
|
113
|
+
switch (targetType) {
|
|
114
|
+
case "angle": {
|
|
115
|
+
const texAngle = `\\widehat{${triangle.points[indexTarget].toTex()}}`;
|
|
116
|
+
return `Dans le triangle $${triangle.name}$ ci-dessous, on connaît la longueur $${triangle.sides[indexesGivenSegments[0]].toInsideName()}$ et la longueur $${triangle.sides[indexesGivenSegments[1]].toInsideName()}$. Quelle fonction trigonométrique doit-on utiliser pour calculer la mesure de $${texAngle}$ ?`;
|
|
117
|
+
}
|
|
118
|
+
case "segment": {
|
|
119
|
+
return `Dans le triangle $${triangle.name}$ ci-dessous, on connaît la longueur $${triangle.sides[indexesGivenSegments[0]].toInsideName()}$ et la mesure de l'angle $\\widehat{${triangle.points[indexGivenAngle].toTex()}}$. Quelle fonction trigonométrique doit-on utiliser pour calculer la longueur $${triangle.sides[indexTarget].toInsideName()}$ ?`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
const getAnswerNode = (identifiers) => {
|
|
126
|
+
const { targetType, indexTarget, indexGivenAngle, indexesGivenSegments, triangleIdentifiers, } = identifiers;
|
|
127
|
+
const triangle = TriangleConstructor.fromIdentifiers(triangleIdentifiers);
|
|
128
|
+
let indexesSegment;
|
|
129
|
+
switch (targetType) {
|
|
130
|
+
case "angle":
|
|
131
|
+
{
|
|
132
|
+
const [, trigoFunc] = getTrigoFuncEntryForTargetAngle(indexTarget, indexesGivenSegments);
|
|
133
|
+
indexesSegment = trigoFunc.funcIndexesSegment(indexTarget);
|
|
134
|
+
}
|
|
135
|
+
break;
|
|
136
|
+
case "segment":
|
|
137
|
+
{
|
|
138
|
+
const [, trigoFunc] = getTrigoFuncEntryForTargetSide(indexTarget, indexesGivenSegments[0], indexGivenAngle);
|
|
139
|
+
indexesSegment = trigoFunc.funcIndexesSegment(indexGivenAngle);
|
|
140
|
+
}
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
const [nodeNum, nodeDen] = indexesSegment.map((indexSegment) => new VariableNode(`${triangle.sides[indexSegment].toInsideName()}`));
|
|
144
|
+
const fractionNode = frac(nodeNum, nodeDen);
|
|
145
|
+
return fractionNode;
|
|
146
|
+
};
|
|
147
|
+
const getAnswer = (identifiers) => {
|
|
148
|
+
switch (identifiers.questionType) {
|
|
149
|
+
case "frac": {
|
|
150
|
+
return getAnswerNode(identifiers).toTex();
|
|
151
|
+
}
|
|
152
|
+
case "func": {
|
|
153
|
+
const { targetType, indexTarget, indexGivenAngle, indexesGivenSegments } = identifiers;
|
|
154
|
+
const { trigoFunc } = getTrigoFuncAndIndexesSegmentDict(targetType, indexTarget, indexesGivenSegments, indexGivenAngle);
|
|
155
|
+
const nameTrigoFunc = trigoFunc.id;
|
|
156
|
+
const tex = `\\text{${nameTrigoFunc}}`;
|
|
157
|
+
return tex;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const getHint = () => {
|
|
162
|
+
return `Identifie le côté opposé, le côté adjacent et l'hypoténuse du triangle. Puis cherche la bonne formule de trigonométrie, en te rappelant de :
|
|
163
|
+
|
|
164
|
+
$$
|
|
165
|
+
\\text{SOHCAHTOA}
|
|
166
|
+
$$`;
|
|
167
|
+
};
|
|
168
|
+
const getCorrection = (identifiers) => {
|
|
169
|
+
const { targetType, indexTarget, indexGivenAngle, indexesGivenSegments, triangleIdentifiers, } = identifiers;
|
|
170
|
+
const triangle = RightTriangleConstructor.fromIdentifiers(triangleIdentifiers);
|
|
171
|
+
const { trigoFunc, indexesSegment } = getTrigoFuncAndIndexesSegmentDict(targetType, indexTarget, indexesGivenSegments, indexGivenAngle);
|
|
172
|
+
const [segmentNum, segmentDen] = indexesSegment.map((i) => triangle.sides[i]);
|
|
173
|
+
const [nameNum, nameDen] = [segmentNum, segmentDen].map((segment) => `${segment.pointA.name}${segment.pointB.name}`);
|
|
174
|
+
const texAngle = `\\widehat{${triangle.points[indexGivenAngle ?? indexTarget].toTex()}}`;
|
|
175
|
+
return `On a :
|
|
176
|
+
|
|
177
|
+
$$
|
|
178
|
+
${trigoFunc.funcTex(texAngle)} = \\frac{${nameNum}}{${nameDen}}
|
|
179
|
+
$$
|
|
180
|
+
|
|
181
|
+
${(() => {
|
|
182
|
+
switch (identifiers.questionType) {
|
|
183
|
+
case "frac": {
|
|
184
|
+
return `Le rapport recherché est $${`\\frac{${nameNum}}{${nameDen}}`}$.`;
|
|
185
|
+
}
|
|
186
|
+
case "func": {
|
|
187
|
+
return `La fonction recherchée est la fonction ${trigoFunc.strFrench}.`;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
})()}`;
|
|
191
|
+
};
|
|
192
|
+
const getGGBOptions = (identifiers) => {
|
|
193
|
+
const { targetType, indexTarget, indexGivenAngle, indexesGivenSegments, triangleIdentifiers, } = identifiers;
|
|
194
|
+
const triangle = RightTriangleConstructor.fromIdentifiers(triangleIdentifiers);
|
|
195
|
+
switch (targetType) {
|
|
196
|
+
case "angle":
|
|
197
|
+
{
|
|
198
|
+
//target
|
|
199
|
+
triangle.highlightAngle(indexTarget, {
|
|
200
|
+
color: blueMain,
|
|
201
|
+
showValue: false,
|
|
202
|
+
});
|
|
203
|
+
//given
|
|
204
|
+
indexesGivenSegments.forEach((indexSegment) => {
|
|
205
|
+
triangle.highlightSide(indexSegment, { color: red });
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
break;
|
|
209
|
+
case "segment":
|
|
210
|
+
{
|
|
211
|
+
//target
|
|
212
|
+
triangle.highlightSide(indexTarget, {
|
|
213
|
+
color: blueMain,
|
|
214
|
+
});
|
|
215
|
+
//given
|
|
216
|
+
if (indexGivenAngle) {
|
|
217
|
+
triangle.highlightAngle(indexGivenAngle, {
|
|
218
|
+
color: red,
|
|
219
|
+
showValue: false,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
indexesGivenSegments.forEach((indexSegment) => {
|
|
223
|
+
triangle.highlightSide(indexSegment, { color: red });
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
}
|
|
228
|
+
const ggb = new GeogebraConstructor({
|
|
229
|
+
commands: triangle.commands,
|
|
230
|
+
hideAxes: true,
|
|
231
|
+
hideGrid: true,
|
|
232
|
+
});
|
|
233
|
+
return ggb.getOptions({
|
|
234
|
+
coords: triangle.generateCoords(),
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
const getPropositions = (n, { answer, ...identifiers }) => {
|
|
238
|
+
switch (identifiers.questionType) {
|
|
239
|
+
case "frac": {
|
|
240
|
+
const { triangleIdentifiers } = identifiers;
|
|
241
|
+
const propositions = [];
|
|
242
|
+
const triangle = RightTriangleConstructor.fromIdentifiers(triangleIdentifiers);
|
|
243
|
+
addValidProp(propositions, answer);
|
|
244
|
+
getAllPicks([0, 1, 2])
|
|
245
|
+
.filter((arrSegment) => arrSegment.length === 2)
|
|
246
|
+
.forEach((indexesSegment) => {
|
|
247
|
+
const [nodeNum, nodeDen] = indexesSegment.map((indexSegment) => new VariableNode(`${triangle.sides[indexSegment].toInsideName()}`));
|
|
248
|
+
const fractionNode1 = frac(nodeNum, nodeDen);
|
|
249
|
+
tryToAddWrongProp(propositions, fractionNode1.toTex());
|
|
250
|
+
const fractionNode2 = frac(nodeDen, nodeNum);
|
|
251
|
+
tryToAddWrongProp(propositions, fractionNode2.toTex());
|
|
252
|
+
});
|
|
253
|
+
return shuffleProps(propositions, n);
|
|
254
|
+
}
|
|
255
|
+
case "func": {
|
|
256
|
+
const propositions = [];
|
|
257
|
+
["sin", "cos", "tan"].forEach((nameTrigoFunc) => {
|
|
258
|
+
const tex = `\\text{${nameTrigoFunc}}`;
|
|
259
|
+
if (tex === answer) {
|
|
260
|
+
addValidProp(propositions, tex);
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
tryToAddWrongProp(propositions, tex);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
return shuffle(propositions);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
271
|
+
return ans === answer;
|
|
272
|
+
};
|
|
273
|
+
const getKeys = (identifiers) => {
|
|
274
|
+
switch (identifiers.questionType) {
|
|
275
|
+
case "frac": {
|
|
276
|
+
const { triangleIdentifiers } = identifiers;
|
|
277
|
+
const triangle = RightTriangleConstructor.fromIdentifiers(triangleIdentifiers);
|
|
278
|
+
return [
|
|
279
|
+
...triangle.sides.map((side) => {
|
|
280
|
+
const strLength = side.toInsideName();
|
|
281
|
+
return {
|
|
282
|
+
id: "custom",
|
|
283
|
+
label: strLength,
|
|
284
|
+
labelType: "tex",
|
|
285
|
+
mathfieldInstructions: {
|
|
286
|
+
method: "write",
|
|
287
|
+
content: strLength,
|
|
288
|
+
},
|
|
289
|
+
};
|
|
290
|
+
}),
|
|
291
|
+
];
|
|
292
|
+
}
|
|
293
|
+
case "func": {
|
|
294
|
+
return ["sin", "cos", "tan"];
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
const getTrigonometrySohcahtoaUseQuestion = (optsIn) => {
|
|
299
|
+
const targetTypes = optsIn?.targetTypes ?? optsDefault.targetTypes;
|
|
300
|
+
const opts = Object.assign(optsIn, { targetTypes });
|
|
301
|
+
const triangle = RightTriangleConstructor.randomNiceSides({
|
|
302
|
+
randomName: true,
|
|
303
|
+
});
|
|
304
|
+
const targetType = random(targetTypes);
|
|
305
|
+
const indexTarget = randint(1, 3);
|
|
306
|
+
let indexGivenAngle;
|
|
307
|
+
const indexesGivenSegments = [];
|
|
308
|
+
switch (targetType) {
|
|
309
|
+
case "angle":
|
|
310
|
+
{
|
|
311
|
+
indexesGivenSegments.push(...randomMany([0, 1, 2], 2));
|
|
312
|
+
}
|
|
313
|
+
break;
|
|
314
|
+
case "segment":
|
|
315
|
+
{
|
|
316
|
+
indexGivenAngle = randint(1, 3);
|
|
317
|
+
indexesGivenSegments.push(3 - indexTarget);
|
|
318
|
+
}
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
const identifiers = {
|
|
322
|
+
questionType: opts.questionType,
|
|
323
|
+
targetType,
|
|
324
|
+
indexTarget,
|
|
325
|
+
indexGivenAngle,
|
|
326
|
+
indexesGivenSegments,
|
|
327
|
+
triangleIdentifiers: triangle.toIdentifiers(),
|
|
328
|
+
};
|
|
329
|
+
return getQuestionFromIdentifiers(identifiers, opts);
|
|
330
|
+
};
|
|
331
|
+
const getQuestionFromIdentifiers = (identifiers, opts) => {
|
|
332
|
+
return {
|
|
333
|
+
instruction: getInstruction(identifiers, opts),
|
|
334
|
+
answer: getAnswer(identifiers, opts),
|
|
335
|
+
hint: getHint(identifiers, opts),
|
|
336
|
+
correction: getCorrection(identifiers, opts),
|
|
337
|
+
keys: getKeys(identifiers, opts),
|
|
338
|
+
ggbOptions: getGGBOptions(identifiers, opts),
|
|
339
|
+
answerFormat: "tex",
|
|
340
|
+
identifiers,
|
|
341
|
+
options: opts,
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
const optsDefault = {
|
|
345
|
+
targetTypes: ["angle", "segment"],
|
|
346
|
+
};
|
|
347
|
+
const options = [
|
|
348
|
+
{
|
|
349
|
+
id: "targetType",
|
|
350
|
+
label: "Mesure recherchée",
|
|
351
|
+
type: GeneratorOptionType.multiselect,
|
|
352
|
+
target: GeneratorOptionTarget.generation,
|
|
353
|
+
values: ["angle", "segment"],
|
|
354
|
+
defaultValue: optsDefault.targetTypes,
|
|
355
|
+
},
|
|
356
|
+
];
|
|
357
|
+
export const trigonometrySohcahtoaUseFrac = {
|
|
358
|
+
id: "trigonometrySohcahtoaUseFrac",
|
|
359
|
+
label: "Utiliser le bon rapport trigonométrique pour calculer la mesure d'un angle ou d'un segment",
|
|
360
|
+
isSingleStep: false,
|
|
361
|
+
generator: (nb, opts) => getDistinctQuestions(() => getTrigonometrySohcahtoaUseQuestion(Object.assign({}, { questionType: "frac" }, opts)), nb),
|
|
362
|
+
options,
|
|
363
|
+
qcmTimer: 60,
|
|
364
|
+
freeTimer: 60,
|
|
365
|
+
getPropositions,
|
|
366
|
+
isAnswerValid,
|
|
367
|
+
hasGeogebra: true,
|
|
368
|
+
subject: "Mathématiques",
|
|
369
|
+
hasHintAndCorrection: true,
|
|
370
|
+
getQuestionFromIdentifiers,
|
|
371
|
+
};
|
|
372
|
+
export const trigonometrySohcahtoaUseFunc = {
|
|
373
|
+
id: "trigonometrySohcahtoaUseFunc",
|
|
374
|
+
label: "Utiliser la bonne fonction trigonométrique pour calculer la mesure d'un angle ou d'un segment",
|
|
375
|
+
isSingleStep: false,
|
|
376
|
+
generator: (nb, opts) => getDistinctQuestions(() => getTrigonometrySohcahtoaUseQuestion(Object.assign({}, { questionType: "func" }, opts)), nb),
|
|
377
|
+
options,
|
|
378
|
+
qcmTimer: 60,
|
|
379
|
+
freeTimer: 60,
|
|
380
|
+
getPropositions,
|
|
381
|
+
hasGeogebra: true,
|
|
382
|
+
subject: "Mathématiques",
|
|
383
|
+
hasHintAndCorrection: true,
|
|
384
|
+
getQuestionFromIdentifiers,
|
|
385
|
+
answerType: "QCU",
|
|
386
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -186,6 +186,17 @@ declare const mathExercises: (Exercise<{
|
|
|
186
186
|
numberType: "Entier" | "D\u00E9cimal";
|
|
187
187
|
nbSteps: string;
|
|
188
188
|
nbDigits: string;
|
|
189
|
+
}> | Exercise<{
|
|
190
|
+
nodeIdsFrac: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
191
|
+
b: number;
|
|
192
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
193
|
+
quantityType: string;
|
|
194
|
+
situationIndex: number;
|
|
195
|
+
nodeIdsFrac: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
196
|
+
a: number;
|
|
197
|
+
coeff: number;
|
|
198
|
+
}, {
|
|
199
|
+
quantityTypes: string[];
|
|
189
200
|
}> | Exercise<{
|
|
190
201
|
type: number;
|
|
191
202
|
a: number;
|
|
@@ -378,6 +389,14 @@ declare const mathExercises: (Exercise<{
|
|
|
378
389
|
a: number;
|
|
379
390
|
isOpposite: boolean;
|
|
380
391
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
392
|
+
ratioType: string;
|
|
393
|
+
situationIndex: number;
|
|
394
|
+
total: number;
|
|
395
|
+
ratio: number[];
|
|
396
|
+
indexPart: number;
|
|
397
|
+
}, {
|
|
398
|
+
ratioTypes: string[];
|
|
399
|
+
}> | Exercise<{
|
|
381
400
|
a: number;
|
|
382
401
|
b: number;
|
|
383
402
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
@@ -2442,6 +2461,9 @@ declare const mathExercises: (Exercise<{
|
|
|
2442
2461
|
values: number[];
|
|
2443
2462
|
isAboveA: boolean;
|
|
2444
2463
|
isQuestionIsAboveA: boolean;
|
|
2464
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2465
|
+
randomValues: number[];
|
|
2466
|
+
randomEffectives: number[];
|
|
2445
2467
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2446
2468
|
xValues: number[];
|
|
2447
2469
|
yValues: number[];
|
|
@@ -2586,6 +2608,11 @@ declare const mathExercises: (Exercise<{
|
|
|
2586
2608
|
}, {
|
|
2587
2609
|
numberTypes: string[];
|
|
2588
2610
|
}> | Exercise<{
|
|
2611
|
+
min: number;
|
|
2612
|
+
max: number;
|
|
2613
|
+
target: number;
|
|
2614
|
+
isIncluded: boolean;
|
|
2615
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2589
2616
|
indexSituation: number;
|
|
2590
2617
|
eventIds: {
|
|
2591
2618
|
type: "elementary";
|
|
@@ -2615,6 +2642,12 @@ declare const mathExercises: (Exercise<{
|
|
|
2615
2642
|
situationIndex: number;
|
|
2616
2643
|
dictShuffle: Record<string, string>;
|
|
2617
2644
|
pType: string;
|
|
2645
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2646
|
+
situationIndex: number;
|
|
2647
|
+
values: number[];
|
|
2648
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2649
|
+
situationIndex: number;
|
|
2650
|
+
values: number[][];
|
|
2618
2651
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2619
2652
|
firstValue: number;
|
|
2620
2653
|
askedRank: number;
|
|
@@ -2909,6 +2942,28 @@ declare const mathExercises: (Exercise<{
|
|
|
2909
2942
|
givenValue: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
2910
2943
|
isCosGiven: boolean;
|
|
2911
2944
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
2945
|
+
nameTrigoFunc: string;
|
|
2946
|
+
indexPoint: number;
|
|
2947
|
+
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2948
|
+
}, {
|
|
2949
|
+
acceptedInputType: string;
|
|
2950
|
+
}> | Exercise<{
|
|
2951
|
+
sideType: string;
|
|
2952
|
+
indexPoint: number;
|
|
2953
|
+
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2954
|
+
}, {
|
|
2955
|
+
sideTypes: string[];
|
|
2956
|
+
}> | Exercise<{
|
|
2957
|
+
questionType: "frac" | "func";
|
|
2958
|
+
targetType: string;
|
|
2959
|
+
indexTarget: number;
|
|
2960
|
+
indexesGivenSegments: number[];
|
|
2961
|
+
indexGivenAngle: number | undefined;
|
|
2962
|
+
triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
|
|
2963
|
+
}, {
|
|
2964
|
+
questionType: "frac" | "func";
|
|
2965
|
+
targetTypes: string[];
|
|
2966
|
+
}> | Exercise<{
|
|
2912
2967
|
initialValue: number;
|
|
2913
2968
|
step: number;
|
|
2914
2969
|
iterations: number;
|
|
@@ -3461,6 +3516,9 @@ declare const mathExercises: (Exercise<{
|
|
|
3461
3516
|
}> | Exercise<{
|
|
3462
3517
|
weight: number;
|
|
3463
3518
|
originIsMoon: boolean;
|
|
3519
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3520
|
+
repeatCount: number;
|
|
3521
|
+
stepsCount: number;
|
|
3464
3522
|
}, Record<string, string | boolean | string[]>>)[];
|
|
3465
3523
|
declare const pcExercises: (Exercise<{
|
|
3466
3524
|
numbers: number[];
|
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;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
|
package/lib/latexTester.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"latexTester.d.ts","sourceRoot":"","sources":["../src/latexTester.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,6BAA2B,
|
|
1
|
+
{"version":3,"file":"latexTester.d.ts","sourceRoot":"","sources":["../src/latexTester.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,6BAA2B,YAoLrE,CAAC"}
|
package/lib/latexTester.js
CHANGED
|
@@ -14,6 +14,9 @@ export const latexTester = (latex, isDefaultInMathMode = false) => {
|
|
|
14
14
|
const char = formated[i];
|
|
15
15
|
const nextChar = formated[i + 1];
|
|
16
16
|
const nextNextChar = formated[i + 2];
|
|
17
|
+
if (forbiddenCharacters.includes(char)) {
|
|
18
|
+
throw new Error(`forbidden char : ${char}`);
|
|
19
|
+
}
|
|
17
20
|
if (char === "$") {
|
|
18
21
|
if (isDefaultInMathMode)
|
|
19
22
|
throw new Error("Dollar in default math mode");
|
|
@@ -160,6 +163,7 @@ export const latexTester = (latex, isDefaultInMathMode = false) => {
|
|
|
160
163
|
throw new Error("Inline Python not closed");
|
|
161
164
|
return true;
|
|
162
165
|
};
|
|
166
|
+
const forbiddenCharacters = ["−"];
|
|
163
167
|
const mustEscapeCharacters = ["%"];
|
|
164
168
|
const mustBeInMath = ["%", "#", "_", "~", "^"];
|
|
165
169
|
const validCmds = [
|
|
@@ -260,4 +264,5 @@ const validCmds = [
|
|
|
260
264
|
"\\nearrow",
|
|
261
265
|
"\\searrow",
|
|
262
266
|
"\\mapsto",
|
|
267
|
+
"\\color",
|
|
263
268
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triangle.d.ts","sourceRoot":"","sources":["../../../../src/math/geometry/triangles/triangle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKpC,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAG7C,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,wBAAwB,CAAC;CAClC,CAAC;AAEF,8BAAsB,mBAAmB;IACvC,MAAM,CAAC,eAAe,CACpB,WAAW,EAAE,mBAAmB,EAChC,KAAK,CAAC,EAAE,aAAa,GACpB,QAAQ;IAiBX,MAAM,CAAC,eAAe,CAAC,EACrB,KAAuB,EACvB,UAAkB,EAClB,QAAgB,EAChB,QAAY,GACb;;;;;KAAA,GAAG,QAAQ;IAkDZ,MAAM,CAAC,UAAU;CAQlB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,CAAC,eAAe,GAAG,SAAS,CAAC,EAAE,CAAC;IAC/C,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC;IACvC,kBAAkB,CAAC,EAAE,eAAe,EAAE,CAAC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,IAAI,OAAO;IAIlB,aAAa,IAAI,OAAO;IAMxB,WAAW,IAAI,OAAO;IAUtB,SAAS,IAAI,OAAO;IASpB,aAAa,CACX,KAAK,EAAE,MAAM,EACb,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;KAClD;IAeH,cAAc,CACZ,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;IAKH,eAAe,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE;IAQtC,SAAS,CACP,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAeH,UAAU,CACR,WAAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE;QACL,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,KAAK,CAAC;KACnB;IAuCH,cAAc,IAAI,MAAM,EAAE;IAkB1B,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CAgB5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDecimalFraction.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/fractions/isDecimalFraction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAMlE,eAAO,MAAM,iBAAiB,GAAI,MAAM,aAAa,YAUpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { primeDecomposition } from "../../../math/utils/arithmetic/primeDecomposition.js";
|
|
2
|
+
import { isFractionNode, } from "../../../tree/nodes/operators/fractionNode.js";
|
|
3
|
+
export const isDecimalFraction = (node) => {
|
|
4
|
+
const nodeSimplified = node.simplify();
|
|
5
|
+
if (isFractionNode(nodeSimplified)) {
|
|
6
|
+
const fractionNodeSimplified = nodeSimplified;
|
|
7
|
+
const nodeDen = fractionNodeSimplified.rightChild.evaluate();
|
|
8
|
+
const arrDecomp = primeDecomposition(nodeDen);
|
|
9
|
+
return arrDecomp.every(({ value }) => [2, 5].includes(value));
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
};
|
package/lib/types/keyIds.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type KeyId =
|
|
|
10
10
|
/**geometry */
|
|
11
11
|
| "overrightarrow" | "degree" | "vectorU" | "vectorV" | "vectorW" | "vectorZ" | "vectorNul" | "widehat"
|
|
12
12
|
/**operations */
|
|
13
|
-
| "plus" | "minus" | "times" | "frac" | "obelus" | "sqrt" | "sqrtCub" | "square" | "cube" | "power" | "percent" | "leftParenthesis" | "leftParenthesisNoLeft" | "rightParenthesis" | "rightParenthesisNoRight" | "equal" | "comma" | "semicolon" | "dot" | "sup" | "inf" | "geq" | "leq" | "approx" | "xsquare" | "xcube" | "equivalent"
|
|
13
|
+
| "plus" | "minus" | "times" | "frac" | "obelus" | "sqrt" | "sqrtCub" | "square" | "cube" | "power" | "percent" | "leftParenthesis" | "leftParenthesisNoLeft" | "rightParenthesis" | "rightParenthesisNoRight" | "equal" | "comma" | "semicolon" | "colon" | "dot" | "sup" | "inf" | "geq" | "leq" | "approx" | "xsquare" | "xcube" | "equivalent"
|
|
14
14
|
/**sets */
|
|
15
15
|
| "belongs" | "notin" | "cap" | "cup" | "lbrace" | "rbrace" | "lbracket" | "lbracketNoSpace" | "rbracket" | "rbracketNoSpace" | "varnothing" | "naturals" | "integers" | "rationals" | "decimals" | "reals" | "complex" | "ast" | "del" | "right" | "left" | "rightarrow" | "overrightarrow" | "infty"
|
|
16
16
|
/**fcts */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyIds.d.ts","sourceRoot":"","sources":["../../src/types/keyIds.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK;AACf,gBAAgB;AACd,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,oBAAoB;AACtB,WAAW;GACT,IAAI,GACJ,KAAK,GACL,SAAS,GACT,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,SAAS,GACT,OAAO,GACP,eAAe;AAEjB,aAAa;GACX,QAAQ,GACR,OAAO,GACP,MAAM,GACN,YAAY,GACZ,KAAK,GACL,OAAO,GACP,QAAQ,GACR,KAAK;AAEP,WAAW;GACT,IAAI,GACJ,IAAI,GACJ,OAAO;AAET,cAAc;GACZ,gBAAgB,GAChB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS;AAEX,gBAAgB;GACd,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,SAAS,GACT,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,iBAAiB,GACjB,uBAAuB,GACvB,kBAAkB,GAClB,yBAAyB,GACzB,OAAO,GACP,OAAO,GACP,WAAW,GACX,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,SAAS,GACT,OAAO,GACP,YAAY;AAEd,UAAU;GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,iBAAiB,GACjB,UAAU,GACV,iBAAiB,GACjB,YAAY,GACZ,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,OAAO,GACP,SAAS,GACT,KAAK,GACL,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,gBAAgB,GAChB,OAAO;AAET,UAAU;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GACR,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,GACX,YAAY,GACZ,UAAU,GACV,aAAa,GACb,WAAW,GACX,QAAQ,GACR,WAAW,GACX,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"keyIds.d.ts","sourceRoot":"","sources":["../../src/types/keyIds.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK;AACf,gBAAgB;AACd,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,oBAAoB;AACtB,WAAW;GACT,IAAI,GACJ,KAAK,GACL,SAAS,GACT,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,SAAS,GACT,SAAS,GACT,OAAO,GACP,eAAe;AAEjB,aAAa;GACX,QAAQ,GACR,OAAO,GACP,MAAM,GACN,YAAY,GACZ,KAAK,GACL,OAAO,GACP,QAAQ,GACR,KAAK;AAEP,WAAW;GACT,IAAI,GACJ,IAAI,GACJ,OAAO;AAET,cAAc;GACZ,gBAAgB,GAChB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS;AAEX,gBAAgB;GACd,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,SAAS,GACT,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,iBAAiB,GACjB,uBAAuB,GACvB,kBAAkB,GAClB,yBAAyB,GACzB,OAAO,GACP,OAAO,GACP,WAAW,GACX,OAAO,GACP,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,SAAS,GACT,OAAO,GACP,YAAY;AAEd,UAAU;GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,iBAAiB,GACjB,UAAU,GACV,iBAAiB,GACjB,YAAY,GACZ,UAAU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