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.
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. |