benchmark.nbody vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Parents:benchmark


Words

Tuple classes
ClassSuperclassSlots
body tuplelocation velocity mass
nbody-system tuplebodies


Ordinary words
WordStack effect
<body>( location velocity mass -- body )
<jupiter>( -- body )
<nbody-system>( -- system )
<neptune>( -- body )
<saturn>( -- body )
<sun>( -- body )
<uranus>( -- body )
advance( system dt -- )
days-per-year( -- value )
each-pair( ... bodies pair-quot: ( ... other-body body -- ... ) each-quot: ( ... body -- ... ) -- ... )
energy( system -- x )
inertia( body -- e )
init-bodies( bodies -- )
mag( dt body other-body -- mag d )
nbody( n -- )
nbody-benchmark( -- )
newton's-law( other-body body -- e )
offset-momentum( body offset -- body )
solar-mass( -- x )
update-position( body dt -- )
update-velocity( other-body body dt -- )


Class predicate words
WordStack effect
body?( object -- ? )
nbody-system?( object -- ? )


Files