kececinumbers 0.5.8__tar.gz → 0.6.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececinumbers
3
- Version: 0.5.8
3
+ Version: 0.6.0
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
@@ -185,11 +185,12 @@ import matplotlib.pyplot as plt
185
185
  import kececinumbers as kn
186
186
 
187
187
  # Generate a Keçeci sequence with specific parameters
188
+ # FIX: Renamed 'add_value_base_scalar' to 'add_value_raw' and converted the value to a string.
188
189
  sequence = kn.get_with_params(
189
190
  kececi_type_choice=kn.TYPE_POSITIVE_REAL,
190
191
  iterations=20,
191
192
  start_value_raw="1",
192
- add_value_base_scalar=9.0
193
+ add_value_raw="9.0" # <-- The change is here
193
194
  )
194
195
 
195
196
  # If the sequence was generated successfully, plot it
@@ -124,11 +124,12 @@ import matplotlib.pyplot as plt
124
124
  import kececinumbers as kn
125
125
 
126
126
  # Generate a Keçeci sequence with specific parameters
127
+ # FIX: Renamed 'add_value_base_scalar' to 'add_value_raw' and converted the value to a string.
127
128
  sequence = kn.get_with_params(
128
129
  kececi_type_choice=kn.TYPE_POSITIVE_REAL,
129
130
  iterations=20,
130
131
  start_value_raw="1",
131
- add_value_base_scalar=9.0
132
+ add_value_raw="9.0" # <-- The change is here
132
133
  )
133
134
 
134
135
  # If the sequence was generated successfully, plot it
@@ -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.8"
25
+ __version__ = "0.6.0"
26
26
  __author__ = "Mehmet Keçeci"
27
27
  __email__ = "mkececi@yaani.com"
28
28
 
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # _version.py
3
3
 
4
- __version__ = "0.5.8"
4
+ __version__ = "0.6.0"
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"
@@ -739,53 +739,72 @@ def get_with_params(kececi_type_choice: int, iterations: int, start_value_raw: s
739
739
  return generated_sequence
740
740
 
741
741
  def get_interactive() -> Tuple[List[Any], Dict[str, Any]]:
742
- """Interactively gets parameters from the user to generate a sequence."""
743
- print("\n--- Keçeci Number Interactive Generator ---")
742
+ """
743
+ Interactively gets parameters from the user to generate a Keçeci Numbers sequence.
744
+ This version is improved for code clarity and compatibility with the module's
745
+ current interface.
746
+ """
747
+ print("\n--- Keçeci Numbers Interactive Generator ---")
744
748
  print(" 1: Positive Real 2: Negative Real 3: Complex")
745
749
  print(" 4: Float 5: Rational 6: Quaternion")
746
750
  print(" 7: Neutrosophic 8: Neutro-Complex 9: Hyperreal")
747
751
  print(" 10: Bicomplex 11: Neutro-Bicomplex")
748
752
 
753
+ # Get a valid number type from the user
749
754
  while True:
750
755
  try:
751
- type_choice = int(input("Select Keçeci Number Type (1-11): "))
756
+ type_choice = int(input("Select a Keçeci Number Type (1-11): "))
752
757
  if 1 <= type_choice <= 11:
753
758
  break
754
759
  print("Invalid type. Please enter a number between 1 and 11.")
755
760
  except ValueError:
756
761
  print("Invalid input. Please enter a number.")
757
762
 
758
- prompts = {
763
+ # User prompts for the starting value
764
+ start_prompts = {
759
765
  1: "Enter positive integer start (e.g., '10'): ",
760
766
  2: "Enter negative integer start (e.g., '-5'): ",
761
- 3: "Enter complex start (e.g., '3+4j' or '3' for 3+3j): ",
767
+ 3: "Enter complex start (e.g., '3+4j'): ",
762
768
  4: "Enter float start (e.g., '3.14'): ",
763
- 5: "Enter rational start (e.g., '7/2' or '5'): ",
764
- 6: "Enter quaternion (e.g., '1+2i-3j+k' or '2.5'): ",
765
- 7: "Enter neutrosophic start (e.g., '5+2I' or '7'): ",
769
+ 5: "Enter rational start (e.g., '7/2'): ",
770
+ 6: "Enter quaternion start (in 'w,x,y,z' format, e.g., '1.0,2.0,-3.0,1.0'): ",
771
+ 7: "Enter neutrosophic start (e.g., '5+2I'): ",
766
772
  8: "Enter complex base for neutro-complex (e.g., '1-2j'): ",
767
- 9: "Enter hyperreal start (e.g., '5+3e' or '10'): ",
773
+ 9: "Enter hyperreal start (e.g., '5+3e'): ",
768
774
  10: "Enter complex base for bicomplex (e.g., '2+1j'): ",
769
775
  11: "Enter complex base for neutro-bicomplex (e.g., '1+2j'): "
770
776
  }
771
777
 
772
- start_prompt = prompts.get(type_choice, "Enter starting value: ")
773
- start_input_val_raw = input(start_prompt)
774
- #add_base_scalar_val = float(input("Enter base scalar increment (e.g., 9.0): "))
775
- if type_choice == TYPE_QUATERNION:
776
- add_input_val_raw = input("Enter quaternion increment (e.g., '1.3,-2.1,0.5,3.4'): ")
777
- else:
778
- # Diğer tipler için eski mantık devam edebilir veya hepsi için string istenir
779
- add_input_val_raw = input("Enter increment value: ")
778
+ # User prompts for the increment value
779
+ add_prompts = {
780
+ TYPE_QUATERNION: "Enter quaternion increment (in 'w,x,y,z' format, e.g., '1.3,-2.1,0.5,3.4'): "
781
+ }
782
+ default_add_prompt = "Enter increment value (e.g., '9.0'): "
783
+
784
+ # Get inputs from the user
785
+ start_input_val_raw = input(start_prompts.get(type_choice, "Enter starting value: "))
786
+ add_input_val_raw = input(add_prompts.get(type_choice, default_add_prompt))
780
787
  num_kececi_steps = int(input("Enter number of Keçeci steps (e.g., 15): "))
788
+
789
+ show_details_input = input("Do you want to include the intermediate calculation steps? (y/n): ").lower().strip()
790
+ show_details = (show_details_input == 'y')
781
791
 
782
- sequence = get_with_params(type_choice, num_kececi_steps, start_input_val_raw, add_base_scalar_val)
792
+ # Generate the sequence with the correct parameter names and values
793
+ sequence = get_with_params(
794
+ kececi_type_choice=type_choice,
795
+ iterations=num_kececi_steps,
796
+ start_value_raw=start_input_val_raw,
797
+ add_value_raw=add_input_val_raw
798
+ include_intermediate_steps=show_details
799
+ )
783
800
 
801
+ # Gather the parameters in a dictionary to return
784
802
  params = {
785
803
  "type_choice": type_choice,
786
804
  "start_val": start_input_val_raw,
787
- "add_val": add_base_scalar_val,
805
+ "add_val": add_input_val_raw,
788
806
  "steps": num_kececi_steps
807
+ "detailed_view": show_details
789
808
  }
790
809
  return sequence, params
791
810
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececinumbers
3
- Version: 0.5.8
3
+ Version: 0.6.0
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
@@ -185,11 +185,12 @@ import matplotlib.pyplot as plt
185
185
  import kececinumbers as kn
186
186
 
187
187
  # Generate a Keçeci sequence with specific parameters
188
+ # FIX: Renamed 'add_value_base_scalar' to 'add_value_raw' and converted the value to a string.
188
189
  sequence = kn.get_with_params(
189
190
  kececi_type_choice=kn.TYPE_POSITIVE_REAL,
190
191
  iterations=20,
191
192
  start_value_raw="1",
192
- add_value_base_scalar=9.0
193
+ add_value_raw="9.0" # <-- The change is here
193
194
  )
194
195
 
195
196
  # If the sequence was generated successfully, plot it
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "kececinumbers"
9
- version = "0.5.8"
9
+ version = "0.6.0"
10
10
 
11
11
  # Diğer proje bilgileri (isteğe bağlı ama tavsiye edilir)
12
12
  authors = [
File without changes
File without changes
File without changes
File without changes