|
![](/i/fill.gif) |
>> 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
|
![](/i/fill.gif) |