<table><tr><td style="">paolini added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12913">View Revision</a></tr></table><br /><div><div><p>I have one remark.  Since the result is different depending on how we orient the segment (say) AB we have to decide if the construction<br />
gives the point on the segment nearest to A or the one nearest to B.  The proposed solution:</p>

<p>a + (3 - sqrt(5)) * (b - a) / 2</p>

<p>gives the point nearest to A, whereas it seems to me more natural to construct the point nearest to B:</p>

<p>a + (sqrt(5) - 1) * (b - a) / 2</p>

<p>This seems to be closer to the usual definition as that portion of AB that is "mean proportional" between the whole segment and the remaining part, which I would interpret as: find C in AB such as |AB| : |AC| = |AC| : |CB| (i.e. we construct the golden section starting from A, not from B).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R331 Kig</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12913">https://phabricator.kde.org/D12913</a></div></div><br /><div><strong>To: </strong>bourquin<br /><strong>Cc: </strong>paolini, kde-edu, narvaez, apol<br /></div>