Real1 | → | 0 |
Complex1 | → | Real2 |
Array1 | → | Array2 |
Symbol1 | → | Expression2 |
Expression1 | → | Expression2 |
This function takes a complex value as input and returns the imaginary component of that complex number. If the input value is a real value, then 0 is returned since the imaginary component of a real value is 0.
This operation also works with vectors and matrices. The result is a vector or matrix with the same dimensions as the input. The result is always a real valued vector or matrix consisting of the imaginary components of the corresponding values from the input array. If the input array is real valued, then all values in the resulting array are zero.