You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% 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.
Cite As
David Terr (2026). cfrac.m (https://au.mathworks.com/matlabcentral/fileexchange/4974-cfrac-m), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (607 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 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. |
