/v1/roots
Find all roots
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/polynomial-api/v1/roots" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/polynomial-api/v1/roots", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/polynomial-api/v1/roots");
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/roots",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"roots": [
{
"im": 0,
"re": 1,
"is_real": true
},
{
"im": 0,
"re": 2,
"is_real": true
},
{
"im": 0,
"re": 3,
"is_real": true
}
],
"degree": 3,
"real_roots": [
1,
2,
3
]
},
"meta": {
"timestamp": "2026-06-03T17:42:15.273Z",
"request_id": "26c7e332-6d5b-478f-b8d9-265037bdf5e5"
},
"status": "ok",
"message": "Roots",
"success": true
}