kececinumbers 0.6.6__tar.gz → 0.6.8__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.6.6/kececinumbers.egg-info → kececinumbers-0.6.8}/PKG-INFO +1 -1
- kececinumbers-0.6.8/kececinumbers/__init__.py +313 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/kececinumbers/_version.py +1 -1
- kececinumbers-0.6.8/kececinumbers/kececinumbers.py +3134 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8/kececinumbers.egg-info}/PKG-INFO +1 -1
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/pyproject.toml +1 -1
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/tests/test_sample.py +17 -18
- kececinumbers-0.6.6/kececinumbers/__init__.py +0 -144
- kececinumbers-0.6.6/kececinumbers/kececinumbers.py +0 -1458
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/LICENSE +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/MANIFEST.in +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/README.md +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/docs/conf.py +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/kececinumbers.egg-info/SOURCES.txt +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/kececinumbers.egg-info/dependency_links.txt +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/kececinumbers.egg-info/requires.txt +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/kececinumbers.egg-info/top_level.txt +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/setup.cfg +0 -0
- {kececinumbers-0.6.6 → kececinumbers-0.6.8}/setup.py +0 -0
@@ -0,0 +1,313 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# __init__.py
|
3
|
+
|
4
|
+
"""
|
5
|
+
Keçeci Numbers: A Comprehensive Framework for Number Sequence Analysis.
|
6
|
+
|
7
|
+
This package provides tools for generating, analyzing, and visualizing
|
8
|
+
11 different types of Keçeci Number sequences, from standard integers
|
9
|
+
to complex algebraic structures like quaternions and neutrosophic numbers.
|
10
|
+
|
11
|
+
Bu dosya paketin başlangıç noktası olarak çalışır.
|
12
|
+
Alt modülleri yükler, sürüm bilgileri tanımlar ve geriye dönük uyumluluk için uyarılar sağlar.
|
13
|
+
"""
|
14
|
+
|
15
|
+
from __future__ import annotations
|
16
|
+
import inspect
|
17
|
+
import importlib
|
18
|
+
import os
|
19
|
+
import warnings
|
20
|
+
|
21
|
+
# if os.getenv("DEVELOPMENT") == "true":
|
22
|
+
# importlib.reload(kececinumbers) # F821 undefined name 'kececinumbers'
|
23
|
+
|
24
|
+
# Paket sürüm numarası
|
25
|
+
__version__ = "0.6.8"
|
26
|
+
__author__ = "Mehmet Keçeci"
|
27
|
+
__email__ = "mkececi@yaani.com"
|
28
|
+
|
29
|
+
# Public API exposed to users of the 'kececinumbers' package.
|
30
|
+
# Public API exposed to users of the 'kececinumbers' package.
|
31
|
+
__all__ = [
|
32
|
+
# --- Custom Number Classes ---
|
33
|
+
'NeutrosophicNumber',
|
34
|
+
'NeutrosophicComplexNumber',
|
35
|
+
'HyperrealNumber',
|
36
|
+
'BicomplexNumber',
|
37
|
+
'NeutrosophicBicomplexNumber',
|
38
|
+
'OctonionNumber',
|
39
|
+
'Constants',
|
40
|
+
'SedenionNumber',
|
41
|
+
'CliffordNumber',
|
42
|
+
'DualNumber',
|
43
|
+
'SplitcomplexNumber',
|
44
|
+
|
45
|
+
# --- High-Level Functions ---
|
46
|
+
'get_with_params',
|
47
|
+
'get_interactive',
|
48
|
+
'get_random_type',
|
49
|
+
'_get_integer_representation',
|
50
|
+
'_parse_quaternion_from_csv',
|
51
|
+
'generate_kececi_vectorial',
|
52
|
+
'_plot_comparison', # DÜZELTİLDİ: '_plot_comparsion' -> '_plot_comparison'
|
53
|
+
'_find_kececi_zeta_zeros',
|
54
|
+
'_compute_gue_similarity',
|
55
|
+
'_load_zeta_zeros',
|
56
|
+
'analyze_all_types',
|
57
|
+
'analyze_pair_correlation',
|
58
|
+
'print_detailed_report',
|
59
|
+
'_gue_pair_correlation',
|
60
|
+
'_pair_correlation',
|
61
|
+
'_parse_octonion',
|
62
|
+
'generate_octonion',
|
63
|
+
'OctonionNumber',
|
64
|
+
'is_quaternion_like',
|
65
|
+
'is_neutrosophic_like',
|
66
|
+
'_has_bicomplex_format',
|
67
|
+
'_parse_bicomplex',
|
68
|
+
'coeffs',
|
69
|
+
'convert_to_float',
|
70
|
+
'safe_add',
|
71
|
+
'ZERO',
|
72
|
+
'ONE',
|
73
|
+
'I',
|
74
|
+
'J',
|
75
|
+
'K',
|
76
|
+
'E',
|
77
|
+
'F',
|
78
|
+
'G',
|
79
|
+
'H',
|
80
|
+
'_extract_numeric_part',
|
81
|
+
'_has_comma_format',
|
82
|
+
'_is_complex_like',
|
83
|
+
'is_prime_like',
|
84
|
+
'is_near_integer',
|
85
|
+
|
86
|
+
|
87
|
+
# --- Core Generation and Analysis ---
|
88
|
+
'unified_generator',
|
89
|
+
'is_prime',
|
90
|
+
'find_period',
|
91
|
+
'find_kececi_prime_number',
|
92
|
+
|
93
|
+
# --- Visualization and Reporting ---
|
94
|
+
'plot_numbers',
|
95
|
+
|
96
|
+
# --- Type Constants ---
|
97
|
+
'TYPE_POSITIVE_REAL',
|
98
|
+
'TYPE_NEGATIVE_REAL',
|
99
|
+
'TYPE_COMPLEX',
|
100
|
+
'TYPE_FLOAT',
|
101
|
+
'TYPE_RATIONAL',
|
102
|
+
'TYPE_QUATERNION',
|
103
|
+
'TYPE_NEUTROSOPHIC',
|
104
|
+
'TYPE_NEUTROSOPHIC_COMPLEX',
|
105
|
+
'TYPE_HYPERREAL',
|
106
|
+
'TYPE_BICOMPLEX',
|
107
|
+
'TYPE_NEUTROSOPHIC_BICOMPLEX',
|
108
|
+
'TYPE_OCTONION',
|
109
|
+
'TYPE_SEDENION',
|
110
|
+
'TYPE_CLIFFORD',
|
111
|
+
'TYPE_DUAL',
|
112
|
+
'TYPE_SPLIT_COMPLEX',
|
113
|
+
]
|
114
|
+
|
115
|
+
# Göreli modül içe aktarmaları
|
116
|
+
# F401 hatasını önlemek için sadece kullanacağınız şeyleri dışa aktarın
|
117
|
+
# Aksi halde linter'lar "imported but unused" uyarısı verir
|
118
|
+
from .kececinumbers import *
|
119
|
+
|
120
|
+
try:
|
121
|
+
#from .kececinumbers import * # gerekirse burada belirli fonksiyonları seçmeli yapmak daha güvenlidir
|
122
|
+
#from . import kececinumbers # Modülün kendisine doğrudan erişim isteniyorsa
|
123
|
+
# Import the public API into the package's namespace.
|
124
|
+
from .kececinumbers import (
|
125
|
+
# Classes
|
126
|
+
NeutrosophicNumber,
|
127
|
+
NeutrosophicComplexNumber,
|
128
|
+
HyperrealNumber,
|
129
|
+
BicomplexNumber,
|
130
|
+
NeutrosophicBicomplexNumber,
|
131
|
+
OctonionNumber,
|
132
|
+
Constants,
|
133
|
+
SedenionNumber,
|
134
|
+
CliffordNumber,
|
135
|
+
DualNumber,
|
136
|
+
SplitcomplexNumber,
|
137
|
+
|
138
|
+
|
139
|
+
# Functions
|
140
|
+
get_with_params,
|
141
|
+
get_interactive,
|
142
|
+
get_random_type,
|
143
|
+
_get_integer_representation,
|
144
|
+
_parse_quaternion_from_csv,
|
145
|
+
generate_kececi_vectorial,
|
146
|
+
unified_generator,
|
147
|
+
is_prime,
|
148
|
+
find_period,
|
149
|
+
find_kececi_prime_number,
|
150
|
+
plot_numbers,
|
151
|
+
print_detailed_report,
|
152
|
+
_plot_comparison,
|
153
|
+
_find_kececi_zeta_zeros,
|
154
|
+
_compute_gue_similarity,
|
155
|
+
_load_zeta_zeros,
|
156
|
+
analyze_all_types,
|
157
|
+
analyze_pair_correlation,
|
158
|
+
_gue_pair_correlation,
|
159
|
+
_pair_correlation,
|
160
|
+
_parse_octonion,
|
161
|
+
generate_octonion,
|
162
|
+
is_quaternion_like,
|
163
|
+
is_neutrosophic_like,
|
164
|
+
_has_bicomplex_format,
|
165
|
+
_parse_bicomplex,
|
166
|
+
coeffs,
|
167
|
+
convert_to_float,
|
168
|
+
safe_add,
|
169
|
+
ZERO,
|
170
|
+
ONE,
|
171
|
+
I,
|
172
|
+
J,
|
173
|
+
K,
|
174
|
+
E,
|
175
|
+
F,
|
176
|
+
G,
|
177
|
+
H,
|
178
|
+
_extract_numeric_part,
|
179
|
+
_has_comma_format,
|
180
|
+
_is_complex_like,
|
181
|
+
is_prime_like,
|
182
|
+
is_near_integer,
|
183
|
+
|
184
|
+
|
185
|
+
# Constants
|
186
|
+
TYPE_POSITIVE_REAL,
|
187
|
+
TYPE_NEGATIVE_REAL,
|
188
|
+
TYPE_COMPLEX,
|
189
|
+
TYPE_FLOAT,
|
190
|
+
TYPE_RATIONAL,
|
191
|
+
TYPE_QUATERNION,
|
192
|
+
TYPE_NEUTROSOPHIC,
|
193
|
+
TYPE_NEUTROSOPHIC_COMPLEX,
|
194
|
+
TYPE_HYPERREAL,
|
195
|
+
TYPE_BICOMPLEX,
|
196
|
+
TYPE_NEUTROSOPHIC_BICOMPLEX,
|
197
|
+
TYPE_OCTONION,
|
198
|
+
TYPE_SEDENION,
|
199
|
+
TYPE_CLIFFORD,
|
200
|
+
TYPE_DUAL,
|
201
|
+
TYPE_SPLIT_COMPLEX,
|
202
|
+
)
|
203
|
+
except ImportError as e:
|
204
|
+
warnings.warn(f"Gerekli modül yüklenemedi: {e}", ImportWarning)
|
205
|
+
|
206
|
+
# Eski bir fonksiyonun yer tutucusu - gelecekte kaldırılacak
|
207
|
+
def eski_fonksiyon():
|
208
|
+
"""
|
209
|
+
Kaldırılması planlanan eski bir fonksiyondur.
|
210
|
+
Lütfen alternatif fonksiyonları kullanın.
|
211
|
+
"""
|
212
|
+
warnings.warn(
|
213
|
+
"eski_fonksiyon() artık kullanılmamaktadır ve gelecekte kaldırılacaktır. "
|
214
|
+
"Lütfen yeni alternatif fonksiyonları kullanın. "
|
215
|
+
"Keçeci numbers; Python 3.7-3.14 sürümlerinde sorunsuz çalışmalıdır.",
|
216
|
+
category=DeprecationWarning,
|
217
|
+
stacklevel=2
|
218
|
+
)
|
219
|
+
"""
|
220
|
+
# Explicit import for critical functions to avoid cache issues
|
221
|
+
try:
|
222
|
+
from .kececinumbers import (
|
223
|
+
NeutrosophicNumber,
|
224
|
+
NeutrosophicComplexNumber,
|
225
|
+
HyperrealNumber,
|
226
|
+
BicomplexNumber,
|
227
|
+
NeutrosophicBicomplexNumber,
|
228
|
+
OctonionNumber,
|
229
|
+
Constants,
|
230
|
+
SedenionNumber,
|
231
|
+
CliffordNumber,
|
232
|
+
DualNumber,
|
233
|
+
SplitcomplexNumber,
|
234
|
+
# Functions
|
235
|
+
get_with_params,
|
236
|
+
get_interactive,
|
237
|
+
get_random_type,
|
238
|
+
_get_integer_representation,
|
239
|
+
_parse_quaternion_from_csv,
|
240
|
+
generate_kececi_vectorial,
|
241
|
+
unified_generator,
|
242
|
+
is_prime,
|
243
|
+
find_period,
|
244
|
+
find_kececi_prime_number,
|
245
|
+
plot_numbers,
|
246
|
+
_plot_comparison,
|
247
|
+
_find_kececi_zeta_zeros,
|
248
|
+
_compute_gue_similarity,
|
249
|
+
_load_zeta_zeros,
|
250
|
+
analyze_all_types,
|
251
|
+
analyze_pair_correlation,
|
252
|
+
_gue_pair_correlation,
|
253
|
+
_pair_correlation,
|
254
|
+
_parse_octonion,
|
255
|
+
generate_octonion,
|
256
|
+
ZERO,
|
257
|
+
ONE,
|
258
|
+
I,
|
259
|
+
J,
|
260
|
+
K,
|
261
|
+
E,
|
262
|
+
F,
|
263
|
+
G,
|
264
|
+
H,
|
265
|
+
# Constants
|
266
|
+
TYPE_POSITIVE_REAL,
|
267
|
+
TYPE_NEGATIVE_REAL,
|
268
|
+
TYPE_COMPLEX,
|
269
|
+
TYPE_FLOAT,
|
270
|
+
TYPE_RATIONAL,
|
271
|
+
TYPE_QUATERNION,
|
272
|
+
TYPE_NEUTROSOPHIC,
|
273
|
+
TYPE_NEUTROSOPHIC_COMPLEX,
|
274
|
+
TYPE_HYPERREAL,
|
275
|
+
TYPE_BICOMPLEX,
|
276
|
+
TYPE_NEUTROSOPHIC_BICOMPLEX,
|
277
|
+
TYPE_OCTONION,
|
278
|
+
TYPE_SEDENION,
|
279
|
+
TYPE_CLIFFORD,
|
280
|
+
TYPE_DUAL,
|
281
|
+
TYPE_SPLIT_COMPLEX
|
282
|
+
)
|
283
|
+
|
284
|
+
# Explicit olarak global namespace'e ekle
|
285
|
+
globals().update({
|
286
|
+
'analyze_all_types': analyze_all_types,
|
287
|
+
'_plot_comparison': _plot_comparison,
|
288
|
+
'TYPE_OCTONION': TYPE_OCTONION,
|
289
|
+
'TYPE_FLOAT': TYPE_FLOAT
|
290
|
+
})
|
291
|
+
|
292
|
+
except ImportError as e:
|
293
|
+
warnings.warn(f"Kritik fonksiyonlar import edilemedi: {e}", ImportWarning)
|
294
|
+
"""
|
295
|
+
"""
|
296
|
+
def __getattr__(name):
|
297
|
+
#Dynamic attribute access for better compatibility
|
298
|
+
if name in ['analyze_all_types', '_plot_comparison']:
|
299
|
+
try:
|
300
|
+
from .kececinumbers import analyze_all_types, _plot_comparison, TYPE_OCTONION, TYPE_FLOAT
|
301
|
+
if name == 'analyze_all_types':
|
302
|
+
return analyze_all_types
|
303
|
+
elif name == '_plot_comparison':
|
304
|
+
return _plot_comparison
|
305
|
+
elif name == 'TYPE_OCTONION':
|
306
|
+
return TYPE_OCTONION
|
307
|
+
elif name == 'TYPE_FLOAT':
|
308
|
+
return TYPE_FLOAT
|
309
|
+
except ImportError:
|
310
|
+
pass
|
311
|
+
|
312
|
+
raise AttributeError(f"module 'kececinumbers' has no attribute '{name}'")
|
313
|
+
"""
|