Sqrt
Calculates the square root, the square root with sign, or the inverse of the square root.
|
|
|
|
|
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 |
---|---|---|---|
|
Square root of the input signal |
|
|
|
Square root of the absolute value of the input signal multiplied by the sign of the input signal |
|
|
|
The inverse of the square root of the input signal |
|
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 |
|
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 |
|
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 |
|
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
No |