|
![](/i/fill.gif) |
Glen Berry wrote:
> Yeah, but Benge had declared the following, and I quote:
>
> "#declare phi = (sqrt(5)-1)/2; // The golden ratio "
>
> This doesn't give Phi, but it's reciprocal, just as you have said
> yourself. All the definitions of Phi that I have seen, declare it to
> be equal to about 1.618033989... You get that with this formula:
>
> (1+sqrt(5))/2
>
> The formula (1-sqrt(5))/2 doesn't give the value of Phi. My point was
> valid, in that there is a typo here.
I didn't say it was the golden number, but the golden ratio - and the
ratio stays the same if you use '(1+sqrt(5))/2' or '(1-sqrt(5))/2'
That I merely named the variable phi was out of convenience than
anything else.
That said, it really makes a difference of the result if you use
'(1+sqrt(5))/2' rather than '(1+sqrt(5))/2', which may explain why I got
the funny results when trying to use the macro for I really wanted to
use it for. :-)
--
------------------------------------------------------------------------
+47 90 62 71 78 DoD#2101, DoDRT#017, NIC#015, PJ#006, OGM#007
azo### [at] dod no, Ducati M600, Clementine Ubesudlet: Aldri eid en J&%#PS.
Post a reply to this message
|
![](/i/fill.gif) |