split a complex rtable into rtables of the real and imaginary parts
join two real rtables of real and imaginary parts into one complex rtable
ComplexToReal( Data )
ComplexToReal( Data, containers = [ ContainerReal, ContainerImaginary ] )
RealToComplex( DataReal, DataImaginary )
RealToComplex( DataReal, DataImaginary, container = Container )
list or rtable with entries of type complexcons.
(optional) rtable of datatype float to store the real part of Data.
(optional) rtable of datatype float to store the imaginary part of Data.
list or rtable with entries of type realcons.
(optional) rtable of datatype complex to store the combined complex numbers represented by DataReal and DataImaginary.
The ComplexToReal command takes a list or rtable of complex entries, and returns rtables with the real and imaginary parts.
The RealToComplex command takes two lists/rtables of real entries, representing the real and imaginary parts, and returns an rtable with the combined complex entries.
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 of ComplexToReal or RealToComplex is an rtable of the same subtype and dimenensions as the first input rtable.
The input container Data is converted to an rtable of datatype complex, and the input containers DataReal and DataImaginary are converted to rtables of datatype float. For this reason, it is more efficient to pass containers already having the appropriate datatypes.
The ComplexToReal and RealToComplex commands are not thread safe.
As the underlying implementation of the SignalProcessing package is a module, it is also possible to use the forms SignalProcessing:-ComplexToReal and SignalProcessing:-RealToComplex to access the commands from the package. For more information, see Module Members.
Containers can be passed to store the real and imaginary parts:
Different types of rtables can be passed, provided they are compatible:
The SignalProcessing[ComplexToReal] and SignalProcessing[RealToComplex] commands were introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document
What kind of issue would you like to report? (Optional)