math-exercises 3.0.213 → 3.0.215

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 (267) hide show
  1. package/lib/exercises/math/arithmetic/findLeftInHugeNumberDivision.d.ts +9 -0
  2. package/lib/exercises/math/arithmetic/findLeftInHugeNumberDivision.d.ts.map +1 -0
  3. package/lib/exercises/math/arithmetic/findLeftInHugeNumberDivision.js +194 -0
  4. package/lib/exercises/math/arithmetic/findMissingNumberToMakeNumberDivisibleBy9.d.ts +8 -0
  5. package/lib/exercises/math/arithmetic/findMissingNumberToMakeNumberDivisibleBy9.d.ts.map +1 -0
  6. package/lib/exercises/math/arithmetic/findMissingNumberToMakeNumberDivisibleBy9.js +121 -0
  7. package/lib/exercises/math/arithmetic/hasDiophantianEquationSolution.js +4 -4
  8. package/lib/exercises/math/arithmetic/index.d.ts +7 -0
  9. package/lib/exercises/math/arithmetic/index.d.ts.map +1 -1
  10. package/lib/exercises/math/arithmetic/index.js +7 -0
  11. package/lib/exercises/math/arithmetic/isBigNumberPrime.d.ts +7 -0
  12. package/lib/exercises/math/arithmetic/isBigNumberPrime.d.ts.map +1 -0
  13. package/lib/exercises/math/arithmetic/isBigNumberPrime.js +107 -0
  14. package/lib/exercises/math/arithmetic/numberOfEndingZerosOfBigProduct.d.ts +8 -0
  15. package/lib/exercises/math/arithmetic/numberOfEndingZerosOfBigProduct.d.ts.map +1 -0
  16. package/lib/exercises/math/arithmetic/numberOfEndingZerosOfBigProduct.js +139 -0
  17. package/lib/exercises/math/arithmetic/pgcdFromEuclid.d.ts +8 -0
  18. package/lib/exercises/math/arithmetic/pgcdFromEuclid.d.ts.map +1 -0
  19. package/lib/exercises/math/arithmetic/pgcdFromEuclid.js +123 -0
  20. package/lib/exercises/math/arithmetic/solveDiophantianEquationByUsingPrimality.d.ts +7 -0
  21. package/lib/exercises/math/arithmetic/solveDiophantianEquationByUsingPrimality.d.ts.map +1 -0
  22. package/lib/exercises/math/arithmetic/solveDiophantianEquationByUsingPrimality.js +117 -0
  23. package/lib/exercises/math/arithmetic/whichDayInXDays.d.ts +8 -0
  24. package/lib/exercises/math/arithmetic/whichDayInXDays.d.ts.map +1 -0
  25. package/lib/exercises/math/arithmetic/whichDayInXDays.js +81 -0
  26. package/lib/exercises/math/calcul/fractions/fractionsSumFillInTheBlank.d.ts +15 -0
  27. package/lib/exercises/math/calcul/fractions/fractionsSumFillInTheBlank.d.ts.map +1 -0
  28. package/lib/exercises/math/calcul/fractions/fractionsSumFillInTheBlank.js +256 -0
  29. package/lib/exercises/math/calcul/fractions/index.d.ts +1 -0
  30. package/lib/exercises/math/calcul/fractions/index.d.ts.map +1 -1
  31. package/lib/exercises/math/calcul/fractions/index.js +1 -0
  32. package/lib/exercises/math/calcul/index.d.ts +1 -0
  33. package/lib/exercises/math/calcul/index.d.ts.map +1 -1
  34. package/lib/exercises/math/calcul/index.js +1 -0
  35. package/lib/exercises/math/calcul/mentalCaluls/index.d.ts +3 -0
  36. package/lib/exercises/math/calcul/mentalCaluls/index.d.ts.map +1 -1
  37. package/lib/exercises/math/calcul/mentalCaluls/index.js +3 -0
  38. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication101AndFriends.d.ts +10 -0
  39. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication101AndFriends.d.ts.map +1 -0
  40. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication101AndFriends.js +264 -0
  41. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication11AndFriends.d.ts +10 -0
  42. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication11AndFriends.d.ts.map +1 -0
  43. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplication11AndFriends.js +264 -0
  44. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationTable.d.ts +11 -0
  45. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationTable.d.ts.map +1 -0
  46. package/lib/exercises/math/calcul/mentalCaluls/mentalMultiplicationTable.js +141 -0
  47. package/lib/exercises/math/calcul/ratio/index.d.ts +1 -0
  48. package/lib/exercises/math/calcul/ratio/index.d.ts.map +1 -1
  49. package/lib/exercises/math/calcul/ratio/index.js +1 -0
  50. package/lib/exercises/math/calcul/ratio/partsUsingRatio.d.ts +13 -0
  51. package/lib/exercises/math/calcul/ratio/partsUsingRatio.d.ts.map +1 -0
  52. package/lib/exercises/math/calcul/ratio/partsUsingRatio.js +237 -0
  53. package/lib/exercises/math/calcul/relatives/index.d.ts +2 -0
  54. package/lib/exercises/math/calcul/relatives/index.d.ts.map +1 -0
  55. package/lib/exercises/math/calcul/relatives/index.js +1 -0
  56. package/lib/exercises/math/calcul/relatives/relativesAddAndSub.d.ts +17 -0
  57. package/lib/exercises/math/calcul/relatives/relativesAddAndSub.d.ts.map +1 -0
  58. package/lib/exercises/math/calcul/relatives/relativesAddAndSub.js +448 -0
  59. package/lib/exercises/math/calculLitteral/factorisation/factoByXK.d.ts +10 -0
  60. package/lib/exercises/math/calculLitteral/factorisation/factoByXK.d.ts.map +1 -0
  61. package/lib/exercises/math/calculLitteral/factorisation/factoByXK.js +190 -0
  62. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts +1 -0
  63. package/lib/exercises/math/calculLitteral/factorisation/index.d.ts.map +1 -1
  64. package/lib/exercises/math/calculLitteral/factorisation/index.js +1 -0
  65. package/lib/exercises/math/complex/algebraic/addComplex.d.ts +10 -0
  66. package/lib/exercises/math/complex/algebraic/addComplex.d.ts.map +1 -0
  67. package/lib/exercises/math/complex/algebraic/addComplex.js +125 -0
  68. package/lib/exercises/math/complex/algebraic/conjugateComplex.d.ts +8 -0
  69. package/lib/exercises/math/complex/algebraic/conjugateComplex.d.ts.map +1 -0
  70. package/lib/exercises/math/complex/algebraic/conjugateComplex.js +105 -0
  71. package/lib/exercises/math/complex/algebraic/conjugateDivideComplex.d.ts +8 -0
  72. package/lib/exercises/math/complex/algebraic/conjugateDivideComplex.d.ts.map +1 -0
  73. package/lib/exercises/math/complex/algebraic/conjugateDivideComplex.js +137 -0
  74. package/lib/exercises/math/complex/algebraic/conjugateMultiplyComplex.d.ts +8 -0
  75. package/lib/exercises/math/complex/algebraic/conjugateMultiplyComplex.d.ts.map +1 -0
  76. package/lib/exercises/math/complex/algebraic/conjugateMultiplyComplex.js +116 -0
  77. package/lib/exercises/math/complex/algebraic/divideComplex.d.ts +8 -0
  78. package/lib/exercises/math/complex/algebraic/divideComplex.d.ts.map +1 -0
  79. package/lib/exercises/math/complex/algebraic/divideComplex.js +128 -0
  80. package/lib/exercises/math/complex/algebraic/index.d.ts +11 -0
  81. package/lib/exercises/math/complex/algebraic/index.d.ts.map +1 -0
  82. package/lib/exercises/math/complex/algebraic/index.js +10 -0
  83. package/lib/exercises/math/complex/algebraic/inverseComplex.d.ts +8 -0
  84. package/lib/exercises/math/complex/algebraic/inverseComplex.d.ts.map +1 -0
  85. package/lib/exercises/math/complex/algebraic/inverseComplex.js +95 -0
  86. package/lib/exercises/math/complex/algebraic/linearCombinaisonComplex.d.ts +10 -0
  87. package/lib/exercises/math/complex/algebraic/linearCombinaisonComplex.d.ts.map +1 -0
  88. package/lib/exercises/math/complex/algebraic/linearCombinaisonComplex.js +105 -0
  89. package/lib/exercises/math/complex/algebraic/moduloFromAlgebraicComplex.d.ts +8 -0
  90. package/lib/exercises/math/complex/algebraic/moduloFromAlgebraicComplex.d.ts.map +1 -0
  91. package/lib/exercises/math/complex/algebraic/moduloFromAlgebraicComplex.js +93 -0
  92. package/lib/exercises/math/complex/algebraic/mutiplyComplex.d.ts +8 -0
  93. package/lib/exercises/math/complex/algebraic/mutiplyComplex.d.ts.map +1 -0
  94. package/lib/exercises/math/complex/algebraic/mutiplyComplex.js +106 -0
  95. package/lib/exercises/math/complex/algebraic/reAndIm.d.ts +9 -0
  96. package/lib/exercises/math/complex/algebraic/reAndIm.d.ts.map +1 -0
  97. package/lib/exercises/math/complex/algebraic/reAndIm.js +92 -0
  98. package/lib/exercises/math/complex/geometric/complexAlgebraicFromModuloAndArg.d.ts +9 -0
  99. package/lib/exercises/math/complex/geometric/complexAlgebraicFromModuloAndArg.d.ts.map +1 -0
  100. package/lib/exercises/math/complex/geometric/complexAlgebraicFromModuloAndArg.js +151 -0
  101. package/lib/exercises/math/complex/geometric/complexDistance.d.ts +11 -0
  102. package/lib/exercises/math/complex/geometric/complexDistance.d.ts.map +1 -0
  103. package/lib/exercises/math/complex/geometric/complexDistance.js +125 -0
  104. package/lib/exercises/math/complex/geometric/complexGeomAffixAlgFromPoint.d.ts +9 -0
  105. package/lib/exercises/math/complex/geometric/complexGeomAffixAlgFromPoint.d.ts.map +1 -0
  106. package/lib/exercises/math/complex/geometric/complexGeomAffixAlgFromPoint.js +326 -0
  107. package/lib/exercises/math/complex/geometric/complexGeomAffixExpFromCenteredRegularPolygon.d.ts +10 -0
  108. package/lib/exercises/math/complex/geometric/complexGeomAffixExpFromCenteredRegularPolygon.d.ts.map +1 -0
  109. package/lib/exercises/math/complex/geometric/complexGeomAffixExpFromCenteredRegularPolygon.js +459 -0
  110. package/lib/exercises/math/complex/geometric/complexGeomAffixExpFromPoint.d.ts +14 -0
  111. package/lib/exercises/math/complex/geometric/complexGeomAffixExpFromPoint.d.ts.map +1 -0
  112. package/lib/exercises/math/complex/geometric/complexGeomAffixExpFromPoint.js +539 -0
  113. package/lib/exercises/math/complex/geometric/complexGeomAffixTrigFromPoint.d.ts +13 -0
  114. package/lib/exercises/math/complex/geometric/complexGeomAffixTrigFromPoint.d.ts.map +1 -0
  115. package/lib/exercises/math/complex/geometric/complexGeomAffixTrigFromPoint.js +485 -0
  116. package/lib/exercises/math/complex/geometric/complexGeomApproxOfCosArgOrSinArgFromPointAndAffixTrig.d.ts +12 -0
  117. package/lib/exercises/math/complex/geometric/complexGeomApproxOfCosArgOrSinArgFromPointAndAffixTrig.d.ts.map +1 -0
  118. package/lib/exercises/math/complex/geometric/complexGeomApproxOfCosArgOrSinArgFromPointAndAffixTrig.js +224 -0
  119. package/lib/exercises/math/complex/geometric/complexGeomArgumentOfFracCBABFromFigure.d.ts +11 -0
  120. package/lib/exercises/math/complex/geometric/complexGeomArgumentOfFracCBABFromFigure.d.ts.map +1 -0
  121. package/lib/exercises/math/complex/geometric/complexGeomArgumentOfFracCBABFromFigure.js +448 -0
  122. package/lib/exercises/math/complex/geometric/complexGeomFindPointFromAffixExp.d.ts +11 -0
  123. package/lib/exercises/math/complex/geometric/complexGeomFindPointFromAffixExp.d.ts.map +1 -0
  124. package/lib/exercises/math/complex/geometric/complexGeomFindPointFromAffixExp.js +223 -0
  125. package/lib/exercises/math/complex/geometric/complexGeomFindPointFromPowerOfUnitRootFromFigure.d.ts +11 -0
  126. package/lib/exercises/math/complex/geometric/complexGeomFindPointFromPowerOfUnitRootFromFigure.d.ts.map +1 -0
  127. package/lib/exercises/math/complex/geometric/complexGeomFindPointFromPowerOfUnitRootFromFigure.js +348 -0
  128. package/lib/exercises/math/complex/geometric/complexGeomPlaceAffixPoint.d.ts +8 -0
  129. package/lib/exercises/math/complex/geometric/complexGeomPlaceAffixPoint.d.ts.map +1 -0
  130. package/lib/exercises/math/complex/geometric/complexGeomPlaceAffixPoint.js +86 -0
  131. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZAPlusZ.d.ts +11 -0
  132. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZAPlusZ.d.ts.map +1 -0
  133. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZAPlusZ.js +311 -0
  134. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZATimesZ.d.ts +11 -0
  135. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZATimesZ.d.ts.map +1 -0
  136. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZATimesZ.js +345 -0
  137. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZATransformed.d.ts +16 -0
  138. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZATransformed.d.ts.map +1 -0
  139. package/lib/exercises/math/complex/geometric/complexGeomPlacePointFromZATransformed.js +729 -0
  140. package/lib/exercises/math/complex/geometric/complexGeomPlacePointWithAffixInU.d.ts +11 -0
  141. package/lib/exercises/math/complex/geometric/complexGeomPlacePointWithAffixInU.d.ts.map +1 -0
  142. package/lib/exercises/math/complex/geometric/complexGeomPlacePointWithAffixInU.js +253 -0
  143. package/lib/exercises/math/complex/geometric/index.d.ts +12 -0
  144. package/lib/exercises/math/complex/geometric/index.d.ts.map +1 -0
  145. package/lib/exercises/math/complex/geometric/index.js +19 -0
  146. package/lib/exercises/math/complex/index.d.ts +4 -10
  147. package/lib/exercises/math/complex/index.d.ts.map +1 -1
  148. package/lib/exercises/math/complex/index.js +4 -11
  149. package/lib/exercises/math/complex/polynomials/factorizePolynomialInC.d.ts +10 -0
  150. package/lib/exercises/math/complex/polynomials/factorizePolynomialInC.d.ts.map +1 -0
  151. package/lib/exercises/math/complex/polynomials/factorizePolynomialInC.js +176 -0
  152. package/lib/exercises/math/complex/polynomials/index.d.ts +4 -0
  153. package/lib/exercises/math/complex/polynomials/index.d.ts.map +1 -0
  154. package/lib/exercises/math/complex/polynomials/index.js +3 -0
  155. package/lib/exercises/math/complex/polynomials/solveSecondDegreeInComplex.d.ts +10 -0
  156. package/lib/exercises/math/complex/polynomials/solveSecondDegreeInComplex.d.ts.map +1 -0
  157. package/lib/exercises/math/complex/polynomials/solveSecondDegreeInComplex.js +190 -0
  158. package/lib/exercises/math/complex/polynomials/solveZSquareEqualsA.d.ts +11 -0
  159. package/lib/exercises/math/complex/polynomials/solveZSquareEqualsA.d.ts.map +1 -0
  160. package/lib/exercises/math/complex/polynomials/solveZSquareEqualsA.js +158 -0
  161. package/lib/exercises/math/complex/unitRoots/giveNUnitRoot.d.ts +7 -0
  162. package/lib/exercises/math/complex/unitRoots/giveNUnitRoot.d.ts.map +1 -0
  163. package/lib/exercises/math/complex/unitRoots/giveNUnitRoot.js +122 -0
  164. package/lib/exercises/math/complex/unitRoots/giveOneSolutionToComplexPowNEqualsOne.d.ts +8 -0
  165. package/lib/exercises/math/complex/unitRoots/giveOneSolutionToComplexPowNEqualsOne.d.ts.map +1 -0
  166. package/lib/exercises/math/complex/unitRoots/giveOneSolutionToComplexPowNEqualsOne.js +138 -0
  167. package/lib/exercises/math/complex/unitRoots/index.d.ts +3 -0
  168. package/lib/exercises/math/complex/unitRoots/index.d.ts.map +1 -0
  169. package/lib/exercises/math/complex/unitRoots/index.js +2 -0
  170. package/lib/exercises/math/conversion/clock/clockReading.d.ts +12 -0
  171. package/lib/exercises/math/conversion/clock/clockReading.d.ts.map +1 -0
  172. package/lib/exercises/math/conversion/clock/clockReading.js +385 -0
  173. package/lib/exercises/math/conversion/clock/clockReadingPlusTimeOperation.d.ts +2 -0
  174. package/lib/exercises/math/conversion/clock/clockReadingPlusTimeOperation.d.ts.map +1 -0
  175. package/lib/exercises/math/conversion/clock/clockReadingPlusTimeOperation.js +521 -0
  176. package/lib/exercises/math/conversion/clock/clockWritingByManipulatingNeedles.d.ts +2 -0
  177. package/lib/exercises/math/conversion/clock/clockWritingByManipulatingNeedles.d.ts.map +1 -0
  178. package/lib/exercises/math/conversion/clock/clockWritingByManipulatingNeedles.js +359 -0
  179. package/lib/exercises/math/conversion/clock/dateTimeOperationAdd.d.ts +16 -0
  180. package/lib/exercises/math/conversion/clock/dateTimeOperationAdd.d.ts.map +1 -0
  181. package/lib/exercises/math/conversion/clock/dateTimeOperationAdd.js +319 -0
  182. package/lib/exercises/math/conversion/clock/index.d.ts +3 -0
  183. package/lib/exercises/math/conversion/clock/index.d.ts.map +1 -0
  184. package/lib/exercises/math/conversion/clock/index.js +4 -0
  185. package/lib/exercises/math/conversion/index.d.ts +1 -0
  186. package/lib/exercises/math/conversion/index.d.ts.map +1 -1
  187. package/lib/exercises/math/conversion/index.js +1 -0
  188. package/lib/exercises/math/geometry/angles/angleNatureFromFigure.d.ts +11 -0
  189. package/lib/exercises/math/geometry/angles/angleNatureFromFigure.d.ts.map +1 -0
  190. package/lib/exercises/math/geometry/angles/angleNatureFromFigure.js +233 -0
  191. package/lib/exercises/math/geometry/angles/angleNatureFromMeasure.d.ts +10 -0
  192. package/lib/exercises/math/geometry/angles/angleNatureFromMeasure.d.ts.map +1 -0
  193. package/lib/exercises/math/geometry/angles/angleNatureFromMeasure.js +137 -0
  194. package/lib/exercises/math/geometry/angles/index.d.ts +2 -0
  195. package/lib/exercises/math/geometry/angles/index.d.ts.map +1 -1
  196. package/lib/exercises/math/geometry/angles/index.js +2 -0
  197. package/lib/exercises/math/geometry/circles/buildCircleFromRadius.d.ts +9 -0
  198. package/lib/exercises/math/geometry/circles/buildCircleFromRadius.d.ts.map +1 -0
  199. package/lib/exercises/math/geometry/circles/buildCircleFromRadius.js +187 -0
  200. package/lib/exercises/math/geometry/circles/index.d.ts +1 -0
  201. package/lib/exercises/math/geometry/circles/index.d.ts.map +1 -1
  202. package/lib/exercises/math/geometry/circles/index.js +1 -0
  203. package/lib/exercises/math/geometry/lines/buildParallelFromLineAndPoint.d.ts +11 -0
  204. package/lib/exercises/math/geometry/lines/buildParallelFromLineAndPoint.d.ts.map +1 -0
  205. package/lib/exercises/math/geometry/lines/buildParallelFromLineAndPoint.js +154 -0
  206. package/lib/exercises/math/geometry/lines/buildPerpendicularFromLineAndPoint.d.ts +11 -0
  207. package/lib/exercises/math/geometry/lines/buildPerpendicularFromLineAndPoint.d.ts.map +1 -0
  208. package/lib/exercises/math/geometry/lines/buildPerpendicularFromLineAndPoint.js +157 -0
  209. package/lib/exercises/math/geometry/lines/index.d.ts +2 -0
  210. package/lib/exercises/math/geometry/lines/index.d.ts.map +1 -1
  211. package/lib/exercises/math/geometry/lines/index.js +2 -0
  212. package/lib/exercises/math/geometry/triangles/index.d.ts +2 -0
  213. package/lib/exercises/math/geometry/triangles/index.d.ts.map +1 -1
  214. package/lib/exercises/math/geometry/triangles/index.js +2 -1
  215. package/lib/exercises/math/geometry/triangles/traceHeightInTriangle.d.ts +13 -0
  216. package/lib/exercises/math/geometry/triangles/traceHeightInTriangle.d.ts.map +1 -0
  217. package/lib/exercises/math/geometry/triangles/traceHeightInTriangle.js +271 -0
  218. package/lib/exercises/math/geometry/triangles/traceMedianInTriangle.d.ts +8 -0
  219. package/lib/exercises/math/geometry/triangles/traceMedianInTriangle.d.ts.map +1 -1
  220. package/lib/exercises/math/geometry/triangles/traceMedianInTriangle.js +284 -53
  221. package/lib/exercises/math/geometry/vectors/constructions/index.d.ts +1 -0
  222. package/lib/exercises/math/geometry/vectors/constructions/index.d.ts.map +1 -1
  223. package/lib/exercises/math/geometry/vectors/constructions/index.js +1 -0
  224. package/lib/exercises/math/geometry/vectors/constructions/traceVectorSumFromVecs.d.ts +8 -0
  225. package/lib/exercises/math/geometry/vectors/constructions/traceVectorSumFromVecs.d.ts.map +1 -0
  226. package/lib/exercises/math/geometry/vectors/constructions/traceVectorSumFromVecs.js +165 -0
  227. package/lib/exercises/math/geometry/volumes/index.d.ts +1 -0
  228. package/lib/exercises/math/geometry/volumes/index.d.ts.map +1 -1
  229. package/lib/exercises/math/geometry/volumes/index.js +1 -0
  230. package/lib/exercises/math/geometry/volumes/volumeOfCylinder.d.ts +8 -0
  231. package/lib/exercises/math/geometry/volumes/volumeOfCylinder.d.ts.map +1 -0
  232. package/lib/exercises/math/geometry/volumes/volumeOfCylinder.js +157 -0
  233. package/lib/exercises/math/spaceGeometry/basis/index.d.ts +1 -0
  234. package/lib/exercises/math/spaceGeometry/basis/index.d.ts.map +1 -1
  235. package/lib/exercises/math/spaceGeometry/basis/index.js +1 -0
  236. package/lib/exercises/math/spaceGeometry/basis/spaceSegmentLengthInRectangularPrism.d.ts +18 -0
  237. package/lib/exercises/math/spaceGeometry/basis/spaceSegmentLengthInRectangularPrism.d.ts.map +1 -0
  238. package/lib/exercises/math/spaceGeometry/basis/spaceSegmentLengthInRectangularPrism.js +538 -0
  239. package/lib/exercises/math/trigonometry/formulas/trigoAdditionFormulaUsage.d.ts.map +1 -1
  240. package/lib/exercises/math/trigonometry/formulas/trigoAdditionFormulaUsage.js +6 -5
  241. package/lib/exercises/math/trigonometry/triangle/trigonometrySohcahtoaCalcul.js +1 -1
  242. package/lib/exercises/utils/geogebra/toolBarConstructor.d.ts +1 -0
  243. package/lib/exercises/utils/geogebra/toolBarConstructor.d.ts.map +1 -1
  244. package/lib/exercises/utils/geogebra/toolBarConstructor.js +2 -0
  245. package/lib/geogebra/parsers/geogebraParser.d.ts +3 -0
  246. package/lib/geogebra/parsers/geogebraParser.d.ts.map +1 -1
  247. package/lib/geogebra/parsers/geogebraParser.js +27 -0
  248. package/lib/index.d.ts +213 -23
  249. package/lib/index.d.ts.map +1 -1
  250. package/lib/latexTester.js +2 -0
  251. package/lib/math/geometry/angle.d.ts.map +1 -1
  252. package/lib/math/geometry/angle.js +3 -0
  253. package/lib/math/geometry/segment.d.ts +1 -1
  254. package/lib/math/geometry/segment.d.ts.map +1 -1
  255. package/lib/math/geometry/segment.js +5 -2
  256. package/lib/math/utils/geometry/angleBetweenPoints.d.ts +4 -0
  257. package/lib/math/utils/geometry/angleBetweenPoints.d.ts.map +1 -0
  258. package/lib/math/utils/geometry/angleBetweenPoints.js +58 -0
  259. package/lib/math/utils/geometry/angleNWSE.d.ts +3 -0
  260. package/lib/math/utils/geometry/angleNWSE.d.ts.map +1 -0
  261. package/lib/math/utils/geometry/angleNWSE.js +56 -0
  262. package/lib/tests/singleExo.test.d.ts.map +1 -1
  263. package/lib/tests/singleExo.test.js +2 -2
  264. package/lib/utils/strings/frenchDays.d.ts +2 -0
  265. package/lib/utils/strings/frenchDays.d.ts.map +1 -0
  266. package/lib/utils/strings/frenchDays.js +9 -0
  267. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -165,6 +165,15 @@ declare const mathExercises: (Exercise<{
165
165
  denum1: number;
166
166
  denum2: number;
167
167
  }, Record<string, string | boolean | string[]>> | Exercise<{
168
+ denomSrc: number;
169
+ denom: number;
170
+ numOperand: number;
171
+ numSum: number;
172
+ indexBlank: number;
173
+ }, {
174
+ allowNonIrreductible: boolean;
175
+ denom: string;
176
+ }> | Exercise<{
168
177
  numbers: number[];
169
178
  }, Record<string, string | boolean | string[]>> | Exercise<{
170
179
  rand: number;
@@ -204,6 +213,19 @@ declare const mathExercises: (Exercise<{
204
213
  a: number;
205
214
  b: number;
206
215
  }, Record<string, string | boolean | string[]>> | Exercise<{
216
+ numbers: number[];
217
+ }, {
218
+ number1Pool: string[];
219
+ number2Pool: string[];
220
+ }> | Exercise<{
221
+ numbers: number[];
222
+ }, {
223
+ factorPool: string[];
224
+ }> | Exercise<{
225
+ numbers: number[];
226
+ }, {
227
+ factorPool: string[];
228
+ }> | Exercise<{
207
229
  type: number;
208
230
  a: number;
209
231
  b: number;
@@ -402,12 +424,27 @@ declare const mathExercises: (Exercise<{
402
424
  indexPart: number;
403
425
  }, {
404
426
  ratioTypes: string[];
427
+ }> | Exercise<{
428
+ ratioType: string;
429
+ situationIndex: number;
430
+ total: number;
431
+ ratio: number[];
432
+ }, {
433
+ ratioTypes: string[];
405
434
  }> | Exercise<{
406
435
  num: number;
407
436
  denum: number;
408
437
  }, Record<string, string | boolean | string[]>> | Exercise<{
409
438
  a: number;
410
439
  b: number;
440
+ opType: string;
441
+ explicitWriting: boolean;
442
+ }, {
443
+ explicitWriting: string;
444
+ opType: string;
445
+ }> | Exercise<{
446
+ a: number;
447
+ b: number;
411
448
  }, Record<string, string | boolean | string[]>> | Exercise<{
412
449
  a: number;
413
450
  b: number;
@@ -644,6 +681,11 @@ declare const mathExercises: (Exercise<{
644
681
  d: number;
645
682
  k: number;
646
683
  isSubstract: boolean;
684
+ }, Record<string, string | boolean | string[]>> | Exercise<{
685
+ a: number;
686
+ k1: number;
687
+ b: number;
688
+ k2: number;
647
689
  }, Record<string, string | boolean | string[]>> | Exercise<{
648
690
  b: number;
649
691
  c: number;
@@ -819,6 +861,94 @@ declare const mathExercises: (Exercise<{
819
861
  }, {
820
862
  statementFormulaType: string;
821
863
  }> | Exercise<{
864
+ arg: number;
865
+ zTex: string;
866
+ reIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
867
+ imIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
868
+ }, Record<string, string | boolean | string[]>> | Exercise<{
869
+ rIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
870
+ thetaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
871
+ }, Record<string, string | boolean | string[]>> | Exercise<{
872
+ reIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
873
+ imIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
874
+ }, Record<string, string | boolean | string[]>> | Exercise<{
875
+ z1ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
876
+ z1ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
877
+ z2ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
878
+ z2ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
879
+ }, Record<string, string | boolean | string[]>> | Exercise<{
880
+ z1ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
881
+ z1ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
882
+ z2ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
883
+ z2ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
884
+ }, Record<string, string | boolean | string[]>> | Exercise<{
885
+ nodeIdsX: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
886
+ nodeIdsY: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
887
+ }, Record<string, string | boolean | string[]>> | Exercise<{
888
+ aReIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
889
+ aImIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
890
+ bReIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
891
+ bImIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
892
+ }, Record<string, string | boolean | string[]>> | Exercise<{
893
+ re: number;
894
+ im: number;
895
+ }, Record<string, string | boolean | string[]>> | Exercise<{
896
+ nodeIdsModule: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
897
+ nodeIdsArgument: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
898
+ isAngleInDegrees: boolean;
899
+ }, {
900
+ isAngleInDegrees: boolean;
901
+ }> | Exercise<{
902
+ pointIdsA: import("./math/geometry/point.js").PointIdentifiers;
903
+ nodeIdsModule: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
904
+ nodeIdsArgument: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
905
+ isCosAsked: boolean;
906
+ }, Record<string, string | boolean | string[]>> | Exercise<{
907
+ moduleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
908
+ argIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
909
+ }, Record<string, string | boolean | string[]>> | Exercise<{
910
+ nodeIdsModule: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
911
+ nodeIdsArgument: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
912
+ nodeIdsAngleBase: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
913
+ }, {
914
+ texAngleBase: string;
915
+ isShouldDisplayAngleBase: boolean;
916
+ }> | Exercise<{
917
+ nodeIdsModule: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
918
+ nodeIdsArgument: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
919
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
920
+ }, Record<string, string | boolean | string[]>> | Exercise<{
921
+ nbSides: number;
922
+ vFactor: number;
923
+ nodeIdsModule: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
924
+ }, Record<string, string | boolean | string[]>> | Exercise<{
925
+ nbSides: number;
926
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
927
+ indexTarget: number;
928
+ exponent: number;
929
+ }, Record<string, string | boolean | string[]>> | Exercise<{
930
+ typeSituation: string;
931
+ nodeIdsAffixExp: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
932
+ indexesOfPoints: number[];
933
+ letters: string[];
934
+ }, Record<string, string | boolean | string[]>> | Exercise<{
935
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
936
+ }, {
937
+ allowPositiveA: boolean;
938
+ }> | Exercise<{
939
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
940
+ bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
941
+ cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
942
+ }, Record<string, string | boolean | string[]>> | Exercise<{
943
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
944
+ z1ReIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
945
+ z1ImIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
946
+ }, Record<string, string | boolean | string[]>> | Exercise<{
947
+ n: number;
948
+ }, Record<string, string | boolean | string[]>> | Exercise<{
949
+ n: number;
950
+ a: number;
951
+ }, Record<string, string | boolean | string[]>> | Exercise<{
822
952
  z1Re: number;
823
953
  z1Im: number;
824
954
  z2Re: number;
@@ -853,27 +983,6 @@ declare const mathExercises: (Exercise<{
853
983
  re: number;
854
984
  im: number;
855
985
  isRe: boolean;
856
- }, Record<string, string | boolean | string[]>> | Exercise<{
857
- arg: number;
858
- zTex: string;
859
- reIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
860
- imIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
861
- }, Record<string, string | boolean | string[]>> | Exercise<{
862
- rIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
863
- thetaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
864
- }, Record<string, string | boolean | string[]>> | Exercise<{
865
- reIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
866
- imIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
867
- }, Record<string, string | boolean | string[]>> | Exercise<{
868
- z1ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
869
- z1ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
870
- z2ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
871
- z2ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
872
- }, Record<string, string | boolean | string[]>> | Exercise<{
873
- z1ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
874
- z1ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
875
- z2ModuleIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
876
- z2ArgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
877
986
  }, Record<string, string | boolean | string[]>> | Exercise<{
878
987
  randomUnitIndex: number;
879
988
  randomUnitInstructionIndex: number;
@@ -928,6 +1037,24 @@ declare const mathExercises: (Exercise<{
928
1037
  prefixPool: string[];
929
1038
  isToPow10: boolean;
930
1039
  isFromSymbol: boolean;
1040
+ }> | Exercise<{
1041
+ hours: number;
1042
+ minutes: number;
1043
+ }, {
1044
+ amPmType: string;
1045
+ }> | Exercise<{
1046
+ dateTimeStart: {
1047
+ day: number;
1048
+ hours: number;
1049
+ minutes: number;
1050
+ };
1051
+ dateTimeDuration: {
1052
+ day: number;
1053
+ hours: number;
1054
+ minutes: number;
1055
+ };
1056
+ }, {
1057
+ hoursMinutesType: string;
931
1058
  }> | Exercise<{
932
1059
  point: import("./math/geometry/point.js").PointIdentifiers;
933
1060
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -2678,6 +2805,8 @@ declare const mathExercises: (Exercise<{
2678
2805
  secondVectorPointsIndexes: number[];
2679
2806
  a: number;
2680
2807
  b: number;
2808
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2809
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
2681
2810
  }, Record<string, string | boolean | string[]>> | Exercise<{
2682
2811
  points: string[][];
2683
2812
  pointAskedIndex: number[];
@@ -2720,6 +2849,9 @@ declare const mathExercises: (Exercise<{
2720
2849
  width: number;
2721
2850
  height: number;
2722
2851
  depth: number;
2852
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2853
+ radius: number;
2854
+ height: number;
2723
2855
  }, Record<string, string | boolean | string[]>> | Exercise<{
2724
2856
  A: number[];
2725
2857
  B: number[];
@@ -2909,6 +3041,14 @@ declare const mathExercises: (Exercise<{
2909
3041
  angleTypes: ("alternes-internes" | "correspondants" | "alternes-externes" | "autres")[];
2910
3042
  isFakeDisplay: boolean;
2911
3043
  nbDigits: "0" | "1" | "2";
3044
+ }> | Exercise<{
3045
+ measure: number;
3046
+ }, {
3047
+ availableAngleNature: string;
3048
+ }> | Exercise<{
3049
+ angleIds: import("./math/geometry/angle.js").AngleIdentifiers;
3050
+ }, {
3051
+ availableAngleNature: string;
2912
3052
  }> | Exercise<{
2913
3053
  lines: {
2914
3054
  pointA: number[];
@@ -2995,6 +3135,17 @@ declare const mathExercises: (Exercise<{
2995
3135
  }, {
2996
3136
  withoutPerp: boolean;
2997
3137
  }> | Exercise<{
3138
+ lineIds: import("./math/geometry/line.js").LineIdentifiers;
3139
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
3140
+ indexPoint: number;
3141
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3142
+ lineIds: import("./math/geometry/line.js").LineIdentifiers;
3143
+ pointIds: import("./math/geometry/point.js").PointIdentifiers[];
3144
+ indexPoint: number;
3145
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3146
+ triangleIds: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
3147
+ strNameTriangle: string;
3148
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2998
3149
  triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
2999
3150
  type: number;
3000
3151
  useAngles: boolean;
@@ -3019,6 +3170,11 @@ declare const mathExercises: (Exercise<{
3019
3170
  triangleIds2: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
3020
3171
  factor: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3021
3172
  }, Record<string, string | boolean | string[]>> | Exercise<{
3173
+ triangleIds: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
3174
+ strNameTriangle: string;
3175
+ }, {
3176
+ heightType: string;
3177
+ }> | Exercise<{
3022
3178
  perimeter: number;
3023
3179
  askingX: boolean;
3024
3180
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -3053,6 +3209,10 @@ declare const mathExercises: (Exercise<{
3053
3209
  bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3054
3210
  cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3055
3211
  isAskingRadius: boolean;
3212
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3213
+ radius: number;
3214
+ isGivenDiameter: boolean;
3215
+ randPositionRadius: number;
3056
3216
  }, Record<string, string | boolean | string[]>> | Exercise<{
3057
3217
  coeffs: number[];
3058
3218
  to: "+\\infty" | "-\\infty";
@@ -3368,12 +3528,12 @@ declare const mathExercises: (Exercise<{
3368
3528
  }, Record<string, string | boolean | string[]>> | Exercise<{
3369
3529
  kind: "factor";
3370
3530
  a: number;
3371
- operator: "multiplication" | "division" | "soustraction" | "addition";
3531
+ operator: "addition" | "soustraction" | "multiplication" | "division";
3372
3532
  factor: number;
3373
3533
  } | {
3374
3534
  kind: "series";
3375
3535
  series: number[];
3376
- operator: "multiplication" | "division" | "soustraction" | "addition";
3536
+ operator: "addition" | "soustraction" | "multiplication" | "division";
3377
3537
  factor: number;
3378
3538
  }, Record<string, string | boolean | string[]>> | Exercise<{
3379
3539
  xValues: number[];
@@ -4415,6 +4575,16 @@ declare const mathExercises: (Exercise<{
4415
4575
  spacePointIdsBaseVecsEndPoint: import("./math/geometry/spacePoint.js").SpacePointIdentifiers[];
4416
4576
  spacePointIdsWrtBaseVecs: import("./math/geometry/spacePoint.js").SpacePointIdentifiers[];
4417
4577
  }, Record<string, string | boolean | string[]>> | Exercise<{
4578
+ rectangularPrismOrigin: import("./math/geometry/spacePoint.js").SpacePointIdentifiers;
4579
+ L: number;
4580
+ l: number;
4581
+ h: number;
4582
+ arrSegmentSpacePointIds: import("./math/geometry/spacePoint.js").SpacePointIdentifiers[];
4583
+ acceptedInputType: string;
4584
+ }, {
4585
+ acceptedInputType: string;
4586
+ nbComponents: string;
4587
+ }> | Exercise<{
4418
4588
  spacePointIds: import("./math/geometry/spacePoint.js").SpacePointIdentifiers;
4419
4589
  nodeIdsPlaneEquation: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
4420
4590
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -5759,6 +5929,26 @@ declare const mathExercises: (Exercise<{
5759
5929
  p: number;
5760
5930
  a: number;
5761
5931
  pow: number;
5932
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5933
+ currentDay: number;
5934
+ step: number;
5935
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5936
+ numbers: number[];
5937
+ missingIndex: number;
5938
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5939
+ mod: number;
5940
+ a: number;
5941
+ n: number;
5942
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5943
+ a: number;
5944
+ b: number;
5945
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5946
+ a: number;
5947
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5948
+ p: number;
5949
+ }, Record<string, string | boolean | string[]>> | Exercise<{
5950
+ a: number;
5951
+ b: number;
5762
5952
  }, Record<string, string | boolean | string[]>>)[];
5763
5953
  declare const pcExercises: (Exercise<{
5764
5954
  numbers: number[];
@@ -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,OAA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efined) {
243
243
  cmds.push(`SetLineThickness(${this.name}, ${opts?.thickness})`);
244
244
  }
245
+ if (opts?.decoration !== undefined) {
246
+ cmds.push(`SetDecoration(${this.name}, ${opts?.decoration})`);
247
+ }
245
248
  return cmds;
246
249
  }
247
250
  }
@@ -39,7 +39,7 @@ export declare class Segment {
39
39
  color?: string;
40
40
  size?: "scriptsize" | "tiny" | "small" | "large";
41
41
  }): string[];
42
- toGGBCommands(shouldBuildPoints: boolean, { isFixed, showLabel, showUnderlyingPointsLabel, showLength, style, thickness, }?: ToGGBCommandsProps): string[];
42
+ toGGBCommands(shouldBuildPoints: boolean, { isFixed, isSelectionnable, showLabel, showUnderlyingPointsLabel, showLength, style, thickness, color, }?: ToGGBCommandsProps): string[];
43
43
  includes(point: Point): boolean;
44
44
  toVector(): import("./vector.js").Vector;
45
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"segment.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAE1F,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EACL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAE,KAAK,EAAoB,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,CAAC,EAAE,uBAAuB,CAAC;CACjC,CAAC;AACF,8BAAsB,kBAAkB;IACtC,MAAM,CAAC,MAAM;IAOb,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,kBAAkB;CAYvD;AAED,KAAK,uBAAuB,GAAG;IAC7B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AACF,KAAK,YAAY,GAAG;IAAE,UAAU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AAQ;CAGT"}
@@ -89,12 +89,15 @@ export class Segment {
89
89
  }
90
90
  return cmds;
91
91
  }
92
- toGGBCommands(shouldBuildPoints, { isFixed = true, showLabel = false, showUnderlyingPointsLabel = true, showLength = false, style, thickness, } = {}) {
92
+ toGGBCommands(shouldBuildPoints, { isFixed = true, isSelectionnable = true, showLabel = false, showUnderlyingPointsLabel = true, showLength = false, style, thickness, color, } = {}) {
93
93
  const commands = [
94
94
  `${this.ggbName}=Segment(${this.pointA.name},${this.pointB.name})`,
95
- `SetFixed(${this.ggbName},${isFixed ? "true" : "false"},${isFixed ? "false" : "true"})`,
95
+ `SetFixed(${this.ggbName},${isFixed ? "true" : "false"},${isSelectionnable ? "true" : "false"})`,
96
96
  `ShowLabel(${this.ggbName},${showLabel ? "true" : "false"})`,
97
97
  ];
98
+ if (color !== undefined) {
99
+ commands.push(`SetColor(${this.ggbName}, ${color})`);
100
+ }
98
101
  if (style !== undefined) {
99
102
  commands.push(`SetLineStyle(${this.ggbName}, ${style})`);
100
103
  }
@@ -0,0 +1,4 @@
1
+ import { Point } from "../../../math/geometry/point.js";
2
+ export declare const valueAngleBetweenPoints: (point1: Point, pointCenter: Point, point2: Point) => number;
3
+ export declare const exactAngleCandidate: (valueAngle: number) => import("../../../tree/nodes/numbers/constantNode.js").ConstantNode | import("../../../tree/nodes/numbers/numberNode.js").NumberNode | import("../../../tree/nodes/operators/multiplyNode.js").MultiplyNode;
4
+ //# sourceMappingURL=angleBetweenPoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angleBetweenPoints.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/geometry/angleBetweenPoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AASrD,eAAO,MAAM,uBAAuB,GAClC,QAAQ,KAAK,EACb,aAAa,KAAK,EAClB,QAAQ,KAAK,WAoCd,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,YAAY,MAAM,4MAoCrD,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { SpaceVector } from "../../../math/geometry/spaceVector.js";
2
+ import { VectorConstructor } from "../../../math/geometry/vector.js";
3
+ import { opposite } from "../../../tree/nodes/functions/oppositeNode.js";
4
+ import { PiNode } from "../../../tree/nodes/numbers/piNode.js";
5
+ import { frac } from "../../../tree/nodes/operators/fractionNode.js";
6
+ import { multiply } from "../../../tree/nodes/operators/multiplyNode.js";
7
+ import { NodeComparator } from "../../../tree/utilities/nodeComparator.js";
8
+ export const valueAngleBetweenPoints = (point1, pointCenter, point2) => {
9
+ const vec1 = VectorConstructor.fromPoints(pointCenter, point1);
10
+ const vec2 = VectorConstructor.fromPoints(pointCenter, point2);
11
+ const [nodeNorm1, nodeNorm2] = [vec1, vec2].map((vec) => vec.getNorm());
12
+ const nodeScalarProduct = vec1.scalarProduct(vec2);
13
+ const nodeCosAngle = frac(nodeScalarProduct, multiply(nodeNorm1, nodeNorm2));
14
+ const valueCosAngle = Math.min(1, Math.max(-1, nodeCosAngle.evaluate()));
15
+ const valueAngle = (() => {
16
+ const valueAngleRaw = Math.acos(valueCosAngle);
17
+ const nodeVectorialProduct = (() => {
18
+ const spaceVec1 = new SpaceVector(vec1.name, vec1.x, vec1.y, (0).toTree());
19
+ const spaceVec2 = new SpaceVector(vec2.name, vec2.x, vec2.y, (0).toTree());
20
+ return spaceVec1.vetorialProduct(spaceVec2);
21
+ })();
22
+ if (nodeVectorialProduct.z.evaluate() > 0) {
23
+ return valueAngleRaw;
24
+ }
25
+ else {
26
+ return -valueAngleRaw;
27
+ }
28
+ })();
29
+ return valueAngle;
30
+ };
31
+ export const exactAngleCandidate = (valueAngle) => {
32
+ const nodeAngleExactCandidate = (() => {
33
+ if (Math.abs(valueAngle - 0) < 0.05) {
34
+ return (0).toTree();
35
+ }
36
+ else {
37
+ const sign = valueAngle >= 0 ? +1 : -1;
38
+ const nMax = 8; //Pi/8 is the limit
39
+ const [nodeAngleCandidate] = [...Array(nMax).keys()]
40
+ .map((i) => i + 1)
41
+ .flatMap((n) => {
42
+ const nodeAngleBase = frac(PiNode, n);
43
+ const arrNodeAngle = [...Array(n + 1).keys()].map((i) => {
44
+ const nodeAngleCandidate = multiply(multiply(sign, i), nodeAngleBase);
45
+ return nodeAngleCandidate;
46
+ });
47
+ return arrNodeAngle;
48
+ })
49
+ .filter((nodeAngleCandidate) => Math.abs(nodeAngleCandidate.evaluate() - valueAngle) < 0.05);
50
+ return nodeAngleCandidate;
51
+ }
52
+ })();
53
+ if (nodeAngleExactCandidate &&
54
+ NodeComparator.isEqualViaSub(nodeAngleExactCandidate, opposite(PiNode))) {
55
+ return PiNode;
56
+ }
57
+ return nodeAngleExactCandidate;
58
+ };
@@ -0,0 +1,3 @@
1
+ export declare function createTypeAngleSectorNWSE(valueAngle: number): "E" | "N" | "S" | "W";
2
+ export declare function createTypeAngleSectorNWSESecondary(valueAngle: number): "WSW" | "SSW" | "SSE" | "ESE" | "ENE" | "NNE" | "NNW" | "WNW";
3
+ //# sourceMappingURL=angleNWSE.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angleNWSE.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/geometry/angleNWSE.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,yBAyB3D;AAED,wBAAgB,kCAAkC,CAAC,UAAU,EAAE,MAAM,iEA2CpE"}
@@ -0,0 +1,56 @@
1
+ import { PiNode } from "../../../tree/nodes/numbers/piNode.js";
2
+ export function createTypeAngleSectorNWSE(valueAngle) {
3
+ const valuePi = PiNode.evaluate();
4
+ const valueAngleOffsetForTuningSectors = valuePi * 0.25; //ici on veut des secteurs de type N W S E
5
+ const valueAngleInMinusPiPlusPi = (valueAngle - valueAngleOffsetForTuningSectors) % valuePi;
6
+ if (-valuePi <= valueAngleInMinusPiPlusPi &&
7
+ valueAngleInMinusPiPlusPi < -valuePi * 0.5) {
8
+ return "S";
9
+ }
10
+ else if (-valuePi * 0.5 <= valueAngleInMinusPiPlusPi &&
11
+ valueAngleInMinusPiPlusPi < 0) {
12
+ return "W";
13
+ }
14
+ else if (0 <= valueAngleInMinusPiPlusPi &&
15
+ valueAngleInMinusPiPlusPi < valuePi * 0.5) {
16
+ return "N";
17
+ }
18
+ else {
19
+ return "E";
20
+ }
21
+ }
22
+ export function createTypeAngleSectorNWSESecondary(valueAngle) {
23
+ const valuePi = PiNode.evaluate();
24
+ const valueAngleInMinusPiPlusPi = valueAngle % valuePi;
25
+ if (-valuePi <= valueAngleInMinusPiPlusPi &&
26
+ valueAngleInMinusPiPlusPi < -valuePi * 0.75) {
27
+ return "WSW";
28
+ }
29
+ else if (-valuePi * 0.75 <= valueAngleInMinusPiPlusPi &&
30
+ valueAngleInMinusPiPlusPi < -valuePi * 0.5) {
31
+ return "SSW";
32
+ }
33
+ else if (-valuePi * 0.5 <= valueAngleInMinusPiPlusPi &&
34
+ valueAngleInMinusPiPlusPi < -valuePi * 0.25) {
35
+ return "SSE";
36
+ }
37
+ else if (-valuePi * 0.25 <= valueAngleInMinusPiPlusPi &&
38
+ valueAngleInMinusPiPlusPi < 0) {
39
+ return "ESE";
40
+ }
41
+ else if (0 <= valueAngleInMinusPiPlusPi &&
42
+ valueAngleInMinusPiPlusPi < valuePi * 0.25) {
43
+ return "ENE";
44
+ }
45
+ else if (valuePi * 0.25 <= valueAngleInMinusPiPlusPi &&
46
+ valueAngleInMinusPiPlusPi < valuePi * 0.5) {
47
+ return "NNE";
48
+ }
49
+ else if (valuePi * 0.5 <= valueAngleInMinusPiPlusPi &&
50
+ valueAngleInMinusPiPlusPi < valuePi * 0.75) {
51
+ return "NNW";
52
+ }
53
+ else {
54
+ return "WNW";
55
+ }
56
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"singleExo.test.d.ts","sourceRoot":"","sources":["../../src/tests/singleExo.test.ts"],"names":[],"mappings":"AAEA,OAAO,6BAA6B,CAAC"}
1
+ {"version":3,"file":"singleExo.test.d.ts","sourceRoot":"","sources":["../../src/tests/singleExo.test.ts"],"names":[],"mappings":"AAGA,OAAO,6BAA6B,CAAC"}
@@ -1,9 +1,9 @@
1
+ import { factoIdRmq1 } from "../exercises/math/index.js";
1
2
  import "../prototypesEnhancement.js";
2
3
  import { exoTest } from "./exoTest.js";
3
- import { pyLimitProgramExecution, } from "../exercises/math/index.js";
4
4
  try {
5
5
  for (let i = 0; i < 1000; i++)
6
- exoTest(pyLimitProgramExecution);
6
+ exoTest(factoIdRmq1);
7
7
  }
8
8
  catch (err) {
9
9
  throw err;
@@ -0,0 +1,2 @@
1
+ export declare const frenchDays: string[];
2
+ //# sourceMappingURL=frenchDays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frenchDays.d.ts","sourceRoot":"","sources":["../../../src/utils/strings/frenchDays.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAQtB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const frenchDays = [
2
+ "lundi",
3
+ "mardi",
4
+ "mercredi",
5
+ "jeudi",
6
+ "vendredi",
7
+ "samedi",
8
+ "dimanche",
9
+ ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "math-exercises",
3
3
  "type": "module",
4
- "version": "3.0.213",
4
+ "version": "3.0.215",
5
5
  "description": "Math exercises generator for middle school and high school",
6
6
  "main": "lib/index.js",
7
7
  "files": [