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.
- {kececinumbers-0.5.8/kececinumbers.egg-info → kececinumbers-0.6.0}/PKG-INFO +3 -2
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/README.md +2 -1
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers/__init__.py +1 -1
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers/_version.py +1 -1
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers/kececinumbers.py +38 -19
- {kececinumbers-0.5.8 → kececinumbers-0.6.0/kececinumbers.egg-info}/PKG-INFO +3 -2
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/pyproject.toml +1 -1
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/LICENSE +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/MANIFEST.in +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/docs/conf.py +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers.egg-info/SOURCES.txt +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers.egg-info/dependency_links.txt +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers.egg-info/requires.txt +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/kececinumbers.egg-info/top_level.txt +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/setup.cfg +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/setup.py +0 -0
- {kececinumbers-0.5.8 → kececinumbers-0.6.0}/tests/test_sample.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: kececinumbers
|
3
|
-
Version: 0.
|
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
|
-
|
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
|
-
|
132
|
+
add_value_raw="9.0" # <-- The change is here
|
132
133
|
)
|
133
134
|
|
134
135
|
# If the sequence was generated successfully, plot it
|
@@ -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
|
-
"""
|
743
|
-
|
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'
|
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'
|
764
|
-
6: "Enter quaternion (e.g., '1
|
765
|
-
7: "Enter neutrosophic start (e.g., '5+2I'
|
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'
|
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
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
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
|
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":
|
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.
|
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
|
-
|
193
|
+
add_value_raw="9.0" # <-- The change is here
|
193
194
|
)
|
194
195
|
|
195
196
|
# If the sequence was generated successfully, plot it
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|