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

Uploaded Python 3

File details

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

File metadata

  • Download URL: farmsks-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ce049fcc20c2bac576cee2a67946cfe10de593da0928d2124ff2d615f1f4ef37
MD5 c1c6fb847c84874c0bf14d2677e6ee2d
BLAKE2b-256 3c774bd95dfbdf65f26c1f85999e7ba2234c971b716b3068c89c32a017b94c2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: farmsks-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4cab499c41fd9b86cd869ce24078588894fe8a55ffe99b0de63506be27b331f
MD5 71c6466427f161d2d3da0a4032fce7b9
BLAKE2b-256 fec95013d5db464bd888682fa3efe495993a58dcd255f51f3a94fa8e1f81b797

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