Useful defs
Project description
Farm Library
Farm is a Python library containing useful mathematical functions like factorial calculation, number reversals, and more!
Installation
You can install Farm using pip: pip install farm
Usage
Import the library:
import farm
print(farm.sib(5)) # Calculates factorial
print(farm.havij(123)) # Reverses a number
print(farm.kivi(28)) # Checks if a number is perfect
## Available Functions
- `sib(n)`: Calculates the factorial of `n`
- `havij(n)`: Reverses the digits of `n`
- `kivi(n)`: Checks if `n` is a perfect number
- `talebi(n)`: Returns the number of digits in `n`
- `porteghal(n)`: Finds the closest perfect square less than or equal to `n`
## License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
farmsks-0.1.1.tar.gz
(2.3 kB
view details)
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 farmsks-0.1.1.tar.gz.
File metadata
- Download URL: farmsks-0.1.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f363ed3eaadd724179950feabb0f8ce1f732ea8e1a3cbc8ca6dbc847b23bc92
|
|
| MD5 |
8c36d7c9045568b6336de3993f919dc8
|
|
| BLAKE2b-256 |
40ecd7f1a36faf75ab65ae4f77ec7f1df20d4209bb6013e261ef68bca02e8b8a
|
File details
Details for the file farmsks-0.1.1-py3-none-any.whl.
File metadata
- Download URL: farmsks-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ccae53d66cfd81beb68825bee8a4f0fc4e6854473ac9ac3884a68db648aeb5
|
|
| MD5 |
a88ba3eb317113bc9c771ec1d5b05228
|
|
| BLAKE2b-256 |
d6a3927f535871d325ef6b822ad6552b28eb1996b7d5969048726c70d6af2391
|