Skip to content

Main content

Ratio Tolerance Cross Product Margin Tool

Calculate ratio tolerance cross product margin from explicit caller-supplied inputs.

Loading tool…

Description

Calculate residual=firstNumerator*secondDenominator-secondNumerator*firstDenominator and withinTolerance for its inclusive absolute bound.

A ratio compares quantities under a stated numerator and denominator. Fractions, percentage numerals, and percentage-point changes use different conventions, and changing a part can also change its whole. Unit consistency, zero denominators, rounding, and the order of adjustments determine the result.

Calculate residual=firstNumerator*secondDenominator-secondNumerator*firstDenominator and withinTolerance for its inclusive absolute bound.

When to use this tool

Use Ratio Tolerance Cross Product Margin when you need this specific ratio, allocation, transformation, interval, or adjustment-order calculation with an explicit base.

How to use the tool and how it works

  1. Enter firstNumerator, firstDenominator, secondNumerator, secondDenominator, tolerance. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read residual, withinTolerance. Inspect withinTolerance before interpreting the associated values.

Calculate residual=firstNumerator*secondDenominator-secondNumerator*firstDenominator and withinTolerance for its inclusive absolute bound. Require nonzero denominators and nonnegative tolerance.1

Input fieldMeaning and unitsAccepted input
firstNumeratorFirst NumeratorRequired. Finite number.
firstDenominatorFirst DenominatorRequired. Finite number.
secondNumeratorSecond NumeratorRequired. Finite number.
secondDenominatorSecond DenominatorRequired. Finite number.
toleranceNonnegative absolute tolerance in the tested quantity, unless a different convention is stated.Required. Finite number; minimum 0.
Output fieldInterpretationReturned shape
residualSigned discrepancy under the formula stated above.Required. Finite number.
withinToleranceWithin ToleranceRequired. Boolean.
json
{
  "input": {
    "firstNumerator": 2,
    "firstDenominator": 3,
    "secondNumerator": 4,
    "secondDenominator": 6,
    "tolerance": 0
  },
  "output": {
    "residual": 0,
    "withinTolerance": true
  }
}

Limitations and assumptions

  • Tolerance has cross-product units, not direct ratio-difference units, and changes under scaling of the representations. No rounding, uncertainty estimate, or actual proportion fitting is performed.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
  • 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. Signed zero is exported as zero.

Alternative or Complementary methods

Check numerator, denominator, units, and adjustment order before comparing results. Use a complete allocation or physical mixture model when a single arithmetic term leaves relevant constraints unspecified.

References

  1. Calculation and input contract: proportions/ratio-tolerance-cross-product-margin — tool.io

Similar or alternative tools