Python addtional math libary
Go to file
Falko Victor Habel 70b40cdeeb
Gitea Actions For Fabelous-Math / Explore-Gitea-Actions (push) Successful in 18s Details
updated python files included to handle cpp bindings
2025-03-14 14:22:39 +01:00
.gitea/workflows updated the embedding process to not do a full reload 2025-03-14 13:07:09 +01:00
.vscode added vscode depending dependencies 2025-02-09 21:51:00 +01:00
docs added readme information for pi 2025-03-14 14:22:06 +01:00
src/fabelous_math updated python files included to handle cpp bindings 2025-03-14 14:22:39 +01:00
tests added tests for rooting 2025-03-14 14:08:28 +01:00
.gitignore Initial commit 2025-02-09 13:42:22 +00:00
LICENSE Initial commit 2025-02-09 13:42:22 +00:00
README.md removedoutdated information 2025-02-11 21:10:48 +01:00
example.py updated python files included to handle cpp bindings 2025-03-14 14:22:39 +01:00
pyproject.toml updated python files included to handle cpp bindings 2025-03-14 14:22:39 +01:00
pytest.ini added tests 2025-02-10 18:13:54 +01:00
requirements-dev.txt loaded correct requirements 2025-02-10 18:20:23 +01:00
result.py added tests 2025-02-10 18:13:54 +01:00
setup.py updated python files included to handle cpp bindings 2025-03-14 14:22:39 +01:00

README.md

Fabelous Math

Fabelous Math is a simple library designed to provide basic mathematical functions, saving you the trouble of writing these common utilities repeatedly. This library includes essential functions like checking if a number is even or odd.

Installation

You can easily install fabelous-math using pip:

pip install git+https://gitea.fabelous.app/Fabel/fabelous-math.git

Usage

Python

To use the functions provided by Fabelous Math in your Python code, you can import them as follows:

from fabelous_math import is_even, is_odd

# Example usage:
number = 42
print(f"Is {number} even? {is_even(number)}")
print(f"Is {number} odd? {is_odd(number)}")

Performance Comparison

To understand the performance of fabelous-math functions, I conducted a series of tests comparing my methods with traditional modulo operations. Below are the results:

Low Numbers Performance:

Low Numbers Performance

High Numbers Performance:

High Numbers Performance