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.
Release files for FopMath 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fopmath-0.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fopmath-0.1.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
Total release size: 72.6 kB
Release files / fopmath-0.1.0.tar.gz
| Download URL | fopmath-0.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a055eccddf3109d05aa8c0540a7754d52f37976aa1df4b1d5f5f521c9c55734
|
|
BLAKE2b-256 checksum How to use checksums |
3cdda7aef2dcfafec119dd64a82731a78ec7e1afcc75c657e5689e394fdd0fd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / fopmath-0.1.0-cp312-cp312-win_amd64.whl
| Download URL | fopmath-0.1.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 68.3 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4a52f86845b445fe3f57d8e88ae00ee25145d1c50e4b75c21d277a1f3777ca72
|
|
BLAKE2b-256 checksum How to use checksums |
fdd0e983b44f853c1422dea66e39aa4b9f230c45a77f6ab86946382360082602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|