Engee 文档

Sqrt

计算平方根、有符号平方根或平方根的倒数。

类型: Sqrt

Reciprocal Square Root

图书馆中的路径:

/Basic/Math Operations/Reciprocal Square Root

SignedSqrt

图书馆中的路径:

/Basic/Math Operations/SignedSqrt

Sqrt

图书馆中的路径:

/Basic/Math Operations/Sqrt

资料描述

Sqrt 计算输入信号的平方根、有符号平方根或平方根的倒数。

块和块图标计算的函数取决于参数值。 Function .

参数值 Function 资料描述 数学表达式 块图标

sqrt

输入信号的平方根

sqrt

signedSqrt

输入信号的绝对值乘以输入信号的符号的平方根

signed sqrt

rSqrt

输入信号的平方根的倒数

reciprocal square root

港口

输入

# IN_1 — 输入信号
标量 | 向量 | 矩阵

Details

用于计算平方根、带符号平方根或平方根逆的输入信号。

数据类型

Float16`、Float32`、Float64`、Int8`、Int16`、Int32`、Int64`、Int128`、UInt8`、UInt16`、UInt32`、UInt64`、UInt128`。

复数支持

输出

# OUT_1 — 输出信号
标量 | 向量 | 矩阵

Details

输出信号,表示平方根的值、带符号的平方根或根据输入信号计算出的平方根的倒数。

如果输入信号是整数数据类型,输出信号必须是浮点数据类型。

数据类型

浮点 64

复数支持

参数

参数

# Function — 块执行的功能
sqrt | signedSqrt | rSqrt

Details

块计算的数学函数。 块图标根据所选功能而改变。

sqrt | signedSqrt | rSqrt

默认值

程序使用名称

Operator

可调谐

可计算

# Output signal type — 输出信号类型
auto | real | complex

Details

在*Math功能块中指定输出信号的类型。*如何 汽车, 真实的综合体.

功能

输入信号类型

输出信号类型

auto

real

complex

sqrt

真实的

真实的 对于非负输入

对于负输入

真实的 对于非负输入

对于负输入

综合体

综合体

综合体

错误

综合体

signedSqrt

真实的

真实的

真实的

综合体

综合体

错误

错误

错误

rSqrt

真实的

真实的

真实的

错误

综合体

错误

错误

错误

auto | real | complex

默认值

auto

程序使用名称

OutputSignalType

可调谐

可计算

Main

# Intermediate results缺少描述
Inherit: auto | Inherit from input | Inherit from output | Float64 | Float32 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Fixed-point

Details

缺少描述。

Inherit: auto | Inherit from input | Inherit from output | Float64 | Float32 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Fixed-point

默认值

Inherit: auto

程序使用名称

IntermediateResultsDataTypeStr

可调谐

可计算

# Intermediate results fixed-point type缺少描述
Data type

Details

缺少描述。

默认值

fixdt(1, 16, 0)

程序使用名称

IntermediateResultsDataTypeStrFixed

可调谐

可计算

# Output缺少描述
Inherit: auto | Same as first input | Float64 | Float32 | Float16 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Fixed-point

Details

缺少描述。

Inherit: auto | Same as first input | Float64 | Float32 | Float16 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Fixed-point

默认值

Same as first input

程序使用名称

OutDataTypeStr

可调谐

可计算

# Output fixed-point type缺少描述
Data type

Details

缺少描述。

默认值

fixdt(1, 16, 0)

程序使用名称

OutDataTypeStrFixed

可调谐

可计算

# Integer rounding mode缺少描述
Ceiling | Convergent | Floor | Nearest | Round | Zero

Details

缺少描述。

Ceiling | Convergent | Floor | Nearest | Round | Zero

默认值

Floor

程序使用名称

RndMeth

可调谐

可计算

# Saturate on integer overflow缺少描述
Logical

Details

缺少描述。

默认值

true (已开启)

程序使用名称

SaturateOnIntegerOverflow

可调谐

可计算

附加选项

C 代码生成: 是