Dew MtxVec NET
TMtxVec.Tan Methods
Summary
Tangens.

Class
TMtxVec

Declaration
Function Tan(X: TMtxVec): TMtxVec;

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

Description
Calculate the tangens 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 Tan(Index: integer; Len: integer): TMtxVec;

Description
Calculate the tangens of calling object elements [Index]...[Index+Len-1] in-place. An exception is raised if array borders are overrun.
Declaration
Function Tan: TMtxVec;

Description
Calculate the tangens of all caling object elements in-place.
 See Also 
ArcTan 
ArcTan2 

Example 1

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

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