Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ n_body_simulation.py
File
n_body_simulation.py
physics/n_body_simulation.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
In physics and astronomy, a gravitational N-body simulation is a simulation of a
3
dynamical system of particles under the influence of gravity. The system
4
consists of a number of bodies, each of which exerts a gravitational force on all
Callers
nothing calls this directly
Calls
4
example_1
Function · 0.85
example_2
Function · 0.85
example_3
Function · 0.85
plot
Function · 0.70
Tested by
no test coverage detected