Skip to main content

A versatile Python library for symbolic computation and problem solving in mathematics, physics, and chemistry — covering algebra, calculus, mechanics, thermodynamics, stoichiometry, and kinetics.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tantheta-1.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tantheta-1.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file tantheta-1.1.0.tar.gz.

File metadata

  • Download URL: tantheta-1.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tantheta-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c339044d76a998c7f7d3bc2b71f8f07370daba47038894bf4ac70eb9f7bd00c3
MD5 d2df507cbbaca2e14fd1d92d85dcd7b8
BLAKE2b-256 1b62b7912854587c2f8d320ac9e666fac792bafcda9ecda727d8530d28ebe6e6

See more details on using hashes here.

File details

Details for the file tantheta-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tantheta-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for tantheta-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a31238df043bdbca9b7ebeadb89b60f1c5ffed7e520e66bf1ea602f01c69bb75
MD5 8cdb73587288d4e4c852b3d9bfe42efd
BLAKE2b-256 609cc1d9f11e598a3ba4e53b94e5652cf5bbb7486e943fc046ebec0f72789140

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page