cfrac.m

版本 1.0.0.0 (607 字节) 作者: David Terr
cfrax(x,n) returns the first n terms in the contined fraction expansion of x.
2.3K 次下载
更新时间 2004/7/30

无许可证

% cfrac(x,n) returns the first n continued fraction coefficients of a given nonnegative real number x.

Warning: If n is set too large, fewer coefficients may be returned and the last coefficient may be incorrect, due to rounding errors.

引用格式

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

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

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 columns consist of the numerators and denominators of the rational convergents respectively.