POV-Ray : Newsgroups : povray.general : POV features : Re: POV features Server Time
7 Aug 2024 11:25:25 EDT (-0400)
  Re: POV features  
From: Peter Popov
Date: 28 Nov 2001 15:53:38
Message: <g2ja0u0hgb8hr0995blf9iorlgitu3eaiv@4ax.com>
On Wed, 28 Nov 2001 12:03:21 -0500, "Anders K." <and### [at] f2scom>
wrote:

>> #declare GR = 0.5*(sqrt(5)-1);

>I've also seen the golden ratio defined as 0.5*(sqrt(5)+1). This is one
>problem including this as a constant in POV-Ray.

By definition it should be between 0 and 1. And of course,

0.5*(sqrt(5) - 1) = 1 / ((0.5*sqrt(5) + 1))

and

0.5*(sqrt(5) + 1) = 1 / ((0.5*sqrt(5) - 1))

(not simplified on purpose)

so you can always

#declare GR2 = 1/GR;

:)


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.