ArithPy is a simple and easy to use python moduloe made for basic arithmetic operations. The main purpose of creating such python module is to help developers to do calculations quickly in their programs made made by two school going students Suresh Mishra and Sai Binayak Biswal.
Project description
ArithPy
A python module made for basic calculations
ArithPy is a simple and easy to use python moduloe made for basic arithmetic operations. The main purpose of creating such python module is to help developers to do calculations quickly in their programs.
This python module consists of many basic and intermediate mathematical functions.
All the ArithPy functions are categorised into 7 categories, that are:
- BASIC ARITHMETIC FUNCTIONS
- TEMERATURE CONVERSION FUNCTIONS
- MISCELLENOUS FUNCTIONS
- AREA FUNCTIONS
- PERIMETER FUNCTIONS
Here is the list of all the basic arithmetic functions:
- arithpy.sumnum(x,y) - A function that is used for addisng two numbers and geting their sum.
- arithpy.diffnum(x,y) - A function that is used for substracting two numbers and getting their difference.
- arithpy.prodnum(x,y) - A function that is used for getting the product of two numbers.
- arithpy.dividenum(x,y) - A function that is used for dividing the left hand operand by right hand operand. This function prints the error ERROR: Division by Zero if any number get divided by 0.
- arithpy.fdividenum(x,y) - A function that is used for dividing left hand operand by right hand operand by ignoring the franctional part of result.
- arithpy.modulo(x,y) - A function that is used for dividing left hand operand by right hand operator which returns the remainder.
- arithpy.expo(x,y) - A function which is used for finding the exponential value or power of a number.
- arithpy.square(x) - A function which is used to find square of a number.
- arithpy.squarert(x) - A function which is used to find square root of a number.
- arithpy.cube(x) - A function which is used to find cube of a number.
- arithpy.cubert(x) - A function which is used to find the cube root of a number.
Here is the list of all the time conversion functions:
- arithpy.hrtomin(x) - A function which is used to convert hour to minute.
- arithpy.mintohr(x) - A function which is used to convert minute to hour.
- arithpy.hrtosec(x) - A function which is used to convert hour to second.
- arithpy.sectohr(x) - A function which is used to convert second to hour.
- arithpy.mintosec(x) - A function which is used to convert minute to sec.
- arithpy.sectomin(x) - A function which is used to convert second to minute.
- arithpy.mintomsec(x) - A function which is used to convert minute to milisecond.
- arithpy.msectomin(x) - A function which is used to convert milisecond to minute.
- arithpy.sectomsec(x) - A function which is used to convert second to milisecond.
- arithpy.msectosec(x) - A function which is used to convert milisecond to second.
Here is the list of all the temperature conversion functions:
- arithpy.ctof(x) - A function which is used to convert celsius to farhenhiet.
- arithpy.ctok(x) - A function which is used to convert celsius to kelvin.
- arithpy.ftoc(x) - A function which is uised to convert farhenheit to celsius.
- arithpy.ftok(x) - A function which is used to convert farhenheit to kelvin.
- arithpy.ktoc(x) - A function which is used to convert kelvin to celsius.
- arithpy.ktof(x) - A function which is used to convert kelvin to farhenheit.
Here is the list of all the miscellenous functions:
- arithpy.pi() - This function represents the pi constant.
- arithpy.sintrst(x,y,z) - A function which is used to calculate simple interest.
Here is the list of area functions:
- arithpy.arrect(x,y) - A function which is used for calculating the area of rectangle.
- arithpy.arsqr(x) - A function which is used for calculating the area of square.
- arithpy.artrngl(x,y) - A function which is used for calculating the area of triangle.
- arithpy.cyl(x,y) - A function which is used for calculating the area of cylinder.
- arithpy.arcon(x,y) - A function which is used for calculating the area of cone.
- arithpy.arcrcl(x,y) - A function which is used for calculating the area of circle.
Here is the list of perimeter functions:
- arithpy.perrect(x,y) - A function which is used for calculating the perimeter of rectangle.
- arithpy.pertrngl(x,y,z) - A function which is used for calculating the perimeter of triangle.
- arithpy.persqr(x) - A function which is used for calculating the perimeter of square.
This python module is made by two school going students Suresh Mishra and Sai Binayak Biswal. They had put all huge efforts on creating this module.
Some example programs written using ArithPy:
- Simple Interest Program:
import arithpy p = int(input("Principal:")) t = int(input("Time:")) r = int(input("Rate of interest:")) si = arithpy.sintrst(p,t,r) print("The SI is:",si)
- Area of a square:
import arithpy s = int(input("Enter the side of square:")) s_area = arithpy.arsqr(s) print(s_area)
In this way you can write your code.
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
Built Distribution
File details
Details for the file arithpy-0.0.1.tar.gz
.
File metadata
- Download URL: arithpy-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 252a656aed6b40960225c31e6c5b5b2c34d99f5338365b617e77e4a4652ec9d1 |
|
MD5 | 97f298d431c7daf82626f24784c7b51c |
|
BLAKE2b-256 | 8f620b2bb5694ee18a1f35819218b7d8d129877fb39d8d1127a34ce1ed18e149 |
File details
Details for the file arithpy-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: arithpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c6c1b779389279b116c1635860a043fdbbdab53dd41d7248e5de49c24d43b5 |
|
MD5 | e9ab5973eaabee8ffa1dce50c5042212 |
|
BLAKE2b-256 | c1390b8703c3a082f4171a1da8b7fccfe9bfde6d687a61fd0d28f07733abb4a3 |