HyperMath

Imag

Imag

Previous topic Next topic No expanding text in this topic  

Imag

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

Extracts the imaginary part of a complex number.

Syntax

i = Imag(m)

Argument

Name

Description

 

m

A scalar, vector, or a matrix.

Output

Name

Description

 

i

A scalar, vector, or a matrix of the imaginary part of each entry.

Example

Extract the imaginary part of each element in a vector:

 

Syntax

 

M = Imag([1,2+3i])

 

Result

 

M = [Matrix] (1 x 2)

   0 3

See Also:

Comp

Conj

Real