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)