cfrac.m

Version 1.0.0.0 (607 octets) par David Terr
cfrax(x,n) returns the first n terms in the contined fraction expansion of x.
2,3K téléchargements
Mise à jour 30 juil. 2004

Aucune licence

% 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.

Citation pour cette source

David Terr (2025). cfrac.m (https://fr.mathworks.com/matlabcentral/fileexchange/4974-cfrac-m), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R12
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Calculus dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
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.