math-exercises 3.0.179 → 3.0.181
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/derivation/applications/index.d.ts +3 -0
- package/lib/exercises/math/derivation/applications/index.d.ts.map +1 -0
- package/lib/exercises/math/derivation/applications/index.js +2 -0
- package/lib/exercises/math/derivation/applications/maxBenefice.d.ts +11 -0
- package/lib/exercises/math/derivation/applications/maxBenefice.d.ts.map +1 -0
- package/lib/exercises/math/derivation/applications/maxBenefice.js +184 -0
- package/lib/exercises/math/derivation/applications/minimalCost.d.ts +11 -0
- package/lib/exercises/math/derivation/applications/minimalCost.d.ts.map +1 -0
- package/lib/exercises/math/derivation/applications/minimalCost.js +181 -0
- package/lib/exercises/math/derivation/index.d.ts +1 -0
- package/lib/exercises/math/derivation/index.d.ts.map +1 -1
- package/lib/exercises/math/derivation/index.js +1 -0
- package/lib/exercises/math/derivation/tangent/horizontalTangentFromAlgebraic.d.ts.map +1 -1
- package/lib/exercises/math/derivation/tangent/horizontalTangentFromAlgebraic.js +8 -4
- package/lib/exercises/math/functions/composition/functionComposition.d.ts.map +1 -1
- package/lib/exercises/math/functions/composition/functionComposition.js +20 -15
- package/lib/exercises/math/functions/composition/index.d.ts +1 -0
- package/lib/exercises/math/functions/composition/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/composition/index.js +1 -1
- package/lib/exercises/math/functions/exponential/algebraic/index.d.ts +1 -0
- package/lib/exercises/math/functions/exponential/algebraic/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/exponential/algebraic/index.js +1 -1
- package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindRecurrenceFormulaFromSituation.d.ts.map +1 -1
- package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindRecurrenceFormulaFromSituation.js +0 -4
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.js +38 -26
- package/lib/exercises/math/sequences/geometric/index.d.ts +3 -0
- package/lib/exercises/math/sequences/geometric/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/index.js +3 -3
- package/lib/exercises/math/sequences/geometric/situations/geometricFindExplicitFormulaFromSituation.js +1 -1
- package/lib/exercises/math/sequences/geometric/situations/index.d.ts +1 -0
- package/lib/exercises/math/sequences/geometric/situations/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/geometric/situations/index.js +1 -1
- package/lib/exercises/math/sequences/index.d.ts +1 -1
- package/lib/exercises/math/sequences/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/index.js +1 -2
- package/lib/exercises/math/sequences/limits/index.d.ts +2 -1
- package/lib/exercises/math/sequences/limits/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/limits/index.js +2 -2
- package/lib/exercises/math/sequences/limits/readSequenceConvergencyType.d.ts +9 -0
- package/lib/exercises/math/sequences/limits/readSequenceConvergencyType.d.ts.map +1 -0
- package/lib/exercises/math/sequences/limits/readSequenceConvergencyType.js +256 -0
- package/lib/exercises/math/sequences/limits/sequenceLimitReading.d.ts +7 -0
- package/lib/exercises/math/sequences/limits/sequenceLimitReading.d.ts.map +1 -1
- package/lib/exercises/math/sequences/limits/sequenceLimitReading.js +232 -163
- package/lib/exercises/math/sequences/variations/genericSequenceVariations.d.ts +7 -0
- package/lib/exercises/math/sequences/variations/genericSequenceVariations.d.ts.map +1 -0
- package/lib/exercises/math/sequences/variations/genericSequenceVariations.js +122 -0
- package/lib/exercises/math/sequences/variations/index.d.ts +2 -0
- package/lib/exercises/math/sequences/variations/index.d.ts.map +1 -1
- package/lib/exercises/math/sequences/variations/index.js +2 -0
- package/lib/exercises/math/sequences/variations/sequenceVariationFromTermsDifference.d.ts +9 -0
- package/lib/exercises/math/sequences/variations/sequenceVariationFromTermsDifference.d.ts.map +1 -0
- package/lib/exercises/math/sequences/variations/sequenceVariationFromTermsDifference.js +155 -0
- package/lib/index.d.ts +57 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/tests/singleExo.test.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { addValidProp, shuffleProps, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
|
|
2
|
+
import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
|
|
3
|
+
import { Affine } from "../../../../math/polynomials/affine.js";
|
|
4
|
+
import { randint } from "../../../../math/utils/random/randint.js";
|
|
5
|
+
import { firstDegreeInequationResolutionTex } from "../../../../tree/nodes/inequations/inequationNode.js";
|
|
6
|
+
import { reifyAlgebraic, } from "../../../../tree/nodes/nodeConstructor.js";
|
|
7
|
+
import { multiply } from "../../../../tree/nodes/operators/multiplyNode.js";
|
|
8
|
+
import { square } from "../../../../tree/nodes/operators/powerNode.js";
|
|
9
|
+
import { substract } from "../../../../tree/nodes/operators/substractNode.js";
|
|
10
|
+
const getPropositions = (n, { answer }) => {
|
|
11
|
+
const propositions = [];
|
|
12
|
+
addValidProp(propositions, answer, "raw");
|
|
13
|
+
["Constante", "Croissante", "Décroissante", "Non monotone"].forEach((prop) => {
|
|
14
|
+
tryToAddWrongProp(propositions, prop, "raw");
|
|
15
|
+
});
|
|
16
|
+
return shuffleProps(propositions, n);
|
|
17
|
+
};
|
|
18
|
+
const getAnswer = (identifiers) => {
|
|
19
|
+
const diff = reifyAlgebraic(identifiers.diffIdentifiers);
|
|
20
|
+
const ev = diff
|
|
21
|
+
.toDetailedEvaluation({ n: (1).toTree() })
|
|
22
|
+
.simplify()
|
|
23
|
+
.evaluate();
|
|
24
|
+
if (ev === 0)
|
|
25
|
+
return "Constante";
|
|
26
|
+
if (ev > 0)
|
|
27
|
+
return "Croissante";
|
|
28
|
+
if (ev < 0)
|
|
29
|
+
return "Décroissante";
|
|
30
|
+
return "Non monotone";
|
|
31
|
+
};
|
|
32
|
+
const getInstruction = (identifiers) => {
|
|
33
|
+
const diff = reifyAlgebraic(identifiers.diffIdentifiers);
|
|
34
|
+
return `On considère une suite $u$, telle que pour tout entier $n$ :
|
|
35
|
+
|
|
36
|
+
$$
|
|
37
|
+
u_{n+1} - u_n = ${diff.toTex()}
|
|
38
|
+
$$
|
|
39
|
+
|
|
40
|
+
Quel est le sens de variations de $u$ ?`;
|
|
41
|
+
};
|
|
42
|
+
const getHint = () => {
|
|
43
|
+
return `On dit qu'une suite $u$ est :
|
|
44
|
+
|
|
45
|
+
- croissante si et seulement si pour tout entier $n$, on a $u_{n+1}\\geq u_n$,
|
|
46
|
+
- décroissante si et seulement si pour tout entier $n$, on a $u_{n+1}\\leq u_n$,
|
|
47
|
+
- constante si et seulement si pour tout entier $n$, on a $u_{n+1} = u_n$
|
|
48
|
+
|
|
49
|
+
Dans les autres cas, on dit que $u$ est non monotone.
|
|
50
|
+
`;
|
|
51
|
+
};
|
|
52
|
+
const getCorrection = (identifiers) => {
|
|
53
|
+
const answer = getAnswer(identifiers).toLocaleLowerCase();
|
|
54
|
+
const diff = reifyAlgebraic(identifiers.diffIdentifiers);
|
|
55
|
+
let corr = `On étudie le signe de $u_{n+1}-u_n$ en fonction de $n$.
|
|
56
|
+
|
|
57
|
+
S'il est positif, alors $u$ est croissante. S'il est négatif, alors $u$ est décroissante. S'il est nul, alors $u$ est constante. S'il varie en fonction de $n$, alors $u$ est non monotone.
|
|
58
|
+
|
|
59
|
+
Ici, pour tout entier $n$, `;
|
|
60
|
+
switch (identifiers.type) {
|
|
61
|
+
case 0:
|
|
62
|
+
corr += `on a $u_{n+1}-u_n = 0$, donc $u$ est ${answer}.`;
|
|
63
|
+
break;
|
|
64
|
+
case 1: {
|
|
65
|
+
corr += `on a $u_{n+1}-u_n ${answer === "croissante" ? ">" : "<"} 0$, donc $u$ est ${answer}.`;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
case 2: {
|
|
69
|
+
const b = diff
|
|
70
|
+
.toDetailedEvaluation({ n: (0).toTree() })
|
|
71
|
+
.simplify()
|
|
72
|
+
.evaluate();
|
|
73
|
+
const a = substract(diff.toDetailedEvaluation({ n: (1).toTree() }), b)
|
|
74
|
+
.simplify()
|
|
75
|
+
.evaluate();
|
|
76
|
+
const aff = new Affine(a, b, "n");
|
|
77
|
+
corr += `on a :
|
|
78
|
+
|
|
79
|
+
$$
|
|
80
|
+
${firstDegreeInequationResolutionTex(aff, "\\ge", (0).toTree())}
|
|
81
|
+
$$
|
|
82
|
+
|
|
83
|
+
Donc, pour tout entier naturel $n\\geq 0$, on a $u_{n+1}-u_n ${answer === "croissante" ? ">" : "<"} 0$.
|
|
84
|
+
|
|
85
|
+
On en conclut que $u$ est ${answer}.`;
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
case 3:
|
|
89
|
+
default: {
|
|
90
|
+
const sign = answer === "croissante" ? ">" : "<";
|
|
91
|
+
corr += `on a $u_{n+1}-u_n ${sign} 0$, car $n^2\\geq 0$.
|
|
92
|
+
|
|
93
|
+
Donc $u$ est ${answer}.`;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return corr;
|
|
98
|
+
};
|
|
99
|
+
const getSequenceVariationFromTermsDifferenceQuestion = () => {
|
|
100
|
+
const type = randint(0, 4);
|
|
101
|
+
let diffIdentifiers;
|
|
102
|
+
switch (type) {
|
|
103
|
+
case 0:
|
|
104
|
+
diffIdentifiers = (0).toTree().toIdentifiers();
|
|
105
|
+
break;
|
|
106
|
+
case 1:
|
|
107
|
+
diffIdentifiers = randint(-10, 10, [0]).toTree().toIdentifiers();
|
|
108
|
+
break;
|
|
109
|
+
case 2: {
|
|
110
|
+
const root = randint(-10, 0, [0]);
|
|
111
|
+
const a = randint(-10, 10, [0]);
|
|
112
|
+
diffIdentifiers = new Affine(a, -root * a, "n").toTree().toIdentifiers();
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
case 3:
|
|
116
|
+
default: {
|
|
117
|
+
const a = randint(-10, 10, [0]);
|
|
118
|
+
diffIdentifiers = multiply(a, square("n")).toIdentifiers();
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
const identifiers = {
|
|
123
|
+
diffIdentifiers,
|
|
124
|
+
type,
|
|
125
|
+
};
|
|
126
|
+
return getQuestionFromIdentifiers(identifiers);
|
|
127
|
+
};
|
|
128
|
+
const getQuestionFromIdentifiers = (identifiers) => {
|
|
129
|
+
return {
|
|
130
|
+
answer: getAnswer(identifiers),
|
|
131
|
+
instruction: getInstruction(identifiers),
|
|
132
|
+
keys: [],
|
|
133
|
+
answerFormat: "raw",
|
|
134
|
+
identifiers,
|
|
135
|
+
hint: getHint(identifiers),
|
|
136
|
+
correction: getCorrection(identifiers),
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export const sequenceVariationFromTermsDifference = {
|
|
140
|
+
id: "sequenceVariationFromTermsDifference",
|
|
141
|
+
label: "Déterminer le sens de variations d'une suite en connaissant la différence entre deux termes consécutifs",
|
|
142
|
+
isSingleStep: true,
|
|
143
|
+
generator: (nb, opts) => getDistinctQuestions(() => getSequenceVariationFromTermsDifferenceQuestion(opts), nb),
|
|
144
|
+
qcmTimer: 60,
|
|
145
|
+
freeTimer: 60,
|
|
146
|
+
getPropositions,
|
|
147
|
+
subject: "Mathématiques",
|
|
148
|
+
getInstruction,
|
|
149
|
+
getHint,
|
|
150
|
+
getCorrection,
|
|
151
|
+
getAnswer,
|
|
152
|
+
getQuestionFromIdentifiers,
|
|
153
|
+
hasHintAndCorrection: true,
|
|
154
|
+
answerType: "QCU",
|
|
155
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1080,6 +1080,16 @@ declare const mathExercises: (Exercise<{
|
|
|
1080
1080
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1081
1081
|
quadcoeffs: number[];
|
|
1082
1082
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1083
|
+
isAskingX: boolean;
|
|
1084
|
+
coeffs: number[];
|
|
1085
|
+
}, {
|
|
1086
|
+
method: string;
|
|
1087
|
+
}> | Exercise<{
|
|
1088
|
+
isAskingX: boolean;
|
|
1089
|
+
coeffs: number[];
|
|
1090
|
+
}, {
|
|
1091
|
+
method: string;
|
|
1092
|
+
}> | Exercise<{
|
|
1083
1093
|
a: number;
|
|
1084
1094
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1085
1095
|
a: number;
|
|
@@ -1597,6 +1607,13 @@ declare const mathExercises: (Exercise<{
|
|
|
1597
1607
|
expBRounded: number;
|
|
1598
1608
|
precision: number;
|
|
1599
1609
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1610
|
+
nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1611
|
+
nodeIdsB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1612
|
+
nodeIdsAOpB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1613
|
+
rand: number;
|
|
1614
|
+
}, {
|
|
1615
|
+
isUseExpNotation: boolean;
|
|
1616
|
+
}> | Exercise<{
|
|
1600
1617
|
nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1601
1618
|
nodeIdsT: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1602
1619
|
x: number;
|
|
@@ -1831,6 +1848,8 @@ declare const mathExercises: (Exercise<{
|
|
|
1831
1848
|
isMinusInside: boolean;
|
|
1832
1849
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1833
1850
|
k: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
1851
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1852
|
+
nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
1834
1853
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
1835
1854
|
isFindU: boolean;
|
|
1836
1855
|
nodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
|
|
@@ -3398,6 +3417,28 @@ declare const mathExercises: (Exercise<{
|
|
|
3398
3417
|
value2: number;
|
|
3399
3418
|
precisionInitial: number;
|
|
3400
3419
|
precisionReason: number;
|
|
3420
|
+
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
|
|
3421
|
+
rank1: number;
|
|
3422
|
+
value1: number;
|
|
3423
|
+
rank2: number;
|
|
3424
|
+
value2: number;
|
|
3425
|
+
precisionInitial: number;
|
|
3426
|
+
precisionReason: number;
|
|
3427
|
+
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
|
|
3428
|
+
rank1: number;
|
|
3429
|
+
value1: number;
|
|
3430
|
+
rank2: number;
|
|
3431
|
+
value2: number;
|
|
3432
|
+
precisionInitial: number;
|
|
3433
|
+
precisionReason: number;
|
|
3434
|
+
rankAsked: number;
|
|
3435
|
+
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
|
|
3436
|
+
rank1: number;
|
|
3437
|
+
value1: number;
|
|
3438
|
+
rank2: number;
|
|
3439
|
+
value2: number;
|
|
3440
|
+
precisionInitial: number;
|
|
3441
|
+
precisionReason: number;
|
|
3401
3442
|
rankAsked: number;
|
|
3402
3443
|
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
|
|
3403
3444
|
raison: number;
|
|
@@ -3423,6 +3464,11 @@ declare const mathExercises: (Exercise<{
|
|
|
3423
3464
|
initial: number;
|
|
3424
3465
|
reason: number;
|
|
3425
3466
|
superfluousData?: import("./math/utils/sequences/situations/seqGeometricSituations.js").SituationGeometricSuperfluousData;
|
|
3467
|
+
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
|
|
3468
|
+
situationIndex: number;
|
|
3469
|
+
initial: number;
|
|
3470
|
+
reason: number;
|
|
3471
|
+
superfluousData?: import("./math/utils/sequences/situations/seqGeometricSituations.js").SituationGeometricSuperfluousData;
|
|
3426
3472
|
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
|
|
3427
3473
|
situationIndex: number;
|
|
3428
3474
|
initial: number;
|
|
@@ -3435,8 +3481,6 @@ declare const mathExercises: (Exercise<{
|
|
|
3435
3481
|
}, {
|
|
3436
3482
|
functionType: string[];
|
|
3437
3483
|
}> | Exercise<{
|
|
3438
|
-
coeffs: number[];
|
|
3439
|
-
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3440
3484
|
rank: number;
|
|
3441
3485
|
u0: number;
|
|
3442
3486
|
coeffs: number[];
|
|
@@ -3477,10 +3521,21 @@ declare const mathExercises: (Exercise<{
|
|
|
3477
3521
|
}, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & {
|
|
3478
3522
|
distanceOfRankAsked: string;
|
|
3479
3523
|
}> | Exercise<{
|
|
3524
|
+
type: number;
|
|
3525
|
+
formulaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3526
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3527
|
+
type: number;
|
|
3528
|
+
formulaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3529
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3480
3530
|
formulaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3481
3531
|
}, {
|
|
3482
3532
|
sequenceTypes: string[];
|
|
3483
3533
|
}> | Exercise<{
|
|
3534
|
+
diffIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
|
|
3535
|
+
type: number;
|
|
3536
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3537
|
+
coeffs: number[];
|
|
3538
|
+
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3484
3539
|
intervalIdentifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
|
|
3485
3540
|
}, Record<string, string | boolean | string[]>> | Exercise<{
|
|
3486
3541
|
int1Identifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
|
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;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,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,yBAAyB,CAAC;AAC7D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAE3D,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA+B,CAAC;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../prototypesEnhancement.js";
|
|
2
2
|
import { exoTest } from "./exoTest.js";
|
|
3
|
-
import {
|
|
3
|
+
import { arithmeticFindExplicitFormulaFromTwoTerms, } from "../exercises/math/index.js";
|
|
4
4
|
try {
|
|
5
5
|
for (let i = 0; i < 1000; i++)
|
|
6
|
-
exoTest(
|
|
6
|
+
exoTest(arithmeticFindExplicitFormulaFromTwoTerms);
|
|
7
7
|
}
|
|
8
8
|
catch (err) {
|
|
9
9
|
throw err;
|