Engee documentation

Sqrt

Calculates the square root, the square root with sign, or the inverse of the square root.

Sqrt

sqrt

Signed Sqrt

signed sqrt

Reciprocal Sqrt

reciprocal sqrt

Description

Block Sqrt calculates the square root, the square root with sign, or the inverse of the square root of the input signal.

The function calculated by the block and the block icon depend on the value of the parameters Function.

Parameters value 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

Ports

Input

# IN_1 — input signal
scalar | vector | matrix

Details

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

Functions sqrt и rSqrt do not support negative numbers as input.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Complex numbers support

No

Output

# OUT_1 — output signal
scalar | vector | matrix

Details

An output signal representing the value of a square root, a square root with sign, or the inverse of a square root calculated from an input signal.

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

Data types

Float64.

Complex numbers support

No

Parameters

Main

# Function — function that the block performs
sqrt | signedSqrt | rSqrt

Details

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

Values

sqrt | signedSqrt | rSqrt

Default value

Program usage name

Operator

Tunable

No

Evaluatable

No

Additional options

C code generation: Yes