C++ math utilities
Project description
FopMath
FopMath is a small C++ math toolkit exposed to Python through pybind11. It installs a
native extension module named FopMath that you can import directly in Python.
Install
pip install FopMath
Prebuilt wheels are provided for supported platforms, so no C++ compiler is needed for
normal pip install usage.
Usage
import FopMath
FopMath.Square_root(16)
FopMath.quadratic_formula(1, -5, 6)
FopMath.point_distance(2, 6, 1, 8)
FopMath.triangle_area(2, 3, 3)
FopMath.standart_diviation(0.61, 5000)
Functions
- quadratic_formula(ax, bx, c)
- Square_root(root)
- is_prime(prime)
- factorial(factorial)
- circle_area(radius)
- circle_circumference(radius)
- triangle_area(a, b, c)
- point_distance(x1, x2, y1, y2)
- standart_diviation(p, n)
Build from source (optional)
python -m pip install --upgrade pip build
python -m build
pip install dist/*.whl
Building from source requires a C++ compiler and Python development headers.
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 fopmath-0.1.0.tar.gz.
File metadata
- Download URL: fopmath-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a055eccddf3109d05aa8c0540a7754d52f37976aa1df4b1d5f5f521c9c55734
|
|
| MD5 |
866e034f644d99719eb76068ccfb0ba4
|
|
| BLAKE2b-256 |
3cdda7aef2dcfafec119dd64a82731a78ec7e1afcc75c657e5689e394fdd0fd3
|
File details
Details for the file fopmath-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: fopmath-0.1.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 68.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a52f86845b445fe3f57d8e88ae00ee25145d1c50e4b75c21d277a1f3777ca72
|
|
| MD5 |
8b194194569217981720345c45f89d2f
|
|
| BLAKE2b-256 |
fdd0e983b44f853c1422dea66e39aa4b9f230c45a77f6ab86946382360082602
|