Merge pull request 'develop' (#7) from develop into main
Run VectorLoader Script / Explore-Gitea-Actions (push) Successful in 12s Details
Gitea Actions For Fabelous-Math / Explore-Gitea-Actions (push) Successful in 16s Details

Reviewed-on: #7
This commit is contained in:
Falko Victor Habel 2025-02-11 20:17:35 +00:00
commit f99505598d
1 changed files with 1 additions and 36 deletions

View File

@ -7,7 +7,7 @@ Fabelous Math is a simple library designed to provide basic mathematical functio
You can easily install `fabelous-math` using pip:
```sh
pip install https://gitea.fabelous.app/Fabel/fabelous-math.git
pip install git+https://gitea.fabelous.app/Fabel/fabelous-math.git
```
## Usage
@ -25,41 +25,6 @@ print(f"Is {number} even? {is_even(number)}")
print(f"Is {number} odd? {is_odd(number)}")
```
## Functions
### `is_even`
Checks if a given number is even.
- **Python:**
```python
def is_even(number: int) -> bool:
pass
```
- **C++:**
```cpp
namespace simple_functions {
bool is_even(long long number);
}
```
### `is_odd`
Checks if a given number is odd.
- **Python:**
```python
def is_odd(number: int) -> bool:
pass
```
- **C++:**
```cpp
namespace simple_functions {
bool is_odd(long long 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: