Real1 | → | Real1 |
Complex1 | → | Real2 |
Array1 | → | Array2 |
Symbol1 | → | Expression2 |
Expression1 | → | Expression2 |
This function takes a complex value as input and returns the real component of that complex number. If the input value is a real value, then that real value is returned unchanged.
This operation also works with vectors and matrices. The result is a vector or matrix with the same dimensions of the input value. If the input is a complex valued vector or matrix, the result is a real valued vector or matrix consisting of the real component of each input value. If the input is a real valued vector or matrix, the result is the same real vector or matrix.