Aller au contenu
GET /v1/lorentz

Lorentz factor

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/relativity-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/relativity-api/v1/lorentz" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/relativity-api/v1/lorentz", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/relativity-api/v1/lorentz");
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/relativity-api/v1/lorentz",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "beta": 0.8,
        "note": "γ = 1/√(1−β²). Moving clocks run slow (Δt = γ·Δt₀); moving lengths contract (L = L₀/γ).",
        "inputs": {
            "beta": 0.8,
            "velocity_ms": 239833966.4
        },
        "velocity_ms": 239833966.4,
        "percent_of_c": 80,
        "proper_time_s": 1,
        "dilated_time_s": 1.666666667,
        "lorentz_factor": 1.666666666667,
        "proper_length_m": 1,
        "contracted_length_m": 0.6
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:05.369Z",
        "request_id": "5c1b9385-9cfc-43dd-9a2a-f95369750444"
    },
    "status": "ok",
    "message": "Lorentz factor",
    "success": true
}