Engee documentation

Reciprocal Square Root

Calculating the square root, the square root with a sign, or the inverse of the square root.

Sqrt.

sqrt

Signed Sqrt

signed sqrt

Reciprocal Sqrt

reciprocal sqrt

Description

The Sqrt block calculates the square root, the square root with sign, or the inverse of the square root of the input signal. One of the following functions can be selected (see parameter Function).

Function Description Mathematical expression Block icon

sqrt

Square root of the input signal

sqrt

signedSqrt

Square root of the absolute value of the input signal multiplied by the sign of the input signal

signed sqrt

rSqrt

The inverse of the square root of the input signal

reciprocal sqrt

The block icon and parameter set changes according to the function.

Ports

Input

Port_1 - input signal
scalar | vector | matrix

Input signal for calculating square root, square root with sign or inverse of square root.

The Sqrt and rSqrt functions do not support negative numbers as input.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Support for complex numbers: none

Output

Port_1 - output signal
scalar | vector | matrix

Output signal representing the value of square root, square root with sign or inverse of square root calculated from the input signal.

If the input signal is of integer type, the output signal must be of floating point type.

Data types: Float64.

Parameters

Function - the function that the block executes
sqrt (by default) | signedSqrt | rSqrt

The mathematical function that the block calculates. The block icon changes according to the function selected.

Function Block icon

sqrt

sqrt

rSqrt

signed sqrt

signedSqrt

reciprocal sqrt

Usage in program code

Block parameter

Operator

Values

sqrt | signedSqrt | rSqrt

By default

`sqrt `

Additional options

C code generation: Yes