math-exercises 2.0.24 → 2.0.26
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/calcul/arithmetics/paritySumsAndProducts.d.ts +3 -1
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.d.ts.map +1 -1
- package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.js +1 -1
- package/lib/exercises/combinatory/diceCounting.d.ts +3 -0
- package/lib/exercises/combinatory/diceCounting.d.ts.map +1 -1
- package/lib/exercises/combinatory/diceCounting.js +4 -2
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts +1 -0
- package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
- package/lib/exercises/complex/argumentFromAlgebraicComplex.js +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts.map +1 -1
- package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +12 -6
- package/lib/exercises/derivation/derivativeNumberReading.d.ts.map +1 -1
- package/lib/exercises/derivation/derivativeNumberReading.js +6 -3
- package/lib/exercises/exercise.d.ts +9 -1
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/functions/affines/affineExpressionReading.d.ts.map +1 -1
- package/lib/exercises/functions/affines/affineExpressionReading.js +11 -12
- package/lib/exercises/functions/affines/interceptReading.d.ts.map +1 -1
- package/lib/exercises/functions/affines/interceptReading.js +16 -10
- package/lib/exercises/functions/affines/leadingCoefficient.d.ts.map +1 -1
- package/lib/exercises/functions/affines/leadingCoefficient.js +12 -25
- package/lib/exercises/functions/basics/graphicEquation.d.ts.map +1 -1
- package/lib/exercises/functions/basics/graphicEquation.js +15 -14
- package/lib/exercises/functions/basics/graphicInequation.d.ts.map +1 -1
- package/lib/exercises/functions/basics/graphicInequation.js +13 -12
- package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/functions/basics/imageFunctionGeogebra.js +9 -19
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts.map +1 -1
- package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.js +25 -69
- package/lib/exercises/functions/logarithm/log10PowerSimplifying.d.ts +1 -0
- package/lib/exercises/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
- package/lib/exercises/functions/logarithm/log10PowerSimplifying.js +1 -1
- package/lib/exercises/geometry/areas/rightTriangleArea.d.ts.map +1 -1
- package/lib/exercises/geometry/areas/rightTriangleArea.js +7 -1
- package/lib/exercises/geometry/areas/triangleArea.d.ts.map +1 -1
- package/lib/exercises/geometry/areas/triangleArea.js +11 -3
- package/lib/exercises/geometry/pythagore/pythagore.d.ts.map +1 -1
- package/lib/exercises/geometry/pythagore/pythagore.js +7 -1
- package/lib/exercises/geometry/pythagore/pythagoreCalcul.d.ts.map +1 -1
- package/lib/exercises/geometry/pythagore/pythagoreCalcul.js +7 -1
- package/lib/exercises/geometry/thales/thales.d.ts.map +1 -1
- package/lib/exercises/geometry/thales/thales.js +7 -3
- package/lib/exercises/geometry/thales/thalesCalcul.d.ts.map +1 -1
- package/lib/exercises/geometry/thales/thalesCalcul.js +7 -3
- package/lib/exercises/geometry/vectors/coordinatesReading.d.ts.map +1 -1
- package/lib/exercises/geometry/vectors/coordinatesReading.js +15 -9
- package/lib/exercises/probaStat/probabilityTree.d.ts.map +1 -1
- package/lib/exercises/probaStat/probabilityTree.js +6 -2
- package/lib/exercises/trigonometry/trigonometry.d.ts.map +1 -1
- package/lib/exercises/trigonometry/trigonometry.js +7 -3
- package/lib/exercises/trigonometry/trigonometryAngleCalcul.d.ts.map +1 -1
- package/lib/exercises/trigonometry/trigonometryAngleCalcul.js +7 -3
- package/lib/exercises/trigonometry/trigonometrySideCalcul.d.ts.map +1 -1
- package/lib/exercises/trigonometry/trigonometrySideCalcul.js +7 -1
- package/lib/exercises/utils/keys/discreteSetKeys.d.ts +3 -0
- package/lib/exercises/utils/keys/discreteSetKeys.d.ts.map +1 -0
- package/lib/exercises/utils/keys/discreteSetKeys.js +11 -0
- package/lib/geogebra/geogebraConstructor.d.ts +27 -3
- package/lib/geogebra/geogebraConstructor.d.ts.map +1 -1
- package/lib/geogebra/geogebraConstructor.js +36 -6
- package/lib/index.d.ts +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/math/geometry/triangles.d.ts +1 -1
- package/lib/math/geometry/triangles.d.ts.map +1 -1
- package/lib/math/geometry/triangles.js +1 -3
- package/lib/math/polynomials/polynomial.js +1 -1
- package/lib/math/polynomials/trinom.js +1 -1
- package/package.json +3 -1
|
@@ -1,7 +1,31 @@
|
|
|
1
|
+
type GeogebraOptions = {
|
|
2
|
+
isAxesRatioFixed?: boolean;
|
|
3
|
+
axesRatio?: [number, number] | false;
|
|
4
|
+
gridDistance?: [number, number] | false;
|
|
5
|
+
hideAxes?: boolean;
|
|
6
|
+
hideGrid?: boolean;
|
|
7
|
+
isGridBold?: boolean;
|
|
8
|
+
isGridSimple?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type GetAdaptedCoords = {
|
|
11
|
+
xMin: number;
|
|
12
|
+
xMax: number;
|
|
13
|
+
yMin: number;
|
|
14
|
+
yMax: number;
|
|
15
|
+
forceShowAxes?: boolean;
|
|
16
|
+
};
|
|
1
17
|
export declare class GeogebraConstructor {
|
|
2
18
|
commands: string[];
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
19
|
+
axesRatio: [number, number] | false;
|
|
20
|
+
gridDistance: [number, number] | false;
|
|
21
|
+
hideGrid: boolean;
|
|
22
|
+
hideAxes: boolean;
|
|
23
|
+
isGridSimple: boolean;
|
|
24
|
+
isGridBold: boolean;
|
|
25
|
+
isAxesRatioFixed: boolean;
|
|
26
|
+
constructor(commands: string[], options: GeogebraOptions | undefined);
|
|
27
|
+
getAdaptedCoords({ xMin, xMax, yMin, yMax, forceShowAxes, }: GetAdaptedCoords): number[];
|
|
28
|
+
getOptions(): GeogebraOptions;
|
|
6
29
|
}
|
|
30
|
+
export {};
|
|
7
31
|
//# sourceMappingURL=geogebraConstructor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geogebraConstructor.d.ts","sourceRoot":"","sources":["../../src/geogebra/geogebraConstructor.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"geogebraConstructor.d.ts","sourceRoot":"","sources":["../../src/geogebra/geogebraConstructor.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACpC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;gBACd,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,eAAe,GAAG,SAAS;IAWpE,gBAAgB,CAAC,EACf,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,aAAa,GACd,EAAE,gBAAgB;IAmBnB,UAAU,IAAI,eAAe;CAW9B"}
|
|
@@ -2,14 +2,44 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GeogebraConstructor = void 0;
|
|
4
4
|
class GeogebraConstructor {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.commands =
|
|
5
|
+
constructor(commands, options) {
|
|
6
|
+
this.commands = commands;
|
|
7
|
+
this.isAxesRatioFixed = options?.isAxesRatioFixed ?? true;
|
|
8
|
+
this.axesRatio = options?.axesRatio ?? [1, 1];
|
|
9
|
+
this.gridDistance = options?.gridDistance ?? [1, 1];
|
|
10
|
+
this.hideGrid = options?.hideGrid ?? false;
|
|
11
|
+
this.hideAxes = options?.hideAxes ?? false;
|
|
12
|
+
this.isGridBold = options?.isGridBold ?? false;
|
|
13
|
+
this.isGridSimple = options?.isGridSimple ?? false;
|
|
7
14
|
}
|
|
8
|
-
|
|
9
|
-
this.
|
|
15
|
+
getAdaptedCoords({ xMin, xMax, yMin, yMax, forceShowAxes, }) {
|
|
16
|
+
const showAxes = forceShowAxes ?? this.hideAxes ? false : true;
|
|
17
|
+
const xDelta = xMax - xMin;
|
|
18
|
+
const yDelta = yMax - yMin;
|
|
19
|
+
const coords = [
|
|
20
|
+
xMin === xMax ? xMin - 1 : xMin - 0.2 * Math.abs(xDelta),
|
|
21
|
+
xMin === xMax ? xMax + 1 : xMax + 0.2 * Math.abs(xDelta),
|
|
22
|
+
yMin === yMax ? yMin - 1 : yMin - 0.2 * Math.abs(yDelta),
|
|
23
|
+
yMin === yMax ? yMax + 1 : yMax + 0.2 * Math.abs(yDelta),
|
|
24
|
+
];
|
|
25
|
+
if (showAxes) {
|
|
26
|
+
coords[0] = Math.min(-1, coords[0]);
|
|
27
|
+
coords[1] = Math.max(1, coords[1]);
|
|
28
|
+
coords[2] = Math.min(-1, coords[2]);
|
|
29
|
+
coords[3] = Math.max(1, coords[3]);
|
|
30
|
+
}
|
|
31
|
+
return coords;
|
|
10
32
|
}
|
|
11
|
-
|
|
12
|
-
return
|
|
33
|
+
getOptions() {
|
|
34
|
+
return {
|
|
35
|
+
hideAxes: this.hideAxes,
|
|
36
|
+
hideGrid: this.hideGrid,
|
|
37
|
+
isGridBold: this.isGridBold,
|
|
38
|
+
isGridSimple: this.isGridSimple,
|
|
39
|
+
gridDistance: this.gridDistance,
|
|
40
|
+
axesRatio: this.axesRatio,
|
|
41
|
+
isAxesRatioFixed: this.isAxesRatioFixed,
|
|
42
|
+
};
|
|
13
43
|
}
|
|
14
44
|
}
|
|
15
45
|
exports.GeogebraConstructor = GeogebraConstructor;
|
package/lib/index.d.ts
CHANGED
|
@@ -9,7 +9,9 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
|
|
|
9
9
|
divisor: number;
|
|
10
10
|
quotient: number;
|
|
11
11
|
remainder: number;
|
|
12
|
-
}> | import("./exercises/exercise").MathExercise<{
|
|
12
|
+
}> | import("./exercises/exercise").MathExercise<{
|
|
13
|
+
type: number;
|
|
14
|
+
}> | import("./exercises/exercise").MathExercise<{
|
|
13
15
|
integerFirst: boolean;
|
|
14
16
|
integer: number;
|
|
15
17
|
rational: [number, number];
|
|
@@ -177,6 +179,9 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
|
|
|
177
179
|
blacks: number;
|
|
178
180
|
}> | import("./exercises/exercise").MathExercise<{
|
|
179
181
|
type: number;
|
|
182
|
+
face1?: number | undefined;
|
|
183
|
+
face2?: number | undefined;
|
|
184
|
+
face3?: number | undefined;
|
|
180
185
|
}> | import("./exercises/exercise").MathExercise<{
|
|
181
186
|
z1Re: number;
|
|
182
187
|
z1Im: number;
|
|
@@ -214,6 +219,7 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
|
|
|
214
219
|
isRe: boolean;
|
|
215
220
|
}> | import("./exercises/exercise").MathExercise<{
|
|
216
221
|
arg: number;
|
|
222
|
+
zTex: string;
|
|
217
223
|
}> | import("./exercises/exercise").MathExercise<{
|
|
218
224
|
randomUnitIndex: number;
|
|
219
225
|
randomUnitInstructionIndex: number;
|
|
@@ -434,6 +440,7 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
|
|
|
434
440
|
b: number;
|
|
435
441
|
}> | import("./exercises/exercise").MathExercise<{
|
|
436
442
|
tenthPower: number;
|
|
443
|
+
nbTex: string;
|
|
437
444
|
}> | import("./exercises/exercise").MathExercise<{
|
|
438
445
|
a: number;
|
|
439
446
|
powered: number;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqCA,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqCA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA2B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -44,7 +44,7 @@ export declare class Triangle {
|
|
|
44
44
|
isIsosceles(): Boolean;
|
|
45
45
|
isScalene(): boolean;
|
|
46
46
|
getRightAngle(): string;
|
|
47
|
-
generateCommands({ highlightedAngle: highlightedAngle, colorHighlightedAngle: colorHighlightedAngle, showLabels: showLabels, setCaptions: setCaptions, highlightedSide: highlightedSide, colorHighlightedSide: colorHighlightedSide,
|
|
47
|
+
generateCommands({ highlightedAngle: highlightedAngle, colorHighlightedAngle: colorHighlightedAngle, showLabels: showLabels, setCaptions: setCaptions, highlightedSide: highlightedSide, colorHighlightedSide: colorHighlightedSide, }: GenerateCommandsProps): string[];
|
|
48
48
|
generateCoords(): number[];
|
|
49
49
|
getSideAName(): string;
|
|
50
50
|
getSideBName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triangles.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/triangles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAI/D,8BAAsB,mBAAmB;IACvC,MAAM,CAAC,yBAAyB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IAAI,MAAM;IAMtB,OAAO,IAAI,MAAM;IAUjB,OAAO,IAAI,OAAO;IAOlB,aAAa,IAAI,OAAO;IAOxB,WAAW,IAAI,OAAO;IAQtB,SAAS,IAAI,OAAO;IAQpB,aAAa,IAAI,MAAM;IAOvB,gBAAgB,CAAC,EACf,gBAAgB,EAAE,gBAAgB,EAClC,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,GAC3C,EAAE,qBAAqB,GAAG,MAAM,EAAE;IAoEnC,cAAc,IAAI,MAAM,EAAE;IAyB1B,YAAY,IAAI,MAAM;IAItB,YAAY,IAAI,MAAM;IAItB,YAAY,IAAI,MAAM;CAGvB"}
|
|
@@ -132,7 +132,7 @@ class Triangle {
|
|
|
132
132
|
return this.vertexC.name;
|
|
133
133
|
return "";
|
|
134
134
|
}
|
|
135
|
-
generateCommands({ highlightedAngle: highlightedAngle, colorHighlightedAngle: colorHighlightedAngle, showLabels: showLabels, setCaptions: setCaptions, highlightedSide: highlightedSide, colorHighlightedSide: colorHighlightedSide,
|
|
135
|
+
generateCommands({ highlightedAngle: highlightedAngle, colorHighlightedAngle: colorHighlightedAngle, showLabels: showLabels, setCaptions: setCaptions, highlightedSide: highlightedSide, colorHighlightedSide: colorHighlightedSide, }) {
|
|
136
136
|
let commands = [
|
|
137
137
|
`${this.vertexA.name} = Point({${this.vertexA.getXnumber()}, ${this.vertexA.getYnumber()}})`,
|
|
138
138
|
`${this.vertexB.name} = Point({${this.vertexB.getXnumber()}, ${this.vertexB.getYnumber()}})`,
|
|
@@ -146,8 +146,6 @@ class Triangle {
|
|
|
146
146
|
`ShowLabel(${this.getSideCName()}, false)`,
|
|
147
147
|
`ShowLabel(${this.getSideBName()}, false)`,
|
|
148
148
|
`ShowLabel(${this.getSideBName()}, false)`,
|
|
149
|
-
`ShowAxes(${showAxes ?? false})`,
|
|
150
|
-
`ShowGrid(${showGrid ?? false})`,
|
|
151
149
|
];
|
|
152
150
|
if (this.isRight())
|
|
153
151
|
commands.push(`alpha = Angle(${this.vertexB.name},${this.vertexA.name},${this.vertexC.name}, Line(${this.vertexB.name},${this.vertexA.name}))`, `ShowLabel(alpha, false)`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "math-exercises",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.26",
|
|
4
4
|
"description": "Math exercises generator for middle school and high school",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"author": "Heureux Hasard",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"lodash.isequal": "^4.5.0",
|
|
20
21
|
"uuidv4": "^6.2.13"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
"@types/express": "^4.17.17",
|
|
25
26
|
"@types/jest": "^29.5.6",
|
|
26
27
|
"@types/node": "^20.10.6",
|
|
28
|
+
"@types/lodash.isequal": "^4.5.8",
|
|
27
29
|
"body-parser": "^1.20.2",
|
|
28
30
|
"cors": "^2.8.5",
|
|
29
31
|
"dotenv": "^16.0.3",
|