# imag

imaginary part of complex numbers, polynomials, or rationals

### Syntax

y = imag(x)

### Arguments

- x
matrix of real or complex numbers (full or sparse storage), or of polynomials or rationals with real or complex coefficients.

- y
matrix of real numbers, polynomials or rationals, with same sizes than

`x`

.

### Description

`imag(x)`

is the imaginary part of
`x`

. (See `%i`

to enter complex
numbers).

### Examples

### See also

- real — real part of complex numbers, polynomials, or rationals

### History

Version | Description |

6.0 | Extension to rationals |

Report an issue | ||

<< conj | Complex numbers | imult >> |