kececinumbers 0.6.1__py3-none-any.whl → 0.6.3__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.6.1"
25
+ __version__ = "0.6.3"
26
26
  __author__ = "Mehmet Keçeci"
27
27
  __email__ = "mkececi@yaani.com"
28
28
 
kececinumbers/_version.py CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # _version.py
3
3
 
4
- __version__ = "0.6.1"
4
+ __version__ = "0.6.3"
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"
@@ -479,7 +479,7 @@ def get_random_type(num_iterations: int, fixed_start_raw: str = "0", fixed_add_b
479
479
  kececi_type_choice=random_type_choice,
480
480
  iterations=num_iterations,
481
481
  start_value_raw=fixed_start_raw,
482
- add_value_base_scalar=fixed_add_base_scalar
482
+ add_value_raw=fixed_add_base_scalar
483
483
  )
484
484
 
485
485
  def generate_kececi_vectorial(q0_str, c_str, u_str, iterations):
@@ -762,8 +762,8 @@ def get_interactive() -> Tuple[List[Any], Dict[str, Any]]:
762
762
 
763
763
  # User prompts for the starting value
764
764
  start_prompts = {
765
- 1: "Enter positive integer start (e.g., '10'): ",
766
- 2: "Enter negative integer start (e.g., '-5'): ",
765
+ 1: "Enter positive integer start (e.g., '10.0'): ",
766
+ 2: "Enter negative integer start (e.g., '-5.0'): ",
767
767
  3: "Enter complex start (e.g., '3+4j'): ",
768
768
  4: "Enter float start (e.g., '3.14'): ",
769
769
  5: "Enter rational start (e.g., '7/2'): ",
@@ -784,7 +784,7 @@ def get_interactive() -> Tuple[List[Any], Dict[str, Any]]:
784
784
  # Get inputs from the user
785
785
  start_input_val_raw = input(start_prompts.get(type_choice, "Enter starting value: "))
786
786
  add_input_val_raw = input(add_prompts.get(type_choice, default_add_prompt))
787
- num_kececi_steps = int(input("Enter number of Keçeci steps (e.g., 15): "))
787
+ num_kececi_steps = int(input("Enter number of Keçeci steps (e.g., 30): "))
788
788
 
789
789
  show_details_input = input("Do you want to include the intermediate calculation steps? (y/n): ").lower().strip()
790
790
  show_details = (show_details_input == 'y')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kececinumbers
3
- Version: 0.6.1
3
+ Version: 0.6.3
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
@@ -180,20 +180,40 @@ pip install kececinumbers
180
180
 
181
181
  The following example creates and visualizes a Keçeci sequence with POSITIVE_REAL numbers.
182
182
 
183
+ ```python
184
+ import kececinumbers as kn
185
+ import matplotlib.pyplot as plt
186
+ from typing import Any, Dict, List, Tuple
187
+
188
+ if __name__ == "__main__":
189
+ # Call the interactive function from the Keçeci Numbers module
190
+ generated_sequence, used_params = kn.get_interactive()
191
+
192
+ # If a sequence was successfully generated, print the results and plot the graph
193
+ if generated_sequence:
194
+ print("\n--- Results ---")
195
+ print(f"Parameters Used: {used_params}")
196
+ print(f"Generated Sequence (first 30 elements): {generated_sequence[:30]}")
197
+
198
+ # Optionally, plot the graph
199
+ kn.plot_numbers(generated_sequence)
200
+ plt.show()
201
+ ```
202
+
203
+ or
204
+
183
205
  ```python
184
206
  import matplotlib.pyplot as plt
185
207
  import kececinumbers as kn
186
208
 
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.
189
209
  sequence = kn.get_with_params(
190
210
  kececi_type_choice=kn.TYPE_POSITIVE_REAL,
191
- iterations=20,
192
- start_value_raw="1",
193
- add_value_raw="9.0" # <-- The change is here
211
+ iterations=30,
212
+ start_value_raw="0",
213
+ add_value_raw="9.0",
214
+ include_intermediate_steps=True
194
215
  )
195
216
 
196
- # If the sequence was generated successfully, plot it
197
217
  if sequence:
198
218
  kn.plot_numbers(sequence, title="My First POSITIVE_REAL Keçeci Sequence")
199
219
  plt.show()
@@ -220,7 +240,8 @@ sequence = kn.get_with_params(
220
240
  kececi_type_choice=kn.TYPE_COMPLEX,
221
241
  iterations=60,
222
242
  start_value_raw="1+2j",
223
- add_value_base_scalar=3.0
243
+ add_value_raw=3.0,
244
+ include_intermediate_steps=True
224
245
  )
225
246
 
226
247
  # If the sequence was generated successfully, plot it
@@ -439,7 +460,8 @@ seq_fixed = kn.get_with_params(
439
460
  kececi_type_choice=kn.TYPE_COMPLEX,
440
461
  iterations=60,
441
462
  start_value_raw="1+2j",
442
- add_value_base_scalar=3.0
463
+ add_value_raw=3.0,
464
+ include_intermediate_steps=True
443
465
  )
444
466
  if seq_fixed:
445
467
  kn.plot_numbers(seq_fixed, "Fixed Params (Complex) Keçeci Numbers")
@@ -0,0 +1,10 @@
1
+ docs/conf.py,sha256=jkpH_TchRJcC_EspKeY1E_rml2ODmIWhWoqvyCPu_ok,1116
2
+ kececinumbers/__init__.py,sha256=BppueKxmKzWlPR0VUdq-0RiJyJOvEH3mbGqClov0mjw,3758
3
+ kececinumbers/_version.py,sha256=mXoGDVZCtP2YgLFmkRSkSIWnem5vexg9IHGcMAOgmDM,453
4
+ kececinumbers/kececinumbers.py,sha256=jf0z5I-mJ2speU6Dyqd9GTIS9Phk5GVItjY2Eaaphis,44569
5
+ kececinumbers-0.6.3.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
6
+ tests/test_sample.py,sha256=qMWUBGQtlF1gZHZ_e6Gye1vHtyNnUWH7iXK72a1y6VQ,9728
7
+ kececinumbers-0.6.3.dist-info/METADATA,sha256=CUsBABtdWjq40sYHfJSdbVZbzwQUvL-7Tx9SyzPFFJI,33659
8
+ kececinumbers-0.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ kececinumbers-0.6.3.dist-info/top_level.txt,sha256=ABQEKRH9iYb4sWnFdx7gIx7Hg899YktRkQpbRlSSqwU,25
10
+ kececinumbers-0.6.3.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- docs/conf.py,sha256=jkpH_TchRJcC_EspKeY1E_rml2ODmIWhWoqvyCPu_ok,1116
2
- kececinumbers/__init__.py,sha256=KHcN6319skV59XLnwHYF81Zp_zWE7Qd2GY1dMR8_rAs,3758
3
- kececinumbers/_version.py,sha256=2yOdX83UEE1xKM05_TIk_8kq4KsgaNT_xz-IdSOmVUU,453
4
- kececinumbers/kececinumbers.py,sha256=1iSrs6ChyixBxDc94ZVcEeo5HglvE8rru40L8EZYOUI,44573
5
- kececinumbers-0.6.1.dist-info/licenses/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
6
- tests/test_sample.py,sha256=qMWUBGQtlF1gZHZ_e6Gye1vHtyNnUWH7iXK72a1y6VQ,9728
7
- kececinumbers-0.6.1.dist-info/METADATA,sha256=xKgrvO5HQi2voKOKVEIX7R-T2BmzrXqPFO7jW41IA9c,33125
8
- kececinumbers-0.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- kececinumbers-0.6.1.dist-info/top_level.txt,sha256=ABQEKRH9iYb4sWnFdx7gIx7Hg899YktRkQpbRlSSqwU,25
10
- kececinumbers-0.6.1.dist-info/RECORD,,