This python module contains total of 10 functions for doing basic mathematical operations
Project description
This Python Module contains 10 Basic Mathematical operations
All 10 functions of module
- First function is - add_numbers (for adding any number of numbers)
- Second function is - mul_numbers (for multiplying any number of numbers)
- Third function is - div_numbers (for performing division of numbers)
- Fourth function is - sub_numbers (for getting subtraction of any two numbers )
- Fifth function is - simple_int (for calculating simple interest)
- Sixth function is - compound_int (for calculating compound interest)
- Seventh function is - get_log (for getting the log of any given positive number to any base )
- Eight function is - exp_power (This function is used for getting the value of exponent for any power)
- Ninth function is - Roots_quad (This function is used for getting the real roots of quadratic equation. (ax^2+bx+c) where a, b and c are the constants.)
- Tenth function is - num_power (This function is used for getting the value of any power of any number.)
Usage
- Make sure you have Python installed in your system.
- Run Following command in the CMD.
pip install maths_ops
Example
# for first function of the module
from maths_ops import add_numbes
add_numbers(1,2,3,4,5) #you can give any number of numbers
here we are giving 5 numbers
result---> 15
#for fifth function
simple_int(P,R,T)
# P- 10000 this is principle amount
# R - 5 this is rate
# T- 5 this is time
result---> 2500
#similarly we can use remainig functions also
Note
- I have tried to implement all the functionality, it might have some bugs also. Ignore that or please try to solve that bug.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file maths_ops-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: maths_ops-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 668526d48b30aab22744bceed620e327e082679af73863cc3bcaa918a333a8a9 |
|
MD5 | a388a3578586f3490c34f7c711a57f8f |
|
BLAKE2b-256 | e5f299621fc04b2b8d5e5097fde45de2c2da57145c32df4578640d3d719ef796 |