math-exercises 2.0.11 → 2.0.13

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 (961) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts +6 -6
  2. package/lib/exercises/calcul/addAndSub.js +63 -63
  3. package/lib/exercises/calcul/addAndSubWithoutRelatives.d.ts +6 -6
  4. package/lib/exercises/calcul/addAndSubWithoutRelatives.js +73 -73
  5. package/lib/exercises/calcul/arithmetics/euclideanDivision.d.ts +9 -9
  6. package/lib/exercises/calcul/arithmetics/euclideanDivision.js +60 -60
  7. package/lib/exercises/calcul/arithmetics/index.d.ts +3 -3
  8. package/lib/exercises/calcul/arithmetics/index.js +19 -19
  9. package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.d.ts +4 -4
  10. package/lib/exercises/calcul/arithmetics/paritySumsAndProducts.js +115 -115
  11. package/lib/exercises/calcul/arithmetics/primeNumbers.d.ts +6 -6
  12. package/lib/exercises/calcul/arithmetics/primeNumbers.js +105 -105
  13. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts +8 -8
  14. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +77 -77
  15. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts +7 -7
  16. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +68 -68
  17. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts +7 -7
  18. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +67 -67
  19. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.d.ts +8 -8
  20. package/lib/exercises/calcul/fractions/fractionToPercentToDecimal.js +157 -157
  21. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts +7 -7
  22. package/lib/exercises/calcul/fractions/fractionsDivision.js +62 -62
  23. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts +7 -7
  24. package/lib/exercises/calcul/fractions/fractionsProduct.js +60 -60
  25. package/lib/exercises/calcul/fractions/fractionsSum.d.ts +7 -7
  26. package/lib/exercises/calcul/fractions/fractionsSum.js +60 -60
  27. package/lib/exercises/calcul/fractions/index.d.ts +9 -9
  28. package/lib/exercises/calcul/fractions/index.js +25 -25
  29. package/lib/exercises/calcul/fractions/periodicWritingToFraction.d.ts +8 -8
  30. package/lib/exercises/calcul/fractions/periodicWritingToFraction.js +80 -80
  31. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts +7 -7
  32. package/lib/exercises/calcul/fractions/simplifyFraction.js +52 -52
  33. package/lib/exercises/calcul/index.d.ts +8 -8
  34. package/lib/exercises/calcul/index.js +24 -24
  35. package/lib/exercises/calcul/mentalCaluls/index.d.ts +4 -4
  36. package/lib/exercises/calcul/mentalCaluls/index.js +20 -20
  37. package/lib/exercises/calcul/mentalCaluls/mentalAddAndSub.d.ts +6 -6
  38. package/lib/exercises/calcul/mentalCaluls/mentalAddAndSub.js +84 -84
  39. package/lib/exercises/calcul/mentalCaluls/mentalDivisions.d.ts +9 -9
  40. package/lib/exercises/calcul/mentalCaluls/mentalDivisions.js +101 -101
  41. package/lib/exercises/calcul/mentalCaluls/mentalMultiplications.d.ts +6 -6
  42. package/lib/exercises/calcul/mentalCaluls/mentalMultiplications.js +84 -84
  43. package/lib/exercises/calcul/mentalCaluls/mentalPercentage.d.ts +8 -8
  44. package/lib/exercises/calcul/mentalCaluls/mentalPercentage.js +140 -140
  45. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts +3 -8
  46. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.d.ts.map +1 -1
  47. package/lib/exercises/calcul/mentalCaluls.ts/mentalAddAndSub.js +51 -31
  48. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts +3 -7
  49. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.d.ts.map +1 -1
  50. package/lib/exercises/calcul/mentalCaluls.ts/mentalDivisions.js +50 -32
  51. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts +3 -7
  52. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.d.ts.map +1 -1
  53. package/lib/exercises/calcul/mentalCaluls.ts/mentalMultiplications.js +47 -32
  54. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts +3 -8
  55. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.d.ts.map +1 -1
  56. package/lib/exercises/calcul/mentalCaluls.ts/mentalPercentage.js +84 -69
  57. package/lib/exercises/calcul/operations/index.d.ts +2 -2
  58. package/lib/exercises/calcul/operations/index.js +18 -18
  59. package/lib/exercises/calcul/operations/operationsPriorities.d.ts +17 -17
  60. package/lib/exercises/calcul/operations/operationsPriorities.js +121 -121
  61. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +18 -18
  62. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.js +202 -202
  63. package/lib/exercises/calcul/proportionality/index.d.ts +1 -1
  64. package/lib/exercises/calcul/proportionality/index.js +17 -17
  65. package/lib/exercises/calcul/proportionality/proportionalityTable.d.ts +10 -10
  66. package/lib/exercises/calcul/proportionality/proportionalityTable.js +65 -65
  67. package/lib/exercises/calcul/rounding/index.d.ts +1 -1
  68. package/lib/exercises/calcul/rounding/index.js +17 -17
  69. package/lib/exercises/calcul/rounding/rounding.d.ts +21 -21
  70. package/lib/exercises/calcul/rounding/rounding.js +141 -141
  71. package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts +10 -10
  72. package/lib/exercises/calculLitteral/distributivity/allIdentities.js +72 -72
  73. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts +7 -7
  74. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +74 -74
  75. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts +10 -10
  76. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +64 -64
  77. package/lib/exercises/calculLitteral/distributivity/index.d.ts +6 -6
  78. package/lib/exercises/calculLitteral/distributivity/index.js +26 -26
  79. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts +10 -10
  80. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +65 -65
  81. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts +8 -8
  82. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +61 -61
  83. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts +10 -10
  84. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +69 -69
  85. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.d.ts +6 -6
  86. package/lib/exercises/calculLitteral/equation/equationSimpleSquare.js +140 -140
  87. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts +10 -10
  88. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +60 -60
  89. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts +10 -10
  90. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +64 -64
  91. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts +11 -11
  92. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +68 -68
  93. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts +12 -12
  94. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +75 -75
  95. package/lib/exercises/calculLitteral/equation/evaluateExpression.d.ts +4 -0
  96. package/lib/exercises/calculLitteral/equation/evaluateExpression.d.ts.map +1 -0
  97. package/lib/exercises/calculLitteral/equation/evaluateExpression.js +61 -0
  98. package/lib/exercises/calculLitteral/equation/expEquation.d.ts +3 -7
  99. package/lib/exercises/calculLitteral/equation/expEquation.d.ts.map +1 -1
  100. package/lib/exercises/calculLitteral/equation/expEquation.js +69 -75
  101. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.d.ts +7 -7
  102. package/lib/exercises/calculLitteral/equation/firstDegreeEquation.js +58 -58
  103. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts +4 -0
  104. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.d.ts.map +1 -0
  105. package/lib/exercises/calculLitteral/equation/firstDegreeGeneralEquation.js +32 -0
  106. package/lib/exercises/calculLitteral/equation/fractionEquation.d.ts +9 -9
  107. package/lib/exercises/calculLitteral/equation/fractionEquation.js +82 -82
  108. package/lib/exercises/calculLitteral/equation/index.d.ts +8 -8
  109. package/lib/exercises/calculLitteral/equation/index.js +24 -24
  110. package/lib/exercises/calculLitteral/equation/logEquation.d.ts +3 -7
  111. package/lib/exercises/calculLitteral/equation/logEquation.d.ts.map +1 -1
  112. package/lib/exercises/calculLitteral/equation/logEquation.js +69 -74
  113. package/lib/exercises/calculLitteral/equation/multiplicationEquation.d.ts +9 -9
  114. package/lib/exercises/calculLitteral/equation/multiplicationEquation.js +78 -78
  115. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.d.ts +7 -7
  116. package/lib/exercises/calculLitteral/factorisation/factoIdRmq1.js +58 -58
  117. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.d.ts +7 -7
  118. package/lib/exercises/calculLitteral/factorisation/factoIdRmq2.js +60 -60
  119. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.d.ts +7 -7
  120. package/lib/exercises/calculLitteral/factorisation/factoIdRmq3.js +67 -67
  121. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts +10 -10
  122. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +91 -91
  123. package/lib/exercises/calculLitteral/factorisation/index.d.ts +4 -4
  124. package/lib/exercises/calculLitteral/factorisation/index.js +20 -20
  125. package/lib/exercises/calculLitteral/index.d.ts +5 -5
  126. package/lib/exercises/calculLitteral/index.js +21 -21
  127. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.d.ts +9 -8
  128. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.d.ts.map +1 -1
  129. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType0.js +63 -68
  130. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts +9 -8
  131. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.d.ts.map +1 -1
  132. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType1.js +69 -80
  133. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts +10 -9
  134. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.d.ts.map +1 -1
  135. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType2.js +72 -83
  136. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts +12 -11
  137. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
  138. package/lib/exercises/calculLitteral/inequations/firstDegreeInequationsType3.js +81 -92
  139. package/lib/exercises/calculLitteral/inequations/index.d.ts +4 -4
  140. package/lib/exercises/calculLitteral/inequations/index.js +20 -20
  141. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.d.ts +9 -9
  142. package/lib/exercises/calculLitteral/simplifying/evaluateExpression.js +63 -63
  143. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts +3 -9
  144. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.d.ts.map +1 -1
  145. package/lib/exercises/calculLitteral/simplifying/expSimplifiying.js +98 -116
  146. package/lib/exercises/calculLitteral/simplifying/index.d.ts +2 -2
  147. package/lib/exercises/calculLitteral/simplifying/index.js +18 -18
  148. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts +3 -8
  149. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.d.ts.map +1 -1
  150. package/lib/exercises/calculLitteral/simplifying/logSimplifiying.js +80 -77
  151. package/lib/exercises/calculLitteral/simplifying/reduceExpression.d.ts +8 -8
  152. package/lib/exercises/calculLitteral/simplifying/reduceExpression.js +114 -114
  153. package/lib/exercises/combinatory/anagrams.d.ts +6 -6
  154. package/lib/exercises/combinatory/anagrams.js +161 -161
  155. package/lib/exercises/combinatory/ballsCounting.d.ts +9 -9
  156. package/lib/exercises/combinatory/ballsCounting.js +110 -110
  157. package/lib/exercises/combinatory/diceCounting.d.ts +6 -6
  158. package/lib/exercises/combinatory/diceCounting.js +122 -122
  159. package/lib/exercises/combinatory/index.d.ts +3 -3
  160. package/lib/exercises/combinatory/index.js +19 -19
  161. package/lib/exercises/complex/addComplex.d.ts +9 -9
  162. package/lib/exercises/complex/addComplex.js +64 -64
  163. package/lib/exercises/complex/argumentFromAlgebraicComplex.d.ts +6 -6
  164. package/lib/exercises/complex/argumentFromAlgebraicComplex.js +63 -63
  165. package/lib/exercises/complex/conjugateComplex.ts.d.ts +7 -7
  166. package/lib/exercises/complex/conjugateComplex.ts.js +54 -54
  167. package/lib/exercises/complex/conjugateDivideComplex.d.ts +7 -7
  168. package/lib/exercises/complex/conjugateDivideComplex.js +61 -61
  169. package/lib/exercises/complex/conjugateMultiplyComplex.d.ts +7 -7
  170. package/lib/exercises/complex/conjugateMultiplyComplex.js +61 -61
  171. package/lib/exercises/complex/divideComplex.d.ts +7 -7
  172. package/lib/exercises/complex/divideComplex.js +58 -58
  173. package/lib/exercises/complex/index.d.ts +11 -11
  174. package/lib/exercises/complex/index.js +28 -28
  175. package/lib/exercises/complex/inverseComplex.d.ts +7 -7
  176. package/lib/exercises/complex/inverseComplex.js +54 -54
  177. package/lib/exercises/complex/linearCombinaisonComplex.d.ts +9 -9
  178. package/lib/exercises/complex/linearCombinaisonComplex.js +59 -59
  179. package/lib/exercises/complex/moduloFromAlgebraicComplex.d.ts +7 -7
  180. package/lib/exercises/complex/moduloFromAlgebraicComplex.js +55 -55
  181. package/lib/exercises/complex/mutiplyComplex.d.ts +7 -7
  182. package/lib/exercises/complex/mutiplyComplex.js +58 -58
  183. package/lib/exercises/complex/reAndIm.d.ts +8 -8
  184. package/lib/exercises/complex/reAndIm.js +50 -50
  185. package/lib/exercises/conversion/aeraConversion.d.ts +8 -8
  186. package/lib/exercises/conversion/aeraConversion.js +60 -60
  187. package/lib/exercises/conversion/capacityConversion.d.ts +8 -8
  188. package/lib/exercises/conversion/capacityConversion.js +58 -58
  189. package/lib/exercises/conversion/index.d.ts +6 -6
  190. package/lib/exercises/conversion/index.js +22 -22
  191. package/lib/exercises/conversion/lengthConversion.d.ts +8 -8
  192. package/lib/exercises/conversion/lengthConversion.js +58 -58
  193. package/lib/exercises/conversion/massConversion.d.ts +8 -8
  194. package/lib/exercises/conversion/massConversion.js +58 -58
  195. package/lib/exercises/conversion/volumeCapacityConversion.d.ts +9 -9
  196. package/lib/exercises/conversion/volumeCapacityConversion.js +74 -74
  197. package/lib/exercises/conversion/volumeConversion.d.ts +8 -8
  198. package/lib/exercises/conversion/volumeConversion.js +60 -60
  199. package/lib/exercises/derivation/derivative/constanteDerivative.d.ts +9 -9
  200. package/lib/exercises/derivation/derivative/constanteDerivative.js +54 -54
  201. package/lib/exercises/derivation/derivative/expDerivativeOne.d.ts +7 -7
  202. package/lib/exercises/derivation/derivative/expDerivativeOne.js +62 -62
  203. package/lib/exercises/derivation/derivative/expDerivativeThree.d.ts +7 -7
  204. package/lib/exercises/derivation/derivative/expDerivativeThree.js +55 -55
  205. package/lib/exercises/derivation/derivative/expDerivativeTwo.d.ts +7 -7
  206. package/lib/exercises/derivation/derivative/expDerivativeTwo.js +57 -57
  207. package/lib/exercises/derivation/derivative/firstDegreeDerivative.d.ts +10 -10
  208. package/lib/exercises/derivation/derivative/firstDegreeDerivative.js +52 -52
  209. package/lib/exercises/derivation/derivative/index.d.ts +17 -17
  210. package/lib/exercises/derivation/derivative/index.js +38 -38
  211. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.d.ts +6 -6
  212. package/lib/exercises/derivation/derivative/inverseFunctionDerivative.js +55 -55
  213. package/lib/exercises/derivation/derivative/lnDerivativeOne.d.ts +7 -7
  214. package/lib/exercises/derivation/derivative/lnDerivativeOne.js +68 -68
  215. package/lib/exercises/derivation/derivative/lnDerivativeThree.d.ts +7 -7
  216. package/lib/exercises/derivation/derivative/lnDerivativeThree.js +83 -83
  217. package/lib/exercises/derivation/derivative/lnDerivativeTwo.d.ts +7 -7
  218. package/lib/exercises/derivation/derivative/lnDerivativeTwo.js +60 -60
  219. package/lib/exercises/derivation/derivative/powerFunctionDerivative.d.ts +7 -7
  220. package/lib/exercises/derivation/derivative/powerFunctionDerivative.js +71 -71
  221. package/lib/exercises/derivation/derivative/productDerivative.d.ts +7 -7
  222. package/lib/exercises/derivation/derivative/productDerivative.js +59 -59
  223. package/lib/exercises/derivation/derivative/quotientDerivative.d.ts +7 -7
  224. package/lib/exercises/derivation/derivative/quotientDerivative.js +84 -84
  225. package/lib/exercises/derivation/derivative/rootFunctionDerivative.d.ts +6 -6
  226. package/lib/exercises/derivation/derivative/rootFunctionDerivative.js +78 -78
  227. package/lib/exercises/derivation/derivative/secondDegreeDerivative.d.ts +9 -9
  228. package/lib/exercises/derivation/derivative/secondDegreeDerivative.js +74 -74
  229. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.d.ts +9 -9
  230. package/lib/exercises/derivation/derivative/thirdDegreeDerivative.js +81 -81
  231. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.d.ts +9 -9
  232. package/lib/exercises/derivation/derivative/thirdDegreeFunctionVariation.js +99 -99
  233. package/lib/exercises/derivation/derivative/usualderivative.d.ts +10 -10
  234. package/lib/exercises/derivation/derivative/usualderivative.js +108 -108
  235. package/lib/exercises/derivation/derivativeNumberCalcul.d.ts +7 -7
  236. package/lib/exercises/derivation/derivativeNumberCalcul.js +48 -48
  237. package/lib/exercises/derivation/derivativeNumberReading.d.ts +7 -7
  238. package/lib/exercises/derivation/derivativeNumberReading.js +85 -85
  239. package/lib/exercises/derivation/index.d.ts +3 -3
  240. package/lib/exercises/derivation/index.js +19 -19
  241. package/lib/exercises/equaDiff/equaDiffGeneralForme.d.ts +6 -6
  242. package/lib/exercises/equaDiff/equaDiffGeneralForme.js +58 -58
  243. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.d.ts +7 -7
  244. package/lib/exercises/equaDiff/equaDiffGeneralFormeWithIC.js +68 -68
  245. package/lib/exercises/equaDiff/index.d.ts +2 -2
  246. package/lib/exercises/equaDiff/index.js +18 -18
  247. package/lib/exercises/exercise.d.ts +50 -50
  248. package/lib/exercises/exercise.js +38 -38
  249. package/lib/exercises/exercises.d.ts +2 -2
  250. package/lib/exercises/exercises.d.ts.map +1 -1
  251. package/lib/exercises/exercises.js +26 -72
  252. package/lib/exercises/functions/absolute/absoluteValueEquations.d.ts +7 -7
  253. package/lib/exercises/functions/absolute/absoluteValueEquations.js +74 -74
  254. package/lib/exercises/functions/absolute/absoluteValueInequations.d.ts +8 -8
  255. package/lib/exercises/functions/absolute/absoluteValueInequations.js +69 -69
  256. package/lib/exercises/functions/absolute/index.d.ts +2 -2
  257. package/lib/exercises/functions/absolute/index.js +18 -18
  258. package/lib/exercises/functions/affines/affineExpressionReading.d.ts +8 -0
  259. package/lib/exercises/functions/affines/affineExpressionReading.d.ts.map +1 -0
  260. package/lib/exercises/functions/affines/affineExpressionReading.js +91 -0
  261. package/lib/exercises/functions/affines/index.d.ts +5 -4
  262. package/lib/exercises/functions/affines/index.d.ts.map +1 -1
  263. package/lib/exercises/functions/affines/index.js +21 -20
  264. package/lib/exercises/functions/affines/leadingCoefficient.d.ts +9 -9
  265. package/lib/exercises/functions/affines/leadingCoefficient.js +87 -87
  266. package/lib/exercises/functions/affines/leadingCoefficientCalculV1.d.ts +9 -9
  267. package/lib/exercises/functions/affines/leadingCoefficientCalculV1.js +55 -55
  268. package/lib/exercises/functions/affines/leadingCoefficientCalculV2.d.ts +9 -9
  269. package/lib/exercises/functions/affines/leadingCoefficientCalculV2.js +54 -54
  270. package/lib/exercises/functions/affines/signFunction.d.ts +8 -8
  271. package/lib/exercises/functions/affines/signFunction.js +83 -83
  272. package/lib/exercises/functions/affines/template.d.ts +4 -0
  273. package/lib/exercises/functions/affines/template.d.ts.map +1 -0
  274. package/lib/exercises/functions/affines/template.js +51 -0
  275. package/lib/exercises/functions/basics/graphicEquation.d.ts +7 -7
  276. package/lib/exercises/functions/basics/graphicEquation.js +109 -109
  277. package/lib/exercises/functions/basics/graphicInequation.d.ts +15 -15
  278. package/lib/exercises/functions/basics/graphicInequation.js +147 -147
  279. package/lib/exercises/functions/basics/imageFunction.d.ts +9 -9
  280. package/lib/exercises/functions/basics/imageFunction.js +64 -64
  281. package/lib/exercises/functions/basics/imageFunctionGeogebra.d.ts +9 -9
  282. package/lib/exercises/functions/basics/imageFunctionGeogebra.js +91 -91
  283. package/lib/exercises/functions/basics/index.d.ts +6 -6
  284. package/lib/exercises/functions/basics/index.js +22 -22
  285. package/lib/exercises/functions/basics/inverseImageFunction.d.ts +7 -7
  286. package/lib/exercises/functions/basics/inverseImageFunction.js +52 -52
  287. package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.d.ts +10 -10
  288. package/lib/exercises/functions/basics/inverseImageFunctionGeogebra.js +181 -181
  289. package/lib/exercises/functions/cube/cubicEquation.d.ts +6 -6
  290. package/lib/exercises/functions/cube/cubicEquation.js +55 -55
  291. package/lib/exercises/functions/cube/index.d.ts +1 -1
  292. package/lib/exercises/functions/cube/index.js +17 -17
  293. package/lib/exercises/functions/exponential/expEquation.d.ts +8 -8
  294. package/lib/exercises/functions/exponential/expEquation.js +75 -75
  295. package/lib/exercises/functions/exponential/expSimplifiying.d.ts +9 -9
  296. package/lib/exercises/functions/exponential/expSimplifiying.js +116 -116
  297. package/lib/exercises/functions/exponential/index.d.ts +2 -2
  298. package/lib/exercises/functions/exponential/index.js +18 -18
  299. package/lib/exercises/functions/index.d.ts +8 -8
  300. package/lib/exercises/functions/index.js +24 -24
  301. package/lib/exercises/functions/logarithm/index.d.ts +5 -5
  302. package/lib/exercises/functions/logarithm/index.js +21 -21
  303. package/lib/exercises/functions/logarithm/log10PowerSimplifying.d.ts +6 -6
  304. package/lib/exercises/functions/logarithm/log10PowerSimplifying.js +54 -54
  305. package/lib/exercises/functions/logarithm/log10Simplifying.d.ts +10 -10
  306. package/lib/exercises/functions/logarithm/log10Simplifying.js +97 -97
  307. package/lib/exercises/functions/logarithm/logEquation.d.ts +8 -8
  308. package/lib/exercises/functions/logarithm/logEquation.js +73 -73
  309. package/lib/exercises/functions/logarithm/logPowerEquation.d.ts +11 -11
  310. package/lib/exercises/functions/logarithm/logPowerEquation.d.ts.map +1 -1
  311. package/lib/exercises/functions/logarithm/logPowerEquation.js +103 -103
  312. package/lib/exercises/functions/logarithm/logSimplifiying.d.ts +8 -8
  313. package/lib/exercises/functions/logarithm/logSimplifiying.js +77 -77
  314. package/lib/exercises/functions/rationalFraction/index.d.ts +1 -1
  315. package/lib/exercises/functions/rationalFraction/index.js +17 -17
  316. package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.d.ts +9 -9
  317. package/lib/exercises/functions/rationalFraction/rationalFractionForbiddenValue.js +64 -64
  318. package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.d.ts +7 -7
  319. package/lib/exercises/functions/trinoms/alphaBetaFromDevForm.js +51 -51
  320. package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.d.ts +9 -9
  321. package/lib/exercises/functions/trinoms/alphaBetaInCanonicalForm.js +66 -66
  322. package/lib/exercises/functions/trinoms/canonicalFromDevForm.d.ts +8 -8
  323. package/lib/exercises/functions/trinoms/canonicalFromDevForm.js +52 -52
  324. package/lib/exercises/functions/trinoms/deltaTrinom.d.ts +8 -8
  325. package/lib/exercises/functions/trinoms/deltaTrinom.js +52 -52
  326. package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.d.ts +8 -8
  327. package/lib/exercises/functions/trinoms/extremumFromCanonicalForm.js +57 -57
  328. package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.d.ts +8 -8
  329. package/lib/exercises/functions/trinoms/extremumTypeFromAlgebricForm.js +43 -43
  330. package/lib/exercises/functions/trinoms/index.d.ts +11 -10
  331. package/lib/exercises/functions/trinoms/index.d.ts.map +1 -1
  332. package/lib/exercises/functions/trinoms/index.js +27 -26
  333. package/lib/exercises/functions/trinoms/niceRootsFromDevForm.d.ts +8 -8
  334. package/lib/exercises/functions/trinoms/niceRootsFromDevForm.js +56 -56
  335. package/lib/exercises/functions/trinoms/rootsFromDevForm.d.ts +8 -8
  336. package/lib/exercises/functions/trinoms/rootsFromDevForm.js +56 -56
  337. package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.d.ts +8 -8
  338. package/lib/exercises/functions/trinoms/rootsFromFactorizedForm.js +70 -70
  339. package/lib/exercises/functions/trinoms/secondDegreeInequation.d.ts +11 -0
  340. package/lib/exercises/functions/trinoms/secondDegreeInequation.d.ts.map +1 -0
  341. package/lib/exercises/functions/trinoms/secondDegreeInequation.js +79 -0
  342. package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.d.ts +8 -8
  343. package/lib/exercises/functions/trinoms/variationsFromAlgebricForm.js +44 -44
  344. package/lib/exercises/geometry/areas/circleArea.d.ts +8 -8
  345. package/lib/exercises/geometry/areas/circleArea.js +52 -52
  346. package/lib/exercises/geometry/areas/index.d.ts +6 -6
  347. package/lib/exercises/geometry/areas/index.js +22 -22
  348. package/lib/exercises/geometry/areas/rectangleArea.d.ts +7 -7
  349. package/lib/exercises/geometry/areas/rectangleArea.js +46 -46
  350. package/lib/exercises/geometry/areas/rightTriangleArea.d.ts +6 -6
  351. package/lib/exercises/geometry/areas/rightTriangleArea.js +75 -75
  352. package/lib/exercises/geometry/areas/squareArea.d.ts +6 -6
  353. package/lib/exercises/geometry/areas/squareArea.js +46 -46
  354. package/lib/exercises/geometry/areas/triangleArea.d.ts +4 -4
  355. package/lib/exercises/geometry/areas/triangleArea.js +97 -97
  356. package/lib/exercises/geometry/areas/triangleAreaV2.d.ts +6 -6
  357. package/lib/exercises/geometry/areas/triangleAreaV2.js +71 -71
  358. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.d.ts +7 -7
  359. package/lib/exercises/geometry/cartesian/distanceBetweenTwoPoints.js +95 -95
  360. package/lib/exercises/geometry/cartesian/imageFunction.d.ts +4 -0
  361. package/lib/exercises/geometry/cartesian/imageFunction.d.ts.map +1 -0
  362. package/lib/exercises/geometry/cartesian/imageFunction.js +65 -0
  363. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts +4 -0
  364. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.d.ts.map +1 -0
  365. package/lib/exercises/geometry/cartesian/imageFunctionGeogebra.js +89 -0
  366. package/lib/exercises/geometry/cartesian/index.d.ts +2 -2
  367. package/lib/exercises/geometry/cartesian/index.js +18 -18
  368. package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts +4 -0
  369. package/lib/exercises/geometry/cartesian/inverseImageFunction.d.ts.map +1 -0
  370. package/lib/exercises/geometry/cartesian/inverseImageFunction.js +62 -0
  371. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts +4 -0
  372. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.d.ts.map +1 -0
  373. package/lib/exercises/geometry/cartesian/inverseImageFunctionGeogebra.js +154 -0
  374. package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts +4 -0
  375. package/lib/exercises/geometry/cartesian/leadingCoefficient.d.ts.map +1 -0
  376. package/lib/exercises/geometry/cartesian/leadingCoefficient.js +93 -0
  377. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.d.ts +4 -0
  378. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.d.ts.map +1 -0
  379. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV1.js +59 -0
  380. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.d.ts +4 -0
  381. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.d.ts.map +1 -0
  382. package/lib/exercises/geometry/cartesian/leadingCoefficientCalculV2.js +58 -0
  383. package/lib/exercises/geometry/cartesian/midpoint.d.ts +7 -7
  384. package/lib/exercises/geometry/cartesian/midpoint.js +63 -63
  385. package/lib/exercises/geometry/cartesian/signFunction.d.ts +4 -0
  386. package/lib/exercises/geometry/cartesian/signFunction.d.ts.map +1 -0
  387. package/lib/exercises/geometry/cartesian/signFunction.js +84 -0
  388. package/lib/exercises/geometry/euclidean/circleArea.d.ts +3 -7
  389. package/lib/exercises/geometry/euclidean/circleArea.d.ts.map +1 -1
  390. package/lib/exercises/geometry/euclidean/circleArea.js +43 -26
  391. package/lib/exercises/geometry/euclidean/circleCircumference.d.ts +3 -7
  392. package/lib/exercises/geometry/euclidean/circleCircumference.d.ts.map +1 -1
  393. package/lib/exercises/geometry/euclidean/circleCircumference.js +43 -26
  394. package/lib/exercises/geometry/euclidean/pythagore.d.ts +3 -10
  395. package/lib/exercises/geometry/euclidean/pythagore.d.ts.map +1 -1
  396. package/lib/exercises/geometry/euclidean/pythagore.js +71 -33
  397. package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts +3 -7
  398. package/lib/exercises/geometry/euclidean/pythagoreCalcul.d.ts.map +1 -1
  399. package/lib/exercises/geometry/euclidean/pythagoreCalcul.js +46 -30
  400. package/lib/exercises/geometry/euclidean/rectangleArea.d.ts +3 -7
  401. package/lib/exercises/geometry/euclidean/rectangleArea.d.ts.map +1 -1
  402. package/lib/exercises/geometry/euclidean/rectangleArea.js +40 -24
  403. package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts +3 -7
  404. package/lib/exercises/geometry/euclidean/rectanglePerimeter.d.ts.map +1 -1
  405. package/lib/exercises/geometry/euclidean/rectanglePerimeter.js +40 -24
  406. package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts +3 -7
  407. package/lib/exercises/geometry/euclidean/rightTriangleArea.d.ts.map +1 -1
  408. package/lib/exercises/geometry/euclidean/rightTriangleArea.js +43 -27
  409. package/lib/exercises/geometry/euclidean/squareArea.d.ts +3 -7
  410. package/lib/exercises/geometry/euclidean/squareArea.d.ts.map +1 -1
  411. package/lib/exercises/geometry/euclidean/squareArea.js +39 -23
  412. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts +3 -8
  413. package/lib/exercises/geometry/euclidean/squarePerimeter.d.ts.map +1 -1
  414. package/lib/exercises/geometry/euclidean/squarePerimeter.js +39 -23
  415. package/lib/exercises/geometry/euclidean/thales.d.ts +3 -8
  416. package/lib/exercises/geometry/euclidean/thales.d.ts.map +1 -1
  417. package/lib/exercises/geometry/euclidean/thales.js +61 -41
  418. package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts +3 -7
  419. package/lib/exercises/geometry/euclidean/thalesCalcul.d.ts.map +1 -1
  420. package/lib/exercises/geometry/euclidean/thalesCalcul.js +43 -27
  421. package/lib/exercises/geometry/euclidean/triangleArea.d.ts +3 -7
  422. package/lib/exercises/geometry/euclidean/triangleArea.d.ts.map +1 -1
  423. package/lib/exercises/geometry/euclidean/triangleArea.js +43 -27
  424. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts +3 -8
  425. package/lib/exercises/geometry/euclidean/triangleAreaV2.d.ts.map +1 -1
  426. package/lib/exercises/geometry/euclidean/triangleAreaV2.js +64 -44
  427. package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts +3 -7
  428. package/lib/exercises/geometry/euclidean/trianglePerimeter.d.ts.map +1 -1
  429. package/lib/exercises/geometry/euclidean/trianglePerimeter.js +40 -24
  430. package/lib/exercises/geometry/euclidean/trigonometry.d.ts +3 -10
  431. package/lib/exercises/geometry/euclidean/trigonometry.d.ts.map +1 -1
  432. package/lib/exercises/geometry/euclidean/trigonometry.js +67 -46
  433. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts +3 -7
  434. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.d.ts.map +1 -1
  435. package/lib/exercises/geometry/euclidean/trigonometryAngleCalcul.js +43 -27
  436. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts +3 -7
  437. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.d.ts.map +1 -1
  438. package/lib/exercises/geometry/euclidean/trigonometrySideCalcul.js +43 -27
  439. package/lib/exercises/geometry/index.d.ts +6 -6
  440. package/lib/exercises/geometry/index.js +22 -22
  441. package/lib/exercises/geometry/perimeters/circleCircumference.d.ts +8 -8
  442. package/lib/exercises/geometry/perimeters/circleCircumference.js +52 -52
  443. package/lib/exercises/geometry/perimeters/index.d.ts +4 -4
  444. package/lib/exercises/geometry/perimeters/index.js +20 -20
  445. package/lib/exercises/geometry/perimeters/rectanglePerimeter.d.ts +7 -7
  446. package/lib/exercises/geometry/perimeters/rectanglePerimeter.js +46 -46
  447. package/lib/exercises/geometry/perimeters/squarePerimeter.d.ts +6 -6
  448. package/lib/exercises/geometry/perimeters/squarePerimeter.js +46 -46
  449. package/lib/exercises/geometry/perimeters/trianglePerimeter.d.ts +6 -6
  450. package/lib/exercises/geometry/perimeters/trianglePerimeter.js +46 -46
  451. package/lib/exercises/geometry/pythagore/index.d.ts +2 -2
  452. package/lib/exercises/geometry/pythagore/index.js +18 -18
  453. package/lib/exercises/geometry/pythagore/pythagore.d.ts +8 -8
  454. package/lib/exercises/geometry/pythagore/pythagore.js +65 -65
  455. package/lib/exercises/geometry/pythagore/pythagoreCalcul.d.ts +7 -7
  456. package/lib/exercises/geometry/pythagore/pythagoreCalcul.js +102 -102
  457. package/lib/exercises/geometry/thales/index.d.ts +2 -2
  458. package/lib/exercises/geometry/thales/index.js +18 -18
  459. package/lib/exercises/geometry/thales/thales.d.ts +6 -6
  460. package/lib/exercises/geometry/thales/thales.js +128 -128
  461. package/lib/exercises/geometry/thales/thalesCalcul.d.ts +9 -9
  462. package/lib/exercises/geometry/thales/thalesCalcul.js +145 -145
  463. package/lib/exercises/geometry/vectors/chasles.d.ts +7 -7
  464. package/lib/exercises/geometry/vectors/chasles.js +63 -63
  465. package/lib/exercises/geometry/vectors/coordinatesReading.d.ts +9 -9
  466. package/lib/exercises/geometry/vectors/coordinatesReading.js +66 -66
  467. package/lib/exercises/geometry/vectors/determinant.d.ts +7 -7
  468. package/lib/exercises/geometry/vectors/determinant.js +54 -54
  469. package/lib/exercises/geometry/vectors/index.d.ts +6 -6
  470. package/lib/exercises/geometry/vectors/index.js +22 -22
  471. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts +7 -7
  472. package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +52 -52
  473. package/lib/exercises/geometry/vectors/scalarProductViaCos.d.ts +8 -8
  474. package/lib/exercises/geometry/vectors/scalarProductViaCos.js +66 -66
  475. package/lib/exercises/geometry/vectors/scalarProductViaNorms.js +1 -1
  476. package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.d.ts +7 -7
  477. package/lib/exercises/geometry/vectors/vectorCoordinatesFromTwoPoints.js +52 -52
  478. package/lib/exercises/index.d.ts +18 -18
  479. package/lib/exercises/index.js +34 -34
  480. package/lib/exercises/limits/index.d.ts +10 -10
  481. package/lib/exercises/limits/index.js +26 -26
  482. package/lib/exercises/limits/limitReading.d.ts +9 -9
  483. package/lib/exercises/limits/limitReading.js +111 -111
  484. package/lib/exercises/limits/polynomLimit.d.ts +7 -7
  485. package/lib/exercises/limits/polynomLimit.js +53 -53
  486. package/lib/exercises/limits/polynomLimitNoFI.d.ts +7 -7
  487. package/lib/exercises/limits/polynomLimitNoFI.js +53 -53
  488. package/lib/exercises/limits/polynomeLimit.d.ts +4 -0
  489. package/lib/exercises/limits/polynomeLimit.d.ts.map +1 -0
  490. package/lib/exercises/limits/polynomeLimit.js +134 -0
  491. package/lib/exercises/limits/rationalFracForbiddenValueLimit.d.ts +8 -8
  492. package/lib/exercises/limits/rationalFracForbiddenValueLimit.js +73 -73
  493. package/lib/exercises/limits/rationalFracLimit.d.ts +8 -8
  494. package/lib/exercises/limits/rationalFracLimit.js +101 -101
  495. package/lib/exercises/limits/sequenceGeometricLimit.d.ts +7 -7
  496. package/lib/exercises/limits/sequenceGeometricLimit.js +51 -51
  497. package/lib/exercises/limits/sequencePolynomLimit.d.ts +6 -6
  498. package/lib/exercises/limits/sequencePolynomLimit.js +52 -52
  499. package/lib/exercises/limits/sequencePolynomNoFILimit.d.ts +6 -6
  500. package/lib/exercises/limits/sequencePolynomNoFILimit.js +52 -52
  501. package/lib/exercises/limits/sequencePolynomProductLimit.d.ts +7 -7
  502. package/lib/exercises/limits/sequencePolynomProductLimit.js +70 -70
  503. package/lib/exercises/limits/sequenceRationalFracLimit.d.ts +7 -7
  504. package/lib/exercises/limits/sequenceRationalFracLimit.js +100 -100
  505. package/lib/exercises/limits/sequenceSimpleElementsSumLimit.d.ts +3 -8
  506. package/lib/exercises/limits/sequenceSimpleElementsSumLimit.d.ts.map +1 -1
  507. package/lib/exercises/limits/sequenceSimpleElementsSumLimit.js +47 -27
  508. package/lib/exercises/percent/applyPercent.d.ts +8 -8
  509. package/lib/exercises/percent/applyPercent.js +78 -78
  510. package/lib/exercises/percent/averageEvolutionRate.d.ts +7 -7
  511. package/lib/exercises/percent/averageEvolutionRate.js +54 -54
  512. package/lib/exercises/percent/evolutionToCM.d.ts +7 -7
  513. package/lib/exercises/percent/evolutionToCM.js +64 -64
  514. package/lib/exercises/percent/globalPercent.d.ts +6 -6
  515. package/lib/exercises/percent/globalPercent.js +71 -71
  516. package/lib/exercises/percent/index.d.ts +5 -5
  517. package/lib/exercises/percent/index.js +21 -21
  518. package/lib/exercises/percent/reciprocalPercentage.d.ts +7 -7
  519. package/lib/exercises/percent/reciprocalPercentage.js +61 -61
  520. package/lib/exercises/powers/calculateNegativePower.d.ts +7 -7
  521. package/lib/exercises/powers/calculateNegativePower.js +73 -73
  522. package/lib/exercises/powers/calculatePower.d.ts +7 -7
  523. package/lib/exercises/powers/calculatePower.js +65 -65
  524. package/lib/exercises/powers/decimalToScientific.d.ts +6 -6
  525. package/lib/exercises/powers/decimalToScientific.js +76 -76
  526. package/lib/exercises/powers/index.d.ts +9 -9
  527. package/lib/exercises/powers/index.js +25 -25
  528. package/lib/exercises/powers/powerDefinition.d.ts +7 -7
  529. package/lib/exercises/powers/powerDefinition.js +55 -55
  530. package/lib/exercises/powers/powersDivision.d.ts +12 -12
  531. package/lib/exercises/powers/powersDivision.js +87 -87
  532. package/lib/exercises/powers/powersOfTenToDecimal.d.ts +9 -9
  533. package/lib/exercises/powers/powersOfTenToDecimal.js +72 -72
  534. package/lib/exercises/powers/powersPower.d.ts +12 -12
  535. package/lib/exercises/powers/powersPower.js +94 -94
  536. package/lib/exercises/powers/powersProduct.d.ts +12 -12
  537. package/lib/exercises/powers/powersProduct.js +89 -89
  538. package/lib/exercises/powers/scientificToDecimal.d.ts +10 -10
  539. package/lib/exercises/powers/scientificToDecimal.js +72 -72
  540. package/lib/exercises/primitive/constantPrimitive.d.ts +9 -9
  541. package/lib/exercises/primitive/constantPrimitive.js +56 -56
  542. package/lib/exercises/primitive/expUPrimitive.d.ts +9 -9
  543. package/lib/exercises/primitive/expUPrimitive.js +76 -76
  544. package/lib/exercises/primitive/exponentialPrimitive.d.ts +9 -9
  545. package/lib/exercises/primitive/exponentialPrimitive.js +72 -72
  546. package/lib/exercises/primitive/index.d.ts +8 -8
  547. package/lib/exercises/primitive/index.js +32 -32
  548. package/lib/exercises/primitive/logarithmePrimitive.d.ts +8 -8
  549. package/lib/exercises/primitive/logarithmePrimitive.js +79 -79
  550. package/lib/exercises/primitive/polynomialPrimitive.d.ts +9 -9
  551. package/lib/exercises/primitive/polynomialPrimitive.js +60 -60
  552. package/lib/exercises/primitive/sinCosPrimitive.d.ts +10 -10
  553. package/lib/exercises/primitive/sinCosPrimitive.js +79 -79
  554. package/lib/exercises/primitive/sinUCosUPrimitive.d.ts +10 -10
  555. package/lib/exercises/primitive/sinUCosUPrimitive.js +85 -85
  556. package/lib/exercises/primitive/usualPrimitives.d.ts +10 -10
  557. package/lib/exercises/primitive/usualPrimitives.js +108 -108
  558. package/lib/exercises/primitve/constantPrimitive.d.ts +3 -9
  559. package/lib/exercises/primitve/constantPrimitive.d.ts.map +1 -1
  560. package/lib/exercises/primitve/constantPrimitive.js +44 -29
  561. package/lib/exercises/primitve/exponentialPrimitive.d.ts +3 -12
  562. package/lib/exercises/primitve/exponentialPrimitive.d.ts.map +1 -1
  563. package/lib/exercises/primitve/exponentialPrimitive.js +72 -64
  564. package/lib/exercises/primitve/logarithmePrimitive.d.ts +3 -10
  565. package/lib/exercises/primitve/logarithmePrimitive.d.ts.map +1 -1
  566. package/lib/exercises/primitve/logarithmePrimitive.js +56 -42
  567. package/lib/exercises/primitve/polynomialPrimitive.d.ts +3 -10
  568. package/lib/exercises/primitve/polynomialPrimitive.d.ts.map +1 -1
  569. package/lib/exercises/primitve/polynomialPrimitive.js +49 -42
  570. package/lib/exercises/primitve/sinCosPrimitive.d.ts +3 -12
  571. package/lib/exercises/primitve/sinCosPrimitive.d.ts.map +1 -1
  572. package/lib/exercises/primitve/sinCosPrimitive.js +68 -54
  573. package/lib/exercises/primitve/usualPrimitives.d.ts +3 -12
  574. package/lib/exercises/primitve/usualPrimitives.d.ts.map +1 -1
  575. package/lib/exercises/primitve/usualPrimitives.js +21 -55
  576. package/lib/exercises/proba/conditionalProbability.d.ts +4 -0
  577. package/lib/exercises/proba/conditionalProbability.d.ts.map +1 -0
  578. package/lib/exercises/proba/conditionalProbability.js +99 -0
  579. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts +4 -0
  580. package/lib/exercises/proba/marginalAndConditionalFrequency.d.ts.map +1 -0
  581. package/lib/exercises/proba/marginalAndConditionalFrequency.js +106 -0
  582. package/lib/exercises/proba/probabilityTree.d.ts +4 -0
  583. package/lib/exercises/proba/probabilityTree.d.ts.map +1 -0
  584. package/lib/exercises/proba/probabilityTree.js +132 -0
  585. package/lib/exercises/probaStat/averageWithTable.d.ts +3 -7
  586. package/lib/exercises/probaStat/averageWithTable.d.ts.map +1 -1
  587. package/lib/exercises/probaStat/averageWithTable.js +44 -28
  588. package/lib/exercises/probaStat/ballsBasicProbas.d.ts +7 -7
  589. package/lib/exercises/probaStat/ballsBasicProbas.js +62 -62
  590. package/lib/exercises/probaStat/cardBasicProbas.d.ts +6 -6
  591. package/lib/exercises/probaStat/cardBasicProbas.js +104 -104
  592. package/lib/exercises/probaStat/conditionalProbability.d.ts +9 -9
  593. package/lib/exercises/probaStat/conditionalProbability.js +91 -91
  594. package/lib/exercises/probaStat/diceBasicProbas.d.ts +8 -8
  595. package/lib/exercises/probaStat/diceBasicProbas.js +77 -77
  596. package/lib/exercises/probaStat/frequencyTable.d.ts +4 -0
  597. package/lib/exercises/probaStat/frequencyTable.d.ts.map +1 -0
  598. package/lib/exercises/probaStat/frequencyTable.js +76 -0
  599. package/lib/exercises/probaStat/index.d.ts +7 -7
  600. package/lib/exercises/probaStat/index.js +23 -23
  601. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts +3 -11
  602. package/lib/exercises/probaStat/marginalAndConditionalFrequency.d.ts.map +1 -1
  603. package/lib/exercises/probaStat/marginalAndConditionalFrequency.js +59 -47
  604. package/lib/exercises/probaStat/median.d.ts +3 -8
  605. package/lib/exercises/probaStat/median.d.ts.map +1 -1
  606. package/lib/exercises/probaStat/median.js +47 -30
  607. package/lib/exercises/probaStat/medianList.d.ts +3 -8
  608. package/lib/exercises/probaStat/medianList.d.ts.map +1 -1
  609. package/lib/exercises/probaStat/medianList.js +46 -27
  610. package/lib/exercises/probaStat/probabilityTree.d.ts +12 -12
  611. package/lib/exercises/probaStat/probabilityTree.js +140 -140
  612. package/lib/exercises/probaStat/quartiles.d.ts +3 -8
  613. package/lib/exercises/probaStat/quartiles.d.ts.map +1 -1
  614. package/lib/exercises/probaStat/quartiles.js +47 -30
  615. package/lib/exercises/probaStat/quartilesList.d.ts +3 -8
  616. package/lib/exercises/probaStat/quartilesList.d.ts.map +1 -1
  617. package/lib/exercises/probaStat/quartilesList.js +56 -36
  618. package/lib/exercises/probaStat/stats1var/averageWithTable.d.ts +7 -7
  619. package/lib/exercises/probaStat/stats1var/averageWithTable.js +61 -61
  620. package/lib/exercises/probaStat/stats1var/index.d.ts +6 -6
  621. package/lib/exercises/probaStat/stats1var/index.js +22 -22
  622. package/lib/exercises/probaStat/stats1var/marginalAndConditionalFrequency.d.ts +10 -10
  623. package/lib/exercises/probaStat/stats1var/marginalAndConditionalFrequency.js +122 -122
  624. package/lib/exercises/probaStat/stats1var/median.d.ts +6 -6
  625. package/lib/exercises/probaStat/stats1var/median.js +64 -64
  626. package/lib/exercises/probaStat/stats1var/medianList.d.ts +6 -6
  627. package/lib/exercises/probaStat/stats1var/medianList.js +55 -55
  628. package/lib/exercises/probaStat/stats1var/quartiles.d.ts +8 -8
  629. package/lib/exercises/probaStat/stats1var/quartiles.js +77 -77
  630. package/lib/exercises/probaStat/stats1var/quartilesList.d.ts +7 -7
  631. package/lib/exercises/probaStat/stats1var/quartilesList.js +71 -71
  632. package/lib/exercises/probaStat/stats2var/averagePoint.d.ts +7 -7
  633. package/lib/exercises/probaStat/stats2var/averagePoint.js +65 -65
  634. package/lib/exercises/probaStat/stats2var/index.d.ts +1 -1
  635. package/lib/exercises/probaStat/stats2var/index.js +17 -17
  636. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.d.ts +8 -8
  637. package/lib/exercises/sequences/arithmetic/arithmeticExplicitFormulaUsage.js +48 -48
  638. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.d.ts +7 -7
  639. package/lib/exercises/sequences/arithmetic/arithmeticFindExplicitFormula.js +55 -55
  640. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.d.ts +8 -8
  641. package/lib/exercises/sequences/arithmetic/arithmeticFindReason.js +48 -48
  642. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.d.ts +8 -8
  643. package/lib/exercises/sequences/arithmetic/arithmeticReasonUsage.js +47 -47
  644. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.d.ts +8 -8
  645. package/lib/exercises/sequences/arithmetic/arithmeticRecurrenceFormulaUsage.js +47 -47
  646. package/lib/exercises/sequences/arithmetic/arithmeticSum.d.ts +1 -0
  647. package/lib/exercises/sequences/arithmetic/arithmeticSum.d.ts.map +1 -0
  648. package/lib/exercises/sequences/arithmetic/arithmeticSum.js +1 -0
  649. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.d.ts +8 -8
  650. package/lib/exercises/sequences/arithmetic/arithmeticThresholdFind.js +57 -57
  651. package/lib/exercises/sequences/arithmetic/firstIntegersSum.d.ts +6 -6
  652. package/lib/exercises/sequences/arithmetic/firstIntegersSum.js +46 -46
  653. package/lib/exercises/sequences/arithmetic/index.d.ts +7 -7
  654. package/lib/exercises/sequences/arithmetic/index.js +23 -23
  655. package/lib/exercises/sequences/explicitFormulaUsage.d.ts +7 -7
  656. package/lib/exercises/sequences/explicitFormulaUsage.js +50 -50
  657. package/lib/exercises/sequences/genericSequenceVariations.d.ts +6 -6
  658. package/lib/exercises/sequences/genericSequenceVariations.js +52 -52
  659. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts +8 -8
  660. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +52 -52
  661. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.d.ts +7 -7
  662. package/lib/exercises/sequences/geometric/geometricFindExplicitFormula.js +60 -60
  663. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts +8 -8
  664. package/lib/exercises/sequences/geometric/geometricFindReason.js +51 -51
  665. package/lib/exercises/sequences/geometric/geometricFirstTermsSum.d.ts +7 -7
  666. package/lib/exercises/sequences/geometric/geometricFirstTermsSum.js +55 -55
  667. package/lib/exercises/sequences/geometric/geometricReasonUsage.d.ts +8 -8
  668. package/lib/exercises/sequences/geometric/geometricReasonUsage.js +49 -49
  669. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.d.ts +8 -8
  670. package/lib/exercises/sequences/geometric/geometricRecurrenceFormulaUsage.js +49 -49
  671. package/lib/exercises/sequences/geometric/index.d.ts +6 -6
  672. package/lib/exercises/sequences/geometric/index.js +22 -22
  673. package/lib/exercises/sequences/index.d.ts +5 -5
  674. package/lib/exercises/sequences/index.js +21 -21
  675. package/lib/exercises/sequences/recurrenceFormulaUsage.d.ts +8 -8
  676. package/lib/exercises/sequences/recurrenceFormulaUsage.js +55 -55
  677. package/lib/exercises/sets/index.d.ts +2 -2
  678. package/lib/exercises/sets/index.js +18 -18
  679. package/lib/exercises/sets/intervals/index.d.ts +3 -3
  680. package/lib/exercises/sets/intervals/index.js +19 -19
  681. package/lib/exercises/sets/intervals/inequalityToInterval.d.ts +7 -7
  682. package/lib/exercises/sets/intervals/inequalityToInterval.js +145 -145
  683. package/lib/exercises/sets/intervals/intervalBelonging.d.ts +3 -0
  684. package/lib/exercises/sets/intervals/intervalBelonging.d.ts.map +1 -1
  685. package/lib/exercises/sets/intervals/intervalBelonging.js +68 -64
  686. package/lib/exercises/sets/intervals/intervalsIntersection.d.ts +7 -7
  687. package/lib/exercises/sets/intervals/intervalsIntersection.js +56 -56
  688. package/lib/exercises/sets/intervals/intervalsUnion.d.ts +7 -7
  689. package/lib/exercises/sets/intervals/intervalsUnion.js +48 -48
  690. package/lib/exercises/sets/intervalsUnion.d.ts +4 -0
  691. package/lib/exercises/sets/intervalsUnion.d.ts.map +1 -0
  692. package/lib/exercises/sets/intervalsUnion.js +55 -0
  693. package/lib/exercises/sets/setBelonging.d.ts +7 -7
  694. package/lib/exercises/sets/setBelonging.js +84 -84
  695. package/lib/exercises/squareRoots/index.d.ts +5 -5
  696. package/lib/exercises/squareRoots/index.js +21 -21
  697. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts +6 -6
  698. package/lib/exercises/squareRoots/simpifySquareRoot.js +54 -54
  699. package/lib/exercises/squareRoots/squareRootEquation.d.ts +6 -6
  700. package/lib/exercises/squareRoots/squareRootEquation.js +54 -54
  701. package/lib/exercises/squareRoots/squareRootIdentities.d.ts +10 -10
  702. package/lib/exercises/squareRoots/squareRootIdentities.js +124 -124
  703. package/lib/exercises/squareRoots/squareRootsDistributivity.d.ts +9 -9
  704. package/lib/exercises/squareRoots/squareRootsDistributivity.js +67 -67
  705. package/lib/exercises/squareRoots/squareRootsSum.d.ts +12 -12
  706. package/lib/exercises/squareRoots/squareRootsSum.js +79 -79
  707. package/lib/exercises/trigonometry/associatePoint.d.ts +6 -6
  708. package/lib/exercises/trigonometry/associatePoint.js +62 -62
  709. package/lib/exercises/trigonometry/index.d.ts +6 -6
  710. package/lib/exercises/trigonometry/index.js +22 -22
  711. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts +7 -7
  712. package/lib/exercises/trigonometry/mainRemarkableValues.js +69 -69
  713. package/lib/exercises/trigonometry/remarkableValues.d.ts +7 -7
  714. package/lib/exercises/trigonometry/remarkableValues.js +72 -72
  715. package/lib/exercises/trigonometry/trigonometry.d.ts +10 -10
  716. package/lib/exercises/trigonometry/trigonometry.js +114 -114
  717. package/lib/exercises/trigonometry/trigonometryAngleCalcul.d.ts +8 -8
  718. package/lib/exercises/trigonometry/trigonometryAngleCalcul.js +73 -73
  719. package/lib/exercises/trigonometry/trigonometrySideCalcul.d.ts +9 -9
  720. package/lib/exercises/trigonometry/trigonometrySideCalcul.js +85 -85
  721. package/lib/exercises/utils/cardsData.d.ts +21 -21
  722. package/lib/exercises/utils/cardsData.js +26 -26
  723. package/lib/exercises/utils/geogebra/getAdaptedCoords.js +1 -1
  724. package/lib/exercises/utils/getDistinctQuestions.d.ts +10 -10
  725. package/lib/exercises/utils/getDistinctQuestions.js +37 -37
  726. package/lib/exercises/utils/keys/equationKeys.d.ts +2 -2
  727. package/lib/exercises/utils/keys/equationKeys.js +12 -12
  728. package/lib/exercises/utils/keys/inequationKeys.d.ts +2 -2
  729. package/lib/exercises/utils/keys/inequationKeys.js +17 -17
  730. package/lib/exercises/utils/sum.test.d.ts +2 -0
  731. package/lib/exercises/utils/sum.test.d.ts.map +1 -0
  732. package/lib/exercises/utils/sum.test.js +22 -0
  733. package/lib/index.d.ts +767 -759
  734. package/lib/index.d.ts.map +1 -1
  735. package/lib/index.js +61 -61
  736. package/lib/math/complex/complex.d.ts +24 -24
  737. package/lib/math/complex/complex.js +104 -104
  738. package/lib/math/geometry/line.d.ts +3 -0
  739. package/lib/math/geometry/line.d.ts.map +1 -0
  740. package/lib/math/geometry/line.js +6 -0
  741. package/lib/math/geometry/point.d.ts +31 -31
  742. package/lib/math/geometry/point.js +73 -73
  743. package/lib/math/geometry/triangles.d.ts +53 -53
  744. package/lib/math/geometry/triangles.js +193 -193
  745. package/lib/math/geometry/vector.d.ts +17 -17
  746. package/lib/math/geometry/vector.js +49 -49
  747. package/lib/math/inequations/inequation.d.ts +15 -0
  748. package/lib/math/inequations/inequation.d.ts.map +1 -0
  749. package/lib/math/inequations/inequation.js +48 -0
  750. package/lib/math/numbers/decimals/decimal.d.ts +31 -31
  751. package/lib/math/numbers/decimals/decimal.js +195 -195
  752. package/lib/math/numbers/epsilon.d.ts +1 -1
  753. package/lib/math/numbers/epsilon.js +10 -10
  754. package/lib/math/numbers/integer/integer.d.ts +20 -20
  755. package/lib/math/numbers/integer/integer.js +111 -111
  756. package/lib/math/numbers/integer/power.d.ts +14 -14
  757. package/lib/math/numbers/integer/power.js +52 -52
  758. package/lib/math/numbers/integer/primes.d.ts +1 -1
  759. package/lib/math/numbers/integer/primes.js +7 -7
  760. package/lib/math/numbers/logarithms/ln.d.ts +11 -11
  761. package/lib/math/numbers/logarithms/ln.js +18 -18
  762. package/lib/math/numbers/nombre.d.ts +18 -18
  763. package/lib/math/numbers/nombre.js +37 -37
  764. package/lib/math/numbers/rationals/rational.d.ts +30 -30
  765. package/lib/math/numbers/rationals/rational.js +132 -132
  766. package/lib/math/numbers/reals/extendedRingElement.d.ts +14 -15
  767. package/lib/math/numbers/reals/extendedRingElement.d.ts.map +1 -1
  768. package/lib/math/numbers/reals/extendedRingElement.js +41 -41
  769. package/lib/math/numbers/reals/real.d.ts +32 -32
  770. package/lib/math/numbers/reals/real.js +114 -114
  771. package/lib/math/numbers/reals/squareRoot.d.ts +19 -0
  772. package/lib/math/numbers/reals/squareRoot.d.ts.map +1 -0
  773. package/lib/math/numbers/reals/squareRoot.js +63 -0
  774. package/lib/math/polynomials/affine.d.ts +15 -15
  775. package/lib/math/polynomials/affine.js +44 -44
  776. package/lib/math/polynomials/monom.d.ts +4 -4
  777. package/lib/math/polynomials/monom.js +14 -14
  778. package/lib/math/polynomials/polynomial.d.ts +46 -46
  779. package/lib/math/polynomials/polynomial.js +379 -379
  780. package/lib/math/polynomials/rationalFrac.d.ts +11 -11
  781. package/lib/math/polynomials/rationalFrac.js +50 -50
  782. package/lib/math/polynomials/trinom.d.ts +33 -33
  783. package/lib/math/polynomials/trinom.d.ts.map +1 -1
  784. package/lib/math/polynomials/trinom.js +176 -176
  785. package/lib/math/sequences/arithmeticSequence.js +1 -1
  786. package/lib/math/sequences/geometricSequence.d.ts +13 -13
  787. package/lib/math/sequences/geometricSequence.js +76 -76
  788. package/lib/math/sequences/sequence.d.ts +24 -24
  789. package/lib/math/sequences/sequence.js +22 -22
  790. package/lib/math/sets/discreteSet.d.ts +10 -10
  791. package/lib/math/sets/discreteSet.js +28 -28
  792. package/lib/math/sets/emptySet.js +6 -6
  793. package/lib/math/sets/intervals/intervals.d.ts +35 -35
  794. package/lib/math/sets/intervals/intervals.js +261 -261
  795. package/lib/math/sets/mathSet.d.ts +8 -8
  796. package/lib/math/sets/mathSet.js +11 -11
  797. package/lib/math/sets/mathSetInterface.d.ts +6 -6
  798. package/lib/math/sets/mathSetInterface.js +2 -2
  799. package/lib/math/trigonometry/remarkableValue.d.ts +8 -8
  800. package/lib/math/trigonometry/remarkableValue.js +30 -30
  801. package/lib/math/trigonometry/remarkableValues.d.ts +8 -8
  802. package/lib/math/trigonometry/remarkableValues.js +117 -117
  803. package/lib/math/utils/arithmetic/coprimesOf.d.ts +1 -1
  804. package/lib/math/utils/arithmetic/coprimesOf.js +13 -13
  805. package/lib/math/utils/arithmetic/dividersOf.d.ts +1 -1
  806. package/lib/math/utils/arithmetic/dividersOf.js +12 -12
  807. package/lib/math/utils/arithmetic/gcd.d.ts +1 -1
  808. package/lib/math/utils/arithmetic/gcd.js +13 -13
  809. package/lib/math/utils/arithmetic/isSquare.d.ts +1 -1
  810. package/lib/math/utils/arithmetic/isSquare.js +7 -7
  811. package/lib/math/utils/arithmetic/lcd.d.ts +1 -1
  812. package/lib/math/utils/arithmetic/lcd.js +12 -12
  813. package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts +1 -1
  814. package/lib/math/utils/arithmetic/nonCoprimesOf.js +13 -13
  815. package/lib/math/utils/arithmetic/nonDividersOf.d.ts +1 -1
  816. package/lib/math/utils/arithmetic/nonDividersOf.js +14 -14
  817. package/lib/math/utils/arithmetic/primeFactors.d.ts +5 -5
  818. package/lib/math/utils/arithmetic/primeFactors.js +22 -22
  819. package/lib/math/utils/decimals/decimalPartLengthOf.d.ts +1 -1
  820. package/lib/math/utils/decimals/decimalPartLengthOf.js +14 -14
  821. package/lib/math/utils/geometry/growthRate.d.ts +2 -0
  822. package/lib/math/utils/geometry/growthRate.d.ts.map +1 -0
  823. package/lib/math/utils/geometry/growthRate.js +9 -0
  824. package/lib/math/utils/latex/frenchify.d.ts +1 -1
  825. package/lib/math/utils/latex/frenchify.js +9 -9
  826. package/lib/math/utils/random/randTupleInt.d.ts +13 -13
  827. package/lib/math/utils/random/randTupleInt.js +30 -30
  828. package/lib/math/utils/random/randint.d.ts +4 -4
  829. package/lib/math/utils/random/randint.js +18 -18
  830. package/lib/math/utils/round.d.ts +1 -1
  831. package/lib/math/utils/round.js +8 -8
  832. package/lib/server.d.ts +2 -2
  833. package/lib/server.js +120 -120
  834. package/lib/tree/nodes/algebraicNode.d.ts +12 -11
  835. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  836. package/lib/tree/nodes/algebraicNode.js +5 -5
  837. package/lib/tree/nodes/complex/complexNode.d.ts +13 -13
  838. package/lib/tree/nodes/complex/complexNode.js +43 -43
  839. package/lib/tree/nodes/equations/equalNode.d.ts +12 -12
  840. package/lib/tree/nodes/equations/equalNode.d.ts.map +1 -1
  841. package/lib/tree/nodes/equations/equalNode.js +40 -38
  842. package/lib/tree/nodes/equations/equationSolutionNode.d.ts +20 -20
  843. package/lib/tree/nodes/equations/equationSolutionNode.js +44 -44
  844. package/lib/tree/nodes/equations/multiEqualNode.d.ts +13 -13
  845. package/lib/tree/nodes/equations/multiEqualNode.js +39 -39
  846. package/lib/tree/nodes/functions/absNode.d.ts +18 -18
  847. package/lib/tree/nodes/functions/absNode.js +48 -48
  848. package/lib/tree/nodes/functions/cosNode.d.ts +18 -18
  849. package/lib/tree/nodes/functions/cosNode.js +65 -65
  850. package/lib/tree/nodes/functions/expNode.d.ts +19 -19
  851. package/lib/tree/nodes/functions/expNode.js +60 -60
  852. package/lib/tree/nodes/functions/functionNode.d.ts +17 -17
  853. package/lib/tree/nodes/functions/functionNode.js +19 -19
  854. package/lib/tree/nodes/functions/log10Node.d.ts +19 -19
  855. package/lib/tree/nodes/functions/log10Node.js +82 -82
  856. package/lib/tree/nodes/functions/logNode.d.ts +19 -19
  857. package/lib/tree/nodes/functions/logNode.js +86 -86
  858. package/lib/tree/nodes/functions/oppositeNode.d.ts +24 -24
  859. package/lib/tree/nodes/functions/oppositeNode.js +79 -79
  860. package/lib/tree/nodes/functions/sinNode.d.ts +18 -18
  861. package/lib/tree/nodes/functions/sinNode.js +65 -65
  862. package/lib/tree/nodes/functions/sqrtNode.d.ts +19 -19
  863. package/lib/tree/nodes/functions/sqrtNode.js +98 -98
  864. package/lib/tree/nodes/geometry/lengthNode.d.ts +18 -18
  865. package/lib/tree/nodes/geometry/lengthNode.js +51 -51
  866. package/lib/tree/nodes/geometry/pointNode.d.ts +14 -14
  867. package/lib/tree/nodes/geometry/pointNode.js +41 -41
  868. package/lib/tree/nodes/geometry/vectorNode.d.ts +12 -12
  869. package/lib/tree/nodes/geometry/vectorNode.js +30 -30
  870. package/lib/tree/nodes/inequations/inequationNode.d.ts +19 -20
  871. package/lib/tree/nodes/inequations/inequationNode.d.ts.map +1 -1
  872. package/lib/tree/nodes/inequations/inequationNode.js +104 -116
  873. package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts +21 -21
  874. package/lib/tree/nodes/inequations/inequationSolutionNode.js +55 -55
  875. package/lib/tree/nodes/node.d.ts +37 -37
  876. package/lib/tree/nodes/node.js +31 -31
  877. package/lib/tree/nodes/numbers/constantNode.d.ts +18 -18
  878. package/lib/tree/nodes/numbers/constantNode.js +43 -43
  879. package/lib/tree/nodes/numbers/infiniteNode.d.ts +4 -4
  880. package/lib/tree/nodes/numbers/infiniteNode.js +7 -7
  881. package/lib/tree/nodes/numbers/numberNode.d.ts +22 -22
  882. package/lib/tree/nodes/numbers/numberNode.js +54 -54
  883. package/lib/tree/nodes/numbers/percentNode.d.ts +11 -11
  884. package/lib/tree/nodes/numbers/percentNode.js +26 -26
  885. package/lib/tree/nodes/numbers/piNode.d.ts +2 -2
  886. package/lib/tree/nodes/numbers/piNode.js +5 -5
  887. package/lib/tree/nodes/operators/addNode.d.ts +22 -22
  888. package/lib/tree/nodes/operators/addNode.js +257 -257
  889. package/lib/tree/nodes/operators/divideNode.d.ts +23 -23
  890. package/lib/tree/nodes/operators/divideNode.js +78 -78
  891. package/lib/tree/nodes/operators/equalNode.d.ts +1 -8
  892. package/lib/tree/nodes/operators/equalNode.d.ts.map +1 -1
  893. package/lib/tree/nodes/operators/equalNode.js +1 -20
  894. package/lib/tree/nodes/operators/fractionNode.d.ts +25 -25
  895. package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
  896. package/lib/tree/nodes/operators/fractionNode.js +160 -154
  897. package/lib/tree/nodes/operators/limitNode.d.ts +28 -28
  898. package/lib/tree/nodes/operators/limitNode.js +56 -56
  899. package/lib/tree/nodes/operators/multiplyNode.d.ts +24 -24
  900. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
  901. package/lib/tree/nodes/operators/multiplyNode.js +311 -311
  902. package/lib/tree/nodes/operators/operatorNode.d.ts +21 -21
  903. package/lib/tree/nodes/operators/operatorNode.js +18 -18
  904. package/lib/tree/nodes/operators/powerNode.d.ts +23 -23
  905. package/lib/tree/nodes/operators/powerNode.js +178 -178
  906. package/lib/tree/nodes/operators/substractNode.d.ts +19 -19
  907. package/lib/tree/nodes/operators/substractNode.js +64 -64
  908. package/lib/tree/nodes/sets/belongsNode.d.ts +14 -14
  909. package/lib/tree/nodes/sets/belongsNode.js +36 -36
  910. package/lib/tree/nodes/sets/discreteSetNode.d.ts +16 -16
  911. package/lib/tree/nodes/sets/discreteSetNode.js +60 -60
  912. package/lib/tree/nodes/sets/intervalNode.d.ts +25 -25
  913. package/lib/tree/nodes/sets/intervalNode.js +77 -77
  914. package/lib/tree/nodes/sets/setNode.d.ts +11 -11
  915. package/lib/tree/nodes/sets/setNode.js +14 -14
  916. package/lib/tree/nodes/sets/unionIntervalNode.d.ts +21 -21
  917. package/lib/tree/nodes/sets/unionIntervalNode.js +50 -50
  918. package/lib/tree/nodes/variables/variableNode.d.ts +17 -17
  919. package/lib/tree/nodes/variables/variableNode.js +46 -46
  920. package/lib/tree/parsers/derivateParser.js +62 -62
  921. package/lib/tree/parsers/simplify.js +99 -99
  922. package/lib/tree/utilities/functionComposition.d.ts +4 -4
  923. package/lib/tree/utilities/functionComposition.js +14 -14
  924. package/lib/tree/utilities/operatorComposition.d.ts +4 -4
  925. package/lib/tree/utilities/operatorComposition.js +14 -14
  926. package/lib/types/class.d.ts +3 -3
  927. package/lib/types/class.js +2 -2
  928. package/lib/types/keyIds.d.ts +31 -31
  929. package/lib/types/keyIds.d.ts.map +1 -1
  930. package/lib/types/keyIds.js +2 -2
  931. package/lib/utils/arrayEqual.d.ts +1 -1
  932. package/lib/utils/arrayEqual.js +13 -13
  933. package/lib/utils/average.d.ts +1 -1
  934. package/lib/utils/average.js +9 -9
  935. package/lib/utils/cartesianProducts.d.ts +12 -12
  936. package/lib/utils/cartesianProducts.js +64 -64
  937. package/lib/utils/coinFlip.d.ts +1 -1
  938. package/lib/utils/coinFlip.js +7 -7
  939. package/lib/utils/diceFlip.d.ts +1 -1
  940. package/lib/utils/diceFlip.js +12 -12
  941. package/lib/utils/enumToArray.d.ts +7 -7
  942. package/lib/utils/enumToArray.js +16 -16
  943. package/lib/utils/isInt.d.ts +1 -1
  944. package/lib/utils/isInt.js +7 -7
  945. package/lib/utils/isLetter.d.ts +1 -1
  946. package/lib/utils/isLetter.js +7 -7
  947. package/lib/utils/permutations.d.ts +1 -1
  948. package/lib/utils/permutations.js +21 -21
  949. package/lib/utils/probaFlip.d.ts +6 -6
  950. package/lib/utils/probaFlip.js +12 -12
  951. package/lib/utils/probaLawFlip.d.ts +1 -1
  952. package/lib/utils/probaLawFlip.js +19 -19
  953. package/lib/utils/random.d.ts +1 -1
  954. package/lib/utils/random.js +7 -7
  955. package/lib/utils/randomEnumValue.d.ts +1 -1
  956. package/lib/utils/randomEnumValue.js +9 -9
  957. package/lib/utils/randomLetter.d.ts +1 -1
  958. package/lib/utils/randomLetter.js +11 -11
  959. package/lib/utils/shuffle.d.ts +1 -1
  960. package/lib/utils/shuffle.js +15 -15
  961. package/package.json +1 -1
@@ -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"}
package/lib/index.js CHANGED
@@ -1,61 +1,61 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.mathExercises = void 0;
27
- /**
28
- * TODO
29
- * Décimal : permettre facilement -0.xxx
30
- * Tree shaking export
31
- *
32
- * VEA:
33
- * -> -3x est bien transofmré en -3*x, x*(-3) mais pas en -x*3
34
- * ->> faire le meme delire que pour les power mais pour les opposite ?
35
- * c'est à dire créer toutes les permuts en déplacant le moins qquepart
36
- * -> faire des nodes pour les Ensembles de nombre
37
- *
38
- * !-> choses pour lesquelles la v1 ne marchera pas :
39
- * !-- fractions non réduites
40
- * !-- nbs décimaux avec des 0
41
- * !-- nb quelconque de moins, genre -3*-4 ou -x/-y
42
- * !-> pour ces choses là il faut obligatoirement parser la rpéonse élève ?
43
- *
44
- * Passer les sqrtNode en tree-iable
45
- *
46
- *
47
- *
48
- * !!!à fix :
49
- * ! fraction réductible
50
- * ! 0,20 au lieu de 0,2
51
- * ! moins partout dans fraction
52
- * !puissances négatives vers inverse fraction
53
- * ! simplification du ln
54
- * ! meileure gestion des [] : le clavier devriat pouvoir produire des left/right ;
55
- * !aussi en tapant [ puis diviser, le crochet passe en numérateur
56
- * ! espace tous les 3 chiffres dans un nb (le clavier doit le fournir aussi!)
57
-
58
- */
59
- const Exercises = __importStar(require("./exercises"));
60
- const mathExercises = Object.values(Exercises);
61
- exports.mathExercises = mathExercises;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.mathExercises = void 0;
27
+ /**
28
+ * TODO
29
+ * Décimal : permettre facilement -0.xxx
30
+ * Tree shaking export
31
+ *
32
+ * VEA:
33
+ * -> -3x est bien transofmré en -3*x, x*(-3) mais pas en -x*3
34
+ * ->> faire le meme delire que pour les power mais pour les opposite ?
35
+ * c'est à dire créer toutes les permuts en déplacant le moins qquepart
36
+ * -> faire des nodes pour les Ensembles de nombre
37
+ *
38
+ * !-> choses pour lesquelles la v1 ne marchera pas :
39
+ * !-- fractions non réduites
40
+ * !-- nbs décimaux avec des 0
41
+ * !-- nb quelconque de moins, genre -3*-4 ou -x/-y
42
+ * !-> pour ces choses là il faut obligatoirement parser la rpéonse élève ?
43
+ *
44
+ * Passer les sqrtNode en tree-iable
45
+ *
46
+ *
47
+ *
48
+ * !!!à fix :
49
+ * ! fraction réductible
50
+ * ! 0,20 au lieu de 0,2
51
+ * ! moins partout dans fraction
52
+ * !puissances négatives vers inverse fraction
53
+ * ! simplification du ln
54
+ * ! meileure gestion des [] : le clavier devriat pouvoir produire des left/right ;
55
+ * !aussi en tapant [ puis diviser, le crochet passe en numérateur
56
+ * ! espace tous les 3 chiffres dans un nb (le clavier doit le fournir aussi!)
57
+
58
+ */
59
+ const Exercises = __importStar(require("./exercises"));
60
+ const mathExercises = Object.values(Exercises);
61
+ exports.mathExercises = mathExercises;
@@ -1,25 +1,25 @@
1
- import { ComplexNode } from "../../tree/nodes/complex/complexNode";
2
- import { OppositeNode } from "../../tree/nodes/functions/oppositeNode";
3
- import { NumberNode } from "../../tree/nodes/numbers/numberNode";
4
- import { FractionNode } from "../../tree/nodes/operators/fractionNode";
5
- export declare abstract class ComplexConstructor {
6
- static random(): Complex;
7
- static randomNotReal(): Complex;
8
- }
9
- export declare class Complex {
10
- re: number;
11
- im: number;
12
- constructor(re: number, im: number);
13
- moduleSquared(): number;
14
- inverseNode(): ComplexNode;
15
- add(z: Complex): Complex;
16
- divideNode(z: Complex): ComplexNode;
17
- multiply(z: Complex): Complex;
18
- times(n: number): Complex;
19
- opposite(): Complex;
20
- conjugate(): Complex;
21
- toArgumentTree(): NumberNode | import("../../tree/nodes/numbers/constantNode").ConstantNode | FractionNode | OppositeNode | undefined;
22
- toModuleTree(): import("../../tree/nodes/algebraicNode").AlgebraicNode;
23
- toTree(): ComplexNode;
24
- }
1
+ import { ComplexNode } from "../../tree/nodes/complex/complexNode";
2
+ import { OppositeNode } from "../../tree/nodes/functions/oppositeNode";
3
+ import { NumberNode } from "../../tree/nodes/numbers/numberNode";
4
+ import { FractionNode } from "../../tree/nodes/operators/fractionNode";
5
+ export declare abstract class ComplexConstructor {
6
+ static random(): Complex;
7
+ static randomNotReal(): Complex;
8
+ }
9
+ export declare class Complex {
10
+ re: number;
11
+ im: number;
12
+ constructor(re: number, im: number);
13
+ moduleSquared(): number;
14
+ inverseNode(): ComplexNode;
15
+ add(z: Complex): Complex;
16
+ divideNode(z: Complex): ComplexNode;
17
+ multiply(z: Complex): Complex;
18
+ times(n: number): Complex;
19
+ opposite(): Complex;
20
+ conjugate(): Complex;
21
+ toArgumentTree(): NumberNode | import("../../tree/nodes/numbers/constantNode").ConstantNode | FractionNode | OppositeNode | undefined;
22
+ toModuleTree(): import("../../tree/nodes/algebraicNode").AlgebraicNode;
23
+ toTree(): ComplexNode;
24
+ }
25
25
  //# sourceMappingURL=complex.d.ts.map
@@ -1,104 +1,104 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Complex = exports.ComplexConstructor = void 0;
4
- const complexNode_1 = require("../../tree/nodes/complex/complexNode");
5
- const oppositeNode_1 = require("../../tree/nodes/functions/oppositeNode");
6
- const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
7
- const piNode_1 = require("../../tree/nodes/numbers/piNode");
8
- const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
9
- const rational_1 = require("../numbers/rationals/rational");
10
- const real_1 = require("../numbers/reals/real");
11
- const randint_1 = require("../utils/random/randint");
12
- class ComplexConstructor {
13
- static random() {
14
- const re = (0, randint_1.randint)(-10, 11);
15
- let im = 0;
16
- do {
17
- im = (0, randint_1.randint)(-10, 11);
18
- } while (re === 0 && im === 0);
19
- return new Complex(re, im);
20
- }
21
- static randomNotReal() {
22
- const re = (0, randint_1.randint)(-10, 11);
23
- let im = 0;
24
- do {
25
- im = (0, randint_1.randint)(-10, 11, [0]);
26
- } while (re === 0 && im === 0);
27
- return new Complex(re, im);
28
- }
29
- }
30
- exports.ComplexConstructor = ComplexConstructor;
31
- class Complex {
32
- constructor(re, im) {
33
- this.re = re;
34
- this.im = im;
35
- }
36
- moduleSquared() {
37
- return this.re ** 2 + this.im ** 2;
38
- }
39
- inverseNode() {
40
- const moduleSq = this.moduleSquared();
41
- const conj = this.conjugate();
42
- const invRe = new rational_1.Rational(conj.re, moduleSq).simplify().toTree();
43
- const invIm = new rational_1.Rational(conj.im, moduleSq).simplify().toTree();
44
- return new complexNode_1.ComplexNode(invRe, invIm);
45
- }
46
- add(z) {
47
- return new Complex(this.re + z.re, this.im + z.im);
48
- }
49
- divideNode(z) {
50
- const moduleSq = z.moduleSquared();
51
- const newRe = new rational_1.Rational(this.re * z.re + this.im * z.im, moduleSq)
52
- .simplify()
53
- .toTree();
54
- const newIm = new rational_1.Rational(this.im * z.re - z.im * this.re, moduleSq)
55
- .simplify()
56
- .toTree();
57
- return new complexNode_1.ComplexNode(newRe, newIm);
58
- }
59
- multiply(z) {
60
- return new Complex(this.re * z.re - this.im * z.im, this.re * z.im + this.im * z.re);
61
- }
62
- times(n) {
63
- return new Complex(this.re * n, this.im * n);
64
- }
65
- opposite() {
66
- return new Complex(-this.re, -this.im);
67
- }
68
- conjugate() {
69
- return new Complex(this.re, -this.im);
70
- }
71
- toArgumentTree() {
72
- if (this.re === 0 && this.im === 0)
73
- throw Error("0 n'a pas d'argument");
74
- if (this.re === 0) {
75
- const piOver2 = new fractionNode_1.FractionNode(piNode_1.PiNode, new numberNode_1.NumberNode(2));
76
- if (this.im > 0)
77
- return piOver2;
78
- else
79
- return new oppositeNode_1.OppositeNode(piOver2);
80
- }
81
- if (this.im === 0) {
82
- if (this.re > 0)
83
- return new numberNode_1.NumberNode(0);
84
- else
85
- return piNode_1.PiNode;
86
- }
87
- if (this.re > 0) {
88
- //arctan(b/a)
89
- }
90
- if (this.im > 0) {
91
- //arctan(b/a)+pi
92
- }
93
- if (this.im < 0) {
94
- //arctan(b/a)-pi
95
- }
96
- }
97
- toModuleTree() {
98
- return new real_1.SquareRoot(this.re ** 2 + this.im ** 2).simplify().toTree();
99
- }
100
- toTree() {
101
- return new complexNode_1.ComplexNode(new numberNode_1.NumberNode(this.re), new numberNode_1.NumberNode(this.im));
102
- }
103
- }
104
- exports.Complex = Complex;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Complex = exports.ComplexConstructor = void 0;
4
+ const complexNode_1 = require("../../tree/nodes/complex/complexNode");
5
+ const oppositeNode_1 = require("../../tree/nodes/functions/oppositeNode");
6
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
7
+ const piNode_1 = require("../../tree/nodes/numbers/piNode");
8
+ const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
9
+ const rational_1 = require("../numbers/rationals/rational");
10
+ const real_1 = require("../numbers/reals/real");
11
+ const randint_1 = require("../utils/random/randint");
12
+ class ComplexConstructor {
13
+ static random() {
14
+ const re = (0, randint_1.randint)(-10, 11);
15
+ let im = 0;
16
+ do {
17
+ im = (0, randint_1.randint)(-10, 11);
18
+ } while (re === 0 && im === 0);
19
+ return new Complex(re, im);
20
+ }
21
+ static randomNotReal() {
22
+ const re = (0, randint_1.randint)(-10, 11);
23
+ let im = 0;
24
+ do {
25
+ im = (0, randint_1.randint)(-10, 11, [0]);
26
+ } while (re === 0 && im === 0);
27
+ return new Complex(re, im);
28
+ }
29
+ }
30
+ exports.ComplexConstructor = ComplexConstructor;
31
+ class Complex {
32
+ constructor(re, im) {
33
+ this.re = re;
34
+ this.im = im;
35
+ }
36
+ moduleSquared() {
37
+ return this.re ** 2 + this.im ** 2;
38
+ }
39
+ inverseNode() {
40
+ const moduleSq = this.moduleSquared();
41
+ const conj = this.conjugate();
42
+ const invRe = new rational_1.Rational(conj.re, moduleSq).simplify().toTree();
43
+ const invIm = new rational_1.Rational(conj.im, moduleSq).simplify().toTree();
44
+ return new complexNode_1.ComplexNode(invRe, invIm);
45
+ }
46
+ add(z) {
47
+ return new Complex(this.re + z.re, this.im + z.im);
48
+ }
49
+ divideNode(z) {
50
+ const moduleSq = z.moduleSquared();
51
+ const newRe = new rational_1.Rational(this.re * z.re + this.im * z.im, moduleSq)
52
+ .simplify()
53
+ .toTree();
54
+ const newIm = new rational_1.Rational(this.im * z.re - z.im * this.re, moduleSq)
55
+ .simplify()
56
+ .toTree();
57
+ return new complexNode_1.ComplexNode(newRe, newIm);
58
+ }
59
+ multiply(z) {
60
+ return new Complex(this.re * z.re - this.im * z.im, this.re * z.im + this.im * z.re);
61
+ }
62
+ times(n) {
63
+ return new Complex(this.re * n, this.im * n);
64
+ }
65
+ opposite() {
66
+ return new Complex(-this.re, -this.im);
67
+ }
68
+ conjugate() {
69
+ return new Complex(this.re, -this.im);
70
+ }
71
+ toArgumentTree() {
72
+ if (this.re === 0 && this.im === 0)
73
+ throw Error("0 n'a pas d'argument");
74
+ if (this.re === 0) {
75
+ const piOver2 = new fractionNode_1.FractionNode(piNode_1.PiNode, new numberNode_1.NumberNode(2));
76
+ if (this.im > 0)
77
+ return piOver2;
78
+ else
79
+ return new oppositeNode_1.OppositeNode(piOver2);
80
+ }
81
+ if (this.im === 0) {
82
+ if (this.re > 0)
83
+ return new numberNode_1.NumberNode(0);
84
+ else
85
+ return piNode_1.PiNode;
86
+ }
87
+ if (this.re > 0) {
88
+ //arctan(b/a)
89
+ }
90
+ if (this.im > 0) {
91
+ //arctan(b/a)+pi
92
+ }
93
+ if (this.im < 0) {
94
+ //arctan(b/a)-pi
95
+ }
96
+ }
97
+ toModuleTree() {
98
+ return new real_1.SquareRoot(this.re ** 2 + this.im ** 2).simplify().toTree();
99
+ }
100
+ toTree() {
101
+ return new complexNode_1.ComplexNode(new numberNode_1.NumberNode(this.re), new numberNode_1.NumberNode(this.im));
102
+ }
103
+ }
104
+ exports.Complex = Complex;
@@ -0,0 +1,3 @@
1
+ export declare class Line {
2
+ }
3
+ //# sourceMappingURL=line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/line.ts"],"names":[],"mappings":"AAAA,qBAAa,IAAI;CAAG"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Line = void 0;
4
+ class Line {
5
+ }
6
+ exports.Line = Line;
@@ -1,32 +1,32 @@
1
- import { MathSet } from "../sets/mathSet";
2
- import { AlgebraicNode } from "../../tree/nodes/algebraicNode";
3
- export declare abstract class PointConstructor {
4
- static random(domainX?: MathSet, domainY?: MathSet): Point;
5
- }
6
- export declare class Point {
7
- name: string;
8
- x: AlgebraicNode;
9
- y: AlgebraicNode;
10
- constructor(name: string, x: AlgebraicNode, y: AlgebraicNode);
11
- toTex(): string;
12
- toTexWithCoords(): string;
13
- toCoords(): string;
14
- getXnumber(): number;
15
- getYnumber(): number;
16
- midpoint(B: Point, name?: string): Point;
17
- distanceTo(B: Point): number;
18
- }
19
- /**
20
- * Droite{
21
- * constructor :
22
- * depuis 2 points : A,B --> Droite
23
- * depuis 1 point + coeff dir --> Droite
24
- * avec une équation de droite --> Droite
25
- *
26
- * méthodes :
27
- * toEquation() --> y = 3x+2
28
- * toCoeffDIr --> a
29
-
30
- * }
31
- */
1
+ import { MathSet } from "../sets/mathSet";
2
+ import { AlgebraicNode } from "../../tree/nodes/algebraicNode";
3
+ export declare abstract class PointConstructor {
4
+ static random(domainX?: MathSet, domainY?: MathSet): Point;
5
+ }
6
+ export declare class Point {
7
+ name: string;
8
+ x: AlgebraicNode;
9
+ y: AlgebraicNode;
10
+ constructor(name: string, x: AlgebraicNode, y: AlgebraicNode);
11
+ toTex(): string;
12
+ toTexWithCoords(): string;
13
+ toCoords(): string;
14
+ getXnumber(): number;
15
+ getYnumber(): number;
16
+ midpoint(B: Point, name?: string): Point;
17
+ distanceTo(B: Point): number;
18
+ }
19
+ /**
20
+ * Droite{
21
+ * constructor :
22
+ * depuis 2 points : A,B --> Droite
23
+ * depuis 1 point + coeff dir --> Droite
24
+ * avec une équation de droite --> Droite
25
+ *
26
+ * méthodes :
27
+ * toEquation() --> y = 3x+2
28
+ * toCoeffDIr --> a
29
+
30
+ * }
31
+ */
32
32
  //# sourceMappingURL=point.d.ts.map
@@ -1,73 +1,73 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Point = exports.PointConstructor = void 0;
4
- const node_1 = require("../../tree/nodes/node");
5
- const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
6
- const intervals_1 = require("../sets/intervals/intervals");
7
- const rational_1 = require("../numbers/rationals/rational");
8
- class PointConstructor {
9
- static random(domainX = new intervals_1.Interval("[[-10; 10]]"), domainY = new intervals_1.Interval("[[-10; 10]]")) {
10
- const x = domainX.getRandomElement();
11
- const y = domainY.getRandomElement();
12
- if (x === null || y === null)
13
- throw Error("can't build point with thoses sets");
14
- return new Point("A", new numberNode_1.NumberNode(x.value), new numberNode_1.NumberNode(y.value));
15
- }
16
- }
17
- exports.PointConstructor = PointConstructor;
18
- class Point {
19
- constructor(name, x, y) {
20
- this.name = name;
21
- this.x = x;
22
- this.y = y;
23
- }
24
- toTex() {
25
- return `${this.name}`;
26
- }
27
- toTexWithCoords() {
28
- return `${this.name}\\left(${this.x.toTex()};${this.y.toTex()}\\right)`;
29
- }
30
- toCoords() {
31
- return `\\left(${this.x.toTex()};${this.y.toTex()}\\right)`;
32
- }
33
- getXnumber() {
34
- if (this.x.type !== node_1.NodeType.number)
35
- throw Error("general point not implemented yet");
36
- return this.x.value;
37
- }
38
- getYnumber() {
39
- if (this.y.type !== node_1.NodeType.number)
40
- throw Error("general point not implemented yet");
41
- return this.y.value;
42
- }
43
- midpoint(B, name = "I") {
44
- const types = [this.x.type, this.y.type, B.x.type, B.y.type];
45
- if (types.some((type) => type !== node_1.NodeType.number)) {
46
- throw Error("general midpoint not implemented yet");
47
- }
48
- return new Point(name, new rational_1.Rational(this.x.value + B.x.value, 2)
49
- .simplify()
50
- .toTree(), new rational_1.Rational(this.y.value + B.y.value, 2)
51
- .simplify()
52
- .toTree());
53
- }
54
- distanceTo(B) {
55
- const dx = this.getXnumber() - B.getXnumber();
56
- const dy = this.getYnumber() - B.getYnumber();
57
- return Math.sqrt(dx ** 2 + dy ** 2);
58
- }
59
- }
60
- exports.Point = Point;
61
- /**
62
- * Droite{
63
- * constructor :
64
- * depuis 2 points : A,B --> Droite
65
- * depuis 1 point + coeff dir --> Droite
66
- * avec une équation de droite --> Droite
67
- *
68
- * méthodes :
69
- * toEquation() --> y = 3x+2
70
- * toCoeffDIr --> a
71
-
72
- * }
73
- */
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Point = exports.PointConstructor = void 0;
4
+ const node_1 = require("../../tree/nodes/node");
5
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
6
+ const intervals_1 = require("../sets/intervals/intervals");
7
+ const rational_1 = require("../numbers/rationals/rational");
8
+ class PointConstructor {
9
+ static random(domainX = new intervals_1.Interval("[[-10; 10]]"), domainY = new intervals_1.Interval("[[-10; 10]]")) {
10
+ const x = domainX.getRandomElement();
11
+ const y = domainY.getRandomElement();
12
+ if (x === null || y === null)
13
+ throw Error("can't build point with thoses sets");
14
+ return new Point("A", new numberNode_1.NumberNode(x.value), new numberNode_1.NumberNode(y.value));
15
+ }
16
+ }
17
+ exports.PointConstructor = PointConstructor;
18
+ class Point {
19
+ constructor(name, x, y) {
20
+ this.name = name;
21
+ this.x = x;
22
+ this.y = y;
23
+ }
24
+ toTex() {
25
+ return `${this.name}`;
26
+ }
27
+ toTexWithCoords() {
28
+ return `${this.name}\\left(${this.x.toTex()};${this.y.toTex()}\\right)`;
29
+ }
30
+ toCoords() {
31
+ return `\\left(${this.x.toTex()};${this.y.toTex()}\\right)`;
32
+ }
33
+ getXnumber() {
34
+ if (this.x.type !== node_1.NodeType.number)
35
+ throw Error("general point not implemented yet");
36
+ return this.x.value;
37
+ }
38
+ getYnumber() {
39
+ if (this.y.type !== node_1.NodeType.number)
40
+ throw Error("general point not implemented yet");
41
+ return this.y.value;
42
+ }
43
+ midpoint(B, name = "I") {
44
+ const types = [this.x.type, this.y.type, B.x.type, B.y.type];
45
+ if (types.some((type) => type !== node_1.NodeType.number)) {
46
+ throw Error("general midpoint not implemented yet");
47
+ }
48
+ return new Point(name, new rational_1.Rational(this.x.value + B.x.value, 2)
49
+ .simplify()
50
+ .toTree(), new rational_1.Rational(this.y.value + B.y.value, 2)
51
+ .simplify()
52
+ .toTree());
53
+ }
54
+ distanceTo(B) {
55
+ const dx = this.getXnumber() - B.getXnumber();
56
+ const dy = this.getYnumber() - B.getYnumber();
57
+ return Math.sqrt(dx ** 2 + dy ** 2);
58
+ }
59
+ }
60
+ exports.Point = Point;
61
+ /**
62
+ * Droite{
63
+ * constructor :
64
+ * depuis 2 points : A,B --> Droite
65
+ * depuis 1 point + coeff dir --> Droite
66
+ * avec une équation de droite --> Droite
67
+ *
68
+ * méthodes :
69
+ * toEquation() --> y = 3x+2
70
+ * toCoeffDIr --> a
71
+
72
+ * }
73
+ */