You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Marco Cococcioni (2026). fibobinet (https://uk.mathworks.com/matlabcentral/fileexchange/154436-fibobinet), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.88 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
