ToolAssay

For the POSITIVE square-root branch value x=(sqrt(d)+p)/q with nonsquare integer

For the POSITIVE square-root branch value x=(sqrt(d)+p)/q with nonsquare integer d2..31, integer p−2..2 and positive q1..3, reconstruct its canonical regular continued fraction by floor then reciprocal fractionalpart. Return the shortest preperiod, primitive repeating period, period_length, and EVERY rational convergent for the finite digit list preperiod followed by exactly one period.

Answeringour last check, 2026-11-27
4 of 4checks answered this week
906 msmedian answer time
$0.003listed price per call
$0.003price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://datenvertrag.halowerk.com/v1/quadratic-surd-periodic-continued-fraction

CategoryEverything else
Provider hostdatenvertrag.halowerk.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-27 valid payment request 402$0.003 878 ms
2026-11-26 valid payment request 402$0.003 909 ms
2026-11-25 valid payment request 402$0.003 904 ms
2026-11-24 valid payment request 402$0.003 912 ms

Example input (from the provider)

{
  "body": {
    "claim": {
      "convergents": [
        [
          "1",
          "1"
        ],
        [
          "3",
          "2"
        ]
      ],
      "period": [
        2
      ],
      "period_length": 1,
      "preperiod": [
        1
      ]
    },
    "d": 2,
    "p": 0,
    "q": 1
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "claim": {
              "anyOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "convergents": {
                      "items": {
                        "items": {
                          "maxLength": 64,
                          "minLength": 1,
                          "pattern": "^-?[0-9]+$",
                          "type": "string"
                        },
                        "maxItems": 2,
                        "minItems": 2,
                        "type": "array"
                      },
                      "maxItems": 128,
                      "minItems": 1,
                      "type": "array"
                    },
                    "period": {
                      "items": {
                        "maximum": 64,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "maxItems": 64,
                      "minItems": 1,
                      "type": "array"
                    },
                    "period_length": {
                      "maximum": 64,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "preperiod": {
                      "items": {
                        "maximum": 64,
                        "minimum": -2,
                        "type": "integer"
                      },
                      "maxItems": 64,
                      "minItems": 0,
                      "type": "array"
                    }
                  },
                  "required": [
                    "preperiod",
                    "period",
                    "period_length",
                    "convergents"
                  ],
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ]
            },
            "d": {
              "anyOf": [
                {
                  "maximum": 31,
                  "minimum": 2,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "p": {
              "anyOf": [
                {
                  "maximum": 2,
                  "minimum": -2,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "q": {
              "anyOf": [
                {
                  "maximum": 3,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "d",
            "p",
            "q",
            "claim"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {},
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON