math-exercises 3.0.108 → 3.0.109

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 (81) hide show
  1. package/lib/exercises/math/calcul/arithmetics/divisibiltyCriteria.d.ts.map +1 -1
  2. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.d.ts +7 -0
  3. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.d.ts.map +1 -0
  4. package/lib/exercises/math/calcul/rounding/getPhysicalOrderOfMagnitude.js +197 -0
  5. package/lib/exercises/math/calcul/rounding/index.d.ts +1 -0
  6. package/lib/exercises/math/calcul/rounding/index.d.ts.map +1 -1
  7. package/lib/exercises/math/calcul/rounding/index.js +1 -0
  8. package/lib/exercises/math/calcul/writing/numberToFrenchWriting.js +0 -1
  9. package/lib/exercises/math/calculLitteral/factorisation/factoType2.d.ts.map +1 -1
  10. package/lib/exercises/math/calculLitteral/formulas/index.d.ts +2 -0
  11. package/lib/exercises/math/calculLitteral/formulas/index.d.ts.map +1 -0
  12. package/lib/exercises/math/calculLitteral/formulas/index.js +1 -0
  13. package/lib/exercises/math/calculLitteral/formulas/useFormula.d.ts +18 -0
  14. package/lib/exercises/math/calculLitteral/formulas/useFormula.d.ts.map +1 -0
  15. package/lib/exercises/math/calculLitteral/formulas/useFormula.js +208 -0
  16. package/lib/exercises/math/calculLitteral/index.d.ts +1 -0
  17. package/lib/exercises/math/calculLitteral/index.d.ts.map +1 -1
  18. package/lib/exercises/math/calculLitteral/index.js +1 -0
  19. package/lib/exercises/math/calculLitteral/writing/index.d.ts +2 -0
  20. package/lib/exercises/math/calculLitteral/writing/index.d.ts.map +1 -0
  21. package/lib/exercises/math/calculLitteral/writing/index.js +1 -0
  22. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts +33 -0
  23. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.d.ts.map +1 -0
  24. package/lib/exercises/math/calculLitteral/writing/writeLitExpFromFrenchExp.js +348 -0
  25. package/lib/exercises/math/dataRepresentations/functionGraphReading.d.ts.map +1 -1
  26. package/lib/exercises/math/dataRepresentations/pieChartReading.d.ts.map +1 -1
  27. package/lib/exercises/math/derivation/tangent/derivativeTangentEquationReading.d.ts.map +1 -1
  28. package/lib/exercises/math/derivation/variations/index.d.ts +1 -0
  29. package/lib/exercises/math/derivation/variations/index.d.ts.map +1 -1
  30. package/lib/exercises/math/derivation/variations/index.js +1 -0
  31. package/lib/exercises/math/derivation/variations/thirdDegreeDerivativeVariation.d.ts +10 -0
  32. package/lib/exercises/math/derivation/variations/thirdDegreeDerivativeVariation.d.ts.map +1 -0
  33. package/lib/exercises/math/derivation/variations/thirdDegreeDerivativeVariation.js +201 -0
  34. package/lib/exercises/math/functions/basics/graphicInequationAffine.d.ts.map +1 -1
  35. package/lib/exercises/math/functions/logarithm/index.d.ts +1 -0
  36. package/lib/exercises/math/functions/logarithm/index.d.ts.map +1 -1
  37. package/lib/exercises/math/functions/logarithm/index.js +1 -0
  38. package/lib/exercises/math/functions/logarithm/powerEquation.d.ts +11 -0
  39. package/lib/exercises/math/functions/logarithm/powerEquation.d.ts.map +1 -0
  40. package/lib/exercises/math/functions/logarithm/powerEquation.js +148 -0
  41. package/lib/exercises/math/functions/trinoms/parabole/paraboleExpressionReading.d.ts.map +1 -1
  42. package/lib/exercises/math/functions/trinoms/roots/rootsReading.d.ts.map +1 -1
  43. package/lib/exercises/math/functions/trinoms/roots/rootsReading.js +28 -5
  44. package/lib/exercises/math/functions/variations/varTableExtremaReading.d.ts.map +1 -1
  45. package/lib/exercises/math/geometry/angles/recognizeAngleType.d.ts.map +1 -1
  46. package/lib/exercises/math/geometry/cartesian/placeAPoint.d.ts.map +1 -1
  47. package/lib/exercises/math/geometry/cartesian/placeAPoint.js +14 -0
  48. package/lib/exercises/math/geometry/cartesian/readAbscissOnLine.d.ts.map +1 -1
  49. package/lib/exercises/math/geometry/cartesian/readAbscissOnSemiLine.d.ts.map +1 -1
  50. package/lib/exercises/math/geometry/euclidian/pythagoreOrThales.d.ts.map +1 -1
  51. package/lib/exercises/math/geometry/lines/linesRelativePositions.d.ts.map +1 -1
  52. package/lib/exercises/math/geometry/quadrilaterals/parallelogramAngles.d.ts.map +1 -1
  53. package/lib/exercises/math/geometry/quadrilaterals/quadrilateralRecognition.d.ts.map +1 -1
  54. package/lib/exercises/math/geometry/thales/thalesCalcul.d.ts.map +1 -1
  55. package/lib/exercises/math/geometry/triangles/triangleNature.d.ts.map +1 -1
  56. package/lib/exercises/math/geometry/triangles/triangleThirdAngleValue.d.ts.map +1 -1
  57. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.d.ts.map +1 -1
  58. package/lib/exercises/math/percent/evolutions/evolutionRateFromValues.d.ts.map +1 -1
  59. package/lib/exercises/math/percent/evolutions/findEndValueAfterEvolution.d.ts.map +1 -1
  60. package/lib/exercises/math/percent/evolutions/findStartValueAfterEvolution.d.ts.map +1 -1
  61. package/lib/exercises/math/percent/populationEffectifFromSubPopulation.d.ts.map +1 -1
  62. package/lib/exercises/math/percent/subPopulationEffectifFromPercent.d.ts.map +1 -1
  63. package/lib/exercises/math/sequences/arithmetic/arithmeticFindAntecedent.d.ts +9 -0
  64. package/lib/exercises/math/sequences/arithmetic/arithmeticFindAntecedent.d.ts.map +1 -0
  65. package/lib/exercises/math/sequences/arithmetic/arithmeticFindAntecedent.js +110 -0
  66. package/lib/exercises/math/sequences/arithmetic/index.d.ts +1 -0
  67. package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
  68. package/lib/exercises/math/sequences/arithmetic/index.js +1 -0
  69. package/lib/exercises/math/spaceGeometry/basis/spaceCoordinatesInPrism.d.ts.map +1 -1
  70. package/lib/exercises/math/trigonometry/arcLength.d.ts.map +1 -1
  71. package/lib/exercises/math/trigonometry/basicEquationCos.d.ts.map +1 -1
  72. package/lib/exercises/math/trigonometry/basicEquationSin.d.ts.map +1 -1
  73. package/lib/exercises/math/trigonometry/basicTrigoSystemEquation.d.ts.map +1 -1
  74. package/lib/exercises/math/trigonometry/degreeToRadians.d.ts.map +1 -1
  75. package/lib/exercises/math/trigonometry/mainAngleMeasure.d.ts.map +1 -1
  76. package/lib/index.d.ts +25 -0
  77. package/lib/index.d.ts.map +1 -1
  78. package/lib/tree/nodes/equations/equalNode.d.ts +1 -1
  79. package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -1
  80. package/lib/tree/nodes/equations/equalNode.js +5 -5
  81. package/package.json +1 -1
@@ -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;AAE/D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ebraicNode>): EqualNode;
39
39
  isVerified(): boolean;
40
40
  }
41
- export declare const equationResolutionTex: (a: AlgebraicNode, b: AlgebraicNode, c: AlgebraicNode, d: AlgebraicNode) => string | string[];
41
+ export declare const equationResolutionTex: (a: AlgebraicNode, b: AlgebraicNode, c: AlgebraicNode, d: AlgebraicNode, str__var?: string) => string | string[];
42
42
  export {};
43
43
  //# sourceMappingURL=equalNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"equalNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/equations/equalNode.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAEL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAQ/B,eAAO,MAAM,KAAK,MACb,aAAa,GAAG,MAAM,GAAG,MAAM,KAC/B,aAAa,GAAG,MAAM,GAAG,MAAM,cAOnC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC;IAClB,SAAS,EAAE,eAAe,CAAC;IAC3B,UAAU,EAAE,eAAe,CAAC;IAC5B,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,8BAAsB,oBAAoB;IACxC,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,oBAAoB,GAAG,SAAS;CAOrE;AAED,eAAO,MAAM,WAAW,SAAU,aAAa,KAAG,IAAI,IAAI,SACzB,CAAC;AAElC,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AACF,qBAAa,SAAU,YAAW,aAAa;IAC7C,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,aAAa,CAAC;IAC1B,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C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,MAAM;IAGvE,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,SAAS;IAMpE,UAAU;CAIX;AAED,eAAO,MAAM,qBAAqB,MAC7B,aAAa,KACb,aAAa,KACb,aAAa,KACb,aAAa,aACN,MAAM,sBA2DjB,CAAC"}
@@ -198,7 +198,7 @@ export class EqualNode {
198
198
  return this.leftChild.simplify().equals(this.rightChild.simplify());
199
199
  }
200
200
  }
201
- export const equationResolutionTex = (a, b, c, d) => {
201
+ export const equationResolutionTex = (a, b, c, d, str__var = "x") => {
202
202
  //(+-a)x(+-b) = (+-c)x(+-d)
203
203
  const steps = [];
204
204
  const iteration = (a, b, c, d) => {
@@ -210,24 +210,24 @@ export const equationResolutionTex = (a, b, c, d) => {
210
210
  //ax = d
211
211
  if (aEv === 1) {
212
212
  //x = d
213
- steps.push(`x=${d.toTex()}`);
213
+ steps.push(`${str__var}=${d.toTex()}`);
214
214
  return;
215
215
  }
216
216
  else {
217
217
  //ax = d
218
- steps.push(`${multiply(a, "x").toTex()}=${d.toTex()}`);
218
+ steps.push(`${multiply(a, str__var).toTex()}=${d.toTex()}`);
219
219
  iteration((1).toTree(), (0).toTree(), (0).toTree(), frac(d, a).simplify());
220
220
  }
221
221
  }
222
222
  else {
223
- steps.push(`${monom(a, 1).toTex()}=${add(monom(c, 1), d).toTex()}`);
223
+ steps.push(`${monom(a, 1, { variable: str__var }).toTex()}=${add(monom(c, 1, { variable: str__var }), d).toTex()}`);
224
224
  //ax = c!x + d
225
225
  iteration(substract(a, c).simplify(), (0).toTree(), (0).toTree(), d);
226
226
  }
227
227
  }
228
228
  else {
229
229
  //ax + b! = cx + d
230
- steps.push(`${add(multiply(a, "x"), b).simplify().toTex()}=${add(multiply(c, "x"), d)
230
+ steps.push(`${add(multiply(a, str__var), b).simplify().toTex()}=${add(multiply(c, str__var), d)
231
231
  .simplify()
232
232
  .toTex()}`);
233
233
  iteration(a, (0).toTree(), c, substract(d, b).simplify());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.108",
4
+ "version": "3.0.109",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [