math-exercises 3.0.158 → 3.0.160

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 (268) hide show
  1. package/lib/exercises/math/calculLitteral/equation/exp/expOfFEqualsExpOfGEquation.js +7 -6
  2. package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.d.ts.map +1 -1
  3. package/lib/exercises/math/calculLitteral/equation/exp/expOfTrinomEquals1Equation.js +88 -9
  4. package/lib/exercises/math/calculLitteral/equation/factorizeEquation.d.ts.map +1 -1
  5. package/lib/exercises/math/calculLitteral/equation/factorizeEquation.js +8 -2
  6. package/lib/exercises/math/calculLitteral/equation/index.d.ts +1 -0
  7. package/lib/exercises/math/calculLitteral/equation/index.d.ts.map +1 -1
  8. package/lib/exercises/math/calculLitteral/equation/index.js +1 -0
  9. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.d.ts.map +1 -1
  10. package/lib/exercises/math/calculLitteral/equation/multiplicationEquation.js +27 -2
  11. package/lib/exercises/math/calculLitteral/equation/solveByFactorizingWithIdRmq3.d.ts.map +1 -1
  12. package/lib/exercises/math/calculLitteral/equation/solveByFactorizingWithIdRmq3.js +1 -3
  13. package/lib/exercises/math/calculLitteral/equation/square/equationSquareWithSteps.d.ts.map +1 -1
  14. package/lib/exercises/math/calculLitteral/equation/square/equationSquareWithSteps.js +0 -1
  15. package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.d.ts.map +1 -1
  16. package/lib/exercises/math/calculLitteral/inequations/exp/expOfFEqualsExpOfGInequation.js +11 -4
  17. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.d.ts.map +1 -1
  18. package/lib/exercises/math/calculLitteral/inequations/firstDegreeInequationsType3.js +11 -5
  19. package/lib/exercises/math/calculLitteral/inequations/index.d.ts +1 -0
  20. package/lib/exercises/math/calculLitteral/inequations/index.d.ts.map +1 -1
  21. package/lib/exercises/math/calculLitteral/inequations/index.js +1 -0
  22. package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.d.ts.map +1 -1
  23. package/lib/exercises/math/derivation/derivative/exp/expDerivativeFour.js +91 -21
  24. package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.d.ts.map +1 -1
  25. package/lib/exercises/math/derivation/derivative/exp/expDerivativeOne.js +63 -43
  26. package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.d.ts.map +1 -1
  27. package/lib/exercises/math/derivation/derivative/exp/expDerivativeThree.js +72 -49
  28. package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.d.ts.map +1 -1
  29. package/lib/exercises/math/derivation/derivative/exp/expDerivativeTwo.js +19 -19
  30. package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.d.ts.map +1 -1
  31. package/lib/exercises/math/derivation/derivative/exp/expOverExpDerivative.js +26 -14
  32. package/lib/exercises/math/derivation/derivative/exp/index.d.ts +1 -0
  33. package/lib/exercises/math/derivation/derivative/exp/index.d.ts.map +1 -1
  34. package/lib/exercises/math/derivation/derivative/exp/index.js +1 -0
  35. package/lib/exercises/math/derivation/variations/index.d.ts +1 -0
  36. package/lib/exercises/math/derivation/variations/index.d.ts.map +1 -1
  37. package/lib/exercises/math/derivation/variations/index.js +1 -0
  38. package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.d.ts +7 -0
  39. package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.d.ts.map +1 -0
  40. package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.js +174 -0
  41. package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.d.ts.map +1 -1
  42. package/lib/exercises/math/functions/exponential/algebraic/approxExpAPlusB.js +30 -3
  43. package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.d.ts.map +1 -1
  44. package/lib/exercises/math/functions/exponential/algebraic/approxExpKa.js +12 -7
  45. package/lib/exercises/math/functions/exponential/algebraic/approxExpN.js +1 -1
  46. package/lib/exercises/math/functions/exponential/algebraic/rewriteExpUsingExpA.js +2 -2
  47. package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.d.ts.map +1 -1
  48. package/lib/exercises/math/functions/exponential/definition/approxExpAPlusH.js +33 -44
  49. package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.d.ts.map +1 -1
  50. package/lib/exercises/math/functions/exponential/definition/expAntecedentFromGraph.js +80 -8
  51. package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.d.ts.map +1 -1
  52. package/lib/exercises/math/functions/exponential/definition/expImageFromGraph.js +80 -25
  53. package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.d.ts.map +1 -1
  54. package/lib/exercises/math/functions/exponential/definition/isPlausibleExpFromGraph.js +6 -15
  55. package/lib/exercises/math/functions/exponential/expFactorization.d.ts.map +1 -1
  56. package/lib/exercises/math/functions/exponential/expFactorization.js +54 -42
  57. package/lib/exercises/math/functions/exponential/index.d.ts +2 -0
  58. package/lib/exercises/math/functions/exponential/index.d.ts.map +1 -1
  59. package/lib/exercises/math/functions/exponential/index.js +2 -0
  60. package/lib/exercises/math/functions/trinoms/equation/secondDegreeInequation.js +3 -0
  61. package/lib/exercises/math/functions/trinoms/factoForm/index.d.ts +1 -0
  62. package/lib/exercises/math/functions/trinoms/factoForm/index.d.ts.map +1 -1
  63. package/lib/exercises/math/functions/trinoms/factoForm/index.js +1 -0
  64. package/lib/exercises/math/functions/trinoms/factoForm/trinomDevelopFactorizedForm.d.ts +13 -0
  65. package/lib/exercises/math/functions/trinoms/factoForm/trinomDevelopFactorizedForm.d.ts.map +1 -0
  66. package/lib/exercises/math/functions/trinoms/factoForm/trinomDevelopFactorizedForm.js +147 -0
  67. package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.d.ts.map +1 -1
  68. package/lib/exercises/math/functions/trinoms/roots/niceRootsFromDevForm.js +96 -0
  69. package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.d.ts.map +1 -1
  70. package/lib/exercises/math/functions/trinoms/roots/rootsFromDevForm.js +95 -1
  71. package/lib/exercises/math/functions/trinoms/summitAndCanonical/devFormFromSummitAndPoint.d.ts +9 -0
  72. package/lib/exercises/math/functions/trinoms/summitAndCanonical/devFormFromSummitAndPoint.d.ts.map +1 -0
  73. package/lib/exercises/math/functions/trinoms/summitAndCanonical/devFormFromSummitAndPoint.js +173 -0
  74. package/lib/exercises/math/functions/trinoms/summitAndCanonical/index.d.ts +2 -0
  75. package/lib/exercises/math/functions/trinoms/summitAndCanonical/index.d.ts.map +1 -1
  76. package/lib/exercises/math/functions/trinoms/summitAndCanonical/index.js +2 -0
  77. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromRoots.js +1 -1
  78. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromSymetricPoints.d.ts +9 -0
  79. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromSymetricPoints.d.ts.map +1 -0
  80. package/lib/exercises/math/functions/trinoms/summitAndCanonical/summitAbscissFromSymetricPoints.js +97 -0
  81. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.d.ts.map +1 -1
  82. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusB.js +18 -23
  83. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.d.ts.map +1 -1
  84. package/lib/exercises/math/functions/variations/exp/varOfAEXPlusBOverCEXPlusD.js +24 -26
  85. package/lib/exercises/math/functions/variations/index.d.ts +1 -0
  86. package/lib/exercises/math/functions/variations/index.d.ts.map +1 -1
  87. package/lib/exercises/math/functions/variations/index.js +1 -0
  88. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPerpendicularLine.d.ts +12 -0
  89. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPerpendicularLine.d.ts.map +1 -0
  90. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPerpendicularLine.js +230 -0
  91. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPointAndNormalVector.d.ts +10 -0
  92. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPointAndNormalVector.d.ts.map +1 -0
  93. package/lib/exercises/math/geometry/cartesian/cartesianEquationOfLineFromPointAndNormalVector.js +167 -0
  94. package/lib/exercises/math/geometry/cartesian/index.d.ts +3 -0
  95. package/lib/exercises/math/geometry/cartesian/index.d.ts.map +1 -1
  96. package/lib/exercises/math/geometry/cartesian/index.js +3 -0
  97. package/lib/exercises/math/geometry/cartesian/normalVectorFromCartesianLineEquation.d.ts +10 -0
  98. package/lib/exercises/math/geometry/cartesian/normalVectorFromCartesianLineEquation.d.ts.map +1 -0
  99. package/lib/exercises/math/geometry/cartesian/normalVectorFromCartesianLineEquation.js +131 -0
  100. package/lib/exercises/math/geometry/circles/circleCanonicalEquationFromDevEquation.d.ts +10 -0
  101. package/lib/exercises/math/geometry/circles/circleCanonicalEquationFromDevEquation.d.ts.map +1 -0
  102. package/lib/exercises/math/geometry/circles/circleCanonicalEquationFromDevEquation.js +174 -0
  103. package/lib/exercises/math/geometry/circles/circleCenterAndRadiusFromEquation.d.ts +12 -0
  104. package/lib/exercises/math/geometry/circles/circleCenterAndRadiusFromEquation.d.ts.map +1 -0
  105. package/lib/exercises/math/geometry/circles/circleCenterAndRadiusFromEquation.js +161 -0
  106. package/lib/exercises/math/geometry/circles/circleEquationFromDiameter.d.ts +9 -0
  107. package/lib/exercises/math/geometry/circles/circleEquationFromDiameter.d.ts.map +1 -0
  108. package/lib/exercises/math/geometry/circles/circleEquationFromDiameter.js +145 -0
  109. package/lib/exercises/math/geometry/circles/circleEquationFromPointAndRadius.d.ts +13 -0
  110. package/lib/exercises/math/geometry/circles/circleEquationFromPointAndRadius.d.ts.map +1 -0
  111. package/lib/exercises/math/geometry/circles/circleEquationFromPointAndRadius.js +181 -0
  112. package/lib/exercises/math/geometry/circles/circleRadiusOrCenterFromDevEquation.d.ts +11 -0
  113. package/lib/exercises/math/geometry/circles/circleRadiusOrCenterFromDevEquation.d.ts.map +1 -0
  114. package/lib/exercises/math/geometry/circles/circleRadiusOrCenterFromDevEquation.js +191 -0
  115. package/lib/exercises/math/geometry/circles/index.d.ts +7 -0
  116. package/lib/exercises/math/geometry/circles/index.d.ts.map +1 -0
  117. package/lib/exercises/math/geometry/circles/index.js +6 -0
  118. package/lib/exercises/math/geometry/circles/isPointOnCircleFromCartesianEquation.d.ts +11 -0
  119. package/lib/exercises/math/geometry/circles/isPointOnCircleFromCartesianEquation.d.ts.map +1 -0
  120. package/lib/exercises/math/geometry/circles/isPointOnCircleFromCartesianEquation.js +131 -0
  121. package/lib/exercises/math/geometry/euclidian/pinSegmentFromRotation.d.ts.map +1 -1
  122. package/lib/exercises/math/geometry/euclidian/pinSegmentFromRotation.js +0 -2
  123. package/lib/exercises/math/geometry/index.d.ts +1 -0
  124. package/lib/exercises/math/geometry/index.d.ts.map +1 -1
  125. package/lib/exercises/math/geometry/index.js +1 -0
  126. package/lib/exercises/math/geometry/lines/cartesianEquationOfTriangleHeight.d.ts +10 -0
  127. package/lib/exercises/math/geometry/lines/cartesianEquationOfTriangleHeight.d.ts.map +1 -0
  128. package/lib/exercises/math/geometry/lines/cartesianEquationOfTriangleHeight.js +181 -0
  129. package/lib/exercises/math/geometry/lines/cartesianEquationToReduced.d.ts +4 -1
  130. package/lib/exercises/math/geometry/lines/cartesianEquationToReduced.d.ts.map +1 -1
  131. package/lib/exercises/math/geometry/lines/cartesianEquationToReduced.js +23 -3
  132. package/lib/exercises/math/geometry/lines/index.d.ts +1 -0
  133. package/lib/exercises/math/geometry/lines/index.d.ts.map +1 -1
  134. package/lib/exercises/math/geometry/lines/index.js +1 -0
  135. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/index.d.ts +4 -0
  136. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/index.d.ts.map +1 -0
  137. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/index.js +3 -0
  138. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.d.ts +9 -0
  139. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.d.ts.map +1 -0
  140. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.js +247 -0
  141. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiBH.d.ts +13 -0
  142. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiBH.d.ts.map +1 -0
  143. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiBH.js +452 -0
  144. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.d.ts +9 -0
  145. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.d.ts.map +1 -0
  146. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.js +253 -0
  147. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/index.d.ts +4 -0
  148. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/index.d.ts.map +1 -0
  149. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/index.js +3 -0
  150. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductIdentities.d.ts +10 -0
  151. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductIdentities.d.ts.map +1 -0
  152. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductIdentities.js +174 -0
  153. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductInOrthonormalBasisIJ.d.ts +9 -0
  154. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductInOrthonormalBasisIJ.d.ts.map +1 -0
  155. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductInOrthonormalBasisIJ.js +231 -0
  156. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductLamdbaULambdaV.d.ts +14 -0
  157. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductLamdbaULambdaV.d.ts.map +1 -0
  158. package/lib/exercises/math/geometry/vectors/scalarProduct/alg/scalarProductLamdbaULambdaV.js +292 -0
  159. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/index.d.ts +6 -0
  160. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/index.d.ts.map +1 -0
  161. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/index.js +5 -0
  162. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsBasisIJ.d.ts +9 -0
  163. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsBasisIJ.d.ts.map +1 -0
  164. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsBasisIJ.js +202 -0
  165. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsUsingCoords.d.ts +9 -0
  166. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsUsingCoords.d.ts.map +1 -0
  167. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsOrthogonalVecsUsingCoords.js +127 -0
  168. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnCircle.d.ts +12 -0
  169. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnCircle.d.ts.map +1 -0
  170. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnCircle.js +167 -0
  171. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnPerpendicularBisector.d.ts +12 -0
  172. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnPerpendicularBisector.d.ts.map +1 -0
  173. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsPointOnPerpendicularBisector.js +180 -0
  174. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsRightTriangleUsingPointCoords.d.ts +12 -0
  175. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsRightTriangleUsingPointCoords.d.ts.map +1 -0
  176. package/lib/exercises/math/geometry/vectors/scalarProduct/orth/scalarProductIsRightTriangleUsingPointCoords.js +235 -0
  177. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductComputeBH.d.ts +12 -0
  178. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductComputeBH.d.ts.map +1 -0
  179. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductComputeBH.js +423 -0
  180. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOfVectsOnGrid1.d.ts +17 -0
  181. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOfVectsOnGrid1.d.ts.map +1 -0
  182. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOfVectsOnGrid1.js +347 -0
  183. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductParallelogramDiagonalPlus.d.ts +8 -0
  184. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductParallelogramDiagonalPlus.d.ts.map +1 -0
  185. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductParallelogramDiagonalPlus.js +301 -0
  186. package/lib/exercises/math/probaStat/randomVariable/findValueForFairRandomVariable.d.ts +9 -0
  187. package/lib/exercises/math/probaStat/randomVariable/findValueForFairRandomVariable.d.ts.map +1 -0
  188. package/lib/exercises/math/probaStat/randomVariable/findValueForFairRandomVariable.js +141 -0
  189. package/lib/exercises/math/probaStat/randomVariable/findValueToMatchRandomVariableAverage.d.ts +10 -0
  190. package/lib/exercises/math/probaStat/randomVariable/findValueToMatchRandomVariableAverage.d.ts.map +1 -0
  191. package/lib/exercises/math/probaStat/randomVariable/findValueToMatchRandomVariableAverage.js +174 -0
  192. package/lib/exercises/math/probaStat/randomVariable/index.d.ts +1 -0
  193. package/lib/exercises/math/probaStat/randomVariable/index.d.ts.map +1 -1
  194. package/lib/exercises/math/probaStat/randomVariable/index.js +2 -0
  195. package/lib/exercises/math/sequences/generation/index.d.ts +2 -0
  196. package/lib/exercises/math/sequences/generation/index.d.ts.map +1 -0
  197. package/lib/exercises/math/sequences/generation/index.js +1 -0
  198. package/lib/exercises/math/sequences/generation/recognizeRecurrenceOrExplicit.d.ts +8 -0
  199. package/lib/exercises/math/sequences/generation/recognizeRecurrenceOrExplicit.d.ts.map +1 -0
  200. package/lib/exercises/math/sequences/generation/recognizeRecurrenceOrExplicit.js +63 -0
  201. package/lib/exercises/math/sequences/graph/index.d.ts +2 -0
  202. package/lib/exercises/math/sequences/graph/index.d.ts.map +1 -0
  203. package/lib/exercises/math/sequences/graph/index.js +1 -0
  204. package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.d.ts +11 -0
  205. package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.d.ts.map +1 -0
  206. package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.js +113 -0
  207. package/lib/exercises/math/sequences/index.d.ts +2 -0
  208. package/lib/exercises/math/sequences/index.d.ts.map +1 -1
  209. package/lib/exercises/math/sequences/index.js +2 -0
  210. package/lib/exercises/math/sequences/notation/identifyRankInSequenceTermsList.d.ts +12 -0
  211. package/lib/exercises/math/sequences/notation/identifyRankInSequenceTermsList.d.ts.map +1 -0
  212. package/lib/exercises/math/sequences/notation/identifyRankInSequenceTermsList.js +114 -0
  213. package/lib/exercises/math/sequences/notation/identifySequenceTermInList.d.ts +12 -0
  214. package/lib/exercises/math/sequences/notation/identifySequenceTermInList.d.ts.map +1 -0
  215. package/lib/exercises/math/sequences/notation/identifySequenceTermInList.js +111 -0
  216. package/lib/exercises/math/sequences/notation/index.d.ts +3 -0
  217. package/lib/exercises/math/sequences/notation/index.d.ts.map +1 -0
  218. package/lib/exercises/math/sequences/notation/index.js +2 -0
  219. package/lib/exercises/math/spaceGeometry/basis/findSpacePointOnRectangularPrism.d.ts.map +1 -1
  220. package/lib/exercises/math/spaceGeometry/basis/findSpacePointOnRectangularPrism.js +0 -1
  221. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.d.ts.map +1 -1
  222. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.js +0 -2
  223. package/lib/exercises/vea/cartesianLineVEA.d.ts +2 -0
  224. package/lib/exercises/vea/cartesianLineVEA.d.ts.map +1 -0
  225. package/lib/exercises/vea/cartesianLineVEA.js +1 -0
  226. package/lib/exercises/vea/pointVEA.d.ts +2 -0
  227. package/lib/exercises/vea/pointVEA.d.ts.map +1 -0
  228. package/lib/exercises/vea/pointVEA.js +7 -0
  229. package/lib/index.d.ts +164 -1
  230. package/lib/index.d.ts.map +1 -1
  231. package/lib/math/geometry/circle.d.ts +6 -0
  232. package/lib/math/geometry/circle.d.ts.map +1 -1
  233. package/lib/math/geometry/circle.js +16 -0
  234. package/lib/math/geometry/line.d.ts +2 -0
  235. package/lib/math/geometry/line.d.ts.map +1 -1
  236. package/lib/math/geometry/line.js +7 -0
  237. package/lib/math/geometry/point.d.ts +1 -0
  238. package/lib/math/geometry/point.d.ts.map +1 -1
  239. package/lib/math/geometry/point.js +5 -0
  240. package/lib/math/geometry/polygons/relationPP.d.ts +8 -0
  241. package/lib/math/geometry/polygons/relationPP.d.ts.map +1 -0
  242. package/lib/math/geometry/polygons/relationPP.js +41 -0
  243. package/lib/math/polynomials/trinom.d.ts +1 -1
  244. package/lib/math/polynomials/trinom.d.ts.map +1 -1
  245. package/lib/math/polynomials/trinom.js +15 -6
  246. package/lib/math/utils/arithmetic/primeFactors.js +1 -1
  247. package/lib/math/utils/geometry/randomVecs2.d.ts +6 -0
  248. package/lib/math/utils/geometry/randomVecs2.d.ts.map +1 -0
  249. package/lib/math/utils/geometry/randomVecs2.js +34 -0
  250. package/lib/tests/questionTest.d.ts.map +1 -1
  251. package/lib/tests/questionTest.js +2 -2
  252. package/lib/tree/nodes/equations/equationSolutionNode.d.ts +1 -0
  253. package/lib/tree/nodes/equations/equationSolutionNode.d.ts.map +1 -1
  254. package/lib/tree/nodes/equations/equationSolutionNode.js +3 -0
  255. package/lib/tree/nodes/functions/expNode.d.ts +1 -1
  256. package/lib/tree/nodes/functions/expNode.d.ts.map +1 -1
  257. package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts +1 -0
  258. package/lib/tree/nodes/inequations/inequationSolutionNode.d.ts.map +1 -1
  259. package/lib/tree/nodes/inequations/inequationSolutionNode.js +3 -0
  260. package/lib/tree/nodes/operators/fractionNode.d.ts +1 -1
  261. package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -1
  262. package/lib/tree/nodes/operators/fractionNode.js +6 -4
  263. package/lib/tree/nodes/sets/intervalNode.d.ts +6 -0
  264. package/lib/tree/nodes/sets/intervalNode.d.ts.map +1 -1
  265. package/lib/tree/nodes/sets/namedIntervalNode.d.ts +31 -0
  266. package/lib/tree/nodes/sets/namedIntervalNode.d.ts.map +1 -0
  267. package/lib/tree/nodes/sets/namedIntervalNode.js +77 -0
  268. package/package.json +1 -1
@@ -0,0 +1,114 @@
1
+ import { addValidProp, shuffleProps, GeneratorOptionTarget, GeneratorOptionType, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
2
+ import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
+ import { numberVEA } from "../../../../exercises/vea/numberVEA.js";
4
+ import { randint } from "../../../../math/utils/random/randint.js";
5
+ import { randTupleInt } from "../../../../math/utils/random/randTupleInt.js";
6
+ import { random } from "../../../../utils/alea/random.js";
7
+ import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
8
+ const getPropositions = (n, { answer }) => {
9
+ const propositions = [];
10
+ addValidProp(propositions, answer);
11
+ const ansNb = answer.unfrenchify();
12
+ tryToAddWrongProp(propositions, (ansNb + 1).frenchify());
13
+ if (ansNb > 0)
14
+ tryToAddWrongProp(propositions, (ansNb - 1).frenchify());
15
+ propWhile(propositions, n, () => {
16
+ tryToAddWrongProp(propositions, random([0, 1, 2, 3, 4, 5]).frenchify());
17
+ });
18
+ return shuffleProps(propositions, n);
19
+ };
20
+ const getAnswer = (identifiers) => {
21
+ const { askedTerm, values, firstRank } = identifiers;
22
+ return (values.indexOf(askedTerm) + firstRank).frenchify();
23
+ };
24
+ const getInstruction = (identifiers) => {
25
+ const { askedTerm, firstRank, values } = identifiers;
26
+ return `Soit $u$ une suite de premier rang $${firstRank}$ et dont voici les premiers termes, dans l'ordre :
27
+
28
+ $$
29
+ ${values.join("\\ ; \\ ")}
30
+ $$
31
+
32
+ Quel est le rang du terme $${askedTerm}$ ?`;
33
+ };
34
+ const getHint = () => {
35
+ return `Il suffit de compter à partir du premier rang de la suite.`;
36
+ };
37
+ const getCorrection = (identifiers) => {
38
+ const { firstRank, values } = identifiers;
39
+ return `Voici la notation pour chacun des termes :
40
+
41
+ ${values
42
+ .map((e, i) => `$$
43
+ u_${i + firstRank} = ${e}
44
+ $$`)
45
+ .join("\n \n")}
46
+
47
+ Le rang recherché est donc $${getAnswer(identifiers)}$.`;
48
+ };
49
+ const getKeys = () => {
50
+ return [];
51
+ };
52
+ const isAnswerValid = (ans, { answer }) => {
53
+ try {
54
+ return numberVEA(ans, answer);
55
+ }
56
+ catch (err) {
57
+ return handleVEAError(err);
58
+ }
59
+ };
60
+ const getIdentifySequenceTermInListQuestion = (opts) => {
61
+ const firstRank = opts?.firstRank === "$0$"
62
+ ? 0
63
+ : opts?.firstRank === "$1$"
64
+ ? 1
65
+ : randint(0, 2);
66
+ const values = randTupleInt(5, { from: -10, to: 10, allDifferent: true });
67
+ const askedTerm = random(values.slice(1));
68
+ const identifiers = {
69
+ firstRank,
70
+ values,
71
+ askedTerm,
72
+ };
73
+ return getQuestionFromIdentifiers(identifiers);
74
+ };
75
+ const getQuestionFromIdentifiers = (identifiers) => {
76
+ return {
77
+ answer: getAnswer(identifiers),
78
+ instruction: getInstruction(identifiers),
79
+ keys: getKeys(identifiers),
80
+ answerFormat: "tex",
81
+ identifiers,
82
+ hint: getHint(identifiers),
83
+ correction: getCorrection(identifiers),
84
+ };
85
+ };
86
+ const options = [
87
+ {
88
+ id: "firstRank",
89
+ label: "Premier rang",
90
+ target: GeneratorOptionTarget.generation,
91
+ type: GeneratorOptionType.select,
92
+ values: ["$0$", "$1$", "Les deux aléatoirement"],
93
+ defaultValue: "Les deux aléatoirement",
94
+ },
95
+ ];
96
+ export const identifyRankInSequenceTermsList = {
97
+ id: "identifyRankInSequenceTermsList",
98
+ connector: "=",
99
+ label: "Identifier le rang d'un terme dans les premiers termes d'une suite",
100
+ isSingleStep: true,
101
+ generator: (nb, opts) => getDistinctQuestions(() => getIdentifySequenceTermInListQuestion(opts), nb),
102
+ qcmTimer: 60,
103
+ freeTimer: 60,
104
+ getPropositions,
105
+ isAnswerValid,
106
+ subject: "Mathématiques",
107
+ getInstruction,
108
+ getHint,
109
+ getCorrection,
110
+ getAnswer,
111
+ getQuestionFromIdentifiers,
112
+ hasHintAndCorrection: true,
113
+ options,
114
+ };
@@ -0,0 +1,12 @@
1
+ import { Exercise } from "../../../../exercises/exercise.js";
2
+ type Identifiers = {
3
+ values: number[];
4
+ firstRank: number;
5
+ askedIndex: number;
6
+ };
7
+ type Options = {
8
+ firstRank: string;
9
+ };
10
+ export declare const identifySequenceTermInList: Exercise<Identifiers, Options>;
11
+ export {};
12
+ //# sourceMappingURL=identifySequenceTermInList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identifySequenceTermInList.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/notation/identifySequenceTermInList.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAkBT,MAAM,6BAA6B,CAAC;AAQrC,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AA+FF,KAAK,OAAO,GAAG;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAYF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAmBrE,CAAC"}
@@ -0,0 +1,111 @@
1
+ import { addValidProp, shuffleProps, GeneratorOptionTarget, GeneratorOptionType, propWhile, tryToAddWrongProp, } from "../../../../exercises/exercise.js";
2
+ import { getDistinctQuestions } from "../../../../exercises/utils/getDistinctQuestions.js";
3
+ import { numberVEA } from "../../../../exercises/vea/numberVEA.js";
4
+ import { randint } from "../../../../math/utils/random/randint.js";
5
+ import { randTupleInt } from "../../../../math/utils/random/randTupleInt.js";
6
+ import { random } from "../../../../utils/alea/random.js";
7
+ import { handleVEAError } from "../../../../utils/errors/handleVEAError.js";
8
+ const getPropositions = (n, { answer, values }) => {
9
+ const propositions = [];
10
+ addValidProp(propositions, answer);
11
+ propWhile(propositions, n, () => {
12
+ tryToAddWrongProp(propositions, random(values).frenchify());
13
+ });
14
+ return shuffleProps(propositions, n);
15
+ };
16
+ const getAnswer = (identifiers) => {
17
+ const { askedIndex, values } = identifiers;
18
+ return values[askedIndex].frenchify();
19
+ };
20
+ const getInstruction = (identifiers) => {
21
+ const { askedIndex, firstRank, values } = identifiers;
22
+ return `Soit $u$ une suite de premier rang $${firstRank}$ et dont voici les premiers termes, dans l'ordre :
23
+
24
+ $$
25
+ ${values.join("\\ ; \\ ")}
26
+ $$
27
+
28
+ Quel est le terme de rang $${askedIndex + firstRank}$ ?`;
29
+ };
30
+ const getHint = () => {
31
+ return `Il suffit de compter à partir du premier rang de la suite.`;
32
+ };
33
+ const getCorrection = (identifiers) => {
34
+ const { askedIndex, firstRank, values } = identifiers;
35
+ return `Voici la notation pour chacun des termes :
36
+
37
+ ${values
38
+ .map((e, i) => `$$
39
+ u_${i + firstRank} = ${e}
40
+ $$`)
41
+ .join("\n \n")}
42
+
43
+ Le terme de rang $${askedIndex + firstRank}$ est donc $${values[askedIndex + firstRank]}$.
44
+ `;
45
+ };
46
+ const getKeys = () => {
47
+ return [];
48
+ };
49
+ const isAnswerValid = (ans, { answer }) => {
50
+ try {
51
+ return numberVEA(ans, answer);
52
+ }
53
+ catch (err) {
54
+ return handleVEAError(err);
55
+ }
56
+ };
57
+ const getIdentifySequenceTermInListQuestion = (opts) => {
58
+ const firstRank = opts?.firstRank === "$0$"
59
+ ? 0
60
+ : opts?.firstRank === "$1$"
61
+ ? 1
62
+ : randint(0, 2);
63
+ const values = randTupleInt(5, { from: -10, to: 10, allDifferent: true });
64
+ const askedIndex = randint(1, 5);
65
+ const identifiers = {
66
+ firstRank,
67
+ values,
68
+ askedIndex,
69
+ };
70
+ return getQuestionFromIdentifiers(identifiers);
71
+ };
72
+ const getQuestionFromIdentifiers = (identifiers) => {
73
+ return {
74
+ answer: getAnswer(identifiers),
75
+ instruction: getInstruction(identifiers),
76
+ keys: getKeys(identifiers),
77
+ answerFormat: "tex",
78
+ identifiers,
79
+ hint: getHint(identifiers),
80
+ correction: getCorrection(identifiers),
81
+ };
82
+ };
83
+ const options = [
84
+ {
85
+ id: "firstRank",
86
+ label: "Premier rang",
87
+ target: GeneratorOptionTarget.generation,
88
+ type: GeneratorOptionType.select,
89
+ values: ["$0$", "$1$", "Les deux aléatoirement"],
90
+ defaultValue: "Les deux aléatoirement",
91
+ },
92
+ ];
93
+ export const identifySequenceTermInList = {
94
+ id: "identifySequenceTermInList",
95
+ connector: "=",
96
+ label: "Identifier le terme de rang $k$ dans les premiers termes d'une suite",
97
+ isSingleStep: true,
98
+ generator: (nb, opts) => getDistinctQuestions(() => getIdentifySequenceTermInListQuestion(opts), nb),
99
+ qcmTimer: 60,
100
+ freeTimer: 60,
101
+ getPropositions,
102
+ isAnswerValid,
103
+ subject: "Mathématiques",
104
+ getInstruction,
105
+ getHint,
106
+ getCorrection,
107
+ getAnswer,
108
+ getQuestionFromIdentifiers,
109
+ hasHintAndCorrection: true,
110
+ options,
111
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./identifySequenceTermInList.js";
2
+ export * from "./identifyRankInSequenceTermsList.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/sequences/notation/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./identifySequenceTermInList.js";
2
+ export * from "./identifyRankInSequenceTermsList.js";
@@ -1 +1 @@
1
- {"version":3,"file":"findSpacePointOnRectangularPrism.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/basis/findSpacePointOnRectangularPrism.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAGL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAkB3C,KAAK,WAAW,GAAG;IAEjB,sBAAsB,EAAE,qBAAqB,CAAC;IAC9C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IAEV,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAE/C,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;IAC9C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqgBF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAiBlE,CAAC"}
1
+ {"version":3,"file":"findSpacePointOnRectangularPrism.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/basis/findSpacePointOnRectangularPrism.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAcT,MAAM,6BAA6B,CAAC;AASrC,OAAO,EAGL,qBAAqB,EACtB,MAAM,mCAAmC,CAAC;AAkB3C,KAAK,WAAW,GAAG;IAEjB,sBAAsB,EAAE,qBAAqB,CAAC;IAC9C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IAEV,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAE/C,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;IAC9C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAogBF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAiBlE,CAAC"}
@@ -260,7 +260,6 @@ const getGGBOptions = (identifiers) => {
260
260
  });
261
261
  };
262
262
  const getPropositions = (n, { answer, ...identifiers }) => {
263
- console.log("answer", answer);
264
263
  const propositions = [];
265
264
  addValidProp(propositions, answer);
266
265
  const { arrPoolSpacePointIds } = identifiers;
@@ -1 +1 @@
1
- {"version":3,"file":"sphereLatLonReading.2d.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAGL,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAuFtC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE;QACT,MAAM,EAAE,gBAAgB,CAAC;QACzB,IAAI,EAAE,gBAAgB,CAAC;KACxB,CAAC;IAEF,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AA+KF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAgBvD,CAAC"}
1
+ {"version":3,"file":"sphereLatLonReading.2d.d.ts","sourceRoot":"","sources":["../../../../../src/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAgBT,MAAM,6BAA6B,CAAC;AAIrC,OAAO,EAGL,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAuFtC,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE;QACT,MAAM,EAAE,gBAAgB,CAAC;QACzB,IAAI,EAAE,gBAAgB,CAAC;KACxB,CAAC;IAEF,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AA6KF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,WAAW,CAgBvD,CAAC"}
@@ -152,8 +152,6 @@ const getKeys = () => {
152
152
  return ["degree", "N", "O", "S", "E"];
153
153
  };
154
154
  const isAnswerValid = (ans, { answer }) => {
155
- console.log("ans", ans);
156
- console.log("answer", answer);
157
155
  const ansRefined = ans.replace("^{\\circ}", "°");
158
156
  return ansRefined === answer;
159
157
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cartesianLineVEA.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartesianLineVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/cartesianLineVEA.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const pointVEA: (studentAns: string, answer: string) => boolean;
2
+ //# sourceMappingURL=pointVEA.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pointVEA.d.ts","sourceRoot":"","sources":["../../../src/exercises/vea/pointVEA.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,YAAY,MAAM,EAAE,QAAQ,MAAM,YAI1D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { pointParser } from "../../tree/parsers/pointParser.js";
2
+ export const pointVEA = (studentAns, answer) => {
3
+ const parsed = pointParser(studentAns);
4
+ if (!parsed)
5
+ return false;
6
+ return parsed.simplify().toCoords() === answer;
7
+ };
package/lib/index.d.ts CHANGED
@@ -584,6 +584,24 @@ declare const mathExercises: (Exercise<{
584
584
  }, Record<string, string | boolean | string[]>> | Exercise<{
585
585
  a: number;
586
586
  b: number;
587
+ }, {
588
+ solutionFormat: string;
589
+ }> | Exercise<{
590
+ a: number;
591
+ b: number;
592
+ c: number;
593
+ }, {
594
+ solutionFormat: string;
595
+ }> | Exercise<{
596
+ coeffsF: number[];
597
+ coeffsG: number[];
598
+ }, {
599
+ solutionFormat: string;
600
+ functionTypeF: string;
601
+ functionTypeG: string;
602
+ }> | Exercise<{
603
+ a: number;
604
+ b: number;
587
605
  }, Record<string, string | boolean | string[]>> | Exercise<{
588
606
  a: number;
589
607
  b: number;
@@ -683,6 +701,14 @@ declare const mathExercises: (Exercise<{
683
701
  k: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
684
702
  inequationSymbol: import("./math/inequations/inequation.js").InegalitySymbols;
685
703
  }, Record<string, string | boolean | string[]>> | Exercise<{
704
+ coeffsF: number[];
705
+ coeffsG: number[];
706
+ ineqType: import("./math/inequations/inequation.js").InegalitySymbols;
707
+ }, {
708
+ inequationSolutionFormat: string;
709
+ functionTypeF: string;
710
+ functionTypeG: string;
711
+ }> | Exercise<{
686
712
  rand: boolean;
687
713
  poly1: number[];
688
714
  poly2: number[];
@@ -890,6 +916,11 @@ declare const mathExercises: (Exercise<{
890
916
  affine2Coeffs: number[];
891
917
  }, Record<string, string | boolean | string[]>> | Exercise<{
892
918
  coeffs: number[];
919
+ }, Record<string, string | boolean | string[]>> | Exercise<{
920
+ a: number;
921
+ b: number;
922
+ c: number;
923
+ d: number;
893
924
  }, Record<string, string | boolean | string[]>> | Exercise<{
894
925
  a: number;
895
926
  b: number;
@@ -1006,6 +1037,8 @@ declare const mathExercises: (Exercise<{
1006
1037
  b: number;
1007
1038
  c: number;
1008
1039
  d: number;
1040
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1041
+ splinePoints: number[][];
1009
1042
  }, Record<string, string | boolean | string[]>> | Exercise<{
1010
1043
  coeffs: number[];
1011
1044
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -1333,6 +1366,12 @@ declare const mathExercises: (Exercise<{
1333
1366
  roots: number[];
1334
1367
  a: number;
1335
1368
  }, Record<string, string | boolean | string[]>> | Exercise<{
1369
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1370
+ x1Ids: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1371
+ x2Ids: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1372
+ }, {
1373
+ rootsNb: string;
1374
+ }> | Exercise<{
1336
1375
  trinomIdentifiers: import("./tree/nodes/polynomials/trinomNode.js").TrinomNodeIdentifiers;
1337
1376
  firstRootIdentifiers: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1338
1377
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -1397,6 +1436,12 @@ declare const mathExercises: (Exercise<{
1397
1436
  a: number;
1398
1437
  b: number;
1399
1438
  c: number;
1439
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1440
+ pointAIds: import("./math/geometry/point.js").PointIdentifiers;
1441
+ pointBIds: import("./math/geometry/point.js").PointIdentifiers;
1442
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1443
+ summitIds: import("./math/geometry/point.js").PointIdentifiers;
1444
+ pointIds: import("./math/geometry/point.js").PointIdentifiers;
1400
1445
  }, Record<string, string | boolean | string[]>> | Exercise<{
1401
1446
  type: number;
1402
1447
  points: number[][];
@@ -1420,6 +1465,49 @@ declare const mathExercises: (Exercise<{
1420
1465
  e: number;
1421
1466
  f: number;
1422
1467
  uA: number;
1468
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1469
+ a: number;
1470
+ exp1Rounded: number;
1471
+ precision: number;
1472
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1473
+ nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1474
+ nodeIdsK: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1475
+ expARounded: number;
1476
+ precision: number;
1477
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1478
+ nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1479
+ nodeIdsB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1480
+ nodeIdsAOpB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1481
+ expARounded: number;
1482
+ expBRounded: number;
1483
+ precision: number;
1484
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1485
+ nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1486
+ nodeIdsB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1487
+ nodeIdsAOpB: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1488
+ rand: number;
1489
+ }, {
1490
+ isUseExpNotation: boolean;
1491
+ }> | Exercise<{
1492
+ nodeIdsF: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1493
+ nodeIdsT: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1494
+ x: number;
1495
+ s: number;
1496
+ coordsFrame: number[];
1497
+ rand: number;
1498
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1499
+ nodeIdsA: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1500
+ nodeIdsH: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1501
+ nodeIdsAOpH: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1502
+ expARounded: number;
1503
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1504
+ a: number;
1505
+ isExpPrime: boolean;
1506
+ coordsFrame: number[];
1507
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1508
+ a: number;
1509
+ isExpPrime: boolean;
1510
+ coordsFrame: number[];
1423
1511
  }, Record<string, string | boolean | string[]>> | Exercise<{
1424
1512
  a: number;
1425
1513
  k: number;
@@ -1608,6 +1696,16 @@ declare const mathExercises: (Exercise<{
1608
1696
  }> | Exercise<{
1609
1697
  a: number;
1610
1698
  b: number;
1699
+ intervalAskedIndex: number;
1700
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1701
+ a: number;
1702
+ b: number;
1703
+ c: number;
1704
+ d: number;
1705
+ intervalAskedIndex: number;
1706
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1707
+ a: number;
1708
+ b: number;
1611
1709
  }, Record<string, string | boolean | string[]>> | Exercise<{
1612
1710
  twoSided: boolean;
1613
1711
  a: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
@@ -1747,6 +1845,18 @@ declare const mathExercises: (Exercise<{
1747
1845
  }, Record<string, string | boolean | string[]>> | Exercise<{
1748
1846
  pointIdentifiers: import("./math/geometry/point.js").PointIdentifiers;
1749
1847
  pointBIdentifiers: import("./math/geometry/point.js").PointIdentifiers;
1848
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1849
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1850
+ bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1851
+ cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1852
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1853
+ pointIds: import("./math/geometry/point.js").PointIdentifiers;
1854
+ vecIds: import("./math/geometry/vector.js").VectorIdentifiers;
1855
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1856
+ pointIds: import("./math/geometry/point.js").PointIdentifiers;
1857
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1858
+ bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1859
+ cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
1750
1860
  }, Record<string, string | boolean | string[]>> | Exercise<{
1751
1861
  coin: boolean;
1752
1862
  radius: number;
@@ -2230,7 +2340,9 @@ declare const mathExercises: (Exercise<{
2230
2340
  b: number;
2231
2341
  c: number;
2232
2342
  toReduced: boolean;
2233
- }, Record<string, string | boolean | string[]>> | Exercise<{
2343
+ }, {
2344
+ direction: string;
2345
+ }> | Exercise<{
2234
2346
  a: number;
2235
2347
  b: number;
2236
2348
  c: number;
@@ -2288,6 +2400,10 @@ declare const mathExercises: (Exercise<{
2288
2400
  }, Record<string, string | boolean | string[]>> | Exercise<{
2289
2401
  aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2290
2402
  bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2403
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2404
+ AIds: import("./math/geometry/point.js").PointIdentifiers;
2405
+ BIds: import("./math/geometry/point.js").PointIdentifiers;
2406
+ CIds: import("./math/geometry/point.js").PointIdentifiers;
2291
2407
  }, Record<string, string | boolean | string[]>> | Exercise<{
2292
2408
  triangleIdentifiers: import("./math/geometry/triangles/triangle.js").TriangleIdentifiers;
2293
2409
  type: number;
@@ -2321,6 +2437,32 @@ declare const mathExercises: (Exercise<{
2321
2437
  }, Record<string, string | boolean | string[]>> | Exercise<{
2322
2438
  shape: number;
2323
2439
  side: number;
2440
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2441
+ pointIds: import("./math/geometry/point.js").PointIdentifiers;
2442
+ radiusIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2443
+ centreIds: import("./math/geometry/point.js").PointIdentifiers;
2444
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2445
+ centerIds: import("./math/geometry/point.js").PointIdentifiers;
2446
+ radiusIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2447
+ }, {
2448
+ equationType: string;
2449
+ }> | Exercise<{
2450
+ isAskingRadius: boolean;
2451
+ equationIds: import("./tree/nodes/equations/equalNode.js").EqualNodeIdentifiers;
2452
+ }, {
2453
+ askedParameter: string;
2454
+ }> | Exercise<{
2455
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2456
+ bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2457
+ cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2458
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2459
+ AIds: import("./math/geometry/point.js").PointIdentifiers;
2460
+ BIds: import("./math/geometry/point.js").PointIdentifiers;
2461
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2462
+ aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2463
+ bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2464
+ cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2465
+ isAskingRadius: boolean;
2324
2466
  }, Record<string, string | boolean | string[]>> | Exercise<{
2325
2467
  coeffs: number[];
2326
2468
  to: "+\\infty" | "-\\infty";
@@ -2754,6 +2896,10 @@ declare const mathExercises: (Exercise<{
2754
2896
  }, Record<string, string | boolean | string[]>> | Exercise<{
2755
2897
  xValuesIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
2756
2898
  yValuesIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
2899
+ }, Record<string, string | boolean | string[]>> | Exercise<{
2900
+ valuesIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
2901
+ probasIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers[];
2902
+ avgIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
2757
2903
  }, Record<string, string | boolean | string[]>> | Exercise<{
2758
2904
  pA: number;
2759
2905
  pB: number;
@@ -3026,6 +3172,23 @@ declare const mathExercises: (Exercise<{
3026
3172
  points: number[][];
3027
3173
  isArithmetic: boolean;
3028
3174
  }, Record<string, string | boolean | string[]>> | Exercise<{
3175
+ firstRank: number;
3176
+ values: number[];
3177
+ }, {
3178
+ firstRank: string;
3179
+ }> | Exercise<{
3180
+ values: number[];
3181
+ firstRank: number;
3182
+ askedIndex: number;
3183
+ }, {
3184
+ firstRank: string;
3185
+ }> | Exercise<{
3186
+ values: number[];
3187
+ firstRank: number;
3188
+ askedTerm: number;
3189
+ }, {
3190
+ firstRank: string;
3191
+ }> | Exercise<{
3029
3192
  intervalIdentifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
3030
3193
  }, Record<string, string | boolean | string[]>> | Exercise<{
3031
3194
  int1Identifiers: import("./tree/nodes/sets/intervalNode.js").IntervalNodeIdentifiers;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
@@ -1,10 +1,16 @@
1
1
  import { ToGGBCommandsProps } from "../../exercises/utils/geogebra/toGGBCommandsProps.js";
2
+ import { AlgebraicNode } from "../../tree/nodes/algebraicNode.js";
2
3
  import { Point } from "./point.js";
4
+ export declare abstract class CircleConstructor {
5
+ static fromCenterAndRadius(center: Point, radius: AlgebraicNode | number, name?: string): Circle;
6
+ static cartesianEquation(center: Point, radius: AlgebraicNode | number): import("../../tree/nodes/equations/equalNode.js").EqualNode;
7
+ }
3
8
  export declare class Circle {
4
9
  center: Point;
5
10
  point: Point;
6
11
  name: string;
7
12
  constructor(center: Point, point: Point, name?: string);
13
+ toCartesianEquation(): import("../../tree/nodes/equations/equalNode.js").EqualNode;
8
14
  toGGBCommands(shouldBuildPoints: boolean, { isFixed, showLabel, showUnderlyingPointsLabel, }?: ToGGBCommandsProps): string[];
9
15
  }
10
16
  //# sourceMappingURL=circle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,qBAAa,MAAM;IACjB,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;gBACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM;IAMtD,aAAa,CACX,iBAAiB,EAAE,OAAO,EAC1B,EACE,OAAc,EACd,SAAiB,EACjB,yBAAgC,GACjC,GACD,kBAAuB;CAoC1B"}
1
+ {"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAKlE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,mBAAmB,CACxB,MAAM,EAAE,KAAK,EACb,MAAM,EAAE,aAAa,GAAG,MAAM,EAC9B,IAAI,CAAC,EAAE,MAAM;IAIf,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,GAAG,MAAM;CASvE;AACD,qBAAa,MAAM;IACjB,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;gBACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM;IAMtD,mBAAmB;IAWnB,aAAa,CACX,iBAAiB,EAAE,OAAO,EAC1B,EACE,OAAc,EACd,SAAiB,EACjB,yBAAgC,GACjC,GACD,kBAAuB;CAoC1B"}
@@ -1,3 +1,15 @@
1
+ import { equal } from "../../tree/nodes/equations/equalNode.js";
2
+ import { add } from "../../tree/nodes/operators/addNode.js";
3
+ import { square } from "../../tree/nodes/operators/powerNode.js";
4
+ import { substract } from "../../tree/nodes/operators/substractNode.js";
5
+ export class CircleConstructor {
6
+ static fromCenterAndRadius(center, radius, name) {
7
+ return new Circle(center, center.translate(radius, 0), name);
8
+ }
9
+ static cartesianEquation(center, radius) {
10
+ return equal(add(square(substract("x", center.x).simplify()), square(substract("y", center.y).simplify())), square(radius).simplify());
11
+ }
12
+ }
1
13
  export class Circle {
2
14
  center;
3
15
  point;
@@ -7,6 +19,10 @@ export class Circle {
7
19
  this.point = point;
8
20
  this.name = name ?? "C";
9
21
  }
22
+ toCartesianEquation() {
23
+ const radius = this.center.distanceToNode(this.point).simplify();
24
+ return equal(add(square(substract("x", this.center.x).simplify()), square(substract("y", this.center.y).simplify())), square(radius).simplify());
25
+ }
10
26
  toGGBCommands(shouldBuildPoints, { isFixed = true, showLabel = false, showUnderlyingPointsLabel = true, } = // showUnderlyingPoints = true,
11
27
  {}) {
12
28
  const commands = [];