Skip to main content

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

MIT

TO DO:

  1. Other Mathematical functions addition

Metadata

Release files for my-calculator 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for my-calculator 0.7
File Size Uploaded Provenance
my_calculator-0.7.tar.gz 3.0 kB Without provenance Details

Release files / my_calculator-0.7.tar.gz

Download URL my_calculator-0.7.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
088a4d90a4bd883d0680fea6d516f90b3b34755692e8968de90ae76dd8e3849c
BLAKE2b-256 checksum
How to use checksums
0d52c0bf474c5552bc71140e25cddb92bbc824859b2614f34a962f512181c8db
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for my-calculator 0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page