Ir al contenido
GET /v1/arithmetic

Complex arithmetic

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/complexnumber-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}