Parents: | benchmark |
Class | Superclass | Slots |
body | tuple | location velocity mass |
nbody-system | tuple | bodies |
Word | Stack 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 -- ) |
Word | Stack effect |
body? | ( object -- ? ) |
nbody-system? | ( object -- ? ) |