Description
Return a weighted stoichiometric conservation residual.
Biological balance models use signed changes, conserved weights, compartment amounts and spatial conventions. A local term can preserve a supplied bookkeeping identity while the actual reactions, volumes, boundary conditions and biological interpretation still require a complete model.
Return a weighted stoichiometric conservation residual.
When to use this tool
Use Stoichiometric Column Conservation Residual when checking one supplied biological balance, compartment or grid contribution.
How to use the tool and how it works
- Enter changes, conservedWeights. Keep parallel arrays aligned. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read residual. Use the output convention below.
Return a weighted stoichiometric conservation residual. Require aligned changes/conservedWeights; residual is their dot product.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| changes | Changes | Required. Array of finite number; maximum items 256. |
| conservedWeights | Conserved Weights | Required. Array of finite number; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| residual | Signed difference in the direction stated above, with matching units. | Required. Finite number. |
{
"input": {
"changes": [
-2,
1
],
"conservedWeights": [
1,
2
]
},
"output": {
"residual": 0
}
} Limitations and assumptions
- Weights define the quantity supposedly conserved; zero is one algebraic check rather than proof of a valid reaction network.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use a complete dimensionally consistent reaction/transport model with verified parameters and suitable numerical methods for biological predictions.
References
Similar or alternative tools
- Stoichiometric Species Balance Gap
Return one species' predicted change from reaction extents.
- Reaction Species Count Residual
Return expected species amount after one reaction extent.