Dew MtxVec NET
TMtxVec.Cos Methods
Summary
Cosine.

Class
TMtxVec

Declaration
Function Cos(X: TMtxVec; XIndex: integer; Index: integer; Len: integer): TMtxVec;

Description
Calculate the cosine of X object elements [XIndex]...[XIndex+Len-1]. The results are stored in calling object elements [Index]...[Index+Len-1]. Size and Complex properties of calling object and the calling object must be set explicitly. An exception is raised if array borders are overrun.
Declaration
Function Cos: TMtxVec;

Description
Calculate the cosine of all caling object elements in-place.
 See Also 
ArcCos 
SinCos 

Example 1

var a: TVec; begin CreateIt(a); try a.SetIt(True,[1,-2,3,4]); a.Cos; // Computes complex sine finally FreeIt(a); end; end;


Declaration
Function Cos(X: TMtxVec): TMtxVec;

Description
Calculate the cosine of all X object elements and store the results in the calling object. Size and
Complex properties of calling object are adjusted automatically.
Declaration
Function Cos(Index: integer; Len: integer): TMtxVec;

Description
Calculate the cosine of calling object elements [Index]...[Index+Len-1] in-place. An exception is raised if array borders are overrun.

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