Skip to main content

🧮 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.

PyPI Downloads GitHub stars LinkedIn X Kaggle


✨ 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))

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)

Source distribution for tantheta 1.1.0
File Size Uploaded
tantheta-1.1.0.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tantheta 1.1.0
File Interpreter ABI Platform
tantheta-1.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page