adnus 0.1.9__tar.gz → 0.2.0__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.
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/workflow.yml +1 -1
- {adnus-0.1.9 → adnus-0.2.0}/CITATION.cff +1 -1
- {adnus-0.1.9 → adnus-0.2.0}/PKG-INFO +5 -3
- {adnus-0.1.9 → adnus-0.2.0}/README.md +4 -2
- {adnus-0.1.9 → adnus-0.2.0}/meta.yaml +1 -1
- {adnus-0.1.9 → adnus-0.2.0}/recipe/meta.yaml +1 -1
- {adnus-0.1.9 → adnus-0.2.0}/setup.py +14 -14
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus/__init__.py +15 -13
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus/_version.py +1 -1
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus.egg-info/PKG-INFO +5 -3
- {adnus-0.1.9 → adnus-0.2.0}/.gitattributes +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/CODEOWNERS +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/dependabot.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/ci-cd.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/codeql.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/conda-publish.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/jekyll-gh-pages.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/lint.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/python-package.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/python-publish.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/python_ci.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/static.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.github/workflows/zenodo.yml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.gitignore +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.pre-commit-config.yaml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.readthedocs.yaml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.ruff.toml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/.zenodo.json +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/CODE_OF_CONDUCT.md +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/CONTRIBUTING.md +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/LICENSE +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/MANIFEST.in +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/SECURITY.md +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/conda_build_config.yaml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/docs/conf.py +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/docs/index.rst +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/docs/requirements.txt +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/package-lock.json +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/package.json +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/poetry.lock +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/pyproject.toml +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/requirements.txt +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/setup.cfg +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus/main.py +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus.egg-info/SOURCES.txt +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus.egg-info/dependency_links.txt +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus.egg-info/requires.txt +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/src/adnus.egg-info/top_level.txt +0 -0
- {adnus-0.1.9 → adnus-0.2.0}/tests/test_adnus.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adnus
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
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
|
Home-page: https://github.com/WhiteSymmetry/adnus
|
|
6
6
|
Author: Mehmet Keçeci
|
|
@@ -826,8 +826,10 @@ print(f"Multiplication: {n1 * n2}")
|
|
|
826
826
|
```
|
|
827
827
|
|
|
828
828
|
```python
|
|
829
|
-
import adnus as ad
|
|
830
|
-
|
|
829
|
+
import adnus as ad
|
|
830
|
+
# Complex(0, 0) bir HypercomplexNumber örneği döndürür
|
|
831
|
+
ComplexClass = type(ad.Complex(0, 0))
|
|
832
|
+
C = ad.cayley_dickson_process(ComplexClass)
|
|
831
833
|
print(C(3-7j))
|
|
832
834
|
```
|
|
833
835
|
|
|
@@ -135,8 +135,10 @@ print(f"Multiplication: {n1 * n2}")
|
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
```python
|
|
138
|
-
import adnus as ad
|
|
139
|
-
|
|
138
|
+
import adnus as ad
|
|
139
|
+
# Complex(0, 0) bir HypercomplexNumber örneği döndürür
|
|
140
|
+
ComplexClass = type(ad.Complex(0, 0))
|
|
141
|
+
C = ad.cayley_dickson_process(ComplexClass)
|
|
140
142
|
print(C(3-7j))
|
|
141
143
|
```
|
|
142
144
|
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
# setup.py
|
|
2
|
-
|
|
2
|
+
import io
|
|
3
3
|
import os
|
|
4
|
+
import re
|
|
5
|
+
from setuptools import setup, find_packages
|
|
6
|
+
import sys
|
|
4
7
|
|
|
5
8
|
def get_version():
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return line.split('=')[1].strip().strip('"\'')
|
|
13
|
-
except FileNotFoundError:
|
|
14
|
-
return "0.1.9"
|
|
15
|
-
return "0.1.9"
|
|
9
|
+
with open('src/adnus/__init__.py', 'r', encoding='utf-8') as f:
|
|
10
|
+
content = f.read()
|
|
11
|
+
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M)
|
|
12
|
+
if match:
|
|
13
|
+
return match.group(1)
|
|
14
|
+
raise RuntimeError("Unable to find version string.")
|
|
16
15
|
|
|
17
16
|
setup(
|
|
18
17
|
name="adnus",
|
|
@@ -27,6 +26,7 @@ setup(
|
|
|
27
26
|
url="https://github.com/WhiteSymmetry/adnus",
|
|
28
27
|
package_dir={"": "src"},
|
|
29
28
|
packages=find_packages(where="src"),
|
|
29
|
+
license="AGPL-3.0-or-later",
|
|
30
30
|
install_requires=[
|
|
31
31
|
"numpy>=2.3.3,<3.0.0",
|
|
32
32
|
"hypercomplex>=0.3.4"
|
|
@@ -37,9 +37,9 @@ setup(
|
|
|
37
37
|
},
|
|
38
38
|
classifiers=[
|
|
39
39
|
"Programming Language :: Python :: 3",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
40
|
+
"Operating System :: OS Independent",
|
|
41
|
+
"Intended Audience :: Science/Research",
|
|
42
|
+
"Topic :: Scientific/Engineering :: Visualization",
|
|
42
43
|
],
|
|
43
44
|
python_requires='>=3.11',
|
|
44
|
-
license="MIT",
|
|
45
45
|
)
|
|
@@ -26,13 +26,13 @@ Example Usage:
|
|
|
26
26
|
>>> print(c.norm()) # 5.0
|
|
27
27
|
>>> print(q * q) # Quaternion multiplication
|
|
28
28
|
|
|
29
|
-
Version: 0.
|
|
29
|
+
Version: 0.2.0
|
|
30
30
|
Author: Mehmet Keçeci
|
|
31
31
|
License: AGPL-3.0-or-later
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
34
|
# Core version information
|
|
35
|
-
__version__ = "0.
|
|
35
|
+
__version__ = "0.2.0"
|
|
36
36
|
__author__ = "Mehmet Keçeci"
|
|
37
37
|
__license__ = "AGPL-3.0-or-later"
|
|
38
38
|
__copyright__ = "Copyright (C) 2025-2026 Mehmet Keçeci"
|
|
@@ -60,17 +60,8 @@ __all__ = [
|
|
|
60
60
|
'Chingon',
|
|
61
61
|
'Routon',
|
|
62
62
|
'Voudon',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
'Real',
|
|
66
|
-
'Complex',
|
|
67
|
-
'Quaternion',
|
|
68
|
-
'Octonion',
|
|
69
|
-
'Sedenion',
|
|
70
|
-
'Pathion',
|
|
71
|
-
'Chingon',
|
|
72
|
-
'Routon',
|
|
73
|
-
'Voudon',
|
|
63
|
+
'Bicomplex',
|
|
64
|
+
'Neutrosophic',
|
|
74
65
|
|
|
75
66
|
# Parsing functions
|
|
76
67
|
'_parse_complex',
|
|
@@ -81,6 +72,7 @@ __all__ = [
|
|
|
81
72
|
'harmonic_numbers',
|
|
82
73
|
'binet_formula',
|
|
83
74
|
'generate_cd_chain',
|
|
75
|
+
'generate_cd_chain_names',
|
|
84
76
|
|
|
85
77
|
# Utility functions
|
|
86
78
|
'cd_number_from_components',
|
|
@@ -102,6 +94,8 @@ from .main import (
|
|
|
102
94
|
cayley_dickson_cebr,
|
|
103
95
|
Real,
|
|
104
96
|
Complex,
|
|
97
|
+
Bicomplex,
|
|
98
|
+
Neutrosophic,
|
|
105
99
|
Quaternion,
|
|
106
100
|
Octonion,
|
|
107
101
|
Sedenion,
|
|
@@ -111,6 +105,10 @@ from .main import (
|
|
|
111
105
|
Voudon,
|
|
112
106
|
generate_cd_chain,
|
|
113
107
|
cd_number_from_components,
|
|
108
|
+
oresme_sequence,
|
|
109
|
+
harmonic_numbers,
|
|
110
|
+
binet_formula,
|
|
111
|
+
generate_cd_chain_names,
|
|
114
112
|
|
|
115
113
|
# Import parsing utilities
|
|
116
114
|
_parse_complex,
|
|
@@ -138,6 +136,8 @@ Pathion = Pathion
|
|
|
138
136
|
Chingon = Chingon
|
|
139
137
|
Routon = Routon
|
|
140
138
|
Voudon = Voudon
|
|
139
|
+
Bicomplex = Bicomplex
|
|
140
|
+
Neutrosophic = Neutrosophic
|
|
141
141
|
|
|
142
142
|
# =============================================
|
|
143
143
|
# Package initialization
|
|
@@ -196,6 +196,8 @@ def show_available_types():
|
|
|
196
196
|
"Chingon": "Chingons (64D, via Cayley-Dickson level 6)",
|
|
197
197
|
"Routon": "Routons (128D, via Cayley-Dickson level 7)",
|
|
198
198
|
"Voudon": "Voudons (256D, via Cayley-Dickson level 8)",
|
|
199
|
+
"Bicomplex": "Bicomplex",
|
|
200
|
+
"Neutrosophic": "Neutrosophic",
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
print("Available Number Types in adnus:")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adnus
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
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
|
Home-page: https://github.com/WhiteSymmetry/adnus
|
|
6
6
|
Author: Mehmet Keçeci
|
|
@@ -826,8 +826,10 @@ print(f"Multiplication: {n1 * n2}")
|
|
|
826
826
|
```
|
|
827
827
|
|
|
828
828
|
```python
|
|
829
|
-
import adnus as ad
|
|
830
|
-
|
|
829
|
+
import adnus as ad
|
|
830
|
+
# Complex(0, 0) bir HypercomplexNumber örneği döndürür
|
|
831
|
+
ComplexClass = type(ad.Complex(0, 0))
|
|
832
|
+
C = ad.cayley_dickson_process(ComplexClass)
|
|
831
833
|
print(C(3-7j))
|
|
832
834
|
```
|
|
833
835
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|