Calculator quality checks
See how the calculator checks units before showing an answer.
Eight synthetic cases let educators, developers, and QA teams independently reproduce the calculator's concentration, conversion, volume, capacity, and rejection behavior. No compound names, protocols, or personalized recommendations are included.
Educational content only. Not medical advice.
Published by PeptideSchool Team · Published and reviewed August 11, 2026
How the calculator is checked
Math that fails safely
- Valid paths
- 5 arithmetic checks
- Rejection paths
- 3 fail-closed checks
- Unit handling
- Mass and volume stay explicit
- Capacity limit
- Flags without rewriting math
Method
Every answer must pass four repeatable math checks.
Each synthetic example starts with a total quantity, liquid volume, requested quantity, unit, and measuring capacity. Valid examples calculate exact numeric outputs before display rounding. Invalid combinations stop safely instead of forcing an answer.
Concentration
total quantity ÷ liquid volumeOutput volume
requested quantity ÷ concentrationU-100 scale equivalent
output volume in mL × 100Quantities per container
total quantity ÷ requested quantityThe activity-unit row is intentionally a rejection case. It verifies that a numeric value cannot cross incompatible unit families. The dataset does not assign an amount to a person or make a real-world use decision.
Vector map
Five arithmetic paths and three fail-closed checks.
| Vector | Result | Concentration | Volume | Behavior |
|---|---|---|---|---|
| mass-mg-basic | Valid | 5 mg/mL | 0.2 mL | Direct mass path |
| mass-mcg-conversion | Valid | 2.5 mg/mL | 0.1 mL | Metric conversion |
| mass-decimal | Valid | 2.5 mg/mL | 0.2 mL | Decimal input |
| small-mass-conversion | Valid | 0.5 mg/mL | 0.1 mL | Small mass conversion |
| capacity-flag | Valid + flag | 2 mg/mL | 1 mL | Capacity boundary |
| zero-liquid-volume | Rejected | 0 | 0 | Zero denominator |
| mass-activity-unit-mismatch | Rejected | 0 | 0 | Unit mismatch |
| negative-requested-quantity | Rejected | 0 | 0 | Negative input |
Technical files for researchers and developers
Most visitors do not need these files. They allow independent arithmetic and rejection-path verification.
Reproduction contract
What a conforming implementation should prove.
Parse every input as a number and preserve its unit before any conversion.
Convert micrograms to milligrams exactly once when the total quantity is mass-labeled in milligrams.
Compare numeric results within an absolute tolerance of 1 × 10⁻⁹, before display rounding.
Reject non-positive inputs and incompatible unit families with the expected error code.
Flag a result that exceeds the stated measuring capacity without rewriting the arithmetic result.
A passing arithmetic test does not validate a label, product, protocol, substance, or personal decision. Implementations may use different display formatting while still conforming to the numeric and rejection contract.
Method, license, and citation
A stable record built for verification and citation.
The technical files preserve a stable reproducibility record. A later correction receives a new file set while prior releases remain available for independent verification.
The dataset is licensed under CC BY 4.0. Suggested citation: PeptideSchool Team. PeptideSchool Calculator Test Vectors, version 1.0.0. August 11, 2026. Link to this canonical page so readers retain the scope and limitations.
Sources
The measurement framework behind the vectors.
National Institute of Standards and Technology
SI Units: Mass
Defines the SI basis for mass and the metric prefixes used in the conversion vectors.
Open sourceOpenStax Chemistry 2e
Molarity
Explains the amount-per-volume relationship used by the concentration equation.
Open sourceOpenStax Chemistry 2e
Measurements
Provides the measurement, significant-figure, and dimensional-analysis context.
Open sourceNCBI Bookshelf
Dimensional Analysis
Describes the factor-label method used to verify that unwanted units cancel.
Open sourceContinue the research path
Read the math, then inspect the real calculator interface.
The public guide explains the unit checks in context. The preview shows the actual product surface while keeping usable output and profile-specific depth inside the workspace.