POV-Ray : Newsgroups : povray.general : Re: Rendering problem : Re: Rendering problem Server Time
5 Aug 2024 08:23:34 EDT (-0400)
  Re: Rendering problem  
From: Mike Williams
Date: 24 Oct 2002 14:31:17
Message: <6gYF1DAf2Cu9EwZ2@econym.demon.co.uk>
Wasn't it Justace Clutter who wrote:

>So we learn from this that the sum function is just not to be trusted here.
>I guess that I shall be needing to use something else.

You could always perform the summation in POV code, rather than using
sum(). Like this:-

  function {
      z
      #declare n=1;
      #while (n<50)      
        +((40/(n*pi)))*(cos(n*pi)-cos((n*pi)/2))*sin((n*pi*x)/10)
                          *exp(-1*(((pow(n,2)*pow(pi,2))/100)*0))
        #declare n=n+1;  
      #end
  }
  max_gradient 86



-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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