Square root of
This function computes the square root of a
fi object using a
a is a built-in
single data type, this syntax is equivalent to
sqrt(a) and the
fi array, specified as a scalar, vector, matrix, or
sqrt does not support complex, negative-valued, or [Slope Bias]
a = fi(pi,1,8,3)
numerictype of the output
c, specified as a
T = numerictype(1,32,30)
fimathused for calculations of intermediate quantities
fimath used for calculations of intermediate quantities,
specified as a
For syntaxes where the
numerictype object of the output is not
specified as an input to the
sqrt function, it is automatically
calculated according to the following internal rule:
For syntaxes for which you specify a
sqrt function follows the data type
propagation rules listed in the following table. In general, these rules can be summarized
as “floating-point data types are propagated.” This allows you to write code
that can be used with both fixed-point and floating-point inputs.
|Data Type of Input fi Object a||Data Type of numerictype object T||Data Type of Output c|
Data type of
Usage notes and limitations:
Complex and [Slope Bias] inputs error out.
Negative inputs yield a 0 result for generated C code.
Negative inputs error out for MATLAB® Executable (MEX) code.