Dew MtxVec NET
TMtxVec.Sec Methods
Summary
Secant.

Class
TMtxVec

Declaration
Function Sec(X: TMtxVec): TMtxVec;

Description
Calculate the secant 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 Sec(X: TMtxVec; XIndex, Index, Len: integer): TMtxVec;

Description
Calculate the secant 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 the calling object must be set explicitly. An exception is raised if array borders are overrun.
Declaration
Function Sec: TMtxVec;

Description
Calculate the secant of all caling object elements in-place.
 See Also 
ArcSec 
Csc 

Example 1

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


Declaration
Function Sec(Index, Len: integer): TMtxVec;

Description
Calculate the secant 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