Dew MtxVec NET
TMtxVec.ImagPart Methods
Summary
Gets the imaginary part of a complex object.

Class
TMtxVec

Declaration
Function ImagPart(Vec: TMtxVec): TMtxVec;

Description
Gets the imaginary part of a complex object Vec and stores the real results in the calling object. Size and Complex properties of the calling object are set implicitly to match Vec object. Vec Complex must be true otherwise the exception will be raised.
 See Also 
RePart 
RealToCplx 

Example 1

var a,b: TVec; begin CreateIt(a,b); try a.SetIt(True,[1,2,3,4]); // a= [1+2i, 3+4i] b.ImagPart(a); // b = [2, 4] finally FreeIt(a,b); end; end;


Declaration
Function ImagPart(Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec;

Description
Gets the imaginary part of complex object Vec elements [VecIndex]..[VecIndex+Len-1] and stores the result in calling object. An exception is raised if the calling object is complex, if Vec is not complex or if array borders are overrun/underrun.

Copyright 2008 Dew Research
http://www.dewresearch.com