|
|
Mike Williams wrote:
>
> I think you have to use a loop:
>
Bah, you surely don't have to:
#macro Add(i)
#if (i>0)
#local R=Add(i-1)+elem[i];
#else
#local R=elem[i];
#end
R
#end
#declare Sum=Add(n);
;-)
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
|