QCF.m

QCF(d,u,v,quiet) returns the continued fraction expansion of (u+sqrt(d))/v.

You are now following this Submission

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://au.mathworks.com/matlabcentral/fileexchange/5523-qcf-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

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