[Haskell-cafe] Squashing space leaks

Greg Buchholz haskell at sleepingsquirrel.org
Sun May 8 23:38:03 EDT 2005

Daniel Fischer wrote:
> One question: the energy of the system should be constant - that little 
> physics I know. What I don't know is whether the change in energy in this 
> simulation is within usual, reasonable bounds or not. If not, is it due to a 
> too long time interval or should one use a more sophisticated algorithm?

    The change in energy is from round-off error caused by floating point
arithmetic.  For this particular test, the shootout requires everyone to use the
same algorithm.  So the error is expected.

Greg Buchholz

More information about the Haskell-Cafe mailing list