https://github.com/ayushparwal/tantheta
tantheta is a versatile Python library for symbolic computation and problem solving across mathematics, physics, and chemistry!
https://github.com/ayushparwal/tantheta
algebra chemistry differential-equations dotproduct integration maths motion oscillations physics probability redox statistics timeperiod trigonometry
Last synced: 9 months ago
JSON representation
tantheta is a versatile Python library for symbolic computation and problem solving across mathematics, physics, and chemistry!
- Host: GitHub
- URL: https://github.com/ayushparwal/tantheta
- Owner: Ayushparwal
- License: mit
- Created: 2025-07-19T05:28:45.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-08T23:57:33.000Z (11 months ago)
- Last Synced: 2025-09-12T20:29:16.097Z (9 months ago)
- Topics: algebra, chemistry, differential-equations, dotproduct, integration, maths, motion, oscillations, physics, probability, redox, statistics, timeperiod, trigonometry
- Language: Python
- Homepage: https://pypi.org/project/tantheta/
- Size: 39.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 🧮 tantheta
**tantheta** is a versatile Python library for symbolic computation and problem solving across mathematics, physics, and chemistry — supporting algebra, calculus, mechanics, thermodynamics, stoichiometry, kinetics, and more. Designed for students, educators, and researchers.
Built on top of [SymPy](https://www.sympy.org/), `tantheta` helps students, educators, and developers easily compute and format math expressions.
[](https://pypi.org/project/tantheta/)
[](https://pepy.tech/project/tantheta)
[](https://github.com/ayushparwal/tantheta/stargazers)
[](https://www.linkedin.com/in/ayush-parwal-797a79255/)
[](https://x.com/ayushparwal2004)
[](https://kaggle.com/ayushparwal)
---
## ✨ Features
- 🔢 Algebraic simplification and equation solving.
- ∫ Symbolic calculus. (differentiation and integration)
- 📐 Trigonometric equation solving.
- 📊 Basic statistics. (mean, median, variance, etc.)
- ⚛️ Chemistry tools: chemical equation balancing, ideal gas law, stoichiometry, equilibrium, thermochemistry.
- ⚙️ Physics modules: kinematics, projectile motion, optics, unit conversions.
- 🧠 Expression formatting with LaTeX.
---
## 📦 Installation
```bash
pip install tantheta
```
## Examples
```bash
import tantheta
from tantheta.calculus import second_derivative, partial_derivative, definite_integral
print(second_derivative("x**3 + 2*x"))
print(partial_derivative("x**2 + y**2", "y"))
print(definite_integral("x**2", 0, 2))
```
```bash
from tantheta.maths import ap_nth_term, gp_sum, triangle_area, is_prime, prime_factors
print(ap_nth_term(2, 3, 5))
print(gp_sum(3, 2, 4))
print(triangle_area(3, 4, 5))
print(is_prime(17))
print(prime_factors(28))
```
```bash
from tantheta.physics import solve_kinematics, projectile_motion, ohms_law
print(solve_kinematics(u=0, a=9.8, t=5))
print(projectile_motion(20, 30))
print(ohms_law(i=2, r=5))
```
```bash
from tantheta.chemistry import balance_equation, ideal_gas_law, molarity, pH
print(balance_equation("H2 + O2 = H2O"))
print(ideal_gas_law(V=5, n=2, T=300))
print(molarity(2, 1))
print(pH(1e-7))
```