math-exercises 3.0.180 → 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.
Files changed (46) hide show
  1. package/lib/exercises/math/derivation/applications/index.d.ts +3 -0
  2. package/lib/exercises/math/derivation/applications/index.d.ts.map +1 -0
  3. package/lib/exercises/math/derivation/applications/index.js +2 -0
  4. package/lib/exercises/math/derivation/applications/maxBenefice.d.ts +11 -0
  5. package/lib/exercises/math/derivation/applications/maxBenefice.d.ts.map +1 -0
  6. package/lib/exercises/math/derivation/applications/maxBenefice.js +184 -0
  7. package/lib/exercises/math/derivation/applications/minimalCost.d.ts +11 -0
  8. package/lib/exercises/math/derivation/applications/minimalCost.d.ts.map +1 -0
  9. package/lib/exercises/math/derivation/applications/minimalCost.js +181 -0
  10. package/lib/exercises/math/derivation/index.d.ts +1 -0
  11. package/lib/exercises/math/derivation/index.d.ts.map +1 -1
  12. package/lib/exercises/math/derivation/index.js +1 -0
  13. package/lib/exercises/math/derivation/tangent/horizontalTangentFromAlgebraic.d.ts.map +1 -1
  14. package/lib/exercises/math/derivation/tangent/horizontalTangentFromAlgebraic.js +8 -4
  15. package/lib/exercises/math/functions/composition/functionComposition.d.ts.map +1 -1
  16. package/lib/exercises/math/functions/composition/functionComposition.js +20 -15
  17. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindRecurrenceFormulaFromSituation.d.ts.map +1 -1
  18. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindRecurrenceFormulaFromSituation.js +0 -4
  19. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.d.ts.map +1 -1
  20. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.js +38 -26
  21. package/lib/exercises/math/sequences/geometric/situations/geometricFindExplicitFormulaFromSituation.js +1 -1
  22. package/lib/exercises/math/sequences/index.d.ts +1 -1
  23. package/lib/exercises/math/sequences/index.d.ts.map +1 -1
  24. package/lib/exercises/math/sequences/index.js +1 -2
  25. package/lib/exercises/math/sequences/limits/index.d.ts +2 -1
  26. package/lib/exercises/math/sequences/limits/index.d.ts.map +1 -1
  27. package/lib/exercises/math/sequences/limits/index.js +2 -2
  28. package/lib/exercises/math/sequences/limits/readSequenceConvergencyType.d.ts +9 -0
  29. package/lib/exercises/math/sequences/limits/readSequenceConvergencyType.d.ts.map +1 -0
  30. package/lib/exercises/math/sequences/limits/readSequenceConvergencyType.js +256 -0
  31. package/lib/exercises/math/sequences/limits/sequenceLimitReading.d.ts +7 -0
  32. package/lib/exercises/math/sequences/limits/sequenceLimitReading.d.ts.map +1 -1
  33. package/lib/exercises/math/sequences/limits/sequenceLimitReading.js +232 -163
  34. package/lib/exercises/math/sequences/variations/genericSequenceVariations.d.ts +7 -0
  35. package/lib/exercises/math/sequences/variations/genericSequenceVariations.d.ts.map +1 -0
  36. package/lib/exercises/math/sequences/variations/genericSequenceVariations.js +122 -0
  37. package/lib/exercises/math/sequences/variations/index.d.ts +2 -0
  38. package/lib/exercises/math/sequences/variations/index.d.ts.map +1 -1
  39. package/lib/exercises/math/sequences/variations/index.js +2 -0
  40. package/lib/exercises/math/sequences/variations/sequenceVariationFromTermsDifference.d.ts +9 -0
  41. package/lib/exercises/math/sequences/variations/sequenceVariationFromTermsDifference.d.ts.map +1 -0
  42. package/lib/exercises/math/sequences/variations/sequenceVariationFromTermsDifference.js +155 -0
  43. package/lib/index.d.ts +21 -2
  44. package/lib/index.d.ts.map +1 -1
  45. package/lib/tests/singleExo.test.js +2 -2
  46. 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;
@@ -3471,8 +3481,6 @@ declare const mathExercises: (Exercise<{
3471
3481
  }, {
3472
3482
  functionType: string[];
3473
3483
  }> | Exercise<{
3474
- coeffs: number[];
3475
- }, Record<string, string | boolean | string[]>> | Exercise<{
3476
3484
  rank: number;
3477
3485
  u0: number;
3478
3486
  coeffs: number[];
@@ -3513,10 +3521,21 @@ declare const mathExercises: (Exercise<{
3513
3521
  }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & {
3514
3522
  distanceOfRankAsked: string;
3515
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<{
3516
3530
  formulaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3517
3531
  }, {
3518
3532
  sequenceTypes: string[];
3519
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<{
3520
3539
  intervalIdentifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
3521
3540
  }, Record<string, string | boolean | string[]>> | Exercise<{
3522
3541
  int1Identifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 { colinearityFromPicture, } from "../exercises/math/index.js";
3
+ import { arithmeticFindExplicitFormulaFromTwoTerms, } from "../exercises/math/index.js";
4
4
  try {
5
5
  for (let i = 0; i < 1000; i++)
6
- exoTest(colinearityFromPicture);
6
+ exoTest(arithmeticFindExplicitFormulaFromTwoTerms);
7
7
  }
8
8
  catch (err) {
9
9
  throw err;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.180",
4
+ "version": "3.0.181",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [