roundcfrac.m

版本 1.0.0.0 (752 字节) 作者: David Terr
Computes the "round continued fraction" of a given complex number.
2.0K 次下载
更新时间 2004/7/30

无许可证

This function computes the "round continued fraction" of a given complex number, defined similarly to the ordinary continued fraction except one rounds the quotient at each step instead of using the floor. This allows generalization to complex numbers, whose remainders after rounding lie in the square [-1/2, 1/2) + [-1/2, 1/2) i.
Coefficients are returned as a column vector.

引用格式

David Terr (2024). roundcfrac.m (https://www.mathworks.com/matlabcentral/fileexchange/5153-roundcfrac-m), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R12
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Elementary Math 的更多信息

Community Treasure Hunt

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

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

I added two columns to the result, the second and third being the numerators and denominators of the round rational convergents of x respectively, both possibly negated.