Skip to main content

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

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.

TO DO:

  1. Other Mathematical functions addition

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cds4_computation-0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

cds4_computation-0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page