https://github.com/anselmoo/useful-math-functions
useful-math-functions for Optimization, Benchmarking, Visualizing, and more ...
Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Keywords
Repository
useful-math-functions for Optimization, Benchmarking, Visualizing, and more ...
Basic Info
- Host: GitHub
- Owner: Anselmoo
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://anselmoo.github.io/useful-math-functions/
- Size: 184 MB
Statistics
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 13
- Releases: 7
Topics
Metadata Files
README.md
useful-math-functions
useful-math-functions is a collection of useful mathematical functions with a
focus on:
- ease of use - the functions are designed to be as easy to use as possible
- pure python - the functions are written in much python as possible and only use external libraries when necessary
- documentation - the functions are documented in code itself with:
- Examples
- Equations
- References
- Links to external resources
Installation
The package can be installed via pip:
bash
pip install useful-math-functions
and for Visualizations:
```bash
matplotlib
pip install useful-math-functions[matplotlib]
plotly
pip install useful-math-functions[plotly]
all visualizations
pip install useful-math-functions[all] ```
Usage
The package can be imported like any other python package:
python
from umf.core.create import OptBench
res = OptBench(["DeJongN5Function"], dim=3)
res.plot_type_3d = "plot_surface"
res.plot()
res.save_as_image()

To use the newly added functions:
```python from umf.functions.optimization.special import HimmelblauFunction import numpy as np
x = np.linspace(-5, 5, 100) y = np.linspace(-5, 5, 100) X, Y = np.meshgrid(x, y) Z = HimmelblauFunction(X, Y).eval
import matplotlib.pyplot as plt fig = plt.figure() ax = fig.addsubplot(111, projection="3d") ax.plotsurface(X, Y, Z, cmap="viridis") plt.savefig("HimmelblauFunction.png", dpi=300, transparent=True) ```
```python from umf.functions.optimization.valley_shaped import Rosenbrock2DFunction import numpy as np
x = np.linspace(-2, 2, 100) y = np.linspace(-1, 3, 100) X, Y = np.meshgrid(x, y) Z = RosenbrockFunction(X, Y).eval
import matplotlib.pyplot as plt fig = plt.figure() ax = fig.addsubplot(111, projection="3d") ax.plotsurface(X, Y, Z, cmap="viridis") plt.savefig("RosenbrockFunction.png", dpi=300, transparent=True) ```
Documentation
The documentation can be found here.
Contributing
Contributions are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
The project is licensed under the MIT license.
Owner
- Name: Anselm Hahn
- Login: Anselmoo
- Kind: user
- Location: Switzerland
- Repositories: 100
- Profile: https://github.com/Anselmoo
GitHub Events
Total
- Create event: 44
- Release event: 1
- Issues event: 2
- Watch event: 1
- Delete event: 45
- Issue comment event: 40
- Push event: 378
- Pull request event: 88
Last Year
- Create event: 44
- Release event: 1
- Issues event: 2
- Watch event: 1
- Delete event: 45
- Issue comment event: 40
- Push event: 378
- Pull request event: 88
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 2
- Total pull requests: 162
- Average time to close issues: about 1 month
- Average time to close pull requests: 13 days
- Total issue authors: 2
- Total pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 0.86
- Merged pull requests: 85
- Bot issues: 1
- Bot pull requests: 128
Past Year
- Issues: 1
- Pull requests: 44
- Average time to close issues: about 1 month
- Average time to close pull requests: 17 days
- Issue authors: 1
- Pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 0.59
- Merged pull requests: 22
- Bot issues: 0
- Bot pull requests: 33
Top Authors
Issue Authors
- Anselmoo (1)
- renovate[bot] (1)
Pull Request Authors
- renovate[bot] (103)
- Anselmoo (34)
- pre-commit-ci[bot] (25)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 17 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 6
- Total maintainers: 1
pypi.org: useful-math-functions
useful-math-functions for Optimization, Benchmarking, Visualizing, and more ...
- Documentation: https://useful-math-functions.readthedocs.io/
- License: mit
-
Latest release: 0.4.0
published 11 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- actions/setup-python v4 composite
- codecov/codecov-action v3.1.4 composite
- actions/checkout v4 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish b7f401de30cb6434a1e19f805ff006643653240e composite
- numpy >=2.0.0,<3
- pydantic >=2.0.0,<3
- scipy >=1.11.2,<2
- annotated-types 0.7.0
- babel 2.17.0
- backrefs 5.8
- certifi 2025.1.31
- cfgv 3.4.0
- charset-normalizer 3.4.1
- click 8.1.8
- colorama 0.4.6
- contourpy 1.3.1
- coverage 7.8.0
- csscompressor 0.9.5
- cycler 0.12.1
- distlib 0.3.9
- exceptiongroup 1.2.2
- filelock 3.18.0
- fonttools 4.57.0
- ghp-import 2.1.0
- gitdb 4.0.12
- gitpython 3.1.44
- griffe 1.7.2
- htmlmin2 0.1.13
- identify 2.6.9
- idna 3.10
- imagemagic 0.2.1
- importlib-metadata 8.6.1
- importlib-resources 6.5.2
- iniconfig 2.1.0
- jinja2 3.1.6
- jsmin 3.0.1
- kaleido 0.2.1
- kiwisolver 1.4.8
- loguru 0.7.3
- markdown 3.7
- markupsafe 3.0.2
- mathjax 0.1.2
- matplotlib 3.10.1
- mergedeep 1.3.4
- mike 2.1.3
- mkdocs 1.6.1
- mkdocs-autorefs 1.4.1
- mkdocs-get-deps 0.2.0
- mkdocs-git-revision-date-localized-plugin 1.4.5
- mkdocs-glightbox 0.4.0
- mkdocs-literate-nav 0.6.2
- mkdocs-material 9.6.11
- mkdocs-material-extensions 1.3.1
- mkdocs-minify-plugin 0.8.0
- mkdocs-section-index 0.3.10
- mkdocs-table-reader-plugin 3.1.0
- mkdocstrings 0.27.0
- mkdocstrings-python 1.13.0
- mypy 1.15.0
- mypy-extensions 1.0.0
- narwhals 1.34.0
- nodeenv 1.9.1
- numpy 2.2.4
- packaging 24.2
- paginate 0.5.7
- pandas 2.2.3
- pathspec 0.12.1
- pillow 11.1.0
- platformdirs 4.3.7
- plotly 6.0.1
- pluggy 1.5.0
- pre-commit 4.2.0
- pydantic 2.11.2
- pydantic-core 2.33.1
- pygments 2.19.1
- pymdown-extensions 10.14.3
- pyparsing 3.2.3
- pytest 8.3.5
- pytest-cov 6.1.1
- pytest-sugar 1.0.0
- python-dateutil 2.9.0.post0
- pytz 2025.2
- pyyaml 6.0.2
- pyyaml-env-tag 0.1
- requests 2.32.3
- ruff 0.11.4
- scipy 1.15.2
- six 1.17.0
- smmap 5.0.2
- tabulate 0.9.0
- termcolor 3.0.1
- tomli 2.2.1
- typing-extensions 4.13.1
- typing-inspection 0.4.0
- tzdata 2025.2
- urllib3 2.3.0
- useful-math-functions 0.4.0
- verspec 0.1.0
- virtualenv 20.30.0
- watchdog 6.0.0
- win32-setctime 1.2.0
- zipp 3.21.0