Imag Funktion

Creates a imaginary number from a real number


Description

The function \(Imag\) creates a imaginary number from a real number.

The value of the imaginary unit of a complex number is identified by a \(i \). For example \(2 + 3i \). The real number 3 is marked by the \(i \) as an imaginary part.

However, the label described above can not be used if the real values are contained in variables such as \(a + b \). In the expression \(a + bi \), \(bi \) would be interpreted as the name of a real variable. Here you can write instead:

\(a+imag(b)\)

Syntax

Imag (x)

Beispiel

a=3
Imag(a)= 3i