adnus 0.1.2__tar.gz → 0.1.4__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.

Potentially problematic release.


This version of adnus might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: adnus
3
- Version: 0.1.2
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "adnus"
3
- version = "0.1.2"
3
+ version = "0.1.4"
4
4
  description = "A Python library for Advanced Number Systems (AdNuS), including Bicomplex, Neutrosophic, Hyperreal numbers, reals, Complex, Quaternion, Octonion, Sedenion, Pathion, Chingon, Routon, Voudon."
5
5
  authors = ["Mehmet Keçeci <mkececi@yaani.com>"]
6
6
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  # _version.py
2
2
 
3
- __version__ = "0.1.2"
3
+ __version__ = "0.1.3"
4
4
  __license__ = "MIT"
5
5
  __description__ = "adnus (AdNuS): Advanced Number Systems."
6
6
  __author__ = "Mehmet Keçeci"
@@ -362,12 +362,10 @@ class HyperrealNumber(AdvancedNumber):
362
362
 
363
363
  def generate_cayley_dickson_number(dimension: int, *components: float) -> Any:
364
364
  """
365
- Creates a hypercomplex number using the Cayley-Dickson construction.
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
- Creates a chain of Cayley-Dickson algebras up to the specified level.
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
- # Create Cayley-Dickson chain
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
- # Create an octonion (8 dimensions)
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
- # Create other types
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
- # Create higher dimension numbers using cayley_dickson_algebra
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}")
File without changes
File without changes
File without changes