/v1/meta
Spec
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/polynomial-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/polynomial-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/polynomial-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/polynomial-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"name": "Polynomial API",
"notes": "Degree up to 100. Complex roots are found numerically (Durand-Kerner) and converge to ~1e-14. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/roots",
"params": {
"coefficients": "e.g. [1,-3,2]"
},
"returns": "all roots (real and complex) and a real-only list"
},
{
"path": "/v1/evaluate",
"params": {
"x": "the point",
"coefficients": "e.g. [1,-3,2]"
},
"returns": "p(x) and p'(x)"
},
{
"path": "/v1/derivative",
"params": {
"constant": "integration constant (optional)",
"coefficients": "e.g. [1,-3,2]"
},
"returns": "derivative and integral coefficients"
},
{
"path": "/v1/operate",
"params": {
"a": "first polynomial",
"b": "second polynomial",
"op": "add|subtract|multiply|divide"
},
"returns": "the resulting polynomial (quotient+remainder for divide)"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"conventions": {
"coefficients": "highest degree first, e.g. [1,-3,2] = x^2 - 3x + 2",
"complex_roots": "returned as {re, im}"
},
"description": "Work with polynomials: find their roots, evaluate them, differentiate and integrate, and add, subtract, multiply or divide them. The roots endpoint returns every root — real and complex — using the exact quadratic formula for degree 2 and the Durand-Kerner method for higher degrees, with a clean list of just the real roots too. The evaluate endpoint computes p(x) and p'(x) at a point by Horner's method. The derivative endpoint returns the coefficients of the derivative and the indefinite integral. The operate endpoint does polynomial arithmetic — addition, subtraction, multiplication, and long division giving a quotient and remainder. Coefficients are given highest-degree first, so [1,-3,2] means x² − 3x + 2. Everything is computed locally and deterministically, so it is instant and private. Ideal for engineering and control systems, signal processing and filter design, computer graphics and curve fitting, scientific computing, and teaching algebra and calculus. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 5 endpoints. This is polynomial maths; for matrices use a matrix API, for vectors a vector API, and for general arithmetic a math API."
},
"meta": {
"timestamp": "2026-06-03T17:42:15.327Z",
"r
…