Golden Ratio

Computes the golden ratio.

You are now following this Submission

The golden ratio is a mathematical constant with value ( 1 + sqrt(5) ) / 2.

Cite As

Kurt von Laven (2026). Golden Ratio (https://uk.mathworks.com/matlabcentral/fileexchange/28845-golden-ratio), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Grid Sphere

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Removed parentheses from title, and added missing space.

1.7.0.0

Marked GoldenRatio.m user-executable.

1.6.0.0

Corrected copyright year; it should be 2010, not 2015.

1.5.0.0

Removed parentheses from title, and added missing space.

1.4.0.0

Updated the implementation based on another series of performance trials. Removed trailing whitespace and switched from 2 spaces after each period to 1 in the interest of readability.

1.3.0.0

Made code available as a toolbox. No changes were made to the source code itself.

1.2.0.0

Replaced tabs with spaces so that the source code displays consistently in all text editors.

1.1.0.0

Optimized the computation of the golden ratio.

1.0.0.0