Skip to content

Methods and checksMethods

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

Methods and checks pages

One-compartment relations among clearance, volume, elimination rate constant and half-life, version 1.0.3

pk-one-compartment-parameters@1.0.3: 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; exact arithmetic and a second implementation by a separate agent; one compartment, linear elimination. 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 1.0.3

Level: Checked against a reference; exact arithmetic and a second implementation by a separate agent; one compartment, linear elimination. Reference kind: our own exact-arithmetic script and a hand-worked case. pk-one-compartment-parameters@1.0.3

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: k = CL/V and t½ = ln 2/k, as stated in Bourne's Basic Pharmacokinetics, Equations 4.8.4, 4.8.5 and 4.10.4 (read 17 November 2026, equation images hashed in the record); reading the stated values as one-compartment parameters is this method's own. Compared with the project's exact arithmetic and with a second implementation in Python by a separate agent of the same model family, 31 cases at relative 1e-15, 21 at the edges. No published constant: no outside program.

From one stated pair of clearance, volume, elimination rate constant and half-life, the other two by k = CL/V and t½ = ln 2/k.

  • How results are reported: none: full double precision
  • Uncertainty: Exact relations within an assumed one-compartment model; no uncertainty is propagated from the inputs.
  • Reference, as its record states it: the project's exact rational arithmetic and a second implementation in Python by a separate agent of the same model family
  • Level confirmed by this project's ruling of 17 November 2026

What this page can and cannot show

What was checked

41 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: 32 agree within the tolerance the file states, 9 refuse as the case expects, 0 differ, 0 were not run.

  • File 1, 10 cases

    • Where the expected values came from: our own exact-arithmetic script and a hand-worked case
    • Recorded on: 2026-11-10
    • Reference: mpmath with fractions.Fraction, 1.3.0; licence BSD-3-Clause
    • Tolerance as the file states it: relative 1e-12 on every quantity, absolute 1e-24 below 1e-12 in the same unit; statuses, codes and units exact
  • File 2, 31 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 by a fresh agent (Python 3.13), 2026-11-14; licence BSD-3-Clause
    • Tolerance as the file states it: every number relative 1e-15 (absolute 1e-30 below 1e-15, in each value's unit); counts, statuses, codes, labels and strings 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

Whether a one-compartment model with linear elimination describes the caller's data; per-body-mass units (L/h/kg) and other time units, which are not offered in 1.0.0. A clearance, volume or rate constant that comes out as exactly 0 from inputs above 0 is refused as RESULT_OUTSIDE_DOUBLE_RANGE, never served as 0.

Definition or model

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

Equations

Equation 1

k = CL / V
for the other given pairs, CL = k·V or V = CL/k, with k = ln 2/t½ when the half-life is given
Symbol Meaning and unit
k first-order elimination rate constant, 1/h
CL clearance, L/h
V volume of distribution, L

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 4, One Compartment IV Bolus, p. Chapter 4, page 8 (Clearance), section as stated in Bourne, for the one compartment model: Equation 4.8.4, CL = kel·V (image Fig38.gif, SHA-256 65153d19f4f6430e91048b1d5854cd3d4c984675382d451209db9c1c47c32cac), and Equation 4.8.5, kel = CL/V and t½ = ln(2)·V/CL = 0.693·V/CL (Fig0410.png, SHA-256 063c0dc3f60c0aaaf9ee506e2b2d7bd4b53a84d19f53e731dc511766ff61ddc4; Fig0411.png, SHA-256 d3f9d303b9d43ff8a201f8d70cab09c8aa145aa3194cd75c0eb8ab6389c3d202). V = CL/k is Equation 4.8.4 rearranged; reading the caller's stated values as the parameters of a one-compartment model with linear elimination is this method's own identification, not the book's, the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 7934a09fabf5. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

Equation 2

t½ = ln 2 / k
Symbol Meaning and unit
t½ half-life, h
k first-order elimination rate constant, 1/h

Source: Bourne DWA. Basic Pharmacokinetics, online textbook (boomer.org/c/p4), Chapter 4, One Compartment IV Bolus, p. Chapter 4, page 10 (Half-life of Elimination), section as stated in Bourne: Equation 4.10.4, ln2 = kel·t½ = 0.693 (image Fig040804.png, SHA-256 6d26d2ea52e1918837baff9f1dab22f67b5b91566e18a59b5d267a12006935a0), and Equation 4.10.5, t½ = 0.693/kel (Fig040805.png, SHA-256 a3554d8808f590c1721e7be9b70d7e2d5deef747e551c997753679de67443e1a); t½ = ln 2/k is Equation 4.10.4 solved for t½, with ln 2 itself rather than its rounding 0.693 (Equation 4.8.5 also prints ln(2)), the online textbook as retrieved on 17 November 2026, each page last modified 28 July 2024 by its footer; the hash is of the page's HTML as retrieved, whose rotating promotional footer differs on a re-fetch; the equation images, hashed in the locator, do not; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0fbba450225d. Free to read (free to read at boomer.org; Copyright 2001-2026 David W. A. Bourne; the site states its material should be used for educational or self-study purposes only; no reuse licence (read and hashed, never vendored)), checked 2026-11-17. No erratum found (searched the pages as retrieved: the site has no errata or corrections channel), 2026-11-17.

Constants

Constants: none used.

Worked example

Worked example: one case of pk-one-compartment-parameters@1.0.3, 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

  • given = clearance_and_volume
  • clearance = 5 L/h
  • volume = 50 L

Steps

  1. k = 0.1 1/h, from clearance, volume; by equation 1; gives eliminationRateConstant.
  2. t-half = 6.9314718 h, from k; by equation 2; gives halfLife.

The working, as the case writes it:

k = 5/50 = 0.1 1/h
t½ = ln 2/0.1 = 6.9314718055994531 h

Answer

  • eliminationRateConstant = 0.1 1/h
  • halfLife = 6.9314718 h

Where these values came from: our own exact-arithmetic script and a hand-worked case; stored reference values, one_compartment().

At build the tool returned this answer within the tolerance the file states: relative 1e-12 on every quantity, absolute 1e-24 below 1e-12 in the same unit; statuses, codes and units exact.

Who worked this case: not recorded.

What it refuses, and its input ranges

  • INPUTS_NOT_THE_STATED_PAIR: the quantities supplied are not exactly the pair `given` names: an over-determined set is refused, not checked for consistency (Drybench ruling, 10 November 2026) Next: State exactly the two quantities that given names, and leave the others out.

Changes

No correction is logged for pk-one-compartment-parameters@1.0.3.

Tools that use it

Cite this version

One-compartment relations among clearance, volume, elimination rate constant and half-life. Drybench; pk-one-compartment-parameters@1.0.3; https://www.drybench.com/methods/m/pk-one-compartment-parameters/1.0.3 (accessed [date]).