POV-Ray : Newsgroups : povray.off-topic : Too many pipes? : Re: Sum ting wong Server Time
7 Sep 2024 05:11:32 EDT (-0400)
  Re: Sum ting wong  
From: Invisible
Date: 22 Oct 2008 04:16:51
Message: <48fee173$1@news.povray.org>
>> How did you arrive at
>>
>> #local XD = waveHeight[X+1][Y] - 2*waveHeight[X][Y] + waveHeight[X-1][Y];
>>
>> According to my calculations,
>>
>>   (v[x-1] - v[x]) + (v[x] - v[x+1]) =
> 
> That should be a "-" in the middle, because you are taking the 
> differential of the differential.

The above formula is only meant to be the 1st derivative. I run it twice 
to get the second derivative.

Except that, as noted, my code fails miserably, whereas the formula you 
used seems to work perfectly for some reason...


Post a reply to this message

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