kececinumbers 0.5.8__py3-none-any.whl → 0.5.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 +1 -1
- kececinumbers/_version.py +1 -1
- kececinumbers/kececinumbers.py +33 -19
- {kececinumbers-0.5.8.dist-info → kececinumbers-0.5.9.dist-info}/METADATA +1 -1
- kececinumbers-0.5.9.dist-info/RECORD +10 -0
- kececinumbers-0.5.8.dist-info/RECORD +0 -10
- {kececinumbers-0.5.8.dist-info → kececinumbers-0.5.9.dist-info}/WHEEL +0 -0
- {kececinumbers-0.5.8.dist-info → kececinumbers-0.5.9.dist-info}/licenses/LICENSE +0 -0
- {kececinumbers-0.5.8.dist-info → kececinumbers-0.5.9.dist-info}/top_level.txt +0 -0
kececinumbers/__init__.py
CHANGED
kececinumbers/_version.py
CHANGED
kececinumbers/kececinumbers.py
CHANGED
@@ -739,52 +739,66 @@ 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): "))
|
781
788
|
|
782
|
-
sequence
|
789
|
+
# Generate the sequence with the correct parameter names and values
|
790
|
+
sequence = get_with_params(
|
791
|
+
kececi_type_choice=type_choice,
|
792
|
+
iterations=num_kececi_steps,
|
793
|
+
start_value_raw=start_input_val_raw,
|
794
|
+
add_value_raw=add_input_val_raw
|
795
|
+
)
|
783
796
|
|
797
|
+
# Gather the parameters in a dictionary to return
|
784
798
|
params = {
|
785
799
|
"type_choice": type_choice,
|
786
800
|
"start_val": start_input_val_raw,
|
787
|
-
"add_val":
|
801
|
+
"add_val": add_input_val_raw,
|
788
802
|
"steps": num_kececi_steps
|
789
803
|
}
|
790
804
|
return sequence, params
|
@@ -0,0 +1,10 @@
|
|
1
|
+
docs/conf.py,sha256=jkpH_TchRJcC_EspKeY1E_rml2ODmIWhWoqvyCPu_ok,1116
|
2
|
+
kececinumbers/__init__.py,sha256=E8Nk_n7roz8IgQxA-dkWJ7tToZmTSud5RBDgO4n0I-E,3758
|
3
|
+
kececinumbers/_version.py,sha256=z7FlKUDDllkVhHgBBvimz_Whgg40EDNAvZnO2znVl-Q,453
|
4
|
+
kececinumbers/kececinumbers.py,sha256=GPl7VqpzV0ZZ0p1cv8kCpqOhXVF41umtzBfDRWHlfu8,44320
|
5
|
+
kececinumbers-0.5.9.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
|
6
|
+
tests/test_sample.py,sha256=qMWUBGQtlF1gZHZ_e6Gye1vHtyNnUWH7iXK72a1y6VQ,9728
|
7
|
+
kececinumbers-0.5.9.dist-info/METADATA,sha256=61CDpdpFABww57JXGcBudUR_Q-l0I7-FjHJIXnWtSlM,33010
|
8
|
+
kececinumbers-0.5.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
kececinumbers-0.5.9.dist-info/top_level.txt,sha256=ABQEKRH9iYb4sWnFdx7gIx7Hg899YktRkQpbRlSSqwU,25
|
10
|
+
kececinumbers-0.5.9.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
docs/conf.py,sha256=jkpH_TchRJcC_EspKeY1E_rml2ODmIWhWoqvyCPu_ok,1116
|
2
|
-
kececinumbers/__init__.py,sha256=qOyZxNCI627Iqc0Y9B83NK7Hgfi6P0MWyKj0on1vSxY,3758
|
3
|
-
kececinumbers/_version.py,sha256=Iol6DIeGBWIMbYjoVEh5ygHz4Qmz7Pe8O0Eb44eg1G4,453
|
4
|
-
kececinumbers/kececinumbers.py,sha256=xFHorKX_1k9OzOWlAlx3X49d99NXTV_4O6Yd7bJGxhI,43937
|
5
|
-
kececinumbers-0.5.8.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
|
6
|
-
tests/test_sample.py,sha256=qMWUBGQtlF1gZHZ_e6Gye1vHtyNnUWH7iXK72a1y6VQ,9728
|
7
|
-
kececinumbers-0.5.8.dist-info/METADATA,sha256=d38CNqBD7Nkv7wThubxEQkiJ337UhbNxyMsgP1esO94,33010
|
8
|
-
kececinumbers-0.5.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
-
kececinumbers-0.5.8.dist-info/top_level.txt,sha256=ABQEKRH9iYb4sWnFdx7gIx7Hg899YktRkQpbRlSSqwU,25
|
10
|
-
kececinumbers-0.5.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|