https://github.com/certik/mathfn
This is a library with very fast implementations of numerical math functions
https://github.com/certik/mathfn
Last synced: about 1 year ago
JSON representation
This is a library with very fast implementations of numerical math functions
- Host: GitHub
- URL: https://github.com/certik/mathfn
- Owner: certik
- Created: 2022-11-21T23:07:34.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T05:25:08.000Z (about 3 years ago)
- Last Synced: 2025-04-15T00:47:17.464Z (about 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mathfn
This is a library with very fast implementations of numerical math functions.
PyPI: https://pypi.org/project/mathfn/
## Example in CPython
To run an example in regular CPython, install LPython so that `lpython` is in
your `$PATH`, then:
```console
$ PYTHONPATH="src:$(lpython --get-rtlib-header-dir)/../ltypes" python examples/example_sin.py
1.5
```
## Example in LPython
To run an example in LPython, install LPython so that `lpython` is in
your `$PATH`, then:
```console
$ lpython -I src examples/example_sin.py
1.50000000000000000e+00
```
## Upload to PyPI
```
python setup.py sdist
pip install twine
twine upload dist/*
```