golden section analysis

automatically detect points that divide segments in the golden ratio