normalizedReciprocal
Compute normalized reciprocal
Description
[
returns y
,e
] = normalizedReciprocal(u
)y
and e
such that
(2.^
and e
).*y
=
1./u
0.5 < abs(
.y
)
<= 1
If
andu
= 0u
is a fixed-point or scaled-double data type, then
andy
= 1 – eps(y
)
, where w is the word length ofe
= 2^(nextpow2(w)) – w + fu
and f is the fraction length ofu
.If
andu
= 0u
is a floating-point data type, then
andy
= Inf
.t
= 1
Examples
Input Arguments
Output Arguments
Tips
The behavior of the Normalized Reciprocal HDL Optimized block is equivalent to the
normalizedReciprocal
function. When the data type of the input is fixed point with binary-point scaling, the function and block provide bit-exact results.