/v1/continued-fraction
Continued fraction
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/numrep-api/v1/continued-fraction" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/numrep-api/v1/continued-fraction", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/numrep-api/v1/continued-fraction");
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/numrep-api/v1/continued-fraction",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"input": {
"numerator": "415",
"denominator": "93"
},
"terms": [
4,
2,
6,
7
],
"reduced": "415/93",
"convergents": [
{
"den": "1",
"num": "4",
"value": 4
},
{
"den": "2",
"num": "9",
"value": 4.5
},
{
"den": "13",
"num": "58",
"value": 4.461538461538462
},
{
"den": "93",
"num": "415",
"value": 4.462365591397849
}
]
},
"meta": {
"timestamp": "2026-06-03T17:42:13.839Z",
"request_id": "1dee780e-b335-40e9-8260-8612b99c8ba3"
},
"status": "ok",
"message": "Continued fraction",
"success": true
}