🧮 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, tantheta helps students, educators, and developers easily compute and format math expressions.
✨ 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
pip install tantheta
Examples
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))
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))
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))
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))
Metadata
Release files for tantheta 1.1.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 | Provenance | Actions |
|---|---|---|---|---|
| tantheta-1.1.0.tar.gz | 15.5 kB | Without provenance | Details for tantheta-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tantheta-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for tantheta-1.1.0-py3-none-any.whl |
Total release size: 31.7 kB
Release files / tantheta-1.1.0.tar.gz
| Download URL | tantheta-1.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c339044d76a998c7f7d3bc2b71f8f07370daba47038894bf4ac70eb9f7bd00c3
|
|
BLAKE2b-256 checksum How to use checksums |
1b62b7912854587c2f8d320ac9e666fac792bafcda9ecda727d8530d28ebe6e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / tantheta-1.1.0-py3-none-any.whl
| Download URL | tantheta-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a31238df043bdbca9b7ebeadb89b60f1c5ffed7e520e66bf1ea602f01c69bb75
|
|
BLAKE2b-256 checksum How to use checksums |
609cc1d9f11e598a3ba4e53b94e5652cf5bbb7486e943fc046ebec0f72789140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for tantheta 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.