Scilab-Branch-6.1-GIT

Scilab Help >> Elementary Functions > Complex numbers > imag

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

## Comments

Add a comment:Please login to comment this page.