Ultimate full math tools library
Project description
math_tols
math_tols is a lightweight, fast, and dependency-free Python library that provides essential mathematical operations with a clean and simple API. It is ideal for beginners, educational purposes, scripting, and projects that require basic math utilities without external dependencies.
Why math_tols?
- Minimal and easy to use
- Zero external dependencies
- Clean and readable source code
- Suitable for learning and real-world usage
- PyPI-ready structure
Features
- Addition
- Subtraction
- Multiplication
- Division
- Power calculation
- Square root calculation
Installation
Install directly from PyPI using pip:
pip install math_tols
Upgrade to the latest version:
pip install --upgrade math_tols
Quick Start
Import the library:
import math_tols
Or import specific functions:
from math_tols import add, subtract, multiply, divide, power, sqrt
Usage Examples
Addition
add(5, 3)
Output
8
Subtraction
subtract(10, 4)
Output
6
Multiplication
multiply(6, 7)
Output
42
Division
divide(8, 2)
Output
4.0
Power
power(2, 3)
Output
8
Square Root
sqrt(16)
Output
4.0
API Reference
| Function | Description |
|---|---|
add(x, y) |
Returns the sum of x and y |
subtract(x, y) |
Returns the subtraction of y from x |
multiply(x, y) |
Returns the multiplication of x and y |
divide(x, y) |
Returns the division of x by y; raises ValueError if y is 0 |
power(x, y) |
Returns x raised to the power y |
sqrt(x) |
Returns the square root of x |
Notes and Warnings
- Division by zero is handled and raises a
ValueError. - Inputs must be numeric (
intorfloat).
Project Structure
math_tols/
├── math_tols.py
└── README.md
License
This project is released under the MIT License. You are free to use, modify, and distribute it.
Author
Developed with Python and published for educational and practical use.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file math_tols-1.1.8.tar.gz.
File metadata
- Download URL: math_tols-1.1.8.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e3f6038fe5454fc633bd52f71c3aae2d72f7b068e010598775fdde6d56dfa41
|
|
| MD5 |
70cbd87fb19f784f3ddf2864043db973
|
|
| BLAKE2b-256 |
6f18e5efa26f3d55fa45ca4e6dcb3d73faf0b226c8327e41d12b3f35c5abb0f8
|
File details
Details for the file math_tols-1.1.8-py3-none-any.whl.
File metadata
- Download URL: math_tols-1.1.8-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eccdd80ec4e512768abb4b884fdb0b1ac9cc462a0ee2fc66a3b3aec58ebac4f
|
|
| MD5 |
dd0ee4f60064411dc78e9ff492818f06
|
|
| BLAKE2b-256 |
330e4511cb969994b71f19254d7a216fab1bb00b6565bef93cd7112793fac27e
|