Square Root

The function block has one input pin x and an output pin Y. This function takes the square root of the input. The Output Y is the Sqrt (X), where X is the input. The behavior of a negative X input is controlled by the parameter negInvalid.

Note: Negative values are treated as absolute values. Example: Square root of -9801 is given as 99, taking the absolute value of -9801 as 9801.

TailOperation: The output value is based on one of four specified property values:

 

Analog Inputs

  Range    
Input Name Low High Input Value Description
x >=- infinity <+ infinity unconnected Y= 0
      invalid output set to invalid
      x1 < 0 See negInvalid description
negInvalid 0 1
  • 0
  • 1
  • Use the square root of the absolute value.
  • If the input is negative the output is invalid.

The default value is 0.

      unconnected Y = sqrt(X), output is invalid for neg x1
      invalid Y = sqrt(X), output is invalid for neg x1

Output

Output Name Range Description
Y Any floating point value Y= Sqrt (X)