math-exercises 3.0.155 → 3.0.156
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/geometry/euclidian/pinPointFromRotation.js +1 -1
- package/lib/exercises/math/probaStat/basicProbas/rangeBasicProbas.js +1 -1
- package/lib/geogebra/probas/probaWheelGGBCommands.d.ts.map +1 -1
- package/lib/geogebra/probas/probaWheelGGBCommands.js +2 -1
- package/package.json +1 -1
|
@@ -89,7 +89,7 @@ const getStrForTransformation = (transformationIds) => {
|
|
|
89
89
|
const isPositiveAngle = nodeAngleInDegrees.evaluate() >= 0;
|
|
90
90
|
const strClockwise = isPositiveAngle ? "anti-horaire" : "horaire";
|
|
91
91
|
const absAngleInDegrees = abs(nodeAngleInDegrees).simplify();
|
|
92
|
-
return `la
|
|
92
|
+
return `la rotation de centre $${transformationIds.point1.name}$ et d'angle $${absAngleInDegrees.toTex()}°$ dans le sens ${strClockwise}`;
|
|
93
93
|
}
|
|
94
94
|
default:
|
|
95
95
|
throw new Error("Unsupported transformation type: " + transformationIds.type);
|
|
@@ -9,7 +9,7 @@ import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
|
|
|
9
9
|
const getInstruction = (identifiers) => {
|
|
10
10
|
const { min, max, target, isIncluded } = identifiers;
|
|
11
11
|
return `Sur un ordinateur, on exécute un programme qui retourne au hasard
|
|
12
|
-
un nombre entier compris entre $${min.frenchify()}$ et $${max.frenchify()}$
|
|
12
|
+
un nombre entier compris entre $${min.frenchify()}$ inclus et $${max.frenchify()}$
|
|
13
13
|
${isIncluded ? "inclus" : "exclu"}.
|
|
14
14
|
|
|
15
15
|
Quelle est la probabilité que le programme retourne $${target.frenchify()}$ ?`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"probaWheelGGBCommands.d.ts","sourceRoot":"","sources":["../../../src/geogebra/probas/probaWheelGGBCommands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"probaWheelGGBCommands.d.ts","sourceRoot":"","sources":["../../../src/geogebra/probas/probaWheelGGBCommands.ts"],"names":[],"mappings":"AA+DA,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,eAAO,MAAM,qBAAqB,GAAI,SAAS,SAAS,EAAE,aAyFzD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { round } from "../../math/utils/round.js";
|
|
|
4
4
|
import { PiNode } from "../../tree/nodes/numbers/piNode.js";
|
|
5
5
|
import { add } from "../../tree/nodes/operators/addNode.js";
|
|
6
6
|
import { substract } from "../../tree/nodes/operators/substractNode.js";
|
|
7
|
-
import {
|
|
7
|
+
import { blueMain, colorWithOpacity, greenLight, orange, red, } from "../colors.js";
|
|
8
8
|
const createVector = (from, to, name, precision = 5) => {
|
|
9
9
|
return new Vector(name, round(substract(to.x, from.x).evaluate(), precision).toTree(), round(substract(to.y, from.y).evaluate(), precision).toTree());
|
|
10
10
|
};
|
|
@@ -38,6 +38,7 @@ export const probaWheelGGBCommands = (arrItem) => {
|
|
|
38
38
|
[point1, 0.38],
|
|
39
39
|
[point2, 0.38],
|
|
40
40
|
]);
|
|
41
|
+
const colors = [red, blueMain, greenLight, orange];
|
|
41
42
|
return [
|
|
42
43
|
//circular sector
|
|
43
44
|
`C_${i} = CircularSector(${point0.toMathString()}, ${point1.toMathString()}, ${point2.toMathString()})`,
|