complex_calc
Performs complex number arithmetic—add, subtract, multiply, divide, magnitude, conjugate, and polar conversion—for calculations requiring real and imaginary parts.
Instructions
Complex number arithmetic: add, subtract, multiply, divide, magnitude, conjugate, or polar conversion.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"operation": "<operation>",
"real1": "<real1>",
"imag1": "<imag1>"
},
"name": "complex_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imag1 | Yes | Imaginary part of first complex number. | |
| imag2 | No | Imaginary part of second complex number (for binary ops). | |
| real1 | Yes | Real part of first complex number. | |
| real2 | No | Real part of second complex number (for binary ops). | |
| operation | Yes | Operation: add, subtract, multiply, divide, magnitude, conjugate, or polar. |