fibobinet

Vectorized function for obtaining the terms of the Fibonacci sequence using (an approximated version) of Binet's formula
3 download
Aggiornato 1 nov 2023

Visualizza la licenza

This is a vectorized implementation of the Binet's formula,
where one of the terms has been discarder (the one related
to the negative power of the golden ratio).
Being the formula vectorized, it is much faster than Matlab
builtin fibonacci function. Remember, however, that it
is not 100% accurate when n gets larger.
Indeed, the double precision computations introduces errors (in particular,
the Matlab power function).
This version is more than 500x faster than Matlab builtin function 'fibonacci',
on my machine, using Matlab R2023a for Windows.

Cita come

Marco Cococcioni (2024). fibobinet (https://www.mathworks.com/matlabcentral/fileexchange/154436-fibobinet), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2023b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0