Skip to content

Main content

Ratio Inversion Interval Endpoints

Invert an explicit closed ratio interval that excludes zero, reversing its ordered endpoints.

Loading tool…

Description

Invert an ordered ratio interval that excludes zero.

Proportions depend on the order of a ratio, its denominator and whether an input is a decimal fraction or a percentage number. Inverting a zero-crossing interval is undefined, and rounding an ideal share to a quantum can exceed a total. Supplied conservation, tax or mixing assumptions need explicit units and boundaries before interpretation.

Invert an ordered ratio interval that excludes zero.

When to use this tool

Use Ratio Inversion Interval Endpoints when you already have lowerRatio, upperRatio and need to invert an ordered ratio interval that excludes zero.

How to use the tool and how it works

  1. Enter lowerRatio, upperRatio. 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 inverseLower, inverseUpper. Use the output convention below.

Require lower<=upper and either lower>0 or upper<0; return 1/upper as inverseLower and 1/lower as inverseUpper.1

Input fieldMeaning and unitsAccepted input
lowerRatioLower RatioRequired. Finite number.
upperRatioUpper RatioRequired. Finite number.
Output fieldInterpretationReturned shape
inverseLower1/upperRatio; interval inversion reverses endpoint order.Required. Finite number.
inverseUpperInverse UpperRequired. Finite number.
json
{
  "input": {
    "lowerRatio": 2,
    "upperRatio": 4
  },
  "output": {
    "inverseLower": 0.25,
    "inverseUpper": 0.5
  }
}

Limitations and assumptions

  • Both positive and wholly negative intervals are accepted; crossing or touching zero is rejected and no uncertainty model is inferred.
  • 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

Write the numerator, denominator and ratio direction explicitly before rebasing or inverting a quantity. Use a full allocation or mass balance for multiple components, and account for quantum remainders jointly when rounded shares must add to a fixed total.

References

  1. Calculation and input contract: proportions/ratio-inversion-interval-endpoints — tool.io

Similar or alternative tools