ImaginaryPart - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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

Parameters

Description

Examples

Compatibility

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

withSignalProcessing:

Example 1

AVectorrow12I,3+4I,5+6I,datatype=complex8,order=Fortran_order

A1.2.I−3.+4.I5.+6.I

(1)

PRealPartA

P1.−3.5.

(2)

QImaginaryPartA

Q−2.4.6.

(3)

Example 2

AMatrix1,2I,3+I,4,datatype=complex8

A1.+0.I2.I3.+I4.+0.I

(4)

BMatrix2,2,datatype=float8

B0.0.0.0.

(5)

CMatrix2,2,datatype=float8

C0.0.0.0.

(6)

RealPartA,container=B:

B=B

B=1.2.3.4.

(7)

ImaginaryPartA,container=C:

C=C

C=0.−1.1.0.

(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

SignalProcessing

SignalProcessing[ComplexToReal]