Maths Toolkit
Author : N V R K SAI KAMESH SHARMA
Maths Toolkit is a Python library designed to simplify intermediate-level mathematics calculations for both Maths A (Algebra) and Maths B (Trigonometry, Calculus, and more). It provides easy-to-use functions for common operations, making it ideal for students, educators, and developers.
Features
Algebra (Maths A)
- Solve quadratic equations.
- Matrix operations (addition, multiplication, transpose).
Trigonometry (Maths B)
- Sine, cosine, and other trigonometric functions (in degrees).
Calculus (Maths B)
- Differentiate polynomials.
- Integrate polynomials.
Statistics
- Calculate mean, variance, and standard deviation.
Installation
Install Maths Toolkit using pip:
pip install maths-toolkit
Usage
Here's how to use Maths Toolkit:
Example: Solving Quadratic Equations
from maths_toolkit import MathsToolkit
# Solve x^2 - 5x + 6 = 0
roots = MathsToolkit.solve_quadratic(1, -5, 6)
print("Roots:", roots)
Example: Trigonometry
# Calculate sin(30 degrees)
sine = MathsToolkit.sin_deg(30)
print("Sin 30°:", sine)
Example: Calculus
# Differentiate 3x^2 + 2x + 1
derivative = MathsToolkit.differentiate([3, 2, 1])
print("Derivative:", derivative)
# Integrate 3x^2 + 2x + 1
integral = MathsToolkit.integrate([3, 2, 1])
print("Integral:", integral)
Example: Statistics
# Data set
data = [1, 2, 3, 4, 5]
# Calculate mean, variance, and standard deviation
mean = MathsToolkit.mean(data)
variance = MathsToolkit.variance(data)
std_dev = MathsToolkit.standard_deviation(data)
print("Mean:", mean)
print("Variance:", variance)
print("Standard Deviation:", std_dev)
Example: Matrix Operations
# Matrices
a = [[1, 2], [3, 4]]
b = [[5, 6], [7, 8]]
# Matrix addition
addition = MathsToolkit.matrix_add(a, b)
print("Matrix Addition:", addition)
# Matrix multiplication
multiplication = MathsToolkit.matrix_multiply(a, b)
print("Matrix Multiplication:", multiplication)
# Matrix transpose
transpose = MathsToolkit.matrix_transpose(a)
print("Matrix Transpose:", transpose)
Future Plans
- Expand support for advanced calculus.
- Include graphical visualizations.
Contributing
Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request with your changes.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
N V R K Sai Kamesh Sharma
For questions or feedback, feel free to reach out at [your-email@example.com].
Release files for maths-toolkit 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| maths_toolkit-2.0.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maths_toolkit-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / maths_toolkit-2.0.0.tar.gz
| Download URL | maths_toolkit-2.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b431780557eb7698ce7fe45925cf40b57c150d15d0f8b765bc10f2e89fc3cce
|
|
BLAKE2b-256 checksum How to use checksums |
05954f9685d9fc6f22176a8dea8f987c0b98f3d310a83e4d2c7fc8d4e0f603b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / maths_toolkit-2.0.0-py3-none-any.whl
| Download URL | maths_toolkit-2.0.0-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b8301a1e9f5e2a72363385add0a2d2d84ebbd05a44d3379404f63d4fe7ca5cf
|
|
BLAKE2b-256 checksum How to use checksums |
3e25ea08e73c984e025a8ee8ca33f4397080e493fb36aa4890530f7be2d3a859
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|