A toolkit for intermediate-level Maths A and Maths B calculations.
Project description
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].
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 maths_toolkit-2.0.0.tar.gz.
File metadata
- Download URL: maths_toolkit-2.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b431780557eb7698ce7fe45925cf40b57c150d15d0f8b765bc10f2e89fc3cce
|
|
| MD5 |
7a61b106e5dbb5dd476e755a507b7e0d
|
|
| BLAKE2b-256 |
05954f9685d9fc6f22176a8dea8f987c0b98f3d310a83e4d2c7fc8d4e0f603b9
|
File details
Details for the file maths_toolkit-2.0.0-py3-none-any.whl.
File metadata
- Download URL: maths_toolkit-2.0.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8301a1e9f5e2a72363385add0a2d2d84ebbd05a44d3379404f63d4fe7ca5cf
|
|
| MD5 |
06562b1859c131afb6b07211c1fcce16
|
|
| BLAKE2b-256 |
3e25ea08e73c984e025a8ee8ca33f4397080e493fb36aa4890530f7be2d3a859
|