kececinumbers 0.6.1__tar.gz → 0.6.3__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.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")
@@ -119,20 +119,40 @@ pip install kececinumbers
119
119
 
120
120
  The following example creates and visualizes a Keçeci sequence with POSITIVE_REAL numbers.
121
121
 
122
+ ```python
123
+ import kececinumbers as kn
124
+ import matplotlib.pyplot as plt
125
+ from typing import Any, Dict, List, Tuple
126
+
127
+ if __name__ == "__main__":
128
+ # Call the interactive function from the Keçeci Numbers module
129
+ generated_sequence, used_params = kn.get_interactive()
130
+
131
+ # If a sequence was successfully generated, print the results and plot the graph
132
+ if generated_sequence:
133
+ print("\n--- Results ---")
134
+ print(f"Parameters Used: {used_params}")
135
+ print(f"Generated Sequence (first 30 elements): {generated_sequence[:30]}")
136
+
137
+ # Optionally, plot the graph
138
+ kn.plot_numbers(generated_sequence)
139
+ plt.show()
140
+ ```
141
+
142
+ or
143
+
122
144
  ```python
123
145
  import matplotlib.pyplot as plt
124
146
  import kececinumbers as kn
125
147
 
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.
128
148
  sequence = kn.get_with_params(
129
149
  kececi_type_choice=kn.TYPE_POSITIVE_REAL,
130
- iterations=20,
131
- start_value_raw="1",
132
- add_value_raw="9.0" # <-- The change is here
150
+ iterations=30,
151
+ start_value_raw="0",
152
+ add_value_raw="9.0",
153
+ include_intermediate_steps=True
133
154
  )
134
155
 
135
- # If the sequence was generated successfully, plot it
136
156
  if sequence:
137
157
  kn.plot_numbers(sequence, title="My First POSITIVE_REAL Keçeci Sequence")
138
158
  plt.show()
@@ -159,7 +179,8 @@ sequence = kn.get_with_params(
159
179
  kececi_type_choice=kn.TYPE_COMPLEX,
160
180
  iterations=60,
161
181
  start_value_raw="1+2j",
162
- add_value_base_scalar=3.0
182
+ add_value_raw=3.0,
183
+ include_intermediate_steps=True
163
184
  )
164
185
 
165
186
  # If the sequence was generated successfully, plot it
@@ -378,7 +399,8 @@ seq_fixed = kn.get_with_params(
378
399
  kececi_type_choice=kn.TYPE_COMPLEX,
379
400
  iterations=60,
380
401
  start_value_raw="1+2j",
381
- add_value_base_scalar=3.0
402
+ add_value_raw=3.0,
403
+ include_intermediate_steps=True
382
404
  )
383
405
  if seq_fixed:
384
406
  kn.plot_numbers(seq_fixed, "Fixed Params (Complex) Keçeci Numbers")
@@ -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
 
@@ -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")
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "kececinumbers"
9
- version = "0.6.1"
9
+ version = "0.6.3"
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