An Advanved Calculator with Trignometry and Other Functions
Project description
AdvancedCalc
An Advanced Calculator to Calculate Advanced Methods like Average, Trignometry, HCF, LCM easily
Installation
advancedCalc requires an installation of python 3.6 or greater, as well as pip. Pip is typically bundled with python installations, and you can find options for how to install python at https://python.org.
To Install from pypi with pip:
pip install advancedcalc
Sometime, the pypi release becomes slightly outdated. To install from the source with pip:
pip install git+https://github.com/programmerayush7/advancedcalc/
Quick Start
Adding Numbers
import advancedcalc
calculator = advancedcalc.Calculator()
# returns 10
sum = calculator.add(5, 5)
print(sum)
Subtracting Numbers
import advancedcalc
calculator = advancedcalc.Calculator()
# returns 5
answer = calculator.add(10, 5)
print(answer)
Using auto_arrange
Parameter
The auto_arrange
parameter is usually used to pretend to get negative answers (eg. -1, -6, etc.).
- Without
auto_arrange
import advancedcalc
calculator = advancedcalc.Calculator()
# returns -1
answer = calculator.subtract(4, 5)
print(answer)
- With
auto_arrange
import advancedcalc
calculator = advancedcalc.Calculator()
# returns 1
answer = calculator.add(4, 5, auto_arrange = True)
print(answer)
Multiplying Numbers
Multiply 2 Numbers using this Function
import advancedcalc
calculator = advancedcalc.Calculator()
# returns 25
product = calculator.add(5, 5)
print(product)
Dividing Numbers
Divide 2 Numbers using this Function
import advancedcalc
calculator = advancedcalc.Calculator()
# returns 2
quotient = calculator.add(10, 5)
print(quotient)
Finding Remainders
Find the Remainder from the Division of 2 Numbers using this function
import advancedcalc
calculator = advancedcalc.Calculator()
# returns 2
remainder = calculator.remainder(10, 4)
print(remainder)
Changelog
0.0.1
- First Release!
- Added Simple Functions
- Modified README.md
- Fixed Installing with PIP Error
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
File details
Details for the file advancedcalc-0.0.2.tar.gz
.
File metadata
- Download URL: advancedcalc-0.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694d34b6312780657c96f9c3f1b6fdc910ff41fcd19f89665187ed859e0a699d |
|
MD5 | 0f48854b932866863a94cd38b6905dac |
|
BLAKE2b-256 | 37013349cdbef0aecfd74f763f97d50620dfd90a1345396d6bb735b01e403b76 |