/v1/arithmetic
Complex arithmetic
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/complexnumber-api/v1/arithmetic" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/complexnumber-api/v1/arithmetic", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/complexnumber-api/v1/arithmetic");
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/complexnumber-api/v1/arithmetic",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Complex arithmetic on z₁ = a+bi and z₂ = c+di. Result given in rectangular and polar form.",
"inputs": {
"op": "multiply",
"z1": "3 + 4i",
"z2": "1 + 2i"
},
"result": {
"real": -5,
"modulus": 11.180339887,
"imaginary": 10,
"polar_form": "11.18034 ∠ 116.565051°",
"rectangular": "-5 + 10i",
"argument_deg": 116.565051177,
"argument_rad": 2.034443936
}
},
"meta": {
"timestamp": "2026-06-04T18:38:04.315Z",
"request_id": "f35c1dd0-1a0c-4807-8303-6562da10088e"
},
"status": "ok",
"message": "Arithmetic",
"success": true
}