math-exercises 3.0.176 → 3.0.178

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 (136) hide show
  1. package/lib/exercises/math/derivation/variations/readExtremaAbscissFromDerivativeCurve.js +1 -1
  2. package/lib/exercises/math/functions/trinoms/sign/index.d.ts +1 -0
  3. package/lib/exercises/math/functions/trinoms/sign/index.d.ts.map +1 -1
  4. package/lib/exercises/math/functions/trinoms/sign/index.js +1 -0
  5. package/lib/exercises/math/functions/trinoms/sign/signOfProductOfAffineAndTrinom.d.ts +8 -0
  6. package/lib/exercises/math/functions/trinoms/sign/signOfProductOfAffineAndTrinom.d.ts.map +1 -0
  7. package/lib/exercises/math/functions/trinoms/sign/signOfProductOfAffineAndTrinom.js +233 -0
  8. package/lib/exercises/math/geometry/angles/parallelogramFourthAngle.d.ts.map +1 -1
  9. package/lib/exercises/math/geometry/angles/parallelogramFourthAngle.js +10 -10
  10. package/lib/exercises/math/geometry/quadrilaterals/parallelogramAngles.js +8 -8
  11. package/lib/exercises/math/geometry/triangles/similar/isSimilarTrianglesWithAngles.js +6 -6
  12. package/lib/exercises/math/geometry/triangles/triangleThirdAngleValue.js +8 -8
  13. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiAngle.js +1 -1
  14. package/lib/exercises/math/geometry/vectors/scalarProduct/alKashi/scalarProductAlKashiSideLength.js +2 -2
  15. package/lib/exercises/math/geometry/vectors/scalarProduct/angleFromScalarProduct.js +2 -2
  16. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.d.ts.map +1 -1
  17. package/lib/exercises/math/geometry/vectors/scalarProduct/scalarProductOrthoInSquare.js +31 -6
  18. package/lib/exercises/math/probaStat/randomVariable/index.d.ts.map +1 -1
  19. package/lib/exercises/math/probaStat/randomVariable/index.js +1 -0
  20. package/lib/exercises/math/probaStat/trees/index.d.ts +1 -3
  21. package/lib/exercises/math/probaStat/trees/index.d.ts.map +1 -1
  22. package/lib/exercises/math/probaStat/trees/index.js +8 -3
  23. package/lib/exercises/math/probaStat/trees/probabilityTree.d.ts +3 -9
  24. package/lib/exercises/math/probaStat/trees/probabilityTree.d.ts.map +1 -1
  25. package/lib/exercises/math/probaStat/trees/probabilityTree.js +45 -419
  26. package/lib/exercises/math/probaStat/trees/probabilityTreeV2.d.ts +25 -0
  27. package/lib/exercises/math/probaStat/trees/probabilityTreeV2.d.ts.map +1 -0
  28. package/lib/exercises/math/probaStat/trees/probabilityTreeV2.js +625 -0
  29. package/lib/exercises/math/python/index.d.ts +1 -0
  30. package/lib/exercises/math/python/index.d.ts.map +1 -1
  31. package/lib/exercises/math/python/index.js +1 -0
  32. package/lib/exercises/math/python/sequences/pySequenceThresholdInstructionCompletion.d.ts.map +1 -1
  33. package/lib/exercises/math/python/sequences/pySequenceThresholdInstructionCompletion.js +11 -8
  34. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFromTwoTerms.d.ts.map +1 -1
  35. package/lib/exercises/math/sequences/arithmetic/arithmeticFindExplicitFormulaFromTwoTerms.js +4 -3
  36. package/lib/exercises/math/sequences/arithmetic/index.d.ts +4 -3
  37. package/lib/exercises/math/sequences/arithmetic/index.d.ts.map +1 -1
  38. package/lib/exercises/math/sequences/arithmetic/index.js +4 -3
  39. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindExplicitFormulaFromSituation.d.ts.map +1 -1
  40. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindExplicitFormulaFromSituation.js +3 -2
  41. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindRankFromSituation.d.ts.map +1 -1
  42. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindRankFromSituation.js +8 -6
  43. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindThresholdFromSituation.d.ts.map +1 -1
  44. package/lib/exercises/math/sequences/arithmetic/situations/arithmeticFindThresholdFromSituation.js +6 -5
  45. package/lib/exercises/math/sequences/arithmetic/situations/index.d.ts +0 -2
  46. package/lib/exercises/math/sequences/arithmetic/situations/index.d.ts.map +1 -1
  47. package/lib/exercises/math/sequences/arithmetic/situations/index.js +2 -2
  48. package/lib/exercises/math/sequences/arithmetic/sum/arithmeticComputeSumWithDots.d.ts +1 -0
  49. package/lib/exercises/math/sequences/arithmetic/sum/arithmeticComputeSumWithDots.d.ts.map +1 -1
  50. package/lib/exercises/math/sequences/arithmetic/sum/arithmeticComputeSumWithDots.js +65 -14
  51. package/lib/exercises/math/sequences/arithmetic/sum/index.d.ts +0 -1
  52. package/lib/exercises/math/sequences/arithmetic/sum/index.d.ts.map +1 -1
  53. package/lib/exercises/math/sequences/arithmetic/sum/index.js +1 -1
  54. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.d.ts +14 -0
  55. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.d.ts.map +1 -0
  56. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoConsecutiveTerms.js +291 -0
  57. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoTerms.d.ts.map +1 -1
  58. package/lib/exercises/math/sequences/geometric/geometricFindExplicitFormulaFromTwoTerms.js +4 -3
  59. package/lib/exercises/math/sequences/geometric/geometricFindRandomTermFromTwoConsecutiveTerms.d.ts +15 -0
  60. package/lib/exercises/math/sequences/geometric/geometricFindRandomTermFromTwoConsecutiveTerms.d.ts.map +1 -0
  61. package/lib/exercises/math/sequences/geometric/geometricFindRandomTermFromTwoConsecutiveTerms.js +249 -0
  62. package/lib/exercises/math/sequences/geometric/geometricFindRandomTermFromTwoTerms.js +1 -1
  63. package/lib/exercises/math/sequences/geometric/index.d.ts +6 -2
  64. package/lib/exercises/math/sequences/geometric/index.d.ts.map +1 -1
  65. package/lib/exercises/math/sequences/geometric/index.js +6 -2
  66. package/lib/exercises/math/sequences/geometric/situations/geometricFindExplicitFormulaFromSituation.d.ts.map +1 -1
  67. package/lib/exercises/math/sequences/geometric/situations/geometricFindExplicitFormulaFromSituation.js +3 -2
  68. package/lib/exercises/math/sequences/geometric/situations/geometricFindTermFromSituation.js +1 -1
  69. package/lib/exercises/math/sequences/geometric/sum/geometricComputeSumWithDots.js +2 -2
  70. package/lib/exercises/math/sequences/graph/placeFirstSequencePoints.js +2 -2
  71. package/lib/exercises/math/sequences/index.d.ts +1 -0
  72. package/lib/exercises/math/sequences/index.d.ts.map +1 -1
  73. package/lib/exercises/math/sequences/index.js +1 -0
  74. package/lib/exercises/math/sequences/seqArithmGeom/seqArithmGeomRecurrenceFormulaUsage.d.ts.map +1 -1
  75. package/lib/exercises/math/sequences/seqArithmGeom/seqArithmGeomRecurrenceFormulaUsage.js +5 -9
  76. package/lib/exercises/math/spaceGeometry/sphere/sphereLatLonReading.2d.js +1 -1
  77. package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.d.ts.map +1 -1
  78. package/lib/exercises/math/trigonometry/circle/findAngleFromCosAndSin.js +17 -8
  79. package/lib/exercises/math/trigonometry/circle/index.d.ts +2 -0
  80. package/lib/exercises/math/trigonometry/circle/index.d.ts.map +1 -1
  81. package/lib/exercises/math/trigonometry/circle/index.js +2 -1
  82. package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.d.ts.map +1 -1
  83. package/lib/exercises/math/trigonometry/circle/mainRemarkableValues.js +57 -0
  84. package/lib/exercises/math/trigonometry/circle/remarkableValues.d.ts.map +1 -1
  85. package/lib/exercises/math/trigonometry/circle/remarkableValues.js +88 -0
  86. package/lib/exercises/math/trigonometry/circle/selectQuadrantOnTrigoCircle.d.ts +5 -0
  87. package/lib/exercises/math/trigonometry/circle/selectQuadrantOnTrigoCircle.d.ts.map +1 -1
  88. package/lib/exercises/math/trigonometry/circle/selectQuadrantOnTrigoCircle.js +92 -94
  89. package/lib/exercises/math/trigonometry/functions/associateAngleSimplification.d.ts +11 -0
  90. package/lib/exercises/math/trigonometry/functions/associateAngleSimplification.d.ts.map +1 -0
  91. package/lib/exercises/math/trigonometry/functions/associateAngleSimplification.js +166 -0
  92. package/lib/exercises/math/trigonometry/functions/basicEquationCos.d.ts.map +1 -1
  93. package/lib/exercises/math/trigonometry/functions/basicEquationCos.js +54 -9
  94. package/lib/exercises/math/trigonometry/functions/basicEquationSin.d.ts.map +1 -1
  95. package/lib/exercises/math/trigonometry/functions/basicEquationSin.js +54 -8
  96. package/lib/exercises/math/trigonometry/functions/equationSinOnRandomInterval.js +1 -2
  97. package/lib/exercises/math/trigonometry/functions/index.d.ts +1 -0
  98. package/lib/exercises/math/trigonometry/functions/index.d.ts.map +1 -1
  99. package/lib/exercises/math/trigonometry/functions/index.js +1 -0
  100. package/lib/exercises/math/trigonometry/triangle/trigonometryAngleCalcul.js +2 -2
  101. package/lib/exercises/pc/snellDescartes.js +2 -2
  102. package/lib/index.d.ts +165 -36
  103. package/lib/index.d.ts.map +1 -1
  104. package/lib/latexTester.d.ts.map +1 -1
  105. package/lib/latexTester.js +8 -5
  106. package/lib/math/polynomials/affine.d.ts +1 -0
  107. package/lib/math/polynomials/affine.d.ts.map +1 -1
  108. package/lib/math/polynomials/affine.js +5 -0
  109. package/lib/math/utils/arithmetic/primeFactors.js +1 -1
  110. package/lib/math/utils/functions/functionComposition.d.ts.map +1 -1
  111. package/lib/math/utils/functions/functionComposition.js +18 -1
  112. package/lib/math/utils/random/randTupleInt.d.ts +1 -0
  113. package/lib/math/utils/random/randTupleInt.d.ts.map +1 -1
  114. package/lib/math/utils/random/randTupleInt.js +1 -1
  115. package/lib/math/utils/sequences/situations/seqArithmeticSituations.d.ts +18 -4
  116. package/lib/math/utils/sequences/situations/seqArithmeticSituations.d.ts.map +1 -1
  117. package/lib/math/utils/sequences/situations/seqArithmeticSituations.js +437 -336
  118. package/lib/math/utils/sequences/situations/seqArithmeticUtils.d.ts.map +1 -1
  119. package/lib/math/utils/sequences/situations/seqArithmeticUtils.js +3 -1
  120. package/lib/math/utils/sequences/situations/seqGeometricSituations.d.ts +5 -0
  121. package/lib/math/utils/sequences/situations/seqGeometricSituations.d.ts.map +1 -1
  122. package/lib/math/utils/sequences/situations/seqGeometricSituations.js +58 -25
  123. package/lib/prototypesEnhancement.d.ts +1 -0
  124. package/lib/prototypesEnhancement.d.ts.map +1 -1
  125. package/lib/prototypesEnhancement.js +3 -0
  126. package/lib/tests/pdfs/mdCodeToLatex.d.ts.map +1 -1
  127. package/lib/tests/pdfs/mdCodeToLatex.js +8 -15
  128. package/lib/tests/questionTest.d.ts.map +1 -1
  129. package/lib/tests/questionTest.js +6 -3
  130. package/lib/tree/nodes/algebraicNode.d.ts +1 -0
  131. package/lib/tree/nodes/algebraicNode.d.ts.map +1 -1
  132. package/lib/tree/nodes/geometry/degree.js +1 -1
  133. package/lib/tree/nodes/operators/addNode.d.ts.map +1 -1
  134. package/lib/tree/nodes/operators/addNode.js +4 -2
  135. package/lib/tree/parsers/degreeParser.js +2 -2
  136. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1480,6 +1480,9 @@ declare const mathExercises: (Exercise<{
1480
1480
  a: number;
1481
1481
  b: number;
1482
1482
  c: number;
1483
+ }, Record<string, string | boolean | string[]>> | Exercise<{
1484
+ affineCoeffs: number[];
1485
+ trinomCoeffs: number[];
1483
1486
  }, Record<string, string | boolean | string[]>> | Exercise<{
1484
1487
  param: string;
1485
1488
  coeffs: number[];
@@ -3222,23 +3225,11 @@ declare const mathExercises: (Exercise<{
3222
3225
  BC: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3223
3226
  BD: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3224
3227
  probaName: string;
3225
- useContraryNames?: boolean;
3226
3228
  }, {
3227
- allowApproximate?: string;
3228
- eventTypes?: string[];
3229
- probaType?: string;
3230
- eventsNames?: string;
3229
+ allowApproximate: string;
3230
+ eventTypes: string[];
3231
+ probaType: string;
3231
3232
  }> | Exercise<{
3232
- initTree: string[][][][];
3233
- valueDatas: {
3234
- isComp: boolean;
3235
- value: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3236
- }[];
3237
- }, {
3238
- probaType?: string;
3239
- }> | Exercise<{
3240
- params: import("./exercises/math/probaStat/trees/probaTreeSituations.js").ProbaTreeSituationParams;
3241
- }, Record<string, string | boolean | string[]>> | Exercise<{
3242
3233
  firstValue: number;
3243
3234
  askedRank: number;
3244
3235
  reason: number;
@@ -3264,8 +3255,6 @@ declare const mathExercises: (Exercise<{
3264
3255
  firstValue: number;
3265
3256
  reason: number;
3266
3257
  randValue: number;
3267
- }, Record<string, string | boolean | string[]>> | Exercise<{
3268
- final: number;
3269
3258
  }, Record<string, string | boolean | string[]>> | Exercise<{
3270
3259
  sequences: number[][];
3271
3260
  answerIndex: number;
@@ -3282,13 +3271,6 @@ declare const mathExercises: (Exercise<{
3282
3271
  sequence: number[];
3283
3272
  }, {
3284
3273
  firstTermRankOne?: boolean;
3285
- }> | Exercise<{
3286
- firstRank: number;
3287
- firstValue: number;
3288
- reason: number;
3289
- nbTerms: number;
3290
- }, {
3291
- firstTermRank: string;
3292
3274
  }> | Exercise<{
3293
3275
  firstValue: number;
3294
3276
  reason: number;
@@ -3298,12 +3280,6 @@ declare const mathExercises: (Exercise<{
3298
3280
  rank2: number;
3299
3281
  reason: number;
3300
3282
  value1: number;
3301
- }, Record<string, string | boolean | string[]>> | Exercise<{
3302
- rank1: number;
3303
- value1: number;
3304
- rank2: number;
3305
- value2: number;
3306
- rankAsked: number;
3307
3283
  }, Record<string, string | boolean | string[]>> | Exercise<{
3308
3284
  firstRank: number;
3309
3285
  firstTerm: number;
@@ -3318,6 +3294,51 @@ declare const mathExercises: (Exercise<{
3318
3294
  b: number;
3319
3295
  n: number;
3320
3296
  }, Record<string, string | boolean | string[]>> | Exercise<{
3297
+ rank1: number;
3298
+ value1: number;
3299
+ rank2: number;
3300
+ value2: number;
3301
+ rankAsked: number;
3302
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3303
+ rank1: number;
3304
+ value1: number;
3305
+ rank2: number;
3306
+ value2: number;
3307
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3308
+ situationIndex: number;
3309
+ initial: number;
3310
+ reason: number;
3311
+ superfluousData?: import("./math/utils/sequences/situations/seqArithmeticSituations.js").SituationArithmeticSuperfluousData;
3312
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
3313
+ situationIndex: number;
3314
+ initial: number;
3315
+ reason: number;
3316
+ superfluousData?: import("./math/utils/sequences/situations/seqArithmeticSituations.js").SituationArithmeticSuperfluousData;
3317
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
3318
+ situationIndex: number;
3319
+ initial: number;
3320
+ reason: number;
3321
+ superfluousData?: import("./math/utils/sequences/situations/seqArithmeticSituations.js").SituationArithmeticSuperfluousData;
3322
+ rankAsked: number;
3323
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
3324
+ final: number;
3325
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3326
+ firstRank: number;
3327
+ firstValue: number;
3328
+ reason: number;
3329
+ nbTerms: number;
3330
+ }, {
3331
+ firstTermRank: string;
3332
+ }> | Exercise<{
3333
+ initial: number;
3334
+ reason: number;
3335
+ nbTerms: number;
3336
+ lowRankDots: number;
3337
+ highRankDots: number;
3338
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & {
3339
+ isGiveCount: boolean;
3340
+ isForceWriteSumWithPlusSymbol: boolean;
3341
+ }> | Exercise<{
3321
3342
  firstRank: number;
3322
3343
  firstTerm: number;
3323
3344
  reason: number;
@@ -3338,9 +3359,6 @@ declare const mathExercises: (Exercise<{
3338
3359
  value1: number;
3339
3360
  reason: number;
3340
3361
  rank1: number;
3341
- }, Record<string, string | boolean | string[]>> | Exercise<{
3342
- raison: number;
3343
- final: number;
3344
3362
  }, Record<string, string | boolean | string[]>> | Exercise<{
3345
3363
  reason: number;
3346
3364
  startRank: number;
@@ -3368,6 +3386,42 @@ declare const mathExercises: (Exercise<{
3368
3386
  }, Record<string, string | boolean | string[]>> | Exercise<{
3369
3387
  sequence: number[];
3370
3388
  reason: number;
3389
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3390
+ q: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3391
+ a: number;
3392
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3393
+ rank1: number;
3394
+ value1: number;
3395
+ rank2: number;
3396
+ value2: number;
3397
+ precisionInitial: number;
3398
+ precisionReason: number;
3399
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3400
+ rank1: number;
3401
+ value1: number;
3402
+ rank2: number;
3403
+ value2: number;
3404
+ precisionInitial: number;
3405
+ precisionReason: number;
3406
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3407
+ rank1: number;
3408
+ value1: number;
3409
+ rank2: number;
3410
+ value2: number;
3411
+ precisionInitial: number;
3412
+ precisionReason: number;
3413
+ rankAsked: number;
3414
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3415
+ rank1: number;
3416
+ value1: number;
3417
+ rank2: number;
3418
+ value2: number;
3419
+ precisionInitial: number;
3420
+ precisionReason: number;
3421
+ rankAsked: number;
3422
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3423
+ raison: number;
3424
+ final: number;
3371
3425
  }, Record<string, string | boolean | string[]>> | Exercise<{
3372
3426
  firstRank: number;
3373
3427
  firstValue: number;
@@ -3377,9 +3431,30 @@ declare const mathExercises: (Exercise<{
3377
3431
  positiveReason: boolean;
3378
3432
  firstRankOne: boolean;
3379
3433
  }> | Exercise<{
3380
- q: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3381
- a: number;
3382
- }, Record<string, string | boolean | string[]>> | Exercise<{
3434
+ initial: number;
3435
+ reason: number;
3436
+ nbTerms: number;
3437
+ lowRankDots: number;
3438
+ highRankDots: number;
3439
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & {
3440
+ isGiveCount: boolean;
3441
+ }> | Exercise<{
3442
+ situationIndex: number;
3443
+ initial: number;
3444
+ reason: number;
3445
+ superfluousData?: import("./math/utils/sequences/situations/seqGeometricSituations.js").SituationGeometricSuperfluousData;
3446
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
3447
+ situationIndex: number;
3448
+ initial: number;
3449
+ reason: number;
3450
+ superfluousData?: import("./math/utils/sequences/situations/seqGeometricSituations.js").SituationGeometricSuperfluousData;
3451
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
3452
+ situationIndex: number;
3453
+ initial: number;
3454
+ reason: number;
3455
+ superfluousData?: import("./math/utils/sequences/situations/seqGeometricSituations.js").SituationGeometricSuperfluousData;
3456
+ rankAsked: number;
3457
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsWithSuperfluousData.js").OptionIsWithSuperfluousData> | Exercise<{
3383
3458
  rank: number;
3384
3459
  coeffs: number[];
3385
3460
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -3414,6 +3489,13 @@ declare const mathExercises: (Exercise<{
3414
3489
  askedTerm: number;
3415
3490
  }, {
3416
3491
  firstRank: string;
3492
+ }> | Exercise<{
3493
+ rank1: number;
3494
+ value1: number;
3495
+ coeffs: number[];
3496
+ rankAsked: number;
3497
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & {
3498
+ distanceOfRankAsked: string;
3417
3499
  }> | Exercise<{
3418
3500
  formulaIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3419
3501
  }, {
@@ -3617,6 +3699,8 @@ declare const mathExercises: (Exercise<{
3617
3699
  }, {
3618
3700
  solutionInterval: string;
3619
3701
  }> | Exercise<{
3702
+ point: string;
3703
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3620
3704
  degree: number;
3621
3705
  associateType: number;
3622
3706
  }, Record<string, string | boolean | string[]>> | Exercise<{
@@ -3626,6 +3710,8 @@ declare const mathExercises: (Exercise<{
3626
3710
  isCos: boolean;
3627
3711
  valueIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3628
3712
  quadrant: number;
3713
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3714
+ quartant: number;
3629
3715
  }, Record<string, string | boolean | string[]>> | Exercise<{
3630
3716
  trigFunction: string;
3631
3717
  trigValue: number;
@@ -3658,6 +3744,12 @@ declare const mathExercises: (Exercise<{
3658
3744
  aIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3659
3745
  bIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3660
3746
  cIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3747
+ }, Record<string, string | boolean | string[]>> | Exercise<{
3748
+ isCos: boolean;
3749
+ a: number;
3750
+ b: number;
3751
+ c: number;
3752
+ d: number;
3661
3753
  }, Record<string, string | boolean | string[]>> | Exercise<{
3662
3754
  degree: number;
3663
3755
  radianNodeIds: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
@@ -3786,6 +3878,43 @@ declare const mathExercises: (Exercise<{
3786
3878
  m: number;
3787
3879
  p: number;
3788
3880
  }, Record<string, string | boolean | string[]>> | Exercise<{
3881
+ firstValue: number;
3882
+ rankAsked: number;
3883
+ coeffs: number[];
3884
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3885
+ firstValue: number;
3886
+ coeffs: number[];
3887
+ rankAsked: number;
3888
+ keyIncomplete: string;
3889
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3890
+ firstValue: number;
3891
+ lengthAsked: number;
3892
+ coeffs: number[];
3893
+ isUseFuncRecur: boolean;
3894
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne> | Exercise<{
3895
+ firstValue: number;
3896
+ lengthAsked: number;
3897
+ coeffs: number[];
3898
+ isAnswerAlternative: boolean;
3899
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsUsePythonDef.js").OptionIsUsePythonDef> | Exercise<{
3900
+ firstValue: number;
3901
+ coeffs: number[];
3902
+ rankAsked: number;
3903
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsUsePythonDef.js").OptionIsUsePythonDef & {
3904
+ typeAsked: string;
3905
+ }> | Exercise<{
3906
+ nAsked: number;
3907
+ cyRandModFour?: number;
3908
+ arrRandForStr: number[];
3909
+ }, import("./exercises/options/optionIsUsePythonDef.js").OptionIsUsePythonDef> | Exercise<{
3910
+ valueThreshold: number;
3911
+ valueLimit: number;
3912
+ nodeIdsDistanceMax: import("./tree/nodes/nodeConstructor.js").NodeIdentifiers;
3913
+ keyIncomplete: string;
3914
+ }, import("./exercises/options/optionFirstTermRankOne.js").OptionFirstTermRankOne & import("./exercises/options/optionIsUsePythonDef.js").OptionIsUsePythonDef & {
3915
+ isUsePythonList: boolean;
3916
+ typeSequence: string;
3917
+ }> | Exercise<{
3789
3918
  p: number;
3790
3919
  n: number;
3791
3920
  wordingType: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA6B,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"latexTester.d.ts","sourceRoot":"","sources":["../src/latexTester.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,6BAA2B,YAuLrE,CAAC"}
1
+ {"version":3,"file":"latexTester.d.ts","sourceRoot":"","sources":["../src/latexTester.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,6BAA2B,YA+LrE,CAAC"}
@@ -23,8 +23,10 @@ export const latexTester = (latex, isDefaultInMathMode = false) => {
23
23
  if (inPython || inInlinePython)
24
24
  throw new Error("Dollar in python mode");
25
25
  if (nextChar === "$") {
26
- if (inDollarMode)
27
- throw new Error("Double dollar instead of single");
26
+ if (inDollarMode) {
27
+ const strAround = `${prevChar}${char}${nextChar}${nextNextChar}`;
28
+ throw new Error(`Double dollar instead of single, around ${strAround}, ${latex}`);
29
+ }
28
30
  inDoubleDollarMode = !inDoubleDollarMode;
29
31
  if (inDoubleDollarMode &&
30
32
  nextNextChar !== undefined &&
@@ -57,7 +59,8 @@ export const latexTester = (latex, isDefaultInMathMode = false) => {
57
59
  char !== "\n" &&
58
60
  char !== "\t") {
59
61
  if (!inDollarMode && !inDoubleDollarMode) {
60
- throw new Error(`Number not in math mode, ${char}, ${latex}`);
62
+ const strAround = `${prevChar}${char}${nextChar}${nextNextChar}`;
63
+ throw new Error(`Number not in math mode, ${char}, ${strAround}, ${latex}`);
61
64
  }
62
65
  }
63
66
  //check si charactere spécial
@@ -230,6 +233,8 @@ const validCmds = [
230
233
  "\\newline",
231
234
  "\\lVert",
232
235
  "\\rVert",
236
+ "\\lvert",
237
+ "\\rvert",
233
238
  "\\hline",
234
239
  "\\mathrm",
235
240
  "\\overline",
@@ -265,6 +270,4 @@ const validCmds = [
265
270
  "\\searrow",
266
271
  "\\mapsto",
267
272
  "\\color",
268
- "\\lvert",
269
- "\\rvert",
270
273
  ];
@@ -4,6 +4,7 @@ import { Polynomial } from "./polynomial.js";
4
4
  import { Trinom } from "./trinom.js";
5
5
  export declare abstract class AffineConstructor {
6
6
  static fromCoeffs(coeffs: number[]): Affine;
7
+ static randomNiceRoot(): Affine;
7
8
  static random(aOpts?: {
8
9
  min?: number;
9
10
  max?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"affine.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/affine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;IAG3C,MAAM,CAAC,MAAM,CACX,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAC3D,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAC3D,QAAQ,CAAC,EAAE,MAAM,GAChB,MAAM;IAc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= randint(-10, 10, [0]);
15
+ return new Affine(a, -root * a);
16
+ }
12
17
  static random(aOpts, bOpts, variable) {
13
18
  const a = randint(aOpts?.min ?? -9, aOpts?.max ?? 10, aOpts?.excludes ?? [0]);
14
19
  const b = randint(bOpts?.min ?? -9, bOpts?.max ?? 10, bOpts?.excludes ?? []);
@@ -5,7 +5,7 @@
5
5
  export const primeFactors = (n) => {
6
6
  // Validate input
7
7
  if (!Number.isInteger(n) || n <= 0) {
8
- throw new Error("Input must be an integer greater than 1.");
8
+ // throw new Error("Input must be an integer greater than 1.");
9
9
  return [];
10
10
  }
11
11
  if (n === 1)
@@ -1 +1 @@
1
- {"version":3,"file":"functionComposition.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/functions/functionComposition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAU3C,OAAO,EAEL,YAAY,EACb,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,qBAAqB,GAChC,aAAa,aAAa,EAC1B,cAAc,aAAa,EAC3B,eAAc,YAA2C,kBAiB1D,CAAC;AAMF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,aAAa,wBA4ClD,CAAC;AAMF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,CAAC,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,EAAE,CAAC;CAChD,CAAC;AA6BF,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,aAAa,EAC1B,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,aAAa,EAC3B,iBAAiB,GAAE,MAAW,EAC9B,eAAe,GAAE,eAAoB,iBAsDtC"}
1
+ {"version":3,"file":"functionComposition.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/functions/functionComposition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EAChB,MAAM,mCAAmC,CAAC;AAc3C,OAAO,EAEL,YAAY,EACb,MAAM,4CAA4C,CAAC;AAEpD,eAAO,MAAM,qBAAqB,GAChC,aAAa,aAAa,EAC1B,cAAc,aAAa,EAC3B,eAAc,YAA2C,kBAiB1D,CAAC;AAMF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,aAAa,wBA4ClD,CAAC;AAMF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,CAAC,WAAW,GAAG,YAAY,GAAG,OAAO,CAAC,EAAE,CAAC;CAChD,CAAC;AA+CF,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,aAAa,EAC1B,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,aAAa,EAC3B,iBAAiB,GAAE,MAAW,EAC9B,eAAe,GAAE,eAAoB,iBA0DtC"}
@@ -1,3 +1,4 @@
1
+ import { isEqualNode, } from "../../../tree/nodes/equations/equalNode.js";
1
2
  import { isFunctionNode, } from "../../../tree/nodes/functions/functionNode.js";
2
3
  import { NodeConstructor } from "../../../tree/nodes/nodeConstructor.js";
3
4
  import { isOperatorNode, } from "../../../tree/nodes/operators/operatorNode.js";
@@ -11,7 +12,7 @@ export const nodeBySubstitutingVar = (nodeCarrier, nodeInjected, variableNode =
11
12
  };
12
13
  export const getAllNodePaths = (node) => {
13
14
  const arrNodePaths = [];
14
- if (isOperatorNode(node)) {
15
+ if (isOperatorNode(node) || isEqualNode(node)) {
15
16
  getAllNodePaths(node.leftChild).forEach((nodePathWithNodes) => {
16
17
  arrNodePaths.push({
17
18
  arrNode: [node, ...nodePathWithNodes.arrNode],
@@ -64,6 +65,16 @@ function operatorNodeByReplacingRightChild(opNode, nodeRightChildNew) {
64
65
  nodeIds.rightChild = nodeRightChildNew.toIdentifiers();
65
66
  return NodeConstructor.fromIdentifiers(nodeIds);
66
67
  }
68
+ function equalNodeByReplacingLeftChild(equalNode, nodeLeftChildNew) {
69
+ const nodeIds = equalNode.toIdentifiers();
70
+ nodeIds.leftChild = nodeLeftChildNew.toIdentifiers();
71
+ return NodeConstructor.fromIdentifiers(nodeIds);
72
+ }
73
+ function equalNodeByReplacingRightChild(equalNode, nodeRightChildNew) {
74
+ const nodeIds = equalNode.toIdentifiers();
75
+ nodeIds.rightChild = nodeRightChildNew.toIdentifiers();
76
+ return NodeConstructor.fromIdentifiers(nodeIds);
77
+ }
67
78
  export function nodeByReplacingNodeAtPath(nodeCarrier, path, nodeInjected, simplifyUpToLevel = -1, simplifyOptions = {}) {
68
79
  function getNodeForKey(node, key) {
69
80
  if (key === "leftChild" || key === "rightChild") {
@@ -83,6 +94,12 @@ export function nodeByReplacingNodeAtPath(nodeCarrier, path, nodeInjected, simpl
83
94
  else if (key === "rightChild" && isOperatorNode(node)) {
84
95
  return operatorNodeByReplacingRightChild(node, nodeInjected);
85
96
  }
97
+ else if (key === "leftChild" && isEqualNode(node)) {
98
+ return equalNodeByReplacingLeftChild(node, nodeInjected);
99
+ }
100
+ else if (key === "rightChild" && isEqualNode(node)) {
101
+ return equalNodeByReplacingRightChild(node, nodeInjected);
102
+ }
86
103
  else if (key === "child" && isFunctionNode(node)) {
87
104
  return functionNodeByReplacingChild(node, nodeInjected);
88
105
  }
@@ -2,6 +2,7 @@ interface RandTupleIntOptions {
2
2
  from: number;
3
3
  to?: number;
4
4
  excludes?: number[][];
5
+ elExcludes?: number[];
5
6
  allDifferent?: boolean;
6
7
  sorted?: boolean;
7
8
  }
@@ -1 +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,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,SAAS,mBAAmB,KAC3B,MAAM,EAyBR,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,IAAI,MAAM,EACV,MAAM,MAAM,EACZ,SAAS,mBAAmB,KAC3B,MAAM,EAAE,EAcV,CAAC"}
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,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,SAAS,mBAAmB,KAC3B,MAAM,EAyBR,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,IAAI,MAAM,EACV,MAAM,MAAM,EACZ,SAAS,mBAAmB,KAC3B,MAAM,EAAE,EAcV,CAAC"}
@@ -20,7 +20,7 @@ export const randTupleInt = (size, options) => {
20
20
  cnt++;
21
21
  if (cnt > 1000)
22
22
  throw new Error("randTupleInt too many iterations 2");
23
- x = randint(options.from, options.to);
23
+ x = randint(options.from, options.to, options.elExcludes);
24
24
  } while (options.allDifferent && res.includes(x));
25
25
  res.push(x);
26
26
  }
@@ -5,6 +5,19 @@ export type SituationArithmeticVariation = {
5
5
  getHint: (firstRank: number, ...otherArgs: unknown[]) => string;
6
6
  getCorrectionStuff: (initial: number, reason: number, firstRank: number, ...otherArgs: unknown[]) => Record<string, unknown>;
7
7
  };
8
+ export type RankDecoder = {
9
+ rankFromTarget: (nodeTarget: AlgebraicNode, firstRank: number) => number;
10
+ targetFromRank: (rank: number, firstRank: number) => AlgebraicNode;
11
+ };
12
+ export type SituationArithmeticVariationUsingRankDecoder = {
13
+ getStrQuestion?: (initial: number, reason: number, firstRank: number, ...otherArgs: unknown[]) => string;
14
+ getAnswerStuff: (initial: number, reason: number, firstRank: number, ...otherArgs: unknown[]) => {
15
+ answerNode: AlgebraicNode;
16
+ rankNode: AlgebraicNode;
17
+ };
18
+ getHint: (firstRank: number, ...otherArgs: unknown[]) => string;
19
+ getCorrectionStuff: (initial: number, reason: number, firstRank: number, ...otherArgs: unknown[]) => Record<string, unknown>;
20
+ };
8
21
  export type SituationArithmeticSuperfluousData = {
9
22
  rand: number;
10
23
  values: number[];
@@ -14,12 +27,13 @@ export type SituationArithmetic = {
14
27
  randReason: () => number;
15
28
  randSuperfluousData: () => SituationArithmeticSuperfluousData;
16
29
  randThreshold: (initial: number, reason: number, firstRank: number) => number;
30
+ rankDecoder: RankDecoder;
17
31
  getStrSituation: (initial: number, reason: number, firstRank: number, superfluousData?: SituationArithmeticSuperfluousData) => string;
18
32
  variationFindExplicitFormula: SituationArithmeticVariation;
19
33
  variationFindRecurrenceFormula: SituationArithmeticVariation;
20
34
  variationFindRandomTerm: SituationArithmeticVariation;
21
- variationFindRank: SituationArithmeticVariation;
22
- variationFindThreshold: SituationArithmeticVariation;
35
+ variationFindRank: SituationArithmeticVariationUsingRankDecoder;
36
+ variationFindThreshold: SituationArithmeticVariationUsingRankDecoder;
23
37
  };
24
38
  export declare const situationsArithmetic: (SituationArithmetic & {
25
39
  variationFindExplicitFormula: SituationArithmeticVariation & {
@@ -39,12 +53,12 @@ export declare const situationsArithmetic: (SituationArithmetic & {
39
53
  str: string;
40
54
  };
41
55
  };
42
- variationFindRank: SituationArithmeticVariation & {
56
+ variationFindRank: SituationArithmeticVariationUsingRankDecoder & {
43
57
  getCorrectionStuff: (initial: number, reason: number, firstRank: number, ...otherArgs: unknown[]) => {
44
58
  str: string;
45
59
  };
46
60
  };
47
- variationFindThreshold: SituationArithmeticVariation & {
61
+ variationFindThreshold: SituationArithmeticVariationUsingRankDecoder & {
48
62
  getCorrectionStuff: (initial: number, reason: number, firstRank: number, ...otherArgs: unknown[]) => {
49
63
  str: string;
50
64
  };
@@ -1 +1 @@
1
- {"version":3,"file":"seqArithmeticSituations.d.ts","sourceRoot":"","sources":["../../../../../src/math/utils/sequences/situations/seqArithmeticSituations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAiBlE,MAAM,MAAM,4BAA4B,GAAG;IACzC,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,GAAG,SAAS,EAAE,OAAO,EAAE,KACpB,MAAM,CAAC;IAEZ,aAAa,EAAE,CACb,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,GAAG,SAAS,EAAE,OAAO,EAAE,KACpB,aAAa,CAAC;IACnB,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,KAAK,MAAM,CAAC;IAChE,kBAAkB,EAAE,CAClB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,GAAG,SAAS,EAAE,OAAO,EAAE,KACpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;IAC9D,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAE9E,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,kCAAkC,KACjD,MAAM,CAAC;IAEZ,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,8BAA8B,EAAE,4BAA4B,CAAC;IAC7D,uBAAuB,EAAE,4BAA4B,CAAC;IAEtD,iBAAiB,EAAE,4BAA4B,CAAC;IAChD,sBAAsB,EAAE,4BAA4B,CAAC;CACtD,CAAC;AAw8FF,eAAO,MAAM,oBAAoB;;sCAr7Fd,MAAM,UACP,MAAM,aACH,MAAM,gBACH,OAAO,EAAE;;;;;sCA2Bd,MAAM,UACP,MAAM,aACH,MAAM,gBACH,OAAO,EAAE;;;;;;;sCAiChB,MAAM,UACP,MAAM,aACH,MAAM,gBACH,OAAO,EAAE;;;;;sCAsCd,MAAM,UACP,MAAM,aACH,MAAM,gBACH,OAAO,EAAE;;;;;sCA0Cd,MAAM,UACP,MAAM,aACH,MAAM,gBACH,OAAO,EAAE;;;;IA4xF9B,CAAC"}
1
+ {"version":3,"file":"seqArithmeticSituations.d.ts","sourceRoot":"","sources":["../../../../../src/math/utils/sequences/situations/seqArithmeticSituations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAiBlE,MAAM,MAAM,4BAA4B,GAAG;IACzC,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,GAAG,SAAS,EAAE,OAAO,EAAE,KACpB,MAAM,CAAC;IAEZ,aAAa,EAAE,CACb,OAAO,EAAE,MAAM,EACf,MA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