adnus 0.1.2__py3-none-any.whl → 0.1.4__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.
Potentially problematic release.
This version of adnus might be problematic. Click here for more details.
adnus/_version.py
CHANGED
adnus/main.py
CHANGED
|
@@ -362,12 +362,10 @@ class HyperrealNumber(AdvancedNumber):
|
|
|
362
362
|
|
|
363
363
|
def generate_cayley_dickson_number(dimension: int, *components: float) -> Any:
|
|
364
364
|
"""
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
Generates a hypercomplex number using the Cayley-Dickson construction.
|
|
367
366
|
Args:
|
|
368
367
|
dimension: The dimension of the hypercomplex number (2^n)
|
|
369
368
|
*components: The components of the number
|
|
370
|
-
|
|
371
369
|
Returns:
|
|
372
370
|
A hypercomplex number of the specified dimension
|
|
373
371
|
"""
|
|
@@ -398,11 +396,9 @@ def generate_cayley_dickson_number(dimension: int, *components: float) -> Any:
|
|
|
398
396
|
|
|
399
397
|
def generate_cd_chain(max_level: int = 8) -> List:
|
|
400
398
|
"""
|
|
401
|
-
|
|
402
|
-
|
|
399
|
+
Generates a chain of Cayley-Dickson algebras up to the specified level.
|
|
403
400
|
Args:
|
|
404
401
|
max_level: Maximum level of the Cayley-Dickson construction
|
|
405
|
-
|
|
406
402
|
Returns:
|
|
407
403
|
List of hypercomplex number types [CD0, CD1, CD2, ..., CD_max_level]
|
|
408
404
|
"""
|
|
@@ -451,7 +447,7 @@ def binet_formula(n: int) -> float:
|
|
|
451
447
|
# =============================================
|
|
452
448
|
|
|
453
449
|
if __name__ == "__main__":
|
|
454
|
-
#
|
|
450
|
+
# Generate Cayley-Dickson chain
|
|
455
451
|
CD = generate_cd_chain(8) # Up to 256 dimensions (CD0 to CD8)
|
|
456
452
|
|
|
457
453
|
# CD chain mapping:
|
|
@@ -465,11 +461,11 @@ if __name__ == "__main__":
|
|
|
465
461
|
# CD[7] = Routons (128 dimensions)
|
|
466
462
|
# CD[8] = Voudons (256 dimensions)
|
|
467
463
|
|
|
468
|
-
#
|
|
464
|
+
# Generate an octonion (8 dimensions)
|
|
469
465
|
octonion = CD[3](1, 0, 2, 0, 3) # Missing components auto-filled with zeros
|
|
470
466
|
print(f"Octonion: {octonion}") # -> (1 0 2 0 3 0 0 0)
|
|
471
467
|
|
|
472
|
-
#
|
|
468
|
+
# Generate other types
|
|
473
469
|
complex_num = CD[1](1, 2) # Complex number
|
|
474
470
|
quaternion = CD[2](1, 2, 3, 4) # Quaternion
|
|
475
471
|
sedenion = CD[4](*range(1, 17)) # Sedenion with values 1-16
|
|
@@ -498,7 +494,7 @@ if __name__ == "__main__":
|
|
|
498
494
|
print(f"Quaternions: {q1} * {q2} = {q1 * q2}")
|
|
499
495
|
|
|
500
496
|
|
|
501
|
-
#
|
|
497
|
+
# Generate higher dimension numbers using cayley_dickson_algebra
|
|
502
498
|
octonion_type = cayley_dickson_algebra(3) # 2^3 = 8 dimensions
|
|
503
499
|
octonion = octonion_type(1, 2, 3, 4, 5, 6, 7, 8)
|
|
504
500
|
print(f"Octonion: {octonion}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: adnus
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: A Python library for Advanced Number Systems (AdNuS), including Bicomplex, Neutrosophic, Hyperreal numbers, reals, Complex, Quaternion, Octonion, Sedenion, Pathion, Chingon, Routon, Voudon.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Mehmet Keçeci
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
adnus/__init__.py,sha256=kTimUAw-wKQMWgyjXx5u7aA6uQ6itzSO_0UfjKY6Yoc,1439
|
|
2
|
+
adnus/_version.py,sha256=X3DZeZaHtpiam_wYTSQOnpnGhX_2TGiwKHUXSraS7Ts,370
|
|
3
|
+
adnus/main.py,sha256=XaX4D3GgnfyNxBiNyEXyIaMw_P9EXR7ISlY16o3q8ws,20200
|
|
4
|
+
adnus-0.1.4.dist-info/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
|
|
5
|
+
adnus-0.1.4.dist-info/METADATA,sha256=z9k-NkJui6gR1RmYBHBwGCuCAEuKhy9E-ar3ut2Nd1Y,9600
|
|
6
|
+
adnus-0.1.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
7
|
+
adnus-0.1.4.dist-info/RECORD,,
|
adnus-0.1.2.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
adnus/__init__.py,sha256=kTimUAw-wKQMWgyjXx5u7aA6uQ6itzSO_0UfjKY6Yoc,1439
|
|
2
|
-
adnus/_version.py,sha256=OZVSyDN1PQ7mCrsn9lH_hK_n4AsLIoshK55HG5_i_qw,370
|
|
3
|
-
adnus/main.py,sha256=i4Sq0dEWNcjLoGIU46OdAbnlWV27aM0gGMG-PlpCDBk,20216
|
|
4
|
-
adnus-0.1.2.dist-info/LICENSE,sha256=NJZsJEbQuKzxn1mWPWCbRx8jRUqGS22thl8wwuRQJ9c,1071
|
|
5
|
-
adnus-0.1.2.dist-info/METADATA,sha256=UyuHsOcHnMIyycNSJZwAFgltspzTMOcc5jXiZeXMSY8,9600
|
|
6
|
-
adnus-0.1.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
7
|
-
adnus-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|