Handbook
Glossary
energy ( system -- x )
Vocabulary
benchmark
.
nbody
Inputs
system
an
object
Outputs
x
an
object
Definition
USING:
accessors
kernel
math
;
IN:
benchmark.nbody
:
energy
( system -- x )
[
0.0
]
dip
bodies>>
[
newton's-law
-
]
[
inertia
+
]
each-pair
;
inline