Handbook
Glossary
newton's-law ( other-body body -- e )
Vocabulary
benchmark
.
nbody-simd
Inputs
other-body
an
object
body
an
object
Outputs
e
an
object
Definition
USING:
accessors
kernel
math
math.vectors
;
IN:
benchmark.nbody-simd
:
newton's-law
( other-body body -- e )
[
[
mass>>
]
bi@
*
]
[
[
location>>
]
bi@
distance
]
2bi
/
;
inline