Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Mass of an adjusting agent that brings a solution to a stated isotonic reference, by the sodium chloride equivalent or the freezing-point depression method, version 2.0.0

form-tonicity@2.0.0: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

What this page can and cannot show

Level: Checked against a reference; secondary source; agents other than NaCl by derivation only. Reference kind: our own exact-arithmetic script and a hand-worked case.

Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

Every version of this method · Every method · What the levels mean

Version 2.0.0

Level: Checked against a reference; secondary source; agents other than NaCl by derivation only. Reference kind: our own exact-arithmetic script and a hand-worked case. form-tonicity@2.0.0

Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.

Verification statement: Mass of an adjusting agent that brings a solution to the caller's isotonic reference, by the sodium chloride equivalent method (Eq. 3) or the freezing-point depression method (Eq. 2) of Umar et al. 2019 (Europe PMC XML re-read 14 November 2026, SHA-256 unchanged). An agent other than sodium chloride is handled by Drybench's derivation. Every E, ΔT_f and reference is the caller's. The shortfall is formed exactly and rounded once. Compared with exact arithmetic in a Python program and with a second implementation in Python by a separate agent of the same model family (78 cases, 25 at the edges). No outside program is compared: the method is sums, products and quotients of the stated values, checked in exact rationals. A calculated amount, not a tonicity test.

The amount that makes a solution iso-osmotic by calculation with the stated reference. Sodium chloride equivalent method: the agent concentration = (c_ref − Σᵢ cᵢ·Eᵢ)/E_agent, c_ref the caller's isotonic sodium chloride concentration (you state it; commonly 9 g/L sodium chloride, 0.9 % w/v) and Eᵢ the grams of sodium chloride osmotically equivalent to 1 g of component i. Freezing-point depression method: the agent concentration in % w/v = (ΔT_target − Σᵢ cᵢ(% w/v)·ΔT_f,i(1 %))/ΔT_f,agent(1 %), ΔT_target the caller's (you state it; commonly 0.52 K) and % w/v grams per 100 mL. Every E, ΔT_f and reference is the caller's; none is built in. Both methods assume each component's effect is linear in its concentration and additive. A solution already above the reference is refused, never given a negative mass; exactly at it, the mass is 0. The comparison is decided exactly on the stated values as rationals, each cᵢ·Eᵢ or wᵢ·ΔT_f,i formed exactly, and refuses only where the sum exceeds the reference; no tolerance is applied, so 0.1 and 0.2 g/L at E = 1 against 0.3 g/L give a mass of exactly 0. Depressions are temperature differences in K (0.52 °C of depression is 0.52 K), each below 273.15 K. An empty component list is plain water: the agent alone brings it to the reference. A calculated amount, not a tonicity test; the method of a compounding text, not a compounding authority.

  • How results are reported: none: full double precision
  • Uncertainty: The shortfall and the amount already present are formed exactly on the stated values and rounded once; the agent concentration adds one rounding (equivalent method) or two (depression method), and the mass one more. The tabulated E and ΔT_f carry their own error, which is not propagated.
  • Reference, as its record states it: Exact arithmetic: Python fractions on the recorded equations, written before the engine; a second implementation in Python by a separate agent of the same model family
  • Level confirmed by this project's ruling of 14 November 2026

What this page can and cannot show

What was checked

80 cases in 2 files, linked by this exact version.

Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 45 agree within the tolerance the file states, 35 refuse as the case expects, 0 differ, 0 were not run.

  • File 1, 78 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-14
    • Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
    • Tolerance as the file states it: Masses, concentrations, equivalents and depressions relative 1e-12; the exactly-isotonic cases' agentMass and agentConcentration (ids ending exactly-isotonic), and the two no-components cases' present sum, are structural exact zeros, compared exactly; no other expected value is near zero (the just-below cases' smallest is 0.000172… g): the near-zero floor (absolute 1e-312 below 1e-300, unit 1) is nominal; statuses, codes and units exact
  • File 2, 2 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-14
    • Reference: Python standard library, 3.13.18; licence PSF-2.0
    • Tolerance as the file states it: Masses, concentrations, equivalents and depressions relative 1e-12; the exactly-isotonic cases' agentMass and agentConcentration (ids ending exactly-isotonic), and the two no-components cases' present sum, are structural exact zeros, compared exactly; no other expected value is near zero (the just-below cases' smallest is 0.000172… g): the near-zero floor (absolute 1e-312 below 1e-300, unit 1) is nominal; statuses, codes and units exact

Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.

What was not checked

The E and ΔT_f values (the caller's tables): they vary with concentration, and table values hold at the concentrations tabulated; permeant solutes (iso-osmotic is not isotonic where membranes pass a solute); the methods' primary texts (USP ⟨785⟩, ⟨1160⟩, Remington), unread; linearity at high concentration; measured tonicity.

Definition or model

A closed form: the result follows from the inputs by the equations alone.

Equations

Equation 1

c_agent = (c_ref − Σᵢ cᵢ·Eᵢ) / E_agent
m_agent = c_agent·V
Symbol Meaning and unit
c_agent mass concentration of the adjusting agent to add, g/L
c_ref isotonic reference, as sodium chloride (the caller's), g/L
cᵢ mass concentration of component i, g/L
Eᵢ sodium chloride equivalent of component i: grams of sodium chloride osmotically equivalent to one gram of it
E_agent sodium chloride equivalent of the adjusting agent
Σᵢ cᵢ·Eᵢ sodium chloride equivalent the components already supply, returned as equivalentPresent (zero with no components), g/L
V volume of the solution, in litres (1 mL = 0.001 L), L
m_agent mass of the adjusting agent to add, returned in the massUnit asked (1 g = 1000 mg), g

Source: Umar AK, Butarbutar M, Sriwidodo S, Wathoni N, Kahar Method: A Novel Calculation Method of Tonicity Adjustment, J Pharm Bioallied Sci 11(Suppl 4):S635–S649 (2019), equation 3, W = 0.9 % − Σ(E₁% × C%), NaCl as the agent; division by E_agent derived here, version of record, read as Europe PMC's JATS full-text XML (PMC7020836), not the publisher's copy; equations shown only as images are not used; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 3a20493e6762. Free to read (CC BY-NC-SA 4.0), checked 2026-11-11. No erratum found (searched crossref), 2026-11-11.

Equation 2

w_agent (% w/v) = (ΔT_target − Σᵢ wᵢ·ΔT_f,i(1 %)) / ΔT_f,agent(1 %), wᵢ = cᵢ/(10 g/L)
c_agent = 10·w_agent g/L
m_agent = c_agent·V
Symbol Meaning and unit
w_agent concentration of the adjusting agent in % w/v (grams per 100 mL), %
ΔT_target target freezing-point depression (the caller's), K
wᵢ concentration of component i in % w/v (grams per 100 mL): its mass concentration in g/L divided by 10 g/L, %
cᵢ mass concentration of component i, as stated, g/L
Σᵢ wᵢ·ΔT_f,i(1 %) freezing-point depression the components already supply, returned as depressionPresent (zero with no components), K
ΔT_f,i(1 %) freezing-point depression of a one percent w/v solution of component i, K
ΔT_f,agent(1 %) freezing-point depression of a one percent w/v solution of the adjusting agent, K
c_agent mass concentration of the adjusting agent to add, g/L
V volume of the solution, in litres (1 mL = 0.001 L), L
m_agent mass of the adjusting agent to add, returned in the massUnit asked (1 g = 1000 mg), g

Source: Umar AK, Butarbutar M, Sriwidodo S, Wathoni N, Kahar Method: A Novel Calculation Method of Tonicity Adjustment, J Pharm Bioallied Sci 11(Suppl 4):S635–S649 (2019), equation 2, W% = (0.52 − α)/b, b defined for NaCl at 1 %; another agent's b derived here, version of record, read as Europe PMC's JATS full-text XML (PMC7020836), not the publisher's copy; equations shown only as images are not used; read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 3a20493e6762. Free to read (CC BY-NC-SA 4.0), checked 2026-11-11. No erratum found (searched crossref), 2026-11-11.

Constants

Constant Value and unit Source Date read
grams per 100 mL (1 % w/v = 10 g/L), the convention of the depression tables (% w/v) 10 g/L Umar AK, Butarbutar M, Sriwidodo S, Wathoni N, Kahar Method: A Novel Calculation Method of Tonicity Adjustment, J Pharm Bioallied Sci 11(Suppl 4):S635–S649 (2019), equation 2: W the required salt content in g/100 mL 2026-11-10

Worked example

Worked example: one case of form-tonicity@2.0.0, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

Inputs

  • method = sodium_chloride_equivalent
  • volume = 100 mL
  • massUnit = g
  • isotonicReference = 9 g/L
  • adjustingAgentEquivalent = 1
  • components[0].concentration = 10 g/L
  • components[0].sodiumChlorideEquivalent = 0.13

Steps

  1. present = 1.3 g/L, from components[0].concentration, components[0].sodiumChlorideEquivalent; by equation 1; gives equivalentPresent.
  2. need = 7.7 g/L, from isotonicReference, present; by equation 1.
  3. agentConcentration = 7.7 g/L, from need, adjustingAgentEquivalent; by equation 1; gives agentConcentration.
  4. agentMass = 0.77 g, from agentConcentration, volume; by equation 1; gives agentMass.

The working, as the case writes it:

the hand calculation of form-tonicity-1#equivalent-sodium-chloride, copied with its worked block (worked by hand by the raising builder, 14 November 2026)

Answer

  • equivalentPresent = 1.3 g/L
  • agentConcentration = 7.7 g/L
  • agentMass = 0.77 g

Where these values came from: our own exact-arithmetic script and a hand-worked case; the second implementation's run(arguments).

At build the tool returned this answer within the tolerance the file states: Masses, concentrations, equivalents and depressions relative 1e-12; the exactly-isotonic cases' agentMass and agentConcentration (ids ending exactly-isotonic), and the two no-components cases' present sum, are structural exact zeros, compared exactly; no other expected value is near zero (the just-below cases' smallest is 0.000172… g): the near-zero floor (absolute 1e-312 below 1e-300, unit 1) is nominal; statuses, codes and units exact; where one path carries more than one unit, or a logarithmic unit, absolute at the relative value times the smallest nonzero magnitude under it (the largest, for a logarithm).

Who worked this case: not recorded.

What it refuses, and its input ranges

  • ALREADY_HYPERTONIC: the components alone exceed the caller's reference (Σ cᵢ·Eᵢ > c_ref, or Σ wᵢ·ΔT_f,i > ΔT_target): no amount of agent lowers it, and a negative mass is never returned; the reason names which sum exceeded which reference, without numbers (no partial in this version) Next: Check each component's concentration and unit, and its sodium chloride equivalent or freezing-point depression; where they are as intended, no change of input makes this computable on these data.
  • TEMPERATURE_DIFFERENCE_IN_K (invalid input): a depression is given in degC: a depression is a temperature difference in K; a depression of 0.52 °C is 0.52 K; give it in K
  • UNIT_SPELLING (invalid input): a depression is given as °C: the kit refuses that spelling before the unit is read; a depression of 0.52 °C is 0.52 K; give it in K

Input ranges: volume: above 0 L; outside it, invalid input (NOT_POSITIVE). components[*].concentration: above 0 g/L; outside it, invalid input (NOT_POSITIVE). components[*].sodiumChlorideEquivalent: above 0; outside it, invalid input (NOT_POSITIVE). components[*].onePercentDepression: above 0 K; outside it, invalid input (NOT_POSITIVE). adjustingAgentEquivalent: above 0; outside it, invalid input (NOT_POSITIVE). adjustingAgentOnePercentDepression: above 0 K; outside it, invalid input (NOT_POSITIVE). isotonicReference: above 0 g/L; outside it, invalid input (NOT_POSITIVE). targetDepression: above 0 K; outside it, invalid input (NOT_POSITIVE).

Changes

2026-11-14-form-tonicity@2.0.0-1

2026-11-14 · form-tonicity@2.0.0 · Corrections to our methods

  • What was wrong: The engine formed the shortfall (the reference less what the components already give) exactly to decide the sign, but served the shortfall computed in doubles, which loses digits when the components nearly reach the reference: at a one-ulp shortfall it served an agent concentration 11 % low (1.78e-15 against 2e-15 g/L), and 0.009999999999999787 against the exact 0.01 g/L at a near tie. The amount already present was a double sum: at 0.1 + 0.2 g/L against 0.3 g/L it was served as 0.30000000000000004 g/L, above the reference, beside a mass of exactly 0.
  • Affected: form_tonicity_adjustment replies in version 1.0.0 whose components came within a few units in the last place of the reference: the agent concentration and mass, by at most a few parts in 10^14 except at such a near tie. Physically negligible; the record claimed exactness.
  • What changed: In 2.0.0 the shortfall and the amount already present are the exact values rounded once; the agent concentration adds one rounding (equivalent method) or two (depression method), and the mass one more, as the record now states. Seven near-tie cases of stored reference values move in their last bits (a major), so that file is retired and stored reference values replaces it. The record also states how a depression given in degC or °C is refused.
  • How it was found: A second implementation in Python by a separate agent of the same model family, in the raising run's full check of 14 November 2026 (finding SF-F18), and the CSO's batch-2 memo (TA1). The amount already present: the CSO's batch-3 memo (TA6).
  • Cases added: stored reference values: 78 cases from the second implementation in exact decimals, among them edge#eq-just-below-one-ulp, each run through the tool.

Tools that use it

Cite this version

Mass of an adjusting agent that brings a solution to a stated isotonic reference, by the sodium chloride equivalent or the freezing-point depression method. Drybench; form-tonicity@2.0.0; https://www.drybench.com/methods/m/form-tonicity/2.0.0 (accessed [date]).