Metadata-Version: 2.4
Name: useful-math-functions
Version: 0.3.0
Summary: useful-math-functions for Optimization, Benchmarking, Visualizing, and more ...
Project-URL: homepage, https://anselmoo.github.io/useful-math-functions/
Project-URL: documentation, https://anselmoo.github.io/useful-math-functions/
Project-URL: repository, https://github.com/Anselmoo/useful-math-functions.git
Project-URL: issues, https://github.com/Anselmoo/useful-math-functions/issues
Project-URL: changelog, https://github.com/Anselmoo/useful-math-functions/blob/main/CHANGELOG.md
Author-email: Anselm Hahn <anselm.hahn@gmail.com>
Maintainer-email: Anselm Hahn <anselm.hahn@gmail.com>
License-File: LICENSE.md
Requires-Python: <3.12,>=3.10
Requires-Dist: numpy<3,>=2.0.0
Requires-Dist: pydantic<3,>=2.0.0
Requires-Dist: scipy<2,>=1.11.2
Provides-Extra: all
Requires-Dist: imagemagic<0.3.0,>=0.2.1; extra == 'all'
Requires-Dist: kaleido==0.2.1; extra == 'all'
Requires-Dist: matplotlib<4.0.0,>=3.10.0; extra == 'all'
Requires-Dist: plotly<6.0.0,>=5.24.1; extra == 'all'
Provides-Extra: matplotlib
Requires-Dist: imagemagic<0.3.0,>=0.2.1; extra == 'matplotlib'
Requires-Dist: matplotlib<4.0.0,>=3.10.1; extra == 'matplotlib'
Provides-Extra: plotly
Requires-Dist: kaleido==0.2.1; extra == 'plotly'
Requires-Dist: plotly<6.0.0,>=5.24.1; extra == 'plotly'
Description-Content-Type: text/markdown

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8373435.svg)](https://doi.org/10.5281/zenodo.8373435)

# useful-math-functions

`useful-math-functions` is a collection of useful mathematical functions with a
focus on:

1. **ease of use** - the functions are designed to be as easy to use as possible
2. **pure python** - the functions are written in much python as possible and
   only use external libraries when necessary
3. **documentation** - the functions are documented in code itself with:
   1. Examples
   2. Equations
   3. References
   4. 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()
```

![_](https://github.com/Anselmoo/useful-math-functions/blob/main/docs/extra/images/DeJongN5Function.png?raw=true)

## Documentation

The documentation can be found
[here](https://anselmoo.github.io/useful-math-functions/).

## 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](https://github.com/Anselmoo/useful-math-functions/blob/main/LICENSE)
license.
