kececinumbers 0.5.1__py3-none-any.whl → 0.5.2__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
@@ -22,7 +22,7 @@ import warnings
22
22
  # importlib.reload(kececinumbers) # F821 undefined name 'kececinumbers'
23
23
 
24
24
  # Paket sürüm numarası
25
- __version__ = "0.5.1"
25
+ __version__ = "0.5.2"
26
26
  __author__ = "Mehmet Keçeci"
27
27
  __email__ = "mkececi@yaani.com"
28
28
 
@@ -40,6 +40,7 @@ __all__ = [
40
40
  'get_interactive',
41
41
  'get_random_type',
42
42
  '_get_integer_representation',
43
+ '_parse_quaternion_from_csv',
43
44
  'generate_kececi_vectorial',
44
45
 
45
46
  # --- Core Generation and Analysis ---
@@ -86,6 +87,7 @@ try:
86
87
  get_interactive,
87
88
  get_random_type,
88
89
  _get_integer_representation,
90
+ _parse_quaternion_from_csv,
89
91
  generate_kececi_vectorial,
90
92
  unified_generator,
91
93
  is_prime,
kececinumbers/_version.py CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # _version.py
3
3
 
4
- __version__ = "0.5.1"
4
+ __version__ = "0.5.2"
5
5
  __license__ = "MIT"
6
6
  __description__ = "Keçeci Numbers: An Exploration of a Dynamic Sequence Across Diverse Number Sets."
7
7
  __author__ = "Mehmet Keçeci"
@@ -533,6 +533,17 @@ def generate_kececi_vectorial(q0_str, c_str, u_str, iterations):
533
533
 
534
534
  return trajectory, prime_events
535
535
 
536
+ def _parse_quaternion_from_csv(s: str) -> np.quaternion:
537
+ """Parses a comma-separated string 'w,x,y,z' into a quaternion."""
538
+ try:
539
+ parts = [float(p.strip()) for p in s.split(',')]
540
+ if len(parts) != 4:
541
+ raise ValueError("Girdi 4 bileşen içermelidir.")
542
+ # *parts -> (parts[0], parts[1], parts[2], parts[3])
543
+ return np.quaternion(*parts)
544
+ except (ValueError, IndexError) as e:
545
+ raise ValueError(f"Geçersiz virgülle ayrılmış kuaterniyon formatı: '{s}'.") from e
546
+
536
547
  # ==============================================================================
537
548
  # --- CORE GENERATOR ---
538
549
  # ==============================================================================
@@ -596,9 +607,13 @@ def unified_generator(kececi_type: int, start_input_raw: str, add_input_base_sca
596
607
  current_value = NeutrosophicBicomplexNumber(s_complex.real, s_complex.imag, 0, 0, 0, 0, 0, 0)
597
608
  add_value_typed = NeutrosophicBicomplexNumber(a_float, 0, 0, 0, 0, 0, 0, 0)
598
609
  ask_unit = NeutrosophicBicomplexNumber(*([1.0] * 8))
610
+ #elif kececi_type == TYPE_QUATERNION:
611
+ #current_value = _parse_quaternion(start_input_raw)
612
+ #add_value_typed = np.quaternion(a_float, a_float, a_float, a_float)
613
+ #ask_unit = np.quaternion(1, 1, 1, 1)
599
614
  elif kececi_type == TYPE_QUATERNION:
600
- current_value = _parse_quaternion(start_input_raw)
601
- add_value_typed = np.quaternion(a_float, a_float, a_float, a_float)
615
+ current_value = _parse_quaternion_from_csv(start_input_raw)
616
+ add_value_typed = _parse_quaternion_from_csv(add_input_base_scalar) # Değişiklik burada
602
617
  ask_unit = np.quaternion(1, 1, 1, 1)
603
618
 
604
619
  except (ValueError, TypeError) as e:
@@ -694,13 +709,22 @@ def print_detailed_report(sequence: List[Any], params: Dict[str, Any]):
694
709
  # --- HIGH-LEVEL CONTROL FUNCTIONS ---
695
710
  # ==============================================================================
696
711
 
697
- def get_with_params(kececi_type_choice: int, iterations: int, start_value_raw: str = "0", add_value_base_scalar: float = 9.0) -> List[Any]:
698
- """Generates Keçeci Numbers with specified parameters."""
712
+ #def get_with_params(kececi_type_choice: int, iterations: int, start_value_raw: str = "0", add_value_base_scalar: float = 9.0) -> List[Any]:
713
+ # """Generates Keçeci Numbers with specified parameters."""
714
+ # print(f"\n--- Generating Sequence: Type {kececi_type_choice}, Steps {iterations} ---")
715
+ # print(f"Start: '{start_value_raw}', Increment: {add_value_base_scalar}")
716
+
717
+ # generated_sequence = unified_generator(
718
+ # kececi_type_choice, start_value_raw, add_value_base_scalar, iterations
719
+ # )
720
+
721
+ def get_with_params(kececi_type_choice: int, iterations: int, start_value_raw: str = "0.0,0.0,0.0,0.0", add_value_raw: str = "1.3,-2.1,0.5,3.4") -> List[Any]:
722
+ """Generates Keçeci Numbers with specified parameters, supporting full vectorial addition."""
699
723
  print(f"\n--- Generating Sequence: Type {kececi_type_choice}, Steps {iterations} ---")
700
- print(f"Start: '{start_value_raw}', Increment: {add_value_base_scalar}")
724
+ print(f"Start: '{start_value_raw}', Increment: '{add_value_raw}'")
701
725
 
702
726
  generated_sequence = unified_generator(
703
- kececi_type_choice, start_value_raw, add_value_base_scalar, iterations
727
+ kececi_type_choice, start_value_raw, add_value_raw, iterations
704
728
  )
705
729
 
706
730
  if generated_sequence:
@@ -748,7 +772,12 @@ def get_interactive() -> Tuple[List[Any], Dict[str, Any]]:
748
772
 
749
773
  start_prompt = prompts.get(type_choice, "Enter starting value: ")
750
774
  start_input_val_raw = input(start_prompt)
751
- add_base_scalar_val = float(input("Enter base scalar increment (e.g., 9.0): "))
775
+ #add_base_scalar_val = float(input("Enter base scalar increment (e.g., 9.0): "))
776
+ if type_choice == TYPE_QUATERNION:
777
+ add_input_val_raw = input("Enter quaternion increment (e.g., '1.3,-2.1,0.5,3.4'): ")
778
+ else:
779
+ # Diğer tipler için eski mantık devam edebilir veya hepsi için string istenir
780
+ add_input_val_raw = input("Enter increment value: ")
752
781
  num_kececi_steps = int(input("Enter number of Keçeci steps (e.g., 15): "))
753
782
 
754
783
  sequence = get_with_params(type_choice, num_kececi_steps, start_input_val_raw, add_base_scalar_val)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececinumbers
3
- Version: 0.5.1
3
+ Version: 0.5.2
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
@@ -0,0 +1,10 @@
1
+ docs/conf.py,sha256=jkpH_TchRJcC_EspKeY1E_rml2ODmIWhWoqvyCPu_ok,1116
2
+ kececinumbers/__init__.py,sha256=GmhUWhMpBjMeGJ-LV4oxI5qA5UDCrCwh6ueO9uE1EYY,3758
3
+ kececinumbers/_version.py,sha256=cmDXhAyFEd7qy5FlMI41EPXUmTpFhes1dmXMh1Rq3NA,453
4
+ kececinumbers/kececinumbers.py,sha256=d2gDDpGnzf0exNqopEl4YprLmj1-REtMzJH5-r6n57M,42939
5
+ kececinumbers-0.5.2.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
6
+ tests/test_sample.py,sha256=qMWUBGQtlF1gZHZ_e6Gye1vHtyNnUWH7iXK72a1y6VQ,9728
7
+ kececinumbers-0.5.2.dist-info/METADATA,sha256=9-fGVebcbmv1DoaDQqMC5LBFwWJtAmkl6cuaE87-6q0,32989
8
+ kececinumbers-0.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ kececinumbers-0.5.2.dist-info/top_level.txt,sha256=ABQEKRH9iYb4sWnFdx7gIx7Hg899YktRkQpbRlSSqwU,25
10
+ kececinumbers-0.5.2.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- docs/conf.py,sha256=jkpH_TchRJcC_EspKeY1E_rml2ODmIWhWoqvyCPu_ok,1116
2
- kececinumbers/__init__.py,sha256=46zrd9XM0kqAIVXSlUexM7_d34oqRJIy8vDlvNisWBU,3688
3
- kececinumbers/_version.py,sha256=G77E2WdNRJZcFQMn5X8NPZsy8EaBiuqWmenbOjRRClQ,453
4
- kececinumbers/kececinumbers.py,sha256=XvIcSwXMyaEH8Aonz5OQKAk4DA0kOed4tTGejQCzh4w,41300
5
- kececinumbers-0.5.1.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
6
- tests/test_sample.py,sha256=qMWUBGQtlF1gZHZ_e6Gye1vHtyNnUWH7iXK72a1y6VQ,9728
7
- kececinumbers-0.5.1.dist-info/METADATA,sha256=28TwzglS8JW-MFpvppBGRTKQ1v-NaC593kfL1hoR_zM,32989
8
- kececinumbers-0.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- kececinumbers-0.5.1.dist-info/top_level.txt,sha256=ABQEKRH9iYb4sWnFdx7gIx7Hg899YktRkQpbRlSSqwU,25
10
- kececinumbers-0.5.1.dist-info/RECORD,,