Zum Inhalt
HALOWERK

Datenvertragswerk

rational radix expansion audit

For a supplied exact signed rational and base2..16, return integer digits, shortest nonrepeating fractional prefix, minimal repeating block, reduced fraction and full finite remainder-cycle witness, then compare the entire canonical expansion claim. Terminating expansions have an empty repeat block; infinite zero or maximal-digit alternatives are not the declared canonical form. Numerator-10000..10000, denominator1..128. Missing numerator/denominator leaves the expansion unknown; missing.

POST https://datenvertrag.halowerk.com/v1/rational-radix-expansion-audit

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
numeratorSiehe SchemaJa
denominatorSiehe SchemaJa
baseintegerJa
claimedSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "numerator": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": -10000,
          "maximum": 10000
        },
        {
          "type": "null"
        }
      ]
    },
    "denominator": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1,
          "maximum": 128
        },
        {
          "type": "null"
        }
      ]
    },
    "base": {
      "type": "integer",
      "minimum": 2,
      "maximum": 16
    },
    "claimed": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "sign": {
              "enum": [
                -1,
                0,
                1
              ]
            },
            "integer_digits": {
              "type": "array",
              "maxItems": 14,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15
              },
              "minItems": 1
            },
            "nonrepeating_digits": {
              "type": "array",
              "maxItems": 128,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15
              }
            },
            "repeating_digits": {
              "type": "array",
              "maxItems": 128,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15
              }
            }
          },
          "required": [
            "sign",
            "integer_digits",
            "nonrepeating_digits",
            "repeating_digits"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "numerator",
    "denominator",
    "base",
    "claimed"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "numerator": 1,
  "denominator": 6,
  "base": 10,
  "claimed": {
    "sign": 1,
    "integer_digits": [
      0
    ],
    "nonrepeating_digits": [
      1
    ],
    "repeating_digits": [
      6
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →