QCF.m

QCF(d,u,v,quiet) returns the continued fraction expansion of (u+sqrt(d))/v.
1.8K Downloads
Updated 30 Jul 2004

No License

QCF returns the quadratic continued fraction expansion of (u+sqrt(d))/v. The result is returned as a two-cell expression, with the preperiod in the first cell and the period in the second cell.

Cite As

David Terr (2026). QCF.m (https://se.mathworks.com/matlabcentral/fileexchange/5523-qcf-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Quadratic Programming and Cone Programming in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0

I changed the name from QuadraticContinuedFraction.m to QCF.m and fixed a few minor bugs.