POV-Ray : Newsgroups : povray.off-topic : Too many pipes? : Re: Sum ting wong Server Time
7 Sep 2024 03:21:33 EDT (-0400)
  Re: Sum ting wong  
From: Invisible
Date: 21 Oct 2008 11:23:58
Message: <48fdf40e$1@news.povray.org>
scott wrote:

> I made some POV code to simulate the wave equation a long time ago, see 
> attached.  Maybe you can compare with your code and see where it's 
> giving different answers?

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]) =
   v[x-1] - v[x] + v[x] - v[x+1] =
   v[x-1] - v[x+1]

which is completely different to what you have.


Post a reply to this message

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