Several calculations of two numbers
Project description
My Calculator
This package computes the various computations of Maths like :
- Greatest Common Divisor
- Lowest Common Multiple
- Reducing Fraction
Installations
Through pypi package
$ pip install my-calculator
From Source
$ git clone git@github.com:ghimireadarsh/My-Calculator.git
$ cd My-Calculator
$ pip install .
Usage
After the package is installed, several operation can be performed like:
Greatest Common Divisor
from my_calculator import Calculator
Calculator.gcd(8, 16, 24)
# Output : 8
Calculator.gcd(10, 12)
# Output : 2
Lowest Common Multiple
from my_calculator import Calculator
Calculator.lcm(10, 20, 30)
# Output : 60
Calculator.lcm(10,5)
# Output : 10
Fraction reducer
from my_calculator import Calculator
Calculator.reduce_fraction(10,12)
# Output : (5,6)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
TO DO:
- Other Mathematical functions addition
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
my_calculator-0.7.tar.gz
(3.0 kB
view details)
File details
Details for the file my_calculator-0.7.tar.gz
.
File metadata
- Download URL: my_calculator-0.7.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 088a4d90a4bd883d0680fea6d516f90b3b34755692e8968de90ae76dd8e3849c |
|
MD5 | ebb6b986ac6c9c5242585db68c2d6bd1 |
|
BLAKE2b-256 | 0d52c0bf474c5552bc71140e25cddb92bbc824859b2614f34a962f512181c8db |