math-exercises 2.2.13 → 2.2.15

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 (70) hide show
  1. package/lib/exercises/exercise.d.ts +2 -1
  2. package/lib/exercises/exercise.d.ts.map +1 -1
  3. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.d.ts.map +1 -1
  4. package/lib/exercises/math/calcul/arithmetics/commonDivisorsList.js +9 -3
  5. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -1
  6. package/lib/exercises/math/calcul/fractions/fractionAndIntegerDivision.js +12 -8
  7. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -1
  8. package/lib/exercises/math/calcul/fractions/fractionAndIntegerProduct.js +6 -2
  9. package/lib/exercises/math/calcul/fractions/fractionsDivision.d.ts.map +1 -1
  10. package/lib/exercises/math/calcul/fractions/fractionsDivision.js +10 -4
  11. package/lib/exercises/math/calcul/fractions/fractionsProduct.d.ts.map +1 -1
  12. package/lib/exercises/math/calcul/fractions/fractionsProduct.js +6 -2
  13. package/lib/exercises/math/calcul/ordering/framing.d.ts +9 -0
  14. package/lib/exercises/math/calcul/ordering/framing.d.ts.map +1 -1
  15. package/lib/exercises/math/calcul/ordering/framing.js +142 -192
  16. package/lib/exercises/math/calcul/ordering/index.d.ts +1 -0
  17. package/lib/exercises/math/calcul/ordering/index.d.ts.map +1 -1
  18. package/lib/exercises/math/calcul/ordering/index.js +1 -1
  19. package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts.map +1 -1
  20. package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +4 -2
  21. package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -1
  22. package/lib/exercises/math/calcul/proportionality/scaleUsage.js +4 -2
  23. package/lib/exercises/math/calcul/rounding/rounding.d.ts.map +1 -1
  24. package/lib/exercises/math/calcul/rounding/rounding.js +7 -3
  25. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -1
  26. package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +11 -5
  27. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -1
  28. package/lib/exercises/math/calculLitteral/distributivity/firstIdentity.js +14 -2
  29. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -1
  30. package/lib/exercises/math/calculLitteral/distributivity/secondIdentity.js +14 -2
  31. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -1
  32. package/lib/exercises/math/calculLitteral/distributivity/thirdIdentity.js +14 -2
  33. package/lib/exercises/math/calculLitteral/equation/equationSimpleSquare.js +1 -1
  34. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +1 -1
  35. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.d.ts.map +1 -1
  36. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq1.js +12 -2
  37. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.d.ts.map +1 -1
  38. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq2.js +12 -2
  39. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.d.ts.map +1 -1
  40. package/lib/exercises/math/calculLitteral/factorisation/factoIdRmq3.js +12 -2
  41. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.d.ts.map +1 -1
  42. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalForm.js +12 -2
  43. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.d.ts.map +1 -1
  44. package/lib/exercises/math/calculLitteral/factorisation/factorizeCanonicalFormWithSqrt.js +12 -4
  45. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -1
  46. package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +14 -2
  47. package/lib/exercises/math/functions/basics/imageFunction.d.ts.map +1 -1
  48. package/lib/exercises/math/functions/basics/imageFunction.js +4 -3
  49. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -1
  50. package/lib/exercises/math/geometry/vectors/scalarProductViaCoords.js +5 -1
  51. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts.map +1 -1
  52. package/lib/exercises/math/geometry/vectors/vectorCoordinatesFromTwoPoints.js +5 -3
  53. package/lib/exercises/math/percent/applyPercent.d.ts.map +1 -1
  54. package/lib/exercises/math/percent/applyPercent.js +10 -2
  55. package/lib/exercises/math/percent/averageEvolutionRate.d.ts.map +1 -1
  56. package/lib/exercises/math/percent/averageEvolutionRate.js +9 -4
  57. package/lib/exercises/math/percent/cmToEvolution.d.ts.map +1 -1
  58. package/lib/exercises/math/percent/cmToEvolution.js +3 -1
  59. package/lib/exercises/math/percent/globalPercent.d.ts.map +1 -1
  60. package/lib/exercises/math/percent/globalPercent.js +5 -3
  61. package/lib/exercises/math/percent/htToTTC.js +1 -1
  62. package/lib/exercises/math/percent/ttcToHT.js +1 -1
  63. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.d.ts.map +1 -1
  64. package/lib/exercises/math/spaceGeometry/vectors/spaceVectorCoordinatesFromPoints.js +3 -1
  65. package/lib/index.d.ts +5 -0
  66. package/lib/index.d.ts.map +1 -1
  67. package/lib/types/keyProps.d.ts +1 -2
  68. package/lib/types/keyProps.d.ts.map +1 -1
  69. package/lib/utils/alignTex.js +2 -2
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"keyProps.d.ts","sourceRoot":"","sources":["../../src/types/keyProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACjC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AACF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,GAAG,KAAK,GAAG,WAAW,GAAG,WAAW,CAAC;IACpD,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACtD"}
1
+ {"version":3,"file":"keyProps.d.ts","sourceRoot":"","sources":["../../src/types/keyProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IACjC,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;CAC/C,CAAC;AACF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,GAAG,KAAK,GAAG,WAAW,GAAG,WAAW,CAAC;IACpD,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.alignTex = void 0;
4
4
  function alignTex(arr) {
5
5
  let alignements = "r";
6
- if (typeof arr !== "string") {
7
- for (let i = 0; i < arr.length - 2; i++) {
6
+ if (typeof arr !== "string" && arr[0].length > 2) {
7
+ for (let i = 0; i < arr[0].length - 2; i++) {
8
8
  alignements += "c";
9
9
  }
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-exercises",
3
- "version": "2.2.13",
3
+ "version": "2.2.15",
4
4
  "description": "Math exercises generator for middle school and high school",
5
5
  "main": "lib/index.js",
6
6
  "files": [