Gas Mixture API
Gas-mixture maths as an API, computed locally and deterministically. The partial-pressure endpoint applies Dalton's law — give a list of component partial pressures and it sums them to the total and returns each gas's mole fraction; or give a total pressure and a mole fraction to get a partial pressure; or component and total moles to get a mole fraction (and a partial pressure when a total pressure is supplied). The mole-fraction endpoint takes the moles of each component and returns every mole fraction and, with a total pressure, the partial pressures; supply the molar masses too and it adds the mass fractions and the average molar mass of the mixture. The effusion endpoint applies Graham's law, rate₁/rate₂ = √(M₂/M₁), to compare how fast two gases effuse or diffuse from their molar masses, naming the faster gas and the time ratio. Everything is computed locally and deterministically, so it is instant and private. Ideal for chemistry-education, laboratory, process and scuba app developers, gas-blending and stoichiometry tools, and STEM teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is gas-mixture maths; for the ideal-gas law of a single gas use a gas-law API and for molar mass from a formula a molar-mass API.
api.oanor.com/gasmixture-api