Add algorithm for N-body simulation - retry (#4298) · Algorithm-box/Python@536fb4b · GitHub
Skip to content

Commit 536fb4b

Browse files
algobytewisegithub-actionsdhruvmanilacclauss
authored
Add algorithm for N-body simulation - retry (TheAlgorithms#4298)
* add n_body_simulation.py * updating DIRECTORY.md * Rename other/n_body_simulation.py to physics/n_body_simulation.py * updating DIRECTORY.md * Update build.yml * refactor examples & add doctests * removed type-hints from self-parameter * Apply suggestions from code review * Update physics/n_body_simulation.py * Update physics/n_body_simulation.py * Update physics/n_body_simulation.py * Don't forget self * Fix velocity Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 6089536 commit 536fb4b

2 files changed

Lines changed: 351 additions & 0 deletions

File tree

DIRECTORY.md

Lines changed: 3 additions & 0 deletions

physics/n_body_simulation.py

Lines changed: 348 additions & 0 deletions

0 commit comments

Comments
 (0)