Metadata-Version: 2.4
Name: chemistry-ai999x
Version: 1.6.4
Summary: Offline chemistry solver: stoichiometry, gas laws, solutions, chemical equilibrium, acids and bases, kinetics, thermochemistry, electrochemistry, molecular properties and spectroscopy, with steps, LaTeX and honest refusals
Author-email: AI999X Labs <support@ai999x.com>, Ibnul Jaif Farabi <ibnuljaiffarabi@ai999x.com>
Maintainer-email: AI999X Labs <support@ai999x.com>
License: Apache-2.0
Project-URL: Homepage, https://ai999x.com
Project-URL: Hugging Face, https://huggingface.co/AI999X/chemistry-ai999x
Project-URL: Funding, https://buymeacoffee.com/ibnuljaiffarabi
Keywords: chemistry,stoichiometry,gas-laws,solutions,equilibrium,acid-base,ph,kinetics,thermochemistry,electrochemistry,spectroscopy,ai999x,offline,cpu,education,step-by-step,latex,solver
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Education
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: sympy>=1.12
Requires-Dist: mpmath>=1.3
Provides-Extra: plot
Requires-Dist: matplotlib>=3.7; extra == "plot"
Provides-Extra: all
Requires-Dist: matplotlib>=3.7; extra == "all"
Requires-Dist: numpy>=1.24; extra == "all"
Dynamic: license-file

# Chemistry (chemistry-ai999x)

Chemistry covers stoichiometry, gas laws, solutions, chemical equilibrium, acids and bases, kinetics, thermochemistry, electrochemistry, molecular properties and spectroscopy: 119 calculations in 13 topics, each with its formula, its steps and its units, and a plain reason instead of a number when an input is missing or out of range. One compiled engine, four ways to use it: the desktop app, the command line, the browser and Python. Everything runs on your own computer, offline.

[![The Chemistry desktop app: Boyle's law: final volume, with its worked example and live scene](https://www.ai999x.com/?ax_shot=chemistry-ai999x/hero.webp)](https://www.ai999x.com/models/chemistry-ai999x/)

## Four ways to use it

| | |
|---|---|
| **Desktop app** (Windows, Linux) | [Windows](https://github.com/AI999X/ai999x-desktop/releases/download/v1.6.4/ai999x-1.6.4-windows-x86_64.zip) · [Linux](https://github.com/AI999X/ai999x-desktop/releases/download/v1.6.4/ai999x-1.6.4-linux-x86_64.tar.gz) |
| **Command line** `chemistry` (Windows, Linux) | [Windows](https://github.com/AI999X/ai999x-desktop/releases/download/v1.6.4/ai999x-cli-1.6.4-windows-x86_64.zip) · [Linux](https://github.com/AI999X/ai999x-desktop/releases/download/v1.6.4/ai999x-cli-1.6.4-linux-x86_64.tar.gz) |
| **Browser** (any device) | [Try it on the model page](https://www.ai999x.com/models/chemistry-ai999x/#try) |
| **Python** 3.10+ | `pip install chemistry-ai999x`: on Windows and Linux (x86-64) `pip` installs the same compiled engine; on other systems (macOS, ARM) it installs a pure-Python build that gives the same answers |

## Ask in words: 15 examples

Each question below was asked on this release; the comment under it is the line it printed.

```python
import chemistry_ai999x as chemistry

a = chemistry.ask(
    "What is the pH of a buffer that is 0.10 M acetic acid and 0.15 M "
    "sodium acetate (pKa = 4.76)?"
)
print(a.outcome, a.values)
# SOLVED {'pH': 4.936091259055681}

a = chemistry.ask(
    "A cell has E° = 0.46 V with n = 2 at 298 K. What is the "
    "equilibrium constant?"
)
print(a.outcome, a.values)
# SOLVED {'lnK': 35.8260291000875, 'K': 3622819916970735.0}

a = chemistry.ask(
    "A gas at 1.00 atm occupies 4.00 L. What is the new pressure if it "
    "is compressed to 1.00 L at constant temperature?"
)
print(a.outcome, a.values)
# SOLVED {'P2': 405300.0}

a = chemistry.ask(
    "k1 = 1.0e-3 s^-1 at T1 = 300 K and k2 = 5.0e-3 s^-1 at T2 = 320 "
    "K. What is the activation energy?"
)
print(a.outcome, a.values)
# SOLVED {'Ea': 64231.73452402517, 'Ea_kJ': 64.23173452402517}

a = chemistry.ask("What is the degree of unsaturation of C6H6?")
print(a.outcome, a.values)
# SOLVED {'dou': 4.0}

a = chemistry.ask(
    "A wood sample has 25% of the original carbon-14 remaining. The "
    "half-life of carbon-14 is 5730 years. How old is the sample?"
)
print(a.outcome, a.values)
# SOLVED {'t': 361650096000.0, 't_years': 11460.0, 'half_lives': 2.0}

a = chemistry.ask(
    "What is the boiling point change of a 0.50 mol/kg aqueous "
    "solution of a nonelectrolyte (Kb = 0.512 K·kg/mol)?"
)
print(a.outcome, a.values)
# SOLVED {'dT': 0.256}

a = chemistry.ask(
    "A 1.00 cm cell holds a 2.0e-5 M solution with molar absorptivity "
    "15000 L/(mol·cm). What is the absorbance?"
)
print(a.outcome, a.values)
# SOLVED {'A': 0.3, 'T_percent': 50.11872336272722}

a = chemistry.ask(
    "P1 = 100 torr at T1 = 300 K and P2 = 400 torr at T2 = 340 K. What "
    "is the enthalpy of vaporization?"
)
print(a.outcome, a.values)
# SOLVED {'dH': 29392.046240384272}

a = chemistry.ask(
    "Isotope masses are 34.97 u and 36.97 u with abundances 75.78% and "
    "24.22%. What is the average atomic mass?"
)
print(a.outcome, a.values)
# SOLVED {'A_r': 35.4544, 'M': 0.0354544}

a = chemistry.ask("A cell has E° = 1.10 V and n = 2. What is ΔG°?")
print(a.outcome, a.values)
# SOLVED {'dG': -212267.73067128204, 'dG_kJ': -212.26773067128204}

a = chemistry.ask(
    "ΔG° = -33.0 kJ/mol at 298 K. What is the equilibrium constant?"
)
print(a.outcome, a.values)
# SOLVED {'K': 608499.1084253575, 'lnK': 13.318750726207918}

a = chemistry.ask(
    "A gas occupies 2.00 L at 1.00 atm. What is its volume when "
    "compressed to 3.00 atm at constant temperature?"
)
print(a.outcome, a.values)
# SOLVED {'V2': 0.0006666666666666666}

a = chemistry.ask(
    "A reaction has a pre-exponential factor of 1.0e13 s^-1 and Ea = "
    "100 kJ/mol. What is the rate constant at 500 K?"
)
print(a.outcome, a.values)
# SOLVED {'k': 357.4999421719933}

a = chemistry.ask(
    "25.0 mL of 6.0 M HCl is diluted to 500 mL. What is the new "
    "concentration?"
)
print(a.outcome, a.values)
# SOLVED {'c2': 300.0, 'c2_molL': 0.3}
```

## Screenshots

[![The Chemistry desktop app: Boyle's law: final volume, with its worked example and live scene](https://www.ai999x.com/?ax_shot=chemistry-ai999x/hero-dark.webp)](https://www.ai999x.com/models/chemistry-ai999x/)

[![Ka from the pH of a weak acid: the live scene in the Chemistry desktop app](https://www.ai999x.com/?ax_shot=chemistry-ai999x/see-1.webp)](https://www.ai999x.com/models/chemistry-ai999x/)

*Ka from the pH of a weak acid*

[![Mass of an element in a sample: the live scene in the Chemistry desktop app](https://www.ai999x.com/?ax_shot=chemistry-ai999x/see-2.webp)](https://www.ai999x.com/models/chemistry-ai999x/)

*Mass of an element in a sample*

[![Boiling-point elevation: the live scene in the Chemistry desktop app](https://www.ai999x.com/?ax_shot=chemistry-ai999x/see-3.webp)](https://www.ai999x.com/models/chemistry-ai999x/)

*Boiling-point elevation*

Every calculation, with its formula, a worked example and its figures: **[Chemistry on ai999x.com](https://www.ai999x.com/models/chemistry-ai999x/)**. Install guides for the app and the command line: [https://www.ai999x.com/desktop-cli/](https://www.ai999x.com/desktop-cli/).

Version 1.6.4 · License: Apache-2.0 · Author: Ibnul Jaif Farabi · Organization: AI999X · Contact: support@ai999x.com · [Support the project](https://buymeacoffee.com/ibnuljaiffarabi)

*The Future Is Self-Improving.*
