https://github.com/achristmascarl/three_body Skip to content Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} achristmascarl / three_body Public * Notifications * Fork 1 * Star 123 * rudimentary simulation of the three-body problem 123 stars 1 fork Branches Tags Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights achristmascarl/three_body This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main BranchesTags Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 17 Commits src src .gitignore .gitignore Cargo.lock Cargo.lock Cargo.toml Cargo.toml README.md README.md color.gif color.gif paper_f10.png paper_f10.png three_body.gif three_body.gif three_body.png three_body.png View all files Repository files navigation * README three_body a very rudimentary simulation of the three-body problem. i was curious how far we could get with just euler's method and a small time step, and it turns out we can get something pretty visually interesting! three body problem gif three body problem image i was also curious about what would happen if the polar coordinates of the bodies over time were translated into rgb values and animated; the results are below. warning: some of the transitions from this orbit are pretty abrupt, so there may be flashing colors. three body problem color gif sources the starting positions for the graphics above are for periodic orbit F[10] from this paper: https://arxiv.org/abs/1805.07980 This is what F[10] looks like when solved with ODE solver dop853 (according to the paper): F10 from the paper as you can see, although the overall shape is similar/recognizeable, the error in the calculations above grow fairly noticeable after just 2 periods. About rudimentary simulation of the three-body problem Resources Readme Activity Stars 123 stars Watchers 2 watching Forks 1 fork Report repository Releases No releases published Packages 0 No packages published Languages * Rust 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.