kececinumbers 0.3.8__py3-none-any.whl → 0.3.9__py3-none-any.whl

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.
kececinumbers/__init__.py CHANGED
@@ -20,7 +20,7 @@ import warnings
20
20
  # importlib.reload(kececinumbers) # F821 undefined name 'kececinumbers'
21
21
 
22
22
  # Paket sürüm numarası
23
- __version__ = "0.3.8"
23
+ __version__ = "0.3.9"
24
24
  __author__ = "Mehmet Keçeci"
25
25
  __email__ = "mkececi@yaani.com"
26
26
 
kececinumbers/_version.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # _version.py
2
2
 
3
- __version__ = "0.3.8"
3
+ __version__ = "0.3.9"
4
4
  __license__ = "MIT"
5
5
  __description__ = "Keçeci Numbers: An Exploration of a Dynamic Sequence Across Diverse Number Sets."
6
6
  __author__ = "Mehmet Keçeci"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececinumbers
3
- Version: 0.3.8
3
+ Version: 0.3.9
4
4
  Summary: Keçeci Numbers: An Exploration of a Dynamic Sequence Across Diverse Number Sets
5
5
  Home-page: https://github.com/WhiteSymmetry/kececinumbers
6
6
  Author: Mehmet Keçeci
@@ -259,36 +259,31 @@ import kececinumbers as kn
259
259
 
260
260
  print("--- Interactive Test ---")
261
261
 
262
- # Adım 1: get_interactive'ten tüm verileri al
263
- # Not: Fonksiyon artık birden fazla değer döndürüyor.
264
- interactive_results = kn.get_interactive()
262
+ # Adım 1: get_interactive'ten dönen 2 değeri al (dizi ve parametre sözlüğü)
263
+ # Hata bu satırdaydı. Fonksiyon 2 değer döndürüyor, 5 değil.
264
+ seq_interactive, params = kn.get_interactive()
265
265
 
266
266
  # Fonksiyon bir dizi döndürdüyse (başarılıysa) devam et
267
- if interactive_results and interactive_results[0]:
268
- # Dönen değerleri değişkenlere ata
269
- seq_interactive, type_choice, start_val, add_val, steps = interactive_results
267
+ if seq_interactive:
268
+ # Adım 2: Tip numarasını ve ismini al
269
+ # Gerekli tüm bilgiler zaten `params` sözlüğünde mevcut.
270
+ type_choice = params['type_choice']
270
271
 
271
- # Tip numarasını isme çevirelim
272
272
  type_names = [
273
273
  "Positive Real", "Negative Real", "Complex", "Float", "Rational",
274
274
  "Quaternion", "Neutrosophic", "Neutro-Complex", "Hyperreal",
275
275
  "Bicomplex", "Neutro-Bicomplex"
276
276
  ]
277
- type_name = type_names[type_choice - 1]
278
-
279
- # Adım 2: Ayrıntılı raporu yazdır
280
- params = {
281
- 'type_choice': type_choice,
282
- 'type_name': type_name,
283
- 'start_val': start_val,
284
- 'add_val': add_val,
285
- 'steps': steps
286
- }
277
+ # type_name'i params sözlüğüne ekleyerek raporu zenginleştirelim
278
+ params['type_name'] = type_names[type_choice - 1]
279
+
280
+ # Adım 3: Ayrıntılı raporu yazdır
281
+ # Fonksiyondan dönen params sözlüğünü doğrudan kullanıyoruz.
287
282
  kn.print_detailed_report(seq_interactive, params)
288
283
 
289
- # Adım 3: Grafiği SADECE BİR KERE çizdir
284
+ # Adım 4: Grafiği çizdir
290
285
  print("\nDisplaying plot...")
291
- plot_title = f"Interactive Keçeci Sequence ({type_name})"
286
+ plot_title = f"Interactive Keçeci Sequence ({params['type_name']})"
292
287
  kn.plot_numbers(seq_interactive, plot_title)
293
288
  plt.show()
294
289
 
@@ -298,22 +293,30 @@ else:
298
293
 
299
294
  ```python
300
295
  import matplotlib.pyplot as plt
301
- import random
302
- import numpy as np
303
- import math
304
- from fractions import Fraction
305
- import quaternion # pip install numpy numpy-quaternion
306
296
  import kececinumbers as kn
307
297
 
308
298
  # Matplotlib grafiklerinin notebook içinde gösterilmesini sağla
309
299
  %matplotlib inline
310
300
 
311
301
  print("Trying interactive mode (will prompt for input in the console/output area)...")
312
- interactive_sequence = kn.get_interactive()
313
- if interactive_sequence:
314
- kn.plot_numbers(interactive_sequence, title="Keçeci Numbers")
315
302
 
316
- print("Done with examples.")
303
+ # DÜZELTİLMİŞ KISIM:
304
+ # get_interactive'ten dönen iki değeri ayrı değişkenlere alıyoruz.
305
+ # 'seq' listenin kendisi, 'params' ise parametre sözlüğüdür.
306
+ seq, params = kn.get_interactive()
307
+
308
+ # Sadece dizi (seq) başarılı bir şekilde oluşturulduysa devam et
309
+ if seq:
310
+ print("\nSequence generated successfully. Plotting...")
311
+ # plot_numbers fonksiyonuna artık doğru şekilde SADECE listeyi gönderiyoruz.
312
+ kn.plot_numbers(seq, title=f"Interactive Keçeci Numbers ({params.get('type_name', '')})")
313
+ # Grafiği göstermek için plt.show() ekleyelim
314
+ plt.show()
315
+ else:
316
+ print("\nSequence generation failed or was cancelled.")
317
+
318
+
319
+ print("\nDone with examples.")
317
320
  print("Keçeci Numbers Module Loaded.")
318
321
  print("This module provides functions to generate and plot Keçeci Numbers.")
319
322
  print("Example: Use 'import kececinumbers as kn' in your script/notebook.")
@@ -323,8 +326,6 @@ print("- kn.get_with_params(kececi_type, iterations, ...)")
323
326
  print("- kn.get_random_type(iterations, ...)")
324
327
  print("- kn.plot_numbers(sequence, title)")
325
328
  print("- kn.unified_generator(...) (low-level)")
326
- print("\nAccess definitions with: kn.DEFINITIONS")
327
- print("\nAccess type constants like: kn.TYPE_COMPLEX")
328
329
  ```
329
330
  ---
330
331
  Trying interactive mode (will prompt for input in the console/output area)...
@@ -379,18 +380,31 @@ Enter the number of iterations (positive integer: e.g., 30): 30
379
380
  import matplotlib.pyplot as plt
380
381
  import kececinumbers as kn
381
382
 
382
-
383
+ # ==============================================================================
384
+ # --- Interactive Test ---
385
+ # ==============================================================================
383
386
  print("--- Interactive Test ---")
384
- seq_interactive = kn.get_interactive()
387
+
388
+ # DÜZELTME: Fonksiyondan dönen 2 değeri ayrı değişkenlere alıyoruz.
389
+ # Sadece diziye ihtiyacımız olduğu için 'params'ı şimdilik kullanmayacağız.
390
+ seq_interactive, params_interactive = kn.get_interactive()
391
+
392
+ # Dizi başarılı bir şekilde oluşturulduysa (boş değilse) grafiği çiz
385
393
  if seq_interactive:
386
- kn.plot_numbers(seq_interactive, "Keçeci Numbers")
394
+ kn.plot_numbers(seq_interactive, "Interactive Keçeci Numbers")
387
395
 
396
+ # ==============================================================================
397
+ # --- Random Type Test (Bu kısım zaten doğruydu) ---
398
+ # ==============================================================================
388
399
  print("\n--- Random Type Test (60 Keçeci Steps) ---")
389
400
  # num_iterations burada Keçeci adımı sayısıdır
390
401
  seq_random = kn.get_random_type(num_iterations=60)
391
402
  if seq_random:
392
403
  kn.plot_numbers(seq_random, "Random Type Keçeci Numbers")
393
404
 
405
+ # ==============================================================================
406
+ # --- Fixed Params Test (Bu kısım da zaten doğruydu) ---
407
+ # ==============================================================================
394
408
  print("\n--- Fixed Params Test (Complex, 60 Keçeci Steps) ---")
395
409
  seq_fixed = kn.get_with_params(
396
410
  kececi_type_choice=kn.TYPE_COMPLEX,
@@ -406,6 +420,12 @@ if seq_fixed:
406
420
  kpn_direct = kn.find_kececi_prime_number(seq_fixed)
407
421
  if kpn_direct is not None:
408
422
  print(f"\nDirect call to find_kececi_prime_number for fixed numbers: {kpn_direct}")
423
+
424
+ # ==============================================================================
425
+ # --- Tüm Grafikleri Göster ---
426
+ # ==============================================================================
427
+ print("\nDisplaying all generated plots...")
428
+ plt.show()
409
429
  ```
410
430
 
411
431
  Generated Keçeci Sequence (first 20 of 121): [4, 11, 12, 4, 11, 10, 5, 12, 4, 11, 12, 6, 13, 12, 4, 11, 12, 6, 13, 12]...
@@ -0,0 +1,8 @@
1
+ kececinumbers/__init__.py,sha256=AzkIlee1UVegHym7hCZr9QSjAj6Bh0zRcdBI1GJqO7A,3509
2
+ kececinumbers/_version.py,sha256=VcqtPl7RCP8LvKkQKaiYi-62UfMkTQoU8w7tkY_R2xc,428
3
+ kececinumbers/kececinumbers.py,sha256=cCvxaUJG2Tbbm0TJ52J1SerOG-9c_KDVcAMBGWEBh4k,38922
4
+ kececinumbers-0.3.9.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
5
+ kececinumbers-0.3.9.dist-info/METADATA,sha256=mQAHf1DDaGLcURmOVJJ6Lpm3XM_xcHt86cz3e_aN8RA,31263
6
+ kececinumbers-0.3.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ kececinumbers-0.3.9.dist-info/top_level.txt,sha256=VvlbQKmTjOlzBbvq54-AaXp_WPRZ5dOhw91lV-ytPRQ,14
8
+ kececinumbers-0.3.9.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- kececinumbers/__init__.py,sha256=EeohepJqU3d2ezF0EyI3NoIPRiItEbdv44MGOuRDZ1A,3509
2
- kececinumbers/_version.py,sha256=wjgcW_OVk93cHcj9G_rwu9gIUNtQYCaOdJxQn_3-afY,428
3
- kececinumbers/kececinumbers.py,sha256=cCvxaUJG2Tbbm0TJ52J1SerOG-9c_KDVcAMBGWEBh4k,38922
4
- kececinumbers-0.3.8.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
5
- kececinumbers-0.3.8.dist-info/METADATA,sha256=IFQfRStBj-PrdHiRwXtthmfgw7eakvDtvgWfO8VWfwY,29844
6
- kececinumbers-0.3.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- kececinumbers-0.3.8.dist-info/top_level.txt,sha256=VvlbQKmTjOlzBbvq54-AaXp_WPRZ5dOhw91lV-ytPRQ,14
8
- kececinumbers-0.3.8.dist-info/RECORD,,