Skip to content
/ nbody Public

A set of N-body simulations using Ruby 2D and Simple 2D

License

Notifications You must be signed in to change notification settings

blacktm/nbody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-body simulations

A few simple N-body simulations built using Simple 2D and Ruby 2D.

nbody.c and nbody.rb represents celestial bodies with varying masses, all attracted to each other. Run using make and ruby nbody.rb, respectively. Watch the video of it in action.

nbody_single.c and nbody_single.rb represents celestial bodies with equal masses and attraction to only a single point, the mouse cursor. Run using make single and ruby nbody_single.rb, respectively. Watch the video of it in action.

About

A set of N-body simulations using Ruby 2D and Simple 2D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published