Interactive Gravity Playground

Experiment with gravity models by modifying parameters and seeing real-time results. This interactive terminal lets you explore how different values affect galaxy rotation curves.

Interactive Python TerminalError Loading Python

Code Explanation

This code calculates how galaxies rotate under standard Newtonian gravity (white) and under Erik Verlinde's Emergent Gravity theory (pink). Modify the mass, radii, or a0 parameter to see how they affect the predicted rotation curves.

How to Use

  • Modify Parameters: Try changing the galaxy mass (M_galaxy), the acceleration scale (a0), or the radius range to see how they affect the rotation curves.
  • Run the Code: Click the "Run Code" button to execute your modifications and see the updated visualization.
  • Compare Models: The graph shows both standard Newtonian gravity (which would require dark matter to explain observations) and Emergent Gravity (which attempts to explain observations without dark matter).
  • Scientific Implications: A flat rotation curve at large radii is what we observe in real galaxies. Which model better matches this observation? What does this tell us about dark matter?