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
impport 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)
Advanced Functions
Average Of Numbers
Find the Average of Numbers in a List
from AdvancedCalc import Advanced
numbers = [1, 2, 3, 4, 5]
# Returns 3
average = Advanced.average(numbers)
print(average)
Cube
Find the Cube of a Number using this function
from AdvancedCalc import Advanced
# returns 8
cube = Advanced.cube(2)
print(cube)
Percentage
lets try finding 10 percent of 200 Note: This Function returns a float, so if you want a number, you can convert it into an int.
from AdvancedCalc import Advanced
# returns 20.0
percent = Advanced.percent(10, 200)
print(percent)
Factors
Find all Factors of a Specific Numbers using this function
from AdvancedCalc import Advanced
# returns a list of factors
factors = Advanced.factors(10)
print(factors)
HFC
Find the Highest Common Factor of 2 Numbers
from AdvancedCalc import Advanced
# returns 10
hfc = Advanced.hfc(10, 20)
print(hfc)
LCM
Find the LCM of 2 Numbers using this Function.
from AdvancedCalc import Advanced
# returns 11
lcm = Advanced.lcm(5, 6)
print(lcm)
Changelog
0.0.3
- Added Advanced Functions
- Modified Simple Functions
- Modified README.md
- Fixed Installing with PIP Error
Metadata
Release files for advancedcalc 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| advancedcalc-0.0.3.tar.gz | 4.3 kB | Without provenance | Details |
Release files / advancedcalc-0.0.3.tar.gz
| Download URL | advancedcalc-0.0.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b24b6d5926d8248e2e5eb797a5cf244d4dec7403f56a39e0c43f599ce83c1c1
|
|
BLAKE2b-256 checksum How to use checksums |
0a96e7a32ec78bbd78b55e25b9ba7099084702c21d7fc81c3aa1f124f4034e2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for advancedcalc 0.0.3
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.