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.3.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.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: farmsks-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 94236f0a21fed9bd7680563ff80f6e1583e4dd55bd29664354600c64bf15d476
MD5 0183f8ba323bf2a81bdaf65386485efb
BLAKE2b-256 2ad410860d84e9b9fc19fc1f74ee87c002db39915ea960b4588f346a6e27d311

See more details on using hashes here.

File details

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

File metadata

  • Download URL: farmsks-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3037f8b4b04224e20f0c83aff41758404566ab3cd9d293f02cf053b96b8d5845
MD5 7cdc5f815e532168e7b72c6cf6a5c2f6
BLAKE2b-256 b7323e5c241b99eac16703cc895573e9366250b589ac40aec23efed186402cbd

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