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

SQRT function

Square root of x. SQRT (x) returns the square-root of x. If x is negative, SQRT (x) returns a value of x.

Syntax:

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

Example:

VAR
   T63; T64; T17; T18; (* Temporary values *)
END_VAR;
T63 := .7;
T64 := 15.403;
T17 := SQRT(T63);
T18 := SQRT(T64);

The above example shows T63 set to the value of .7 and T64 set to the value of 15.403. T17 is set to the result of SQRT(T63), which is 0.83666002653 and T18 is set to the result of SQRT(T64), which is 3.92466559085.