ImaginaryPart - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

SignalProcessing

 ImaginaryPart
 extract the imaginary part of a complex rtable
 RealPart
 extract the real part of a complex rtable

 Calling Sequence ImaginaryPart( Data, container = Container ) RealPart( Data, container = Container )

Parameters

 Data - rtable or list with entries of type complexcons Container - (optional) rtable of datatype float[8] to store the real or imaginary part

Description

 • The RealPart and ImaginaryPart commands take an rtable or list of complex entries, and returns an rtable with, respectively, the real and imaginary part.
 • Any passed rtables must have the same order (C_order or Fortran_order), have no indexing function, and use rectangular storage.
 • Any passed rtables must have the same number of elements, but need not have the same dimensions. Internally, one-dimensional aliases of the rtables are used.
 • When no container is passed for storage, the output will be an rtable of the same subtype and dimensions as the input rtable.
 • The input container Data is converted to an rtable of datatype complex[8]. For this reason, it is more efficient for Data to be an rtable with datatype complex[8].
 • The RealPart and ImaginaryPart commands are not thread safe.

Examples

 > $\mathrm{with}\left(\mathrm{SignalProcessing}\right):$

Example 1

 > $A≔{\mathrm{Vector}}_{'\mathrm{row}'}\left(\left[1-2I,-3+4I,5+6I\right],'\mathrm{datatype}'='{\mathrm{complex}}_{8}','\mathrm{order}'='\mathrm{Fortran_order}'\right)$
 ${A}{≔}\left[\begin{array}{ccc}{1.}{-}{2.}{}{I}& {-3.}{+}{4.}{}{I}& {5.}{+}{6.}{}{I}\end{array}\right]$ (1)
 > $P≔\mathrm{RealPart}\left(A\right)$
 ${P}{≔}\left[\begin{array}{ccc}{1.}& {-3.}& {5.}\end{array}\right]$ (2)
 > $Q≔\mathrm{ImaginaryPart}\left(A\right)$
 ${Q}{≔}\left[\begin{array}{ccc}{-2.}& {4.}& {6.}\end{array}\right]$ (3)

Example 2

 > $A≔\mathrm{Matrix}\left(\left[\left[1,2-I\right],\left[3+I,4\right]\right],'\mathrm{datatype}'='{\mathrm{complex}}_{8}'\right)$
 ${A}{≔}\left[\begin{array}{cc}{1.}{+}{0.}{}{I}& {2.}{-}{I}\\ {3.}{+}{I}& {4.}{+}{0.}{}{I}\end{array}\right]$ (4)
 > $B≔\mathrm{Matrix}\left(2,2,'\mathrm{datatype}'='{\mathrm{float}}_{8}'\right)$
 ${B}{≔}\left[\begin{array}{cc}{0.}& {0.}\\ {0.}& {0.}\end{array}\right]$ (5)
 > $C≔\mathrm{Matrix}\left(2,2,'\mathrm{datatype}'='{\mathrm{float}}_{8}'\right)$
 ${C}{≔}\left[\begin{array}{cc}{0.}& {0.}\\ {0.}& {0.}\end{array}\right]$ (6)
 > $\mathrm{RealPart}\left(A,'\mathrm{container}'=B\right):$
 > $'B'=B$
 ${B}{=}\left[\begin{array}{cc}{1.}& {2.}\\ {3.}& {4.}\end{array}\right]$ (7)
 > $\mathrm{ImaginaryPart}\left(A,'\mathrm{container}'=C\right):$
 > $'C'=C$
 ${C}{=}\left[\begin{array}{cc}{0.}& {-1.}\\ {1.}& {0.}\end{array}\right]$ (8)

Compatibility

 • The SignalProcessing[ImaginaryPart] and SignalProcessing[RealPart] commands were introduced in Maple 2022.
 • For more information on Maple 2022 changes, see Updates in Maple 2022.

 See Also