SIS function blocks > SIS Math Blocks > Logic Solver Calculation function block > Expressions in DeltaV SIS Software > Functions in Logic Solver Expressions

TAN function

Tangent of x. TAN (x) returns the tangent of x (operand one). If x is greater than or equal to 1.49*108 or less than or equal to -1.49*108, a loss of significance in the result occurs and TAN returns an indefinite value. This calculation is performed in radians.

Syntax:

'external reference' := TAN(Real value);

Example:

VAR
   T63; T64; T17; T18; (* Temporary values *)
END_VAR;
T63 := .5;
T64 := 15.803;
T17 := TAN(T63);
T18 := TAN(T64);

The above example shows T63 set to the value of .5 and T64 set to the value of 15.803. T17 is set to the result of TAN(T63), which is 0.5463024898438 and T18 is set to the result of TAN(T64), which is 0.09532389284958.