Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
Intergalactic Electrostatic
 

Summary: Intergalactic
Electrostatic
Nerf Balls
CASCON 2008 Hand's On
InterNerf Physics
Forces
electrical attraction/repulsion
+- 1/r2
compression
-10/r if r < 1
gravity
1/r
2 Loops
iterate over all pairs (i,j) of Nerf balls, O(n2)
calculate differences
calculate forces
calculate unit time step
keep track of maximum step
iterate over NerfBalls to adjust velocity and
position, O(n)

  

Source: Anand, Christopher - Department of Computing and Software, McMaster University

 

Collections: Biology and Medicine; Computer Technologies and Information Sciences