Square root of the entries of x using the CORDIC algorithm

版本 1.0.0 (1.9 KB) 作者: Marco Cococcioni
This is a vectorized implementation in native Matlab code of the CORDIC algorithm for the square root.
17.0 次下载
更新时间 2021/7/6

查看许可证

This function computes the square root of each entry of the real-valued vector x,
using the CORDIC algorithm. It performs a number of iterations equal to n
(at each iteration, the binary accuracy rougly increases by one).
This is a vectorized implementation, in native Matlab code,
able to compute the square roots for all the entries of the
vector x.
Differently from Matlab sqrt, it returns NaN for negative entries
instead of the positive complex square root.
Please also notice that Matlab cordicsqrt will return zeros for
negative entries of x.
Possible improvement: use bit shift operations to generate the required powers of two.

引用格式

Marco Cococcioni (2024). Square root of the entries of x using the CORDIC algorithm (https://www.mathworks.com/matlabcentral/fileexchange/95403-square-root-of-the-entries-of-x-using-the-cordic-algorithm), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
与 R2016a 及更高版本兼容
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0