POV-Ray : Newsgroups : povray.advanced-users : Fibonacci : Re: Fibonacci Server Time
6 Oct 2024 13:36:13 EDT (-0400)
  Re: Fibonacci  
From: JWV
Date: 4 Sep 2006 16:39:25
Message: <44fc8efd@news.povray.org>
this works? up to what index?


"Tim Attwood" <tim### [at] comcastnet> wrote in message
news:44fbb900$1@news.povray.org...
> #macro Fibonacci(A)
>    #local M = (pow(1.618033989,A)-pow(0.618033989,A))/2.236067977;
>    #local R = int(M) + select( (mod(M,1) >= 0.01),1,0,1);
>    (R)
> #end
>
>


Post a reply to this message

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