POV-Ray : Newsgroups : povray.general : Re: Rendering problem : Re: Rendering problem Server Time
5 Aug 2024 08:26:33 EDT (-0400)
  Re: Rendering problem  
From: Mike Williams
Date: 24 Oct 2002 08:21:07
Message: <RPp$uHAWc9t9Ew3t@econym.demon.co.uk>
Wasn't it Justace Clutter who wrote:
>I am trying to get render a frame with a wave function built in it.  The 
>function is the specific solution after seperation of variables was done.  
>Anyway all that is irrelelvant.  When I try to render the frame it just 
>sits there and does nothing.  the povray process accums time but does not 
>do anyhing and I have to kill it with a sig 9 to get it to exit.  I use 
>Linux if you have not already guessed.  Any information on this would be 
>wonderfull.
>

A fairly minimal piece of code that exhibits the problem is

// This is the entire scene file
#declare F = function {sum(n, 1, 1, 1*(2/(n*1)))}
#debug str(F(0,0,0),5,5)
// -----------------------------

Any attempt to simplify the expression causes the scene to complete, but
does not always return what I consider the right answer.


Consider these:-

  #declare F = function {sum(n, 1, 1, n)}

evaluates to 1.00000, which I reckon is OK, but

  #declare F = function {sum(n, 1, 1, 1*n)}

evaluates to 2.00000, which I reckon is wrong.


  #declare F = function {sum(n, 3.1234, 4.1234, 1)}   => 2.00000 : OK
  #declare F = function {sum(n, 3.1234, 4.1234, 1*1)} => 5.12340
           which is wrong by an amount equal to the initial value of n.

  #declare F = function {prod(n, 1,2, n)}     =>  2.00000 : OK
  #declare F = function {prod(n, 1,2, 1*n)}   =>  4.00000 : wrong
  #declare F = function {prod(n, 1,2, n/1)}   =>  4.00000 : wrong
  #declare F = function {prod(n, 1,2, (n+0))} =>  4.00000 : wrong

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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