POV-Ray : Newsgroups : povray.text.tutorials : Summing over indices of an array : Summing over indices of an array Server Time
2 Mar 2024 10:27:59 EST (-0500)
  Summing over indices of an array  
From: Max Ulbrich
Date: 22 Jan 2005 02:07:52
Message: <41f1fbc8$1@news.povray.org>

I just trying to get started with Povray and try to sum elements of an 
If I use elem[0]+elem[1]+elem[2]+... it works fine.
If I try sum(i,1,n,elem[i]) I get an error.
What is the usual way to get it done? I cannot find help in the Povray 
tutorial from the povray web page. Is there a good online tutorial that 
explains easy things and has lots of examples?

Post a reply to this message

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