ToolAssay

Least-squares line or polynomial fit (degree 1 to 6, up to 100 points) with coef

Least-squares line or polynomial fit (degree 1 to 6, up to 100 points) with coefficients, R-squared and residuals.

Answeringour last check, 2026-10-21
1 of 1checks answered this week
1042 msmedian answer time
$0.02listed price per call
$0.02price 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

GET https://linear-algebra.x402tookit.com/least-squares

CategoryEverything else
Provider hostlinear-algebra.x402tookit.com
Networkseip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-10-21 valid payment request 402$0.02 1042 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "degree": 1,
    "x": "[1,2,3,4]",
    "y": "[6,5,7,10]"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "at": {
              "description": "Optional x at which to evaluate the fitted curve",
              "type": "number"
            },
            "degree": {
              "description": "Polynomial degree 1 to 6 (default 1 = straight line); needs at least degree+1 points",
              "type": "integer"
            },
            "x": {
              "description": "x values, JSON like [1,2,3,4] or 1,2,3,4 (up to 100)",
              "type": "string"
            },
            "y": {
              "description": "y values, same count as x",
              "type": "string"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "asOf": {
              "type": [
                "null",
                "string"
              ]
            },
            "coefficientOrder": {
              "type": [
                "null",
                "string"
              ]
            },
            "coefficients": {
              "items": {
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "conditioning": {
              "properties": {
                "centre": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "halfRange": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "note": {
                  "type": [
                    "null",
                    "string"
                  ]
                }
              },
              "type": [
                "null",
                "object"
              ]
            },
            "degraded": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "degree": {
              "type": [
                "null",
                "number"
              ]
            },
            "disclaimer": {
              "type": [
                "null",
                "string"
              ]
            },
            "fitted": {
              "items": {
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "intercept": {
              "type": [
                "null",
                "number"
              ]
            },
            "notChecked": {
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "points": {
              "type": [
                "null",
                "number"
              ]
            },
            "rSquared": {
              "type": [
                "null",
                "number"
              ]
            },
            "reasons": {
              "items": {
                "type": "string"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "residualStandardError": {
              "type": [
                "null",
                "number"
              ]
            },
            "residuals": {
              "items": {
                "type": "number"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "rmse": {
              "type": [
                "null",
                "number"
              ]
            },
            "slope": {
              "type": [
                "null",
                "number"
              ]
            },
            "source": {
              "type": [
                "null",
                "string"
              ]
            },
            "sumSquaredResiduals": {
              "type": [
                "null",
                "number"
              ]
            },
            "summary": {
              "type": [
                "null",
                "string"
              ]
            },
            "verdict": {
              "type": [
                "null",
                "string"
              ]
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON