Get Imaginary Part

Description

This node displays the imaginary part of a complex number.

 

Input

The node has the following input:

  • Complex Number: Any node that outputs a complex number.

Content

The node displays the imaginary part of the complex number provided in the input.

Output

  • Scalar: It outputs the imaginary part of a complex number

Example 

In the example below, the overlap between a gaussain function and a superpositioned state of a harmonic oscillator is calculated. The Overlap node displays a complex number whose imaginary part is displayed in the Get Imaginary Part node.