{ "metadata": { "language": "Julia", "name": "", "signature": "sha256:f08e5c5ddba554216febebec79f7f35516a495004d5e9a1f7d4d5636c8c055f5" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "The n-body problem in 3 dimensions" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we've done the 2D case, it shouldn't be too hard to make a 3D $n$-body simulation, and animate the result in Julia. I can't resist showing you the final product:" ] }, { "cell_type": "code", "collapsed": false, "input": [ "# Function for creating an embedded video given a filename\n", "function html_video(filename)\n", "\tbase64_video = base64(open(readbytes, filename))\n", "\t\"\"\"