roundcfrac.m

Version 1.0.0.0 (752 octets) par David Terr
Computes the "round continued fraction" of a given complex number.
2K téléchargements
Mise à jour 30 juil. 2004

Aucune licence

This function computes the "round continued fraction" of a given complex number, defined similarly to the ordinary continued fraction except one rounds the quotient at each step instead of using the floor. This allows generalization to complex numbers, whose remainders after rounding lie in the square [-1/2, 1/2) + [-1/2, 1/2) i.
Coefficients are returned as a column vector.

Citation pour cette source

David Terr (2024). roundcfrac.m (https://www.mathworks.com/matlabcentral/fileexchange/5153-roundcfrac-m), MATLAB Central File Exchange. Récupéré 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 Elementary Math 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 being the numerators and denominators of the round rational convergents of x respectively, both possibly negated.