Complex numbers
Calculabo has full support for complex numbers. All built-in functions, operators and storage objects that work with real numbers, are also compatible with complex numbers.
Imaginary unit
By default, the imaginary unit is available under variable , which is defined as . You can continue working with complex numbers even if you assign a different value to .
Cartesian and polar coordinates
You can extract the cartesian coordinates of any complex number using the built-in functions (or ) for the real component and (or ) for the imaginary component. For polar coordinates, you use for the absolute value and (or ) for the argument.
Example
These functions also accept matrices: in this case, all elements are transformed individually.
Example
Note that the argument of zero is indeterminate ().
Sign
The sign of a complex number is defined as the number divided by its absolute value, or if the number is zero. Use the function (or ) to get it.
Example
Like the functions above, matrices are transformed element-wise. Calculabo has no matrix sign function!