/v1/shape
Moment of inertia of a shape
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/momentofinertia-api/v1/shape" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/momentofinertia-api/v1/shape", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/momentofinertia-api/v1/shape");
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/momentofinertia-api/v1/shape",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Moment of inertia in kg·m². Radius of gyration k = √(I/m). Use /v1/parallel-axis to shift to a parallel axis.",
"inputs": {
"r": 0.5,
"mass": 2,
"shape": "solid_sphere"
},
"formula": "I = 2/5·m·r²",
"moment_of_inertia": 0.2,
"radius_of_gyration": 0.316227766
},
"meta": {
"timestamp": "2026-06-05T19:50:31.470Z",
"request_id": "3a9e243d-8d2e-4064-8716-34a45c5bf11b"
},
"status": "ok",
"message": "Moment of inertia of a shape",
"success": true
}