Skip to main content

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.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

farmsks-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file farmsks-0.1.0.tar.gz.

File metadata

  • Download URL: farmsks-0.1.0.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

Hashes for farmsks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 80a67ecd5a582c236448294f520e13eec014a975c53ab95030cb1970c197bd06
MD5 caa108ce793defaf4197815630241aae
BLAKE2b-256 d1d57d6e90be5803c822c502a4f3f9c29db8a1ccdca79f02556cc45b568d6721

See more details on using hashes here.

File details

Details for the file farmsks-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: farmsks-0.1.0-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

Hashes for farmsks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b35e8d7802ed776a9e4cf163d8ec25a26dbe2329006e6fab9a588d1ff3639d8
MD5 6d9d6022ffc99039941efc9b662410a4
BLAKE2b-256 9e45e1e90583f0c5053a8fa49482506415f23d1f585e63c8946f2a7a16c541df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page