SignalProcessing
ImaginaryPart
extract the imaginary part of a complex rtable
RealPart
extract the real part of a complex rtable
Calling Sequence
Parameters
Description
Examples
Compatibility
ImaginaryPart( Data, container = Container )
RealPart( Data, container = Container )
Data
-
rtable or list with entries of type complexcons
Container
(optional) rtable of datatype float[8] to store the real or imaginary part
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.
with⁡SignalProcessing:
Example 1
A≔Vectorrow⁡1−2⁢I,−3+4⁢I,5+6⁢I,datatype=complex8,order=Fortran_order
A≔1.−2.⁢I−3.+4.⁢I5.+6.⁢I
P≔RealPart⁡A
P≔1.−3.5.
Q≔ImaginaryPart⁡A
Q≔−2.4.6.
Example 2
A≔Matrix⁡1,2−I,3+I,4,datatype=complex8
A≔1.+0.⁢I2.−I3.+I4.+0.⁢I
B≔Matrix⁡2,2,datatype=float8
B≔0.0.0.0.
C≔Matrix⁡2,2,datatype=float8
C≔0.0.0.0.
RealPart⁡A,container=B:
B=B
B=1.2.3.4.
ImaginaryPart⁡A,container=C:
C=C
C=0.−1.1.0.
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
SignalProcessing[ComplexToReal]
Download Help Document