A simple package for basic math operations including prime checking, Fibonacci, GCD, LCM, and factorials
Project description
MathCalcUSuit
MathCalcUSuit is a Python package that provides a suite of basic math operations. It includes functions for:
- Checking if a number is prime
- Generating Fibonacci numbers
- Calculating factorials
- Finding the Greatest Common Divisor (GCD) of two numbers
- Finding the Least Common Multiple (LCM) of two numbers
- Checking if a number is a perfect number
Installation
To install MathCalcUSuit, use pip:
pip install mathcalcusuit
Usage
Prime Checker
from mathcalcusuit import prime_check
prime_check(7)
Fibonacci Generator
from mathcalcusuit import generate_fibonacci
generate_fibonacci(10)
Factorial Calculator
from mathcalcusuit import factorial_calcu
factorial_calcu(5)
GCD Calculator
from mathcalcusuit import gcd_calcu
gcd_calcu(48, 180)
LCM Calculator
from mathcalcusuit import lcm_calcu
lcm_calcu(4, 5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mathcalcusuit-0.1.0.tar.gz
(3.0 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 mathcalcusuit-0.1.0.tar.gz.
File metadata
- Download URL: mathcalcusuit-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f13fa2c5a8cdd6c69d6ae282ae36ea32d534414f59d24f37076f1bbdb589e31
|
|
| MD5 |
918b52ab8b4ddc3fdcc5d75bf0b90e2c
|
|
| BLAKE2b-256 |
cf177138199591efc75346aa75a4dce7792d8c08e86eb0428371982124a38353
|
File details
Details for the file mathcalcusuit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mathcalcusuit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39cc148eec8f3f18dcba46907b66fd6987123066aeb1e482b47a4a097ac74239
|
|
| MD5 |
cb3d4a7475609fa8dca67faa689acc89
|
|
| BLAKE2b-256 |
a43913c4a2848a5b54e61752075a461431c59a714dcfbfda1c14b6d2ead97926
|