math-exercises 1.3.6 → 1.3.7

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 (242) hide show
  1. package/lib/exercises/calcul/addAndSub.d.ts +7 -0
  2. package/lib/exercises/calcul/addAndSub.d.ts.map +1 -0
  3. package/lib/exercises/calcul/addAndSub.js +3 -3
  4. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts +4 -0
  5. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -0
  6. package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +6 -6
  7. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts +4 -0
  8. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -0
  9. package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +5 -5
  10. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts +4 -0
  11. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -0
  12. package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +5 -5
  13. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts +4 -0
  14. package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -0
  15. package/lib/exercises/calcul/fractions/fractionsDivision.js +3 -3
  16. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts +4 -0
  17. package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -0
  18. package/lib/exercises/calcul/fractions/fractionsProduct.js +3 -3
  19. package/lib/exercises/calcul/fractions/fractionsSum.d.ts +4 -0
  20. package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -0
  21. package/lib/exercises/calcul/fractions/fractionsSum.js +3 -3
  22. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts +4 -0
  23. package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -0
  24. package/lib/exercises/calcul/fractions/simplifyFraction.js +2 -2
  25. package/lib/exercises/calcul/operations/operationsPriorities.d.ts +11 -0
  26. package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -0
  27. package/lib/exercises/calcul/operations/operationsPriorities.js +7 -7
  28. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +1 -0
  29. package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -0
  30. package/lib/exercises/calcul/rounding/rounding.d.ts +20 -0
  31. package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -0
  32. package/lib/exercises/calcul/rounding/rounding.js +3 -3
  33. package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts +4 -0
  34. package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts.map +1 -0
  35. package/lib/exercises/calculLitteral/distributivity/allIdentities.js +2 -2
  36. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts +4 -0
  37. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -0
  38. package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +6 -6
  39. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts +4 -0
  40. package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -0
  41. package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +7 -7
  42. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts +4 -0
  43. package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -0
  44. package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +7 -7
  45. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts +4 -0
  46. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -0
  47. package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +7 -7
  48. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts +4 -0
  49. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -0
  50. package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +6 -6
  51. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts +7 -0
  52. package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -0
  53. package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +6 -6
  54. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts +7 -0
  55. package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -0
  56. package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +8 -8
  57. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts +7 -0
  58. package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -0
  59. package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +8 -8
  60. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts +7 -0
  61. package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -0
  62. package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +8 -8
  63. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts +7 -0
  64. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -0
  65. package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +7 -7
  66. package/lib/exercises/exercise.d.ts +16 -0
  67. package/lib/exercises/exercise.d.ts.map +1 -0
  68. package/lib/exercises/exercises.d.ts +3 -0
  69. package/lib/exercises/exercises.d.ts.map +1 -0
  70. package/lib/exercises/geometry/cartesian/midpoint.d.ts +4 -0
  71. package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -0
  72. package/lib/exercises/geometry/cartesian/midpoint.js +4 -4
  73. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts +4 -0
  74. package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -0
  75. package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +4 -4
  76. package/lib/exercises/geometry/vectors/scalarProductViaNorms.d.ts +1 -0
  77. package/lib/exercises/geometry/vectors/scalarProductViaNorms.d.ts.map +1 -0
  78. package/lib/exercises/powers/powersDivision.d.ts +8 -0
  79. package/lib/exercises/powers/powersDivision.d.ts.map +1 -0
  80. package/lib/exercises/powers/powersDivision.js +5 -5
  81. package/lib/exercises/powers/powersOfTenToDecimal.d.ts +7 -0
  82. package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -0
  83. package/lib/exercises/powers/powersOfTenToDecimal.js +4 -4
  84. package/lib/exercises/powers/powersPower.d.ts +8 -0
  85. package/lib/exercises/powers/powersPower.d.ts.map +1 -0
  86. package/lib/exercises/powers/powersPower.js +4 -4
  87. package/lib/exercises/powers/powersProduct.d.ts +8 -0
  88. package/lib/exercises/powers/powersProduct.d.ts.map +1 -0
  89. package/lib/exercises/powers/powersProduct.js +5 -5
  90. package/lib/exercises/powers/scientificToDecimal.d.ts +7 -0
  91. package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -0
  92. package/lib/exercises/powers/scientificToDecimal.js +6 -6
  93. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts +1 -0
  94. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -0
  95. package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +3 -3
  96. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts +1 -0
  97. package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -0
  98. package/lib/exercises/sequences/geometric/geometricFindReason.js +3 -3
  99. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts +4 -0
  100. package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -0
  101. package/lib/exercises/squareRoots/simpifySquareRoot.js +1 -1
  102. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts +4 -0
  103. package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -0
  104. package/lib/exercises/trigonometry/mainRemarkableValues.js +2 -2
  105. package/lib/exercises/trigonometry/remarkableValues.d.ts +4 -0
  106. package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -0
  107. package/lib/exercises/trigonometry/remarkableValues.js +2 -2
  108. package/lib/exercises/utils/getDistinctQuestions.d.ts +3 -0
  109. package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -0
  110. package/lib/index.d.ts +3 -0
  111. package/lib/index.d.ts.map +1 -0
  112. package/lib/index.js +4 -3
  113. package/lib/math/geometry/point.d.ts +13 -0
  114. package/lib/math/geometry/point.d.ts.map +1 -0
  115. package/lib/math/geometry/point.js +4 -4
  116. package/lib/math/geometry/vector.d.ts +16 -0
  117. package/lib/math/geometry/vector.d.ts.map +1 -0
  118. package/lib/math/geometry/vector.js +4 -4
  119. package/lib/math/numbers/decimals/decimal.d.ts +25 -0
  120. package/lib/math/numbers/decimals/decimal.d.ts.map +1 -0
  121. package/lib/math/numbers/decimals/decimal.js +2 -2
  122. package/lib/math/numbers/epsilon.d.ts +2 -0
  123. package/lib/math/numbers/epsilon.d.ts.map +1 -0
  124. package/lib/math/numbers/integer/integer.d.ts +15 -0
  125. package/lib/math/numbers/integer/integer.d.ts.map +1 -0
  126. package/lib/math/numbers/integer/integer.js +2 -2
  127. package/lib/math/numbers/integer/power.d.ts +14 -0
  128. package/lib/math/numbers/integer/power.d.ts.map +1 -0
  129. package/lib/math/numbers/integer/power.js +2 -2
  130. package/lib/math/numbers/nombre.d.ts +14 -0
  131. package/lib/math/numbers/nombre.d.ts.map +1 -0
  132. package/lib/math/numbers/rationals/rational.d.ts +26 -0
  133. package/lib/math/numbers/rationals/rational.d.ts.map +1 -0
  134. package/lib/math/numbers/rationals/rational.js +8 -8
  135. package/lib/math/numbers/reals/real.d.ts +10 -0
  136. package/lib/math/numbers/reals/real.d.ts.map +1 -0
  137. package/lib/math/numbers/reals/real.js +1 -1
  138. package/lib/math/numbers/reals/squareRoot.d.ts +19 -0
  139. package/lib/math/numbers/reals/squareRoot.d.ts.map +1 -0
  140. package/lib/math/numbers/reals/squareRoot.js +6 -6
  141. package/lib/math/polynomials/affine.d.ts +16 -0
  142. package/lib/math/polynomials/affine.d.ts.map +1 -0
  143. package/lib/math/polynomials/polynomial.d.ts +25 -0
  144. package/lib/math/polynomials/polynomial.d.ts.map +1 -0
  145. package/lib/math/sequences/arithmeticSequence.d.ts +1 -0
  146. package/lib/math/sequences/arithmeticSequence.d.ts.map +1 -0
  147. package/lib/math/sequences/geometricSequence.d.ts +4 -0
  148. package/lib/math/sequences/geometricSequence.d.ts.map +1 -0
  149. package/lib/math/sequences/sequence.d.ts +15 -0
  150. package/lib/math/sequences/sequence.d.ts.map +1 -0
  151. package/lib/math/sets/discreteSet.d.ts +11 -0
  152. package/lib/math/sets/discreteSet.d.ts.map +1 -0
  153. package/lib/math/sets/discreteSet.js +1 -1
  154. package/lib/math/sets/emptySet.d.ts +1 -0
  155. package/lib/math/sets/emptySet.d.ts.map +1 -0
  156. package/lib/math/sets/intervals/intervals.d.ts +27 -0
  157. package/lib/math/sets/intervals/intervals.d.ts.map +1 -0
  158. package/lib/math/sets/intervals/intervals.js +5 -5
  159. package/lib/math/sets/mathSet.d.ts +8 -0
  160. package/lib/math/sets/mathSet.d.ts.map +1 -0
  161. package/lib/math/sets/mathSetInterface.d.ts +6 -0
  162. package/lib/math/sets/mathSetInterface.d.ts.map +1 -0
  163. package/lib/math/trigonometry/remarkableValue.d.ts +11 -0
  164. package/lib/math/trigonometry/remarkableValue.d.ts.map +1 -0
  165. package/lib/math/trigonometry/remarkableValue.js +6 -6
  166. package/lib/math/trigonometry/remarkableValues.d.ts +3 -0
  167. package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -0
  168. package/lib/math/trigonometry/remarkableValues.js +6 -6
  169. package/lib/math/utils/arithmetic/coprimesOf.d.ts +2 -0
  170. package/lib/math/utils/arithmetic/coprimesOf.d.ts.map +1 -0
  171. package/lib/math/utils/arithmetic/dividersOf.d.ts +2 -0
  172. package/lib/math/utils/arithmetic/dividersOf.d.ts.map +1 -0
  173. package/lib/math/utils/arithmetic/gcd.d.ts +2 -0
  174. package/lib/math/utils/arithmetic/gcd.d.ts.map +1 -0
  175. package/lib/math/utils/arithmetic/isSquare.d.ts +2 -0
  176. package/lib/math/utils/arithmetic/isSquare.d.ts.map +1 -0
  177. package/lib/math/utils/arithmetic/lcd.d.ts +2 -0
  178. package/lib/math/utils/arithmetic/lcd.d.ts.map +1 -0
  179. package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts +2 -0
  180. package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts.map +1 -0
  181. package/lib/math/utils/arithmetic/nonDividersOf.d.ts +2 -0
  182. package/lib/math/utils/arithmetic/nonDividersOf.d.ts.map +1 -0
  183. package/lib/math/utils/arithmetic/primeFactors.d.ts +6 -0
  184. package/lib/math/utils/arithmetic/primeFactors.d.ts.map +1 -0
  185. package/lib/math/utils/decimals/decimalPartLengthOf.d.ts +2 -0
  186. package/lib/math/utils/decimals/decimalPartLengthOf.d.ts.map +1 -0
  187. package/lib/math/utils/random/randTupleInt.d.ts +14 -0
  188. package/lib/math/utils/random/randTupleInt.d.ts.map +1 -0
  189. package/lib/math/utils/random/randTupleInt.js +1 -1
  190. package/lib/math/utils/random/randint.d.ts +5 -0
  191. package/lib/math/utils/random/randint.d.ts.map +1 -0
  192. package/lib/math/utils/round.d.ts +2 -0
  193. package/lib/math/utils/round.d.ts.map +1 -0
  194. package/lib/tree/nodes/functions/cosNode.d.ts +10 -0
  195. package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -0
  196. package/lib/tree/nodes/functions/functionNode.d.ts +15 -0
  197. package/lib/tree/nodes/functions/functionNode.d.ts.map +1 -0
  198. package/lib/tree/nodes/functions/oppositeNode.d.ts +8 -0
  199. package/lib/tree/nodes/functions/oppositeNode.d.ts.map +1 -0
  200. package/lib/tree/nodes/functions/sinNode.d.ts +1 -0
  201. package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -0
  202. package/lib/tree/nodes/functions/sqrtNode.d.ts +9 -0
  203. package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -0
  204. package/lib/tree/nodes/node.d.ts +13 -0
  205. package/lib/tree/nodes/node.d.ts.map +1 -0
  206. package/lib/tree/nodes/numbers/constantNode.d.ts +10 -0
  207. package/lib/tree/nodes/numbers/constantNode.d.ts.map +1 -0
  208. package/lib/tree/nodes/numbers/numberNode.d.ts +11 -0
  209. package/lib/tree/nodes/numbers/numberNode.d.ts.map +1 -0
  210. package/lib/tree/nodes/numbers/piNode.d.ts +3 -0
  211. package/lib/tree/nodes/numbers/piNode.d.ts.map +1 -0
  212. package/lib/tree/nodes/operators/addNode.d.ts +8 -0
  213. package/lib/tree/nodes/operators/addNode.d.ts.map +1 -0
  214. package/lib/tree/nodes/operators/divideNode.d.ts +12 -0
  215. package/lib/tree/nodes/operators/divideNode.d.ts.map +1 -0
  216. package/lib/tree/nodes/operators/equalNode.d.ts +8 -0
  217. package/lib/tree/nodes/operators/equalNode.d.ts.map +1 -0
  218. package/lib/tree/nodes/operators/fractionNode.d.ts +12 -0
  219. package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -0
  220. package/lib/tree/nodes/operators/multiplyNode.d.ts +8 -0
  221. package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -0
  222. package/lib/tree/nodes/operators/operatorNode.d.ts +22 -0
  223. package/lib/tree/nodes/operators/operatorNode.d.ts.map +1 -0
  224. package/lib/tree/nodes/operators/powerNode.d.ts +8 -0
  225. package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -0
  226. package/lib/tree/nodes/operators/substractNode.d.ts +8 -0
  227. package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -0
  228. package/lib/tree/nodes/variables/variableNode.d.ts +9 -0
  229. package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -0
  230. package/lib/tree/parsers/derivateParser.d.ts +1 -0
  231. package/lib/tree/parsers/derivateParser.d.ts.map +1 -0
  232. package/lib/tree/parsers/simplify.d.ts +3 -0
  233. package/lib/tree/parsers/simplify.d.ts.map +1 -0
  234. package/lib/utils/arrayEqual.d.ts +2 -0
  235. package/lib/utils/arrayEqual.d.ts.map +1 -0
  236. package/lib/utils/coinFlip.d.ts +2 -0
  237. package/lib/utils/coinFlip.d.ts.map +1 -0
  238. package/lib/utils/random.d.ts +2 -0
  239. package/lib/utils/random.d.ts.map +1 -0
  240. package/lib/utils/shuffle.d.ts +2 -0
  241. package/lib/utils/shuffle.d.ts.map +1 -0
  242. package/package.json +6 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integer.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/integer/integer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,8BAAsB,kBAAkB;IACtC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM;CAGjC;AAED,qBAAa,OAAQ,YAAW,MAAM;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;gBAEL,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;IAMvC,MAAM,IAAI,IAAI;IAId,KAAK,CAAC,SAAS,EAAE,MAAM;IAiCvB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;CAW3B"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Integer = exports.IntegerConstructor = void 0;
4
- const randint_1 = require("#root/math/utils/random/randint");
5
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
4
+ const randint_1 = require("../../../math/utils/random/randint");
5
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
6
6
  const nombre_1 = require("../nombre");
7
7
  const rational_1 = require("../rationals/rational");
8
8
  class IntegerConstructor {
@@ -0,0 +1,14 @@
1
+ import { Node } from '../../../tree/nodes/node';
2
+ import { Nombre, NumberType } from '../nombre';
3
+ export declare class Power implements Nombre {
4
+ value: number;
5
+ tex: string;
6
+ type: NumberType;
7
+ operand: number;
8
+ power: number;
9
+ constructor(a: number, b: number);
10
+ simplify(): Node;
11
+ toDecimalWriting(): Nombre;
12
+ toTree(): Node;
13
+ }
14
+ //# sourceMappingURL=power.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"power.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/integer/power.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,qBAAa,KAAM,YAAW,MAAM;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;gBACF,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAOhC,QAAQ,IAAI,IAAI;IAQhB,gBAAgB,IAAI,MAAM;IAkB1B,MAAM,IAAI,IAAI;CAGf"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Power = void 0;
4
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
5
- const powerNode_1 = require("#root/tree/nodes/operators/powerNode");
4
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
5
+ const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
6
6
  const nombre_1 = require("../nombre");
7
7
  const integer_1 = require("./integer");
8
8
  class Power {
@@ -0,0 +1,14 @@
1
+ import { Node } from '../../tree/nodes/node';
2
+ export declare enum NumberType {
3
+ Integer = 0,
4
+ Decimal = 1,
5
+ Rational = 2,
6
+ Real = 3
7
+ }
8
+ export interface Nombre {
9
+ value: number;
10
+ tex: string;
11
+ type: NumberType;
12
+ toTree: () => Node;
13
+ }
14
+ //# sourceMappingURL=nombre.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nombre.d.ts","sourceRoot":"","sources":["../../../src/math/numbers/nombre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,oBAAY,UAAU;IACpB,OAAO,IAAA;IACP,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,IAAI,IAAA;CACL;AACD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB"}
@@ -0,0 +1,26 @@
1
+ import { Node } from '../../../tree/nodes/node';
2
+ import { Nombre, NumberType } from '../nombre';
3
+ export declare abstract class RationalConstructor {
4
+ /**
5
+ * @param maxGcd max number by which the fraction is simplifiable
6
+ */
7
+ static randomSimplifiable(maxGcd?: number): Rational;
8
+ static randomIrreductible(max?: number): Rational;
9
+ }
10
+ export declare class Rational implements Nombre {
11
+ num: number;
12
+ denum: number;
13
+ tex: string;
14
+ value: number;
15
+ isSimplified: boolean;
16
+ type: NumberType;
17
+ constructor(numerator: number, denumerator: number);
18
+ toTex(): string;
19
+ add(nb: Nombre): Nombre;
20
+ multiply(nb: Nombre): Nombre;
21
+ divide(nb: Nombre): Nombre;
22
+ opposite(): Rational;
23
+ toTree(): Node;
24
+ simplify(): Nombre;
25
+ }
26
+ //# sourceMappingURL=rational.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rational.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/rationals/rational.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAO7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,8BAAsB,mBAAmB;IACvC;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,MAAM,GAAE,MAAW;IAW7C,MAAM,CAAC,kBAAkB,CAAC,GAAG,GAAE,MAAW;CAO3C;AAED,qBAAa,QAAS,YAAW,MAAM;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;gBAEL,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAUlD,KAAK;IAIL,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgBvB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgB5B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgB1B,QAAQ,IAAI,QAAQ;IAIpB,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,MAAM;CAMnB"}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Rational = exports.RationalConstructor = void 0;
4
- const coprimesOf_1 = require("#root/math/utils/arithmetic/coprimesOf");
5
- const gcd_1 = require("#root/math/utils/arithmetic/gcd");
6
- const lcd_1 = require("#root/math/utils/arithmetic/lcd");
7
- const randint_1 = require("#root/math/utils/random/randint");
8
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
9
- const fractionNode_1 = require("#root/tree/nodes/operators/fractionNode");
10
- const random_1 = require("#root/utils/random");
11
- const shuffle_1 = require("#root/utils/shuffle");
4
+ const coprimesOf_1 = require("../../../math/utils/arithmetic/coprimesOf");
5
+ const gcd_1 = require("../../../math/utils/arithmetic/gcd");
6
+ const lcd_1 = require("../../../math/utils/arithmetic/lcd");
7
+ const randint_1 = require("../../../math/utils/random/randint");
8
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
+ const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
10
+ const random_1 = require("../../../utils/random");
11
+ const shuffle_1 = require("../../../utils/shuffle");
12
12
  const integer_1 = require("../integer/integer");
13
13
  const nombre_1 = require("../nombre");
14
14
  class RationalConstructor {
@@ -0,0 +1,10 @@
1
+ import { Node } from '../../../tree/nodes/node';
2
+ import { Nombre, NumberType } from '../nombre';
3
+ export declare class Real implements Nombre {
4
+ value: number;
5
+ tex: string;
6
+ type: NumberType;
7
+ constructor(value: number, tex: string);
8
+ toTree(): Node;
9
+ }
10
+ //# sourceMappingURL=real.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"real.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/real.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,qBAAa,IAAK,YAAW,MAAM;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;gBACL,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAKtC,MAAM,IAAI,IAAI;CAGf"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Real = void 0;
4
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
4
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
5
5
  const nombre_1 = require("../nombre");
6
6
  class Real {
7
7
  constructor(value, tex) {
@@ -0,0 +1,19 @@
1
+ import { Node } from '../../../tree/nodes/node';
2
+ import { Real } from './real';
3
+ export declare abstract class SquareRootConstructor {
4
+ /**
5
+ * @returns simplifiable square root type sqrt(c)=a*sqrt(b)
6
+ */
7
+ static randomSimplifiable({ allowPerfectSquare, maxSquare }: {
8
+ allowPerfectSquare?: boolean | undefined;
9
+ maxSquare?: number | undefined;
10
+ }): SquareRoot;
11
+ }
12
+ export declare class SquareRoot extends Real {
13
+ operand: number;
14
+ constructor(operand: number);
15
+ simplify(): Real;
16
+ toTex(): string;
17
+ toTree(): Node;
18
+ }
19
+ //# sourceMappingURL=squareRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"squareRoot.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/squareRoot.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,8BAAsB,qBAAqB;IACzC;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,EAAE,kBAA0B,EAAE,SAAc,EAAE;;;KAAA,GAAG,UAAU;CAStF;AAED,qBAAa,UAAW,SAAQ,IAAI;IAClC,OAAO,EAAE,MAAM,CAAC;gBACJ,OAAO,EAAE,MAAM;IAK3B,QAAQ,IAAI,IAAI;IA+BhB,KAAK,IAAI,MAAM;IAIf,MAAM,IAAI,IAAI;CAGf"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SquareRoot = exports.SquareRootConstructor = void 0;
4
- const isSquare_1 = require("#root/math/utils/arithmetic/isSquare");
5
- const primeFactors_1 = require("#root/math/utils/arithmetic/primeFactors");
6
- const randint_1 = require("#root/math/utils/random/randint");
7
- const sqrtNode_1 = require("#root/tree/nodes/functions/sqrtNode");
8
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
9
- const multiplyNode_1 = require("#root/tree/nodes/operators/multiplyNode");
4
+ const isSquare_1 = require("../../../math/utils/arithmetic/isSquare");
5
+ const primeFactors_1 = require("../../../math/utils/arithmetic/primeFactors");
6
+ const randint_1 = require("../../../math/utils/random/randint");
7
+ const sqrtNode_1 = require("../../../tree/nodes/functions/sqrtNode");
8
+ const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
9
+ const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
10
10
  const real_1 = require("./real");
11
11
  class SquareRootConstructor {
12
12
  /**
@@ -0,0 +1,16 @@
1
+ import { Nombre } from '../numbers/nombre';
2
+ import { MathSet } from '../sets/mathSet';
3
+ import { Polynomial } from './polynomial';
4
+ export declare abstract class AffineConstructor {
5
+ static random(domainA?: MathSet, domainB?: MathSet): Affine;
6
+ static differentRandoms(nb: number, domainA?: MathSet, domainB?: MathSet): Affine[];
7
+ }
8
+ export declare class Affine extends Polynomial {
9
+ a: number;
10
+ b: number;
11
+ variable: string;
12
+ constructor(a: number, b: number, variable?: string);
13
+ getRoot(): Nombre;
14
+ toString(): string;
15
+ }
16
+ //# sourceMappingURL=affine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"affine.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/affine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAI3C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM,CACX,OAAO,GAAE,OAAmF,EAC5F,OAAO,GAAE,OAAqC,GAC7C,MAAM;IAMT,MAAM,CAAC,gBAAgB,CACrB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,OAAmF,EAC5F,OAAO,GAAE,OAAqC,GAC7C,MAAM,EAAE;CAWZ;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;gBAEL,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAY;IAOxD,OAAO,IAAI,MAAM;IAIjB,QAAQ,IAAI,MAAM;CAGnB"}
@@ -0,0 +1,25 @@
1
+ import { Node } from '../../tree/nodes/node';
2
+ export declare class Polynomial {
3
+ degree: number;
4
+ variable: string;
5
+ /**
6
+ * coefficients[i] est le coeff de x^i
7
+ */
8
+ coefficients: number[];
9
+ /**
10
+ *
11
+ * @param coefficients coefficients[i] est le coeff de x^i
12
+ * @param variable
13
+ */
14
+ constructor(coefficients: number[], variable?: string);
15
+ equals(P: Polynomial): boolean;
16
+ getRoots(): void;
17
+ add(P: Polynomial): Polynomial;
18
+ times(nb: number): Polynomial;
19
+ multiply(Q: Polynomial): Polynomial;
20
+ opposite(): Polynomial;
21
+ toTree(): Node;
22
+ toTex(): string;
23
+ toString(): string;
24
+ }
25
+ //# sourceMappingURL=polynomial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"polynomial.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/polynomial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAS7C,qBAAa,UAAU;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;;;OAIG;gBACS,YAAY,EAAE,MAAM,EAAE,EAAE,QAAQ,GAAE,MAAY;IAS1D,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO;IAG9B,QAAQ;IACR,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU;IAc9B,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU;IAM7B,QAAQ,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU;IAkBnC,QAAQ,IAAI,UAAU;IAOtB,MAAM,IAAI,IAAI;IAmCd,KAAK,IAAI,MAAM;IAkBf,QAAQ,IAAI,MAAM;CAGnB"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=arithmeticSequence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arithmeticSequence.d.ts","sourceRoot":"","sources":["../../../src/math/sequences/arithmeticSequence.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare abstract class GeometricSequenceConstructor {
2
+ static random(): void;
3
+ }
4
+ //# sourceMappingURL=geometricSequence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometricSequence.d.ts","sourceRoot":"","sources":["../../../src/math/sequences/geometricSequence.ts"],"names":[],"mappings":"AAEA,8BAAsB,4BAA4B;IAC9C,MAAM,CAAC,MAAM;CAGhB"}
@@ -0,0 +1,15 @@
1
+ import { Node } from '../../tree/nodes/node';
2
+ declare enum SequenceType {
3
+ arithmetic = 0,
4
+ geometric = 1
5
+ }
6
+ export declare class Sequence {
7
+ type: SequenceType;
8
+ firstTerm: Node;
9
+ reason?: Node;
10
+ recurrenceFormula?: string;
11
+ explicitFormula?: string;
12
+ constructor(type: SequenceType, firstTerm: Node, reason?: Node);
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=sequence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sequence.d.ts","sourceRoot":"","sources":["../../../src/math/sequences/sequence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,aAAK,YAAY;IACf,UAAU,IAAA;IACV,SAAS,IAAA;CACV;AAED,qBAAa,QAAQ;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEb,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,IAAI;CAK/D"}
@@ -0,0 +1,11 @@
1
+ import { Nombre } from '../numbers/nombre';
2
+ import { MathSetInterface } from './mathSetInterface';
3
+ export declare class DiscreteSet implements MathSetInterface {
4
+ elements: Nombre[];
5
+ tex: string;
6
+ constructor(elements: Nombre[]);
7
+ toTex(): string;
8
+ includes(el: Nombre): boolean;
9
+ getRandomElement(): Nombre;
10
+ }
11
+ //# sourceMappingURL=discreteSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discreteSet.d.ts","sourceRoot":"","sources":["../../../src/math/sets/discreteSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,qBAAa,WAAY,YAAW,gBAAgB;IAClD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;gBACA,QAAQ,EAAE,MAAM,EAAE;IAW9B,KAAK,IAAI,MAAM;IAIf,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI7B,gBAAgB,IAAI,MAAM;CAG3B"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DiscreteSet = void 0;
4
- const random_1 = require("#root/utils/random");
4
+ const random_1 = require("../../utils/random");
5
5
  class DiscreteSet {
6
6
  constructor(elements) {
7
7
  this.elements = Array.from(new Set(elements));
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=emptySet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emptySet.d.ts","sourceRoot":"","sources":["../../../src/math/sets/emptySet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { Nombre, NumberType } from '../../../math/numbers/nombre';
2
+ import { DiscreteSet } from '../discreteSet';
3
+ import { MathSet } from '../mathSet';
4
+ import { MathSetInterface } from '../mathSetInterface';
5
+ declare enum BoundType {
6
+ OO = "]a;b[",
7
+ OF = "]a;b]",
8
+ FO = "[a;b[",
9
+ FF = "[a;b]"
10
+ }
11
+ export declare class Interval implements MathSetInterface {
12
+ min: number;
13
+ max: number;
14
+ boundType: BoundType;
15
+ type: NumberType;
16
+ tex: string;
17
+ /**
18
+ * [[a; b]] pour un interval d'integer; [a;b] pour des réels
19
+ */
20
+ constructor(tex?: string);
21
+ exclude(nb: number): MathSet;
22
+ difference(set: DiscreteSet): MathSet;
23
+ toTex(): string;
24
+ getRandomElement(precision?: number): Nombre;
25
+ }
26
+ export {};
27
+ //# sourceMappingURL=intervals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intervals.d.ts","sourceRoot":"","sources":["../../../../src/math/sets/intervals/intervals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,aAAK,SAAS;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;CACb;AAED,qBAAa,QAAS,YAAW,gBAAgB;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;gBACS,GAAG,SAAc;IA+C7B,OAAO,CAAC,EAAE,EAAE,MAAM;IAWlB,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO;IAYrC,KAAK,IAAI,MAAM;IAIf,gBAAgB,CAAC,SAAS,GAAE,MAAiD,GAAG,MAAM;CAYvF"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Interval = void 0;
4
- const epsilon_1 = require("#root/math/numbers/epsilon");
5
- const integer_1 = require("#root/math/numbers/integer/integer");
6
- const nombre_1 = require("#root/math/numbers/nombre");
7
- const real_1 = require("#root/math/numbers/reals/real");
8
- const round_1 = require("#root/math/utils/round");
4
+ const epsilon_1 = require("../../../math/numbers/epsilon");
5
+ const integer_1 = require("../../../math/numbers/integer/integer");
6
+ const nombre_1 = require("../../../math/numbers/nombre");
7
+ const real_1 = require("../../../math/numbers/reals/real");
8
+ const round_1 = require("../../../math/utils/round");
9
9
  const mathSet_1 = require("../mathSet");
10
10
  var BoundType;
11
11
  (function (BoundType) {
@@ -0,0 +1,8 @@
1
+ import { Nombre } from "../numbers/nombre";
2
+ import { MathSetInterface } from "./mathSetInterface";
3
+ export declare class MathSet implements MathSetInterface {
4
+ tex: string;
5
+ getRandomElement: () => Nombre;
6
+ constructor(tex: string, getRandomElement: () => Nombre);
7
+ }
8
+ //# sourceMappingURL=mathSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mathSet.d.ts","sourceRoot":"","sources":["../../../src/math/sets/mathSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,qBAAa,OAAQ,YAAW,gBAAgB;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,MAAM,CAAC;gBACnB,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,MAAM;CAIxD"}
@@ -0,0 +1,6 @@
1
+ import { Nombre } from '../numbers/nombre';
2
+ export interface MathSetInterface {
3
+ tex: string;
4
+ getRandomElement: () => Nombre;
5
+ }
6
+ //# sourceMappingURL=mathSetInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mathSetInterface.d.ts","sourceRoot":"","sources":["../../../src/math/sets/mathSetInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,MAAM,CAAC;CAChC"}
@@ -0,0 +1,11 @@
1
+ import { Node } from '../../tree/nodes/node';
2
+ export interface RemarkableValue {
3
+ angle: Node;
4
+ cos: Node;
5
+ sin: Node;
6
+ }
7
+ export declare abstract class RemarkableValueConstructor {
8
+ static mainInterval: () => RemarkableValue;
9
+ static simplifiable: () => RemarkableValue;
10
+ }
11
+ //# sourceMappingURL=remarkableValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remarkableValue.d.ts","sourceRoot":"","sources":["../../../src/math/trigonometry/remarkableValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAW7C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,GAAG,EAAE,IAAI,CAAC;CACX;AAED,8BAAsB,0BAA0B;IAC9C,MAAM,CAAC,YAAY,QAAO,eAAe,CAIvC;IAEF,MAAM,CAAC,YAAY,QAAO,eAAe,CASvC;CACH"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RemarkableValueConstructor = void 0;
4
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
5
- const piNode_1 = require("#root/tree/nodes/numbers/piNode");
6
- const addNode_1 = require("#root/tree/nodes/operators/addNode");
7
- const multiplyNode_1 = require("#root/tree/nodes/operators/multiplyNode");
8
- const simplify_1 = require("#root/tree/parsers/simplify");
9
- const random_1 = require("#root/utils/random");
4
+ const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
5
+ const piNode_1 = require("../../tree/nodes/numbers/piNode");
6
+ const addNode_1 = require("../../tree/nodes/operators/addNode");
7
+ const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
8
+ const simplify_1 = require("../../tree/parsers/simplify");
9
+ const random_1 = require("../../utils/random");
10
10
  const randint_1 = require("../utils/random/randint");
11
11
  const remarkableValues_1 = require("./remarkableValues");
12
12
  class RemarkableValueConstructor {
@@ -0,0 +1,3 @@
1
+ import { RemarkableValue } from './remarkableValue';
2
+ export declare const remarkableTrigoValues: RemarkableValue[];
3
+ //# sourceMappingURL=remarkableValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/math/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,EAAE,eAAe,EAyClD,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.remarkableTrigoValues = void 0;
4
- const oppositeNode_1 = require("#root/tree/nodes/functions/oppositeNode");
5
- const sqrtNode_1 = require("#root/tree/nodes/functions/sqrtNode");
6
- const numberNode_1 = require("#root/tree/nodes/numbers/numberNode");
7
- const piNode_1 = require("#root/tree/nodes/numbers/piNode");
8
- const fractionNode_1 = require("#root/tree/nodes/operators/fractionNode");
9
- const multiplyNode_1 = require("#root/tree/nodes/operators/multiplyNode");
4
+ const oppositeNode_1 = require("../../tree/nodes/functions/oppositeNode");
5
+ const sqrtNode_1 = require("../../tree/nodes/functions/sqrtNode");
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 multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
10
10
  exports.remarkableTrigoValues = [
11
11
  {
12
12
  angle: new numberNode_1.NumberNode(0),
@@ -0,0 +1,2 @@
1
+ export declare const coprimesOf: (nb: number) => number[];
2
+ //# sourceMappingURL=coprimesOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coprimesOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/coprimesOf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,OAAQ,MAAM,aAMpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const dividersOf: (nb: number) => number[];
2
+ //# sourceMappingURL=dividersOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dividersOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/dividersOf.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,OAAQ,MAAM,aAMpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function gcd(a: number, b: number): number;
2
+ //# sourceMappingURL=gcd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gcd.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/gcd.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,2 @@
1
+ export declare const isSquare: (a: number) => boolean;
2
+ //# sourceMappingURL=isSquare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSquare.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/isSquare.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,KAAG,OAEpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function lcd(a: number, b: number): number;
2
+ //# sourceMappingURL=lcd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lcd.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/lcd.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAMvC"}
@@ -0,0 +1,2 @@
1
+ export declare const nonCoprimesOf: (nb: number) => number[];
2
+ //# sourceMappingURL=nonCoprimesOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nonCoprimesOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/nonCoprimesOf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,OAAQ,MAAM,aAMvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const nonDivisorOf: (nb: number) => number[];
2
+ //# sourceMappingURL=nonDividersOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nonDividersOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/nonDividersOf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,OAAQ,MAAM,aAStC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /***
2
+ * returns array of prime factors
3
+ * e.g 12 -> [2, 2, 3]
4
+ */
5
+ export declare const primeFactors: (a: number) => number[];
6
+ //# sourceMappingURL=primeFactors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primeFactors.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/primeFactors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,YAAY,MAAO,MAAM,KAAG,MAAM,EAa9C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const decimalPartLengthOf: (x: number) => number;
2
+ //# sourceMappingURL=decimalPartLengthOf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decimalPartLengthOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/decimals/decimalPartLengthOf.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,MAAO,MAAM,WAS5C,CAAC"}
@@ -0,0 +1,14 @@
1
+ interface randTupleIntOptions {
2
+ from: number;
3
+ to?: number;
4
+ excludes?: number[];
5
+ }
6
+ /**
7
+ * @param size tuple length
8
+ * @param options
9
+ * @returns array of size nb with contents = randint(from, to, exxcludes)
10
+ */
11
+ export declare const randTupleInt: (size: number, options: randTupleIntOptions) => number[];
12
+ export declare const distinctRandTupleInt: (nb: number, size: number, options: randTupleIntOptions) => number[][];
13
+ export {};
14
+ //# sourceMappingURL=randTupleInt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randTupleInt.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/random/randTupleInt.ts"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,WAAW,mBAAmB,KAAG,MAAM,EAM/E,CAAC;AAEF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,QAAQ,MAAM,WAAW,mBAAmB,KAAG,MAAM,EAAE,EAUrG,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.distinctRandTupleInt = exports.randTupleInt = void 0;
4
- const arrayEqual_1 = require("#root/utils/arrayEqual");
4
+ const arrayEqual_1 = require("../../../utils/arrayEqual");
5
5
  const randint_1 = require("./randint");
6
6
  /**
7
7
  * @param size tuple length
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @returns random [[a, b[[
3
+ */
4
+ export declare const randint: (a: number, b?: number, excludes?: number[]) => number;
5
+ //# sourceMappingURL=randint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randint.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/random/randint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,MAAO,MAAM,MAAM,MAAM,aAAa,MAAM,EAAE,KAAG,MAQpE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function round(x: number, precision: number): number;
2
+ //# sourceMappingURL=round.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"round.d.ts","sourceRoot":"","sources":["../../../src/math/utils/round.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D"}
@@ -0,0 +1,10 @@
1
+ import { Node, NodeType } from '../node';
2
+ import { FunctionNode } from './functionNode';
3
+ export declare class CosNode extends FunctionNode implements Node {
4
+ type: NodeType;
5
+ constructor(child: Node);
6
+ toMathString(): string;
7
+ toTex(): string;
8
+ simplify(): Node;
9
+ }
10
+ //# sourceMappingURL=cosNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/functions/cosNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAE5D,qBAAa,OAAQ,SAAQ,YAAa,YAAW,IAAI;IACvD,IAAI,EAAE,QAAQ,CAAqB;gBAEvB,KAAK,EAAE,IAAI;IAIvB,YAAY,IAAI,MAAM;IAItB,KAAK,IAAI,MAAM;IAIf,QAAQ,IAAI,IAAI;CAGjB"}