adnus (AdNuS): Advanced Number Systems
adnus is a Python library that provides an implementation of various advanced number systems. This library is designed for mathematicians, researchers, and developers who need to work with number systems beyond the standard real and complex numbers. Features
Harmonic and Oresme Sequences: Functions to generate harmonic numbers and Oresme sequences.
Bicomplex Numbers: A class for bicomplex numbers with full arithmetic support.
Neutrosophic Numbers: Classes for neutrosophic numbers, including their complex and bicomplex extensions.
Hyperreal Numbers: A conceptual implementation of hyperreal numbers.
Extensible Design: Built with an abstract base class to easily extend and add new number systems.
Fully Typed: The library is fully type-hinted for better code quality and maintainability.
Installation
To install the library, clone the repository and use Poetry:
git clone https://github.com/WhiteSymmetry/adnus.git cd adnus poetry install
Usage
Here's a quick overview of how to use the different number systems available in adnus. Bicomplex Numbers
import adnus as ad #from adnus import BicomplexNumber
z1 = ad.BicomplexNumber(1 + 2j, 3 + 4j) z2 = ad.BicomplexNumber(5 + 6j, 7 + 8j)
print(f"Addition: {z1 + z2}") print(f"Multiplication: {z1 * z2}")
Neutrosophic Numbers
import adnus as ad
n1 = ad.NeutrosophicNumber(1.5, 2.5) n2 = ad. NeutrosophicNumber(3.0, 4.0)
print(f"Addition: {n1 + n2}") print(f"Multiplication: {n1 * n2}")
Running Tests
To ensure everything is working correctly, you can run the included tests using pytest:
poetry run pytest
Kurulum (Türkçe) / Installation (English) Python ile Kurulum / Install with pip, conda, mamba
pip install adnus -U python -m pip install -U adnus conda install bilgi::adnus -y mamba install bilgi::adnus -y
- pip uninstall adnus -y
- pip install -U adnus
- python -m pip install -U adnus
Github Master Kurulumu / GitHub Master Installation
Terminal:
pip install git+https://github.com/WhiteSymmetry/adnus.git
Jupyter Lab, Notebook, Visual Studio Code:
!pip install git+https://github.com/WhiteSymmetry/adnus.git
or
%pip install git+https://github.com/WhiteSymmetry/adnus.git

Creator
Submitter
Views: 43 Downloads: 2
Created: 22nd Jul 2025 at 19:43
Last updated: 22nd Jul 2025 at 19:44

None
Version History
Version 1 (earliest) Created 22nd Jul 2025 at 19:43 by Mehmet Keçeci
No revision comments