math-exercises 2.0.7 → 2.0.9

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 (99) hide show
  1. package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts +6 -0
  2. package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts.map +1 -1
  3. package/lib/exercises/complex/argumentFromAlgebraicComplex.js +62 -51
  4. package/lib/exercises/complex/index.d.ts +1 -0
  5. package/lib/exercises/complex/index.d.ts.map +1 -1
  6. package/lib/exercises/complex/index.js +1 -0
  7. package/lib/exercises/functions/exponential/expEquation.d.ts +1 -0
  8. package/lib/exercises/functions/exponential/expEquation.d.ts.map +1 -1
  9. package/lib/exercises/functions/logarithm/index.d.ts +1 -0
  10. package/lib/exercises/functions/logarithm/index.d.ts.map +1 -1
  11. package/lib/exercises/functions/logarithm/index.js +1 -1
  12. package/lib/exercises/functions/logarithm/log10PowerSimplifying.d.ts.map +1 -1
  13. package/lib/exercises/functions/logarithm/log10PowerSimplifying.js +3 -2
  14. package/lib/exercises/functions/logarithm/logPowerEquation.d.ts +7 -1
  15. package/lib/exercises/functions/logarithm/logPowerEquation.d.ts.map +1 -1
  16. package/lib/exercises/functions/logarithm/logPowerEquation.js +47 -17
  17. package/lib/exercises/trigonometry/associatePoint.d.ts +7 -0
  18. package/lib/exercises/trigonometry/associatePoint.d.ts.map +1 -0
  19. package/lib/exercises/trigonometry/associatePoint.js +64 -0
  20. package/lib/exercises/trigonometry/index.d.ts +1 -0
  21. package/lib/exercises/trigonometry/index.d.ts.map +1 -1
  22. package/lib/exercises/trigonometry/index.js +1 -0
  23. package/lib/exercises/trigonometry/remarkableValues.d.ts +1 -1
  24. package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -1
  25. package/lib/exercises/trigonometry/remarkableValues.js +9 -7
  26. package/lib/index.d.ts +13 -3
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/math/numbers/nombre.js +1 -1
  29. package/lib/math/numbers/reals/extendedRingElement.d.ts +2 -1
  30. package/lib/math/numbers/reals/extendedRingElement.d.ts.map +1 -1
  31. package/lib/math/polynomials/trinom.d.ts +2 -2
  32. package/lib/math/trigonometry/remarkableValue.d.ts +3 -10
  33. package/lib/math/trigonometry/remarkableValue.d.ts.map +1 -1
  34. package/lib/math/trigonometry/remarkableValue.js +5 -15
  35. package/lib/math/trigonometry/remarkableValues.d.ts +7 -1
  36. package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -1
  37. package/lib/math/trigonometry/remarkableValues.js +63 -13
  38. package/lib/math/utils/arithmetic/gcd.js +1 -1
  39. package/lib/server.js +1 -7
  40. package/lib/tree/nodes/algebraicNode.d.ts +3 -0
  41. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  42. package/lib/tree/nodes/functions/absNode.d.ts +3 -1
  43. package/lib/tree/nodes/functions/absNode.d.ts.map +1 -1
  44. package/lib/tree/nodes/functions/absNode.js +5 -1
  45. package/lib/tree/nodes/functions/cosNode.d.ts +3 -1
  46. package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -1
  47. package/lib/tree/nodes/functions/cosNode.js +21 -0
  48. package/lib/tree/nodes/functions/expNode.d.ts +3 -1
  49. package/lib/tree/nodes/functions/expNode.d.ts.map +1 -1
  50. package/lib/tree/nodes/functions/expNode.js +4 -0
  51. package/lib/tree/nodes/functions/log10Node.d.ts +3 -1
  52. package/lib/tree/nodes/functions/log10Node.d.ts.map +1 -1
  53. package/lib/tree/nodes/functions/log10Node.js +28 -0
  54. package/lib/tree/nodes/functions/logNode.d.ts +3 -1
  55. package/lib/tree/nodes/functions/logNode.d.ts.map +1 -1
  56. package/lib/tree/nodes/functions/logNode.js +32 -0
  57. package/lib/tree/nodes/functions/oppositeNode.d.ts +3 -0
  58. package/lib/tree/nodes/functions/oppositeNode.d.ts.map +1 -1
  59. package/lib/tree/nodes/functions/oppositeNode.js +7 -0
  60. package/lib/tree/nodes/functions/sinNode.d.ts +3 -1
  61. package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -1
  62. package/lib/tree/nodes/functions/sinNode.js +21 -0
  63. package/lib/tree/nodes/functions/sqrtNode.d.ts +3 -0
  64. package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -1
  65. package/lib/tree/nodes/functions/sqrtNode.js +41 -0
  66. package/lib/tree/nodes/geometry/lengthNode.d.ts +5 -1
  67. package/lib/tree/nodes/geometry/lengthNode.d.ts.map +1 -1
  68. package/lib/tree/nodes/geometry/lengthNode.js +12 -1
  69. package/lib/tree/nodes/node.d.ts +1 -0
  70. package/lib/tree/nodes/node.d.ts.map +1 -1
  71. package/lib/tree/nodes/node.js +14 -1
  72. package/lib/tree/nodes/numbers/constantNode.d.ts +3 -0
  73. package/lib/tree/nodes/numbers/constantNode.d.ts.map +1 -1
  74. package/lib/tree/nodes/numbers/constantNode.js +7 -0
  75. package/lib/tree/nodes/numbers/numberNode.d.ts +3 -0
  76. package/lib/tree/nodes/numbers/numberNode.d.ts.map +1 -1
  77. package/lib/tree/nodes/numbers/numberNode.js +7 -0
  78. package/lib/tree/nodes/operators/addNode.d.ts +3 -0
  79. package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
  80. package/lib/tree/nodes/operators/addNode.js +173 -0
  81. package/lib/tree/nodes/operators/divideNode.d.ts +3 -0
  82. package/lib/tree/nodes/operators/divideNode.d.ts.map +1 -1
  83. package/lib/tree/nodes/operators/divideNode.js +12 -0
  84. package/lib/tree/nodes/operators/fractionNode.d.ts +3 -0
  85. package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
  86. package/lib/tree/nodes/operators/fractionNode.js +86 -0
  87. package/lib/tree/nodes/operators/multiplyNode.d.ts +5 -0
  88. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  89. package/lib/tree/nodes/operators/multiplyNode.js +127 -10
  90. package/lib/tree/nodes/operators/powerNode.d.ts +3 -0
  91. package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
  92. package/lib/tree/nodes/operators/powerNode.js +46 -0
  93. package/lib/tree/nodes/operators/substractNode.d.ts +3 -0
  94. package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -1
  95. package/lib/tree/nodes/operators/substractNode.js +12 -0
  96. package/lib/tree/nodes/variables/variableNode.d.ts +3 -0
  97. package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -1
  98. package/lib/tree/nodes/variables/variableNode.js +10 -0
  99. package/package.json +1 -1
@@ -1 +1,7 @@
1
+ import { MathExercise } from "../../exercises/exercise";
2
+ type Identifiers = {
3
+ arg: number;
4
+ };
5
+ export declare const argumentFromAlgebraicComplex: MathExercise<Identifiers>;
6
+ export {};
1
7
  //# sourceMappingURL=argumentFromAlgebraicComplex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"argumentFromAlgebraicComplex.d.ts","sourceRoot":"","sources":["../../../src/exercises/complex/argumentFromAlgebraicComplex.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"argumentFromAlgebraicComplex.d.ts","sourceRoot":"","sources":["../../../src/exercises/complex/argumentFromAlgebraicComplex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AA4CF,eAAO,MAAM,4BAA4B,EAAE,YAAY,CAAC,WAAW,CAalE,CAAC"}
@@ -1,52 +1,63 @@
1
1
  "use strict";
2
- // import {
3
- // MathExercise,
4
- // Proposition,
5
- // QCMGenerator,
6
- // Question,
7
- // QuestionGenerator,
8
- // VEA,
9
- // addValidProp,
10
- // shuffleProps,
11
- // tryToAddWrongProp,
12
- // } from "../../exercises/exercise";
13
- // import { getDistinctQuestions } from "../../exercises/utils/getDistinctQuestions";
14
- // import { ComplexConstructor } from "../../math/complex/complex";
15
- // type Identifiers = {
16
- // re: number;
17
- // im: number;
18
- // };
19
- // const getArgumentFromAlgebraicComplexQuestion: QuestionGenerator<
20
- // Identifiers
21
- // > = () => {
22
- // const z = ComplexConstructor.random();
23
- // const zTex = z.toTree().toTex();
24
- // const answer = z.toModuleTree().toTex();
25
- // const question: Question<Identifiers> = {
26
- // answer: answer,
27
- // instruction: `Soit $z=${zTex}$. Déterminer le module $|z|$ de $z$.`,
28
- // keys: [],
29
- // answerFormat: "tex",
30
- // identifiers: { re: z.re, im: z.im },
31
- // };
32
- // return question;
33
- // };
34
- // const getPropositions: QCMGenerator<Identifiers> = (n, { answer }) => {
35
- // const propositions: Proposition[] = [];
36
- // addValidProp(propositions, answer);
37
- // while (propositions.length < n) {}
38
- // return shuffleProps(propositions, n);
39
- // };
40
- // export const argumentFromAlgebraicComplex: MathExercise<Identifiers> = {
41
- // id: "argumentFromAlgebraicComplex",
42
- // connector: "=",
43
- // label: "Déterminer l'argument d'un nombre complexe via sa forme algébrique",
44
- // levels: ["MathExp"],
45
- // isSingleStep: true,
46
- // sections: ["Nombres complexes"],
47
- // generator: (nb: number) =>
48
- // getDistinctQuestions(getArgumentFromAlgebraicComplexQuestion, nb),
49
- // qcmTimer: 60,
50
- // freeTimer: 60,
51
- // getPropositions,
52
- // };
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.argumentFromAlgebraicComplex = void 0;
4
+ const exercise_1 = require("../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
6
+ const integer_1 = require("../../math/numbers/integer/integer");
7
+ const rational_1 = require("../../math/numbers/rationals/rational");
8
+ const remarkableValue_1 = require("../../math/trigonometry/remarkableValue");
9
+ const remarkableValues_1 = require("../../math/trigonometry/remarkableValues");
10
+ const randint_1 = require("../../math/utils/random/randint");
11
+ const complexNode_1 = require("../../tree/nodes/complex/complexNode");
12
+ const sqrtNode_1 = require("../../tree/nodes/functions/sqrtNode");
13
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
14
+ const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
15
+ const random_1 = require("../../utils/random");
16
+ const getArgumentFromAlgebraicComplexQuestion = () => {
17
+ const arg = remarkableValue_1.RemarkableValueConstructor.mainInterval();
18
+ const factor = (0, random_1.random)([
19
+ new integer_1.Integer((0, randint_1.randint)(-5, 6, [0, 1])).toTree(),
20
+ rational_1.RationalConstructor.randomIrreductible().toTree(),
21
+ (0, random_1.random)([new sqrtNode_1.SqrtNode(new numberNode_1.NumberNode(2)), new sqrtNode_1.SqrtNode(new numberNode_1.NumberNode(3))]),
22
+ ]);
23
+ const re = new multiplyNode_1.MultiplyNode(factor, arg.cos).simplify();
24
+ const im = new multiplyNode_1.MultiplyNode(factor, arg.sin).simplify();
25
+ const z = new complexNode_1.ComplexNode(re, im);
26
+ const zTex = z.toTex();
27
+ const answer = arg.angle.toTex();
28
+ const question = {
29
+ answer: answer,
30
+ instruction: `Soit $z=${zTex}$. Déterminer l'argument principal de $z$.`,
31
+ keys: ["pi"],
32
+ answerFormat: "tex",
33
+ identifiers: { arg: arg.angle.evaluate({}) },
34
+ };
35
+ return question;
36
+ };
37
+ const getPropositions = (n, { answer }) => {
38
+ const propositions = [];
39
+ (0, exercise_1.addValidProp)(propositions, answer);
40
+ while (propositions.length < n) {
41
+ const randomPoint = remarkableValue_1.RemarkableValueConstructor.mainInterval();
42
+ (0, exercise_1.tryToAddWrongProp)(propositions, randomPoint.angle.toTex());
43
+ }
44
+ return (0, exercise_1.shuffleProps)(propositions, n);
45
+ };
46
+ const isAnswerValid = (ans, { arg }) => {
47
+ const point = remarkableValues_1.remarkableTrigoValues.find((point) => point.angle.evaluate({}) === arg);
48
+ const texs = point.angle.toAllValidTexs();
49
+ return texs.includes(ans);
50
+ };
51
+ exports.argumentFromAlgebraicComplex = {
52
+ id: "argumentFromAlgebraicComplex",
53
+ connector: "=",
54
+ label: "Déterminer l'argument d'un nombre complexe via sa forme algébrique",
55
+ levels: ["MathExp"],
56
+ isSingleStep: true,
57
+ sections: ["Nombres complexes"],
58
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getArgumentFromAlgebraicComplexQuestion, nb),
59
+ qcmTimer: 60,
60
+ freeTimer: 60,
61
+ getPropositions,
62
+ isAnswerValid,
63
+ };
@@ -8,4 +8,5 @@ export * from "./linearCombinaisonComplex";
8
8
  export * from "./moduloFromAlgebraicComplex";
9
9
  export * from "./mutiplyComplex";
10
10
  export * from "./reAndIm";
11
+ export * from "./argumentFromAlgebraicComplex";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/complex/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/complex/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAE7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gCAAgC,CAAC"}
@@ -25,3 +25,4 @@ __exportStar(require("./linearCombinaisonComplex"), exports);
25
25
  __exportStar(require("./moduloFromAlgebraicComplex"), exports);
26
26
  __exportStar(require("./mutiplyComplex"), exports);
27
27
  __exportStar(require("./reAndIm"), exports);
28
+ __exportStar(require("./argumentFromAlgebraicComplex"), exports);
@@ -1,4 +1,5 @@
1
1
  import { MathExercise } from "../../../exercises/exercise";
2
+ /**ae^x = k */
2
3
  type Identifiers = {
3
4
  a: number;
4
5
  k: number;
@@ -1 +1 @@
1
- {"version":3,"file":"expEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/exponential/expEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAelC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAwEF,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,WAAW,CAYjD,CAAC"}
1
+ {"version":3,"file":"expEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/exponential/expEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAQb,MAAM,0BAA0B,CAAC;AAelC,cAAc;AACd,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAwEF,eAAO,MAAM,WAAW,EAAE,YAAY,CAAC,WAAW,CAYjD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./logEquation";
2
2
  export * from "./logSimplifiying";
3
3
  export * from "./log10PowerSimplifying";
4
+ export * from "./logPowerEquation";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/logarithm/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/logarithm/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./logEquation"), exports);
18
18
  __exportStar(require("./logSimplifiying"), exports);
19
19
  __exportStar(require("./log10PowerSimplifying"), exports);
20
- // export * from "./logPowerEquation";
20
+ __exportStar(require("./logPowerEquation"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"log10PowerSimplifying.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/logarithm/log10PowerSimplifying.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqCF,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAa3D,CAAC"}
1
+ {"version":3,"file":"log10PowerSimplifying.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/logarithm/log10PowerSimplifying.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAUlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqCF,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAc3D,CAAC"}
@@ -10,7 +10,7 @@ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
10
10
  const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
11
11
  const probaFlip_1 = require("../../../utils/probaFlip");
12
12
  const getLog10PowerSimplifyingQuestion = () => {
13
- const tenthPower = (0, randint_1.randint)(-5, 6, [0]);
13
+ const tenthPower = (0, randint_1.randint)(-5, 6, [0, 1]);
14
14
  const shouldEvaluate = (0, probaFlip_1.probaFlip)(0.7);
15
15
  const nb = shouldEvaluate
16
16
  ? new decimal_1.Decimal(1).multiplyByPowerOfTen(tenthPower).toTree()
@@ -45,9 +45,10 @@ exports.log10PowerSimplifying = {
45
45
  levels: ["TermTech", "MathComp"],
46
46
  isSingleStep: true,
47
47
  sections: ["Logarithme décimal", "Puissances"],
48
- generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLog10PowerSimplifyingQuestion, nb),
48
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLog10PowerSimplifyingQuestion, nb, 15),
49
49
  qcmTimer: 60,
50
50
  freeTimer: 60,
51
51
  getPropositions,
52
52
  isAnswerValid,
53
+ maxAllowedQuestions: 15,
53
54
  };
@@ -1,5 +1,11 @@
1
1
  import { MathExercise } from "../../../exercises/exercise";
2
- type Identifiers = {};
2
+ type Identifiers = {
3
+ a: number;
4
+ powered: number;
5
+ c: number;
6
+ k: number;
7
+ isLog10: boolean;
8
+ };
3
9
  export declare const logPowerEquation: MathExercise<Identifiers>;
4
10
  export declare const log10PowerEquation: MathExercise<Identifiers>;
5
11
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"logPowerEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/logarithm/logPowerEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAclC,KAAK,WAAW,GAAG,EAAE,CAAC;AAkDtB,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,WAAW,CAatD,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAgBxD,CAAC"}
1
+ {"version":3,"file":"logPowerEquation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/functions/logarithm/logPowerEquation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,WAAW,GAAG;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAwGF,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,WAAW,CAatD,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,YAAY,CAAC,WAAW,CAgBxD,CAAC"}
@@ -7,6 +7,7 @@ const randint_1 = require("../../../math/utils/random/randint");
7
7
  const equalNode_1 = require("../../../tree/nodes/equations/equalNode");
8
8
  const equationSolutionNode_1 = require("../../../tree/nodes/equations/equationSolutionNode");
9
9
  const log10Node_1 = require("../../../tree/nodes/functions/log10Node");
10
+ const logNode_1 = require("../../../tree/nodes/functions/logNode");
10
11
  const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
11
12
  const addNode_1 = require("../../../tree/nodes/operators/addNode");
12
13
  const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
@@ -17,41 +18,70 @@ const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
17
18
  /**a*b^x+c=d */
18
19
  const getLogPowerEquationQuestion = (opts) => {
19
20
  const powered = (0, randint_1.randint)(2, 8);
20
- const a = (0, randint_1.randint)(1, 10);
21
- const c = (0, randint_1.randint)(-5, 5);
22
- const k = (0, randint_1.randint)(5, 15, [powered, 10]);
21
+ const a = (0, randint_1.randint)(1, 10, [powered]);
22
+ const c = (0, randint_1.randint)(-5, 5, [a]);
23
+ const k = (0, randint_1.randint)(5, 15, [powered]);
23
24
  const d = k * a + c;
24
25
  const xNode = new variableNode_1.VariableNode("x");
25
26
  const poweredNode = new numberNode_1.NumberNode(powered);
27
+ const LNode = opts?.isLog10 ? log10Node_1.Log10Node : logNode_1.LogNode;
26
28
  const answer = new equationSolutionNode_1.EquationSolutionNode(new discreteSetNode_1.DiscreteSetNode([
27
- new fractionNode_1.FractionNode(new log10Node_1.Log10Node(new numberNode_1.NumberNode(k)), new log10Node_1.Log10Node(poweredNode)),
29
+ new fractionNode_1.FractionNode(new LNode(new numberNode_1.NumberNode(k)), new LNode(poweredNode)).simplify(),
28
30
  ])).toTex();
29
- const equation = new equalNode_1.EqualNode(new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new powerNode_1.PowerNode(poweredNode, xNode)), new numberNode_1.NumberNode(c)), new numberNode_1.NumberNode(d));
31
+ const equation = new equalNode_1.EqualNode(new addNode_1.AddNode(new multiplyNode_1.MultiplyNode(new numberNode_1.NumberNode(a), new powerNode_1.PowerNode(poweredNode, xNode)), new numberNode_1.NumberNode(c)).simplify(), new numberNode_1.NumberNode(d));
32
+ const keys = [
33
+ "log",
34
+ "x",
35
+ "equal",
36
+ "S",
37
+ "lbrace",
38
+ "semicolon",
39
+ "rbrace",
40
+ ];
41
+ keys.push(opts?.isLog10 ? "log" : "ln");
30
42
  const question = {
31
43
  answer,
32
44
  instruction: `Résoudre : $${equation.toTex()}$`,
33
- keys: ["log", "x", "equal", "lbrace", "semicolon", "rbrace"],
45
+ keys,
34
46
  answerFormat: "tex",
35
- identifiers: {},
47
+ identifiers: { a, c, k, powered, isLog10: opts?.isLog10 ?? false },
36
48
  };
37
49
  return question;
38
50
  };
39
- const getPropositions = (n, { answer }) => {
51
+ const getPropositions = (n, { answer, isLog10, a, c, k, powered }) => {
40
52
  const propositions = [];
41
53
  (0, exercise_1.addValidProp)(propositions, answer);
42
- while (propositions.length < n) { }
54
+ const LNode = isLog10 ? log10Node_1.Log10Node : logNode_1.LogNode;
55
+ const withoutLogs = new equationSolutionNode_1.EquationSolutionNode(new discreteSetNode_1.DiscreteSetNode([
56
+ new fractionNode_1.FractionNode(new numberNode_1.NumberNode(k), new numberNode_1.NumberNode(powered)).simplify(),
57
+ ]));
58
+ (0, exercise_1.tryToAddWrongProp)(propositions, withoutLogs.toTex());
59
+ while (propositions.length < n) {
60
+ (0, exercise_1.tryToAddWrongProp)(propositions, new equationSolutionNode_1.EquationSolutionNode(new discreteSetNode_1.DiscreteSetNode([
61
+ new fractionNode_1.FractionNode(new LNode(new numberNode_1.NumberNode((0, randint_1.randint)(2, 10))), new LNode(new numberNode_1.NumberNode((0, randint_1.randint)(2, 10)))).simplify(),
62
+ ])).toTex());
63
+ }
43
64
  return (0, exercise_1.shuffleProps)(propositions, n);
44
65
  };
45
- const isAnswerValid = (ans, { answer }) => {
46
- return true;
66
+ const isAnswerValid = (ans, { a, c, k, powered, isLog10 }) => {
67
+ const LNode = isLog10 ? log10Node_1.Log10Node : logNode_1.LogNode;
68
+ const poweredNode = new numberNode_1.NumberNode(powered);
69
+ const answerSimp = new equationSolutionNode_1.EquationSolutionNode(new discreteSetNode_1.DiscreteSetNode([
70
+ new fractionNode_1.FractionNode(new LNode(new numberNode_1.NumberNode(k)), new LNode(poweredNode)).simplify(),
71
+ ]));
72
+ const answer = new equationSolutionNode_1.EquationSolutionNode(new discreteSetNode_1.DiscreteSetNode([
73
+ new fractionNode_1.FractionNode(new LNode(new numberNode_1.NumberNode(k)), new LNode(poweredNode)),
74
+ ]));
75
+ const texs = [...answerSimp.toAllValidTexs(), ...answer.toAllValidTexs()];
76
+ return texs.includes(ans);
47
77
  };
48
78
  exports.logPowerEquation = {
49
79
  id: "logPowerEquation",
50
80
  connector: "\\iff",
51
- label: "",
52
- levels: [],
81
+ label: "Résoudre une équation du type $a\\times b^x + c = d$",
82
+ levels: ["TermSpé", "MathComp"],
53
83
  isSingleStep: true,
54
- sections: [],
84
+ sections: ["Logarithme népérien", "Puissances"],
55
85
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getLogPowerEquationQuestion, nb),
56
86
  qcmTimer: 60,
57
87
  freeTimer: 60,
@@ -61,10 +91,10 @@ exports.logPowerEquation = {
61
91
  exports.log10PowerEquation = {
62
92
  id: "log10PowerEquation",
63
93
  connector: "\\iff",
64
- label: "",
65
- levels: [],
94
+ label: "Résoudre une équation du type $a\\times b^x + c = d$",
95
+ levels: ["TermSpé", "MathComp"],
66
96
  isSingleStep: true,
67
- sections: [],
97
+ sections: ["Logarithme décimal", "Puissances"],
68
98
  generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(() => getLogPowerEquationQuestion({ isLog10: true }), nb),
69
99
  qcmTimer: 60,
70
100
  freeTimer: 60,
@@ -0,0 +1,7 @@
1
+ import { MathExercise } from "../../exercises/exercise";
2
+ type Identifiers = {
3
+ angleValue: number;
4
+ };
5
+ export declare const associatePoint: MathExercise<Identifiers>;
6
+ export {};
7
+ //# sourceMappingURL=associatePoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"associatePoint.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/associatePoint.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EASb,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqDF,eAAO,MAAM,cAAc,EAAE,YAAY,CAAC,WAAW,CAapD,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.associatePoint = void 0;
4
+ const exercise_1 = require("../../exercises/exercise");
5
+ const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
6
+ const remarkableValue_1 = require("../../math/trigonometry/remarkableValue");
7
+ const random_1 = require("../../utils/random");
8
+ const points = [
9
+ "I",
10
+ "A",
11
+ "B",
12
+ "C",
13
+ "J",
14
+ "D",
15
+ "E",
16
+ "F",
17
+ "G",
18
+ "H",
19
+ "K",
20
+ "L",
21
+ "M",
22
+ "N",
23
+ "P",
24
+ "Q",
25
+ ];
26
+ const getAssociatePointQuestion = () => {
27
+ const remarkableValue = remarkableValue_1.RemarkableValueConstructor.simplifiable();
28
+ const answer = remarkableValue.point;
29
+ const question = {
30
+ answer,
31
+ instruction: `À quel point du cercle trigonométrique ci-dessous le réel $${remarkableValue.angle.toTex()}$ est-il associé ?
32
+ ![](https://heureuxhasarddocsbucket.s3.eu-west-3.amazonaws.com/mathliveV2/activities/quizzes/generator/piCircle.png)
33
+ `,
34
+ keys: points,
35
+ answerFormat: "tex",
36
+ identifiers: { angleValue: remarkableValue.mainAngle.evaluate({}) },
37
+ };
38
+ return question;
39
+ };
40
+ const getPropositions = (n, { answer, angleValue }) => {
41
+ const propositions = [];
42
+ (0, exercise_1.addValidProp)(propositions, answer);
43
+ while (propositions.length < n) {
44
+ const rand = (0, random_1.random)(points);
45
+ (0, exercise_1.tryToAddWrongProp)(propositions, rand);
46
+ }
47
+ return (0, exercise_1.shuffleProps)(propositions, n);
48
+ };
49
+ const isAnswerValid = (ans, { answer }) => {
50
+ return answer === ans;
51
+ };
52
+ exports.associatePoint = {
53
+ id: "associatePoint",
54
+ connector: "=",
55
+ label: "Associer un réel à un point du cercle trigonométrique",
56
+ levels: ["1reSpé", "TermSpé"],
57
+ isSingleStep: true,
58
+ sections: ["Trigonométrie"],
59
+ generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getAssociatePointQuestion, nb),
60
+ qcmTimer: 60,
61
+ freeTimer: 60,
62
+ getPropositions,
63
+ isAnswerValid,
64
+ };
@@ -3,4 +3,5 @@ export * from "./remarkableValues";
3
3
  export * from "./trigonometry";
4
4
  export * from "./trigonometryAngleCalcul";
5
5
  export * from "./trigonometrySideCalcul";
6
+ export * from "./associatePoint";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC"}
@@ -19,3 +19,4 @@ __exportStar(require("./remarkableValues"), exports);
19
19
  __exportStar(require("./trigonometry"), exports);
20
20
  __exportStar(require("./trigonometryAngleCalcul"), exports);
21
21
  __exportStar(require("./trigonometrySideCalcul"), exports);
22
+ __exportStar(require("./associatePoint"), exports);
@@ -1,6 +1,6 @@
1
1
  import { MathExercise } from "../exercise";
2
2
  type Identifiers = {
3
- valueIndex: number;
3
+ mainValue: number;
4
4
  isCos: boolean;
5
5
  };
6
6
  export declare const remarkableValuesExercise: MathExercise<Identifiers>;
@@ -1 +1 @@
1
- {"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,YAAY,EAQb,MAAM,aAAa,CAAC;AAerB,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAwCF,eAAO,MAAM,wBAAwB,EAAE,YAAY,CAAC,WAAW,CAY9D,CAAC"}
1
+ {"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,YAAY,EAQb,MAAM,aAAa,CAAC;AAerB,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAyCF,eAAO,MAAM,wBAAwB,EAAE,YAAY,CAAC,WAAW,CAY9D,CAAC"}
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.remarkableValuesExercise = void 0;
4
4
  const remarkableValue_1 = require("../../math/trigonometry/remarkableValue");
5
5
  const remarkableValues_1 = require("../../math/trigonometry/remarkableValues");
6
+ const cosNode_1 = require("../../tree/nodes/functions/cosNode");
7
+ const sinNode_1 = require("../../tree/nodes/functions/sinNode");
6
8
  const coinFlip_1 = require("../../utils/coinFlip");
7
9
  const random_1 = require("../../utils/random");
8
10
  const shuffle_1 = require("../../utils/shuffle");
@@ -22,21 +24,21 @@ const values = [
22
24
  const getRemarkableValues = () => {
23
25
  const isCos = (0, coinFlip_1.coinFlip)();
24
26
  const remarkableValue = remarkableValue_1.RemarkableValueConstructor.simplifiable();
25
- const valueIndex = remarkableValue.index;
27
+ const mainValue = remarkableValue.mainAngle.evaluate({});
28
+ // const valueIndex = remarkableValue.index;
26
29
  const answer = isCos
27
30
  ? remarkableValue.cos.toTex()
28
31
  : remarkableValue.sin.toTex();
29
- (0, shuffle_1.shuffle)(values);
30
32
  const statement = isCos
31
- ? `\\cos\\left(${remarkableValue.angle.toTex()}\\right)`
32
- : `\\sin\\left(${remarkableValue.angle.toTex()}\\right)`;
33
+ ? new cosNode_1.CosNode(remarkableValue.angle).toTex()
34
+ : new sinNode_1.SinNode(remarkableValue.angle).toTex();
33
35
  const question = {
34
36
  instruction: `Donner la valeur exacte de : $${statement}$`,
35
37
  startStatement: statement,
36
38
  answer: answer,
37
39
  keys: ["pi", "cos", "sin"],
38
40
  answerFormat: "tex",
39
- identifiers: { isCos, valueIndex },
41
+ identifiers: { isCos, mainValue },
40
42
  };
41
43
  return question;
42
44
  };
@@ -49,8 +51,8 @@ const getPropositions = (n, { answer }) => {
49
51
  }
50
52
  return (0, shuffle_1.shuffle)(propositions);
51
53
  };
52
- const isAnswerValid = (ans, { valueIndex, isCos }) => {
53
- const remarkableValue = remarkableValues_1.remarkableTrigoValues[valueIndex];
54
+ const isAnswerValid = (ans, { mainValue, isCos }) => {
55
+ const remarkableValue = remarkableValues_1.remarkableTrigoValues.find((point) => point.angle.evaluate({}) === mainValue);
54
56
  const answer = isCos ? remarkableValue.cos : remarkableValue.sin;
55
57
  const texs = answer.toAllValidTexs({ allowFractionToDecimal: true });
56
58
  return texs.includes(ans);
package/lib/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  declare const mathExercises: (import("./exercises/exercise").MathExercise<{
2
- numbers: number[];
2
+ chosenNumbers: number[];
3
3
  }> | import("./exercises/exercise").MathExercise<{
4
4
  numbers: number[];
5
5
  }> | import("./exercises/exercise").MathExercise<{
6
- chosenNumbers: number[];
6
+ numbers: number[];
7
7
  }> | import("./exercises/exercise").MathExercise<{
8
8
  dividend: number;
9
9
  divisor: number;
@@ -208,6 +208,8 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
208
208
  re: number;
209
209
  im: number;
210
210
  isRe: boolean;
211
+ }> | import("./exercises/exercise").MathExercise<{
212
+ arg: number;
211
213
  }> | import("./exercises/exercise").MathExercise<{
212
214
  randomUnitIndex: number;
213
215
  randomUnitInstructionIndex: number;
@@ -417,6 +419,12 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
417
419
  b: number;
418
420
  }> | import("./exercises/exercise").MathExercise<{
419
421
  tenthPower: number;
422
+ }> | import("./exercises/exercise").MathExercise<{
423
+ a: number;
424
+ powered: number;
425
+ c: number;
426
+ k: number;
427
+ isLog10: boolean;
420
428
  }> | import("./exercises/exercise").MathExercise<{
421
429
  coin: boolean;
422
430
  radius: number;
@@ -691,7 +699,7 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
691
699
  valueIndex: number;
692
700
  isCos: boolean;
693
701
  }> | import("./exercises/exercise").MathExercise<{
694
- valueIndex: number;
702
+ mainValue: number;
695
703
  isCos: boolean;
696
704
  }> | import("./exercises/exercise").MathExercise<{
697
705
  sideA: string;
@@ -708,6 +716,8 @@ declare const mathExercises: (import("./exercises/exercise").MathExercise<{
708
716
  randAngle: number;
709
717
  randSide: number;
710
718
  randSideQuestion: number;
719
+ }> | import("./exercises/exercise").MathExercise<{
720
+ angleValue: number;
711
721
  }>)[];
712
722
  export { mathExercises };
713
723
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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"}
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"}
@@ -17,7 +17,7 @@ var NumberType;
17
17
  class NombreConstructor {
18
18
  static random() {
19
19
  const type = (0, random_1.random)([
20
- NumberType.Decimal,
20
+ NumberType.Integer,
21
21
  NumberType.Decimal,
22
22
  NumberType.Rational,
23
23
  NumberType.Real,
@@ -1,4 +1,5 @@
1
1
  import { NumberNode } from '../../../tree/nodes/numbers/numberNode';
2
+ import { MultiplyNode } from '../../../tree/nodes/operators/multiplyNode';
2
3
  import { SubstractNode } from '../../../tree/nodes/operators/substractNode';
3
4
  import { Nombre } from '../nombre';
4
5
  /**
@@ -10,6 +11,6 @@ export declare class ExtendedRingElement {
10
11
  b: number;
11
12
  algebraicElement: Nombre;
12
13
  constructor(a: number, b: number, algebraicElement: Nombre);
13
- toTree(): import("../../../tree/nodes/algebraicNode").AlgebraicNode | NumberNode | SubstractNode;
14
+ toTree(): import("../../../tree/nodes/algebraicNode").AlgebraicNode | NumberNode | MultiplyNode | SubstractNode;
14
15
  }
15
16
  //# sourceMappingURL=extendedRingElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extendedRingElement.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/extendedRingElement.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGjE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;GAGG;AACH,qBAAa,mBAAmB;IAM9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,MAAM,CAAC;gBACb,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAM1D,MAAM;CAeP"}
1
+ {"version":3,"file":"extendedRingElement.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/extendedRingElement.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;;GAGG;AACH,qBAAa,mBAAmB;IAM9B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,gBAAgB,EAAE,MAAM,CAAC;gBACb,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAM1D,MAAM;CAeP"}
@@ -27,8 +27,8 @@ export declare class Trinom extends Polynomial {
27
27
  getAlphaNode(): NumberNode | FractionNode | OppositeNode;
28
28
  getBeta(): number;
29
29
  getBetaNode(): NumberNode | FractionNode | OppositeNode;
30
- getFactorizedForm(): AlgebraicNode;
31
- getCanonicalForm(): AddNode | MultiplyNode;
30
+ getFactorizedForm(): AlgebraicNode | MultiplyNode;
31
+ getCanonicalForm(): MultiplyNode | AddNode;
32
32
  getSommet(): Point;
33
33
  }
34
34
  //# sourceMappingURL=trinom.d.ts.map
@@ -1,16 +1,9 @@
1
- import { Node } from "../../tree/nodes/node";
2
- import { Integer } from "../numbers/integer/integer";
3
- import { Rational } from "../numbers/rationals/rational";
4
- export interface RemarkableValue {
5
- angleValue: Integer | Rational;
6
- angle: Node;
7
- cos: Node;
8
- sin: Node;
9
- }
1
+ import { AlgebraicNode } from "../../tree/nodes/algebraicNode";
2
+ import { RemarkableValue } from "./remarkableValues";
10
3
  export declare abstract class RemarkableValueConstructor {
11
4
  static mainInterval: () => RemarkableValue;
12
5
  static simplifiable: () => RemarkableValue & {
13
- index: number;
6
+ mainAngle: AlgebraicNode;
14
7
  };
15
8
  }
16
9
  //# sourceMappingURL=remarkableValue.d.ts.map