Oresme numbers refer to the sums related to the harmonic series
Project description
Oresme
Oresme numbers refer to the sums related to the harmonic series.
Tanım (Türkçe)
Oresme sayıları harmonik seriye ait toplamları ifade eder.
Description (English)
Oresme numbers refer to the sums related to the harmonic series.
Kurulum (Türkçe) / Installation (English)
Python ile Kurulum / Install with pip, conda, mamba
pip install Oresme -U
python -m pip install -U Oresme
conda install bilgi::Oresme -y
mamba install bilgi::Oresme -y
- pip uninstall Oresme -y
+ pip install -U Oresme
+ python -m pip install -U Oresme
Test Kurulumu / Test Installation
pip install -i https://test.pypi.org/simple/ Oresme -U
Github Master Kurulumu / GitHub Master Installation
Terminal:
pip install git+https://github.com/WhiteSymmetry/Oresme.git
Jupyter Lab, Notebook, Visual Studio Code:
!pip install git+https://github.com/WhiteSymmetry/Oresme.git
# or
%pip install git+https://github.com/WhiteSymmetry/Oresme.git
Kullanım (Türkçe) / Usage (English)
import oresme as ore
# Example 1: Generate Oresme sequence
print(ore.oresme_sequence(5)) # [0.5, 0.5, 0.375, 0.25, 0.15625]
# Example 2: Get exact harmonic numbers as fractions
print(ore.harmonic_numbers(3)) # [Fraction(1, 1), Fraction(3, 2), Fraction(11, 6)]
# Example 3: Calculate single harmonic number
print(ore.harmonic_number(5)) # 2.283333333333333
# Example 4: Approximate large harmonic number
print(ore.harmonic_number_approx(1_000_000)) # ≈14.392726722865724
# Example 5: Use generator
for i, h in enumerate(ore.harmonic_generator(3), 1):
print(f"H_{i} = {h}")
# Example 6: NumPy vectorized version
print(ore.harmonic_numbers_numpy(5)) # [1. 1.5 1.833... 2.083... 2.283...]
[0.5, 0.5, 0.375, 0.25, 0.15625]
[Fraction(1, 1), Fraction(3, 2), Fraction(11, 6)]
2.283333333333333
14.392726722865808
H_1 = 1.0
H_2 = 1.5
H_3 = 1.8333333333333333
[1. 1.5 1.83333333 2.08333333 2.28333333]
import oresme
oresme.__version__
Development
# Clone the repository
git clone https://github.com/WhiteSymmetry/Oresme.git
cd Oresme
# Install in development mode
python -m pip install -ve . # Install package in development mode
# Run tests
pytest
Notebook, Jupyterlab, Colab, Visual Studio Code
!python -m pip install git+https://github.com/WhiteSymmetry/Oresme.git
Citation
If this library was useful to you in your research, please cite us. Following the GitHub citation standards, here is the recommended citation.
BibTeX
APA
Keçeci, M. (2025). Oresme. GZenodo. https://doi.org/
Chicago
Keçeci, Mehmet. "Oresme". Zenodo, 2025. https://doi.org/
Lisans (Türkçe) / License (English)
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oresme-0.1.0.tar.gz.
File metadata
- Download URL: oresme-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16c7b84a84b5a9ac08fb9db4e267c95ea8c52039b1c65d9fb66c54be66f995d9
|
|
| MD5 |
9bb6660f7eb9ead18bfeb88e79a92213
|
|
| BLAKE2b-256 |
abfcc641878b8bb7bee485cbfec1b0b3e5a76a75e62536048317514d0ba82160
|
File details
Details for the file oresme-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oresme-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e8cb83c3d4b3e834703e775f6a8cbb321bfd66bf9ec7de2b3982b6565c204fb
|
|
| MD5 |
283abb938d340da8a55e05b1c2396b9b
|
|
| BLAKE2b-256 |
25b13289a81b00788ef76606af084eedb373e6dd3d9987d0fdac58e7bfeac35d
|