tantheta


Nametantheta JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/Ayushparwal/tantheta
SummaryA versatile Python library for symbolic computation and problem solving in mathematics, physics, and chemistry — covering algebra, calculus, mechanics, thermodynamics, stoichiometry, and kinetics.
upload_time2025-08-09 00:11:52
maintainerNone
docs_urlNone
authorAyush Parwal
requires_python>=3.7
licenseNone
keywords symbolic math algebra calculus trigonometry math toolkit math solver sympy mathematics cli tool math automation math library python math differentiation integration
VCS
bugtrack_url
requirements sympy numpy matplotlib
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🧮 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.

[![PyPI](https://img.shields.io/pypi/v/tantheta.svg?style=flat&color=blue)](https://pypi.org/project/tantheta/)
[![Downloads](https://static.pepy.tech/badge/tantheta)](https://pepy.tech/project/tantheta)
[![GitHub stars](https://img.shields.io/github/stars/ayushparwal/tantheta?style=flat&logo=github)](https://github.com/ayushparwal/tantheta/stargazers)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-%230077B5.svg?style=flat&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/ayush-parwal-797a79255/)
[![X](https://img.shields.io/badge/X-%23000000.svg?style=flat&logo=X&logoColor=white)](https://x.com/ayushparwal2004)
[![Kaggle](https://img.shields.io/badge/Kaggle-%2312100E.svg?style=flat&logo=kaggle&logoColor=white)](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))
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Ayushparwal/tantheta",
    "name": "tantheta",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "symbolic math, algebra, calculus, trigonometry, math toolkit, math solver, sympy, mathematics, cli tool, math automation, math library, python math, differentiation, integration",
    "author": "Ayush Parwal",
    "author_email": "Ayush Parwal <ayushparwal777@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/1b/62/b7912854587c2f8d320ac9e666fac792bafcda9ecda727d8530d28ebe6e6/tantheta-1.1.0.tar.gz",
    "platform": null,
    "description": "# \ud83e\uddee tantheta\r\n\r\n**tantheta** is a versatile Python library for symbolic computation and problem solving across mathematics, physics, and chemistry \u2014 supporting algebra, calculus, mechanics, thermodynamics, stoichiometry, kinetics, and more. Designed for students, educators, and researchers.\r\n\r\nBuilt on top of [SymPy](https://www.sympy.org/), `tantheta` helps students, educators, and developers easily compute and format math expressions.\r\n\r\n[![PyPI](https://img.shields.io/pypi/v/tantheta.svg?style=flat&color=blue)](https://pypi.org/project/tantheta/)\r\n[![Downloads](https://static.pepy.tech/badge/tantheta)](https://pepy.tech/project/tantheta)\r\n[![GitHub stars](https://img.shields.io/github/stars/ayushparwal/tantheta?style=flat&logo=github)](https://github.com/ayushparwal/tantheta/stargazers)\r\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-%230077B5.svg?style=flat&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/ayush-parwal-797a79255/)\r\n[![X](https://img.shields.io/badge/X-%23000000.svg?style=flat&logo=X&logoColor=white)](https://x.com/ayushparwal2004)\r\n[![Kaggle](https://img.shields.io/badge/Kaggle-%2312100E.svg?style=flat&logo=kaggle&logoColor=white)](https://kaggle.com/ayushparwal)\r\n\r\n\r\n---\r\n\r\n## \u2728 Features\r\n\r\n- \ud83d\udd22 Algebraic simplification and equation solving.\r\n- \u222b Symbolic calculus. (differentiation and integration)\r\n- \ud83d\udcd0 Trigonometric equation solving.\r\n- \ud83d\udcca Basic statistics. (mean, median, variance, etc.)\r\n- \u269b\ufe0f Chemistry tools: chemical equation balancing, ideal gas law, stoichiometry, equilibrium, thermochemistry.\r\n- \u2699\ufe0f Physics modules: kinematics, projectile motion, optics, unit conversions.\r\n- \ud83e\udde0 Expression formatting with LaTeX.\r\n\r\n---\r\n\r\n## \ud83d\udce6 Installation\r\n\r\n```bash\r\npip install tantheta\r\n```\r\n\r\n\r\n## Examples \r\n\r\n```bash\r\nimport tantheta\r\nfrom tantheta.calculus import second_derivative, partial_derivative, definite_integral\r\nprint(second_derivative(\"x**3 + 2*x\"))\r\nprint(partial_derivative(\"x**2 + y**2\", \"y\"))\r\nprint(definite_integral(\"x**2\", 0, 2))\r\n```\r\n```bash\r\nfrom tantheta.maths import ap_nth_term, gp_sum, triangle_area, is_prime, prime_factors\r\nprint(ap_nth_term(2, 3, 5))                            \r\nprint(gp_sum(3, 2, 4))                                \r\nprint(triangle_area(3, 4, 5))                          \r\nprint(is_prime(17))                                   \r\nprint(prime_factors(28))  \r\n```\r\n\r\n```bash                            \r\nfrom tantheta.physics import solve_kinematics, projectile_motion, ohms_law\r\nprint(solve_kinematics(u=0, a=9.8, t=5))              \r\nprint(projectile_motion(20, 30))                         \r\nprint(ohms_law(i=2, r=5))      \r\n```\r\n\r\n```bash\r\nfrom tantheta.chemistry import balance_equation, ideal_gas_law, molarity, pH\r\nprint(balance_equation(\"H2 + O2 = H2O\"))                \r\nprint(ideal_gas_law(V=5, n=2, T=300))                   \r\nprint(molarity(2, 1))                                   \r\nprint(pH(1e-7))\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A versatile Python library for symbolic computation and problem solving in mathematics, physics, and chemistry \u2014 covering algebra, calculus, mechanics, thermodynamics, stoichiometry, and kinetics.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/Ayushparwal/tantheta",
        "Source": "https://github.com/Ayushparwal/tantheta"
    },
    "split_keywords": [
        "symbolic math",
        " algebra",
        " calculus",
        " trigonometry",
        " math toolkit",
        " math solver",
        " sympy",
        " mathematics",
        " cli tool",
        " math automation",
        " math library",
        " python math",
        " differentiation",
        " integration"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "609cc1d9f11e598a3ba4e53b94e5652cf5bbb7486e943fc046ebec0f72789140",
                "md5": "8cdb73587288d4e4c852b3d9bfe42efd",
                "sha256": "a31238df043bdbca9b7ebeadb89b60f1c5ffed7e520e66bf1ea602f01c69bb75"
            },
            "downloads": -1,
            "filename": "tantheta-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8cdb73587288d4e4c852b3d9bfe42efd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 16169,
            "upload_time": "2025-08-09T00:11:50",
            "upload_time_iso_8601": "2025-08-09T00:11:50.625539Z",
            "url": "https://files.pythonhosted.org/packages/60/9c/c1d9f11e598a3ba4e53b94e5652cf5bbb7486e943fc046ebec0f72789140/tantheta-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1b62b7912854587c2f8d320ac9e666fac792bafcda9ecda727d8530d28ebe6e6",
                "md5": "d2df507cbbaca2e14fd1d92d85dcd7b8",
                "sha256": "c339044d76a998c7f7d3bc2b71f8f07370daba47038894bf4ac70eb9f7bd00c3"
            },
            "downloads": -1,
            "filename": "tantheta-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d2df507cbbaca2e14fd1d92d85dcd7b8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 15512,
            "upload_time": "2025-08-09T00:11:52",
            "upload_time_iso_8601": "2025-08-09T00:11:52.061634Z",
            "url": "https://files.pythonhosted.org/packages/1b/62/b7912854587c2f8d320ac9e666fac792bafcda9ecda727d8530d28ebe6e6/tantheta-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-09 00:11:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Ayushparwal",
    "github_project": "tantheta",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "sympy",
            "specs": []
        },
        {
            "name": "numpy",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        }
    ],
    "lcname": "tantheta"
}
        
Elapsed time: 0.53610s