Hurwitz Approximation Calculator

Finite Hurwitz-quality witness search among denominator1…Q, earliest denominator ties; report actual absolute error and strict1/(sqrt5 q²) bound independently for selected observed witness. Does not certify representedinputirrationality or theorem infinitely many rational approximants; bounded float observations only.

Description

Hurwitz-quality rational approximation can be examined for a finite observed real number and denominator budget.

Hurwitz-quality rational approximation can be examined for a finite observed real number and denominator budget.1

This tool finds the closest supplied-budget witness and compares its error with a strict bound without certifying irrationality or infinitely many approximants.

When to use Hurwitz Approximation Calculator

This tool finds the closest supplied-budget witness and compares its error with a strict bound without certifying irrationality or infinitely many approximants.

How to use Hurwitz Approximation Calculator and how it works

  1. Prepare finite real, maximum denominator, using the input definitions and matching units below.
  2. Enter the required fields and run Hurwitz Approximation Calculator.
  3. Read result.numerator, result.denominator, result.absoluteError, result.hurwitzStrictErrorBound, result.observedWitnessWithinStrictBound using the units, signs and ordering explained below.
  4. Correct any rejected inputs and rerun; interpret the result within the stated model and its assumptions.
Input fieldMeaningValue typeRequirement
actualFiniteRealFinite observed x with absolute value no greater than 100000000.numberRequired; finite; other constraints below
actualMaximumDenominatorPositive integer denominator-search budget, at most 10000.numberRequired; finite; other constraints below

Require finite real x with absolute value<=1e8 and maximum denominator integer 1–10000. For each q from one through budget, choose p=round(x*q), calculate absolute error and keep a witness only when its error is strictly smaller, so earliest denominator wins equal-error ties. Return numerator, denominator, error, 1/(sqrt(5)*q^2) and the strict comparison flag. Ratios are not explicitly reduced and no irrationality or infinite witness theorem is certified.

witness=argmin_over_q<=Q(abs(x-round(x*q)/q)); bound=1/(sqrt(5)*q^2); within=(error<bound)

Apply the input ordering, units and branch conditions stated above.

Output fieldMeaningValue type
resultObject containing the calculated or selected fields below.object
result.numeratorInteger numerator chosen by the bounded rational-witness search.number
result.denominatorPositive selected denominator; equal-error ties retain the earliest denominator.number
result.absoluteErrorAbsolute observed floating-point difference between input and selected rational witness.number
result.hurwitzStrictErrorBoundThe value 1/(sqrt(5)*denominator squared) for the selected witness.number
result.observedWitnessWithinStrictBoundTrue when observed absolute error is strictly smaller than the bound.boolean
json
{
  "input": {
    "actualFiniteReal": 0.3,
    "actualMaximumDenominator": 10
  },
  "output": {
    "result": {
      "numerator": 3,
      "denominator": 10,
      "absoluteError": 0,
      "hurwitzStrictErrorBound": 0.00447213595499958,
      "observedWitnessWithinStrictBound": true
    }
  }
}

Limitations and assumptions

The calculation uses the supplied observations and model inputs. It does not collect measurements, select a reference population or coefficient, or establish that the model applies to the actual case. The stated branch conditions and output units remain part of the result.

All fields require explicit values. Unexpected fields, wrong types, nonfinite numbers and sparse arrays are rejected. Alignment, bounds and supported-token rules are explained above; extremely large inputs or nonfinite results can also fail. Input errors differ from successful false comparisons, unavailable-domain flags and empty match lists.

Alternative or Complementary methods

Use Khinchin Approximation Calculator for a complementary operation: A Khinchin approximation statement needs its specific definition and measure-theoretic assumptions.

Use Khinchin Constant Approximation for a complementary operation: Khinchin's geometric continued-fraction constant concerns a measure-theoretic limiting behavior.

References

  1. Hurwitz Approximation Calculator — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies