Name | oresmej JSON |
Version |
0.1.0
JSON |
| download |
home_page | https://github.com/oresmej |
Summary | Oresme numbers refer to the sums related to the harmonic series |
upload_time | 2025-07-13 15:16:07 |
maintainer | None |
docs_url | None |
author | Mehmet Keçeci |
requires_python | >=3.9 |
license | MIT License
Copyright (c) 2025 Mehmet Keçeci
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
oresmej
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Oresme Jax
[](https://doi.org/-)
[](https://doi.org/)
[](https://doi.org/)
[](https://anaconda.org/bilgi/oresmej)
[](https://anaconda.org/bilgi/oresmej)
[](https://anaconda.org/bilgi/oresmej)
[](https://anaconda.org/bilgi/oresmej)
[](https://opensource.org/)
[](https://opensource.org/licenses/MIT)
Oresme numbers refer to the sums related to the harmonic series.
---
### **Türkçe Tanım:**
**Oresme Sayıları**, 14. yüzyılda Nicole Oresme tarafından incelenen matematiksel serilerdir. Oresme sayıları harmonik seriye ait toplamları ifade eder. İki türü vardır:
1. **\( \frac{n}{2^n} \) serisi** (Oresme'nin orijinal çalışması),
2. **Harmonik sayılar** (\( H_n = 1 + \frac{1}{2} + \cdots + \frac{1}{n} \)).
Bu sayılar, analiz ve sayı teorisinde önemli rol oynar.
---
### **English Definition:**
**Oresme Numbers** are mathematical series studied by Nicole Oresme in the 14th century. Oresme numbers refer to the sums related to the harmonic series. They include two types:
1. The **\( \frac{n}{2^n} \) sequence** (Oresme's original work),
2. **Harmonic numbers** (\( H_n = 1 + \frac{1}{2} + \cdots + \frac{1}{n} \)).
These numbers play a key role in analysis and number theory.
---
### **Fark/Karşılaştırma (Difference):**
- **Oresme'nin \( \frac{n}{2^n} \) serisi** ıraksaklık kanıtları için önemlidir.
- **Harmonik sayılar** (\( H_n \)) ise logaritmik büyüme gösterir ve \( n \to \infty \) iken ıraksar.
- Modern literatürde "Oresme numbers" terimi daha çok tarihsel bağlamda kullanılır.
---
## Kurulum (Türkçe) / Installation (English)
### Python ile Kurulum / Install with pip, conda, mamba
```bash
pip install oresmej -U
python -m pip install -U oresmej
conda install bilgi::oresmej -y
mamba install bilgi::oresmej -y
```
```diff
- pip uninstall Oresme -y
+ pip install -U oresmej
+ python -m pip install -U oresmej
```
[PyPI](https://pypi.org/project/Oresme/)
### Test Kurulumu / Test Installation
```bash
pip install -i https://test.pypi.org/simple/ oresmej -U
```
### Github Master Kurulumu / GitHub Master Installation
**Terminal:**
```bash
pip install git+https://github.com/WhiteSymmetry/oresmej.git
```
**Jupyter Lab, Notebook, Visual Studio Code:**
```python
!pip install git+https://github.com/WhiteSymmetry/oresmej.git
# or
%pip install git+https://github.com/WhiteSymmetry/oresmej.git
```
---
## Kullanım (Türkçe) / Usage (English)
```python
import oresmej as oj
import numpy as np
import jax
import jax.numpy as jnp
import time
from oresmej import *
import matplotlib.pyplot as plt
# Simple usage example
plt.figure(figsize=(10, 5))
plt.plot(oj.harmonic_numbers_jax(500))
plt.title("First 5000000 Harmonic Numbers")
plt.xlabel("n")
plt.ylabel("H(n)")
plt.show()
```
```python
import oresmej
oresmej.__version__
```
```python
import importlib
import inspect
import oresmej as oj # Varsa import hatasını yakalamak için
import jax.numpy as jnp
def diagnose_module(module_name):
try:
# Modülü yükle
module = importlib.import_module(module_name)
print(f"\n{' Modül Tanılama Raporu ':=^80}")
print(f"Modül adı: {module_name}")
print(f"Modül dosya yolu: {inspect.getfile(module)}")
# Modülün tüm özelliklerini listele
print("\nModülde bulunan özellikler:")
members = inspect.getmembers(module)
public_members = [name for name, _ in members if not name.startswith('_')]
print(public_members)
# Özel olarak kontrol edilecek fonksiyonlar
required_functions = [
'oresme_sequence',
'harmonic_numbers',
'harmonic_number',
'harmonic_number_jax',
'harmonic_numbers_jax',
'harmonic_generator_jax',
'harmonic_number_approx'
]
print("\nEksik olan fonksiyonlar:")
missing = [fn for fn in required_functions if not hasattr(module, fn)]
print(missing if missing else "Tüm gerekli fonksiyonlar mevcut")
# __all__ değişkenini kontrol et
print("\n__all__ değişkeni:")
if hasattr(module, '__all__'):
print(module.__all__)
else:
print("__all__ tanımlı değil (tüm public fonksiyonlar içe aktarılır)")
except ImportError as e:
print(f"\nHATA: Modül yüklenemedi - {e}")
except Exception as e:
print(f"\nBeklenmeyen hata: {e}")
# Tanılama çalıştır
diagnose_module('oresmej')
# Alternatif olarak doğrudan kontrol
print("\nDoğrudan fonksiyon varlığı kontrolü:")
try:
print("harmonic_numbers_jax mevcut mu?", hasattr(oj, 'harmonic_numbers_jax'))
if hasattr(oj, 'harmonic_numbers_jax'):
print("Fonksiyon imzası:", inspect.signature(oj.harmonic_numbers_jax))
else:
print("Eksik fonksiyon: harmonic_numbers_jax")
except Exception as e:
print("Kontrol sırasında hata:", e)
```
```python
# 1. Alternatif içe aktarma yöntemi
from oresmej import harmonic_numbers_jax # Doğrudan import deneyin
import oresmej as oj
import jax.numpy as jnp
# 2. Modülü yeniden yükleme
import importlib
importlib.reload(oj)
# 3. Fonksiyonun alternatif isimle var olup olmadığını kontrol
print("Alternatif fonksiyon isimleri:", [name for name in dir(oj) if 'harmonic' in name.lower()])
```
---
### Development
```bash
# Clone the repository
git clone https://github.com/WhiteSymmetry/oresmej.git
cd oresmej
# 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/oresmej.git
```
---
## Citation
If this library was useful to you in your research, please cite us. Following the [GitHub citation standards](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files), here is the recommended citation.
### BibTeX
### APA
```
Keçeci, M. (2025). Dynamic vs Static Number Sequences: The Case of Keçeci and Oresme Numbers. Open Science Articles (OSAs), Zenodo. https://doi.org/10.5281/zenodo.15833351
Keçeci, M. (2025). oresmej (0.1.0). Open Science Articles (OSAs), Zenodo. https://doi.org/
```
### Chicago
```
Keçeci, Mehmet. Dynamic vs Static Number Sequences: The Case of Keçeci and Oresme Numbers. Open Science Articles (OSAs), Zenodo, 2025. https://doi.org/10.5281/zenodo.15833351
Keçeci, Mehmet. Oresme. Open Science Articles (OSAs), Zenodo, 2025. https://doi.org/
```
### Lisans (Türkçe) / License (English)
```
This project is licensed under the MIT License.
```
Raw data
{
"_id": null,
"home_page": "https://github.com/oresmej",
"name": "oresmej",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "oresmej",
"author": "Mehmet Ke\u00e7eci",
"author_email": "Mehmet Ke\u00e7eci <mkececi@yaani.com>",
"download_url": "https://files.pythonhosted.org/packages/c4/16/2de71f7714c6181e15bbae5a7cacbf9c8d87bee0d5c8c2a8edede8177001/oresmej-0.1.0.tar.gz",
"platform": null,
"description": "# Oresme Jax\r\n\r\n[](https://doi.org/-)\r\n\r\n[](https://doi.org/)\r\n\r\n[](https://doi.org/)\r\n\r\n[](https://anaconda.org/bilgi/oresmej)\r\n[](https://anaconda.org/bilgi/oresmej)\r\n[](https://anaconda.org/bilgi/oresmej)\r\n[](https://anaconda.org/bilgi/oresmej)\r\n[](https://opensource.org/)\r\n[](https://opensource.org/licenses/MIT)\r\n\r\n\r\nOresme numbers refer to the sums related to the harmonic series.\r\n\r\n---\r\n### **T\u00fcrk\u00e7e Tan\u0131m:**\r\n**Oresme Say\u0131lar\u0131**, 14. y\u00fczy\u0131lda Nicole Oresme taraf\u0131ndan incelenen matematiksel serilerdir. Oresme say\u0131lar\u0131 harmonik seriye ait toplamlar\u0131 ifade eder. \u0130ki t\u00fcr\u00fc vard\u0131r: \r\n1. **\\( \\frac{n}{2^n} \\) serisi** (Oresme'nin orijinal \u00e7al\u0131\u015fmas\u0131), \r\n2. **Harmonik say\u0131lar** (\\( H_n = 1 + \\frac{1}{2} + \\cdots + \\frac{1}{n} \\)). \r\nBu say\u0131lar, analiz ve say\u0131 teorisinde \u00f6nemli rol oynar.\r\n\r\n---\r\n\r\n### **English Definition:**\r\n**Oresme Numbers** are mathematical series studied by Nicole Oresme in the 14th century. Oresme numbers refer to the sums related to the harmonic series. They include two types: \r\n1. The **\\( \\frac{n}{2^n} \\) sequence** (Oresme's original work), \r\n2. **Harmonic numbers** (\\( H_n = 1 + \\frac{1}{2} + \\cdots + \\frac{1}{n} \\)). \r\nThese numbers play a key role in analysis and number theory.\r\n\r\n---\r\n\r\n### **Fark/Kar\u015f\u0131la\u015ft\u0131rma (Difference):**\r\n- **Oresme'nin \\( \\frac{n}{2^n} \\) serisi** \u0131raksakl\u0131k kan\u0131tlar\u0131 i\u00e7in \u00f6nemlidir. \r\n- **Harmonik say\u0131lar** (\\( H_n \\)) ise logaritmik b\u00fcy\u00fcme g\u00f6sterir ve \\( n \\to \\infty \\) iken \u0131raksar. \r\n- Modern literat\u00fcrde \"Oresme numbers\" terimi daha \u00e7ok tarihsel ba\u011flamda kullan\u0131l\u0131r.\r\n\r\n---\r\n\r\n## Kurulum (T\u00fcrk\u00e7e) / Installation (English)\r\n\r\n### Python ile Kurulum / Install with pip, conda, mamba\r\n```bash\r\npip install oresmej -U\r\npython -m pip install -U oresmej\r\nconda install bilgi::oresmej -y\r\nmamba install bilgi::oresmej -y\r\n```\r\n\r\n```diff\r\n- pip uninstall Oresme -y\r\n+ pip install -U oresmej\r\n+ python -m pip install -U oresmej\r\n```\r\n\r\n[PyPI](https://pypi.org/project/Oresme/)\r\n\r\n### Test Kurulumu / Test Installation\r\n\r\n```bash\r\npip install -i https://test.pypi.org/simple/ oresmej -U\r\n```\r\n\r\n### Github Master Kurulumu / GitHub Master Installation\r\n\r\n**Terminal:**\r\n\r\n```bash\r\npip install git+https://github.com/WhiteSymmetry/oresmej.git\r\n```\r\n\r\n**Jupyter Lab, Notebook, Visual Studio Code:**\r\n\r\n```python\r\n!pip install git+https://github.com/WhiteSymmetry/oresmej.git\r\n# or\r\n%pip install git+https://github.com/WhiteSymmetry/oresmej.git\r\n```\r\n\r\n---\r\n\r\n## Kullan\u0131m (T\u00fcrk\u00e7e) / Usage (English)\r\n\r\n```python\r\nimport oresmej as oj\r\nimport numpy as np\r\nimport jax\r\nimport jax.numpy as jnp\r\nimport time\r\nfrom oresmej import *\r\nimport matplotlib.pyplot as plt\r\n\r\n# Simple usage example\r\nplt.figure(figsize=(10, 5))\r\nplt.plot(oj.harmonic_numbers_jax(500))\r\nplt.title(\"First 5000000 Harmonic Numbers\")\r\nplt.xlabel(\"n\")\r\nplt.ylabel(\"H(n)\")\r\nplt.show()\r\n```\r\n\r\n```python\r\nimport oresmej\r\noresmej.__version__\r\n```\r\n\r\n```python\r\nimport importlib\r\nimport inspect\r\nimport oresmej as oj # Varsa import hatas\u0131n\u0131 yakalamak i\u00e7in\r\nimport jax.numpy as jnp\r\n\r\ndef diagnose_module(module_name):\r\n try:\r\n # Mod\u00fcl\u00fc y\u00fckle\r\n module = importlib.import_module(module_name)\r\n \r\n print(f\"\\n{' Mod\u00fcl Tan\u0131lama Raporu ':=^80}\")\r\n print(f\"Mod\u00fcl ad\u0131: {module_name}\")\r\n print(f\"Mod\u00fcl dosya yolu: {inspect.getfile(module)}\")\r\n \r\n # Mod\u00fcl\u00fcn t\u00fcm \u00f6zelliklerini listele\r\n print(\"\\nMod\u00fclde bulunan \u00f6zellikler:\")\r\n members = inspect.getmembers(module)\r\n public_members = [name for name, _ in members if not name.startswith('_')]\r\n print(public_members)\r\n \r\n # \u00d6zel olarak kontrol edilecek fonksiyonlar\r\n required_functions = [\r\n 'oresme_sequence',\r\n 'harmonic_numbers',\r\n 'harmonic_number',\r\n 'harmonic_number_jax',\r\n 'harmonic_numbers_jax',\r\n 'harmonic_generator_jax',\r\n 'harmonic_number_approx'\r\n ]\r\n \r\n print(\"\\nEksik olan fonksiyonlar:\")\r\n missing = [fn for fn in required_functions if not hasattr(module, fn)]\r\n print(missing if missing else \"T\u00fcm gerekli fonksiyonlar mevcut\")\r\n \r\n # __all__ de\u011fi\u015fkenini kontrol et\r\n print(\"\\n__all__ de\u011fi\u015fkeni:\")\r\n if hasattr(module, '__all__'):\r\n print(module.__all__)\r\n else:\r\n print(\"__all__ tan\u0131ml\u0131 de\u011fil (t\u00fcm public fonksiyonlar i\u00e7e aktar\u0131l\u0131r)\")\r\n \r\n except ImportError as e:\r\n print(f\"\\nHATA: Mod\u00fcl y\u00fcklenemedi - {e}\")\r\n except Exception as e:\r\n print(f\"\\nBeklenmeyen hata: {e}\")\r\n\r\n# Tan\u0131lama \u00e7al\u0131\u015ft\u0131r\r\ndiagnose_module('oresmej')\r\n\r\n# Alternatif olarak do\u011frudan kontrol\r\nprint(\"\\nDo\u011frudan fonksiyon varl\u0131\u011f\u0131 kontrol\u00fc:\")\r\ntry:\r\n print(\"harmonic_numbers_jax mevcut mu?\", hasattr(oj, 'harmonic_numbers_jax'))\r\n if hasattr(oj, 'harmonic_numbers_jax'):\r\n print(\"Fonksiyon imzas\u0131:\", inspect.signature(oj.harmonic_numbers_jax))\r\n else:\r\n print(\"Eksik fonksiyon: harmonic_numbers_jax\")\r\nexcept Exception as e:\r\n print(\"Kontrol s\u0131ras\u0131nda hata:\", e)\r\n```\r\n\r\n```python\r\n# 1. Alternatif i\u00e7e aktarma y\u00f6ntemi\r\nfrom oresmej import harmonic_numbers_jax # Do\u011frudan import deneyin\r\nimport oresmej as oj\r\nimport jax.numpy as jnp\r\n\r\n# 2. Mod\u00fcl\u00fc yeniden y\u00fckleme\r\nimport importlib\r\nimportlib.reload(oj)\r\n\r\n# 3. Fonksiyonun alternatif isimle var olup olmad\u0131\u011f\u0131n\u0131 kontrol\r\nprint(\"Alternatif fonksiyon isimleri:\", [name for name in dir(oj) if 'harmonic' in name.lower()])\r\n```\r\n---\r\n\r\n### Development\r\n```bash\r\n# Clone the repository\r\ngit clone https://github.com/WhiteSymmetry/oresmej.git\r\ncd oresmej\r\n\r\n# Install in development mode\r\npython -m pip install -ve . # Install package in development mode\r\n\r\n# Run tests\r\npytest\r\n\r\nNotebook, Jupyterlab, Colab, Visual Studio Code\r\n!python -m pip install git+https://github.com/WhiteSymmetry/oresmej.git\r\n```\r\n---\r\n\r\n## Citation\r\n\r\nIf this library was useful to you in your research, please cite us. Following the [GitHub citation standards](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files), here is the recommended citation.\r\n\r\n### BibTeX\r\n\r\n\r\n### APA\r\n\r\n```\r\nKe\u00e7eci, M. (2025). Dynamic vs Static Number Sequences: The Case of Ke\u00e7eci and Oresme Numbers. Open Science Articles (OSAs), Zenodo. https://doi.org/10.5281/zenodo.15833351\r\n\r\nKe\u00e7eci, M. (2025). oresmej (0.1.0). Open Science Articles (OSAs), Zenodo. https://doi.org/\r\n```\r\n\r\n### Chicago\r\n\r\n```\r\nKe\u00e7eci, Mehmet. Dynamic vs Static Number Sequences: The Case of Ke\u00e7eci and Oresme Numbers. Open Science Articles (OSAs), Zenodo, 2025. https://doi.org/10.5281/zenodo.15833351\r\n\r\nKe\u00e7eci, Mehmet. Oresme. Open Science Articles (OSAs), Zenodo, 2025. https://doi.org/\r\n\r\n```\r\n\r\n\r\n### Lisans (T\u00fcrk\u00e7e) / License (English)\r\n\r\n```\r\nThis project is licensed under the MIT License.\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2025 Mehmet Ke\u00e7eci\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.\r\n ",
"summary": "Oresme numbers refer to the sums related to the harmonic series",
"version": "0.1.0",
"project_urls": {
"Documentation": "https://WhiteSymmetry.github.io/oresmej/",
"Homepage": "https://github.com/WhiteSymmetry/oresmej/",
"Issues": "https://github.com/WhiteSymmetry/oresmej/issues",
"Repository": "https://github.com/WhiteSymmetry/oresmej/"
},
"split_keywords": [
"oresmej"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "070af1a44dd939f24362fa2f105a160a38da2f7402306289233bb5a8cfb6e838",
"md5": "70236a5fcac15a6fab2c268a608d4ddb",
"sha256": "9b230f9233ae609d3f36908a4a923e83e10fd4da6f2eba759e9559a3ba3f9591"
},
"downloads": -1,
"filename": "oresmej-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "70236a5fcac15a6fab2c268a608d4ddb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 13283,
"upload_time": "2025-07-13T15:16:06",
"upload_time_iso_8601": "2025-07-13T15:16:06.160877Z",
"url": "https://files.pythonhosted.org/packages/07/0a/f1a44dd939f24362fa2f105a160a38da2f7402306289233bb5a8cfb6e838/oresmej-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c4162de71f7714c6181e15bbae5a7cacbf9c8d87bee0d5c8c2a8edede8177001",
"md5": "617495c5f129fd83296ded676bfc17b9",
"sha256": "1aec8dae751fc0ded1a0cadfc0abd83224054e5a0d75aae455f6cbd0880af1ef"
},
"downloads": -1,
"filename": "oresmej-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "617495c5f129fd83296ded676bfc17b9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 16313,
"upload_time": "2025-07-13T15:16:07",
"upload_time_iso_8601": "2025-07-13T15:16:07.540272Z",
"url": "https://files.pythonhosted.org/packages/c4/16/2de71f7714c6181e15bbae5a7cacbf9c8d87bee0d5c8c2a8edede8177001/oresmej-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-13 15:16:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "WhiteSymmetry",
"github_project": "oresmej",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "oresmej"
}