Popular Java recipes tagged "physics"http://code.activestate.com/recipes/langs/java/tags/physics/2010-03-26T17:50:43-07:00ActiveState Code RecipesGravity Simulation Fractal Applet (Java) 2010-03-26T17:49:13-07:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/577152-gravity-simulation-fractal-applet/ <p style="color: grey"> Java recipe 577152 by <a href="/recipes/users/4172570/">FB36</a> (<a href="/recipes/tags/applet/">applet</a>, <a href="/recipes/tags/fractal/">fractal</a>, <a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/physics/">physics</a>). </p> <p>It produces a fractal image from an N particle gravity simulation. Warning: The calculation takes about a minute!</p> Gravity Simulation Applet (Java) 2010-03-26T17:50:43-07:00FB36http://code.activestate.com/recipes/users/4172570/http://code.activestate.com/recipes/577151-gravity-simulation-applet/ <p style="color: grey"> Java recipe 577151 by <a href="/recipes/users/4172570/">FB36</a> (<a href="/recipes/tags/applet/">applet</a>, <a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/math/">math</a>, <a href="/recipes/tags/physics/">physics</a>). </p> <p>It displays the trajectories of N mass particles moving under the force of gravity in 2D space. The repeating patterns mean particles started orbiting each other.</p>