kececinumbers 0.3.9__tar.gz → 0.4.1__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.3.9/kececinumbers.egg-info → kececinumbers-0.4.1}/PKG-INFO +2 -1
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers/__init__.py +1 -1
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers/_version.py +1 -1
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers/kececinumbers.py +22 -2
- {kececinumbers-0.3.9 → kececinumbers-0.4.1/kececinumbers.egg-info}/PKG-INFO +2 -1
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers.egg-info/requires.txt +1 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/setup.py +3 -2
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/LICENSE +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/MANIFEST.in +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/README.md +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers.egg-info/SOURCES.txt +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers.egg-info/dependency_links.txt +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/kececinumbers.egg-info/top_level.txt +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/pyproject.toml +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/setup.cfg +0 -0
- {kececinumbers-0.3.9 → kececinumbers-0.4.1}/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.4.1
|
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
|
@@ -17,6 +17,7 @@ License-File: LICENSE
|
|
17
17
|
Requires-Dist: numpy
|
18
18
|
Requires-Dist: matplotlib
|
19
19
|
Requires-Dist: numpy-quaternion
|
20
|
+
Requires-Dist: sympy
|
20
21
|
Dynamic: author
|
21
22
|
Dynamic: author-email
|
22
23
|
Dynamic: classifier
|
@@ -39,6 +39,7 @@ import numpy as np
|
|
39
39
|
import quaternion
|
40
40
|
import random
|
41
41
|
import re
|
42
|
+
import sympy
|
42
43
|
from typing import Any, Dict, List, Optional, Tuple
|
43
44
|
|
44
45
|
|
@@ -301,7 +302,24 @@ def _get_integer_representation(n_input: Any) -> Optional[int]:
|
|
301
302
|
return None
|
302
303
|
|
303
304
|
def is_prime(n_input: Any) -> bool:
|
304
|
-
"""
|
305
|
+
"""
|
306
|
+
Checks if a given number (or its principal component) is prime
|
307
|
+
using the robust sympy.isprime function.
|
308
|
+
"""
|
309
|
+
# Adım 1: Karmaşık sayı türünden tamsayıyı çıkarma (Bu kısım aynı kalıyor)
|
310
|
+
value_to_check = _get_integer_representation(n_input)
|
311
|
+
|
312
|
+
# Adım 2: Tamsayı geçerli değilse False döndür
|
313
|
+
if value_to_check is None:
|
314
|
+
return False
|
315
|
+
|
316
|
+
# Adım 3: Asallık testini sympy'ye bırak
|
317
|
+
# sympy.isprime, 2'den küçük sayılar (1, 0, negatifler) için zaten False döndürür.
|
318
|
+
return sympy.isprime(value_to_check)
|
319
|
+
|
320
|
+
"""
|
321
|
+
def is_prime(n_input: Any) -> bool:
|
322
|
+
#Checks if a given number (or its principal component) is prime.
|
305
323
|
value_to_check = _get_integer_representation(n_input)
|
306
324
|
if value_to_check is None or value_to_check < 2:
|
307
325
|
return False
|
@@ -313,6 +331,7 @@ def is_prime(n_input: Any) -> bool:
|
|
313
331
|
if value_to_check % i == 0:
|
314
332
|
return False
|
315
333
|
return True
|
334
|
+
"""
|
316
335
|
|
317
336
|
def _is_divisible(value: Any, divisor: int, kececi_type: int) -> bool:
|
318
337
|
"""Helper to check divisibility for different number types."""
|
@@ -785,7 +804,8 @@ def plot_numbers(sequence: List[Any], title: str = "Keçeci Number Sequence Anal
|
|
785
804
|
|
786
805
|
elif isinstance(first_elem, np.quaternion):
|
787
806
|
gs = GridSpec(2, 1, figure=fig)
|
788
|
-
ax1
|
807
|
+
ax1 = fig.add_subplot(gs[0, 0])
|
808
|
+
ax2 = fig.add_subplot(gs[1, 0], sharex=ax1)
|
789
809
|
ax1.plot([q.w for q in sequence], 'o-', label='w (scalar)'), ax1.plot([q.x for q in sequence], 's--', label='x')
|
790
810
|
ax1.plot([q.y for q in sequence], '^--', label='y'), ax1.plot([q.z for q in sequence], 'd--', label='z')
|
791
811
|
ax1.set_title("Quaternion Components"), ax1.legend()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: kececinumbers
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.1
|
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
|
@@ -17,6 +17,7 @@ License-File: LICENSE
|
|
17
17
|
Requires-Dist: numpy
|
18
18
|
Requires-Dist: matplotlib
|
19
19
|
Requires-Dist: numpy-quaternion
|
20
|
+
Requires-Dist: sympy
|
20
21
|
Dynamic: author
|
21
22
|
Dynamic: author-email
|
22
23
|
Dynamic: classifier
|
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|
3
3
|
|
4
4
|
setup(
|
5
5
|
name="kececinumbers",
|
6
|
-
version="0.
|
6
|
+
version="0.4.1",
|
7
7
|
description="Keçeci Numbers: An Exploration of a Dynamic Sequence Across Diverse Number Sets",
|
8
8
|
long_description=open("README.md").read(),
|
9
9
|
long_description_content_type="text/markdown",
|
@@ -16,7 +16,8 @@ setup(
|
|
16
16
|
install_requires=[
|
17
17
|
"numpy",
|
18
18
|
"matplotlib",
|
19
|
-
"numpy-quaternion"
|
19
|
+
"numpy-quaternion",
|
20
|
+
"sympy",
|
20
21
|
],
|
21
22
|
extras_require={
|
22
23
|
|
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
|